From 5a957e43e0efb76f915104558a5c531c85f37f37 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 18 Aug 2025 16:10:02 -0700 Subject: [PATCH 01/14] [cupertino_http]: Switch to ffigen 19.1.0 --- .../native_cupertino_bindings.m | 5 + pkgs/cupertino_http/ffigen.yaml | 9 + .../cupertino_http/lib/src/cupertino_api.dart | 57 +- .../lib/src/native_cupertino_bindings.dart | 2167 +++++++++-------- pkgs/cupertino_http/pubspec.yaml | 4 +- 5 files changed, 1257 insertions(+), 985 deletions(-) diff --git a/pkgs/cupertino_http/darwin/cupertino_http/Sources/cupertino_http/native_cupertino_bindings.m b/pkgs/cupertino_http/darwin/cupertino_http/Sources/cupertino_http/native_cupertino_bindings.m index 7ad2e44763..f961e247f8 100644 --- a/pkgs/cupertino_http/darwin/cupertino_http/Sources/cupertino_http/native_cupertino_bindings.m +++ b/pkgs/cupertino_http/darwin/cupertino_http/Sources/cupertino_http/native_cupertino_bindings.m @@ -17,6 +17,9 @@ #error "This file must be compiled with ARC enabled" #endif +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wundeclared-selector" + typedef struct { int64_t version; void* (*newWaiter)(void); @@ -891,3 +894,5 @@ void _NativeCupertinoHttp_protocolTrampoline_ovsamd(id target, void * sel) { return ((ProtocolTrampoline_17)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } #undef BLOCKING_BLOCK_IMPL + +#pragma clang diagnostic pop diff --git a/pkgs/cupertino_http/ffigen.yaml b/pkgs/cupertino_http/ffigen.yaml index 3f01474bec..39993ae3c4 100644 --- a/pkgs/cupertino_http/ffigen.yaml +++ b/pkgs/cupertino_http/ffigen.yaml @@ -43,6 +43,15 @@ objc-interfaces: - 'NSURLSessionTask' - 'NSURLSessionWebSocketMessage' - 'NSURLSessionWebSocketTask' + member-rename: + # TODO(brianquinlan): Remove this when + # https://github.com/dart-lang/native/issues/2419 is fixed. + 'NSURLResponse': + 'initWithURL:MIMEType:expectedContentLength:textEncodingName:': 'initWithUrlAndMIMEType' + 'NSHTTPURLResponse': + 'initWithURL:statusCode:HTTPVersion:headerFields:': 'initWithURLAndStatusCode' + 'NSURLSession': + 'dataTaskWithRequest:completionHandler:': 'dataTaskWithRequestAndCompletionHandler' objc-protocols: include: - 'NSURLSessionDataDelegate' diff --git a/pkgs/cupertino_http/lib/src/cupertino_api.dart b/pkgs/cupertino_http/lib/src/cupertino_api.dart index 9586279874..9d3de4a0ba 100644 --- a/pkgs/cupertino_http/lib/src/cupertino_api.dart +++ b/pkgs/cupertino_http/lib/src/cupertino_api.dart @@ -94,9 +94,9 @@ class URLCache extends _ObjectHolder { /// See [NSURLCache initWithMemoryCapacity:diskCapacity:directoryURL:](https://developer.apple.com/documentation/foundation/nsurlcache/3240612-initwithmemorycapacity) factory URLCache.withCapacity( {int memoryCapacity = 0, int diskCapacity = 0, Uri? directory}) => - URLCache._(ncb.NSURLCache.alloc() - .initWithMemoryCapacity_diskCapacity_directoryURL_(memoryCapacity, - diskCapacity, directory == null ? null : uriToNSURL(directory))); + URLCache._(ncb.NSURLCache.alloc().initWithMemoryCapacity$1(memoryCapacity, + diskCapacity: diskCapacity, + directoryURL: directory == null ? null : uriToNSURL(directory))); } /// Controls the behavior of a URLSession. @@ -118,7 +118,7 @@ class URLSessionConfiguration factory URLSessionConfiguration.backgroundSession(String identifier) => URLSessionConfiguration._( ncb.NSURLSessionConfiguration - .backgroundSessionConfigurationWithIdentifier_( + .backgroundSessionConfigurationWithIdentifier( identifier.toNSString()), isBackground: true); @@ -199,7 +199,7 @@ class URLSessionConfiguration } final d = objc.NSMutableDictionary.alloc().init(); headers.forEach((key, value) { - d.setObject_forKey_(value.toNSString(), key.toNSString()); + d.setObject(value.toNSString(), forKey: key.toNSString()); }); _nsObject.HTTPAdditionalHeaders = d; } @@ -389,14 +389,14 @@ class URLSessionWebSocketMessage /// See [NSURLSessionWebSocketMessage initWithData:](https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181192-initwithdata) factory URLSessionWebSocketMessage.fromData(objc.NSData d) => URLSessionWebSocketMessage._( - ncb.NSURLSessionWebSocketMessage.alloc().initWithData_(d)); + ncb.NSURLSessionWebSocketMessage.alloc().initWithData(d)); /// Create a WebSocket string message. /// /// See [NSURLSessionWebSocketMessage initWitString:](https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181193-initwithstring) factory URLSessionWebSocketMessage.fromString(String s) => URLSessionWebSocketMessage._(ncb.NSURLSessionWebSocketMessage.alloc() - .initWithString_(s.toNSString())); + .initWithString(s.toNSString())); /// The data associated with the WebSocket message. /// @@ -616,8 +616,8 @@ class URLSessionWebSocketTask extends URLSessionTask { /// See [NSURLSessionWebSocketTask.sendMessage:completionHandler:](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181205-sendmessage) Future sendMessage(URLSessionWebSocketMessage message) async { final completer = Completer(); - _urlSessionWebSocketTask.sendMessage_completionHandler_(message._nsObject, - ncb.ObjCBlock_ffiVoid_NSError.listener((error) { + _urlSessionWebSocketTask.sendMessage(message._nsObject, + completionHandler: ncb.ObjCBlock_ffiVoid_NSError.listener((error) { if (error == null) { completer.complete(); } else { @@ -635,7 +635,7 @@ class URLSessionWebSocketTask extends URLSessionTask { /// See [NSURLSessionWebSocketTask.receiveMessageWithCompletionHandler:](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181204-receivemessagewithcompletionhand) Future receiveMessage() async { final completer = Completer(); - _urlSessionWebSocketTask.receiveMessageWithCompletionHandler_( + _urlSessionWebSocketTask.receiveMessageWithCompletionHandler( ncb.ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.listener( (message, error) { if (error != null) { @@ -654,7 +654,7 @@ class URLSessionWebSocketTask extends URLSessionTask { /// /// See [NSURLSessionWebSocketTask.cancelWithCloseCode:reason:](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181200-cancelwithclosecode) void cancelWithCloseCode(int closeCode, objc.NSData? reason) { - _urlSessionWebSocketTask.cancelWithCloseCode_reason_(closeCode, reason); + _urlSessionWebSocketTask.cancelWithCloseCode(closeCode, reason: reason); } @override @@ -671,7 +671,7 @@ class URLRequest extends _ObjectHolder { /// /// See [NSURLRequest.requestWithURL:](https://developer.apple.com/documentation/foundation/nsurlrequest/1528603-requestwithurl) factory URLRequest.fromUrl(Uri uri) => - URLRequest._(ncb.NSURLRequest.requestWithURL_(uriToNSURL(uri))); + URLRequest._(ncb.NSURLRequest.requestWithURL(uriToNSURL(uri))); /// Returns all of the HTTP headers for the request. /// @@ -746,8 +746,8 @@ class MutableURLRequest extends URLRequest { /// /// See [NSMutableURLRequest.requestWithURL:](https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1414617-allhttpheaderfields) factory MutableURLRequest.fromUrl(Uri uri) { - final url = objc.NSURL.URLWithString_(uri.toString().toNSString())!; - return MutableURLRequest._(ncb.NSMutableURLRequest.requestWithURL_(url)); + final url = objc.NSURL.URLWithString(uri.toString().toNSString())!; + return MutableURLRequest._(ncb.NSMutableURLRequest.requestWithURL(url)); } set cachePolicy(NSURLRequestCachePolicy value) => @@ -777,8 +777,8 @@ class MutableURLRequest extends URLRequest { /// /// See [NSMutableURLRequest setValue:forHTTPHeaderField:](https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1408793-setvalue) void setValueForHttpHeaderField(String value, String field) { - _mutableUrlRequest.setValue_forHTTPHeaderField_( - field.toNSString(), value.toNSString()); + _mutableUrlRequest.setValue(field.toNSString(), + forHTTPHeaderField: value.toNSString()); } @override @@ -1011,9 +1011,8 @@ class URLSession extends _ObjectHolder { if (hasDelegate) { return URLSession._( - ncb.NSURLSession.sessionWithConfiguration_delegate_delegateQueue_( - config._nsObject, - delegate(config._isBackground, + ncb.NSURLSession.sessionWithConfiguration$1(config._nsObject, + delegate: delegate(config._isBackground, onRedirect: onRedirect, onResponse: onResponse, onData: onData, @@ -1021,12 +1020,12 @@ class URLSession extends _ObjectHolder { onComplete: onComplete, onWebSocketTaskOpened: onWebSocketTaskOpened, onWebSocketTaskClosed: onWebSocketTaskClosed), - queue), + delegateQueue: queue), isBackground: config._isBackground, ); } else { return URLSession._( - ncb.NSURLSession.sessionWithConfiguration_(config._nsObject), + ncb.NSURLSession.sessionWithConfiguration(config._nsObject), isBackground: config._isBackground); } } @@ -1050,7 +1049,7 @@ class URLSession extends _ObjectHolder { /// /// See [NSURLSession dataTaskWithRequest:](https://developer.apple.com/documentation/foundation/nsurlsession/1410592-datataskwithrequest) URLSessionTask dataTaskWithRequest(URLRequest request) => - URLSessionTask._(_nsObject.dataTaskWithRequest_(request._nsObject)); + URLSessionTask._(_nsObject.dataTaskWithRequest(request._nsObject)); /// Creates a [URLSessionTask] that accesses a server URL and calls /// [completion] when done. @@ -1076,7 +1075,7 @@ class URLSession extends _ObjectHolder { ); }); - final task = _nsObject.dataTaskWithRequest_completionHandler_( + final task = _nsObject.dataTaskWithRequestAndCompletionHandler( request._nsObject, completer, ); @@ -1093,7 +1092,7 @@ class URLSession extends _ObjectHolder { /// See [NSURLSession downloadTaskWithRequest:](https://developer.apple.com/documentation/foundation/nsurlsession/1411481-downloadtaskwithrequest) URLSessionDownloadTask downloadTaskWithRequest(URLRequest request) => URLSessionDownloadTask._( - _nsObject.downloadTaskWithRequest_(request._nsObject)); + _nsObject.downloadTaskWithRequest(request._nsObject)); /// Creates a [URLSessionWebSocketTask] that represents a connection to a /// WebSocket endpoint. @@ -1108,7 +1107,7 @@ class URLSession extends _ObjectHolder { 'WebSocket tasks are not supported in background sessions'); } return URLSessionWebSocketTask._( - _nsObject.webSocketTaskWithRequest_(request._nsObject)); + _nsObject.webSocketTaskWithRequest(request._nsObject)); } /// Creates a [URLSessionWebSocketTask] that represents a connection to a @@ -1124,11 +1123,11 @@ class URLSession extends _ObjectHolder { final URLSessionWebSocketTask task; if (protocols == null) { task = URLSessionWebSocketTask._( - _nsObject.webSocketTaskWithURL_(uriToNSURL(uri))); + _nsObject.webSocketTaskWithURL(uriToNSURL(uri))); } else { - task = URLSessionWebSocketTask._( - _nsObject.webSocketTaskWithURL_protocols_( - uriToNSURL(uri), stringIterableToNSArray(protocols))); + task = URLSessionWebSocketTask._(_nsObject.webSocketTaskWithURL$1( + uriToNSURL(uri), + protocols: stringIterableToNSArray(protocols))); } return task; } diff --git a/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart b/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart index 68a0dc5175..de6644744d 100644 --- a/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart +++ b/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart @@ -261,10 +261,10 @@ class NativeCupertinoHttp { int Function(int, ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer alloca( - int arg0, + int __size, ) { return _alloca( - arg0, + __size, ); } @@ -924,12 +924,12 @@ class NativeCupertinoHttp { int mbstowcs( ffi.Pointer arg0, ffi.Pointer arg1, - int arg2, + int __n, ) { return _mbstowcs( arg0, arg1, - arg2, + __n, ); } @@ -943,12 +943,12 @@ class NativeCupertinoHttp { int mbtowc( ffi.Pointer arg0, ffi.Pointer arg1, - int arg2, + int __n, ) { return _mbtowc( arg0, arg1, - arg2, + __n, ); } @@ -1160,12 +1160,12 @@ class NativeCupertinoHttp { int wcstombs( ffi.Pointer arg0, ffi.Pointer arg1, - int arg2, + int __n, ) { return _wcstombs( arg0, arg1, - arg2, + __n, ); } @@ -1341,12 +1341,12 @@ class NativeCupertinoHttp { ffi.Pointer initstate( int arg0, ffi.Pointer arg1, - int arg2, + int __size, ) { return _initstate( arg0, arg1, - arg2, + __size, ); } @@ -1679,11 +1679,11 @@ class NativeCupertinoHttp { void arc4random_addrandom( ffi.Pointer arg0, - int arg1, + int __datlen, ) { return _arc4random_addrandom( arg0, - arg1, + __datlen, ); } @@ -2026,11 +2026,11 @@ class NativeCupertinoHttp { int getloadavg( ffi.Pointer arg0, - int arg1, + int __nelem, ) { return _getloadavg( arg0, - arg1, + __nelem, ); } @@ -4868,6 +4868,31 @@ class NativeCupertinoHttp { late final ___error = ___errorPtr.asFunction Function()>(); + locale_t duplocale( + locale_t arg0, + ) { + return _duplocale( + arg0, + ); + } + + late final _duplocalePtr = + _lookup>('duplocale'); + late final _duplocale = + _duplocalePtr.asFunction(); + + int freelocale( + locale_t arg0, + ) { + return _freelocale( + arg0, + ); + } + + late final _freelocalePtr = + _lookup>('freelocale'); + late final _freelocale = _freelocalePtr.asFunction(); + ffi.Pointer localeconv() { return _localeconv(); } @@ -4877,6 +4902,38 @@ class NativeCupertinoHttp { late final _localeconv = _localeconvPtr.asFunction Function()>(); + locale_t newlocale( + int arg0, + ffi.Pointer arg1, + locale_t arg2, + ) { + return _newlocale( + arg0, + arg1, + arg2, + ); + } + + late final _newlocalePtr = _lookup< + ffi.NativeFunction< + locale_t Function( + ffi.Int, ffi.Pointer, locale_t)>>('newlocale'); + late final _newlocale = _newlocalePtr + .asFunction, locale_t)>(); + + locale_t uselocale( + locale_t arg0, + ) { + return _uselocale( + arg0, + ); + } + + late final _uselocalePtr = + _lookup>('uselocale'); + late final _uselocale = + _uselocalePtr.asFunction(); + ffi.Pointer setlocale( int arg0, ffi.Pointer arg1, @@ -7375,12 +7432,12 @@ class NativeCupertinoHttp { ffi.Pointer fgets( ffi.Pointer arg0, - int arg1, + int __size, ffi.Pointer arg2, ) { return _fgets( arg0, - arg1, + __size, arg2, ); } @@ -7755,13 +7812,13 @@ class NativeCupertinoHttp { ffi.Pointer arg0, ffi.Pointer arg1, int arg2, - int arg3, + int __size, ) { return _setvbuf( arg0, arg1, arg2, - arg3, + __size, ); } @@ -8449,11 +8506,11 @@ class NativeCupertinoHttp { ffi.Pointer fgetln( ffi.Pointer arg0, - ffi.Pointer arg1, + ffi.Pointer __len, ) { return _fgetln( arg0, - arg1, + __len, ); } @@ -8499,12 +8556,12 @@ class NativeCupertinoHttp { void setbuffer( ffi.Pointer arg0, ffi.Pointer arg1, - int arg2, + int __size, ) { return _setbuffer( arg0, arg1, - arg2, + __size, ); } @@ -8635,14 +8692,14 @@ class NativeCupertinoHttp { int __snprintf_chk( ffi.Pointer arg0, - int arg1, + int __maxlen, int arg2, int arg3, ffi.Pointer arg4, ) { return ___snprintf_chk( arg0, - arg1, + __maxlen, arg2, arg3, arg4, @@ -8683,7 +8740,7 @@ class NativeCupertinoHttp { int __vsnprintf_chk( ffi.Pointer arg0, - int arg1, + int __maxlen, int arg2, int arg3, ffi.Pointer arg4, @@ -8691,7 +8748,7 @@ class NativeCupertinoHttp { ) { return ___vsnprintf_chk( arg0, - arg1, + __maxlen, arg2, arg3, arg4, @@ -9382,6 +9439,23 @@ class NativeCupertinoHttp { ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer strchrnul( + ffi.Pointer __s, + int __c, + ) { + return _strchrnul( + __s, + __c, + ); + } + + late final _strchrnulPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Int)>>('strchrnul'); + late final _strchrnul = _strchrnulPtr + .asFunction Function(ffi.Pointer, int)>(); + ffi.Pointer strnstr( ffi.Pointer __big, ffi.Pointer __little, @@ -9477,12 +9551,12 @@ class NativeCupertinoHttp { void swab( ffi.Pointer arg0, ffi.Pointer arg1, - int arg2, + int __len, ) { return _swab( arg0, arg1, - arg2, + __len, ); } @@ -9534,12 +9608,12 @@ class NativeCupertinoHttp { int bcmp( ffi.Pointer arg0, ffi.Pointer arg1, - int arg2, + int __n, ) { return _bcmp( arg0, arg1, - arg2, + __n, ); } @@ -9553,12 +9627,12 @@ class NativeCupertinoHttp { void bcopy( ffi.Pointer arg0, ffi.Pointer arg1, - int arg2, + int __n, ) { return _bcopy( arg0, arg1, - arg2, + __n, ); } @@ -9571,11 +9645,11 @@ class NativeCupertinoHttp { void bzero( ffi.Pointer arg0, - int arg1, + int __n, ) { return _bzero( arg0, - arg1, + __n, ); } @@ -9860,13 +9934,13 @@ class NativeCupertinoHttp { int strftime( ffi.Pointer arg0, - int arg1, + int __maxsize, ffi.Pointer arg2, ffi.Pointer arg3, ) { return _strftime( arg0, - arg1, + __maxsize, arg2, arg3, ); @@ -20984,11 +21058,11 @@ class NativeCupertinoHttp { ffi.Pointer getcwd( ffi.Pointer arg0, - int arg1, + int __size, ) { return _getcwd( arg0, - arg1, + __size, ); } @@ -21024,11 +21098,11 @@ class NativeCupertinoHttp { late final _getgid = _getgidPtr.asFunction(); int getgroups( - int arg0, + int __gidsetsize, ffi.Pointer arg1, ) { return _getgroups( - arg0, + __gidsetsize, arg1, ); } @@ -21166,12 +21240,12 @@ class NativeCupertinoHttp { int read( int arg0, ffi.Pointer arg1, - int arg2, + int __nbyte, ) { return _read( arg0, arg1, - arg2, + __nbyte, ); } @@ -21310,12 +21384,12 @@ class NativeCupertinoHttp { int ttyname_r( int arg0, ffi.Pointer arg1, - int arg2, + int __len, ) { return _ttyname_r( arg0, arg1, - arg2, + __len, ); } @@ -21361,12 +21435,12 @@ class NativeCupertinoHttp { int confstr( int arg0, ffi.Pointer arg1, - int arg2, + int __len, ) { return _confstr( arg0, arg1, - arg2, + __len, ); } @@ -21378,12 +21452,12 @@ class NativeCupertinoHttp { _confstrPtr.asFunction, int)>(); int getopt( - int arg0, + int __argc, ffi.Pointer> arg1, ffi.Pointer arg2, ) { return _getopt( - arg0, + __argc, arg1, arg2, ); @@ -21798,11 +21872,11 @@ class NativeCupertinoHttp { int getlogin_r( ffi.Pointer arg0, - int arg1, + int __namelen, ) { return _getlogin_r( arg0, - arg1, + __namelen, ); } @@ -21831,11 +21905,11 @@ class NativeCupertinoHttp { int gethostname( ffi.Pointer arg0, - int arg1, + int __namelen, ) { return _gethostname( arg0, - arg1, + __namelen, ); } @@ -21848,12 +21922,12 @@ class NativeCupertinoHttp { int readlink( ffi.Pointer arg0, ffi.Pointer arg1, - int arg2, + int __bufsize, ) { return _readlink( arg0, arg1, - arg2, + __bufsize, ); } @@ -21962,13 +22036,13 @@ class NativeCupertinoHttp { int accessx_np( ffi.Pointer arg0, - int arg1, + int __sz, ffi.Pointer arg2, int arg3, ) { return _accessx_np( arg0, - arg1, + __sz, arg2, arg3, ); @@ -21997,13 +22071,13 @@ class NativeCupertinoHttp { int add_profil( ffi.Pointer arg0, - int arg1, + int __bufsiz, int arg2, int arg3, ) { return _add_profil( arg0, - arg1, + __bufsiz, arg2, arg3, ); @@ -22060,11 +22134,11 @@ class NativeCupertinoHttp { int getdomainname( ffi.Pointer arg0, - int arg1, + int __namelen, ) { return _getdomainname( arg0, - arg1, + __namelen, ); } @@ -22078,13 +22152,13 @@ class NativeCupertinoHttp { ffi.Pointer arg0, int arg1, ffi.Pointer arg2, - ffi.Pointer arg3, + ffi.Pointer __ngroups, ) { return _getgrouplist( arg0, arg1, arg2, - arg3, + __ngroups, ); } @@ -22428,13 +22502,13 @@ class NativeCupertinoHttp { int profil( ffi.Pointer arg0, - int arg1, + int __bufsiz, int arg2, int arg3, ) { return _profil( arg0, - arg1, + __bufsiz, arg2, arg3, ); @@ -22681,11 +22755,11 @@ class NativeCupertinoHttp { int setdomainname( ffi.Pointer arg0, - int arg1, + int __namelen, ) { return _setdomainname( arg0, - arg1, + __namelen, ); } @@ -22725,11 +22799,11 @@ class NativeCupertinoHttp { int sethostname( ffi.Pointer arg0, - int arg1, + int __namelen, ) { return _sethostname( arg0, - arg1, + __namelen, ); } @@ -22921,14 +22995,14 @@ class NativeCupertinoHttp { int arg0, ffi.Pointer arg1, ffi.Pointer arg2, - int arg3, + int __attrBufSize, int arg4, ) { return _fgetattrlist( arg0, arg1, arg2, - arg3, + __attrBufSize, arg4, ); } @@ -22949,14 +23023,14 @@ class NativeCupertinoHttp { int arg0, ffi.Pointer arg1, ffi.Pointer arg2, - int arg3, + int __attrBufSize, int arg4, ) { return _fsetattrlist( arg0, arg1, arg2, - arg3, + __attrBufSize, arg4, ); } @@ -22977,14 +23051,14 @@ class NativeCupertinoHttp { ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, - int arg3, + int __attrBufSize, int arg4, ) { return _getattrlist( arg0, arg1, arg2, - arg3, + __attrBufSize, arg4, ); } @@ -23005,14 +23079,14 @@ class NativeCupertinoHttp { ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, - int arg3, + int __attrBufSize, int arg4, ) { return _setattrlist( arg0, arg1, arg2, - arg3, + __attrBufSize, arg4, ); } @@ -23052,7 +23126,7 @@ class NativeCupertinoHttp { int arg0, ffi.Pointer arg1, ffi.Pointer arg2, - int arg3, + int __attrBufSize, ffi.Pointer arg4, ffi.Pointer arg5, ffi.Pointer arg6, @@ -23062,7 +23136,7 @@ class NativeCupertinoHttp { arg0, arg1, arg2, - arg3, + __attrBufSize, arg4, arg5, arg6, @@ -28526,6 +28600,35 @@ class NativeCupertinoHttp { CFStringRef Function( CFBundleRef, CFStringRef, CFStringRef, CFStringRef)>(); + CFStringRef CFBundleCopyLocalizedStringForLocalizations( + CFBundleRef bundle, + CFStringRef key, + CFStringRef value, + CFStringRef tableName, + CFArrayRef localizations, + ) { + return _CFBundleCopyLocalizedStringForLocalizations( + bundle, + key, + value, + tableName, + localizations, + ); + } + + late final _CFBundleCopyLocalizedStringForLocalizationsPtr = _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFBundleRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFArrayRef)>>('CFBundleCopyLocalizedStringForLocalizations'); + late final _CFBundleCopyLocalizedStringForLocalizations = + _CFBundleCopyLocalizedStringForLocalizationsPtr.asFunction< + CFStringRef Function(CFBundleRef, CFStringRef, CFStringRef, + CFStringRef, CFArrayRef)>(); + CFURLRef CFBundleCopyResourceURLInDirectory( CFURLRef bundleURL, CFStringRef resourceName, @@ -32751,6 +32854,22 @@ class NativeCupertinoHttp { set kSecTrustCertificateTransparencyWhiteList(CFStringRef value) => _kSecTrustCertificateTransparencyWhiteList.value = value; + late final ffi.Pointer _kSecTrustQCStatements = + _lookup('kSecTrustQCStatements'); + + CFStringRef get kSecTrustQCStatements => _kSecTrustQCStatements.value; + + set kSecTrustQCStatements(CFStringRef value) => + _kSecTrustQCStatements.value = value; + + late final ffi.Pointer _kSecTrustQWACValidation = + _lookup('kSecTrustQWACValidation'); + + CFStringRef get kSecTrustQWACValidation => _kSecTrustQWACValidation.value; + + set kSecTrustQWACValidation(CFStringRef value) => + _kSecTrustQWACValidation.value = value; + int SecTrustGetTypeID() { return _SecTrustGetTypeID(); } @@ -41810,6 +41929,37 @@ final class __arm_pagein_state extends ffi.Struct { external int __pagein_error; } +final class __darwin_arm_sme_state extends ffi.Struct { + @__uint64_t() + external int __svcr; + + @__uint64_t() + external int __tpidr2_el0; + + @__uint16_t() + external int __svl_b; +} + +final class __darwin_arm_sve_z_state extends ffi.Struct { + @ffi.Array.multi([16, 256]) + external ffi.Array> __z; +} + +final class __darwin_arm_sve_p_state extends ffi.Struct { + @ffi.Array.multi([16, 32]) + external ffi.Array> __p; +} + +final class __darwin_arm_sme_za_state extends ffi.Struct { + @ffi.Array.multi([4096]) + external ffi.Array __za; +} + +final class __darwin_arm_sme2_state extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array __zt0; +} + final class __arm_legacy_debug_state extends ffi.Struct { @ffi.Array.multi([16]) external ffi.Array<__uint32_t> __bvr; @@ -43236,28 +43386,6 @@ typedef NSComparator = ffi.Pointer; typedef DartNSComparator = objc.ObjCBlock< NSInteger Function( ffi.Pointer, ffi.Pointer)>; - -enum NSQualityOfService { - NSQualityOfServiceUserInteractive(33), - NSQualityOfServiceUserInitiated(25), - NSQualityOfServiceUtility(17), - NSQualityOfServiceBackground(9), - NSQualityOfServiceDefault(-1); - - final int value; - const NSQualityOfService(this.value); - - static NSQualityOfService fromValue(int value) => switch (value) { - 33 => NSQualityOfServiceUserInteractive, - 25 => NSQualityOfServiceUserInitiated, - 17 => NSQualityOfServiceUtility, - 9 => NSQualityOfServiceBackground, - -1 => NSQualityOfServiceDefault, - _ => - throw ArgumentError('Unknown value for NSQualityOfService: $value'), - }; -} - typedef ptrauth_extra_data_t = ffi.UnsignedLong; typedef Dartptrauth_extra_data_t = int; typedef ptrauth_generic_signature_t = ffi.UnsignedLong; @@ -43543,11 +43671,8 @@ typedef DartCFHashCode = int; typedef CFIndex = ffi.Long; typedef DartCFIndex = int; typedef CFTypeRef = ffi.Pointer; - -final class __CFString extends ffi.Opaque {} - -typedef CFStringRef = ffi.Pointer<__CFString>; -typedef CFMutableStringRef = ffi.Pointer<__CFString>; +typedef CFStringRef = ffi.Pointer; +typedef CFMutableStringRef = ffi.Pointer; typedef CFPropertyListRef = CFTypeRef; enum CFComparisonResult { @@ -43715,7 +43840,7 @@ extension NSCoderMethods on objc.NSObject { } /// setVersion: - static void setVersion_(DartNSInteger aVersion) { + static void setVersion(DartNSInteger aVersion) { objc.checkOsVersionInternal('NSObject.setVersion:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); _objc_msgSend_4sp4xj(_class_NSObject, _sel_setVersion_, aVersion); @@ -43730,7 +43855,7 @@ extension NSCoderMethods on objc.NSObject { } /// replacementObjectForCoder: - objc.ObjCObjectBase? replacementObjectForCoder_(objc.NSCoder coder) { + objc.ObjCObjectBase? replacementObjectForCoder(objc.NSCoder coder) { objc.checkOsVersionInternal('NSObject.replacementObjectForCoder:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -43741,7 +43866,7 @@ extension NSCoderMethods on objc.NSObject { } /// awakeAfterUsingCoder: - objc.ObjCObjectBase? awakeAfterUsingCoder_(objc.NSCoder coder) { + objc.ObjCObjectBase? awakeAfterUsingCoder(objc.NSCoder coder) { objc.checkOsVersionInternal('NSObject.awakeAfterUsingCoder:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), @@ -43767,7 +43892,7 @@ final _objc_msgSend_xtuoz7 = objc.msgSendPointer /// NSDeprecatedMethods extension NSDeprecatedMethods on objc.NSObject { /// poseAsClass: - static void poseAsClass_(objc.ObjCObjectBase aClass) { + static void poseAsClass(objc.ObjCObjectBase aClass) { objc.checkOsVersionInternal('NSObject.poseAsClass:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); _objc_msgSend_xtuoz7( @@ -44126,22 +44251,21 @@ late final _sel_removeCachedResponseForDataTask_ = /// NSURLSessionTaskAdditions extension NSURLSessionTaskAdditions on NSURLCache { /// storeCachedResponse:forDataTask: - void storeCachedResponse_forDataTask_( - NSCachedURLResponse cachedResponse, NSURLSessionDataTask dataTask) { + void storeCachedResponse(NSCachedURLResponse cachedResponse, + {required NSURLSessionDataTask forDataTask}) { objc.checkOsVersionInternal('NSURLCache.storeCachedResponse:forDataTask:', iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); _objc_msgSend_pfv6jd( this.ref.pointer, _sel_storeCachedResponse_forDataTask_, cachedResponse.ref.pointer, - dataTask.ref.pointer); + forDataTask.ref.pointer); } /// getCachedResponseForDataTask:completionHandler: - void getCachedResponseForDataTask_completionHandler_( - NSURLSessionDataTask dataTask, - objc.ObjCBlock - completionHandler) { + void getCachedResponseForDataTask(NSURLSessionDataTask dataTask, + {required objc.ObjCBlock + completionHandler}) { objc.checkOsVersionInternal( 'NSURLCache.getCachedResponseForDataTask:completionHandler:', iOS: (false, (8, 0, 0)), @@ -44154,7 +44278,7 @@ extension NSURLSessionTaskAdditions on NSURLCache { } /// removeCachedResponseForDataTask: - void removeCachedResponseForDataTask_(NSURLSessionDataTask dataTask) { + void removeCachedResponseForDataTask(NSURLSessionDataTask dataTask) { objc.checkOsVersionInternal('NSURLCache.removeCachedResponseForDataTask:', iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); _objc_msgSend_xtuoz7(this.ref.pointer, @@ -44247,7 +44371,7 @@ extension NSHTTPURLRequest on NSURLRequest { /// (case-insensitive). /// @result the value associated with the given header field, or nil if /// there is no value associated with the given header field. - objc.NSString? valueForHTTPHeaderField_(objc.NSString field) { + objc.NSString? valueForHTTPHeaderField(objc.NSString field) { objc.checkOsVersionInternal('NSURLRequest.valueForHTTPHeaderField:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -44657,6 +44781,8 @@ final _objc_msgSend_i3avs9 = objc.msgSendPointer late final _sel_requiresDNSSECValidation = objc.registerName("requiresDNSSECValidation"); late final _sel_allowsPersistentDNS = objc.registerName("allowsPersistentDNS"); +late final _sel_cookiePartitionIdentifier = + objc.registerName("cookiePartitionIdentifier"); late final _sel_init = objc.registerName("init"); late final _sel_new = objc.registerName("new"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); @@ -45136,7 +45262,7 @@ class NSURLRequest extends objc.NSObject /// seconds). /// @param URL The URL for the request. /// @result A newly-created and autoreleased NSURLRequest instance. - static NSURLRequest requestWithURL_(objc.NSURL URL) { + static NSURLRequest requestWithURL(objc.NSURL URL) { objc.checkOsVersionInternal('NSURLRequest.requestWithURL:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -45159,10 +45285,9 @@ class NSURLRequest extends objc.NSObject /// commentary for the timeoutInterval for more information on /// timeout intervals. /// @result A newly-created and autoreleased NSURLRequest instance. - static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( - objc.NSURL URL, - NSURLRequestCachePolicy cachePolicy, - DartNSTimeInterval timeoutInterval) { + static NSURLRequest requestWithURL$1(objc.NSURL URL, + {required NSURLRequestCachePolicy cachePolicy, + required DartNSTimeInterval timeoutInterval}) { objc.checkOsVersionInternal( 'NSURLRequest.requestWithURL:cachePolicy:timeoutInterval:', iOS: (false, (2, 0, 0)), @@ -45184,7 +45309,7 @@ class NSURLRequest extends objc.NSObject /// seconds). /// @param URL The URL for the request. /// @result An initialized NSURLRequest. - NSURLRequest initWithURL_(objc.NSURL URL) { + NSURLRequest initWithURL(objc.NSURL URL) { objc.checkOsVersionInternal('NSURLRequest.initWithURL:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -45204,8 +45329,9 @@ class NSURLRequest extends objc.NSObject /// commentary for the timeoutInterval for more information on /// timeout intervals. /// @result An initialized NSURLRequest. - NSURLRequest initWithURL_cachePolicy_timeoutInterval_(objc.NSURL URL, - NSURLRequestCachePolicy cachePolicy, DartNSTimeInterval timeoutInterval) { + NSURLRequest initWithURL$1(objc.NSURL URL, + {required NSURLRequestCachePolicy cachePolicy, + required DartNSTimeInterval timeoutInterval}) { objc.checkOsVersionInternal( 'NSURLRequest.initWithURL:cachePolicy:timeoutInterval:', iOS: (false, (2, 0, 0)), @@ -45372,6 +45498,17 @@ class NSURLRequest extends objc.NSObject return _objc_msgSend_91o635(this.ref.pointer, _sel_allowsPersistentDNS); } + /// Cookie partition identifier used for cookie storage and retrieval. + objc.NSString? get cookiePartitionIdentifier { + objc.checkOsVersionInternal('NSURLRequest.cookiePartitionIdentifier', + iOS: (false, (18, 2, 0)), macOS: (false, (15, 2, 0))); + final _ret = + _objc_msgSend_151sglz(this.ref.pointer, _sel_cookiePartitionIdentifier); + return _ret.address == 0 + ? null + : objc.NSString.castFromPointer(_ret, retain: true, release: true); + } + /// init NSURLRequest init() { objc.checkOsVersionInternal('NSURLRequest.init', @@ -45388,7 +45525,7 @@ class NSURLRequest extends objc.NSObject } /// allocWithZone: - static NSURLRequest allocWithZone_(ffi.Pointer zone) { + static NSURLRequest allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428(_class_NSURLRequest, _sel_allocWithZone_, zone); return NSURLRequest.castFromPointer(_ret, retain: false, release: true); @@ -45419,13 +45556,13 @@ class NSURLRequest extends objc.NSObject } /// encodeWithCoder: - void encodeWithCoder_(objc.NSCoder coder) { + void encodeWithCoder(objc.NSCoder coder) { _objc_msgSend_xtuoz7( this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); } /// initWithCoder: - NSURLRequest? initWithCoder_(objc.NSCoder coder) { + NSURLRequest? initWithCoder(objc.NSCoder coder) { final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), _sel_initWithCoder_, coder.ref.pointer); return _ret.address == 0 @@ -45577,10 +45714,8 @@ class NSURLCache extends objc.NSObject { /// @param path the path on disk where the cache data is stored. /// @result an initialized NSURLCache, with the given capacity, backed /// by disk. - NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( - DartNSUInteger memoryCapacity, - DartNSUInteger diskCapacity, - objc.NSString? path) { + NSURLCache initWithMemoryCapacity(DartNSUInteger memoryCapacity, + {required DartNSUInteger diskCapacity, objc.NSString? diskPath}) { objc.checkOsVersionInternal( 'NSURLCache.initWithMemoryCapacity:diskCapacity:diskPath:', iOS: (false, (2, 0, 0)), @@ -45590,7 +45725,7 @@ class NSURLCache extends objc.NSObject { _sel_initWithMemoryCapacity_diskCapacity_diskPath_, memoryCapacity, diskCapacity, - path?.ref.pointer ?? ffi.nullptr); + diskPath?.ref.pointer ?? ffi.nullptr); return NSURLCache.castFromPointer(_ret, retain: false, release: true); } @@ -45601,10 +45736,8 @@ class NSURLCache extends objc.NSObject { /// @param diskCapacity the capacity, measured in bytes, for the cache on disk. Or 0 to disable disk cache. /// @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_( - DartNSUInteger memoryCapacity, - DartNSUInteger diskCapacity, - objc.NSURL? directoryURL) { + NSURLCache initWithMemoryCapacity$1(DartNSUInteger memoryCapacity, + {required DartNSUInteger diskCapacity, objc.NSURL? directoryURL}) { objc.checkOsVersionInternal( 'NSURLCache.initWithMemoryCapacity:diskCapacity:directoryURL:', iOS: (false, (13, 0, 0)), @@ -45628,7 +45761,7 @@ class NSURLCache extends objc.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) { + NSCachedURLResponse? cachedResponseForRequest(NSURLRequest request) { objc.checkOsVersionInternal('NSURLCache.cachedResponseForRequest:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -45645,12 +45778,12 @@ class NSURLCache extends objc.NSObject { /// the given request. /// @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) { + void storeCachedResponse(NSCachedURLResponse cachedResponse, + {required NSURLRequest forRequest}) { objc.checkOsVersionInternal('NSURLCache.storeCachedResponse:forRequest:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); _objc_msgSend_pfv6jd(this.ref.pointer, _sel_storeCachedResponse_forRequest_, - cachedResponse.ref.pointer, request.ref.pointer); + cachedResponse.ref.pointer, forRequest.ref.pointer); } /// ! @@ -45660,7 +45793,7 @@ class NSURLCache extends objc.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) { + void removeCachedResponseForRequest(NSURLRequest request) { objc.checkOsVersionInternal('NSURLCache.removeCachedResponseForRequest:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); _objc_msgSend_xtuoz7(this.ref.pointer, _sel_removeCachedResponseForRequest_, @@ -45680,7 +45813,7 @@ class NSURLCache extends objc.NSObject { /// ! /// @method removeCachedResponsesSince: /// @abstract Clears the given cache of any cached responses since the provided date. - void removeCachedResponsesSinceDate_(objc.NSDate date) { + void removeCachedResponsesSinceDate(objc.NSDate date) { objc.checkOsVersionInternal('NSURLCache.removeCachedResponsesSinceDate:', iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); _objc_msgSend_xtuoz7(this.ref.pointer, _sel_removeCachedResponsesSinceDate_, @@ -45765,7 +45898,7 @@ class NSURLCache extends objc.NSObject { } /// allocWithZone: - static NSURLCache allocWithZone_(ffi.Pointer zone) { + static NSURLCache allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428(_class_NSURLCache, _sel_allocWithZone_, zone); return NSURLCache.castFromPointer(_ret, retain: false, release: true); @@ -45840,28 +45973,28 @@ final _objc_msgSend_11spmsz = objc.msgSendPointer /// NSNotificationCreation extension NSNotificationCreation on objc.NSNotification { /// notificationWithName:object: - static objc.NSNotification notificationWithName_object_( - DartNSNotificationName aName, objc.ObjCObjectBase? anObject) { + static objc.NSNotification notificationWithName(DartNSNotificationName aName, + {objc.ObjCObjectBase? object}) { final _ret = _objc_msgSend_15qeuct( _class_NSNotification, _sel_notificationWithName_object_, aName.ref.pointer, - anObject?.ref.pointer ?? ffi.nullptr); + object?.ref.pointer ?? ffi.nullptr); return objc.NSNotification.castFromPointer(_ret, retain: true, release: true); } /// notificationWithName:object:userInfo: - static objc.NSNotification notificationWithName_object_userInfo_( + static objc.NSNotification notificationWithName$1( DartNSNotificationName aName, - objc.ObjCObjectBase? anObject, - objc.NSDictionary? aUserInfo) { + {objc.ObjCObjectBase? object, + objc.NSDictionary? userInfo}) { final _ret = _objc_msgSend_11spmsz( _class_NSNotification, _sel_notificationWithName_object_userInfo_, aName.ref.pointer, - anObject?.ref.pointer ?? ffi.nullptr, - aUserInfo?.ref.pointer ?? ffi.nullptr); + object?.ref.pointer ?? ffi.nullptr, + userInfo?.ref.pointer ?? ffi.nullptr); return objc.NSNotification.castFromPointer(_ret, retain: true, release: true); } @@ -45926,14 +46059,14 @@ extension NSDateCreation on objc.NSDate { } /// dateWithTimeIntervalSinceNow: - static objc.NSDate dateWithTimeIntervalSinceNow_(DartNSTimeInterval secs) { + static objc.NSDate dateWithTimeIntervalSinceNow(DartNSTimeInterval secs) { final _ret = _objc_msgSend_oa8mke( _class_NSDate, _sel_dateWithTimeIntervalSinceNow_, secs); return objc.NSDate.castFromPointer(_ret, retain: true, release: true); } /// dateWithTimeIntervalSinceReferenceDate: - static objc.NSDate dateWithTimeIntervalSinceReferenceDate_( + static objc.NSDate dateWithTimeIntervalSinceReferenceDate( DartNSTimeInterval ti) { final _ret = _objc_msgSend_oa8mke( _class_NSDate, _sel_dateWithTimeIntervalSinceReferenceDate_, ti); @@ -45941,17 +46074,20 @@ extension NSDateCreation on objc.NSDate { } /// dateWithTimeIntervalSince1970: - static objc.NSDate dateWithTimeIntervalSince1970_(DartNSTimeInterval secs) { + static objc.NSDate dateWithTimeIntervalSince1970(DartNSTimeInterval secs) { final _ret = _objc_msgSend_oa8mke( _class_NSDate, _sel_dateWithTimeIntervalSince1970_, secs); return objc.NSDate.castFromPointer(_ret, retain: true, release: true); } /// dateWithTimeInterval:sinceDate: - static objc.NSDate dateWithTimeInterval_sinceDate_( - DartNSTimeInterval secsToBeAdded, objc.NSDate date) { - final _ret = _objc_msgSend_1ozwf6k(_class_NSDate, - _sel_dateWithTimeInterval_sinceDate_, secsToBeAdded, date.ref.pointer); + static objc.NSDate dateWithTimeInterval(DartNSTimeInterval secsToBeAdded, + {required objc.NSDate sinceDate}) { + final _ret = _objc_msgSend_1ozwf6k( + _class_NSDate, + _sel_dateWithTimeInterval_sinceDate_, + secsToBeAdded, + sinceDate.ref.pointer); return objc.NSDate.castFromPointer(_ret, retain: true, release: true); } @@ -45976,24 +46112,27 @@ extension NSDateCreation on objc.NSDate { } /// initWithTimeIntervalSinceNow: - objc.NSDate initWithTimeIntervalSinceNow_(DartNSTimeInterval secs) { + objc.NSDate initWithTimeIntervalSinceNow(DartNSTimeInterval secs) { final _ret = _objc_msgSend_oa8mke(this.ref.retainAndReturnPointer(), _sel_initWithTimeIntervalSinceNow_, secs); return objc.NSDate.castFromPointer(_ret, retain: false, release: true); } /// initWithTimeIntervalSince1970: - objc.NSDate initWithTimeIntervalSince1970_(DartNSTimeInterval secs) { + objc.NSDate initWithTimeIntervalSince1970(DartNSTimeInterval secs) { final _ret = _objc_msgSend_oa8mke(this.ref.retainAndReturnPointer(), _sel_initWithTimeIntervalSince1970_, secs); return objc.NSDate.castFromPointer(_ret, retain: false, release: true); } /// initWithTimeInterval:sinceDate: - objc.NSDate initWithTimeInterval_sinceDate_( - DartNSTimeInterval secsToBeAdded, objc.NSDate date) { - final _ret = _objc_msgSend_1ozwf6k(this.ref.retainAndReturnPointer(), - _sel_initWithTimeInterval_sinceDate_, secsToBeAdded, date.ref.pointer); + objc.NSDate initWithTimeInterval(DartNSTimeInterval secsToBeAdded, + {required objc.NSDate sinceDate}) { + final _ret = _objc_msgSend_1ozwf6k( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeInterval_sinceDate_, + secsToBeAdded, + sinceDate.ref.pointer); return objc.NSDate.castFromPointer(_ret, retain: false, release: true); } } @@ -46090,13 +46229,14 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// case-insensitive. /// @param value the header field value. /// @param field the header field name (case-insensitive). - void setValue_forHTTPHeaderField_(objc.NSString? value, objc.NSString field) { + void setValue(objc.NSString? value, + {required objc.NSString forHTTPHeaderField}) { objc.checkOsVersionInternal( 'NSMutableURLRequest.setValue:forHTTPHeaderField:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); _objc_msgSend_pfv6jd(this.ref.pointer, _sel_setValue_forHTTPHeaderField_, - value?.ref.pointer ?? ffi.nullptr, field.ref.pointer); + value?.ref.pointer ?? ffi.nullptr, forHTTPHeaderField.ref.pointer); } /// ! @@ -46112,13 +46252,14 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// header field names are case-insensitive. /// @param value the header field value. /// @param field the header field name (case-insensitive). - void addValue_forHTTPHeaderField_(objc.NSString value, objc.NSString field) { + void addValue(objc.NSString value, + {required objc.NSString forHTTPHeaderField}) { objc.checkOsVersionInternal( 'NSMutableURLRequest.addValue:forHTTPHeaderField:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); _objc_msgSend_pfv6jd(this.ref.pointer, _sel_addValue_forHTTPHeaderField_, - value.ref.pointer, field.ref.pointer); + value.ref.pointer, forHTTPHeaderField.ref.pointer); } /// ! @@ -46301,6 +46442,8 @@ late final _sel_setRequiresDNSSECValidation_ = objc.registerName("setRequiresDNSSECValidation:"); late final _sel_setAllowsPersistentDNS_ = objc.registerName("setAllowsPersistentDNS:"); +late final _sel_setCookiePartitionIdentifier_ = + objc.registerName("setCookiePartitionIdentifier:"); /// ! /// @class NSMutableURLRequest @@ -46657,6 +46800,27 @@ class NSMutableURLRequest extends NSURLRequest { this.ref.pointer, _sel_setAllowsPersistentDNS_, value); } + /// Cookie partition identifier used for cookie storage and retrieval. + objc.NSString? get cookiePartitionIdentifier { + objc.checkOsVersionInternal('NSMutableURLRequest.cookiePartitionIdentifier', + iOS: (false, (18, 2, 0)), macOS: (false, (15, 2, 0))); + final _ret = + _objc_msgSend_151sglz(this.ref.pointer, _sel_cookiePartitionIdentifier); + return _ret.address == 0 + ? null + : objc.NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// Cookie partition identifier used for cookie storage and retrieval. + set cookiePartitionIdentifier(objc.NSString? value) { + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setCookiePartitionIdentifier:', + iOS: (false, (18, 2, 0)), + macOS: (false, (15, 2, 0))); + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setCookiePartitionIdentifier_, + value?.ref.pointer ?? ffi.nullptr); + } + /// ! /// @method requestWithURL: /// @abstract Allocates and initializes an NSURLRequest with the given @@ -46666,7 +46830,7 @@ class NSMutableURLRequest extends NSURLRequest { /// seconds). /// @param URL The URL for the request. /// @result A newly-created and autoreleased NSURLRequest instance. - static NSMutableURLRequest requestWithURL_(objc.NSURL URL) { + static NSMutableURLRequest requestWithURL(objc.NSURL URL) { objc.checkOsVersionInternal('NSMutableURLRequest.requestWithURL:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -46691,10 +46855,9 @@ class NSMutableURLRequest extends NSURLRequest { /// commentary for the timeoutInterval for more information on /// timeout intervals. /// @result A newly-created and autoreleased NSURLRequest instance. - static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( - objc.NSURL URL, - NSURLRequestCachePolicy cachePolicy, - DartNSTimeInterval timeoutInterval) { + static NSMutableURLRequest requestWithURL$1(objc.NSURL URL, + {required NSURLRequestCachePolicy cachePolicy, + required DartNSTimeInterval timeoutInterval}) { objc.checkOsVersionInternal( 'NSMutableURLRequest.requestWithURL:cachePolicy:timeoutInterval:', iOS: (false, (2, 0, 0)), @@ -46717,7 +46880,7 @@ class NSMutableURLRequest extends NSURLRequest { /// seconds). /// @param URL The URL for the request. /// @result An initialized NSURLRequest. - NSMutableURLRequest initWithURL_(objc.NSURL URL) { + NSMutableURLRequest initWithURL(objc.NSURL URL) { objc.checkOsVersionInternal('NSMutableURLRequest.initWithURL:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -46738,8 +46901,9 @@ class NSMutableURLRequest extends NSURLRequest { /// commentary for the timeoutInterval for more information on /// timeout intervals. /// @result An initialized NSURLRequest. - NSMutableURLRequest initWithURL_cachePolicy_timeoutInterval_(objc.NSURL URL, - NSURLRequestCachePolicy cachePolicy, DartNSTimeInterval timeoutInterval) { + NSMutableURLRequest initWithURL$1(objc.NSURL URL, + {required NSURLRequestCachePolicy cachePolicy, + required DartNSTimeInterval timeoutInterval}) { objc.checkOsVersionInternal( 'NSMutableURLRequest.initWithURL:cachePolicy:timeoutInterval:', iOS: (false, (2, 0, 0)), @@ -46772,7 +46936,7 @@ class NSMutableURLRequest extends NSURLRequest { } /// allocWithZone: - static NSMutableURLRequest allocWithZone_(ffi.Pointer zone) { + static NSMutableURLRequest allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( _class_NSMutableURLRequest, _sel_allocWithZone_, zone); return NSMutableURLRequest.castFromPointer(_ret, @@ -46808,7 +46972,7 @@ class NSMutableURLRequest extends NSURLRequest { } /// initWithCoder: - NSMutableURLRequest? initWithCoder_(objc.NSCoder coder) { + NSMutableURLRequest? initWithCoder(objc.NSCoder coder) { final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), _sel_initWithCoder_, coder.ref.pointer); return _ret.address == 0 @@ -46953,11 +47117,10 @@ class NSURLResponse extends objc.NSObject /// @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. - NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( - objc.NSURL URL, - objc.NSString? MIMEType, - DartNSInteger length, - objc.NSString? name) { + NSURLResponse initWithUrlAndMIMEType(objc.NSURL URL, + {objc.NSString? MIMEType, + required DartNSInteger length, + objc.NSString? name}) { objc.checkOsVersionInternal( 'NSURLResponse.initWithURL:MIMEType:expectedContentLength:textEncodingName:', iOS: (false, (2, 0, 0)), @@ -47073,7 +47236,7 @@ class NSURLResponse extends objc.NSObject } /// allocWithZone: - static NSURLResponse allocWithZone_(ffi.Pointer zone) { + static NSURLResponse allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428(_class_NSURLResponse, _sel_allocWithZone_, zone); return NSURLResponse.castFromPointer(_ret, retain: false, release: true); @@ -47110,13 +47273,13 @@ class NSURLResponse extends objc.NSObject } /// encodeWithCoder: - void encodeWithCoder_(objc.NSCoder coder) { + void encodeWithCoder(objc.NSCoder coder) { _objc_msgSend_xtuoz7( this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); } /// initWithCoder: - NSURLResponse? initWithCoder_(objc.NSCoder coder) { + NSURLResponse? initWithCoder(objc.NSCoder coder) { final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), _sel_initWithCoder_, coder.ref.pointer); return _ret.address == 0 @@ -47152,29 +47315,6 @@ interface class NSURLSessionTaskDelegate extends objc.ObjCProtocolBase late final _sel_delegate = objc.registerName("delegate"); late final _sel_setDelegate_ = objc.registerName("setDelegate:"); - -/// WARNING: NSProgress is a stub. To generate bindings for this class, include -/// NSProgress in your config's objc-interfaces list. -/// -/// NSProgress -class NSProgress extends objc.NSObject { - NSProgress._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSProgress', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - } - - /// Constructs a [NSProgress] that points to the same underlying object as [other]. - NSProgress.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSProgress] that wraps the given raw object pointer. - NSProgress.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); -} - late final _sel_progress = objc.registerName("progress"); ffi.Pointer _ObjCBlock_NSProgress_ffiVoid_fnPtrTrampoline( ffi.Pointer block, ffi.Pointer arg0) => @@ -47203,31 +47343,33 @@ ffi.Pointer _ObjCBlock_NSProgress_ffiVoid_closureCallable = _ObjCBlock_NSProgress_ffiVoid_closureTrampoline) .cast(); -/// Construction methods for `objc.ObjCBlock)>`. +/// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_NSProgress_ffiVoid { /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> + static objc.ObjCBlock)> castFromPointer(ffi.Pointer pointer, {bool retain = false, bool release = false}) => - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + objc.ObjCBlock)>( + pointer, + retain: retain, + release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_NSProgress_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_NSProgress_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -47237,10 +47379,10 @@ abstract final class ObjCBlock_NSProgress_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction(NSProgress Function(ffi.Pointer) fn, + static objc.ObjCBlock)> + fromFunction(objc.NSProgress Function(ffi.Pointer) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( + objc.ObjCBlock)>( objc.newClosureBlock( _ObjCBlock_NSProgress_ffiVoid_closureCallable, (ffi.Pointer arg0) => @@ -47250,22 +47392,23 @@ abstract final class ObjCBlock_NSProgress_ffiVoid { release: true); } -/// Call operator for `objc.ObjCBlock)>`. +/// Call operator for `objc.ObjCBlock)>`. extension ObjCBlock_NSProgress_ffiVoid_CallExtension - on objc.ObjCBlock)> { - NSProgress call(ffi.Pointer arg0) => NSProgress.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< + on objc.ObjCBlock)> { + objc.NSProgress call(ffi.Pointer arg0) => + objc.NSProgress.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction< ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0), - retain: true, - release: true); + ffi.Pointer, + ffi.Pointer)>()(ref.pointer, arg0), + retain: true, + release: true); } late final _sel_earliestBeginDate = objc.registerName("earliestBeginDate"); @@ -47468,9 +47611,9 @@ class NSURLSessionTask extends objc.NSObject } /// progress - NSProgress get progress { + objc.NSProgress get progress { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_progress); - return NSProgress.castFromPointer(_ret, retain: true, release: true); + return objc.NSProgress.castFromPointer(_ret, retain: true, release: true); } /// Start the network load for this task no earlier than the specified date. If @@ -47734,7 +47877,7 @@ class NSURLSessionTask extends objc.NSObject } /// allocWithZone: - static NSURLSessionTask allocWithZone_(ffi.Pointer zone) { + static NSURLSessionTask allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( _class_NSURLSessionTask, _sel_allocWithZone_, zone); return NSURLSessionTask.castFromPointer(_ret, retain: false, release: true); @@ -47770,7 +47913,7 @@ class NSURLSessionTask extends objc.NSObject late final _sel_storeCookies_forTask_ = objc.registerName("storeCookies:forTask:"); -void _ObjCBlock_ffiVoid_objcObjCObject_fnPtrTrampoline( +void _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline( ffi.Pointer block, ffi.Pointer arg0) => block.ref.target @@ -47778,24 +47921,24 @@ void _ObjCBlock_ffiVoid_objcObjCObject_fnPtrTrampoline( ffi.NativeFunction< ffi.Void Function(ffi.Pointer arg0)>>() .asFunction)>()(arg0); -ffi.Pointer _ObjCBlock_ffiVoid_objcObjCObject_fnPtrCallable = +ffi.Pointer _ObjCBlock_ffiVoid_NSArray_fnPtrCallable = ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_objcObjCObject_fnPtrTrampoline) + _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline) .cast(); -void _ObjCBlock_ffiVoid_objcObjCObject_closureTrampoline( +void _ObjCBlock_ffiVoid_NSArray_closureTrampoline( ffi.Pointer block, ffi.Pointer arg0) => (objc.getBlockClosure(block) as void Function( ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_ffiVoid_objcObjCObject_closureCallable = +ffi.Pointer _ObjCBlock_ffiVoid_NSArray_closureCallable = ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_objcObjCObject_closureTrampoline) + _ObjCBlock_ffiVoid_NSArray_closureTrampoline) .cast(); -void _ObjCBlock_ffiVoid_objcObjCObject_listenerTrampoline( +void _ObjCBlock_ffiVoid_NSArray_listenerTrampoline( ffi.Pointer block, ffi.Pointer arg0) { (objc.getBlockClosure(block) as void Function( ffi.Pointer))(arg0); @@ -47805,12 +47948,12 @@ void _ObjCBlock_ffiVoid_objcObjCObject_listenerTrampoline( ffi.NativeCallable< ffi.Void Function( ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCObject_listenerCallable = ffi.NativeCallable< + _ObjCBlock_ffiVoid_NSArray_listenerCallable = ffi.NativeCallable< ffi.Void Function(ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_objcObjCObject_listenerTrampoline) + _ObjCBlock_ffiVoid_NSArray_listenerTrampoline) ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_objcObjCObject_blockingTrampoline( +void _ObjCBlock_ffiVoid_NSArray_blockingTrampoline( ffi.Pointer block, ffi.Pointer waiter, ffi.Pointer arg0) { @@ -47827,47 +47970,45 @@ void _ObjCBlock_ffiVoid_objcObjCObject_blockingTrampoline( ffi.NativeCallable< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCObject_blockingCallable = ffi.NativeCallable< + _ObjCBlock_ffiVoid_NSArray_blockingCallable = ffi.NativeCallable< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_objcObjCObject_blockingTrampoline) + _ObjCBlock_ffiVoid_NSArray_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCObject_blockingListenerCallable = ffi - .NativeCallable< + _ObjCBlock_ffiVoid_NSArray_blockingListenerCallable = ffi.NativeCallable< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_objcObjCObject_blockingTrampoline) + _ObjCBlock_ffiVoid_NSArray_blockingTrampoline) ..keepIsolateAlive = false; -/// Construction methods for `objc.ObjCBlock?)>`. -abstract final class ObjCBlock_ffiVoid_objcObjCObject { +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSArray { /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock?)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock?)>( - pointer, - retain: retain, - release: release); + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock?)> fromFunctionPointer( + static objc.ObjCBlock fromFunctionPointer( ffi.Pointer< ffi.NativeFunction< ffi.Void Function(ffi.Pointer arg0)>> ptr) => - objc.ObjCBlock?)>( + objc.ObjCBlock( objc.newPointerBlock( - _ObjCBlock_ffiVoid_objcObjCObject_fnPtrCallable, ptr.cast()), + _ObjCBlock_ffiVoid_NSArray_fnPtrCallable, ptr.cast()), retain: false, release: true); @@ -47879,18 +48020,19 @@ abstract final class ObjCBlock_ffiVoid_objcObjCObject { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock?)> - fromFunction(void Function(objc.ObjCObjectBase?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock?)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCObject_closureCallable, - (ffi.Pointer arg0) => fn(arg0.address == 0 - ? null - : objc.ObjCObjectBase(arg0, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock fromFunction( + void Function(objc.NSArray?) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSArray_closureCallable, + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : objc.NSArray.castFromPointer(arg0, + retain: true, release: true)), + keepIsolateAlive), + retain: false, + release: true); /// Creates a listener block from a Dart function. /// @@ -47901,22 +48043,19 @@ abstract final class ObjCBlock_ffiVoid_objcObjCObject { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock?)> - listener(void Function(objc.ObjCObjectBase?) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock listener( + void Function(objc.NSArray?) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCObject_listenerCallable.nativeFunction - .cast(), + _ObjCBlock_ffiVoid_NSArray_listenerCallable.nativeFunction.cast(), (ffi.Pointer arg0) => fn(arg0.address == 0 ? null - : objc.ObjCObjectBase(arg0, retain: false, release: true)), + : objc.NSArray.castFromPointer(arg0, retain: false, release: true)), keepIsolateAlive); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock?)>( - wrapper, - retain: false, - release: true); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -47929,39 +48068,35 @@ abstract final class ObjCBlock_ffiVoid_objcObjCObject { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock?)> - blocking(void Function(objc.ObjCObjectBase?) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock blocking( + void Function(objc.NSArray?) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCObject_blockingCallable.nativeFunction - .cast(), + _ObjCBlock_ffiVoid_NSArray_blockingCallable.nativeFunction.cast(), (ffi.Pointer arg0) => fn(arg0.address == 0 ? null - : objc.ObjCObjectBase(arg0, retain: false, release: true)), + : objc.NSArray.castFromPointer(arg0, retain: false, release: true)), keepIsolateAlive); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCObject_blockingListenerCallable - .nativeFunction + _ObjCBlock_ffiVoid_NSArray_blockingListenerCallable.nativeFunction .cast(), (ffi.Pointer arg0) => fn(arg0.address == 0 ? null - : objc.ObjCObjectBase(arg0, retain: false, release: true)), + : objc.NSArray.castFromPointer(arg0, retain: false, release: true)), keepIsolateAlive); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xtuoz7( raw, rawListener, objc.objCContext); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock?)>( - wrapper, - retain: false, - release: true); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } } -/// Call operator for `objc.ObjCBlock?)>`. -extension ObjCBlock_ffiVoid_objcObjCObject_CallExtension - on objc.ObjCBlock?)> { - void call(objc.ObjCObjectBase? arg0) => ref.pointer.ref.invoke +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSArray_CallExtension + on objc.ObjCBlock { + void call(objc.NSArray? arg0) => ref.pointer.ref.invoke .cast< ffi.NativeFunction< ffi.Void Function(ffi.Pointer block, @@ -47978,19 +48113,17 @@ late final _sel_getCookiesForTask_completionHandler_ = /// NSURLSessionTaskAdditions extension NSURLSessionTaskAdditions$1 on NSHTTPCookieStorage { /// storeCookies:forTask: - void storeCookies_forTask_( - objc.ObjCObjectBase cookies, NSURLSessionTask task) { + void storeCookies(objc.NSArray cookies, {required NSURLSessionTask forTask}) { objc.checkOsVersionInternal('NSHTTPCookieStorage.storeCookies:forTask:', iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); _objc_msgSend_pfv6jd(this.ref.pointer, _sel_storeCookies_forTask_, - cookies.ref.pointer, task.ref.pointer); + cookies.ref.pointer, forTask.ref.pointer); } /// getCookiesForTask:completionHandler: - void getCookiesForTask_completionHandler_( - NSURLSessionTask task, - objc.ObjCBlock?)> - completionHandler) { + void getCookiesForTask(NSURLSessionTask task, + {required objc.ObjCBlock + completionHandler}) { objc.checkOsVersionInternal( 'NSHTTPCookieStorage.getCookiesForTask:completionHandler:', iOS: (false, (8, 0, 0)), @@ -48049,16 +48182,16 @@ late final _sel_writeToURL_atomically_ = /// NSDeprecated extension NSDeprecated on objc.NSDictionary { /// getObjects:andKeys: - void getObjects_andKeys_(ffi.Pointer> objects, - ffi.Pointer> keys) { + void getObjects(ffi.Pointer> objects, + {required ffi.Pointer> andKeys}) { objc.checkOsVersionInternal('NSDictionary.getObjects:andKeys:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); _objc_msgSend_hefmm1( - this.ref.pointer, _sel_getObjects_andKeys_, objects, keys); + this.ref.pointer, _sel_getObjects_andKeys_, objects, andKeys); } /// dictionaryWithContentsOfFile: - static objc.NSDictionary? dictionaryWithContentsOfFile_(objc.NSString path) { + static objc.NSDictionary? dictionaryWithContentsOfFile(objc.NSString path) { objc.checkOsVersionInternal('NSDictionary.dictionaryWithContentsOfFile:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r(_class_NSDictionary, @@ -48069,7 +48202,7 @@ extension NSDeprecated on objc.NSDictionary { } /// dictionaryWithContentsOfURL: - static objc.NSDictionary? dictionaryWithContentsOfURL_(objc.NSURL url) { + static objc.NSDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { objc.checkOsVersionInternal('NSDictionary.dictionaryWithContentsOfURL:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r(_class_NSDictionary, @@ -48080,7 +48213,7 @@ extension NSDeprecated on objc.NSDictionary { } /// initWithContentsOfFile: - objc.NSDictionary? initWithContentsOfFile_(objc.NSString path) { + objc.NSDictionary? initWithContentsOfFile(objc.NSString path) { objc.checkOsVersionInternal('NSDictionary.initWithContentsOfFile:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), @@ -48091,7 +48224,7 @@ extension NSDeprecated on objc.NSDictionary { } /// initWithContentsOfURL: - objc.NSDictionary? initWithContentsOfURL_(objc.NSURL url) { + objc.NSDictionary? initWithContentsOfURL(objc.NSURL url) { objc.checkOsVersionInternal('NSDictionary.initWithContentsOfURL:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), @@ -48102,15 +48235,15 @@ extension NSDeprecated on objc.NSDictionary { } /// writeToFile:atomically: - bool writeToFile_atomically_(objc.NSString path, bool useAuxiliaryFile) { + bool writeToFile(objc.NSString path, {required bool atomically}) { objc.checkOsVersionInternal('NSDictionary.writeToFile:atomically:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToFile_atomically_, - path.ref.pointer, useAuxiliaryFile); + path.ref.pointer, atomically); } /// writeToURL:atomically: - bool writeToURL_atomically_(objc.NSURL url, bool atomically) { + bool writeToURL(objc.NSURL url, {required bool atomically}) { objc.checkOsVersionInternal('NSDictionary.writeToURL:atomically:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToURL_atomically_, @@ -48194,25 +48327,28 @@ extension NSDictionaryCreation on objc.NSDictionary { } /// dictionaryWithObject:forKey: - static objc.NSDictionary dictionaryWithObject_forKey_( - objc.ObjCObjectBase object, objc.ObjCObjectBase key) { - final _ret = _objc_msgSend_15qeuct(_class_NSDictionary, - _sel_dictionaryWithObject_forKey_, object.ref.pointer, key.ref.pointer); + static objc.NSDictionary dictionaryWithObject(objc.ObjCObjectBase object, + {required objc.ObjCObjectBase forKey}) { + final _ret = _objc_msgSend_15qeuct( + _class_NSDictionary, + _sel_dictionaryWithObject_forKey_, + object.ref.pointer, + forKey.ref.pointer); return objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); } /// dictionaryWithObjects:forKeys:count: - static objc.NSDictionary dictionaryWithObjects_forKeys_count_( + static objc.NSDictionary dictionaryWithObjects( ffi.Pointer> objects, - ffi.Pointer> keys, - DartNSUInteger cnt) { + {required ffi.Pointer> forKeys, + required DartNSUInteger count}) { final _ret = _objc_msgSend_1dydpdi(_class_NSDictionary, - _sel_dictionaryWithObjects_forKeys_count_, objects, keys, cnt); + _sel_dictionaryWithObjects_forKeys_count_, objects, forKeys, count); return objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); } /// dictionaryWithObjectsAndKeys: - static objc.NSDictionary dictionaryWithObjectsAndKeys_( + static objc.NSDictionary dictionaryWithObjectsAndKeys( objc.ObjCObjectBase firstObject) { final _ret = _objc_msgSend_1sotr3r(_class_NSDictionary, _sel_dictionaryWithObjectsAndKeys_, firstObject.ref.pointer); @@ -48220,25 +48356,25 @@ extension NSDictionaryCreation on objc.NSDictionary { } /// dictionaryWithDictionary: - static objc.NSDictionary dictionaryWithDictionary_(objc.NSDictionary dict) { + static objc.NSDictionary dictionaryWithDictionary(objc.NSDictionary dict) { final _ret = _objc_msgSend_1sotr3r( _class_NSDictionary, _sel_dictionaryWithDictionary_, dict.ref.pointer); return objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); } /// dictionaryWithObjects:forKeys: - static objc.NSDictionary dictionaryWithObjects_forKeys_( - objc.ObjCObjectBase objects, objc.ObjCObjectBase keys) { + static objc.NSDictionary dictionaryWithObjects$1(objc.NSArray objects, + {required objc.NSArray forKeys}) { final _ret = _objc_msgSend_15qeuct( _class_NSDictionary, _sel_dictionaryWithObjects_forKeys_, objects.ref.pointer, - keys.ref.pointer); + forKeys.ref.pointer); return objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); } /// initWithObjectsAndKeys: - objc.NSDictionary initWithObjectsAndKeys_(objc.ObjCObjectBase firstObject) { + objc.NSDictionary initWithObjectsAndKeys(objc.ObjCObjectBase firstObject) { final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), _sel_initWithObjectsAndKeys_, firstObject.ref.pointer); return objc.NSDictionary.castFromPointer(_ret, @@ -48246,7 +48382,7 @@ extension NSDictionaryCreation on objc.NSDictionary { } /// initWithDictionary: - objc.NSDictionary initWithDictionary_(objc.NSDictionary otherDictionary) { + objc.NSDictionary initWithDictionary(objc.NSDictionary otherDictionary) { final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), _sel_initWithDictionary_, otherDictionary.ref.pointer); return objc.NSDictionary.castFromPointer(_ret, @@ -48254,26 +48390,32 @@ extension NSDictionaryCreation on objc.NSDictionary { } /// initWithDictionary:copyItems: - objc.NSDictionary initWithDictionary_copyItems_( - objc.NSDictionary otherDictionary, bool flag) { - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_copyItems_, otherDictionary.ref.pointer, flag); + objc.NSDictionary initWithDictionary$1(objc.NSDictionary otherDictionary, + {required bool copyItems}) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_copyItems_, + otherDictionary.ref.pointer, + copyItems); return objc.NSDictionary.castFromPointer(_ret, retain: false, release: true); } /// initWithObjects:forKeys: - objc.NSDictionary initWithObjects_forKeys_( - objc.ObjCObjectBase objects, objc.ObjCObjectBase keys) { - final _ret = _objc_msgSend_15qeuct(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_, objects.ref.pointer, keys.ref.pointer); + objc.NSDictionary initWithObjects(objc.NSArray objects, + {required objc.NSArray forKeys}) { + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_, + objects.ref.pointer, + forKeys.ref.pointer); return objc.NSDictionary.castFromPointer(_ret, retain: false, release: true); } /// initWithContentsOfURL:error: - objc.NSDictionary? initWithContentsOfURL_error_( - objc.NSURL url, ffi.Pointer> error) { + objc.NSDictionary? initWithContentsOfURL(objc.NSURL url, + {required ffi.Pointer> error}) { objc.checkOsVersionInternal('NSDictionary.initWithContentsOfURL:error:', iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); final _ret = _objc_msgSend_1lhpu4m(this.ref.retainAndReturnPointer(), @@ -48284,8 +48426,8 @@ extension NSDictionaryCreation on objc.NSDictionary { } /// dictionaryWithContentsOfURL:error: - static objc.NSDictionary? dictionaryWithContentsOfURL_error_( - objc.NSURL url, ffi.Pointer> error) { + static objc.NSDictionary? dictionaryWithContentsOfURL(objc.NSURL url, + {required ffi.Pointer> error}) { objc.checkOsVersionInternal( 'NSDictionary.dictionaryWithContentsOfURL:error:', iOS: (false, (11, 0, 0)), @@ -48313,7 +48455,7 @@ final _objc_msgSend_14hpxwa = objc.msgSendPointer /// NSMutableDictionaryCreation extension NSMutableDictionaryCreation on objc.NSMutableDictionary { /// dictionaryWithCapacity: - static objc.NSMutableDictionary dictionaryWithCapacity_( + static objc.NSMutableDictionary dictionaryWithCapacity( DartNSUInteger numItems) { final _ret = _objc_msgSend_14hpxwa( _class_NSMutableDictionary, _sel_dictionaryWithCapacity_, numItems); @@ -48322,7 +48464,7 @@ extension NSMutableDictionaryCreation on objc.NSMutableDictionary { } /// dictionaryWithContentsOfFile: - static objc.NSMutableDictionary? dictionaryWithContentsOfFile_( + static objc.NSMutableDictionary? dictionaryWithContentsOfFile( objc.NSString path) { final _ret = _objc_msgSend_1sotr3r(_class_NSMutableDictionary, _sel_dictionaryWithContentsOfFile_, path.ref.pointer); @@ -48333,8 +48475,7 @@ extension NSMutableDictionaryCreation on objc.NSMutableDictionary { } /// dictionaryWithContentsOfURL: - static objc.NSMutableDictionary? dictionaryWithContentsOfURL_( - objc.NSURL url) { + static objc.NSMutableDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { final _ret = _objc_msgSend_1sotr3r(_class_NSMutableDictionary, _sel_dictionaryWithContentsOfURL_, url.ref.pointer); return _ret.address == 0 @@ -48344,7 +48485,7 @@ extension NSMutableDictionaryCreation on objc.NSMutableDictionary { } /// initWithContentsOfFile: - objc.NSMutableDictionary? initWithContentsOfFile_(objc.NSString path) { + objc.NSMutableDictionary? initWithContentsOfFile(objc.NSString path) { final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), _sel_initWithContentsOfFile_, path.ref.pointer); return _ret.address == 0 @@ -48354,7 +48495,7 @@ extension NSMutableDictionaryCreation on objc.NSMutableDictionary { } /// initWithContentsOfURL: - objc.NSMutableDictionary? initWithContentsOfURL_(objc.NSURL url) { + objc.NSMutableDictionary? initWithContentsOfURL(objc.NSURL url) { final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), _sel_initWithContentsOfURL_, url.ref.pointer); return _ret.address == 0 @@ -48370,7 +48511,7 @@ late final _sel_sharedKeySetForKeys_ = /// NSSharedKeySetDictionary extension NSSharedKeySetDictionary on objc.NSDictionary { /// sharedKeySetForKeys: - static objc.ObjCObjectBase sharedKeySetForKeys_(objc.ObjCObjectBase keys) { + static objc.ObjCObjectBase sharedKeySetForKeys(objc.NSArray keys) { objc.checkOsVersionInternal('NSDictionary.sharedKeySetForKeys:', iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -48385,7 +48526,7 @@ late final _sel_dictionaryWithSharedKeySet_ = /// NSSharedKeySetDictionary extension NSSharedKeySetDictionary$1 on objc.NSMutableDictionary { /// dictionaryWithSharedKeySet: - static objc.NSMutableDictionary dictionaryWithSharedKeySet_( + static objc.NSMutableDictionary dictionaryWithSharedKeySet( objc.ObjCObjectBase keyset) { objc.checkOsVersionInternal( 'NSMutableDictionary.dictionaryWithSharedKeySet:', @@ -48571,12 +48712,12 @@ extension ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSU /// NSGenericFastEnumeration extension NSGenericFastEnumeration on objc.NSDictionary { /// countByEnumeratingWithState:objects:count: - DartNSUInteger countByEnumeratingWithState_objects_count_( + DartNSUInteger countByEnumeratingWithState( ffi.Pointer state, - ffi.Pointer> buffer, - DartNSUInteger len) { + {required ffi.Pointer> objects, + required DartNSUInteger count}) { return _objc_msgSend_1b5ysjl(this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, state, buffer, len); + _sel_countByEnumeratingWithState_objects_count_, state, objects, count); } } @@ -48623,33 +48764,33 @@ ffi.Pointer _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureTrampoline) .cast(); -/// Construction methods for `objc.ObjCBlock? Function(NSProgress)>`. +/// Construction methods for `objc.ObjCBlock? Function(objc.NSProgress)>`. abstract final class ObjCBlock_NSProgressUnpublishingHandler_NSProgress { /// Returns a block that wraps the given raw block pointer. static objc - .ObjCBlock? Function(NSProgress)> + .ObjCBlock? Function(objc.NSProgress)> castFromPointer(ffi.Pointer pointer, {bool retain = false, bool release = false}) => objc.ObjCBlock< objc.ObjCBlock? Function( - NSProgress)>(pointer, retain: retain, release: release); + objc.NSProgress)>(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock? Function(NSProgress)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock? Function(NSProgress)>( - objc.newPointerBlock( - _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock? Function(objc.NSProgress)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock? Function(objc.NSProgress)>( + objc.newPointerBlock(_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -48660,14 +48801,14 @@ abstract final class ObjCBlock_NSProgressUnpublishingHandler_NSProgress { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc - .ObjCBlock? Function(NSProgress)> - fromFunction(DartNSProgressUnpublishingHandler? Function(NSProgress) fn, + .ObjCBlock? Function(objc.NSProgress)> + fromFunction(DartNSProgressUnpublishingHandler? Function(objc.NSProgress) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock? Function(NSProgress)>( + objc.ObjCBlock? Function(objc.NSProgress)>( objc.newClosureBlock( _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureCallable, (ffi.Pointer arg0) => - fn(NSProgress.castFromPointer(arg0, retain: true, release: true)) + fn(objc.NSProgress.castFromPointer(arg0, retain: true, release: true)) ?.ref .retainAndAutorelease() ?? ffi.nullptr, @@ -48676,11 +48817,11 @@ abstract final class ObjCBlock_NSProgressUnpublishingHandler_NSProgress { release: true); } -/// Call operator for `objc.ObjCBlock? Function(NSProgress)>`. +/// Call operator for `objc.ObjCBlock? Function(objc.NSProgress)>`. extension ObjCBlock_NSProgressUnpublishingHandler_NSProgress_CallExtension on objc - .ObjCBlock? Function(NSProgress)> { - DartNSProgressUnpublishingHandler? call(NSProgress arg0) => ref.pointer.ref.invoke + .ObjCBlock? Function(objc.NSProgress)> { + DartNSProgressUnpublishingHandler? call(objc.NSProgress arg0) => ref.pointer.ref.invoke .cast< ffi.NativeFunction< NSProgressUnpublishingHandler Function( @@ -48694,15 +48835,14 @@ extension ObjCBlock_NSProgressUnpublishingHandler_NSProgress_CallExtension : ObjCBlock_ffiVoid.castFromPointer( ref.pointer.ref.invoke.cast block, ffi.Pointer arg0)>>().asFunction< NSProgressUnpublishingHandler Function( - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0.ref.pointer), + ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0.ref.pointer), retain: true, release: true); } typedef NSProgressPublishingHandler = ffi.Pointer; -typedef DartNSProgressPublishingHandler - = objc.ObjCBlock? Function(NSProgress)>; +typedef DartNSProgressPublishingHandler = objc + .ObjCBlock? Function(objc.NSProgress)>; typedef CFArrayRetainCallBackFunction = ffi.Pointer Function( CFAllocatorRef allocator, ffi.Pointer value); typedef CFArrayRetainCallBack @@ -48999,6 +49139,9 @@ final class lconv extends ffi.Struct { external int int_n_sign_posn; } +final class _xlocale extends ffi.Opaque {} + +typedef locale_t = ffi.Pointer<_xlocale>; typedef float_t = ffi.Float; typedef Dartfloat_t = double; typedef double_t = ffi.Double; @@ -49733,22 +49876,6 @@ enum CFCalendarUnit { typedef CGFloat = ffi.Double; typedef DartCGFloat = double; -final class CGPoint extends ffi.Struct { - @CGFloat() - external double x; - - @CGFloat() - external double y; -} - -final class CGSize extends ffi.Struct { - @CGFloat() - external double width; - - @CGFloat() - external double height; -} - final class CGVector extends ffi.Struct { @CGFloat() external double dx; @@ -49757,12 +49884,6 @@ final class CGVector extends ffi.Struct { external double dy; } -final class CGRect extends ffi.Struct { - external CGPoint origin; - - external CGSize size; -} - final class CGAffineTransform extends ffi.Struct { @CGFloat() external double a; @@ -49784,7 +49905,7 @@ final class CGAffineTransform extends ffi.Struct { } final class CGAffineTransformComponents extends ffi.Struct { - external CGSize scale; + external objc.CGSize scale; @CGFloat() external double horizontalShear; @@ -50217,10 +50338,7 @@ final class mach_port_options extends ffi.Struct { typedef mach_port_options_t = mach_port_options; typedef mach_port_options_ptr_t = ffi.Pointer; typedef CFRunLoopMode = CFStringRef; - -final class __CFRunLoop extends ffi.Opaque {} - -typedef CFRunLoopRef = ffi.Pointer<__CFRunLoop>; +typedef CFRunLoopRef = ffi.Pointer; final class __CFRunLoopSource extends ffi.Opaque {} @@ -59758,7 +59876,7 @@ 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_( + void cancelByProducingResumeData( objc.ObjCBlock completionHandler) { objc.checkOsVersionInternal( 'NSURLSessionDownloadTask.cancelByProducingResumeData:', @@ -60118,11 +60236,10 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { /// data. Errors will be returned in the NSURLErrorDomain, /// see . The delegate, if any, will still be /// called for authentication challenges. - NSURLSessionDataTask dataTaskWithRequest_completionHandler_( - NSURLRequest request, - objc.ObjCBlock< + NSURLSessionDataTask dataTaskWithRequest(NSURLRequest request, + {required objc.ObjCBlock< ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?)> - completionHandler) { + completionHandler}) { objc.checkOsVersionInternal( 'NSURLSession.dataTaskWithRequest:completionHandler:', iOS: (false, (7, 0, 0)), @@ -60137,11 +60254,10 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { } /// dataTaskWithURL:completionHandler: - NSURLSessionDataTask dataTaskWithURL_completionHandler_( - objc.NSURL url, - objc.ObjCBlock< + NSURLSessionDataTask dataTaskWithURL(objc.NSURL url, + {required objc.ObjCBlock< ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?)> - completionHandler) { + completionHandler}) { objc.checkOsVersionInternal( 'NSURLSession.dataTaskWithURL:completionHandler:', iOS: (false, (7, 0, 0)), @@ -60156,12 +60272,11 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { } /// upload convenience method. - NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( - NSURLRequest request, - objc.NSURL fileURL, - objc.ObjCBlock< + NSURLSessionUploadTask uploadTaskWithRequest(NSURLRequest request, + {required objc.NSURL fromFile, + required objc.ObjCBlock< ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?)> - completionHandler) { + completionHandler}) { objc.checkOsVersionInternal( 'NSURLSession.uploadTaskWithRequest:fromFile:completionHandler:', iOS: (false, (7, 0, 0)), @@ -60170,19 +60285,18 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { this.ref.pointer, _sel_uploadTaskWithRequest_fromFile_completionHandler_, request.ref.pointer, - fileURL.ref.pointer, + fromFile.ref.pointer, completionHandler.ref.pointer); return NSURLSessionUploadTask.castFromPointer(_ret, retain: true, release: true); } /// uploadTaskWithRequest:fromData:completionHandler: - NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( - NSURLRequest request, - objc.NSData? bodyData, - objc.ObjCBlock< + NSURLSessionUploadTask uploadTaskWithRequest$1(NSURLRequest request, + {objc.NSData? fromData, + required objc.ObjCBlock< ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?)> - completionHandler) { + completionHandler}) { objc.checkOsVersionInternal( 'NSURLSession.uploadTaskWithRequest:fromData:completionHandler:', iOS: (false, (7, 0, 0)), @@ -60191,7 +60305,7 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { this.ref.pointer, _sel_uploadTaskWithRequest_fromData_completionHandler_, request.ref.pointer, - bodyData?.ref.pointer ?? ffi.nullptr, + fromData?.ref.pointer ?? ffi.nullptr, completionHandler.ref.pointer); return NSURLSessionUploadTask.castFromPointer(_ret, retain: true, release: true); @@ -60203,11 +60317,10 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { /// - 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_( - objc.NSData resumeData, - objc.ObjCBlock< + NSURLSessionUploadTask uploadTaskWithResumeData(objc.NSData resumeData, + {required objc.ObjCBlock< ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?)> - completionHandler) { + completionHandler}) { objc.checkOsVersionInternal( 'NSURLSession.uploadTaskWithResumeData:completionHandler:', iOS: (false, (17, 0, 0)), @@ -60225,11 +60338,10 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { /// 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, - objc.ObjCBlock< + NSURLSessionDownloadTask downloadTaskWithRequest(NSURLRequest request, + {required objc.ObjCBlock< ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?)> - completionHandler) { + completionHandler}) { objc.checkOsVersionInternal( 'NSURLSession.downloadTaskWithRequest:completionHandler:', iOS: (false, (7, 0, 0)), @@ -60244,11 +60356,10 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { } /// downloadTaskWithURL:completionHandler: - NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_( - objc.NSURL url, - objc.ObjCBlock< + NSURLSessionDownloadTask downloadTaskWithURL(objc.NSURL url, + {required objc.ObjCBlock< ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?)> - completionHandler) { + completionHandler}) { objc.checkOsVersionInternal( 'NSURLSession.downloadTaskWithURL:completionHandler:', iOS: (false, (7, 0, 0)), @@ -60263,11 +60374,10 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { } /// downloadTaskWithResumeData:completionHandler: - NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( - objc.NSData resumeData, - objc.ObjCBlock< + NSURLSessionDownloadTask downloadTaskWithResumeData(objc.NSData resumeData, + {required objc.ObjCBlock< ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?)> - completionHandler) { + completionHandler}) { objc.checkOsVersionInternal( 'NSURLSession.downloadTaskWithResumeData:completionHandler:', iOS: (false, (7, 0, 0)), @@ -60291,7 +60401,7 @@ late final _sel_backgroundSessionConfiguration_ = /// NSURLSessionDeprecated extension NSURLSessionDeprecated on NSURLSessionConfiguration { /// backgroundSessionConfiguration: - static NSURLSessionConfiguration backgroundSessionConfiguration_( + static NSURLSessionConfiguration backgroundSessionConfiguration( objc.NSString identifier) { objc.checkOsVersionInternal( 'NSURLSessionConfiguration.backgroundSessionConfiguration:', @@ -60525,6 +60635,10 @@ final _objc_msgSend_1hx005a = objc.msgSendPointer .asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); +late final _sel_usesClassicLoadingMode = + objc.registerName("usesClassicLoadingMode"); +late final _sel_setUsesClassicLoadingMode_ = + objc.registerName("setUsesClassicLoadingMode:"); /// Configuration options for an NSURLSession. When a session is /// created, a copy of the configuration object is made - you cannot @@ -60587,8 +60701,8 @@ class NSURLSessionConfiguration extends objc.NSObject } /// backgroundSessionConfigurationWithIdentifier: - static NSURLSessionConfiguration - backgroundSessionConfigurationWithIdentifier_(objc.NSString identifier) { + static NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier( + objc.NSString identifier) { objc.checkOsVersionInternal( 'NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier:', iOS: (false, (8, 0, 0)), @@ -61159,8 +61273,7 @@ class NSURLSessionConfiguration extends objc.NSObject this.ref.pointer, _sel_setURLCache_, value?.ref.pointer ?? ffi.nullptr); } - /// 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) + /// shouldUseExtendedBackgroundIdleMode bool get shouldUseExtendedBackgroundIdleMode { objc.checkOsVersionInternal( 'NSURLSessionConfiguration.shouldUseExtendedBackgroundIdleMode', @@ -61170,8 +61283,7 @@ class NSURLSessionConfiguration extends objc.NSObject this.ref.pointer, _sel_shouldUseExtendedBackgroundIdleMode); } - /// 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) + /// setShouldUseExtendedBackgroundIdleMode: set shouldUseExtendedBackgroundIdleMode(bool value) { objc.checkOsVersionInternal( 'NSURLSessionConfiguration.setShouldUseExtendedBackgroundIdleMode:', @@ -61189,13 +61301,13 @@ class NSURLSessionConfiguration extends objc.NSObject /// than with an instance of NSURLSession. /// Custom NSURLProtocol subclasses are not available to background /// sessions. - objc.ObjCObjectBase? get protocolClasses { + objc.NSArray? get protocolClasses { objc.checkOsVersionInternal('NSURLSessionConfiguration.protocolClasses', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_protocolClasses); return _ret.address == 0 ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); + : objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// An optional array of Class objects which subclass NSURLProtocol. @@ -61206,7 +61318,7 @@ class NSURLSessionConfiguration extends objc.NSObject /// than with an instance of NSURLSession. /// Custom NSURLProtocol subclasses are not available to background /// sessions. - set protocolClasses(objc.ObjCObjectBase? value) { + set protocolClasses(objc.NSArray? value) { objc.checkOsVersionInternal('NSURLSessionConfiguration.setProtocolClasses:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setProtocolClasses_, @@ -61234,6 +61346,33 @@ class NSURLSessionConfiguration extends objc.NSObject this.ref.pointer, _sel_setMultipathServiceType_, value.value); } + /// Uses the classic network loader. + /// + /// NOTE: FTP and HTTP/1 pipelining are only supported in the classic loading mode. + /// + /// Defaults to YES. The default may be NO in a future OS update. + bool get usesClassicLoadingMode { + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.usesClassicLoadingMode', + iOS: (false, (18, 4, 0)), + macOS: (false, (15, 4, 0))); + return _objc_msgSend_91o635(this.ref.pointer, _sel_usesClassicLoadingMode); + } + + /// Uses the classic network loader. + /// + /// NOTE: FTP and HTTP/1 pipelining are only supported in the classic loading mode. + /// + /// Defaults to YES. The default may be NO in a future OS update. + set usesClassicLoadingMode(bool value) { + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.setUsesClassicLoadingMode:', + iOS: (false, (18, 4, 0)), + macOS: (false, (15, 4, 0))); + _objc_msgSend_1s56lr9( + this.ref.pointer, _sel_setUsesClassicLoadingMode_, value); + } + /// init NSURLSessionConfiguration init() { objc.checkOsVersionInternal('NSURLSessionConfiguration.init', @@ -61253,7 +61392,7 @@ class NSURLSessionConfiguration extends objc.NSObject } /// allocWithZone: - static NSURLSessionConfiguration allocWithZone_( + static NSURLSessionConfiguration allocWithZone( ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( _class_NSURLSessionConfiguration, _sel_allocWithZone_, zone); @@ -61438,30 +61577,33 @@ class NSOperationQueue extends objc.NSObject implements NSProgressReporting { } /// progress - NSProgress get progress { + objc.NSProgress get progress { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_progress); - return NSProgress.castFromPointer(_ret, retain: true, release: true); + return objc.NSProgress.castFromPointer(_ret, retain: true, release: true); } /// addOperation: - void addOperation_(NSOperation op) { + void addOperation(NSOperation op) { objc.checkOsVersionInternal('NSOperationQueue.addOperation:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); _objc_msgSend_xtuoz7(this.ref.pointer, _sel_addOperation_, op.ref.pointer); } /// addOperations:waitUntilFinished: - void addOperations_waitUntilFinished_(objc.NSArray ops, bool wait) { + void addOperations(objc.NSArray ops, {required bool waitUntilFinished}) { objc.checkOsVersionInternal( 'NSOperationQueue.addOperations:waitUntilFinished:', iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); - _objc_msgSend_6p7ndb(this.ref.pointer, - _sel_addOperations_waitUntilFinished_, ops.ref.pointer, wait); + _objc_msgSend_6p7ndb( + this.ref.pointer, + _sel_addOperations_waitUntilFinished_, + ops.ref.pointer, + waitUntilFinished); } /// addOperationWithBlock: - void addOperationWithBlock_(objc.ObjCBlock block) { + void addOperationWithBlock(objc.ObjCBlock block) { objc.checkOsVersionInternal('NSOperationQueue.addOperationWithBlock:', iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); _objc_msgSend_f167m6( @@ -61473,7 +61615,7 @@ class NSOperationQueue extends objc.NSObject implements NSProgressReporting { /// @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_(objc.ObjCBlock barrier) { + void addBarrierBlock(objc.ObjCBlock barrier) { objc.checkOsVersionInternal('NSOperationQueue.addBarrierBlock:', iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); _objc_msgSend_f167m6( @@ -61531,15 +61673,15 @@ class NSOperationQueue extends objc.NSObject implements NSProgressReporting { } /// qualityOfService - NSQualityOfService get qualityOfService { + objc.NSQualityOfService get qualityOfService { objc.checkOsVersionInternal('NSOperationQueue.qualityOfService', iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); final _ret = _objc_msgSend_oi8iq9(this.ref.pointer, _sel_qualityOfService); - return NSQualityOfService.fromValue(_ret); + return objc.NSQualityOfService.fromValue(_ret); } /// setQualityOfService: - set qualityOfService(NSQualityOfService value) { + set qualityOfService(objc.NSQualityOfService value) { objc.checkOsVersionInternal('NSOperationQueue.setQualityOfService:', iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); _objc_msgSend_n2da1l( @@ -61616,7 +61758,7 @@ class NSOperationQueue extends objc.NSObject implements NSProgressReporting { } /// allocWithZone: - static NSOperationQueue allocWithZone_(ffi.Pointer zone) { + static NSOperationQueue allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( _class_NSOperationQueue, _sel_allocWithZone_, zone); return NSOperationQueue.castFromPointer(_ret, retain: false, release: true); @@ -61664,60 +61806,56 @@ late final _sel_resetWithCompletionHandler_ = objc.registerName("resetWithCompletionHandler:"); late final _sel_flushWithCompletionHandler_ = objc.registerName("flushWithCompletionHandler:"); -void - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2); -ffi.Pointer - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_fnPtrCallable = +void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrCallable = ffi.Pointer.fromFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_fnPtrTrampoline) + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline) .cast(); -void - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); +void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + (objc.getBlockClosure(block) as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_closureCallable = + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureCallable = ffi.Pointer.fromFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_closureTrampoline) + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) .cast(); -void - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { +void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { (objc.getBlockClosure(block) as void Function( ffi.Pointer, ffi.Pointer, @@ -61731,22 +61869,21 @@ ffi.NativeCallable< ffi.Pointer, ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_listenerCallable = - ffi.NativeCallable< + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_listenerCallable = ffi + .NativeCallable< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_listenerTrampoline) + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_listenerTrampoline) ..keepIsolateAlive = false; -void - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { +void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { try { (objc.getBlockClosure(block) as void Function( ffi.Pointer, @@ -61766,15 +61903,15 @@ ffi.NativeCallable< ffi.Pointer, ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_blockingCallable = - ffi.NativeCallable< + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingCallable = ffi + .NativeCallable< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_blockingTrampoline) + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< ffi.Void Function( @@ -61783,49 +61920,45 @@ ffi.NativeCallable< ffi.Pointer, ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_blockingListenerCallable = - ffi.NativeCallable< + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingListenerCallable = ffi + .NativeCallable< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_blockingTrampoline) + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingTrampoline) ..keepIsolateAlive = false; -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject { +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray { /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> + static objc + .ObjCBlock castFromPointer(ffi.Pointer pointer, {bool retain = false, bool release = false}) => objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(pointer, - retain: retain, release: release); + ffi.Void Function(objc.NSArray, objc.NSArray, + objc.NSArray)>(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>> ptr) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -61835,19 +61968,19 @@ abstract final class ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObj /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, ffi.Pointer, ffi.Pointer)> - fromFunction(void Function(objc.ObjCObjectBase, objc.ObjCObjectBase, objc.ObjCObjectBase) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( - objc.ObjCObjectBase(arg0, retain: true, release: true), - objc.ObjCObjectBase(arg1, retain: true, release: true), - objc.ObjCObjectBase(arg2, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock fromFunction( + void Function(objc.NSArray, objc.NSArray, objc.NSArray) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + objc.NSArray.castFromPointer(arg0, retain: true, release: true), + objc.NSArray.castFromPointer(arg1, retain: true, release: true), + objc.NSArray.castFromPointer(arg2, retain: true, release: true)), + keepIsolateAlive), + retain: false, + release: true); /// Creates a listener block from a Dart function. /// @@ -61858,32 +61991,29 @@ abstract final class ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObj /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> listener( - void Function( - objc.ObjCObjectBase, objc.ObjCObjectBase, objc.ObjCObjectBase) - fn, - {bool keepIsolateAlive = true}) { + static objc + .ObjCBlock + listener(void Function(objc.NSArray, objc.NSArray, objc.NSArray) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_listenerCallable + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_listenerCallable .nativeFunction .cast(), (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - objc.ObjCObjectBase(arg2, retain: false, release: true)), + objc.NSArray.castFromPointer(arg0, + retain: false, release: true), + objc.NSArray.castFromPointer(arg1, + retain: false, release: true), + objc.NSArray.castFromPointer(arg2, + retain: false, release: true)), keepIsolateAlive); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_r8gdi7(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(wrapper, - retain: false, release: true); + ffi.Void Function(objc.NSArray, objc.NSArray, + objc.NSArray)>(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -61896,55 +62026,52 @@ abstract final class ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObj /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> blocking( - void Function( - objc.ObjCObjectBase, objc.ObjCObjectBase, objc.ObjCObjectBase) - fn, - {bool keepIsolateAlive = true}) { + static objc + .ObjCBlock + blocking(void Function(objc.NSArray, objc.NSArray, objc.NSArray) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_blockingCallable + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingCallable .nativeFunction .cast(), (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - objc.ObjCObjectBase(arg2, retain: false, release: true)), + objc.NSArray.castFromPointer(arg0, + retain: false, release: true), + objc.NSArray.castFromPointer(arg1, + retain: false, release: true), + objc.NSArray.castFromPointer(arg2, + retain: false, release: true)), keepIsolateAlive); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_blockingListenerCallable + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingListenerCallable .nativeFunction .cast(), (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - objc.ObjCObjectBase(arg2, retain: false, release: true)), + objc.NSArray.castFromPointer(arg0, + retain: false, release: true), + objc.NSArray.castFromPointer(arg1, + retain: false, release: true), + objc.NSArray.castFromPointer(arg2, + retain: false, release: true)), keepIsolateAlive); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_r8gdi7( raw, rawListener, objc.objCContext); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(wrapper, - retain: false, release: true); + ffi.Void Function(objc.NSArray, objc.NSArray, + objc.NSArray)>(wrapper, retain: false, release: true); } } -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> { - void call(objc.ObjCObjectBase arg0, objc.ObjCObjectBase arg1, - objc.ObjCObjectBase arg2) => +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_CallExtension on objc + .ObjCBlock { + void call(objc.NSArray arg0, objc.NSArray arg1, objc.NSArray arg2) => ref.pointer.ref.invoke .cast< ffi.NativeFunction< @@ -61964,7 +62091,7 @@ extension ObjCBlock_ffiVoid_objcObjCObject_objcObjCObject_objcObjCObject_CallExt late final _sel_getTasksWithCompletionHandler_ = objc.registerName("getTasksWithCompletionHandler:"); -void _ObjCBlock_ffiVoid_objcObjCObject$1_fnPtrTrampoline( +void _ObjCBlock_ffiVoid_NSArray$1_fnPtrTrampoline( ffi.Pointer block, ffi.Pointer arg0) => block.ref.target @@ -61972,24 +62099,24 @@ void _ObjCBlock_ffiVoid_objcObjCObject$1_fnPtrTrampoline( ffi.NativeFunction< ffi.Void Function(ffi.Pointer arg0)>>() .asFunction)>()(arg0); -ffi.Pointer _ObjCBlock_ffiVoid_objcObjCObject$1_fnPtrCallable = +ffi.Pointer _ObjCBlock_ffiVoid_NSArray$1_fnPtrCallable = ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_objcObjCObject$1_fnPtrTrampoline) + _ObjCBlock_ffiVoid_NSArray$1_fnPtrTrampoline) .cast(); -void _ObjCBlock_ffiVoid_objcObjCObject$1_closureTrampoline( +void _ObjCBlock_ffiVoid_NSArray$1_closureTrampoline( ffi.Pointer block, ffi.Pointer arg0) => (objc.getBlockClosure(block) as void Function( ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_ffiVoid_objcObjCObject$1_closureCallable = +ffi.Pointer _ObjCBlock_ffiVoid_NSArray$1_closureCallable = ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_objcObjCObject$1_closureTrampoline) + _ObjCBlock_ffiVoid_NSArray$1_closureTrampoline) .cast(); -void _ObjCBlock_ffiVoid_objcObjCObject$1_listenerTrampoline( +void _ObjCBlock_ffiVoid_NSArray$1_listenerTrampoline( ffi.Pointer block, ffi.Pointer arg0) { (objc.getBlockClosure(block) as void Function( ffi.Pointer))(arg0); @@ -61999,12 +62126,12 @@ void _ObjCBlock_ffiVoid_objcObjCObject$1_listenerTrampoline( ffi.NativeCallable< ffi.Void Function( ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCObject$1_listenerCallable = ffi.NativeCallable< + _ObjCBlock_ffiVoid_NSArray$1_listenerCallable = ffi.NativeCallable< ffi.Void Function(ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_objcObjCObject$1_listenerTrampoline) + _ObjCBlock_ffiVoid_NSArray$1_listenerTrampoline) ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_objcObjCObject$1_blockingTrampoline( +void _ObjCBlock_ffiVoid_NSArray$1_blockingTrampoline( ffi.Pointer block, ffi.Pointer waiter, ffi.Pointer arg0) { @@ -62021,47 +62148,45 @@ void _ObjCBlock_ffiVoid_objcObjCObject$1_blockingTrampoline( ffi.NativeCallable< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCObject$1_blockingCallable = ffi.NativeCallable< + _ObjCBlock_ffiVoid_NSArray$1_blockingCallable = ffi.NativeCallable< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_objcObjCObject$1_blockingTrampoline) + _ObjCBlock_ffiVoid_NSArray$1_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCObject$1_blockingListenerCallable = ffi - .NativeCallable< + _ObjCBlock_ffiVoid_NSArray$1_blockingListenerCallable = ffi.NativeCallable< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_objcObjCObject$1_blockingTrampoline) + _ObjCBlock_ffiVoid_NSArray$1_blockingTrampoline) ..keepIsolateAlive = false; -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_objcObjCObject$1 { +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSArray$1 { /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>( - pointer, - retain: retain, - release: release); + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock)> fromFunctionPointer( + static objc.ObjCBlock fromFunctionPointer( ffi.Pointer< ffi.NativeFunction< ffi.Void Function(ffi.Pointer arg0)>> ptr) => - objc.ObjCBlock)>( + objc.ObjCBlock( objc.newPointerBlock( - _ObjCBlock_ffiVoid_objcObjCObject$1_fnPtrCallable, ptr.cast()), + _ObjCBlock_ffiVoid_NSArray$1_fnPtrCallable, ptr.cast()), retain: false, release: true); @@ -62073,17 +62198,18 @@ abstract final class ObjCBlock_ffiVoid_objcObjCObject$1 { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction(void Function(objc.ObjCObjectBase) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCObject$1_closureCallable, - (ffi.Pointer arg0) => fn( - objc.ObjCObjectBase(arg0, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock fromFunction( + void Function(objc.NSArray) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSArray$1_closureCallable, + (ffi.Pointer arg0) => fn( + objc.NSArray.castFromPointer(arg0, + retain: true, release: true)), + keepIsolateAlive), + retain: false, + release: true); /// Creates a listener block from a Dart function. /// @@ -62094,21 +62220,18 @@ abstract final class ObjCBlock_ffiVoid_objcObjCObject$1 { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - listener(void Function(objc.ObjCObjectBase) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock listener( + void Function(objc.NSArray) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCObject$1_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => - fn(objc.ObjCObjectBase(arg0, retain: false, release: true)), + _ObjCBlock_ffiVoid_NSArray$1_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + objc.NSArray.castFromPointer(arg0, retain: false, release: true)), keepIsolateAlive); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -62121,37 +62244,33 @@ abstract final class ObjCBlock_ffiVoid_objcObjCObject$1 { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> - blocking(void Function(objc.ObjCObjectBase) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock blocking( + void Function(objc.NSArray) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCObject$1_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => - fn(objc.ObjCObjectBase(arg0, retain: false, release: true)), + _ObjCBlock_ffiVoid_NSArray$1_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + objc.NSArray.castFromPointer(arg0, retain: false, release: true)), keepIsolateAlive); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCObject$1_blockingListenerCallable - .nativeFunction + _ObjCBlock_ffiVoid_NSArray$1_blockingListenerCallable.nativeFunction .cast(), - (ffi.Pointer arg0) => - fn(objc.ObjCObjectBase(arg0, retain: false, release: true)), + (ffi.Pointer arg0) => fn( + objc.NSArray.castFromPointer(arg0, retain: false, release: true)), keepIsolateAlive); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xtuoz7( raw, rawListener, objc.objCContext); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } } -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_objcObjCObject$1_CallExtension - on objc.ObjCBlock)> { - void call(objc.ObjCObjectBase arg0) => ref.pointer.ref.invoke +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSArray$1_CallExtension + on objc.ObjCBlock { + void call(objc.NSArray arg0) => ref.pointer.ref.invoke .cast< ffi.NativeFunction< ffi.Void Function(ffi.Pointer block, @@ -62324,7 +62443,7 @@ class NSURLSessionWebSocketMessage extends objc.NSObject { } /// Create a message with data type - NSURLSessionWebSocketMessage initWithData_(objc.NSData data) { + NSURLSessionWebSocketMessage initWithData(objc.NSData data) { objc.checkOsVersionInternal('NSURLSessionWebSocketMessage.initWithData:', iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), @@ -62334,7 +62453,7 @@ class NSURLSessionWebSocketMessage extends objc.NSObject { } /// Create a message with string type - NSURLSessionWebSocketMessage initWithString_(objc.NSString string) { + NSURLSessionWebSocketMessage initWithString(objc.NSString string) { objc.checkOsVersionInternal('NSURLSessionWebSocketMessage.initWithString:', iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), @@ -62390,7 +62509,7 @@ class NSURLSessionWebSocketMessage extends objc.NSObject { } /// allocWithZone: - static NSURLSessionWebSocketMessage allocWithZone_( + static NSURLSessionWebSocketMessage allocWithZone( ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( _class_NSURLSessionWebSocketMessage, _sel_allocWithZone_, zone); @@ -62978,8 +63097,9 @@ 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, - objc.ObjCBlock completionHandler) { + void sendMessage(NSURLSessionWebSocketMessage message, + {required objc.ObjCBlock + completionHandler}) { objc.checkOsVersionInternal( 'NSURLSessionWebSocketTask.sendMessage:completionHandler:', iOS: (false, (13, 0, 0)), @@ -62991,7 +63111,7 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { /// 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_( + void receiveMessageWithCompletionHandler( objc.ObjCBlock< ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?)> completionHandler) { @@ -63009,7 +63129,7 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { /// 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_( + void sendPingWithPongReceiveHandler( objc.ObjCBlock pongReceiveHandler) { objc.checkOsVersionInternal( 'NSURLSessionWebSocketTask.sendPingWithPongReceiveHandler:', @@ -63021,8 +63141,7 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { /// 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_( - DartNSInteger closeCode, objc.NSData? reason) { + void cancelWithCloseCode(DartNSInteger closeCode, {objc.NSData? reason}) { objc.checkOsVersionInternal( 'NSURLSessionWebSocketTask.cancelWithCloseCode:reason:', iOS: (false, (13, 0, 0)), @@ -63191,7 +63310,7 @@ class NSURLSession extends objc.NSObject { /// configuration options it is not necessary to specify a delegate. /// 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_( + static NSURLSession sessionWithConfiguration( NSURLSessionConfiguration configuration) { objc.checkOsVersionInternal('NSURLSession.sessionWithConfiguration:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); @@ -63201,10 +63320,10 @@ class NSURLSession extends objc.NSObject { } /// sessionWithConfiguration:delegate:delegateQueue: - static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( + static NSURLSession sessionWithConfiguration$1( NSURLSessionConfiguration configuration, - NSURLSessionDelegate? delegate, - NSOperationQueue? queue) { + {NSURLSessionDelegate? delegate, + NSOperationQueue? delegateQueue}) { objc.checkOsVersionInternal( 'NSURLSession.sessionWithConfiguration:delegate:delegateQueue:', iOS: (false, (7, 0, 0)), @@ -63214,7 +63333,7 @@ class NSURLSession extends objc.NSObject { _sel_sessionWithConfiguration_delegate_delegateQueue_, configuration.ref.pointer, delegate?.ref.pointer ?? ffi.nullptr, - queue?.ref.pointer ?? ffi.nullptr); + delegateQueue?.ref.pointer ?? ffi.nullptr); return NSURLSession.castFromPointer(_ret, retain: true, release: true); } @@ -63295,7 +63414,7 @@ class NSURLSession extends objc.NSObject { } /// empty all cookies, cache and credential stores, removes disk files, issues -flushWithCompletionHandler:. Invokes completionHandler() on the delegate queue. - void resetWithCompletionHandler_( + void resetWithCompletionHandler( objc.ObjCBlock completionHandler) { objc.checkOsVersionInternal('NSURLSession.resetWithCompletionHandler:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); @@ -63304,7 +63423,7 @@ class NSURLSession extends objc.NSObject { } /// flush storage to disk and clear transient network caches. Invokes completionHandler() on the delegate queue. - void flushWithCompletionHandler_( + void flushWithCompletionHandler( objc.ObjCBlock completionHandler) { objc.checkOsVersionInternal('NSURLSession.flushWithCompletionHandler:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); @@ -63313,10 +63432,9 @@ class NSURLSession extends objc.NSObject { } /// invokes completionHandler with outstanding data, upload and download tasks. - void getTasksWithCompletionHandler_( + void getTasksWithCompletionHandler( objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> + ffi.Void Function(objc.NSArray, objc.NSArray, objc.NSArray)> completionHandler) { objc.checkOsVersionInternal('NSURLSession.getTasksWithCompletionHandler:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); @@ -63325,9 +63443,8 @@ class NSURLSession extends objc.NSObject { } /// invokes completionHandler with all outstanding tasks. - void getAllTasksWithCompletionHandler_( - objc.ObjCBlock)> - completionHandler) { + void getAllTasksWithCompletionHandler( + objc.ObjCBlock completionHandler) { objc.checkOsVersionInternal( 'NSURLSession.getAllTasksWithCompletionHandler:', iOS: (false, (9, 0, 0)), @@ -63337,7 +63454,7 @@ class NSURLSession extends objc.NSObject { } /// Creates a data task with the given request. The request may have a body stream. - NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest request) { + NSURLSessionDataTask dataTaskWithRequest(NSURLRequest request) { objc.checkOsVersionInternal('NSURLSession.dataTaskWithRequest:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -63347,7 +63464,7 @@ class NSURLSession extends objc.NSObject { } /// Creates a data task to retrieve the contents of the given URL. - NSURLSessionDataTask dataTaskWithURL_(objc.NSURL url) { + NSURLSessionDataTask dataTaskWithURL(objc.NSURL url) { objc.checkOsVersionInternal('NSURLSession.dataTaskWithURL:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -63357,29 +63474,29 @@ class NSURLSession extends objc.NSObject { } /// 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, objc.NSURL fileURL) { + NSURLSessionUploadTask uploadTaskWithRequest(NSURLRequest request, + {required objc.NSURL fromFile}) { objc.checkOsVersionInternal('NSURLSession.uploadTaskWithRequest:fromFile:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); final _ret = _objc_msgSend_15qeuct( this.ref.pointer, _sel_uploadTaskWithRequest_fromFile_, request.ref.pointer, - fileURL.ref.pointer); + fromFile.ref.pointer); return NSURLSessionUploadTask.castFromPointer(_ret, 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, objc.NSData bodyData) { + NSURLSessionUploadTask uploadTaskWithRequest$1(NSURLRequest request, + {required objc.NSData fromData}) { objc.checkOsVersionInternal('NSURLSession.uploadTaskWithRequest:fromData:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); final _ret = _objc_msgSend_15qeuct( this.ref.pointer, _sel_uploadTaskWithRequest_fromData_, request.ref.pointer, - bodyData.ref.pointer); + fromData.ref.pointer); return NSURLSessionUploadTask.castFromPointer(_ret, retain: true, release: true); } @@ -63392,7 +63509,7 @@ class NSURLSession extends objc.NSObject { /// /// - 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_(objc.NSData resumeData) { + NSURLSessionUploadTask uploadTaskWithResumeData(objc.NSData resumeData) { objc.checkOsVersionInternal('NSURLSession.uploadTaskWithResumeData:', iOS: (false, (17, 0, 0)), macOS: (false, (14, 0, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, @@ -63402,7 +63519,7 @@ class NSURLSession extends objc.NSObject { } /// 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) { + NSURLSessionUploadTask uploadTaskWithStreamedRequest(NSURLRequest request) { objc.checkOsVersionInternal('NSURLSession.uploadTaskWithStreamedRequest:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, @@ -63412,7 +63529,7 @@ class NSURLSession extends objc.NSObject { } /// Creates a download task with the given request. - NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest request) { + NSURLSessionDownloadTask downloadTaskWithRequest(NSURLRequest request) { objc.checkOsVersionInternal('NSURLSession.downloadTaskWithRequest:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -63422,7 +63539,7 @@ class NSURLSession extends objc.NSObject { } /// Creates a download task to download the contents of the given URL. - NSURLSessionDownloadTask downloadTaskWithURL_(objc.NSURL url) { + NSURLSessionDownloadTask downloadTaskWithURL(objc.NSURL url) { objc.checkOsVersionInternal('NSURLSession.downloadTaskWithURL:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -63432,7 +63549,7 @@ class NSURLSession extends objc.NSObject { } /// Creates a download task with the resume data. If the download cannot be successfully resumed, URLSession:task:didCompleteWithError: will be called. - NSURLSessionDownloadTask downloadTaskWithResumeData_(objc.NSData resumeData) { + NSURLSessionDownloadTask downloadTaskWithResumeData(objc.NSData resumeData) { objc.checkOsVersionInternal('NSURLSession.downloadTaskWithResumeData:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, @@ -63442,8 +63559,8 @@ class NSURLSession extends objc.NSObject { } /// Creates a bidirectional stream task to a given host and port. - NSURLSessionStreamTask streamTaskWithHostName_port_( - objc.NSString hostname, DartNSInteger port) { + NSURLSessionStreamTask streamTaskWithHostName(objc.NSString hostname, + {required DartNSInteger port}) { objc.checkOsVersionInternal('NSURLSession.streamTaskWithHostName:port:', iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); final _ret = _objc_msgSend_9slupp(this.ref.pointer, @@ -63454,7 +63571,7 @@ class NSURLSession extends objc.NSObject { /// 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) { + NSURLSessionStreamTask streamTaskWithNetService(NSNetService service) { objc.checkOsVersionInternal('NSURLSession.streamTaskWithNetService:', iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -63464,7 +63581,7 @@ class NSURLSession extends objc.NSObject { } /// Creates a WebSocket task given the url. The given url must have a ws or wss scheme. - NSURLSessionWebSocketTask webSocketTaskWithURL_(objc.NSURL url) { + NSURLSessionWebSocketTask webSocketTaskWithURL(objc.NSURL url) { objc.checkOsVersionInternal('NSURLSession.webSocketTaskWithURL:', iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -63476,8 +63593,8 @@ class NSURLSession extends objc.NSObject { /// Creates a WebSocket task given the url and an array of protocols. The protocols will be used in the WebSocket handshake to /// 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_( - objc.NSURL url, objc.ObjCObjectBase protocols) { + NSURLSessionWebSocketTask webSocketTaskWithURL$1(objc.NSURL url, + {required objc.NSArray protocols}) { objc.checkOsVersionInternal('NSURLSession.webSocketTaskWithURL:protocols:', iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); final _ret = _objc_msgSend_15qeuct( @@ -63492,7 +63609,7 @@ class NSURLSession extends objc.NSObject { /// 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) { + NSURLSessionWebSocketTask webSocketTaskWithRequest(NSURLRequest request) { objc.checkOsVersionInternal('NSURLSession.webSocketTaskWithRequest:', iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -63517,7 +63634,7 @@ class NSURLSession extends objc.NSObject { } /// allocWithZone: - static NSURLSession allocWithZone_(ffi.Pointer zone) { + static NSURLSession allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428(_class_NSURLSession, _sel_allocWithZone_, zone); return NSURLSession.castFromPointer(_ret, retain: false, release: true); @@ -64519,11 +64636,10 @@ 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_( - objc.NSURL url, - DartNSInteger statusCode, + NSHTTPURLResponse? initWithURLAndStatusCode(objc.NSURL url, + {required DartNSInteger statusCode, objc.NSString? HTTPVersion, - objc.NSDictionary? headerFields) { + objc.NSDictionary? headerFields}) { objc.checkOsVersionInternal( 'NSHTTPURLResponse.initWithURL:statusCode:HTTPVersion:headerFields:', iOS: (false, (5, 0, 0)), @@ -64574,7 +64690,7 @@ 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. - objc.NSString? valueForHTTPHeaderField_(objc.NSString field) { + objc.NSString? valueForHTTPHeaderField(objc.NSString field) { objc.checkOsVersionInternal('NSHTTPURLResponse.valueForHTTPHeaderField:', iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -64590,13 +64706,14 @@ class NSHTTPURLResponse extends NSURLResponse { /// corresponding to the status code for this response. /// @param statusCode the status code to use to produce a localized string. /// @result A localized string corresponding to the given status code. - static objc.NSString localizedStringForStatusCode_(DartNSInteger statusCode) { + static objc.NSString localizedStringForStatusCode( + DartNSInteger statusCode$1) { objc.checkOsVersionInternal( 'NSHTTPURLResponse.localizedStringForStatusCode:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); final _ret = _objc_msgSend_qugqlf(_class_NSHTTPURLResponse, - _sel_localizedStringForStatusCode_, statusCode); + _sel_localizedStringForStatusCode_, statusCode$1); return objc.NSString.castFromPointer(_ret, retain: true, release: true); } @@ -64609,12 +64726,10 @@ class NSHTTPURLResponse extends NSURLResponse { /// @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. - NSHTTPURLResponse - initWithURL_MIMEType_expectedContentLength_textEncodingName_( - objc.NSURL URL, - objc.NSString? MIMEType, - DartNSInteger length, - objc.NSString? name) { + NSHTTPURLResponse initWithUrlAndMIMEType(objc.NSURL URL, + {objc.NSString? MIMEType, + required DartNSInteger length, + objc.NSString? name}) { objc.checkOsVersionInternal( 'NSHTTPURLResponse.initWithURL:MIMEType:expectedContentLength:textEncodingName:', iOS: (false, (2, 0, 0)), @@ -64648,7 +64763,7 @@ class NSHTTPURLResponse extends NSURLResponse { } /// allocWithZone: - static NSHTTPURLResponse allocWithZone_(ffi.Pointer zone) { + static NSHTTPURLResponse allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( _class_NSHTTPURLResponse, _sel_allocWithZone_, zone); return NSHTTPURLResponse.castFromPointer(_ret, @@ -64687,7 +64802,7 @@ class NSHTTPURLResponse extends NSURLResponse { } /// initWithCoder: - NSHTTPURLResponse? initWithCoder_(objc.NSCoder coder) { + NSHTTPURLResponse? initWithCoder(objc.NSCoder coder) { final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), _sel_initWithCoder_, coder.ref.pointer); return _ret.address == 0 @@ -77716,18 +77831,18 @@ late final _sel_value_withObjCType_ = objc.registerName("value:withObjCType:"); /// NSValueCreation extension NSValueCreation on objc.NSValue { /// valueWithBytes:objCType: - static objc.NSValue valueWithBytes_objCType_( - ffi.Pointer value, ffi.Pointer type) { + static objc.NSValue valueWithBytes(ffi.Pointer value, + {required ffi.Pointer objCType}) { final _ret = _objc_msgSend_e9mncn( - _class_NSValue, _sel_valueWithBytes_objCType_, value, type); + _class_NSValue, _sel_valueWithBytes_objCType_, value, objCType); return objc.NSValue.castFromPointer(_ret, retain: true, release: true); } /// value:withObjCType: - static objc.NSValue value_withObjCType_( - ffi.Pointer value, ffi.Pointer type) { + static objc.NSValue value(ffi.Pointer value$1, + {required ffi.Pointer withObjCType}) { final _ret = _objc_msgSend_e9mncn( - _class_NSValue, _sel_value_withObjCType_, value, type); + _class_NSValue, _sel_value_withObjCType_, value$1, withObjCType); return objc.NSValue.castFromPointer(_ret, retain: true, release: true); } } @@ -77759,7 +77874,7 @@ late final _sel_isEqualToValue_ = objc.registerName("isEqualToValue:"); /// NSValueExtensionMethods extension NSValueExtensionMethods on objc.NSValue { /// valueWithNonretainedObject: - static objc.NSValue valueWithNonretainedObject_( + static objc.NSValue valueWithNonretainedObject( objc.ObjCObjectBase? anObject) { final _ret = _objc_msgSend_1sotr3r(_class_NSValue, _sel_valueWithNonretainedObject_, anObject?.ref.pointer ?? ffi.nullptr); @@ -77776,9 +77891,9 @@ extension NSValueExtensionMethods on objc.NSValue { } /// valueWithPointer: - static objc.NSValue valueWithPointer_(ffi.Pointer pointer) { - final _ret = - _objc_msgSend_1mbt9g9(_class_NSValue, _sel_valueWithPointer_, pointer); + static objc.NSValue valueWithPointer(ffi.Pointer pointer$1) { + final _ret = _objc_msgSend_1mbt9g9( + _class_NSValue, _sel_valueWithPointer_, pointer$1); return objc.NSValue.castFromPointer(_ret, retain: true, release: true); } @@ -77788,7 +77903,7 @@ extension NSValueExtensionMethods on objc.NSValue { } /// isEqualToValue: - bool isEqualToValue_(objc.NSValue value) { + bool isEqualToValue(objc.NSValue value) { return _objc_msgSend_19nvye5( this.ref.pointer, _sel_isEqualToValue_, value.ref.pointer); } @@ -77807,7 +77922,7 @@ final _objc_msgSend_ovsamd = objc.msgSendPointer /// NSDeprecated extension NSDeprecated$2 on objc.NSValue { /// getValue: - void getValue_(ffi.Pointer value) { + void getValue(ffi.Pointer value) { objc.checkOsVersionInternal('NSValue.getValue:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); _objc_msgSend_ovsamd(this.ref.pointer, _sel_getValue_, value); @@ -77848,7 +77963,7 @@ final _objc_msgSend_1u11dbbStret = objc.msgSendStretPointer /// NSValueRangeExtensions extension NSValueRangeExtensions on objc.NSValue { /// valueWithRange: - static objc.NSValue valueWithRange_(NSRange range) { + static objc.NSValue valueWithRange(NSRange range) { final _ret = _objc_msgSend_1k1o1s7(_class_NSValue, _sel_valueWithRange_, range); return objc.NSValue.castFromPointer(_ret, retain: true, release: true); @@ -77904,58 +78019,60 @@ extension NSArrayCreation on objc.NSArray { } /// arrayWithObject: - static objc.NSArray arrayWithObject_(objc.ObjCObjectBase anObject) { + static objc.NSArray arrayWithObject(objc.ObjCObjectBase anObject) { final _ret = _objc_msgSend_1sotr3r( _class_NSArray, _sel_arrayWithObject_, anObject.ref.pointer); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// arrayWithObjects:count: - static objc.NSArray arrayWithObjects_count_( - ffi.Pointer> objects, DartNSUInteger cnt) { + static objc.NSArray arrayWithObjects( + ffi.Pointer> objects, + {required DartNSUInteger count}) { final _ret = _objc_msgSend_zmbtbd( - _class_NSArray, _sel_arrayWithObjects_count_, objects, cnt); + _class_NSArray, _sel_arrayWithObjects_count_, objects, count); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// arrayWithObjects: - static objc.NSArray arrayWithObjects_(objc.ObjCObjectBase firstObj) { + static objc.NSArray arrayWithObjects$1(objc.ObjCObjectBase firstObj) { final _ret = _objc_msgSend_1sotr3r( _class_NSArray, _sel_arrayWithObjects_, firstObj.ref.pointer); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// arrayWithArray: - static objc.NSArray arrayWithArray_(objc.NSArray array) { + static objc.NSArray arrayWithArray(objc.NSArray array$1) { final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, _sel_arrayWithArray_, array.ref.pointer); + _class_NSArray, _sel_arrayWithArray_, array$1.ref.pointer); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// initWithObjects: - objc.NSArray initWithObjects_(objc.ObjCObjectBase firstObj) { + objc.NSArray initWithObjects(objc.ObjCObjectBase firstObj) { final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), _sel_initWithObjects_, firstObj.ref.pointer); return objc.NSArray.castFromPointer(_ret, retain: false, release: true); } /// initWithArray: - objc.NSArray initWithArray_(objc.NSArray array) { + objc.NSArray initWithArray(objc.NSArray array$1) { final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithArray_, array.ref.pointer); + _sel_initWithArray_, array$1.ref.pointer); return objc.NSArray.castFromPointer(_ret, retain: false, release: true); } /// initWithArray:copyItems: - objc.NSArray initWithArray_copyItems_(objc.NSArray array, bool flag) { + objc.NSArray initWithArray$1(objc.NSArray array$1, + {required bool copyItems}) { final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, array.ref.pointer, flag); + _sel_initWithArray_copyItems_, array$1.ref.pointer, copyItems); return objc.NSArray.castFromPointer(_ret, retain: false, release: true); } /// initWithContentsOfURL:error: - objc.NSArray? initWithContentsOfURL_error_( - objc.NSURL url, ffi.Pointer> error) { + objc.NSArray? initWithContentsOfURL(objc.NSURL url, + {required ffi.Pointer> error}) { objc.checkOsVersionInternal('NSArray.initWithContentsOfURL:error:', iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); final _ret = _objc_msgSend_1lhpu4m(this.ref.retainAndReturnPointer(), @@ -77966,8 +78083,8 @@ extension NSArrayCreation on objc.NSArray { } /// arrayWithContentsOfURL:error: - static objc.NSArray? arrayWithContentsOfURL_error_( - objc.NSURL url, ffi.Pointer> error) { + static objc.NSArray? arrayWithContentsOfURL(objc.NSURL url, + {required ffi.Pointer> error}) { objc.checkOsVersionInternal('NSArray.arrayWithContentsOfURL:error:', iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); final _ret = _objc_msgSend_1lhpu4m(_class_NSArray, @@ -78132,14 +78249,13 @@ late final _sel_arrayByApplyingDifference_ = /// NSArrayDiffing extension NSArrayDiffing on objc.NSArray { /// differenceFromArray:withOptions:usingEquivalenceTest: - objc.NSOrderedCollectionDifference - differenceFromArray_withOptions_usingEquivalenceTest_( - objc.NSArray other, - objc.NSOrderedCollectionDifferenceCalculationOptions options, - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer)> - block) { + objc.NSOrderedCollectionDifference differenceFromArray(objc.NSArray other, + {required objc.NSOrderedCollectionDifferenceCalculationOptions + withOptions, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, ffi.Pointer)> + usingEquivalenceTest}) { objc.checkOsVersionInternal( 'NSArray.differenceFromArray:withOptions:usingEquivalenceTest:', iOS: (false, (13, 0, 0)), @@ -78148,29 +78264,29 @@ extension NSArrayDiffing on objc.NSArray { this.ref.pointer, _sel_differenceFromArray_withOptions_usingEquivalenceTest_, other.ref.pointer, - options.value, - block.ref.pointer); + withOptions.value, + usingEquivalenceTest.ref.pointer); return objc.NSOrderedCollectionDifference.castFromPointer(_ret, retain: true, release: true); } /// differenceFromArray:withOptions: - objc.NSOrderedCollectionDifference differenceFromArray_withOptions_( - objc.NSArray other, - objc.NSOrderedCollectionDifferenceCalculationOptions options) { + objc.NSOrderedCollectionDifference differenceFromArray$1(objc.NSArray other, + {required objc.NSOrderedCollectionDifferenceCalculationOptions + withOptions}) { objc.checkOsVersionInternal('NSArray.differenceFromArray:withOptions:', iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); final _ret = _objc_msgSend_1wtpmu7( this.ref.pointer, _sel_differenceFromArray_withOptions_, other.ref.pointer, - options.value); + withOptions.value); return objc.NSOrderedCollectionDifference.castFromPointer(_ret, retain: true, release: true); } /// differenceFromArray: - objc.NSOrderedCollectionDifference differenceFromArray_(objc.NSArray other) { + objc.NSOrderedCollectionDifference differenceFromArray$2(objc.NSArray other) { objc.checkOsVersionInternal('NSArray.differenceFromArray:', iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -78180,7 +78296,7 @@ extension NSArrayDiffing on objc.NSArray { } /// arrayByApplyingDifference: - objc.NSArray? arrayByApplyingDifference_( + objc.NSArray? arrayByApplyingDifference( objc.NSOrderedCollectionDifference difference) { objc.checkOsVersionInternal('NSArray.arrayByApplyingDifference:', iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); @@ -78213,14 +78329,14 @@ late final _sel_arrayWithContentsOfURL_ = /// NSDeprecated extension NSDeprecated$3 on objc.NSArray { /// getObjects: - void getObjects_(ffi.Pointer> objects) { + void getObjects(ffi.Pointer> objects) { objc.checkOsVersionInternal('NSArray.getObjects:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); _objc_msgSend_1dau4w(this.ref.pointer, _sel_getObjects_, objects); } /// arrayWithContentsOfFile: - static objc.NSArray? arrayWithContentsOfFile_(objc.NSString path) { + static objc.NSArray? arrayWithContentsOfFile(objc.NSString path) { objc.checkOsVersionInternal('NSArray.arrayWithContentsOfFile:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -78231,7 +78347,7 @@ extension NSDeprecated$3 on objc.NSArray { } /// arrayWithContentsOfURL: - static objc.NSArray? arrayWithContentsOfURL_(objc.NSURL url) { + static objc.NSArray? arrayWithContentsOfURL(objc.NSURL url) { objc.checkOsVersionInternal('NSArray.arrayWithContentsOfURL:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -78242,7 +78358,7 @@ extension NSDeprecated$3 on objc.NSArray { } /// initWithContentsOfFile: - objc.NSArray? initWithContentsOfFile_(objc.NSString path) { + objc.NSArray? initWithContentsOfFile(objc.NSString path) { objc.checkOsVersionInternal('NSArray.initWithContentsOfFile:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), @@ -78253,7 +78369,7 @@ extension NSDeprecated$3 on objc.NSArray { } /// initWithContentsOfURL: - objc.NSArray? initWithContentsOfURL_(objc.NSURL url) { + objc.NSArray? initWithContentsOfURL(objc.NSURL url) { objc.checkOsVersionInternal('NSArray.initWithContentsOfURL:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), @@ -78264,15 +78380,15 @@ extension NSDeprecated$3 on objc.NSArray { } /// writeToFile:atomically: - bool writeToFile_atomically_(objc.NSString path, bool useAuxiliaryFile) { + bool writeToFile(objc.NSString path, {required bool atomically}) { objc.checkOsVersionInternal('NSArray.writeToFile:atomically:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToFile_atomically_, - path.ref.pointer, useAuxiliaryFile); + path.ref.pointer, atomically); } /// writeToURL:atomically: - bool writeToURL_atomically_(objc.NSURL url, bool atomically) { + bool writeToURL(objc.NSURL url, {required bool atomically}) { objc.checkOsVersionInternal('NSArray.writeToURL:atomically:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToURL_atomically_, @@ -78286,7 +78402,7 @@ late final _sel_arrayWithCapacity_ = objc.registerName("arrayWithCapacity:"); /// NSMutableArrayCreation extension NSMutableArrayCreation on objc.NSMutableArray { /// arrayWithCapacity: - static objc.NSMutableArray arrayWithCapacity_(DartNSUInteger numItems) { + static objc.NSMutableArray arrayWithCapacity(DartNSUInteger numItems) { final _ret = _objc_msgSend_14hpxwa( _class_NSMutableArray, _sel_arrayWithCapacity_, numItems); return objc.NSMutableArray.castFromPointer(_ret, @@ -78294,7 +78410,7 @@ extension NSMutableArrayCreation on objc.NSMutableArray { } /// arrayWithContentsOfFile: - static objc.NSMutableArray? arrayWithContentsOfFile_(objc.NSString path) { + static objc.NSMutableArray? arrayWithContentsOfFile(objc.NSString path) { final _ret = _objc_msgSend_1sotr3r( _class_NSMutableArray, _sel_arrayWithContentsOfFile_, path.ref.pointer); return _ret.address == 0 @@ -78304,7 +78420,7 @@ extension NSMutableArrayCreation on objc.NSMutableArray { } /// arrayWithContentsOfURL: - static objc.NSMutableArray? arrayWithContentsOfURL_(objc.NSURL url) { + static objc.NSMutableArray? arrayWithContentsOfURL(objc.NSURL url) { final _ret = _objc_msgSend_1sotr3r( _class_NSMutableArray, _sel_arrayWithContentsOfURL_, url.ref.pointer); return _ret.address == 0 @@ -78314,7 +78430,7 @@ extension NSMutableArrayCreation on objc.NSMutableArray { } /// initWithContentsOfFile: - objc.NSMutableArray? initWithContentsOfFile_(objc.NSString path) { + objc.NSMutableArray? initWithContentsOfFile(objc.NSString path) { final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), _sel_initWithContentsOfFile_, path.ref.pointer); return _ret.address == 0 @@ -78324,7 +78440,7 @@ extension NSMutableArrayCreation on objc.NSMutableArray { } /// initWithContentsOfURL: - objc.NSMutableArray? initWithContentsOfURL_(objc.NSURL url) { + objc.NSMutableArray? initWithContentsOfURL(objc.NSURL url) { final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), _sel_initWithContentsOfURL_, url.ref.pointer); return _ret.address == 0 @@ -78339,7 +78455,7 @@ late final _sel_applyDifference_ = objc.registerName("applyDifference:"); /// NSMutableArrayDiffing extension NSMutableArrayDiffing on objc.NSMutableArray { /// applyDifference: - void applyDifference_(objc.NSOrderedCollectionDifference difference) { + void applyDifference(objc.NSOrderedCollectionDifference difference) { objc.checkOsVersionInternal('NSMutableArray.applyDifference:', iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); _objc_msgSend_xtuoz7( @@ -78970,8 +79086,8 @@ extension NSPreviewSupport on objc.NSItemProvider { } /// loadPreviewImageWithOptions:completionHandler: - void loadPreviewImageWithOptions_completionHandler_(objc.NSDictionary options, - DartNSItemProviderCompletionHandler completionHandler) { + void loadPreviewImageWithOptions(objc.NSDictionary options, + {required DartNSItemProviderCompletionHandler completionHandler}) { objc.checkOsVersionInternal( 'NSItemProvider.loadPreviewImageWithOptions:completionHandler:', iOS: (false, (8, 0, 0)), @@ -79015,12 +79131,10 @@ final _objc_msgSend_1q2ox4r = objc.msgSendPointer /// NSStringEncodingDetection extension NSStringEncodingDetection on objc.NSString { /// stringEncodingForData:encodingOptions:convertedString:usedLossyConversion: - static DartNSUInteger - stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( - objc.NSData data, - objc.NSDictionary? opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion) { + static DartNSUInteger stringEncodingForData(objc.NSData data, + {objc.NSDictionary? encodingOptions, + required ffi.Pointer> convertedString, + required ffi.Pointer usedLossyConversion}) { objc.checkOsVersionInternal( 'NSString.stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:', iOS: (false, (8, 0, 0)), @@ -79029,8 +79143,8 @@ extension NSStringEncodingDetection on objc.NSString { _class_NSString, _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_, data.ref.pointer, - opts?.ref.pointer ?? ffi.nullptr, - string, + encodingOptions?.ref.pointer ?? ffi.nullptr, + convertedString, usedLossyConversion); } } @@ -79730,16 +79844,17 @@ ffi.Pointer _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureTrampoline) .cast(); -/// Construction methods for `objc.ObjCBlock, objc.NSString, objc.ObjCBlock)>`. +/// Construction methods for `objc.ObjCBlock, objc.NSString, objc.ObjCBlock)>`. abstract final class ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - NSProgress? Function(ffi.Pointer, objc.NSString, + objc.NSProgress? Function(ffi.Pointer, objc.NSString, objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => + castFromPointer(ffi.Pointer pointer, {bool retain = false, bool release = false}) => objc.ObjCBlock< - NSProgress? Function(ffi.Pointer, objc.NSString, + objc.NSProgress? Function( + ffi.Pointer, + objc.NSString, objc.ObjCBlock)>(pointer, retain: retain, release: release); @@ -79749,11 +79864,13 @@ abstract final class ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - NSProgress? Function(ffi.Pointer, objc.NSString, + objc.NSProgress? Function(ffi.Pointer, objc.NSString, objc.ObjCBlock)> fromFunctionPointer(ffi.Pointer Function(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>> ptr) => objc.ObjCBlock< - NSProgress? Function(ffi.Pointer, objc.NSString, + objc.NSProgress? Function( + ffi.Pointer, + objc.NSString, objc.ObjCBlock)>( objc.newPointerBlock(_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrCallable, ptr.cast()), retain: false, @@ -79767,28 +79884,28 @@ abstract final class ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, objc.NSString, objc.ObjCBlock)> - fromFunction(NSProgress? Function(ffi.Pointer, objc.NSString, objc.ObjCBlock) fn, + static objc + .ObjCBlock, objc.NSString, objc.ObjCBlock)> + fromFunction(objc.NSProgress? Function(ffi.Pointer, objc.NSString, objc.ObjCBlock) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock, objc.NSString, objc.ObjCBlock)>( + objc.ObjCBlock, objc.NSString, objc.ObjCBlock)>( objc.newClosureBlock( _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureCallable, (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => - fn(arg0, objc.NSString.castFromPointer(arg1, retain: true, release: true), ObjCBlock_ffiVoid_NSData_NSError.castFromPointer(arg2, retain: true, release: true))?.ref.retainAndAutorelease() ?? - ffi.nullptr, + fn(arg0, objc.NSString.castFromPointer(arg1, retain: true, release: true), ObjCBlock_ffiVoid_NSData_NSError.castFromPointer(arg2, retain: true, release: true))?.ref.retainAndAutorelease() ?? ffi.nullptr, keepIsolateAlive), retain: false, release: true); } -/// Call operator for `objc.ObjCBlock, objc.NSString, objc.ObjCBlock)>`. +/// Call operator for `objc.ObjCBlock, objc.NSString, objc.ObjCBlock)>`. extension ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_CallExtension on objc.ObjCBlock< - NSProgress? Function(ffi.Pointer, objc.NSString, + objc.NSProgress? Function(ffi.Pointer, objc.NSString, objc.ObjCBlock)> { - NSProgress? call(ffi.Pointer arg0, objc.NSString arg1, objc.ObjCBlock arg2) => + objc.NSProgress? call(ffi.Pointer arg0, objc.NSString arg1, objc.ObjCBlock arg2) => ref.pointer.ref.invoke .cast< ffi.NativeFunction< @@ -79807,10 +79924,7 @@ extension ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_CallExtensi .address == 0 ? null - : NSProgress.castFromPointer( - ref.pointer.ref.invoke.cast Function(ffi.Pointer block, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>>().asFunction Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer), - retain: true, - release: true); + : objc.NSProgress.castFromPointer(ref.pointer.ref.invoke.cast Function(ffi.Pointer block, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>>().asFunction Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer), retain: true, release: true); } /// NSItemProvider @@ -79827,10 +79941,9 @@ extension NSItemProvider on objc.NSString { } /// objectWithItemProviderData:typeIdentifier:error: - static objc.NSString? objectWithItemProviderData_typeIdentifier_error_( - objc.NSData data, - objc.NSString typeIdentifier, - ffi.Pointer> outError) { + static objc.NSString? objectWithItemProviderData(objc.NSData data, + {required objc.NSString typeIdentifier, + required ffi.Pointer> error}) { objc.checkOsVersionInternal( 'NSString.objectWithItemProviderData:typeIdentifier:error:', iOS: (false, (11, 0, 0)), @@ -79840,7 +79953,7 @@ extension NSItemProvider on objc.NSString { _sel_objectWithItemProviderData_typeIdentifier_error_, data.ref.pointer, typeIdentifier.ref.pointer, - outError); + error); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); @@ -79875,7 +79988,7 @@ extension NSItemProvider on objc.NSString { /// itemProviderVisibilityForRepresentationWithTypeIdentifier: static objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier_( + itemProviderVisibilityForRepresentationWithTypeIdentifier( objc.NSString typeIdentifier) { objc.checkOsVersionInternal( 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', @@ -79895,7 +80008,7 @@ extension NSItemProvider on objc.NSString { /// itemProviderVisibilityForRepresentationWithTypeIdentifier: objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier_$1( + itemProviderVisibilityForRepresentationWithTypeIdentifier$1( objc.NSString typeIdentifier) { objc.checkOsVersionInternal( 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', @@ -79914,10 +80027,9 @@ extension NSItemProvider on objc.NSString { } /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: - NSProgress? loadDataWithTypeIdentifier_forItemProviderCompletionHandler_( - objc.NSString typeIdentifier, - objc.ObjCBlock - completionHandler) { + objc.NSProgress? loadDataWithTypeIdentifier(objc.NSString typeIdentifier, + {required objc.ObjCBlock + forItemProviderCompletionHandler}) { objc.checkOsVersionInternal( 'NSString.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', iOS: (false, (11, 0, 0)), @@ -79926,10 +80038,10 @@ extension NSItemProvider on objc.NSString { this.ref.pointer, _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, typeIdentifier.ref.pointer, - completionHandler.ref.pointer); + forItemProviderCompletionHandler.ref.pointer); return _ret.address == 0 ? null - : NSProgress.castFromPointer(_ret, retain: true, release: true); + : objc.NSProgress.castFromPointer(_ret, retain: true, release: true); } } @@ -80009,56 +80121,54 @@ late final _sel_stringWithCapacity_ = objc.registerName("stringWithCapacity:"); /// NSMutableStringExtensionMethods extension NSMutableStringExtensionMethods on objc.NSMutableString { /// insertString:atIndex: - void insertString_atIndex_(objc.NSString aString, DartNSUInteger loc) { - _objc_msgSend_djsa9o( - this.ref.pointer, _sel_insertString_atIndex_, aString.ref.pointer, loc); + void insertString(objc.NSString aString, {required DartNSUInteger atIndex}) { + _objc_msgSend_djsa9o(this.ref.pointer, _sel_insertString_atIndex_, + aString.ref.pointer, atIndex); } /// deleteCharactersInRange: - void deleteCharactersInRange_(NSRange range) { + void deleteCharactersInRange(NSRange range) { _objc_msgSend_1e3pm0z( this.ref.pointer, _sel_deleteCharactersInRange_, range); } /// appendString: - void appendString_(objc.NSString aString) { + void appendString(objc.NSString aString) { _objc_msgSend_xtuoz7( this.ref.pointer, _sel_appendString_, aString.ref.pointer); } /// appendFormat: - void appendFormat_(objc.NSString format) { + void appendFormat(objc.NSString format) { _objc_msgSend_xtuoz7( this.ref.pointer, _sel_appendFormat_, format.ref.pointer); } /// setString: - void setString_(objc.NSString aString) { + void setString(objc.NSString aString) { _objc_msgSend_xtuoz7( this.ref.pointer, _sel_setString_, aString.ref.pointer); } /// replaceOccurrencesOfString:withString:options:range: - DartNSUInteger replaceOccurrencesOfString_withString_options_range_( - objc.NSString target, - objc.NSString replacement, - objc.NSStringCompareOptions options, - NSRange searchRange) { + DartNSUInteger replaceOccurrencesOfString(objc.NSString target, + {required objc.NSString withString, + required objc.NSStringCompareOptions options, + required NSRange range}) { return _objc_msgSend_1upeo1d( this.ref.pointer, _sel_replaceOccurrencesOfString_withString_options_range_, target.ref.pointer, - replacement.ref.pointer, + withString.ref.pointer, options.value, - searchRange); + range); } /// applyTransform:reverse:range:updatedRange: - bool applyTransform_reverse_range_updatedRange_( - DartNSStringTransform transform, - bool reverse, - NSRange range, - NSRangePointer resultingRange) { + bool applyTransform(DartNSStringTransform transform, + {required bool reverse, + required NSRange range, + required NSRangePointer updatedRange}) { objc.checkOsVersionInternal( 'NSMutableString.applyTransform:reverse:range:updatedRange:', iOS: (false, (9, 0, 0)), @@ -80069,11 +80179,11 @@ extension NSMutableStringExtensionMethods on objc.NSMutableString { transform.ref.pointer, reverse, range, - resultingRange); + updatedRange); } /// initWithCapacity: - objc.NSMutableString initWithCapacity_(DartNSUInteger capacity) { + objc.NSMutableString initWithCapacity(DartNSUInteger capacity) { final _ret = _objc_msgSend_14hpxwa( this.ref.retainAndReturnPointer(), _sel_initWithCapacity_, capacity); return objc.NSMutableString.castFromPointer(_ret, @@ -80081,7 +80191,7 @@ extension NSMutableStringExtensionMethods on objc.NSMutableString { } /// stringWithCapacity: - static objc.NSMutableString stringWithCapacity_(DartNSUInteger capacity) { + static objc.NSMutableString stringWithCapacity(DartNSUInteger capacity) { final _ret = _objc_msgSend_14hpxwa( _class_NSMutableString, _sel_stringWithCapacity_, capacity); return objc.NSMutableString.castFromPointer(_ret, @@ -80247,15 +80357,15 @@ extension NSStringDeprecated on objc.NSString { } /// getCString: - void getCString_(ffi.Pointer bytes) { + void getCString(ffi.Pointer bytes) { objc.checkOsVersionInternal('NSString.getCString:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); _objc_msgSend_1r7ue5f(this.ref.pointer, _sel_getCString_, bytes); } /// getCString:maxLength: - void getCString_maxLength_( - ffi.Pointer bytes, DartNSUInteger maxLength) { + void getCString$1(ffi.Pointer bytes, + {required DartNSUInteger maxLength}) { objc.checkOsVersionInternal('NSString.getCString:maxLength:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); _objc_msgSend_1h3mito( @@ -80263,8 +80373,10 @@ extension NSStringDeprecated on objc.NSString { } /// getCString:maxLength:range:remainingRange: - void getCString_maxLength_range_remainingRange_(ffi.Pointer bytes, - DartNSUInteger maxLength, NSRange aRange, NSRangePointer leftoverRange) { + void getCString$2(ffi.Pointer bytes, + {required DartNSUInteger maxLength, + required NSRange range, + required NSRangePointer remainingRange}) { objc.checkOsVersionInternal( 'NSString.getCString:maxLength:range:remainingRange:', iOS: (false, (2, 0, 0)), @@ -80274,20 +80386,20 @@ extension NSStringDeprecated on objc.NSString { _sel_getCString_maxLength_range_remainingRange_, bytes, maxLength, - aRange, - leftoverRange); + range, + remainingRange); } /// writeToFile:atomically: - bool writeToFile_atomically_(objc.NSString path, bool useAuxiliaryFile) { + bool writeToFile(objc.NSString path, {required bool atomically}) { objc.checkOsVersionInternal('NSString.writeToFile:atomically:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToFile_atomically_, - path.ref.pointer, useAuxiliaryFile); + path.ref.pointer, atomically); } /// writeToURL:atomically: - bool writeToURL_atomically_(objc.NSURL url, bool atomically) { + bool writeToURL(objc.NSURL url, {required bool atomically}) { objc.checkOsVersionInternal('NSString.writeToURL:atomically:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToURL_atomically_, @@ -80295,7 +80407,7 @@ extension NSStringDeprecated on objc.NSString { } /// initWithContentsOfFile: - objc.ObjCObjectBase? initWithContentsOfFile_(objc.NSString path) { + objc.ObjCObjectBase? initWithContentsOfFile(objc.NSString path) { objc.checkOsVersionInternal('NSString.initWithContentsOfFile:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), @@ -80306,7 +80418,7 @@ extension NSStringDeprecated on objc.NSString { } /// initWithContentsOfURL: - objc.ObjCObjectBase? initWithContentsOfURL_(objc.NSURL url) { + objc.ObjCObjectBase? initWithContentsOfURL(objc.NSURL url) { objc.checkOsVersionInternal('NSString.initWithContentsOfURL:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), @@ -80317,7 +80429,7 @@ extension NSStringDeprecated on objc.NSString { } /// stringWithContentsOfFile: - static objc.ObjCObjectBase? stringWithContentsOfFile_(objc.NSString path) { + static objc.ObjCObjectBase? stringWithContentsOfFile(objc.NSString path) { objc.checkOsVersionInternal('NSString.stringWithContentsOfFile:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -80328,7 +80440,7 @@ extension NSStringDeprecated on objc.NSString { } /// stringWithContentsOfURL: - static objc.ObjCObjectBase? stringWithContentsOfURL_(objc.NSURL url) { + static objc.ObjCObjectBase? stringWithContentsOfURL(objc.NSURL url) { objc.checkOsVersionInternal('NSString.stringWithContentsOfURL:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -80339,8 +80451,8 @@ extension NSStringDeprecated on objc.NSString { } /// initWithCStringNoCopy:length:freeWhenDone: - objc.ObjCObjectBase? initWithCStringNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, DartNSUInteger length, bool freeBuffer) { + objc.ObjCObjectBase? initWithCStringNoCopy(ffi.Pointer bytes, + {required DartNSUInteger length, required bool freeWhenDone}) { objc.checkOsVersionInternal( 'NSString.initWithCStringNoCopy:length:freeWhenDone:', iOS: (false, (2, 0, 0)), @@ -80350,15 +80462,15 @@ extension NSStringDeprecated on objc.NSString { _sel_initWithCStringNoCopy_length_freeWhenDone_, bytes, length, - freeBuffer); + freeWhenDone); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: false, release: true); } /// initWithCString:length: - objc.ObjCObjectBase? initWithCString_length_( - ffi.Pointer bytes, DartNSUInteger length) { + objc.ObjCObjectBase? initWithCString(ffi.Pointer bytes, + {required DartNSUInteger length}) { objc.checkOsVersionInternal('NSString.initWithCString:length:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_erqryg(this.ref.retainAndReturnPointer(), @@ -80369,7 +80481,7 @@ extension NSStringDeprecated on objc.NSString { } /// initWithCString: - objc.ObjCObjectBase? initWithCString_(ffi.Pointer bytes) { + objc.ObjCObjectBase? initWithCString$1(ffi.Pointer bytes) { objc.checkOsVersionInternal('NSString.initWithCString:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_56zxyn( @@ -80380,8 +80492,8 @@ extension NSStringDeprecated on objc.NSString { } /// stringWithCString:length: - static objc.ObjCObjectBase? stringWithCString_length_( - ffi.Pointer bytes, DartNSUInteger length) { + static objc.ObjCObjectBase? stringWithCString(ffi.Pointer bytes, + {required DartNSUInteger length}) { objc.checkOsVersionInternal('NSString.stringWithCString:length:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_erqryg( @@ -80392,7 +80504,7 @@ extension NSStringDeprecated on objc.NSString { } /// stringWithCString: - static objc.ObjCObjectBase? stringWithCString_(ffi.Pointer bytes) { + static objc.ObjCObjectBase? stringWithCString$1(ffi.Pointer bytes) { objc.checkOsVersionInternal('NSString.stringWithCString:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = @@ -80403,7 +80515,7 @@ extension NSStringDeprecated on objc.NSString { } /// getCharacters: - void getCharacters_(ffi.Pointer buffer) { + void getCharacters(ffi.Pointer buffer) { _objc_msgSend_g3kdhc(this.ref.pointer, _sel_getCharacters_, buffer); } } @@ -80471,10 +80583,10 @@ extension NSPromisedItems on objc.NSURL { /// - You are inside the accessor block of a coordinated read or write that used NSFileCoordinatorReadingImmediatelyAvailableMetadataOnly, NSFileCoordinatorWritingForDeleting, NSFileCoordinatorWritingForMoving, or NSFileCoordinatorWritingContentIndependentMetadataOnly /// /// 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_( + bool getPromisedItemResourceValue( ffi.Pointer> value, - DartNSURLResourceKey key, - ffi.Pointer> error) { + {required DartNSURLResourceKey forKey, + required ffi.Pointer> error}) { objc.checkOsVersionInternal( 'NSURL.getPromisedItemResourceValue:forKey:error:', iOS: (false, (8, 0, 0)), @@ -80483,13 +80595,13 @@ extension NSPromisedItems on objc.NSURL { this.ref.pointer, _sel_getPromisedItemResourceValue_forKey_error_, value, - key.ref.pointer, + forKey.ref.pointer, error); } /// promisedItemResourceValuesForKeys:error: - objc.NSDictionary? promisedItemResourceValuesForKeys_error_( - objc.NSArray keys, ffi.Pointer> error) { + objc.NSDictionary? promisedItemResourceValuesForKeys(objc.NSArray keys, + {required ffi.Pointer> error}) { objc.checkOsVersionInternal( 'NSURL.promisedItemResourceValuesForKeys:error:', iOS: (false, (8, 0, 0)), @@ -80502,7 +80614,7 @@ extension NSPromisedItems on objc.NSURL { } /// checkPromisedItemIsReachableAndReturnError: - bool checkPromisedItemIsReachableAndReturnError_( + bool checkPromisedItemIsReachableAndReturnError( ffi.Pointer> error) { objc.checkOsVersionInternal( 'NSURL.checkPromisedItemIsReachableAndReturnError:', @@ -80525,10 +80637,9 @@ extension NSItemProvider$1 on objc.NSURL { } /// objectWithItemProviderData:typeIdentifier:error: - static objc.NSURL? objectWithItemProviderData_typeIdentifier_error_( - objc.NSData data, - objc.NSString typeIdentifier, - ffi.Pointer> outError) { + static objc.NSURL? objectWithItemProviderData(objc.NSData data, + {required objc.NSString typeIdentifier, + required ffi.Pointer> error}) { objc.checkOsVersionInternal( 'NSURL.objectWithItemProviderData:typeIdentifier:error:', iOS: (false, (11, 0, 0)), @@ -80538,7 +80649,7 @@ extension NSItemProvider$1 on objc.NSURL { _sel_objectWithItemProviderData_typeIdentifier_error_, data.ref.pointer, typeIdentifier.ref.pointer, - outError); + error); return _ret.address == 0 ? null : objc.NSURL.castFromPointer(_ret, retain: true, release: true); @@ -80569,7 +80680,7 @@ extension NSItemProvider$1 on objc.NSURL { /// itemProviderVisibilityForRepresentationWithTypeIdentifier: static objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier_( + itemProviderVisibilityForRepresentationWithTypeIdentifier( objc.NSString typeIdentifier) { objc.checkOsVersionInternal( 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', @@ -80589,7 +80700,7 @@ extension NSItemProvider$1 on objc.NSURL { /// itemProviderVisibilityForRepresentationWithTypeIdentifier: objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier_$1( + itemProviderVisibilityForRepresentationWithTypeIdentifier$1( objc.NSString typeIdentifier) { objc.checkOsVersionInternal( 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', @@ -80608,10 +80719,9 @@ extension NSItemProvider$1 on objc.NSURL { } /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: - NSProgress? loadDataWithTypeIdentifier_forItemProviderCompletionHandler_( - objc.NSString typeIdentifier, - objc.ObjCBlock - completionHandler) { + objc.NSProgress? loadDataWithTypeIdentifier(objc.NSString typeIdentifier, + {required objc.ObjCBlock + forItemProviderCompletionHandler}) { objc.checkOsVersionInternal( 'NSURL.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', iOS: (false, (11, 0, 0)), @@ -80620,10 +80730,10 @@ extension NSItemProvider$1 on objc.NSURL { this.ref.pointer, _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, typeIdentifier.ref.pointer, - completionHandler.ref.pointer); + forItemProviderCompletionHandler.ref.pointer); return _ret.address == 0 ? null - : NSProgress.castFromPointer(_ret, retain: true, release: true); + : objc.NSProgress.castFromPointer(_ret, retain: true, release: true); } } @@ -80716,7 +80826,7 @@ late final _sel_stringByReplacingPercentEscapesUsingEncoding_ = /// NSURLUtilities extension NSURLUtilities$1 on objc.NSString { /// 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. - objc.NSString? stringByAddingPercentEncodingWithAllowedCharacters_( + objc.NSString? stringByAddingPercentEncodingWithAllowedCharacters( objc.NSCharacterSet allowedCharacters) { objc.checkOsVersionInternal( 'NSString.stringByAddingPercentEncodingWithAllowedCharacters:', @@ -80743,8 +80853,7 @@ extension NSURLUtilities$1 on objc.NSString { } /// stringByAddingPercentEscapesUsingEncoding: - objc.NSString? stringByAddingPercentEscapesUsingEncoding_( - DartNSUInteger enc) { + objc.NSString? stringByAddingPercentEscapesUsingEncoding(DartNSUInteger enc) { objc.checkOsVersionInternal( 'NSString.stringByAddingPercentEscapesUsingEncoding:', iOS: (false, (2, 0, 0)), @@ -80757,7 +80866,7 @@ extension NSURLUtilities$1 on objc.NSString { } /// stringByReplacingPercentEscapesUsingEncoding: - objc.NSString? stringByReplacingPercentEscapesUsingEncoding_( + objc.NSString? stringByReplacingPercentEscapesUsingEncoding( DartNSUInteger enc) { objc.checkOsVersionInternal( 'NSString.stringByReplacingPercentEscapesUsingEncoding:', @@ -80796,7 +80905,7 @@ late final _sel_URLByResolvingSymlinksInPath = /// NSURLPathUtilities extension NSURLPathUtilities on objc.NSURL { /// The following methods work on the path portion of a URL in the same manner that the NSPathUtilities methods on NSString do. - static objc.NSURL? fileURLWithPathComponents_(objc.NSArray components) { + static objc.NSURL? fileURLWithPathComponents(objc.NSArray components) { objc.checkOsVersionInternal('NSURL.fileURLWithPathComponents:', iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -80838,7 +80947,7 @@ extension NSURLPathUtilities on objc.NSURL { } /// URLByAppendingPathComponent: - objc.NSURL? URLByAppendingPathComponent_(objc.NSString pathComponent) { + objc.NSURL? URLByAppendingPathComponent(objc.NSString pathComponent) { objc.checkOsVersionInternal('NSURL.URLByAppendingPathComponent:', iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, @@ -80849,8 +80958,8 @@ extension NSURLPathUtilities on objc.NSURL { } /// URLByAppendingPathComponent:isDirectory: - objc.NSURL? URLByAppendingPathComponent_isDirectory_( - objc.NSString pathComponent, bool isDirectory) { + objc.NSURL? URLByAppendingPathComponent$1(objc.NSString pathComponent, + {required bool isDirectory}) { objc.checkOsVersionInternal( 'NSURL.URLByAppendingPathComponent:isDirectory:', iOS: (false, (5, 0, 0)), @@ -80877,11 +80986,11 @@ extension NSURLPathUtilities on objc.NSURL { } /// URLByAppendingPathExtension: - objc.NSURL? URLByAppendingPathExtension_(objc.NSString pathExtension) { + objc.NSURL? URLByAppendingPathExtension(objc.NSString pathExtension$1) { objc.checkOsVersionInternal('NSURL.URLByAppendingPathExtension:', iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_URLByAppendingPathExtension_, pathExtension.ref.pointer); + _sel_URLByAppendingPathExtension_, pathExtension$1.ref.pointer); return _ret.address == 0 ? null : objc.NSURL.castFromPointer(_ret, retain: true, release: true); @@ -80899,7 +81008,7 @@ extension NSURLPathUtilities on objc.NSURL { } /// 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_( + bool checkResourceIsReachableAndReturnError( ffi.Pointer> error) { objc.checkOsVersionInternal('NSURL.checkResourceIsReachableAndReturnError:', iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); @@ -80942,19 +81051,19 @@ late final _sel_URL_resourceDidFailLoadingWithReason_ = /// NSURLClient extension NSURLClient on objc.NSObject { /// URL:resourceDataDidBecomeAvailable: - void URL_resourceDataDidBecomeAvailable_( - objc.NSURL sender, objc.NSData newBytes) { + void URL(objc.NSURL sender, + {required objc.NSData resourceDataDidBecomeAvailable}) { objc.checkOsVersionInternal('NSObject.URL:resourceDataDidBecomeAvailable:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); _objc_msgSend_pfv6jd( this.ref.pointer, _sel_URL_resourceDataDidBecomeAvailable_, sender.ref.pointer, - newBytes.ref.pointer); + resourceDataDidBecomeAvailable.ref.pointer); } /// URLResourceDidFinishLoading: - void URLResourceDidFinishLoading_(objc.NSURL sender) { + void URLResourceDidFinishLoading(objc.NSURL sender) { objc.checkOsVersionInternal('NSObject.URLResourceDidFinishLoading:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); _objc_msgSend_xtuoz7(this.ref.pointer, _sel_URLResourceDidFinishLoading_, @@ -80962,7 +81071,7 @@ extension NSURLClient on objc.NSObject { } /// URLResourceDidCancelLoading: - void URLResourceDidCancelLoading_(objc.NSURL sender) { + void URLResourceDidCancelLoading(objc.NSURL sender) { objc.checkOsVersionInternal('NSObject.URLResourceDidCancelLoading:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); _objc_msgSend_xtuoz7(this.ref.pointer, _sel_URLResourceDidCancelLoading_, @@ -80970,8 +81079,8 @@ extension NSURLClient on objc.NSObject { } /// URL:resourceDidFailLoadingWithReason: - void URL_resourceDidFailLoadingWithReason_( - objc.NSURL sender, objc.NSString reason) { + void URL$1(objc.NSURL sender, + {required objc.NSString resourceDidFailLoadingWithReason}) { objc.checkOsVersionInternal( 'NSObject.URL:resourceDidFailLoadingWithReason:', iOS: (false, (2, 0, 0)), @@ -80980,7 +81089,7 @@ extension NSURLClient on objc.NSObject { this.ref.pointer, _sel_URL_resourceDidFailLoadingWithReason_, sender.ref.pointer, - reason.ref.pointer); + resourceDidFailLoadingWithReason.ref.pointer); } } @@ -81019,7 +81128,7 @@ late final _sel_URLHandleUsingCache_ = /// NSURLLoading extension NSURLLoading on objc.NSURL { /// 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 - objc.NSData? resourceDataUsingCache_(bool shouldUseCache) { + objc.NSData? resourceDataUsingCache(bool shouldUseCache) { objc.checkOsVersionInternal('NSURL.resourceDataUsingCache:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1t6aok9( @@ -81030,8 +81139,8 @@ extension NSURLLoading on objc.NSURL { } /// 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_( - objc.ObjCObjectBase client, bool shouldUseCache) { + void loadResourceDataNotifyingClient(objc.ObjCObjectBase client, + {required bool usingCache}) { objc.checkOsVersionInternal( 'NSURL.loadResourceDataNotifyingClient:usingCache:', iOS: (false, (2, 0, 0)), @@ -81040,11 +81149,11 @@ extension NSURLLoading on objc.NSURL { this.ref.pointer, _sel_loadResourceDataNotifyingClient_usingCache_, client.ref.pointer, - shouldUseCache); + usingCache); } /// propertyForKey: - objc.ObjCObjectBase? propertyForKey_(objc.NSString propertyKey) { + objc.ObjCObjectBase? propertyForKey(objc.NSString propertyKey) { objc.checkOsVersionInternal('NSURL.propertyForKey:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1sotr3r( @@ -81055,7 +81164,7 @@ extension NSURLLoading on objc.NSURL { } /// These attempt to write the given arguments for the resource specified by the URL; they return success or failure - bool setResourceData_(objc.NSData data) { + bool setResourceData(objc.NSData data) { objc.checkOsVersionInternal('NSURL.setResourceData:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); return _objc_msgSend_19nvye5( @@ -81063,16 +81172,16 @@ extension NSURLLoading on objc.NSURL { } /// setProperty:forKey: - bool setProperty_forKey_( - objc.ObjCObjectBase property, objc.NSString propertyKey) { + bool setProperty(objc.ObjCObjectBase property, + {required objc.NSString forKey}) { objc.checkOsVersionInternal('NSURL.setProperty:forKey:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); return _objc_msgSend_1lsax7n(this.ref.pointer, _sel_setProperty_forKey_, - property.ref.pointer, propertyKey.ref.pointer); + property.ref.pointer, forKey.ref.pointer); } /// 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 - objc.NSURLHandle? URLHandleUsingCache_(bool shouldUseCache) { + objc.NSURLHandle? URLHandleUsingCache(bool shouldUseCache) { objc.checkOsVersionInternal('NSURL.URLHandleUsingCache:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); final _ret = _objc_msgSend_1t6aok9( @@ -81315,7 +81424,7 @@ class NSCondition extends objc.NSObject implements NSLocking { } /// waitUntilDate: - bool waitUntilDate_(objc.NSDate limit) { + bool waitUntilDate(objc.NSDate limit) { objc.checkOsVersionInternal('NSCondition.waitUntilDate:', iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); return _objc_msgSend_19nvye5( @@ -81370,7 +81479,7 @@ class NSCondition extends objc.NSObject implements NSLocking { } /// allocWithZone: - static NSCondition allocWithZone_(ffi.Pointer zone) { + static NSCondition allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428(_class_NSCondition, _sel_allocWithZone_, zone); return NSCondition.castFromPointer(_ret, retain: false, release: true); @@ -81424,8 +81533,8 @@ typedef NSProgressUnpublishingHandler$1 = ffi.Pointer; typedef DartNSProgressUnpublishingHandler$1 = objc.ObjCBlock; typedef NSProgressPublishingHandler$1 = ffi.Pointer; -typedef DartNSProgressPublishingHandler$1 - = objc.ObjCBlock? Function(NSProgress)>; +typedef DartNSProgressPublishingHandler$1 = objc + .ObjCBlock? Function(objc.NSProgress)>; /// WARNING: NSException is a stub. To generate bindings for this class, include /// NSException in your config's objc-interfaces list. @@ -81453,7 +81562,7 @@ late final _sel_raise_format_ = objc.registerName("raise:format:"); /// NSExceptionRaisingConveniences extension NSExceptionRaisingConveniences on NSException { /// raise:format: - static void raise_format_(DartNSExceptionName name, objc.NSString format) { + static void raise(DartNSExceptionName name, {required objc.NSString format}) { _objc_msgSend_pfv6jd(_class_NSException, _sel_raise_format_, name.ref.pointer, format.ref.pointer); } @@ -81534,13 +81643,11 @@ extension NSErrorRecoveryAttempting on objc.NSObject { /// - (void)didPresentErrorWithRecovery:(BOOL)didRecover contextInfo:(void *)contextInfo; /// /// The value passed for didRecover must be YES if error recovery was completely successful, NO otherwise. - void - attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_( - objc.NSError error, - DartNSUInteger recoveryOptionIndex, - objc.ObjCObjectBase? delegate, - ffi.Pointer didRecoverSelector, - ffi.Pointer contextInfo) { + void attemptRecoveryFromError(objc.NSError error, + {required DartNSUInteger optionIndex, + objc.ObjCObjectBase? delegate, + required ffi.Pointer didRecoverSelector, + required ffi.Pointer contextInfo}) { objc.checkOsVersionInternal( 'NSObject.attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:', iOS: (false, (2, 0, 0)), @@ -81549,15 +81656,15 @@ extension NSErrorRecoveryAttempting on objc.NSObject { this.ref.pointer, _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_, error.ref.pointer, - recoveryOptionIndex, + optionIndex, delegate?.ref.pointer ?? 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_( - objc.NSError error, DartNSUInteger recoveryOptionIndex) { + bool attemptRecoveryFromError$1(objc.NSError error, + {required DartNSUInteger optionIndex}) { objc.checkOsVersionInternal( 'NSObject.attemptRecoveryFromError:optionIndex:', iOS: (false, (2, 0, 0)), @@ -81566,7 +81673,7 @@ extension NSErrorRecoveryAttempting on objc.NSObject { this.ref.pointer, _sel_attemptRecoveryFromError_optionIndex_, error.ref.pointer, - recoveryOptionIndex); + optionIndex); } } @@ -82444,6 +82551,8 @@ const int errSecCertificateIsCA = -67902; const int errSecCertificateDuplicateExtension = -67903; +const int errSecMissingQualifiedCertStatement = -67904; + const int errSSLProtocol = -9800; const int errSSLNegotiation = -9801; @@ -86690,18 +86799,32 @@ const int __API_TO_BE_DEPRECATED = 100000; const int __API_TO_BE_DEPRECATED_MACOS = 100000; +const int __API_TO_BE_DEPRECATED_MACOSAPPLICATIONEXTENSION = 100000; + const int __API_TO_BE_DEPRECATED_IOS = 100000; +const int __API_TO_BE_DEPRECATED_IOSAPPLICATIONEXTENSION = 100000; + const int __API_TO_BE_DEPRECATED_MACCATALYST = 100000; +const int __API_TO_BE_DEPRECATED_MACCATALYSTAPPLICATIONEXTENSION = 100000; + const int __API_TO_BE_DEPRECATED_WATCHOS = 100000; +const int __API_TO_BE_DEPRECATED_WATCHOSAPPLICATIONEXTENSION = 100000; + const int __API_TO_BE_DEPRECATED_TVOS = 100000; +const int __API_TO_BE_DEPRECATED_TVOSAPPLICATIONEXTENSION = 100000; + const int __API_TO_BE_DEPRECATED_DRIVERKIT = 100000; const int __API_TO_BE_DEPRECATED_VISIONOS = 100000; +const int __API_TO_BE_DEPRECATED_VISIONOSAPPLICATIONEXTENSION = 100000; + +const int __API_TO_BE_DEPRECATED_KERNELKIT = 100000; + const int __MAC_10_0 = 1000; const int __MAC_10_1 = 1010; @@ -86812,6 +86935,8 @@ const int __MAC_13_5 = 130500; const int __MAC_13_6 = 130600; +const int __MAC_13_7 = 130700; + const int __MAC_14_0 = 140000; const int __MAC_14_1 = 140100; @@ -86824,10 +86949,20 @@ const int __MAC_14_4 = 140400; const int __MAC_14_5 = 140500; +const int __MAC_14_6 = 140600; + +const int __MAC_14_7 = 140700; + const int __MAC_15_0 = 150000; const int __MAC_15_1 = 150100; +const int __MAC_15_2 = 150200; + +const int __MAC_15_3 = 150300; + +const int __MAC_15_4 = 150400; + const int __IPHONE_2_0 = 20000; const int __IPHONE_2_1 = 20100; @@ -86986,10 +87121,20 @@ const int __IPHONE_17_4 = 170400; const int __IPHONE_17_5 = 170500; +const int __IPHONE_17_6 = 170600; + +const int __IPHONE_17_7 = 170700; + const int __IPHONE_18_0 = 180000; const int __IPHONE_18_1 = 180100; +const int __IPHONE_18_2 = 180200; + +const int __IPHONE_18_3 = 180300; + +const int __IPHONE_18_4 = 180400; + const int __WATCHOS_1_0 = 10000; const int __WATCHOS_2_0 = 20000; @@ -87084,10 +87229,20 @@ const int __WATCHOS_10_4 = 100400; const int __WATCHOS_10_5 = 100500; +const int __WATCHOS_10_6 = 100600; + +const int __WATCHOS_10_7 = 100700; + const int __WATCHOS_11_0 = 110000; const int __WATCHOS_11_1 = 110100; +const int __WATCHOS_11_2 = 110200; + +const int __WATCHOS_11_3 = 110300; + +const int __WATCHOS_11_4 = 110400; + const int __TVOS_9_0 = 90000; const int __TVOS_9_1 = 90100; @@ -87184,10 +87339,18 @@ const int __TVOS_17_4 = 170400; const int __TVOS_17_5 = 170500; +const int __TVOS_17_6 = 170600; + const int __TVOS_18_0 = 180000; const int __TVOS_18_1 = 180100; +const int __TVOS_18_2 = 180200; + +const int __TVOS_18_3 = 180300; + +const int __TVOS_18_4 = 180400; + const int __BRIDGEOS_2_0 = 20000; const int __BRIDGEOS_3_0 = 30000; @@ -87240,10 +87403,18 @@ const int __BRIDGEOS_8_4 = 80400; const int __BRIDGEOS_8_5 = 80500; +const int __BRIDGEOS_8_6 = 80600; + const int __BRIDGEOS_9_0 = 90000; const int __BRIDGEOS_9_1 = 90100; +const int __BRIDGEOS_9_2 = 90200; + +const int __BRIDGEOS_9_3 = 90300; + +const int __BRIDGEOS_9_4 = 90400; + const int __DRIVERKIT_19_0 = 190000; const int __DRIVERKIT_20_0 = 200000; @@ -87270,20 +87441,36 @@ const int __DRIVERKIT_23_4 = 230400; const int __DRIVERKIT_23_5 = 230500; +const int __DRIVERKIT_23_6 = 230600; + const int __DRIVERKIT_24_0 = 240000; const int __DRIVERKIT_24_1 = 240100; +const int __DRIVERKIT_24_2 = 240200; + +const int __DRIVERKIT_24_3 = 240300; + +const int __DRIVERKIT_24_4 = 240400; + const int __VISIONOS_1_0 = 10000; const int __VISIONOS_1_1 = 10100; const int __VISIONOS_1_2 = 10200; +const int __VISIONOS_1_3 = 10300; + const int __VISIONOS_2_0 = 20000; const int __VISIONOS_2_1 = 20100; +const int __VISIONOS_2_2 = 20200; + +const int __VISIONOS_2_3 = 20300; + +const int __VISIONOS_2_4 = 20400; + const int MAC_OS_X_VERSION_10_0 = 1000; const int MAC_OS_X_VERSION_10_1 = 1010; @@ -87394,6 +87581,8 @@ const int MAC_OS_VERSION_13_5 = 130500; const int MAC_OS_VERSION_13_6 = 130600; +const int MAC_OS_VERSION_13_7 = 130700; + const int MAC_OS_VERSION_14_0 = 140000; const int MAC_OS_VERSION_14_1 = 140100; @@ -87406,13 +87595,29 @@ const int MAC_OS_VERSION_14_4 = 140400; const int MAC_OS_VERSION_14_5 = 140500; +const int MAC_OS_VERSION_14_6 = 140600; + +const int MAC_OS_VERSION_14_7 = 140700; + const int MAC_OS_VERSION_15_0 = 150000; const int MAC_OS_VERSION_15_1 = 150100; +const int MAC_OS_VERSION_15_2 = 150200; + +const int MAC_OS_VERSION_15_3 = 150300; + +const int MAC_OS_VERSION_15_4 = 150400; + +const int __AVAILABILITY_VERSIONS_VERSION_HASH = 93585900; + +const String __AVAILABILITY_VERSIONS_VERSION_STRING = 'Local'; + +const String __AVAILABILITY_FILE = 'AvailabilityVersions.h'; + const int __MAC_OS_X_VERSION_MIN_REQUIRED = 150000; -const int __MAC_OS_X_VERSION_MAX_ALLOWED = 150100; +const int __MAC_OS_X_VERSION_MAX_ALLOWED = 150400; const int __ENABLE_LEGACY_MAC_AVAILABILITY = 1; @@ -87456,6 +87661,8 @@ const int _DARWIN_FEATURE_UNIX_CONFORMANCE = 3; const int __has_ptrcheck = 0; +const int __has_bounds_safety_attributes = 0; + const int __DARWIN_NULL = 0; const int __PTHREAD_SIZE__ = 8176; @@ -87970,6 +88177,8 @@ const int IOPOL_VFS_SKIP_MTIME_UPDATE_OFF = 0; const int IOPOL_VFS_SKIP_MTIME_UPDATE_ON = 1; +const int IOPOL_VFS_SKIP_MTIME_UPDATE_IGNORE = 2; + const int IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF = 0; const int IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON = 1; @@ -88138,6 +88347,52 @@ const int QUAD_MAX = 9223372036854775807; const int QUAD_MIN = -9223372036854775808; +const int ARG_MAX = 1048576; + +const int CHILD_MAX = 266; + +const int GID_MAX = 2147483647; + +const int LINK_MAX = 32767; + +const int MAX_CANON = 1024; + +const int MAX_INPUT = 1024; + +const int NAME_MAX = 255; + +const int NGROUPS_MAX = 16; + +const int UID_MAX = 2147483647; + +const int OPEN_MAX = 10240; + +const int PATH_MAX = 1024; + +const int PIPE_BUF = 512; + +const int BC_BASE_MAX = 99; + +const int BC_DIM_MAX = 2048; + +const int BC_SCALE_MAX = 99; + +const int BC_STRING_MAX = 1000; + +const int CHARCLASS_NAME_MAX = 14; + +const int COLL_WEIGHTS_MAX = 2; + +const int EQUIV_CLASS_MAX = 2; + +const int EXPR_NEST_MAX = 32; + +const int LINE_MAX = 2048; + +const int RE_DUP_MAX = 255; + +const int NZERO = 20; + const int _POSIX_THREAD_KEYS_MAX = 128; const int API_TO_BE_DEPRECATED = 100000; @@ -88176,6 +88431,8 @@ const int SEEK_HOLE = 3; const int SEEK_DATA = 4; +const int L_ctermid = 1024; + const int MACH_PORT_NULL = 0; const int MACH_PORT_DEAD = 4294967295; @@ -88330,10 +88587,10 @@ const int GUARD_TYPE_MACH_PORT = 1; const int MAX_FATAL_kGUARD_EXC_CODE = 128; -const int MPG_FLAGS_NONE = 0; - const int MAX_OPTIONAL_kGUARD_EXC_CODE = 524288; +const int MPG_FLAGS_NONE = 0; + const int MPG_FLAGS_STRICT_REPLY_INVALID_REPLY_DISP = 72057594037927936; const int MPG_FLAGS_STRICT_REPLY_INVALID_REPLY_PORT = 144115188075855872; @@ -89022,6 +89279,8 @@ const int O_TRUNC = 1024; const int O_EXCL = 2048; +const int O_RESOLVE_BENEATH = 4096; + const int O_EVTONLY = 32768; const int O_NOCTTY = 131072; diff --git a/pkgs/cupertino_http/pubspec.yaml b/pkgs/cupertino_http/pubspec.yaml index ced1645311..3fa25c5cf4 100644 --- a/pkgs/cupertino_http/pubspec.yaml +++ b/pkgs/cupertino_http/pubspec.yaml @@ -16,12 +16,12 @@ dependencies: sdk: flutter http: ^1.2.0 http_profile: ^0.1.0 - objective_c: ^7.0.0 + objective_c: ^8.1.0 web_socket: '>=0.1.5 <2.0.0' dev_dependencies: dart_flutter_team_lints: ^3.0.0 - ffigen: ^18.0.0 + ffigen: ^19.1.0 flutter: plugin: From 41647e86db7b7a77f418a7b19d830d4b16f9b078 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 18 Aug 2025 16:20:52 -0700 Subject: [PATCH 02/14] Fixes --- pkgs/cupertino_http/ffigen.yaml | 2 -- pkgs/cupertino_http/lib/src/cupertino_api.dart | 5 +++-- pkgs/cupertino_http/lib/src/utils.dart | 10 +++++----- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/pkgs/cupertino_http/ffigen.yaml b/pkgs/cupertino_http/ffigen.yaml index 39993ae3c4..70935a1f74 100644 --- a/pkgs/cupertino_http/ffigen.yaml +++ b/pkgs/cupertino_http/ffigen.yaml @@ -50,8 +50,6 @@ objc-interfaces: 'initWithURL:MIMEType:expectedContentLength:textEncodingName:': 'initWithUrlAndMIMEType' 'NSHTTPURLResponse': 'initWithURL:statusCode:HTTPVersion:headerFields:': 'initWithURLAndStatusCode' - 'NSURLSession': - 'dataTaskWithRequest:completionHandler:': 'dataTaskWithRequestAndCompletionHandler' objc-protocols: include: - 'NSURLSessionDataDelegate' diff --git a/pkgs/cupertino_http/lib/src/cupertino_api.dart b/pkgs/cupertino_http/lib/src/cupertino_api.dart index 9d3de4a0ba..fc9e839227 100644 --- a/pkgs/cupertino_http/lib/src/cupertino_api.dart +++ b/pkgs/cupertino_http/lib/src/cupertino_api.dart @@ -1075,9 +1075,10 @@ class URLSession extends _ObjectHolder { ); }); - final task = _nsObject.dataTaskWithRequestAndCompletionHandler( + final task = + ncb.NSURLSessionAsynchronousConvenience(_nsObject).dataTaskWithRequest( request._nsObject, - completer, + completionHandler: completer, ); return URLSessionTask._(task); diff --git a/pkgs/cupertino_http/lib/src/utils.dart b/pkgs/cupertino_http/lib/src/utils.dart index 8146756a75..1d5ab4e4ad 100644 --- a/pkgs/cupertino_http/lib/src/utils.dart +++ b/pkgs/cupertino_http/lib/src/utils.dart @@ -10,12 +10,12 @@ Map stringNSDictionaryToMap(NSDictionary d) { final m = {}; final keys = NSArray.castFrom(d.allKeys); for (var i = 0; i < keys.count; ++i) { - final nsKey = keys.objectAtIndex_(i); + final nsKey = keys.objectAtIndex(i); if (!NSString.isInstance(nsKey)) { throw UnsupportedError('keys must be strings'); } final key = NSString.castFrom(nsKey).toDartString(); - final nsValue = d.objectForKey_(nsKey); + final nsValue = d.objectForKey(nsKey); if (nsValue == null || !NSString.isInstance(nsValue)) { throw UnsupportedError('values must be strings'); } @@ -27,14 +27,14 @@ Map stringNSDictionaryToMap(NSDictionary d) { } NSArray stringIterableToNSArray(Iterable strings) { - final array = NSMutableArray.arrayWithCapacity_(strings.length); + final array = NSMutableArray.arrayWithCapacity(strings.length); var index = 0; for (var s in strings) { - array.setObject_atIndexedSubscript_(s.toNSString(), index++); + array.setObject(s.toNSString(), atIndexedSubscript: index++); } return array; } -NSURL uriToNSURL(Uri uri) => NSURL.URLWithString_(uri.toString().toNSString())!; +NSURL uriToNSURL(Uri uri) => NSURL.URLWithString(uri.toString().toNSString())!; Uri nsurlToUri(NSURL url) => Uri.parse(url.absoluteString!.toDartString()); From 31520bef2610554dd1c6ff2c57ca3f3689fe4f03 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 18 Aug 2025 16:26:00 -0700 Subject: [PATCH 03/14] Update pubspec.yaml --- pkgs/cupertino_http/example/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/cupertino_http/example/pubspec.yaml b/pkgs/cupertino_http/example/pubspec.yaml index 0d44ce4477..aebdd47755 100644 --- a/pkgs/cupertino_http/example/pubspec.yaml +++ b/pkgs/cupertino_http/example/pubspec.yaml @@ -31,7 +31,7 @@ dev_dependencies: http_profile: ^0.1.0 integration_test: sdk: flutter - objective_c: ^7.0.0 + objective_c: ^8.1.0 test: ^1.21.1 web_socket_conformance_tests: path: ../../web_socket_conformance_tests/ From 6f3b688926a19232725af44b79080a9f6ab94fcf Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 18 Aug 2025 16:30:41 -0700 Subject: [PATCH 04/14] Fix --- .../url_session_delegate_test.dart | 2 +- .../example/integration_test/utils_test.dart | 22 +++++++++---------- .../integration_test/web_socket_test.dart | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/pkgs/cupertino_http/example/integration_test/url_session_delegate_test.dart b/pkgs/cupertino_http/example/integration_test/url_session_delegate_test.dart index 6baa5e6ca9..5151eec6dc 100644 --- a/pkgs/cupertino_http/example/integration_test/url_session_delegate_test.dart +++ b/pkgs/cupertino_http/example/integration_test/url_session_delegate_test.dart @@ -177,7 +177,7 @@ void testOnData(URLSessionConfiguration Function() config) { onData: (s, t, d) { actualSession = s; actualTask = t; - actualData.appendData_(d); + actualData.appendData(d); }); final task = session.dataTaskWithRequest( diff --git a/pkgs/cupertino_http/example/integration_test/utils_test.dart b/pkgs/cupertino_http/example/integration_test/utils_test.dart index bb104eef18..5ea24ef944 100644 --- a/pkgs/cupertino_http/example/integration_test/utils_test.dart +++ b/pkgs/cupertino_http/example/integration_test/utils_test.dart @@ -19,31 +19,31 @@ void main() { test('single string input', () { final d = objc.NSMutableDictionary() - ..setObject_forKey_('value'.toNSString(), 'key'.toNSString()); + ..setObject('value'.toNSString(), forKey: 'key'.toNSString()); expect(stringNSDictionaryToMap(d), {'key': 'value'}); }); test('multiple string input', () { final d = objc.NSMutableDictionary() - ..setObject_forKey_('value1'.toNSString(), 'key1'.toNSString()) - ..setObject_forKey_('value2'.toNSString(), 'key2'.toNSString()) - ..setObject_forKey_('value3'.toNSString(), 'key3'.toNSString()); + ..setObject('value1'.toNSString(), forKey: 'key1'.toNSString()) + ..setObject('value2'.toNSString(), forKey: 'key2'.toNSString()) + ..setObject('value3'.toNSString(), forKey: 'key3'.toNSString()); expect(stringNSDictionaryToMap(d), {'key1': 'value1', 'key2': 'value2', 'key3': 'value3'}); }); test('non-string value', () { final d = objc.NSMutableDictionary() - ..setObject_forKey_( - objc.NSNumberCreation.numberWithInteger_(5), 'key'.toNSString()); + ..setObject(objc.NSNumberCreation.numberWithInteger(5), + forKey: 'key'.toNSString()); expect(() => stringNSDictionaryToMap(d), throwsUnsupportedError); }); test('non-string key', () { final d = objc.NSMutableDictionary() - ..setObject_forKey_( - 'value'.toNSString(), objc.NSNumberCreation.numberWithInteger_(5)); + ..setObject('value'.toNSString(), + forKey: objc.NSNumberCreation.numberWithInteger(5)); expect(() => stringNSDictionaryToMap(d), throwsUnsupportedError); }); }); @@ -57,16 +57,16 @@ void main() { test('single string input', () { final array = stringIterableToNSArray(['apple']); expect(array.count, 1); - expect(objc.NSString.castFrom(array.objectAtIndex_(0)).toDartString(), + expect(objc.NSString.castFrom(array.objectAtIndex(0)).toDartString(), 'apple'); }); test('multiple string input', () { final array = stringIterableToNSArray(['apple', 'banana']); expect(array.count, 2); - expect(objc.NSString.castFrom(array.objectAtIndex_(0)).toDartString(), + expect(objc.NSString.castFrom(array.objectAtIndex(0)).toDartString(), 'apple'); - expect(objc.NSString.castFrom(array.objectAtIndex_(1)).toDartString(), + expect(objc.NSString.castFrom(array.objectAtIndex(1)).toDartString(), 'banana'); }); }); diff --git a/pkgs/cupertino_http/example/integration_test/web_socket_test.dart b/pkgs/cupertino_http/example/integration_test/web_socket_test.dart index 9c4d0c5528..abc958a889 100644 --- a/pkgs/cupertino_http/example/integration_test/web_socket_test.dart +++ b/pkgs/cupertino_http/example/integration_test/web_socket_test.dart @@ -12,8 +12,8 @@ void main() { expect( ConnectionException( 'failed to connect', - NSError.errorWithDomain_code_userInfo_( - 'NSURLErrorDomain'.toNSString(), -999, null)) + NSError.errorWithDomain('NSURLErrorDomain'.toNSString(), + code: -999)) .toString(), 'CupertinoErrorWebSocketException: failed to connect ' '[The operation couldn’t be completed. ' From ee5133dbbcc60c00715abd6ebacc48081e7a57e5 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 18 Aug 2025 16:35:37 -0700 Subject: [PATCH 05/14] Fix --- .github/workflows/cupertino.yml | 4 ++-- .../example/ios/Runner.xcodeproj/project.pbxproj | 6 +++--- .../Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme | 3 +++ pkgs/cupertino_http/example/pubspec.yaml | 4 ++-- pkgs/cupertino_http/pubspec.yaml | 4 ++-- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cupertino.yml b/.github/workflows/cupertino.yml index 480c636021..5ebbf8b90f 100644 --- a/.github/workflows/cupertino.yml +++ b/.github/workflows/cupertino.yml @@ -33,7 +33,7 @@ jobs: matrix: # Test on the minimum supported flutter version and the latest # version. - flutter-version: ["3.24.0", "any"] + flutter-version: ["3.32.0", "any"] # It would be nice to test on older versions of macOS but macOS 13 is # the oldest supported by GitHub. os: [macos-13, macos-latest] @@ -68,7 +68,7 @@ jobs: matrix: # Test on the minimum supported flutter version and the latest # version. - flutter-version: ["3.24.0", "any"] + flutter-version: ["3.32.0", "any"] steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e diff --git a/pkgs/cupertino_http/example/ios/Runner.xcodeproj/project.pbxproj b/pkgs/cupertino_http/example/ios/Runner.xcodeproj/project.pbxproj index 64fe2b898d..ba3c48b272 100644 --- a/pkgs/cupertino_http/example/ios/Runner.xcodeproj/project.pbxproj +++ b/pkgs/cupertino_http/example/ios/Runner.xcodeproj/project.pbxproj @@ -343,7 +343,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -421,7 +421,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -470,7 +470,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/pkgs/cupertino_http/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/pkgs/cupertino_http/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 5e31d3d342..9c12df59c6 100644 --- a/pkgs/cupertino_http/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/pkgs/cupertino_http/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -26,6 +26,7 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit" shouldUseLaunchSchemeArgsEnv = "YES"> diff --git a/pkgs/cupertino_http/example/pubspec.yaml b/pkgs/cupertino_http/example/pubspec.yaml index aebdd47755..679783ba77 100644 --- a/pkgs/cupertino_http/example/pubspec.yaml +++ b/pkgs/cupertino_http/example/pubspec.yaml @@ -6,8 +6,8 @@ publish_to: 'none' version: 1.0.0+1 environment: - sdk: ^3.4.0 - flutter: '>=3.22.0' + sdk: ^3.8.0 + flutter: '>=3.32.0' dependencies: cupertino_http: diff --git a/pkgs/cupertino_http/pubspec.yaml b/pkgs/cupertino_http/pubspec.yaml index 3fa25c5cf4..39191acb13 100644 --- a/pkgs/cupertino_http/pubspec.yaml +++ b/pkgs/cupertino_http/pubspec.yaml @@ -6,8 +6,8 @@ description: >- repository: https://github.com/dart-lang/http/tree/master/pkgs/cupertino_http environment: - sdk: ^3.4.0 - flutter: '>=3.24.0' # If changed, update test matrix. + sdk: ^3.8.0 + flutter: '>=3.32.0' # If changed, update test matrix. dependencies: async: ^2.5.0 From f9df49e887631e47d08806458649d54f197a55a4 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 18 Aug 2025 16:43:16 -0700 Subject: [PATCH 06/14] Update cupertino.yml --- .github/workflows/cupertino.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cupertino.yml b/.github/workflows/cupertino.yml index 5ebbf8b90f..f67f917ac1 100644 --- a/.github/workflows/cupertino.yml +++ b/.github/workflows/cupertino.yml @@ -47,7 +47,7 @@ jobs: name: Install dependencies run: flutter pub get - name: Check formatting - run: dart format --output=none --set-exit-if-changed . + run: dart format --set-exit-if-changed . if: always() && steps.install.outcome == 'success' - name: Analyze code run: flutter analyze --fatal-infos From e3851eab3a16d724cc0f9ba49461c1956a487b37 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 18 Aug 2025 16:49:39 -0700 Subject: [PATCH 07/14] Fix --- .../integration_test/client_profile_test.dart | 141 +++-- .../http_url_response_test.dart | 8 +- .../mutable_url_request_test.dart | 6 +- .../ns_error_client_exception.dart | 27 +- .../integration_test/url_cache_test.dart | 5 +- .../integration_test/url_request_test.dart | 18 +- .../integration_test/url_response_test.dart | 12 +- .../url_session_configuration_test.dart | 111 ++-- .../url_session_delegate_test.dart | 547 ++++++++++-------- .../url_session_task_test.dart | 232 +++++--- .../integration_test/url_session_test.dart | 139 +++-- .../example/integration_test/utils_test.dart | 37 +- .../web_socket_conformance_test.dart | 10 +- .../integration_test/web_socket_test.dart | 15 +- .../cupertino_http/lib/src/cupertino_api.dart | 490 ++++++++++------ .../lib/src/cupertino_client.dart | 124 ++-- .../lib/src/cupertino_web_socket.dart | 136 +++-- 17 files changed, 1230 insertions(+), 828 deletions(-) diff --git a/pkgs/cupertino_http/example/integration_test/client_profile_test.dart b/pkgs/cupertino_http/example/integration_test/client_profile_test.dart index ce59029078..0f940e1370 100644 --- a/pkgs/cupertino_http/example/integration_test/client_profile_test.dart +++ b/pkgs/cupertino_http/example/integration_test/client_profile_test.dart @@ -41,8 +41,11 @@ void main() { }); successServerUri = Uri.http('localhost:${successServer.port}'); final client = CupertinoClientWithProfile.defaultSessionConfiguration(); - await client.post(successServerUri, - headers: {'Content-Type': 'text/plain'}, body: 'Hi'); + await client.post( + successServerUri, + headers: {'Content-Type': 'text/plain'}, + body: 'Hi', + ); profile = client.profile!; }); tearDownAll(() { @@ -53,8 +56,10 @@ void main() { expect(profile.events, isEmpty); expect(profile.requestMethod, 'POST'); expect(profile.requestUri, successServerUri.toString()); - expect(profile.connectionInfo, - containsPair('package', 'package:cupertino_http')); + expect( + profile.connectionInfo, + containsPair('package', 'package:cupertino_http'), + ); }); test('request attributes', () { @@ -63,9 +68,13 @@ void main() { expect(profile.requestData.endTime, isNotNull); expect(profile.requestData.error, isNull); expect( - profile.requestData.headers, containsPair('Content-Length', ['2'])); - expect(profile.requestData.headers, - containsPair('Content-Type', ['text/plain; charset=utf-8'])); + profile.requestData.headers, + containsPair('Content-Length', ['2']), + ); + expect( + profile.requestData.headers, + containsPair('Content-Type', ['text/plain; charset=utf-8']), + ); expect(profile.requestData.persistentConnection, isNull); expect(profile.requestData.proxyDetails, isNull); expect(profile.requestData.startTime, isNotNull); @@ -77,10 +86,14 @@ void main() { expect(profile.responseData.contentLength, 11); expect(profile.responseData.endTime, isNotNull); expect(profile.responseData.error, isNull); - expect(profile.responseData.headers, - containsPair('content-type', ['text/plain'])); - expect(profile.responseData.headers, - containsPair('content-length', ['11'])); + expect( + profile.responseData.headers, + containsPair('content-type', ['text/plain']), + ); + expect( + profile.responseData.headers, + containsPair('content-length', ['11']), + ); expect(profile.responseData.isRedirect, false); expect(profile.responseData.persistentConnection, isNull); expect(profile.responseData.reasonPhrase, 'OK'); @@ -119,7 +132,8 @@ void main() { } }(); unawaited( - request.sink.addStream(stream).then((_) => request.sink.close())); + request.sink.addStream(stream).then((_) => request.sink.close()), + ); await client.send(request); profile = client.profile!; @@ -143,8 +157,11 @@ void main() { setUpAll(() async { final client = CupertinoClientWithProfile.defaultSessionConfiguration(); try { - await client.post(Uri.http('thisisnotahost'), - headers: {'Content-Type': 'text/plain'}, body: 'Hi'); + await client.post( + Uri.http('thisisnotahost'), + headers: {'Content-Type': 'text/plain'}, + body: 'Hi', + ); fail('expected exception'); } on ClientException { // Expected exception. @@ -156,8 +173,10 @@ void main() { expect(profile.events, isEmpty); expect(profile.requestMethod, 'POST'); expect(profile.requestUri, 'http://thisisnotahost'); - expect(profile.connectionInfo, - containsPair('package', 'package:cupertino_http')); + expect( + profile.connectionInfo, + containsPair('package', 'package:cupertino_http'), + ); }); test('request attributes', () { @@ -165,11 +184,17 @@ void main() { expect(profile.requestData.contentLength, 2); expect(profile.requestData.endTime, isNotNull); expect( - profile.requestData.error, startsWith('NSErrorClientException:')); + profile.requestData.error, + startsWith('NSErrorClientException:'), + ); + expect( + profile.requestData.headers, + containsPair('Content-Length', ['2']), + ); expect( - profile.requestData.headers, containsPair('Content-Length', ['2'])); - expect(profile.requestData.headers, - containsPair('Content-Type', ['text/plain; charset=utf-8'])); + profile.requestData.headers, + containsPair('Content-Type', ['text/plain; charset=utf-8']), + ); expect(profile.requestData.persistentConnection, isNull); expect(profile.requestData.proxyDetails, isNull); expect(profile.requestData.startTime, isNotNull); @@ -209,8 +234,11 @@ void main() { final client = CupertinoClientWithProfile.defaultSessionConfiguration(); try { - await client.post(successServerUri, - headers: {'Content-Type': 'text/plain'}, body: 'Hi'); + await client.post( + successServerUri, + headers: {'Content-Type': 'text/plain'}, + body: 'Hi', + ); fail('expected exception'); } on ClientException { // Expected exception. @@ -225,8 +253,10 @@ void main() { expect(profile.events, isEmpty); expect(profile.requestMethod, 'POST'); expect(profile.requestUri, successServerUri.toString()); - expect(profile.connectionInfo, - containsPair('package', 'package:cupertino_http')); + expect( + profile.connectionInfo, + containsPair('package', 'package:cupertino_http'), + ); }); test('request attributes', () { @@ -235,9 +265,13 @@ void main() { expect(profile.requestData.endTime, isNotNull); expect(profile.requestData.error, isNull); expect( - profile.requestData.headers, containsPair('Content-Length', ['2'])); - expect(profile.requestData.headers, - containsPair('Content-Type', ['text/plain; charset=utf-8'])); + profile.requestData.headers, + containsPair('Content-Length', ['2']), + ); + expect( + profile.requestData.headers, + containsPair('Content-Type', ['text/plain; charset=utf-8']), + ); expect(profile.requestData.persistentConnection, isNull); expect(profile.requestData.proxyDetails, isNull); expect(profile.requestData.startTime, isNotNull); @@ -249,11 +283,17 @@ void main() { expect(profile.responseData.contentLength, 11); expect(profile.responseData.endTime, isNotNull); expect( - profile.responseData.error, startsWith('NSErrorClientException:')); - expect(profile.responseData.headers, - containsPair('content-type', ['text/plain'])); - expect(profile.responseData.headers, - containsPair('content-length', ['11'])); + profile.responseData.error, + startsWith('NSErrorClientException:'), + ); + expect( + profile.responseData.headers, + containsPair('content-type', ['text/plain']), + ); + expect( + profile.responseData.headers, + containsPair('content-length', ['11']), + ); expect(profile.responseData.isRedirect, false); expect(profile.responseData.persistentConnection, isNull); expect(profile.responseData.reasonPhrase, 'OK'); @@ -325,8 +365,11 @@ void main() { } else { final n = int.parse(request.requestedUri.pathSegments.last); final nextPath = n - 1 == 0 ? '' : '${n - 1}'; - unawaited(request.response - .redirect(successServerUri.replace(path: '/$nextPath'))); + unawaited( + request.response.redirect( + successServerUri.replace(path: '/$nextPath'), + ), + ); } }); successServerUri = Uri.http('localhost:${successServer.port}'); @@ -345,9 +388,11 @@ void main() { test('follow redirects', () async { final client = CupertinoClientWithProfile.defaultSessionConfiguration(); - await client.send(Request('GET', successServerUri.replace(path: '/3')) - ..followRedirects = true - ..maxRedirects = 4); + await client.send( + Request('GET', successServerUri.replace(path: '/3')) + ..followRedirects = true + ..maxRedirects = 4, + ); profile = client.profile!; expect(profile.requestData.followRedirects, true); @@ -356,25 +401,29 @@ void main() { expect(profile.responseData.redirects, [ HttpProfileRedirectData( - statusCode: 302, - method: 'GET', - location: successServerUri.replace(path: '/2').toString()), + statusCode: 302, + method: 'GET', + location: successServerUri.replace(path: '/2').toString(), + ), HttpProfileRedirectData( - statusCode: 302, - method: 'GET', - location: successServerUri.replace(path: '/1').toString()), + statusCode: 302, + method: 'GET', + location: successServerUri.replace(path: '/1').toString(), + ), HttpProfileRedirectData( statusCode: 302, method: 'GET', location: successServerUri.replace(path: '/').toString(), - ) + ), ]); }); test('no follow redirects', () async { final client = CupertinoClientWithProfile.defaultSessionConfiguration(); - await client.send(Request('GET', successServerUri.replace(path: '/3')) - ..followRedirects = false); + await client.send( + Request('GET', successServerUri.replace(path: '/3')) + ..followRedirects = false, + ); profile = client.profile!; expect(profile.requestData.followRedirects, false); diff --git a/pkgs/cupertino_http/example/integration_test/http_url_response_test.dart b/pkgs/cupertino_http/example/integration_test/http_url_response_test.dart index 5e29620a4b..fdb65f5683 100644 --- a/pkgs/cupertino_http/example/integration_test/http_url_response_test.dart +++ b/pkgs/cupertino_http/example/integration_test/http_url_response_test.dart @@ -26,10 +26,10 @@ void main() { }); final session = URLSession.sharedSession(); final task = session.dataTaskWithRequest( - URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}'))) - ..resume(); - while ( - task.state != NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { + URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}')), + )..resume(); + while (task.state != + NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { // Let the event loop run. await Future(() {}); } diff --git a/pkgs/cupertino_http/example/integration_test/mutable_url_request_test.dart b/pkgs/cupertino_http/example/integration_test/mutable_url_request_test.dart index 446b1ee95f..aeaff518b9 100644 --- a/pkgs/cupertino_http/example/integration_test/mutable_url_request_test.dart +++ b/pkgs/cupertino_http/example/integration_test/mutable_url_request_test.dart @@ -21,8 +21,10 @@ void main() { test('set', () { request.cachePolicy = NSURLRequestCachePolicy.NSURLRequestReturnCacheDataDontLoad; - expect(request.cachePolicy, - NSURLRequestCachePolicy.NSURLRequestReturnCacheDataDontLoad); + expect( + request.cachePolicy, + NSURLRequestCachePolicy.NSURLRequestReturnCacheDataDontLoad, + ); request.toString(); // Just verify that there is no crash. }); }); diff --git a/pkgs/cupertino_http/example/integration_test/ns_error_client_exception.dart b/pkgs/cupertino_http/example/integration_test/ns_error_client_exception.dart index 46b34befeb..81c63a1cc2 100644 --- a/pkgs/cupertino_http/example/integration_test/ns_error_client_exception.dart +++ b/pkgs/cupertino_http/example/integration_test/ns_error_client_exception.dart @@ -18,18 +18,25 @@ void main() { test('thrown', () async { expect( - () => client.get(Uri.http('doesnotexist', '/')), - throwsA(isA() - .having((e) => e.error.domain.toDartString(), 'error.domain', - 'NSURLErrorDomain') + () => client.get(Uri.http('doesnotexist', '/')), + throwsA( + isA() + .having( + (e) => e.error.domain.toDartString(), + 'error.domain', + 'NSURLErrorDomain', + ) .having((e) => e.error.code, 'error.code', -1003) .having( - (e) => e.toString(), - 'toString()', - 'NSErrorClientException: A server with the specified ' - 'hostname could not be found. ' - '[domain=NSURLErrorDomain, code=-1003], ' - 'uri=http://doesnotexist/'))); + (e) => e.toString(), + 'toString()', + 'NSErrorClientException: A server with the specified ' + 'hostname could not be found. ' + '[domain=NSURLErrorDomain, code=-1003], ' + 'uri=http://doesnotexist/', + ), + ), + ); }); }); } diff --git a/pkgs/cupertino_http/example/integration_test/url_cache_test.dart b/pkgs/cupertino_http/example/integration_test/url_cache_test.dart index 133a5d9695..ff85844653 100644 --- a/pkgs/cupertino_http/example/integration_test/url_cache_test.dart +++ b/pkgs/cupertino_http/example/integration_test/url_cache_test.dart @@ -38,8 +38,9 @@ void main() { }); Future doRequest(URLSession session) { - final request = - URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}')); + final request = URLRequest.fromUrl( + Uri.parse('http://localhost:${server.port}'), + ); final c = Completer(); session.dataTaskWithCompletionHandler(request, (d, r, e) { c.complete(); diff --git a/pkgs/cupertino_http/example/integration_test/url_request_test.dart b/pkgs/cupertino_http/example/integration_test/url_request_test.dart index 266d578c41..883b082690 100644 --- a/pkgs/cupertino_http/example/integration_test/url_request_test.dart +++ b/pkgs/cupertino_http/example/integration_test/url_request_test.dart @@ -19,8 +19,10 @@ void main() { expect(request.httpBody, null); expect(request.timeoutInterval, const Duration(minutes: 1)); - expect(request.cachePolicy, - NSURLRequestCachePolicy.NSURLRequestUseProtocolCachePolicy); + expect( + request.cachePolicy, + NSURLRequestCachePolicy.NSURLRequestUseProtocolCachePolicy, + ); request.toString(); // Just verify that there is no crash. }); @@ -34,8 +36,10 @@ void main() { expect(request.httpBody, null); expect(request.timeoutInterval, const Duration(minutes: 1)); - expect(request.cachePolicy, - NSURLRequestCachePolicy.NSURLRequestUseProtocolCachePolicy); + expect( + request.cachePolicy, + NSURLRequestCachePolicy.NSURLRequestUseProtocolCachePolicy, + ); request.toString(); // Just verify that there is no crash. }); @@ -49,8 +53,10 @@ void main() { expect(request.httpBody, null); expect(request.timeoutInterval, const Duration(minutes: 1)); - expect(request.cachePolicy, - NSURLRequestCachePolicy.NSURLRequestUseProtocolCachePolicy); + expect( + request.cachePolicy, + NSURLRequestCachePolicy.NSURLRequestUseProtocolCachePolicy, + ); request.toString(); // Just verify that there is no crash. }); diff --git a/pkgs/cupertino_http/example/integration_test/url_response_test.dart b/pkgs/cupertino_http/example/integration_test/url_response_test.dart index 908996d9e7..55fe207562 100644 --- a/pkgs/cupertino_http/example/integration_test/url_response_test.dart +++ b/pkgs/cupertino_http/example/integration_test/url_response_test.dart @@ -13,11 +13,13 @@ void main() { late URLResponse response; setUp(() async { final session = URLSession.sharedSession(); - final task = session.dataTaskWithRequest(URLRequest.fromUrl( - Uri.parse('data:text/fancy;charset=utf-8,Hello%20World'))) - ..resume(); - while ( - task.state != NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { + final task = session.dataTaskWithRequest( + URLRequest.fromUrl( + Uri.parse('data:text/fancy;charset=utf-8,Hello%20World'), + ), + )..resume(); + while (task.state != + NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { // Let the event loop run. await Future.delayed(const Duration()); } diff --git a/pkgs/cupertino_http/example/integration_test/url_session_configuration_test.dart b/pkgs/cupertino_http/example/integration_test/url_session_configuration_test.dart index 6796b3595b..33d36261ab 100644 --- a/pkgs/cupertino_http/example/integration_test/url_session_configuration_test.dart +++ b/pkgs/cupertino_http/example/integration_test/url_session_configuration_test.dart @@ -11,7 +11,8 @@ import 'package:test/test.dart'; /// Make a HTTP request using the given configuration and return the headers /// received by the server. Future>> sentHeaders( - URLSessionConfiguration config) async { + URLSessionConfiguration config, +) async { final session = URLSession.sessionWithConfiguration(config); final headers = >{}; final server = (await HttpServer.bind('localhost', 0)) @@ -23,9 +24,11 @@ Future>> sentHeaders( await request.response.close(); }); - final task = session.dataTaskWithRequest(URLRequest.fromUrl( - Uri(scheme: 'http', host: 'localhost', port: server.port))) - ..resume(); + final task = session.dataTaskWithRequest( + URLRequest.fromUrl( + Uri(scheme: 'http', host: 'localhost', port: server.port), + ), + )..resume(); while (task.state != NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { await pumpEventQueue(); } @@ -65,10 +68,12 @@ void testProperties(URLSessionConfiguration config) { config.httpAdditionalHeaders = { 'User-Agent': 'My Client', - 'MyHeader': 'myvalue' + 'MyHeader': 'myvalue', }; - expect(config.httpAdditionalHeaders, - {'User-Agent': 'My Client', 'MyHeader': 'myvalue'}); + expect(config.httpAdditionalHeaders, { + 'User-Agent': 'My Client', + 'MyHeader': 'myvalue', + }); final headers = await sentHeaders(config); expect(headers, containsPair('user-agent', ['My Client'])); expect(headers, containsPair('myheader', ['myvalue'])); @@ -79,12 +84,16 @@ void testProperties(URLSessionConfiguration config) { test('httpCookieAcceptPolicy', () { config.httpCookieAcceptPolicy = NSHTTPCookieAcceptPolicy.NSHTTPCookieAcceptPolicyAlways; - expect(config.httpCookieAcceptPolicy, - NSHTTPCookieAcceptPolicy.NSHTTPCookieAcceptPolicyAlways); + expect( + config.httpCookieAcceptPolicy, + NSHTTPCookieAcceptPolicy.NSHTTPCookieAcceptPolicyAlways, + ); config.httpCookieAcceptPolicy = NSHTTPCookieAcceptPolicy.NSHTTPCookieAcceptPolicyNever; - expect(config.httpCookieAcceptPolicy, - NSHTTPCookieAcceptPolicy.NSHTTPCookieAcceptPolicyNever); + expect( + config.httpCookieAcceptPolicy, + NSHTTPCookieAcceptPolicy.NSHTTPCookieAcceptPolicyNever, + ); }); test('httpMaximumConnectionsPerHost', () { config.httpMaximumConnectionsPerHost = 6; @@ -104,49 +113,63 @@ void testProperties(URLSessionConfiguration config) { config.httpShouldUsePipelining = false; expect(config.httpShouldUsePipelining, false); }); - test('multipathServiceType', () { - expect( + test( + 'multipathServiceType', + () { + expect( config.multipathServiceType, - NSURLSessionMultipathServiceType - .NSURLSessionMultipathServiceTypeNone); - config.multipathServiceType = NSURLSessionMultipathServiceType - .NSURLSessionMultipathServiceTypeAggregate; - expect( + NSURLSessionMultipathServiceType.NSURLSessionMultipathServiceTypeNone, + ); + config.multipathServiceType = NSURLSessionMultipathServiceType + .NSURLSessionMultipathServiceTypeAggregate; + expect( config.multipathServiceType, NSURLSessionMultipathServiceType - .NSURLSessionMultipathServiceTypeAggregate); - config.multipathServiceType = - NSURLSessionMultipathServiceType.NSURLSessionMultipathServiceTypeNone; - expect( + .NSURLSessionMultipathServiceTypeAggregate, + ); + config.multipathServiceType = NSURLSessionMultipathServiceType + .NSURLSessionMultipathServiceTypeNone; + expect( config.multipathServiceType, - NSURLSessionMultipathServiceType - .NSURLSessionMultipathServiceTypeNone); - }, - skip: Platform.isMacOS - ? 'NSURLSessionConfiguration.multipathServiceType is not ' + NSURLSessionMultipathServiceType.NSURLSessionMultipathServiceTypeNone, + ); + }, + skip: Platform.isMacOS + ? 'NSURLSessionConfiguration.multipathServiceType is not ' 'supported on macOS' - : false); + : false, + ); test('networkServiceType', () { - expect(config.networkServiceType, - NSURLRequestNetworkServiceType.NSURLNetworkServiceTypeDefault); + expect( + config.networkServiceType, + NSURLRequestNetworkServiceType.NSURLNetworkServiceTypeDefault, + ); config.networkServiceType = NSURLRequestNetworkServiceType.NSURLNetworkServiceTypeResponsiveAV; - expect(config.networkServiceType, - NSURLRequestNetworkServiceType.NSURLNetworkServiceTypeResponsiveAV); + expect( + config.networkServiceType, + NSURLRequestNetworkServiceType.NSURLNetworkServiceTypeResponsiveAV, + ); config.networkServiceType = NSURLRequestNetworkServiceType.NSURLNetworkServiceTypeDefault; - expect(config.networkServiceType, - NSURLRequestNetworkServiceType.NSURLNetworkServiceTypeDefault); + expect( + config.networkServiceType, + NSURLRequestNetworkServiceType.NSURLNetworkServiceTypeDefault, + ); }); test('requestCachePolicy', () { config.requestCachePolicy = NSURLRequestCachePolicy.NSURLRequestReturnCacheDataDontLoad; - expect(config.requestCachePolicy, - NSURLRequestCachePolicy.NSURLRequestReturnCacheDataDontLoad); + expect( + config.requestCachePolicy, + NSURLRequestCachePolicy.NSURLRequestReturnCacheDataDontLoad, + ); config.requestCachePolicy = NSURLRequestCachePolicy.NSURLRequestReloadIgnoringLocalCacheData; - expect(config.requestCachePolicy, - NSURLRequestCachePolicy.NSURLRequestReloadIgnoringLocalCacheData); + expect( + config.requestCachePolicy, + NSURLRequestCachePolicy.NSURLRequestReloadIgnoringLocalCacheData, + ); }); test('sessionSendsLaunchEvents', () { config.sessionSendsLaunchEvents = true; @@ -161,10 +184,14 @@ void testProperties(URLSessionConfiguration config) { expect(config.shouldUseExtendedBackgroundIdleMode, false); }); test('timeoutIntervalForRequest', () { - config.timeoutIntervalForRequest = - const Duration(seconds: 15, microseconds: 23); - expect(config.timeoutIntervalForRequest, - const Duration(seconds: 15, microseconds: 23)); + config.timeoutIntervalForRequest = const Duration( + seconds: 15, + microseconds: 23, + ); + expect( + config.timeoutIntervalForRequest, + const Duration(seconds: 15, microseconds: 23), + ); }); test('waitsForConnectivity', () { config.waitsForConnectivity = true; diff --git a/pkgs/cupertino_http/example/integration_test/url_session_delegate_test.dart b/pkgs/cupertino_http/example/integration_test/url_session_delegate_test.dart index 5151eec6dc..5b4cb1ce6e 100644 --- a/pkgs/cupertino_http/example/integration_test/url_session_delegate_test.dart +++ b/pkgs/cupertino_http/example/integration_test/url_session_delegate_test.dart @@ -34,17 +34,19 @@ void testOnComplete(URLSessionConfiguration Function() config) { late URLSession actualSession; late URLSessionTask actualTask; - final session = - URLSession.sessionWithConfiguration(config(), onComplete: (s, t, e) { - actualSession = s; - actualTask = t; - actualError = e; - c.complete(); - }); + final session = URLSession.sessionWithConfiguration( + config(), + onComplete: (s, t, e) { + actualSession = s; + actualTask = t; + actualError = e; + c.complete(); + }, + ); final task = session.dataTaskWithRequest( - URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}'))) - ..resume(); + URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}')), + )..resume(); await c.future; expect(actualSession, session); @@ -59,26 +61,29 @@ void testOnComplete(URLSessionConfiguration Function() config) { late URLSession actualSession; late URLSessionTask actualTask; - final session = - URLSession.sessionWithConfiguration(config(), onComplete: (s, t, e) { - actualSession = s; - actualTask = t; - actualError = e; - c.complete(); - }); + final session = URLSession.sessionWithConfiguration( + config(), + onComplete: (s, t, e) { + actualSession = s; + actualTask = t; + actualError = e; + c.complete(); + }, + ); final task = session.dataTaskWithRequest( - URLRequest.fromUrl(Uri.https('does-not-exist', ''))) - ..resume(); + URLRequest.fromUrl(Uri.https('does-not-exist', '')), + )..resume(); await c.future; expect(actualSession, session); expect(actualTask, task); expect( - actualError!.code, - anyOf( - -1001, // kCFURLErrorTimedOut - -1003, // kCFURLErrorCannotFindHost - )); + actualError!.code, + anyOf( + -1001, // kCFURLErrorTimedOut + -1003, // kCFURLErrorCannotFindHost + ), + ); session.finishTasksAndInvalidate(); }); }); @@ -107,18 +112,20 @@ void testOnResponse(URLSessionConfiguration Function() config) { late URLSession actualSession; late URLSessionTask actualTask; - final session = - URLSession.sessionWithConfiguration(config(), onResponse: (s, t, r) { - actualSession = s; - actualTask = t; - actualResponse = r as HTTPURLResponse; - c.complete(); - return NSURLSessionResponseDisposition.NSURLSessionResponseAllow; - }); + final session = URLSession.sessionWithConfiguration( + config(), + onResponse: (s, t, r) { + actualSession = s; + actualTask = t; + actualResponse = r as HTTPURLResponse; + c.complete(); + return NSURLSessionResponseDisposition.NSURLSessionResponseAllow; + }, + ); final task = session.dataTaskWithRequest( - URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}'))) - ..resume(); + URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}')), + )..resume(); await c.future; expect(actualSession, session); expect(actualTask, task); @@ -131,16 +138,19 @@ void testOnResponse(URLSessionConfiguration Function() config) { final c = Completer(); var called = false; - final session = URLSession.sessionWithConfiguration(config(), - onComplete: (session, task, error) => c.complete(), - onResponse: (s, t, r) { - called = true; - return NSURLSessionResponseDisposition.NSURLSessionResponseAllow; - }); + final session = URLSession.sessionWithConfiguration( + config(), + onComplete: (session, task, error) => c.complete(), + onResponse: (s, t, r) { + called = true; + return NSURLSessionResponseDisposition.NSURLSessionResponseAllow; + }, + ); session .dataTaskWithRequest( - URLRequest.fromUrl(Uri.https('does-not-exist', ''))) + URLRequest.fromUrl(Uri.https('does-not-exist', '')), + ) .resume(); await c.future; expect(called, false); @@ -172,17 +182,19 @@ void testOnData(URLSessionConfiguration Function() config) { late URLSession actualSession; late URLSessionTask actualTask; - final session = URLSession.sessionWithConfiguration(config(), - onComplete: (s, t, r) => c.complete(), - onData: (s, t, d) { - actualSession = s; - actualTask = t; - actualData.appendData(d); - }); + final session = URLSession.sessionWithConfiguration( + config(), + onComplete: (s, t, r) => c.complete(), + onData: (s, t, d) { + actualSession = s; + actualTask = t; + actualData.appendData(d); + }, + ); final task = session.dataTaskWithRequest( - URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}'))) - ..resume(); + URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}')), + )..resume(); await c.future; expect(actualSession, session); expect(actualTask, task); @@ -215,17 +227,19 @@ void testOnFinishedDownloading(URLSessionConfiguration Function() config) { late URLSessionDownloadTask actualTask; late String actualContent; - final session = URLSession.sessionWithConfiguration(config(), - onComplete: (s, t, r) => c.complete(), - onFinishedDownloading: (s, t, uri) { - actualSession = s; - actualTask = t; - actualContent = File.fromUri(uri).readAsStringSync(); - }); + final session = URLSession.sessionWithConfiguration( + config(), + onComplete: (s, t, r) => c.complete(), + onFinishedDownloading: (s, t, uri) { + actualSession = s; + actualTask = t; + actualContent = File.fromUri(uri).readAsStringSync(); + }, + ); final task = session.downloadTaskWithRequest( - URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}'))) - ..resume(); + URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}')), + )..resume(); await c.future; expect(actualSession, session); expect(actualTask, task); @@ -254,8 +268,11 @@ void testOnRedirect(URLSessionConfiguration Function() config) { } else { final n = int.parse(request.requestedUri.pathSegments.last); final nextPath = n - 1 == 0 ? '' : '${n - 1}'; - unawaited(request.response.redirect(Uri.parse( - 'http://localhost:${redirectServer.port}/$nextPath'))); + unawaited( + request.response.redirect( + Uri.parse('http://localhost:${redirectServer.port}/$nextPath'), + ), + ); } }); }); @@ -264,59 +281,69 @@ void testOnRedirect(URLSessionConfiguration Function() config) { }); test('disallow redirect', () async { - final session = URLSession.sessionWithConfiguration(config(), - onRedirect: - (redirectSession, redirectTask, redirectResponse, newRequest) => - null); + final session = URLSession.sessionWithConfiguration( + config(), + onRedirect: + (redirectSession, redirectTask, redirectResponse, newRequest) => + null, + ); final c = Completer(); URLResponse? response; NSError? error; session.dataTaskWithCompletionHandler( - URLRequest.fromUrl( - Uri.parse('http://localhost:${redirectServer.port}/100')), - (d, r, e) { - response = r; - error = e; - c.complete(); - }).resume(); + URLRequest.fromUrl( + Uri.parse('http://localhost:${redirectServer.port}/100'), + ), + (d, r, e) { + response = r; + error = e; + c.complete(); + }, + ).resume(); await c.future; expect( - response, - isA() - .having((r) => r.statusCode, 'statusCode', 302) - .having( - (r) => r.allHeaderFields['Location'], - "allHeaderFields['Location']", - 'http://localhost:${redirectServer.port}/99')); + response, + isA() + .having((r) => r.statusCode, 'statusCode', 302) + .having( + (r) => r.allHeaderFields['Location'], + "allHeaderFields['Location']", + 'http://localhost:${redirectServer.port}/99', + ), + ); expect(error, null); session.finishTasksAndInvalidate(); }); test('use proposed redirect request', () async { - final session = URLSession.sessionWithConfiguration(config(), - onRedirect: - (redirectSession, redirectTask, redirectResponse, newRequest) => - newRequest); + final session = URLSession.sessionWithConfiguration( + config(), + onRedirect: + (redirectSession, redirectTask, redirectResponse, newRequest) => + newRequest, + ); final c = Completer(); URLResponse? response; NSError? error; session.dataTaskWithCompletionHandler( - URLRequest.fromUrl( - Uri.parse('http://localhost:${redirectServer.port}/1')), - (d, r, e) { - response = r; - error = e; - c.complete(); - }).resume(); + URLRequest.fromUrl( + Uri.parse('http://localhost:${redirectServer.port}/1'), + ), + (d, r, e) { + response = r; + error = e; + c.complete(); + }, + ).resume(); await c.future; expect( - response, - isA() - .having((r) => r.statusCode, 'statusCode', 200)); + response, + isA().having((r) => r.statusCode, 'statusCode', 200), + ); expect(error, null); session.finishTasksAndInvalidate(); }); @@ -324,64 +351,73 @@ void testOnRedirect(URLSessionConfiguration Function() config) { test('use custom redirect request', () async { final session = URLSession.sessionWithConfiguration( config(), - onRedirect: (redirectSession, redirectTask, redirectResponse, - newRequest) => - URLRequest.fromUrl( - Uri.parse('http://localhost:${redirectServer.port}/')), + onRedirect: + (redirectSession, redirectTask, redirectResponse, newRequest) => + URLRequest.fromUrl( + Uri.parse('http://localhost:${redirectServer.port}/'), + ), ); final c = Completer(); URLResponse? response; NSError? error; session.dataTaskWithCompletionHandler( - URLRequest.fromUrl( - Uri.parse('http://localhost:${redirectServer.port}/100')), - (d, r, e) { - response = r; - error = e; - c.complete(); - }).resume(); + URLRequest.fromUrl( + Uri.parse('http://localhost:${redirectServer.port}/100'), + ), + (d, r, e) { + response = r; + error = e; + c.complete(); + }, + ).resume(); await c.future; expect( - response, - isA() - .having((r) => r.statusCode, 'statusCode', 200)); + response, + isA().having((r) => r.statusCode, 'statusCode', 200), + ); expect(error, null); session.finishTasksAndInvalidate(); }); - test('exception in http redirection', () async { - final session = URLSession.sessionWithConfiguration( - config(), - onRedirect: - (redirectSession, redirectTask, redirectResponse, newRequest) { - throw UnimplementedError(); - }, - ); - final c = Completer(); - URLResponse? response; - // ignore: unused_local_variable - NSError? error; - - session.dataTaskWithCompletionHandler( + test( + 'exception in http redirection', + () async { + final session = URLSession.sessionWithConfiguration( + config(), + onRedirect: + (redirectSession, redirectTask, redirectResponse, newRequest) { + throw UnimplementedError(); + }, + ); + final c = Completer(); + URLResponse? response; + // ignore: unused_local_variable + NSError? error; + + session.dataTaskWithCompletionHandler( URLRequest.fromUrl( - Uri.parse('http://localhost:${redirectServer.port}/100')), + Uri.parse('http://localhost:${redirectServer.port}/100'), + ), (d, r, e) { - response = r; - error = e; - c.complete(); - }).resume(); - await c.future; - - expect( + response = r; + error = e; + c.complete(); + }, + ).resume(); + await c.future; + + expect( response, - isA() - .having((r) => r.statusCode, 'statusCode', 302)); - // TODO(https://github.com/dart-lang/ffigen/issues/386): Check that the - // error is set. - session.finishTasksAndInvalidate(); - }, skip: 'Error not set for redirect exceptions.'); + isA().having((r) => r.statusCode, 'statusCode', 302), + ); + // TODO(https://github.com/dart-lang/ffigen/issues/386): Check that the + // error is set. + session.finishTasksAndInvalidate(); + }, + skip: 'Error not set for redirect exceptions.', + ); test('3 redirects', () async { var redirectCounter = 0; @@ -389,29 +425,31 @@ void testOnRedirect(URLSessionConfiguration Function() config) { config(), onRedirect: (redirectSession, redirectTask, redirectResponse, newRequest) { - ++redirectCounter; - return newRequest; - }, + ++redirectCounter; + return newRequest; + }, ); final c = Completer(); URLResponse? response; NSError? error; session.dataTaskWithCompletionHandler( - URLRequest.fromUrl( - Uri.parse('http://localhost:${redirectServer.port}/3')), - (d, r, e) { - response = r; - error = e; - c.complete(); - }).resume(); + URLRequest.fromUrl( + Uri.parse('http://localhost:${redirectServer.port}/3'), + ), + (d, r, e) { + response = r; + error = e; + c.complete(); + }, + ).resume(); await c.future; expect(redirectCounter, 3); expect( - response, - isA() - .having((r) => r.statusCode, 'statusCode', 200)); + response, + isA().having((r) => r.statusCode, 'statusCode', 200), + ); expect(error, null); session.finishTasksAndInvalidate(); }); @@ -430,26 +468,33 @@ void testOnRedirect(URLSessionConfiguration Function() config) { NSError? error; session.dataTaskWithCompletionHandler( - URLRequest.fromUrl( - Uri.parse('http://localhost:${redirectServer.port}/100')), - (d, r, e) { - response = r; - error = e; - c.complete(); - }).resume(); + URLRequest.fromUrl( + Uri.parse('http://localhost:${redirectServer.port}/100'), + ), + (d, r, e) { + response = r; + error = e; + c.complete(); + }, + ).resume(); await c.future; expect( - response, - anyOf( - isNull, - isA() - .having((r) => r.statusCode, 'statusCode', 302) - .having( - (r) => r.allHeaderFields['Location'], - "r.allHeaderFields['Location']", - matches('http://localhost:${redirectServer.port}/' - r'\d+')))); + response, + anyOf( + isNull, + isA() + .having((r) => r.statusCode, 'statusCode', 302) + .having( + (r) => r.allHeaderFields['Location'], + "r.allHeaderFields['Location']", + matches( + 'http://localhost:${redirectServer.port}/' + r'\d+', + ), + ), + ), + ); expect(error!.code, -1007); // kCFURLErrorHTTPTooManyRedirects session.finishTasksAndInvalidate(); }); @@ -485,17 +530,19 @@ void testOnWebSocketTaskOpened(URLSessionConfiguration Function() config) { late URLSession actualSession; late URLSessionWebSocketTask actualTask; - final session = URLSession.sessionWithConfiguration(config(), - onWebSocketTaskOpened: (s, t, p) { - actualSession = s; - actualTask = t; - actualProtocol = p; - c.complete(); - }); + final session = URLSession.sessionWithConfiguration( + config(), + onWebSocketTaskOpened: (s, t, p) { + actualSession = s; + actualTask = t; + actualProtocol = p; + c.complete(); + }, + ); final request = MutableURLRequest.fromUrl( - Uri.parse('http://localhost:${server.port}')) - ..setValueForHttpHeaderField('Sec-WebSocket-Protocol', 'myprotocol'); + Uri.parse('http://localhost:${server.port}'), + )..setValueForHttpHeaderField('Sec-WebSocket-Protocol', 'myprotocol'); final task = session.webSocketTaskWithRequest(request)..resume(); await c.future; @@ -511,16 +558,19 @@ void testOnWebSocketTaskOpened(URLSessionConfiguration Function() config) { late URLSession actualSession; late URLSessionWebSocketTask actualTask; - final session = URLSession.sessionWithConfiguration(config(), - onWebSocketTaskOpened: (s, t, p) { - actualSession = s; - actualTask = t; - actualProtocol = p; - c.complete(); - }); + final session = URLSession.sessionWithConfiguration( + config(), + onWebSocketTaskOpened: (s, t, p) { + actualSession = s; + actualTask = t; + actualProtocol = p; + c.complete(); + }, + ); final request = MutableURLRequest.fromUrl( - Uri.parse('http://localhost:${server.port}')); + Uri.parse('http://localhost:${server.port}'), + ); final task = session.webSocketTaskWithRequest(request)..resume(); await c.future; expect(actualSession, session); @@ -534,16 +584,20 @@ void testOnWebSocketTaskOpened(URLSessionConfiguration Function() config) { var onWebSocketTaskOpenedCalled = false; NSError? actualError; - final session = URLSession.sessionWithConfiguration(config(), - onWebSocketTaskOpened: (s, t, p) { - onWebSocketTaskOpenedCalled = true; - }, onComplete: (s, t, e) { - actualError = e; - c.complete(); - }); + final session = URLSession.sessionWithConfiguration( + config(), + onWebSocketTaskOpened: (s, t, p) { + onWebSocketTaskOpenedCalled = true; + }, + onComplete: (s, t, e) { + actualError = e; + c.complete(); + }, + ); final request = MutableURLRequest.fromUrl( - Uri.parse('http://localhost:${server.port}?error=1')); + Uri.parse('http://localhost:${server.port}?error=1'), + ); session.webSocketTaskWithRequest(request).resume(); await c.future; expect(actualError, isNotNull); @@ -567,9 +621,7 @@ void testOnWebSocketTaskClosed(URLSessionConfiguration Function() config) { unawaited(request.response.close()); return; } - final webSocket = await WebSocketTransformer.upgrade( - request, - ); + final webSocket = await WebSocketTransformer.upgrade(request); await webSocket.close(serverCode, serverReason); }); }); @@ -587,26 +639,34 @@ void testOnWebSocketTaskClosed(URLSessionConfiguration Function() config) { serverCode = null; serverReason = null; - final session = URLSession.sessionWithConfiguration(config(), - onWebSocketTaskOpened: (session, task, protocol) {}, - onWebSocketTaskClosed: (session, task, closeCode, reason) { - actualSession = session; - actualTask = task; - actualCloseCode = closeCode!; - actualReason = utf8.decode(reason!.toList()); - c.complete(); - }); + final session = URLSession.sessionWithConfiguration( + config(), + onWebSocketTaskOpened: (session, task, protocol) {}, + onWebSocketTaskClosed: (session, task, closeCode, reason) { + actualSession = session; + actualTask = task; + actualCloseCode = closeCode!; + actualReason = utf8.decode(reason!.toList()); + c.complete(); + }, + ); final request = MutableURLRequest.fromUrl( - Uri.parse('http://localhost:${server.port}')); + Uri.parse('http://localhost:${server.port}'), + ); final task = session.webSocketTaskWithRequest(request)..resume(); expect( - task.receiveMessage(), - throwsA(isA() - .having((e) => e.code, 'code', 57 // Socket is not connected. - ))); + task.receiveMessage(), + throwsA( + isA().having( + (e) => e.code, + 'code', + 57, // Socket is not connected. + ), + ), + ); await c.future; expect(actualSession, session); expect(actualTask, task); @@ -625,26 +685,34 @@ void testOnWebSocketTaskClosed(URLSessionConfiguration Function() config) { serverCode = 4000; serverReason = null; - final session = URLSession.sessionWithConfiguration(config(), - onWebSocketTaskOpened: (session, task, protocol) {}, - onWebSocketTaskClosed: (session, task, closeCode, reason) { - actualSession = session; - actualTask = task; - actualCloseCode = closeCode!; - actualReason = utf8.decode(reason!.toList()); - c.complete(); - }); + final session = URLSession.sessionWithConfiguration( + config(), + onWebSocketTaskOpened: (session, task, protocol) {}, + onWebSocketTaskClosed: (session, task, closeCode, reason) { + actualSession = session; + actualTask = task; + actualCloseCode = closeCode!; + actualReason = utf8.decode(reason!.toList()); + c.complete(); + }, + ); final request = MutableURLRequest.fromUrl( - Uri.parse('http://localhost:${server.port}')); + Uri.parse('http://localhost:${server.port}'), + ); final task = session.webSocketTaskWithRequest(request)..resume(); expect( - task.receiveMessage(), - throwsA(isA() - .having((e) => e.code, 'code', 57 // Socket is not connected. - ))); + task.receiveMessage(), + throwsA( + isA().having( + (e) => e.code, + 'code', + 57, // Socket is not connected. + ), + ), + ); await c.future; expect(actualSession, session); expect(actualTask, task); @@ -663,26 +731,34 @@ void testOnWebSocketTaskClosed(URLSessionConfiguration Function() config) { serverCode = 4000; serverReason = 'no real reason'; - final session = URLSession.sessionWithConfiguration(config(), - onWebSocketTaskOpened: (session, task, protocol) {}, - onWebSocketTaskClosed: (session, task, closeCode, reason) { - actualSession = session; - actualTask = task; - actualCloseCode = closeCode!; - actualReason = utf8.decode(reason!.toList()); - c.complete(); - }); + final session = URLSession.sessionWithConfiguration( + config(), + onWebSocketTaskOpened: (session, task, protocol) {}, + onWebSocketTaskClosed: (session, task, closeCode, reason) { + actualSession = session; + actualTask = task; + actualCloseCode = closeCode!; + actualReason = utf8.decode(reason!.toList()); + c.complete(); + }, + ); final request = MutableURLRequest.fromUrl( - Uri.parse('http://localhost:${server.port}')); + Uri.parse('http://localhost:${server.port}'), + ); final task = session.webSocketTaskWithRequest(request)..resume(); expect( - task.receiveMessage(), - throwsA(isA() - .having((e) => e.code, 'code', 57 // Socket is not connected. - ))); + task.receiveMessage(), + throwsA( + isA().having( + (e) => e.code, + 'code', + 57, // Socket is not connected. + ), + ), + ); await c.future; expect(actualSession, session); expect(actualTask, task); @@ -701,7 +777,8 @@ void main() { URLSessionConfiguration config() { ++count; return URLSessionConfiguration.backgroundSession( - 'backgroundSession{$count}'); + 'backgroundSession{$count}', + ); } testOnComplete(config); diff --git a/pkgs/cupertino_http/example/integration_test/url_session_task_test.dart b/pkgs/cupertino_http/example/integration_test/url_session_task_test.dart index a85b317a10..3e1c7005eb 100644 --- a/pkgs/cupertino_http/example/integration_test/url_session_task_test.dart +++ b/pkgs/cupertino_http/example/integration_test/url_session_task_test.dart @@ -24,20 +24,26 @@ void testWebSocketTask() { request.response.statusCode = 500; request.response.close(); } else { - WebSocketTransformer.upgrade(request) - .then((websocket) => websocket.listen((event) { - final code = request.uri.queryParameters['code']; - final reason = request.uri.queryParameters['reason']; - - websocket.add(event); - if (!request.uri.queryParameters.containsKey('noclose')) { - websocket.close( - code == null ? null : int.parse(code), reason); - } - }, onDone: () { - lastCloseCode = websocket.closeCode; - lastCloseReason = websocket.closeReason; - })); + WebSocketTransformer.upgrade(request).then( + (websocket) => websocket.listen( + (event) { + final code = request.uri.queryParameters['code']; + final reason = request.uri.queryParameters['reason']; + + websocket.add(event); + if (!request.uri.queryParameters.containsKey('noclose')) { + websocket.close( + code == null ? null : int.parse(code), + reason, + ); + } + }, + onDone: () { + lastCloseCode = websocket.closeCode; + lastCloseReason = websocket.closeReason; + }, + ), + ); } }); }); @@ -48,21 +54,27 @@ void testWebSocketTask() { test('background session', () { final session = URLSession.sessionWithConfiguration( - URLSessionConfiguration.backgroundSession('background')); + URLSessionConfiguration.backgroundSession('background'), + ); expect( - () => session.webSocketTaskWithRequest(URLRequest.fromUrl( - Uri.parse('ws://localhost:${server.port}/?noclose'))), - throwsUnsupportedError); + () => session.webSocketTaskWithRequest( + URLRequest.fromUrl( + Uri.parse('ws://localhost:${server.port}/?noclose'), + ), + ), + throwsUnsupportedError, + ); session.finishTasksAndInvalidate(); }); test('client code and reason', () async { final session = URLSession.sharedSession(); - final task = session.webSocketTaskWithRequest(URLRequest.fromUrl( - Uri.parse('ws://localhost:${server.port}/?noclose'))) - ..resume(); - await task - .sendMessage(URLSessionWebSocketMessage.fromString('Hello World!')); + final task = session.webSocketTaskWithRequest( + URLRequest.fromUrl(Uri.parse('ws://localhost:${server.port}/?noclose')), + )..resume(); + await task.sendMessage( + URLSessionWebSocketMessage.fromString('Hello World!'), + ); await task.receiveMessage(); task.cancelWithCloseCode(4998, 'Bye'.codeUnits.toNSData()); @@ -76,17 +88,25 @@ void testWebSocketTask() { test('server code and reason', () async { final session = URLSession.sharedSession(); - final task = session.webSocketTaskWithRequest(URLRequest.fromUrl( - Uri.parse('ws://localhost:${server.port}/?code=4999&reason=fun'))) - ..resume(); - await task - .sendMessage(URLSessionWebSocketMessage.fromString('Hello World!')); + final task = session.webSocketTaskWithRequest( + URLRequest.fromUrl( + Uri.parse('ws://localhost:${server.port}/?code=4999&reason=fun'), + ), + )..resume(); + await task.sendMessage( + URLSessionWebSocketMessage.fromString('Hello World!'), + ); await task.receiveMessage(); await expectLater( - task.receiveMessage(), - throwsA( - isA().having((e) => e.code, 'code', 57 // NOT_CONNECTED - ))); + task.receiveMessage(), + throwsA( + isA().having( + (e) => e.code, + 'code', + 57, // NOT_CONNECTED + ), + ), + ); expect(task.closeCode, 4999); expect(task.closeReason!.toList(), 'fun'.codeUnits); @@ -97,15 +117,16 @@ void testWebSocketTask() { test('data message', () async { final session = URLSession.sharedSession(); final task = session.webSocketTaskWithRequest( - URLRequest.fromUrl(Uri.parse('ws://localhost:${server.port}'))) - ..resume(); + URLRequest.fromUrl(Uri.parse('ws://localhost:${server.port}')), + )..resume(); await task.sendMessage( - URLSessionWebSocketMessage.fromData([1, 2, 3].toNSData())); + URLSessionWebSocketMessage.fromData([1, 2, 3].toNSData()), + ); final receivedMessage = await task.receiveMessage(); expect( - receivedMessage.type, - NSURLSessionWebSocketMessageType - .NSURLSessionWebSocketMessageTypeData); + receivedMessage.type, + NSURLSessionWebSocketMessageType.NSURLSessionWebSocketMessageTypeData, + ); expect(receivedMessage.data!.toList(), [1, 2, 3]); expect(receivedMessage.string, null); task.cancel(); @@ -114,15 +135,16 @@ void testWebSocketTask() { test('text message', () async { final session = URLSession.sharedSession(); final task = session.webSocketTaskWithRequest( - URLRequest.fromUrl(Uri.parse('ws://localhost:${server.port}'))) - ..resume(); - await task - .sendMessage(URLSessionWebSocketMessage.fromString('Hello World!')); + URLRequest.fromUrl(Uri.parse('ws://localhost:${server.port}')), + )..resume(); + await task.sendMessage( + URLSessionWebSocketMessage.fromString('Hello World!'), + ); final receivedMessage = await task.receiveMessage(); expect( - receivedMessage.type, - NSURLSessionWebSocketMessageType - .NSURLSessionWebSocketMessageTypeString); + receivedMessage.type, + NSURLSessionWebSocketMessageType.NSURLSessionWebSocketMessageTypeString, + ); expect(receivedMessage.data, null); expect(receivedMessage.string, 'Hello World!'); task.cancel(); @@ -131,38 +153,49 @@ void testWebSocketTask() { test('send failure', () async { final session = URLSession.sharedSession(); final task = session.webSocketTaskWithRequest( - URLRequest.fromUrl(Uri.parse('ws://localhost:${server.port}/error'))) - ..resume(); + URLRequest.fromUrl(Uri.parse('ws://localhost:${server.port}/error')), + )..resume(); await expectLater( - task.sendMessage( - URLSessionWebSocketMessage.fromString('Hello World!')), - throwsA(isA().having( - (e) => e.code, 'code', -1011 // NSURLErrorBadServerResponse - ))); + task.sendMessage(URLSessionWebSocketMessage.fromString('Hello World!')), + throwsA( + isA().having( + (e) => e.code, + 'code', + -1011, // NSURLErrorBadServerResponse + ), + ), + ); task.cancel(); }); test('receive failure', () async { final session = URLSession.sharedSession(); final task = session.webSocketTaskWithRequest( - URLRequest.fromUrl(Uri.parse('ws://localhost:${server.port}'))) - ..resume(); - await task - .sendMessage(URLSessionWebSocketMessage.fromString('Hello World!')); + URLRequest.fromUrl(Uri.parse('ws://localhost:${server.port}')), + )..resume(); + await task.sendMessage( + URLSessionWebSocketMessage.fromString('Hello World!'), + ); await task.receiveMessage(); await expectLater( - task.receiveMessage(), - throwsA( - isA().having((e) => e.code, 'code', 57 // NOT_CONNECTED - ))); + task.receiveMessage(), + throwsA( + isA().having( + (e) => e.code, + 'code', + 57, // NOT_CONNECTED + ), + ), + ); task.cancel(); }); }); } void testURLSessionTaskCommon( - URLSessionTask Function(URLSession session, Uri url) f, - {bool suspendedAfterCancel = false}) { + URLSessionTask Function(URLSession session, Uri url) f, { + bool suspendedAfterCancel = false, +}) { group('task states', () { late HttpServer server; late URLSessionTask task; @@ -198,10 +231,14 @@ void testURLSessionTaskCommon( task.cancel(); if (suspendedAfterCancel) { expect( - task.state, NSURLSessionTaskState.NSURLSessionTaskStateSuspended); + task.state, + NSURLSessionTaskState.NSURLSessionTaskStateSuspended, + ); } else { expect( - task.state, NSURLSessionTaskState.NSURLSessionTaskStateCanceling); + task.state, + NSURLSessionTaskState.NSURLSessionTaskStateCanceling, + ); } expect(task.response, null); task.toString(); // Just verify that there is no crash. @@ -209,8 +246,8 @@ void testURLSessionTaskCommon( test('completed', () async { task.resume(); - while ( - task.state != NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { + while (task.state != + NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { // Let the event loop run. await Future(() {}); } @@ -229,18 +266,21 @@ void testURLSessionTaskCommon( await request.response.close(); }); final session = URLSession.sharedSession(); - task = session.dataTaskWithRequest( - MutableURLRequest.fromUrl( - Uri.parse('http://localhost:${server.port}/mypath')) - ..httpMethod = 'POST' - ..httpBody = [1, 2, 3].toNSData()) - ..prefersIncrementalDelivery = false - ..priority = 0.2 - ..taskDescription = 'my task description' - ..resume(); - - while ( - task.state != NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { + task = + session.dataTaskWithRequest( + MutableURLRequest.fromUrl( + Uri.parse('http://localhost:${server.port}/mypath'), + ) + ..httpMethod = 'POST' + ..httpBody = [1, 2, 3].toNSData(), + ) + ..prefersIncrementalDelivery = false + ..priority = 0.2 + ..taskDescription = 'my task description' + ..resume(); + + while (task.state != + NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { // Let the event loop run. await Future(() {}); } @@ -308,11 +348,11 @@ void testURLSessionTaskCommon( setUp(() async { final session = URLSession.sharedSession(); task = session.dataTaskWithRequest( - MutableURLRequest.fromUrl(Uri.parse('http://notarealserver'))) - ..resume(); + MutableURLRequest.fromUrl(Uri.parse('http://notarealserver')), + )..resume(); - while ( - task.state != NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { + while (task.state != + NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { // Let the event loop run. await Future(() {}); } @@ -352,12 +392,14 @@ void testURLSessionTaskCommon( await request.response.close(); }); final session = URLSession.sharedSession(); - task = session.dataTaskWithRequest(MutableURLRequest.fromUrl( - Uri.parse('http://localhost:${server.port}/launch'))) - ..resume(); + task = session.dataTaskWithRequest( + MutableURLRequest.fromUrl( + Uri.parse('http://localhost:${server.port}/launch'), + ), + )..resume(); - while ( - task.state != NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { + while (task.state != + NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { // Let the event loop run. await Future(() {}); } @@ -386,19 +428,23 @@ void main() { group('data task', () { testURLSessionTaskCommon( - (session, uri) => session.dataTaskWithRequest(URLRequest.fromUrl(uri))); + (session, uri) => session.dataTaskWithRequest(URLRequest.fromUrl(uri)), + ); }); group('download task', () { - testURLSessionTaskCommon((session, uri) => - session.downloadTaskWithRequest(URLRequest.fromUrl(uri))); + testURLSessionTaskCommon( + (session, uri) => + session.downloadTaskWithRequest(URLRequest.fromUrl(uri)), + ); }); group('websocket task', () { testURLSessionTaskCommon( - (session, uri) => - session.webSocketTaskWithRequest(URLRequest.fromUrl(uri)), - suspendedAfterCancel: true); + (session, uri) => + session.webSocketTaskWithRequest(URLRequest.fromUrl(uri)), + suspendedAfterCancel: true, + ); }); testWebSocketTask(); diff --git a/pkgs/cupertino_http/example/integration_test/url_session_test.dart b/pkgs/cupertino_http/example/integration_test/url_session_test.dart index 96e09789f8..8660b00ef6 100644 --- a/pkgs/cupertino_http/example/integration_test/url_session_test.dart +++ b/pkgs/cupertino_http/example/integration_test/url_session_test.dart @@ -46,8 +46,11 @@ void testDataTaskWithCompletionHandler(URLSession session) { } else { final n = int.parse(request.requestedUri.pathSegments.last); final nextPath = n - 1 == 0 ? '' : '${n - 1}'; - unawaited(request.response.redirect(Uri.parse( - 'http://localhost:${redirectServer.port}/$nextPath'))); + unawaited( + request.response.redirect( + Uri.parse('http://localhost:${redirectServer.port}/$nextPath'), + ), + ); } }); }); @@ -64,20 +67,21 @@ void testDataTaskWithCompletionHandler(URLSession session) { NSError? error; session.dataTaskWithCompletionHandler( - URLRequest.fromUrl( - Uri.parse('http://localhost:${successServer.port}')), (d, r, e) { - data = d; - response = r; - error = e; - c.complete(); - }).resume(); + URLRequest.fromUrl(Uri.parse('http://localhost:${successServer.port}')), + (d, r, e) { + data = d; + response = r; + error = e; + c.complete(); + }, + ).resume(); await c.future; expect(data!.toList(), 'Hello World'.codeUnits); expect( - response, - isA() - .having((r) => r.statusCode, 'statusCode', 200)); + response, + isA().having((r) => r.statusCode, 'statusCode', 200), + ); expect(error, null); }); @@ -88,8 +92,8 @@ void testDataTaskWithCompletionHandler(URLSession session) { NSError? error; final request = MutableURLRequest.fromUrl( - Uri.parse('http://localhost:${successServer.port}')) - ..httpMethod = 'HEAD'; + Uri.parse('http://localhost:${successServer.port}'), + )..httpMethod = 'HEAD'; session.dataTaskWithCompletionHandler(request, (d, r, e) { data = d; @@ -101,9 +105,9 @@ void testDataTaskWithCompletionHandler(URLSession session) { expect(data!.length, 0); expect( - response, - isA() - .having((r) => r.statusCode, 'statusCode', 200)); + response, + isA().having((r) => r.statusCode, 'statusCode', 200), + ); expect(error, null); }); @@ -114,20 +118,21 @@ void testDataTaskWithCompletionHandler(URLSession session) { NSError? error; session.dataTaskWithCompletionHandler( - URLRequest.fromUrl( - Uri.parse('http://localhost:${failureServer.port}')), (d, r, e) { - data = d; - response = r; - error = e; - c.complete(); - }).resume(); + URLRequest.fromUrl(Uri.parse('http://localhost:${failureServer.port}')), + (d, r, e) { + data = d; + response = r; + error = e; + c.complete(); + }, + ).resume(); await c.future; expect(data!.toList(), 'Hello World'.codeUnits); expect( - response, - isA() - .having((r) => r.statusCode, 'statusCode', 500)); + response, + isA().having((r) => r.statusCode, 'statusCode', 500), + ); expect(error, null); }); @@ -140,28 +145,35 @@ void testDataTaskWithCompletionHandler(URLSession session) { NSError? error; session.dataTaskWithCompletionHandler( - URLRequest.fromUrl( - Uri.parse('http://localhost:${redirectServer.port}/100')), - (d, r, e) { - data = d; - response = r; - error = e; - c.complete(); - }).resume(); + URLRequest.fromUrl( + Uri.parse('http://localhost:${redirectServer.port}/100'), + ), + (d, r, e) { + data = d; + response = r; + error = e; + c.complete(); + }, + ).resume(); await c.future; expect(data, null); expect( - response, - anyOf( - isNull, - isA() - .having((r) => r.statusCode, 'statusCode', 302) - .having( - (r) => r.allHeaderFields['Location'], - "r.allHeaderFields['Location']", - matches('http://localhost:${redirectServer.port}/' - r'\d+')))); + response, + anyOf( + isNull, + isA() + .having((r) => r.statusCode, 'statusCode', 302) + .having( + (r) => r.allHeaderFields['Location'], + "r.allHeaderFields['Location']", + matches( + 'http://localhost:${redirectServer.port}/' + r'\d+', + ), + ), + ), + ); expect(error!.code, -1007); // kCFURLErrorHTTPTooManyRedirects }); @@ -172,13 +184,14 @@ void testDataTaskWithCompletionHandler(URLSession session) { NSError? error; session.dataTaskWithCompletionHandler( - URLRequest.fromUrl(Uri.parse('http://this is not a valid URL')), - (d, r, e) { - data = d; - response = r; - error = e; - c.complete(); - }).resume(); + URLRequest.fromUrl(Uri.parse('http://this is not a valid URL')), + (d, r, e) { + data = d; + response = r; + error = e; + c.complete(); + }, + ).resume(); await c.future; expect(data, null); @@ -214,10 +227,10 @@ void testURLSession(URLSession session) { test('dataTask', () async { final task = session.dataTaskWithRequest( - URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}'))) - ..resume(); - while ( - task.state != NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { + URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}')), + )..resume(); + while (task.state != + NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { // Let the event loop run. await Future.delayed(const Duration()); } @@ -227,10 +240,10 @@ void testURLSession(URLSession session) { test('downloadTask', () async { final task = session.downloadTaskWithRequest( - URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}'))) - ..resume(); - while ( - task.state != NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { + URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}')), + )..resume(); + while (task.state != + NSURLSessionTaskState.NSURLSessionTaskStateCompleted) { // Let the event loop run. await Future.delayed(const Duration()); } @@ -268,9 +281,9 @@ void main() { }); group('backgroundSession', () { - final config = - URLSessionConfiguration.backgroundSession('backgroundSession') - ..allowsCellularAccess = false; + final config = URLSessionConfiguration.backgroundSession( + 'backgroundSession', + )..allowsCellularAccess = false; final session = URLSession.sessionWithConfiguration(config); test('configuration', () { diff --git a/pkgs/cupertino_http/example/integration_test/utils_test.dart b/pkgs/cupertino_http/example/integration_test/utils_test.dart index 5ea24ef944..873d9a2bee 100644 --- a/pkgs/cupertino_http/example/integration_test/utils_test.dart +++ b/pkgs/cupertino_http/example/integration_test/utils_test.dart @@ -29,21 +29,28 @@ void main() { ..setObject('value1'.toNSString(), forKey: 'key1'.toNSString()) ..setObject('value2'.toNSString(), forKey: 'key2'.toNSString()) ..setObject('value3'.toNSString(), forKey: 'key3'.toNSString()); - expect(stringNSDictionaryToMap(d), - {'key1': 'value1', 'key2': 'value2', 'key3': 'value3'}); + expect(stringNSDictionaryToMap(d), { + 'key1': 'value1', + 'key2': 'value2', + 'key3': 'value3', + }); }); test('non-string value', () { final d = objc.NSMutableDictionary() - ..setObject(objc.NSNumberCreation.numberWithInteger(5), - forKey: 'key'.toNSString()); + ..setObject( + objc.NSNumberCreation.numberWithInteger(5), + forKey: 'key'.toNSString(), + ); expect(() => stringNSDictionaryToMap(d), throwsUnsupportedError); }); test('non-string key', () { final d = objc.NSMutableDictionary() - ..setObject('value'.toNSString(), - forKey: objc.NSNumberCreation.numberWithInteger(5)); + ..setObject( + 'value'.toNSString(), + forKey: objc.NSNumberCreation.numberWithInteger(5), + ); expect(() => stringNSDictionaryToMap(d), throwsUnsupportedError); }); }); @@ -57,17 +64,23 @@ void main() { test('single string input', () { final array = stringIterableToNSArray(['apple']); expect(array.count, 1); - expect(objc.NSString.castFrom(array.objectAtIndex(0)).toDartString(), - 'apple'); + expect( + objc.NSString.castFrom(array.objectAtIndex(0)).toDartString(), + 'apple', + ); }); test('multiple string input', () { final array = stringIterableToNSArray(['apple', 'banana']); expect(array.count, 2); - expect(objc.NSString.castFrom(array.objectAtIndex(0)).toDartString(), - 'apple'); - expect(objc.NSString.castFrom(array.objectAtIndex(1)).toDartString(), - 'banana'); + expect( + objc.NSString.castFrom(array.objectAtIndex(0)).toDartString(), + 'apple', + ); + expect( + objc.NSString.castFrom(array.objectAtIndex(1)).toDartString(), + 'banana', + ); }); }); } diff --git a/pkgs/cupertino_http/example/integration_test/web_socket_conformance_test.dart b/pkgs/cupertino_http/example/integration_test/web_socket_conformance_test.dart index 8dff3a2626..28059e2257 100644 --- a/pkgs/cupertino_http/example/integration_test/web_socket_conformance_test.dart +++ b/pkgs/cupertino_http/example/integration_test/web_socket_conformance_test.dart @@ -10,13 +10,13 @@ void main() { testAll(CupertinoWebSocket.connect); group('defaultSessionConfiguration', () { - testAll( - CupertinoWebSocket.connect, - ); + testAll(CupertinoWebSocket.connect); }); group('fromSessionConfiguration', () { final config = URLSessionConfiguration.ephemeralSessionConfiguration(); - testAll((uri, {protocols}) => - CupertinoWebSocket.connect(uri, protocols: protocols, config: config)); + testAll( + (uri, {protocols}) => + CupertinoWebSocket.connect(uri, protocols: protocols, config: config), + ); }); } diff --git a/pkgs/cupertino_http/example/integration_test/web_socket_test.dart b/pkgs/cupertino_http/example/integration_test/web_socket_test.dart index abc958a889..94fd404d0b 100644 --- a/pkgs/cupertino_http/example/integration_test/web_socket_test.dart +++ b/pkgs/cupertino_http/example/integration_test/web_socket_test.dart @@ -10,14 +10,13 @@ void main() { group('ConnectionException', () { test('toString', () { expect( - ConnectionException( - 'failed to connect', - NSError.errorWithDomain('NSURLErrorDomain'.toNSString(), - code: -999)) - .toString(), - 'CupertinoErrorWebSocketException: failed to connect ' - '[The operation couldn’t be completed. ' - '(NSURLErrorDomain error -999.)]'); + ConnectionException( + 'failed to connect', + NSError.errorWithDomain('NSURLErrorDomain'.toNSString(), code: -999), + ).toString(), + 'CupertinoErrorWebSocketException: failed to connect ' + '[The operation couldn’t be completed. (NSURLErrorDomain error -999.)]', + ); }); }); } diff --git a/pkgs/cupertino_http/lib/src/cupertino_api.dart b/pkgs/cupertino_http/lib/src/cupertino_api.dart index fc9e839227..0f12530770 100644 --- a/pkgs/cupertino_http/lib/src/cupertino_api.dart +++ b/pkgs/cupertino_http/lib/src/cupertino_api.dart @@ -92,11 +92,17 @@ class URLCache extends _ObjectHolder { /// stored. If `null` then the default directory will be used. /// /// See [NSURLCache initWithMemoryCapacity:diskCapacity:directoryURL:](https://developer.apple.com/documentation/foundation/nsurlcache/3240612-initwithmemorycapacity) - factory URLCache.withCapacity( - {int memoryCapacity = 0, int diskCapacity = 0, Uri? directory}) => - URLCache._(ncb.NSURLCache.alloc().initWithMemoryCapacity$1(memoryCapacity, - diskCapacity: diskCapacity, - directoryURL: directory == null ? null : uriToNSURL(directory))); + factory URLCache.withCapacity({ + int memoryCapacity = 0, + int diskCapacity = 0, + Uri? directory, + }) => URLCache._( + ncb.NSURLCache.alloc().initWithMemoryCapacity$1( + memoryCapacity, + diskCapacity: diskCapacity, + directoryURL: directory == null ? null : uriToNSURL(directory), + ), + ); } /// Controls the behavior of a URLSession. @@ -109,27 +115,31 @@ class URLSessionConfiguration final bool _isBackground; URLSessionConfiguration._(super.c, {required bool isBackground}) - : _isBackground = isBackground; + : _isBackground = isBackground; /// A configuration suitable for performing HTTP uploads and downloads in /// the background. /// /// See [NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier:](https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1407496-backgroundsessionconfigurationwi) - factory URLSessionConfiguration.backgroundSession(String identifier) => - URLSessionConfiguration._( - ncb.NSURLSessionConfiguration - .backgroundSessionConfigurationWithIdentifier( - identifier.toNSString()), - isBackground: true); + factory URLSessionConfiguration.backgroundSession( + String identifier, + ) => URLSessionConfiguration._( + ncb.NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier( + identifier.toNSString(), + ), + isBackground: true, + ); /// A configuration that uses caching and saves cookies and credentials. /// /// See [NSURLSessionConfiguration defaultSessionConfiguration](https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411560-defaultsessionconfiguration) factory URLSessionConfiguration.defaultSessionConfiguration() => URLSessionConfiguration._( - ncb.NSURLSessionConfiguration.castFrom( - ncb.NSURLSessionConfiguration.getDefaultSessionConfiguration()), - isBackground: false); + ncb.NSURLSessionConfiguration.castFrom( + ncb.NSURLSessionConfiguration.getDefaultSessionConfiguration(), + ), + isBackground: false, + ); /// A session configuration that uses no persistent storage for caches, /// cookies, or credentials. @@ -137,9 +147,11 @@ class URLSessionConfiguration /// See [NSURLSessionConfiguration ephemeralSessionConfiguration](https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1410529-ephemeralsessionconfiguration) factory URLSessionConfiguration.ephemeralSessionConfiguration() => URLSessionConfiguration._( - ncb.NSURLSessionConfiguration.castFrom( - ncb.NSURLSessionConfiguration.getEphemeralSessionConfiguration()), - isBackground: false); + ncb.NSURLSessionConfiguration.castFrom( + ncb.NSURLSessionConfiguration.getEphemeralSessionConfiguration(), + ), + isBackground: false, + ); /// Whether connections over a cellular network are allowed. /// @@ -279,9 +291,10 @@ class URLSessionConfiguration /// /// See [NSURLSessionConfiguration.timeoutIntervalForRequest](https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1408259-timeoutintervalforrequest) Duration get timeoutIntervalForRequest => Duration( - microseconds: - (_nsObject.timeoutIntervalForRequest * Duration.microsecondsPerSecond) - .round()); + microseconds: + (_nsObject.timeoutIntervalForRequest * Duration.microsecondsPerSecond) + .round(), + ); set timeoutIntervalForRequest(Duration interval) { _nsObject.timeoutIntervalForRequest = @@ -296,7 +309,8 @@ class URLSessionConfiguration _nsObject.waitsForConnectivity = value; @override - String toString() => '[URLSessionConfiguration ' + String toString() => + '[URLSessionConfiguration ' 'allowsCellularAccess=$allowsCellularAccess ' 'allowsConstrainedNetworkAccess=$allowsConstrainedNetworkAccess ' 'allowsExpensiveNetworkAccess=$allowsExpensiveNetworkAccess ' @@ -339,7 +353,8 @@ class URLResponse extends _ObjectHolder { String? get mimeType => _nsObject.MIMEType?.toDartString(); @override - String toString() => '[URLResponse ' + String toString() => + '[URLResponse ' 'mimeType=$mimeType ' 'expectedContentLength=$expectedContentLength' ']'; @@ -352,8 +367,8 @@ class HTTPURLResponse extends URLResponse { final ncb.NSHTTPURLResponse _httpUrlResponse; HTTPURLResponse._(ncb.NSHTTPURLResponse super.c) - : _httpUrlResponse = c, - super._(); + : _httpUrlResponse = c, + super._(); /// The HTTP status code of the response (e.g. 200). /// @@ -364,13 +379,15 @@ class HTTPURLResponse extends URLResponse { /// /// See [HTTPURLResponse.allHeaderFields](https://developer.apple.com/documentation/foundation/nshttpurlresponse/1417930-allheaderfields) Map get allHeaderFields { - final headers = - objc.NSDictionary.castFrom(_httpUrlResponse.allHeaderFields); + final headers = objc.NSDictionary.castFrom( + _httpUrlResponse.allHeaderFields, + ); return stringNSDictionaryToMap(headers); } @override - String toString() => '[HTTPURLResponse ' + String toString() => + '[HTTPURLResponse ' 'statusCode=$statusCode ' 'mimeType=$mimeType ' 'expectedContentLength=$expectedContentLength' @@ -389,14 +406,16 @@ class URLSessionWebSocketMessage /// See [NSURLSessionWebSocketMessage initWithData:](https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181192-initwithdata) factory URLSessionWebSocketMessage.fromData(objc.NSData d) => URLSessionWebSocketMessage._( - ncb.NSURLSessionWebSocketMessage.alloc().initWithData(d)); + ncb.NSURLSessionWebSocketMessage.alloc().initWithData(d), + ); /// Create a WebSocket string message. /// /// See [NSURLSessionWebSocketMessage initWitString:](https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181193-initwithstring) factory URLSessionWebSocketMessage.fromString(String s) => - URLSessionWebSocketMessage._(ncb.NSURLSessionWebSocketMessage.alloc() - .initWithString(s.toNSString())); + URLSessionWebSocketMessage._( + ncb.NSURLSessionWebSocketMessage.alloc().initWithString(s.toNSString()), + ); /// The data associated with the WebSocket message. /// @@ -561,7 +580,8 @@ class URLSessionTask extends _ObjectHolder { set prefersIncrementalDelivery(bool value) => _nsObject.prefersIncrementalDelivery = value; - String _toStringHelper(String className) => '[$className ' + String _toStringHelper(String className) => + '[$className ' 'taskDescription=$taskDescription ' 'taskIdentifier=$taskIdentifier ' 'countOfBytesExpectedToReceive=$countOfBytesExpectedToReceive ' @@ -594,8 +614,8 @@ class URLSessionWebSocketTask extends URLSessionTask { final ncb.NSURLSessionWebSocketTask _urlSessionWebSocketTask; URLSessionWebSocketTask._(ncb.NSURLSessionWebSocketTask super.c) - : _urlSessionWebSocketTask = c, - super._(); + : _urlSessionWebSocketTask = c, + super._(); /// The close code set when the WebSocket connection is closed. /// @@ -616,14 +636,16 @@ class URLSessionWebSocketTask extends URLSessionTask { /// See [NSURLSessionWebSocketTask.sendMessage:completionHandler:](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181205-sendmessage) Future sendMessage(URLSessionWebSocketMessage message) async { final completer = Completer(); - _urlSessionWebSocketTask.sendMessage(message._nsObject, - completionHandler: ncb.ObjCBlock_ffiVoid_NSError.listener((error) { - if (error == null) { - completer.complete(); - } else { - completer.completeError(error); - } - })); + _urlSessionWebSocketTask.sendMessage( + message._nsObject, + completionHandler: ncb.ObjCBlock_ffiVoid_NSError.listener((error) { + if (error == null) { + completer.complete(); + } else { + completer.completeError(error); + } + }), + ); await completer.future; } @@ -636,17 +658,21 @@ class URLSessionWebSocketTask extends URLSessionTask { Future receiveMessage() async { final completer = Completer(); _urlSessionWebSocketTask.receiveMessageWithCompletionHandler( - ncb.ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.listener( - (message, error) { - if (error != null) { - completer.completeError(error); - } else if (message != null) { - completer.complete(URLSessionWebSocketMessage._(message)); - } else { - completer.completeError( - StateError('one of message or error must be non-null')); - } - })); + ncb.ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.listener(( + message, + error, + ) { + if (error != null) { + completer.completeError(error); + } else if (message != null) { + completer.complete(URLSessionWebSocketMessage._(message)); + } else { + completer.completeError( + StateError('one of message or error must be non-null'), + ); + } + }), + ); return completer.future; } @@ -707,8 +733,9 @@ class URLRequest extends _ObjectHolder { /// /// See [NSURLSession.timeoutInterval](https://developer.apple.com/documentation/foundation/nsurlrequest/1418229-timeoutinterval) Duration get timeoutInterval => Duration( - microseconds: - (_nsObject.timeoutInterval * Duration.microsecondsPerSecond).round()); + microseconds: (_nsObject.timeoutInterval * Duration.microsecondsPerSecond) + .round(), + ); /// The requested URL. /// @@ -722,7 +749,8 @@ class URLRequest extends _ObjectHolder { } @override - String toString() => '[URLRequest ' + String toString() => + '[URLRequest ' 'allHttpHeaderFields=$allHttpHeaderFields ' 'cachePolicy=$cachePolicy ' 'httpBody=$httpBody ' @@ -739,8 +767,8 @@ class MutableURLRequest extends URLRequest { final ncb.NSMutableURLRequest _mutableUrlRequest; MutableURLRequest._(ncb.NSMutableURLRequest super.c) - : _mutableUrlRequest = c, - super._(); + : _mutableUrlRequest = c, + super._(); /// Creates a request for a URL. /// @@ -777,12 +805,15 @@ class MutableURLRequest extends URLRequest { /// /// See [NSMutableURLRequest setValue:forHTTPHeaderField:](https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1408793-setvalue) void setValueForHttpHeaderField(String value, String field) { - _mutableUrlRequest.setValue(field.toNSString(), - forHTTPHeaderField: value.toNSString()); + _mutableUrlRequest.setValue( + field.toNSString(), + forHTTPHeaderField: value.toNSString(), + ); } @override - String toString() => '[MutableURLRequest ' + String toString() => + '[MutableURLRequest ' 'allHttpHeaderFields=$allHttpHeaderFields ' 'cachePolicy=$cachePolicy ' 'httpBody=$httpBody ' @@ -804,33 +835,50 @@ class URLSession extends _ObjectHolder { static ncb.NSURLSessionDelegate delegate( bool isBackground, { - URLRequest? Function(URLSession session, URLSessionTask task, - HTTPURLResponse response, URLRequest newRequest)? - onRedirect, + URLRequest? Function( + URLSession session, + URLSessionTask task, + HTTPURLResponse response, + URLRequest newRequest, + )? + onRedirect, NSURLSessionResponseDisposition Function( - URLSession session, URLSessionTask task, URLResponse response)? - onResponse, + URLSession session, + URLSessionTask task, + URLResponse response, + )? + onResponse, void Function(URLSession session, URLSessionTask task, objc.NSData error)? - onData, + onData, void Function(URLSession session, URLSessionDownloadTask task, Uri uri)? - onFinishedDownloading, + onFinishedDownloading, void Function(URLSession session, URLSessionTask task, objc.NSError? error)? - onComplete, + onComplete, void Function( - URLSession session, URLSessionWebSocketTask task, String? protocol)? - onWebSocketTaskOpened, - void Function(URLSession session, URLSessionWebSocketTask task, - int closeCode, objc.NSData? reason)? - onWebSocketTaskClosed, + URLSession session, + URLSessionWebSocketTask task, + String? protocol, + )? + onWebSocketTaskOpened, + void Function( + URLSession session, + URLSessionWebSocketTask task, + int closeCode, + objc.NSData? reason, + )? + onWebSocketTaskClosed, }) { final protoBuilder = objc.ObjCProtocolBuilder(); if (onComplete != null) { ncb.NSURLSessionDataDelegate.URLSession_task_didCompleteWithError_ .implementAsListener(protoBuilder, (nsSession, nsTask, nsError) { - onComplete(URLSession._(nsSession, isBackground: isBackground), - URLSessionTask._(nsTask), nsError); - }); + onComplete( + URLSession._(nsSession, isBackground: isBackground), + URLSessionTask._(nsTask), + nsError, + ); + }); } if (onRedirect != null) { @@ -838,94 +886,115 @@ class URLSession extends _ObjectHolder { .NSURLSessionDataDelegate // ignore: lines_longer_than_80_chars .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implementAsListener(protoBuilder, - // ignore: lines_longer_than_80_chars - - (nsSession, nsTask, nsResponse, nsRequest, nsRequestCompleter) { - final request = URLRequest._(nsRequest); - URLRequest? redirectRequest; - - try { - final response = - URLResponse._exactURLResponseType(nsResponse) as HTTPURLResponse; - redirectRequest = onRedirect( - URLSession._(nsSession, isBackground: isBackground), - URLSessionTask._(nsTask), - response, - request); - nsRequestCompleter.call(redirectRequest?._nsObject); - } catch (e) { - // TODO(https://github.com/dart-lang/ffigen/issues/386): Package - // this exception as an `Error` and call the completion function - // with it. - } - }); + .implementAsListener( + protoBuilder, + + // ignore: lines_longer_than_80_chars + (nsSession, nsTask, nsResponse, nsRequest, nsRequestCompleter) { + final request = URLRequest._(nsRequest); + URLRequest? redirectRequest; + + try { + final response = + URLResponse._exactURLResponseType(nsResponse) + as HTTPURLResponse; + redirectRequest = onRedirect( + URLSession._(nsSession, isBackground: isBackground), + URLSessionTask._(nsTask), + response, + request, + ); + nsRequestCompleter.call(redirectRequest?._nsObject); + } catch (e) { + // TODO(https://github.com/dart-lang/ffigen/issues/386): Package + // this exception as an `Error` and call the completion function + // with it. + } + }, + ); } if (onResponse != null) { - ncb.NSURLSessionDataDelegate + ncb + .NSURLSessionDataDelegate .URLSession_dataTask_didReceiveResponse_completionHandler_ - .implementAsListener(protoBuilder, - (nsSession, nsDataTask, nsResponse, nsCompletionHandler) { - final exactResponse = URLResponse._exactURLResponseType(nsResponse); - final disposition = onResponse( - URLSession._(nsSession, isBackground: isBackground), - URLSessionTask._(nsDataTask), - exactResponse); - nsCompletionHandler.call(disposition); - }); + .implementAsListener(protoBuilder, ( + nsSession, + nsDataTask, + nsResponse, + nsCompletionHandler, + ) { + final exactResponse = URLResponse._exactURLResponseType(nsResponse); + final disposition = onResponse( + URLSession._(nsSession, isBackground: isBackground), + URLSessionTask._(nsDataTask), + exactResponse, + ); + nsCompletionHandler.call(disposition); + }); } if (onData != null) { ncb.NSURLSessionDataDelegate.URLSession_dataTask_didReceiveData_ .implementAsListener(protoBuilder, (nsSession, nsDataTask, nsData) { - onData(URLSession._(nsSession, isBackground: isBackground), - URLSessionTask._(nsDataTask), nsData); - }); + onData( + URLSession._(nsSession, isBackground: isBackground), + URLSessionTask._(nsDataTask), + nsData, + ); + }); } if (onFinishedDownloading != null) { - ncb.NSURLSessionDownloadDelegate + ncb + .NSURLSessionDownloadDelegate .URLSession_downloadTask_didFinishDownloadingToURL_ .implementAsBlocking(protoBuilder, (nsSession, nsTask, nsUrl) { - onFinishedDownloading( - URLSession._(nsSession, isBackground: isBackground), - URLSessionDownloadTask._(nsTask), - nsurlToUri(nsUrl)); - }); + onFinishedDownloading( + URLSession._(nsSession, isBackground: isBackground), + URLSessionDownloadTask._(nsTask), + nsurlToUri(nsUrl), + ); + }); } if (onWebSocketTaskOpened != null) { - ncb.NSURLSessionWebSocketDelegate + ncb + .NSURLSessionWebSocketDelegate .URLSession_webSocketTask_didOpenWithProtocol_ .implementAsListener(protoBuilder, (nsSession, nsTask, nsProtocol) { - onWebSocketTaskOpened( - URLSession._(nsSession, isBackground: isBackground), - URLSessionWebSocketTask._(nsTask), - nsProtocol?.toDartString()); - }); + onWebSocketTaskOpened( + URLSession._(nsSession, isBackground: isBackground), + URLSessionWebSocketTask._(nsTask), + nsProtocol?.toDartString(), + ); + }); } if (onWebSocketTaskClosed != null) { - ncb.NSURLSessionWebSocketDelegate + ncb + .NSURLSessionWebSocketDelegate .URLSession_webSocketTask_didCloseWithCode_reason_ - .implementAsListener(protoBuilder, - (nsSession, nsTask, closeCode, reason) { - onWebSocketTaskClosed( - URLSession._(nsSession, isBackground: isBackground), - URLSessionWebSocketTask._(nsTask), + .implementAsListener(protoBuilder, ( + nsSession, + nsTask, closeCode, - reason); - }); + reason, + ) { + onWebSocketTaskClosed( + URLSession._(nsSession, isBackground: isBackground), + URLSessionWebSocketTask._(nsTask), + closeCode, + reason, + ); + }); } return ncb.NSURLSessionDelegate.castFrom(protoBuilder.build()); } - URLSession._( - super.c, { - required bool isBackground, - }) : _isBackground = isBackground; + URLSession._(super.c, {required bool isBackground}) + : _isBackground = isBackground; /// A client with reasonable default behavior. /// @@ -974,24 +1043,38 @@ class URLSession extends _ObjectHolder { /// [onWebSocketTaskClosed] to be called. factory URLSession.sessionWithConfiguration( URLSessionConfiguration config, { - URLRequest? Function(URLSession session, URLSessionTask task, - HTTPURLResponse response, URLRequest newRequest)? - onRedirect, + URLRequest? Function( + URLSession session, + URLSessionTask task, + HTTPURLResponse response, + URLRequest newRequest, + )? + onRedirect, NSURLSessionResponseDisposition Function( - URLSession session, URLSessionTask task, URLResponse response)? - onResponse, + URLSession session, + URLSessionTask task, + URLResponse response, + )? + onResponse, void Function(URLSession session, URLSessionTask task, objc.NSData data)? - onData, + onData, void Function(URLSession session, URLSessionDownloadTask task, Uri uri)? - onFinishedDownloading, + onFinishedDownloading, void Function(URLSession session, URLSessionTask task, objc.NSError? error)? - onComplete, + onComplete, + void Function( + URLSession session, + URLSessionWebSocketTask task, + String? protocol, + )? + onWebSocketTaskOpened, void Function( - URLSession session, URLSessionWebSocketTask task, String? protocol)? - onWebSocketTaskOpened, - void Function(URLSession session, URLSessionWebSocketTask task, - int? closeCode, objc.NSData? reason)? - onWebSocketTaskClosed, + URLSession session, + URLSessionWebSocketTask task, + int? closeCode, + objc.NSData? reason, + )? + onWebSocketTaskClosed, }) { // Avoid the complexity of simultaneous or out-of-order delegate callbacks // by only allowing callbacks to execute sequentially. @@ -1000,7 +1083,8 @@ class URLSession extends _ObjectHolder { ..maxConcurrentOperationCount = 1 ..name = 'cupertino_http.NSURLSessionDelegateQueue'.toNSString(); - final hasDelegate = (onRedirect ?? + final hasDelegate = + (onRedirect ?? onResponse ?? onData ?? onFinishedDownloading ?? @@ -1011,22 +1095,27 @@ class URLSession extends _ObjectHolder { if (hasDelegate) { return URLSession._( - ncb.NSURLSession.sessionWithConfiguration$1(config._nsObject, - delegate: delegate(config._isBackground, - onRedirect: onRedirect, - onResponse: onResponse, - onData: onData, - onFinishedDownloading: onFinishedDownloading, - onComplete: onComplete, - onWebSocketTaskOpened: onWebSocketTaskOpened, - onWebSocketTaskClosed: onWebSocketTaskClosed), - delegateQueue: queue), + ncb.NSURLSession.sessionWithConfiguration$1( + config._nsObject, + delegate: delegate( + config._isBackground, + onRedirect: onRedirect, + onResponse: onResponse, + onData: onData, + onFinishedDownloading: onFinishedDownloading, + onComplete: onComplete, + onWebSocketTaskOpened: onWebSocketTaskOpened, + onWebSocketTaskClosed: onWebSocketTaskClosed, + ), + delegateQueue: queue, + ), isBackground: config._isBackground, ); } else { return URLSession._( - ncb.NSURLSession.sessionWithConfiguration(config._nsObject), - isBackground: config._isBackground); + ncb.NSURLSession.sessionWithConfiguration(config._nsObject), + isBackground: config._isBackground, + ); } } @@ -1034,8 +1123,9 @@ 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), - isBackground: _isBackground); + ncb.NSURLSessionConfiguration.castFrom(_nsObject.configuration), + isBackground: _isBackground, + ); /// A description of the session that may be useful for debugging. /// @@ -1056,30 +1146,34 @@ class URLSession extends _ObjectHolder { /// /// See [NSURLSession dataTaskWithRequest:completionHandler:](https://developer.apple.com/documentation/foundation/nsurlsession/1407613-datataskwithrequest) URLSessionTask dataTaskWithCompletionHandler( - URLRequest request, - void Function( - objc.NSData? data, URLResponse? response, objc.NSError? error) - completion) { + URLRequest request, + void Function(objc.NSData? data, URLResponse? response, objc.NSError? error) + completion, + ) { if (_isBackground) { throw UnsupportedError( - 'dataTaskWithCompletionHandler is not supported in background ' - 'sessions'); + 'dataTaskWithCompletionHandler is not supported in background ' + 'sessions', + ); } final completer = - ncb.ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.listener( - (data, response, error) { - completion( - data, - response == null ? null : URLResponse._exactURLResponseType(response), - error, - ); - }); - - final task = - ncb.NSURLSessionAsynchronousConvenience(_nsObject).dataTaskWithRequest( - request._nsObject, - completionHandler: completer, - ); + ncb.ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.listener(( + data, + response, + error, + ) { + completion( + data, + response == null + ? null + : URLResponse._exactURLResponseType(response), + error, + ); + }); + + final task = ncb.NSURLSessionAsynchronousConvenience( + _nsObject, + ).dataTaskWithRequest(request._nsObject, completionHandler: completer); return URLSessionTask._(task); } @@ -1093,7 +1187,8 @@ class URLSession extends _ObjectHolder { /// See [NSURLSession downloadTaskWithRequest:](https://developer.apple.com/documentation/foundation/nsurlsession/1411481-downloadtaskwithrequest) URLSessionDownloadTask downloadTaskWithRequest(URLRequest request) => URLSessionDownloadTask._( - _nsObject.downloadTaskWithRequest(request._nsObject)); + _nsObject.downloadTaskWithRequest(request._nsObject), + ); /// Creates a [URLSessionWebSocketTask] that represents a connection to a /// WebSocket endpoint. @@ -1105,30 +1200,39 @@ class URLSession extends _ObjectHolder { URLSessionWebSocketTask webSocketTaskWithRequest(URLRequest request) { if (_isBackground) { throw UnsupportedError( - 'WebSocket tasks are not supported in background sessions'); + 'WebSocket tasks are not supported in background sessions', + ); } return URLSessionWebSocketTask._( - _nsObject.webSocketTaskWithRequest(request._nsObject)); + _nsObject.webSocketTaskWithRequest(request._nsObject), + ); } /// Creates a [URLSessionWebSocketTask] that represents a connection to a /// WebSocket endpoint. /// /// See [NSURLSession webSocketTaskWithURL:protocols:](https://developer.apple.com/documentation/foundation/nsurlsession/3181172-websockettaskwithurl) - URLSessionWebSocketTask webSocketTaskWithURL(Uri uri, - {Iterable? protocols}) { + URLSessionWebSocketTask webSocketTaskWithURL( + Uri uri, { + Iterable? protocols, + }) { if (_isBackground) { throw UnsupportedError( - 'WebSocket tasks are not supported in background sessions'); + 'WebSocket tasks are not supported in background sessions', + ); } final URLSessionWebSocketTask task; if (protocols == null) { task = URLSessionWebSocketTask._( - _nsObject.webSocketTaskWithURL(uriToNSURL(uri))); + _nsObject.webSocketTaskWithURL(uriToNSURL(uri)), + ); } else { - task = URLSessionWebSocketTask._(_nsObject.webSocketTaskWithURL$1( + task = URLSessionWebSocketTask._( + _nsObject.webSocketTaskWithURL$1( uriToNSURL(uri), - protocols: stringIterableToNSArray(protocols))); + protocols: stringIterableToNSArray(protocols), + ), + ); } return task; } diff --git a/pkgs/cupertino_http/lib/src/cupertino_client.dart b/pkgs/cupertino_http/lib/src/cupertino_client.dart index 6273c48518..00f4ceca04 100644 --- a/pkgs/cupertino_http/lib/src/cupertino_client.dart +++ b/pkgs/cupertino_http/lib/src/cupertino_client.dart @@ -22,13 +22,14 @@ class NSErrorClientException extends ClientException { final NSError error; NSErrorClientException(this.error, [Uri? uri]) - : super(error.localizedDescription.toDartString(), uri); + : super(error.localizedDescription.toDartString(), uri); @override String toString() { final b = StringBuffer( - 'NSErrorClientException: ${error.localizedDescription.toDartString()} ' - '[domain=${error.domain.toDartString()}, code=${error.code}]'); + 'NSErrorClientException: ${error.localizedDescription.toDartString()} ' + '[domain=${error.domain.toDartString()}, code=${error.code}]', + ); if (uri != null) { b.write(', uri=$uri'); @@ -43,13 +44,16 @@ class _StreamedResponseWithUrl extends StreamedResponse @override final Uri url; - _StreamedResponseWithUrl(super.stream, super.statusCode, - {required this.url, - super.contentLength, - super.request, - super.headers, - super.isRedirect, - super.reasonPhrase}); + _StreamedResponseWithUrl( + super.stream, + super.statusCode, { + required this.url, + super.contentLength, + super.request, + super.headers, + super.isRedirect, + super.reasonPhrase, + }); } class _TaskTracker { @@ -190,7 +194,10 @@ class CupertinoClient extends BaseClient { static _TaskTracker _tracker(URLSessionTask task) => _tasks[task]!; static void _onComplete( - URLSession session, URLSessionTask task, NSError? error) { + URLSession session, + URLSessionTask task, + NSError? error, + ) { final taskTracker = _tracker(task); // The task will only be cancelled if the user calls // `StreamedResponse.stream.cancel()`, which can only happen if the response @@ -215,13 +222,16 @@ class CupertinoClient extends BaseClient { } } else { assert(error == null || taskTracker.responseListenerCancelled); - assert(taskTracker.profile == null || - taskTracker.profile!.requestData.endTime != null); + assert( + taskTracker.profile == null || + taskTracker.profile!.requestData.endTime != null, + ); taskTracker.profile?.responseData.close(); if (!taskTracker.responseCompleter.isCompleted) { taskTracker.responseCompleter.completeError( - StateError('task completed without an error or response')); + StateError('task completed without an error or response'), + ); } } taskTracker.close(); @@ -235,16 +245,23 @@ class CupertinoClient extends BaseClient { taskTracker.profile?.responseData.bodySink.add(data.toList()); } - static URLRequest? _onRedirect(URLSession session, URLSessionTask task, - HTTPURLResponse response, URLRequest request) { + static URLRequest? _onRedirect( + URLSession session, + URLSessionTask task, + HTTPURLResponse response, + URLRequest request, + ) { final taskTracker = _tracker(task); ++taskTracker.numRedirects; if (taskTracker.request.followRedirects && taskTracker.numRedirects <= taskTracker.request.maxRedirects) { - taskTracker.profile?.responseData.addRedirect(HttpProfileRedirectData( + taskTracker.profile?.responseData.addRedirect( + HttpProfileRedirectData( statusCode: response.statusCode, method: request.httpMethod, - location: request.url!.toString())); + location: request.url!.toString(), + ), + ); taskTracker.lastUrl = request.url; return request; } @@ -252,7 +269,10 @@ class CupertinoClient extends BaseClient { } static NSURLSessionResponseDisposition _onResponse( - URLSession session, URLSessionTask task, URLResponse response) { + URLSession session, + URLSessionTask task, + URLResponse response, + ) { final taskTracker = _tracker(task); taskTracker.responseCompleter.complete(response); unawaited(taskTracker.profile?.requestData.close()); @@ -268,12 +288,15 @@ class CupertinoClient extends BaseClient { /// A [Client] configured with a [URLSessionConfiguration]. factory CupertinoClient.fromSessionConfiguration( - URLSessionConfiguration config) { - final session = URLSession.sessionWithConfiguration(config, - onComplete: _onComplete, - onData: _onData, - onRedirect: _onRedirect, - onResponse: _onResponse); + URLSessionConfiguration config, + ) { + final session = URLSession.sessionWithConfiguration( + config, + onComplete: _onComplete, + onData: _onData, + onRedirect: _onRedirect, + onResponse: _onResponse, + ); return CupertinoClient._(session); } @@ -288,7 +311,8 @@ class CupertinoClient extends BaseClient { /// Since [_hasData] consumes [stream], returns a new stream containing the /// equivalent data. static Future<(bool, Stream>)> _hasData( - Stream> stream) async { + Stream> stream, + ) async { final queue = StreamQueue(stream); while (await queue.hasNext && (await queue.peek).isEmpty) { await queue.next; @@ -299,9 +323,10 @@ class CupertinoClient extends BaseClient { HttpClientRequestProfile? _createProfile(BaseRequest request) => HttpClientRequestProfile.profile( - requestStartTime: DateTime.now(), - requestMethod: request.method, - requestUri: request.url.toString()); + requestStartTime: DateTime.now(), + requestMethod: request.method, + requestUri: request.url.toString(), + ); @override Future send(BaseRequest request) async { @@ -319,7 +344,9 @@ class CupertinoClient extends BaseClient { // StreamController if (_urlSession == null) { throw ClientException( - 'HTTP request failed. Client is already closed.', request.url); + 'HTTP request failed. Client is already closed.', + request.url, + ); } final urlSession = _urlSession!; @@ -343,10 +370,12 @@ class CupertinoClient extends BaseClient { if (request.contentLength != null) { profile?.requestData.headersListValues = { 'Content-Length': ['${request.contentLength}'], - ...profile.requestData.headers! + ...profile.requestData.headers!, }; urlRequest.setValueForHttpHeaderField( - 'Content-Length', '${request.contentLength}'); + 'Content-Length', + '${request.contentLength}', + ); } if (request is Request) { @@ -370,12 +399,14 @@ class CupertinoClient extends BaseClient { // This will preserve Apple default headers - is that what we want? request.headers.forEach(urlRequest.setValueForHttpHeaderField); final task = urlSession.dataTaskWithRequest(urlRequest); - final subscription = StreamController(onCancel: () { - final taskTracker = _tasks[task]; - if (taskTracker == null) return; - taskTracker.responseListenerCancelled = true; - task.cancel(); - }); + final subscription = StreamController( + onCancel: () { + final taskTracker = _tasks[task]; + if (taskTracker == null) return; + taskTracker.responseListenerCancelled = true; + task.cancel(); + }, + ); final taskTracker = _TaskTracker(request, subscription, profile); _tasks[task] = taskTracker; task.resume(); @@ -391,8 +422,9 @@ class CupertinoClient extends BaseClient { throw ClientException('Redirect limit exceeded', request.url); } - final responseHeaders = response.allHeaderFields - .map((key, value) => MapEntry(key.toLowerCase(), value)); + final responseHeaders = response.allHeaderFields.map( + (key, value) => MapEntry(key.toLowerCase(), value), + ); if (responseHeaders['content-length'] case final contentLengthHeader? when !_digitRegex.hasMatch(contentLengthHeader)) { @@ -439,11 +471,13 @@ class CupertinoClientWithProfile extends CupertinoClient { factory CupertinoClientWithProfile.defaultSessionConfiguration() { final config = URLSessionConfiguration.defaultSessionConfiguration(); - final session = URLSession.sessionWithConfiguration(config, - onComplete: CupertinoClient._onComplete, - onData: CupertinoClient._onData, - onRedirect: CupertinoClient._onRedirect, - onResponse: CupertinoClient._onResponse); + final session = URLSession.sessionWithConfiguration( + config, + onComplete: CupertinoClient._onComplete, + onData: CupertinoClient._onData, + onRedirect: CupertinoClient._onRedirect, + onResponse: CupertinoClient._onResponse, + ); return CupertinoClientWithProfile._(session); } } diff --git a/pkgs/cupertino_http/lib/src/cupertino_web_socket.dart b/pkgs/cupertino_http/lib/src/cupertino_web_socket.dart index 8dc8ebf2a6..ef60c3712d 100644 --- a/pkgs/cupertino_http/lib/src/cupertino_web_socket.dart +++ b/pkgs/cupertino_http/lib/src/cupertino_web_socket.dart @@ -18,7 +18,8 @@ class ConnectionException extends WebSocketException { ConnectionException(super.message, this.error); @override - String toString() => 'CupertinoErrorWebSocketException: $message ' + String toString() => + 'CupertinoErrorWebSocketException: $message ' '[${error.localizedDescription.toDartString()}]'; } @@ -67,59 +68,72 @@ class CupertinoWebSocket implements WebSocket { /// /// NOTE: the [WebSocket] interface is currently experimental and may change /// in the future. - static Future connect(Uri url, - {Iterable? protocols, URLSessionConfiguration? config}) async { + static Future connect( + Uri url, { + Iterable? protocols, + URLSessionConfiguration? config, + }) async { if (!url.isScheme('ws') && !url.isScheme('wss')) { throw ArgumentError.value( - url, 'url', 'only ws: and wss: schemes are supported'); + url, + 'url', + 'only ws: and wss: schemes are supported', + ); } final readyCompleter = Completer(); late CupertinoWebSocket webSocket; final session = URLSession.sessionWithConfiguration( - config ?? URLSessionConfiguration.defaultSessionConfiguration(), - // In a successful flow, the callbacks will be made in this order: - // onWebSocketTaskOpened(...) // Good connect. - // - // onWebSocketTaskClosed(...) // Optional: peer sent Close frame. - // onComplete(..., error=null) // Disconnected. - // - // In a failure to connect to the peer, the flow will be: - // onComplete(session, task, error=error): - // - // `onComplete` can also be called at any point if the peer is - // disconnected without Close frames being exchanged. - onWebSocketTaskOpened: (session, task, protocol) { - webSocket = CupertinoWebSocket._(task, protocol ?? ''); - readyCompleter.complete(webSocket); - }, onWebSocketTaskClosed: (session, task, closeCode, reason) { - assert(readyCompleter.isCompleted); - webSocket._connectionClosed(closeCode, reason); - }, onComplete: (session, task, error) { - if (!readyCompleter.isCompleted) { - // `onWebSocketTaskOpened should have been called and completed - // `readyCompleter`. So either there was a error creating the connection - // or a logic error. - if (error == null) { - throw AssertionError( + config ?? URLSessionConfiguration.defaultSessionConfiguration(), + // In a successful flow, the callbacks will be made in this order: + // onWebSocketTaskOpened(...) // Good connect. + // + // onWebSocketTaskClosed(...) // Optional: peer sent Close frame. + // onComplete(..., error=null) // Disconnected. + // + // In a failure to connect to the peer, the flow will be: + // onComplete(session, task, error=error): + // + // `onComplete` can also be called at any point if the peer is + // disconnected without Close frames being exchanged. + onWebSocketTaskOpened: (session, task, protocol) { + webSocket = CupertinoWebSocket._(task, protocol ?? ''); + readyCompleter.complete(webSocket); + }, + onWebSocketTaskClosed: (session, task, closeCode, reason) { + assert(readyCompleter.isCompleted); + webSocket._connectionClosed(closeCode, reason); + }, + onComplete: (session, task, error) { + if (!readyCompleter.isCompleted) { + // `onWebSocketTaskOpened should have been called and completed + // `readyCompleter`. So either there was a error creating the connection + // or a logic error. + if (error == null) { + throw AssertionError( 'expected an error or "onWebSocketTaskOpened" to be called ' - 'first'); + 'first', + ); + } + readyCompleter.completeError( + ConnectionException('connection ended unexpectedly', error), + ); + } else { + // There are three possibilities here: + // 1. the peer sent a close Frame, `onWebSocketTaskClosed` was already + // called and `_connectionClosed` is a no-op. + // 2. we sent a close Frame (through `close()`) and `_connectionClosed` + // is a no-op. + // 3. an error occurred (e.g. network failure) and `_connectionClosed` + // will signal that and close `event`. + webSocket._connectionClosed( + 1006, + 'abnormal close'.codeUnits.toNSData(), + ); } - readyCompleter.completeError( - ConnectionException('connection ended unexpectedly', error)); - } else { - // There are three possibilities here: - // 1. the peer sent a close Frame, `onWebSocketTaskClosed` was already - // called and `_connectionClosed` is a no-op. - // 2. we sent a close Frame (through `close()`) and `_connectionClosed` - // is a no-op. - // 3. an error occurred (e.g. network failure) and `_connectionClosed` - // will signal that and close `event`. - webSocket._connectionClosed( - 1006, 'abnormal close'.codeUnits.toNSData()); - } - }); + }, + ); session.webSocketTaskWithURL(url, protocols: protocols).resume(); return readyCompleter.future; @@ -141,11 +155,11 @@ class CupertinoWebSocket implements WebSocket { late WebSocketEvent event; switch (value.type) { case NSURLSessionWebSocketMessageType - .NSURLSessionWebSocketMessageTypeString: + .NSURLSessionWebSocketMessageTypeString: event = TextDataReceived(value.string!); break; case NSURLSessionWebSocketMessageType - .NSURLSessionWebSocketMessageTypeData: + .NSURLSessionWebSocketMessageTypeData: event = BinaryDataReceived(value.data!.toList()); break; } @@ -154,9 +168,12 @@ class CupertinoWebSocket implements WebSocket { } void _scheduleReceive() { - unawaited(_task - .receiveMessage() - .then(_handleMessage, onError: _closeConnectionWithError)); + unawaited( + _task.receiveMessage().then( + _handleMessage, + onError: _closeConnectionWithError, + ), + ); } /// Close the WebSocket connection due to an error and send the @@ -172,10 +189,10 @@ class CupertinoWebSocket implements WebSocket { } var (int code, String? reason) = switch ([domain, e.code]) { ['NSPOSIXErrorDomain', 100] => ( - 1002, - e.localizedDescription.toDartString() - ), - _ => (1006, e.localizedDescription.toDartString()) + 1002, + e.localizedDescription.toDartString(), + ), + _ => (1006, e.localizedDescription.toDartString()), }; _task.cancel(); _connectionClosed(code, reason.codeUnits.toNSData()); @@ -221,12 +238,17 @@ class CupertinoWebSocket implements WebSocket { } if (code != null && code != 1000 && !(code >= 3000 && code <= 4999)) { - throw ArgumentError('Invalid argument: $code, close code must be 1000 or ' - 'in the range 3000-4999'); + throw ArgumentError( + 'Invalid argument: $code, close code must be 1000 or ' + 'in the range 3000-4999', + ); } if (reason != null && utf8.encode(reason).length > 123) { - throw ArgumentError.value(reason, 'reason', - 'reason must be <= 123 bytes long when encoded as UTF-8'); + throw ArgumentError.value( + reason, + 'reason', + 'reason must be <= 123 bytes long when encoded as UTF-8', + ); } if (!_events.isClosed) { From cb344cea64e195bb9b373df7de0b313935065f49 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 18 Aug 2025 16:53:34 -0700 Subject: [PATCH 08/14] Update cupertino.yml --- .github/workflows/cupertino.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cupertino.yml b/.github/workflows/cupertino.yml index f67f917ac1..5ebbf8b90f 100644 --- a/.github/workflows/cupertino.yml +++ b/.github/workflows/cupertino.yml @@ -47,7 +47,7 @@ jobs: name: Install dependencies run: flutter pub get - name: Check formatting - run: dart format --set-exit-if-changed . + run: dart format --output=none --set-exit-if-changed . if: always() && steps.install.outcome == 'success' - name: Analyze code run: flutter analyze --fatal-infos From 1a60235761e434de71a3a3c0e4cb9cdafc6d2b3b Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 18 Aug 2025 16:59:13 -0700 Subject: [PATCH 09/14] Format --- pkgs/cupertino_http/example/lib/book.dart | 11 ++-- pkgs/cupertino_http/example/lib/main.dart | 55 ++++++++++--------- .../lib/src/cupertino_web_socket.dart | 8 +-- 3 files changed, 39 insertions(+), 35 deletions(-) diff --git a/pkgs/cupertino_http/example/lib/book.dart b/pkgs/cupertino_http/example/lib/book.dart index b47ca9e67e..5d83d66982 100644 --- a/pkgs/cupertino_http/example/lib/book.dart +++ b/pkgs/cupertino_http/example/lib/book.dart @@ -15,12 +15,11 @@ class Book { if (json['items'] case final List items) { for (final item in items) { if (item case {'volumeInfo': final Map volumeInfo}) { - if (volumeInfo - case { - 'title': final String title, - 'description': final String description, - 'imageLinks': {'smallThumbnail': final String thumbnail} - }) { + if (volumeInfo case { + 'title': final String title, + 'description': final String description, + 'imageLinks': {'smallThumbnail': final String thumbnail}, + }) { books.add(Book(title, description, Uri.parse(thumbnail))); } } diff --git a/pkgs/cupertino_http/example/lib/main.dart b/pkgs/cupertino_http/example/lib/main.dart index 78fcb9c8ad..bc8e24589a 100644 --- a/pkgs/cupertino_http/example/lib/main.dart +++ b/pkgs/cupertino_http/example/lib/main.dart @@ -25,10 +25,13 @@ void main() { httpClient = IOClient(HttpClient()..userAgent = 'Book Agent'); } - runApp(Provider( + runApp( + Provider( create: (_) => httpClient, child: const BookSearchApp(), - dispose: (_, client) => client.close())); + dispose: (_, client) => client.close(), + ), + ); } class BookSearchApp extends StatelessWidget { @@ -36,11 +39,11 @@ class BookSearchApp extends StatelessWidget { @override Widget build(BuildContext context) => const MaterialApp( - // Remove the debug banner. - debugShowCheckedModeBanner: false, - title: 'Book Search', - home: HomePage(), - ); + // Remove the debug banner. + debugShowCheckedModeBanner: false, + title: 'Book Search', + home: HomePage(), + ); } class HomePage extends StatefulWidget { @@ -65,11 +68,11 @@ class _HomePageState extends State { // The `get` call will automatically use the `client` configured in `main`. Future> _findMatchingBooks(String query) async { final response = await _client.get( - Uri.https( - 'www.googleapis.com', - '/books/v1/volumes', - {'q': query, 'maxResults': '20', 'printType': 'books'}, - ), + Uri.https('www.googleapis.com', '/books/v1/volumes', { + 'q': query, + 'maxResults': '20', + 'printType': 'books', + }), ); final json = jsonDecode(utf8.decode(response.bodyBytes)) as Map; @@ -99,8 +102,8 @@ class _HomePageState extends State { final searchResult = _books == null ? const Text('Please enter a query', style: TextStyle(fontSize: 24)) : _books!.isNotEmpty - ? BookList(_books!) - : const Text('No results found', style: TextStyle(fontSize: 24)); + ? BookList(_books!) + : const Text('No results found', style: TextStyle(fontSize: 24)); return Scaffold( appBar: AppBar(title: const Text('Book Search')), @@ -136,17 +139,19 @@ class BookList extends StatefulWidget { class _BookListState extends State { @override Widget build(BuildContext context) => ListView.builder( - itemCount: widget.books.length, - itemBuilder: (context, index) => Card( - key: ValueKey(widget.books[index].title), - child: ListTile( - leading: Image( - image: HttpImageProvider( - widget.books[index].imageUrl.replace(scheme: 'https'), - client: context.read())), - title: Text(widget.books[index].title), - subtitle: Text(widget.books[index].description), + itemCount: widget.books.length, + itemBuilder: (context, index) => Card( + key: ValueKey(widget.books[index].title), + child: ListTile( + leading: Image( + image: HttpImageProvider( + widget.books[index].imageUrl.replace(scheme: 'https'), + client: context.read(), ), ), - ); + title: Text(widget.books[index].title), + subtitle: Text(widget.books[index].description), + ), + ), + ); } diff --git a/pkgs/cupertino_http/lib/src/cupertino_web_socket.dart b/pkgs/cupertino_http/lib/src/cupertino_web_socket.dart index ef60c3712d..5198b7bb17 100644 --- a/pkgs/cupertino_http/lib/src/cupertino_web_socket.dart +++ b/pkgs/cupertino_http/lib/src/cupertino_web_socket.dart @@ -108,8 +108,8 @@ class CupertinoWebSocket implements WebSocket { onComplete: (session, task, error) { if (!readyCompleter.isCompleted) { // `onWebSocketTaskOpened should have been called and completed - // `readyCompleter`. So either there was a error creating the connection - // or a logic error. + // `readyCompleter`. So either there was a error creating the + // connection or a logic error. if (error == null) { throw AssertionError( 'expected an error or "onWebSocketTaskOpened" to be called ' @@ -123,8 +123,8 @@ class CupertinoWebSocket implements WebSocket { // There are three possibilities here: // 1. the peer sent a close Frame, `onWebSocketTaskClosed` was already // called and `_connectionClosed` is a no-op. - // 2. we sent a close Frame (through `close()`) and `_connectionClosed` - // is a no-op. + // 2. we sent a close Frame (through `close()`) and + // `_connectionClosed` is a no-op. // 3. an error occurred (e.g. network failure) and `_connectionClosed` // will signal that and close `event`. webSocket._connectionClosed( From 2ec9bd6f525634497887dbde3b2e9647a4e55695 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 18 Aug 2025 17:02:26 -0700 Subject: [PATCH 10/14] Fix --- pkgs/cupertino_http/CHANGELOG.md | 4 + .../lib/src/native_cupertino_bindings.dart | 97226 +++++++++------- pkgs/cupertino_http/pubspec.yaml | 2 +- 3 files changed, 55968 insertions(+), 41264 deletions(-) diff --git a/pkgs/cupertino_http/CHANGELOG.md b/pkgs/cupertino_http/CHANGELOG.md index 4a6434cc33..b93aac4c2a 100644 --- a/pkgs/cupertino_http/CHANGELOG.md +++ b/pkgs/cupertino_http/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.4.0-wip + +* Switch to `package:objective_c` `8.1.0` and `package:ffigen` `19.1.0`. + ## 2.3.0 * Add the ability to abort requests. diff --git a/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart b/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart index de6644744d..f994da5ccb 100644 --- a/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart +++ b/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart @@ -20,184 +20,137 @@ import 'package:ffi/ffi.dart' as pkg_ffi; class NativeCupertinoHttp { /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) - _lookup; + _lookup; /// The symbols are looked up in [dynamicLibrary]. NativeCupertinoHttp(ffi.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; + : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. NativeCupertinoHttp.fromLookup( - ffi.Pointer Function(String symbolName) - lookup) - : _lookup = lookup; + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; ffi.Pointer> signal( int arg0, ffi.Pointer> arg1, ) { - return _signal( - arg0, - arg1, - ); + return _signal(arg0, arg1); } - late final _signalPtr = _lookup< - ffi.NativeFunction< + late final _signalPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer> Function( - ffi.Int, - ffi.Pointer< - ffi.NativeFunction>)>>('signal'); - late final _signal = _signalPtr.asFunction< - ffi.Pointer> Function( - int, ffi.Pointer>)>(); - - int getpriority( - int arg0, - int arg1, - ) { - return _getpriority( - arg0, - arg1, - ); + ffi.Int, + ffi.Pointer>, + ) + > + >('signal'); + late final _signal = _signalPtr + .asFunction< + ffi.Pointer> Function( + int, + ffi.Pointer>, + ) + >(); + + int getpriority(int arg0, int arg1) { + return _getpriority(arg0, arg1); } late final _getpriorityPtr = _lookup>( - 'getpriority'); - late final _getpriority = - _getpriorityPtr.asFunction(); + 'getpriority', + ); + late final _getpriority = _getpriorityPtr + .asFunction(); - int getiopolicy_np( - int arg0, - int arg1, - ) { - return _getiopolicy_np( - arg0, - arg1, - ); + int getiopolicy_np(int arg0, int arg1) { + return _getiopolicy_np(arg0, arg1); } late final _getiopolicy_npPtr = _lookup>( - 'getiopolicy_np'); - late final _getiopolicy_np = - _getiopolicy_npPtr.asFunction(); + 'getiopolicy_np', + ); + late final _getiopolicy_np = _getiopolicy_npPtr + .asFunction(); - int getrlimit( - int arg0, - ffi.Pointer arg1, - ) { - return _getrlimit( - arg0, - arg1, - ); + int getrlimit(int arg0, ffi.Pointer arg1) { + return _getrlimit(arg0, arg1); } - late final _getrlimitPtr = _lookup< - ffi.NativeFunction)>>( - 'getrlimit'); - late final _getrlimit = - _getrlimitPtr.asFunction)>(); + late final _getrlimitPtr = + _lookup< + ffi.NativeFunction)> + >('getrlimit'); + late final _getrlimit = _getrlimitPtr + .asFunction)>(); - int getrusage( - int arg0, - ffi.Pointer arg1, - ) { - return _getrusage( - arg0, - arg1, - ); + int getrusage(int arg0, ffi.Pointer arg1) { + return _getrusage(arg0, arg1); } - late final _getrusagePtr = _lookup< - ffi.NativeFunction)>>( - 'getrusage'); - late final _getrusage = - _getrusagePtr.asFunction)>(); + late final _getrusagePtr = + _lookup< + ffi.NativeFunction)> + >('getrusage'); + late final _getrusage = _getrusagePtr + .asFunction)>(); - int setpriority( - int arg0, - int arg1, - int arg2, - ) { - return _setpriority( - arg0, - arg1, - arg2, - ); + int setpriority(int arg0, int arg1, int arg2) { + return _setpriority(arg0, arg1, arg2); } late final _setpriorityPtr = _lookup>( - 'setpriority'); - late final _setpriority = - _setpriorityPtr.asFunction(); + 'setpriority', + ); + late final _setpriority = _setpriorityPtr + .asFunction(); - int setiopolicy_np( - int arg0, - int arg1, - int arg2, - ) { - return _setiopolicy_np( - arg0, - arg1, - arg2, - ); + int setiopolicy_np(int arg0, int arg1, int arg2) { + return _setiopolicy_np(arg0, arg1, arg2); } late final _setiopolicy_npPtr = _lookup>( - 'setiopolicy_np'); - late final _setiopolicy_np = - _setiopolicy_npPtr.asFunction(); + 'setiopolicy_np', + ); + late final _setiopolicy_np = _setiopolicy_npPtr + .asFunction(); - int setrlimit( - int arg0, - ffi.Pointer arg1, - ) { - return _setrlimit( - arg0, - arg1, - ); + int setrlimit(int arg0, ffi.Pointer arg1) { + return _setrlimit(arg0, arg1); } - late final _setrlimitPtr = _lookup< - ffi.NativeFunction)>>( - 'setrlimit'); - late final _setrlimit = - _setrlimitPtr.asFunction)>(); + late final _setrlimitPtr = + _lookup< + ffi.NativeFunction)> + >('setrlimit'); + late final _setrlimit = _setrlimitPtr + .asFunction)>(); - int wait$1( - ffi.Pointer arg0, - ) { - return _wait$1( - arg0, - ); + int wait$1(ffi.Pointer arg0) { + return _wait$1(arg0); } late final _wait$1Ptr = _lookup)>>('wait'); - late final _wait$1 = - _wait$1Ptr.asFunction)>(); + late final _wait$1 = _wait$1Ptr + .asFunction)>(); - int waitpid( - int arg0, - ffi.Pointer arg1, - int arg2, - ) { - return _waitpid( - arg0, - arg1, - arg2, - ); + int waitpid(int arg0, ffi.Pointer arg1, int arg2) { + return _waitpid(arg0, arg1, arg2); } - late final _waitpidPtr = _lookup< - ffi.NativeFunction< - pid_t Function(pid_t, ffi.Pointer, ffi.Int)>>('waitpid'); - late final _waitpid = - _waitpidPtr.asFunction, int)>(); + late final _waitpidPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('waitpid'); + late final _waitpid = _waitpidPtr + .asFunction, int)>(); int waitid( idtype_t arg0, @@ -205,39 +158,37 @@ class NativeCupertinoHttp { ffi.Pointer arg2, int arg3, ) { - return _waitid( - arg0.value, - arg1, - arg2, - arg3, - ); + return _waitid(arg0.value, arg1, arg2, arg3); } - late final _waitidPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.UnsignedInt, id_t, ffi.Pointer, - ffi.Int)>>('waitid'); + late final _waitidPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.UnsignedInt, + id_t, + ffi.Pointer, + ffi.Int, + ) + > + >('waitid'); late final _waitid = _waitidPtr .asFunction, int)>(); - int wait3( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) { - return _wait3( - arg0, - arg1, - arg2, - ); + int wait3(ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return _wait3(arg0, arg1, arg2); } - late final _wait3Ptr = _lookup< - ffi.NativeFunction< - pid_t Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('wait3'); - late final _wait3 = _wait3Ptr.asFunction< - int Function(ffi.Pointer, int, ffi.Pointer)>(); + late final _wait3Ptr = + _lookup< + ffi.NativeFunction< + pid_t Function(ffi.Pointer, ffi.Int, ffi.Pointer) + > + >('wait3'); + late final _wait3 = _wait3Ptr + .asFunction< + int Function(ffi.Pointer, int, ffi.Pointer) + >(); int wait4( int arg0, @@ -245,92 +196,80 @@ class NativeCupertinoHttp { int arg2, ffi.Pointer arg3, ) { - return _wait4( - arg0, - arg1, - arg2, - arg3, - ); + return _wait4(arg0, arg1, arg2, arg3); } - late final _wait4Ptr = _lookup< - ffi.NativeFunction< - pid_t Function(pid_t, ffi.Pointer, ffi.Int, - ffi.Pointer)>>('wait4'); - late final _wait4 = _wait4Ptr.asFunction< - int Function(int, ffi.Pointer, int, ffi.Pointer)>(); + late final _wait4Ptr = + _lookup< + ffi.NativeFunction< + pid_t Function( + pid_t, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >('wait4'); + late final _wait4 = _wait4Ptr + .asFunction< + int Function(int, ffi.Pointer, int, ffi.Pointer) + >(); - ffi.Pointer alloca( - int __size, - ) { - return _alloca( - __size, - ); + ffi.Pointer alloca(int __size) { + return _alloca(__size); } late final _allocaPtr = _lookup Function(ffi.Size)>>( - 'alloca'); - late final _alloca = - _allocaPtr.asFunction Function(int)>(); + 'alloca', + ); + late final _alloca = _allocaPtr + .asFunction Function(int)>(); - late final ffi.Pointer ___mb_cur_max = - _lookup('__mb_cur_max'); + late final ffi.Pointer ___mb_cur_max = _lookup( + '__mb_cur_max', + ); int get __mb_cur_max => ___mb_cur_max.value; 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, - ); + 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_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, - ); + 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_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, - ); + 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_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)>(); @@ -339,34 +278,34 @@ class NativeCupertinoHttp { int size, int type_id, ) { - return _malloc_type_realloc( - ptr, - size, - 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)>(); + 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, - ); + 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_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)>(); @@ -375,17 +314,15 @@ class NativeCupertinoHttp { int size, int type_id, ) { - return _malloc_type_aligned_alloc( - alignment, - size, - 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_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)>(); @@ -395,40 +332,47 @@ class NativeCupertinoHttp { int size, int type_id, ) { - return _malloc_type_posix_memalign( - memptr, - alignment, - size, - 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)>(); + 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, - ); + 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)>(); + 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, @@ -436,40 +380,52 @@ class NativeCupertinoHttp { int size, int type_id, ) { - return _malloc_type_zone_calloc( - zone, - count, - size, - 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)>(); + 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, - ); + 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)>(); + 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, @@ -477,44 +433,52 @@ class NativeCupertinoHttp { int size, int type_id, ) { - return _malloc_type_zone_realloc( - zone, - ptr, - size, - 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< + late final _malloc_type_zone_reallocPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int, int)>(); + 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, - ); + 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)>(); + 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, @@ -522,147 +486,129 @@ class NativeCupertinoHttp { int size, int type_id, ) { - return _malloc_type_zone_memalign( - zone, - alignment, - size, - 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< + late final _malloc_type_zone_memalignPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, int, int, int)>(); + 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, - ) { - return _malloc( - __size, - ); + ffi.Pointer malloc(int __size) { + return _malloc(__size); } late final _mallocPtr = _lookup Function(ffi.Size)>>( - 'malloc'); - late final _malloc = - _mallocPtr.asFunction Function(int)>(); + 'malloc', + ); + late final _malloc = _mallocPtr + .asFunction Function(int)>(); - ffi.Pointer calloc( - int __count, - int __size, - ) { - return _calloc( - __count, - __size, - ); + ffi.Pointer calloc(int __count, int __size) { + return _calloc(__count, __size); } - late final _callocPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Size, ffi.Size)>>('calloc'); - late final _calloc = - _callocPtr.asFunction Function(int, int)>(); + late final _callocPtr = + _lookup< + ffi.NativeFunction Function(ffi.Size, ffi.Size)> + >('calloc'); + late final _calloc = _callocPtr + .asFunction Function(int, int)>(); - void free( - ffi.Pointer arg0, - ) { - return _free( - arg0, - ); + void free(ffi.Pointer arg0) { + return _free(arg0); } late final _freePtr = _lookup)>>( - 'free'); - late final _free = - _freePtr.asFunction)>(); + 'free', + ); + late final _free = _freePtr + .asFunction)>(); - ffi.Pointer realloc( - ffi.Pointer __ptr, - int __size, - ) { - return _realloc( - __ptr, - __size, - ); + ffi.Pointer realloc(ffi.Pointer __ptr, int __size) { + return _realloc(__ptr, __size); } - late final _reallocPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Size)>>('realloc'); + late final _reallocPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Size) + > + >('realloc'); late final _realloc = _reallocPtr .asFunction Function(ffi.Pointer, int)>(); - ffi.Pointer reallocf( - ffi.Pointer __ptr, - int __size, - ) { - return _reallocf( - __ptr, - __size, - ); + ffi.Pointer reallocf(ffi.Pointer __ptr, int __size) { + return _reallocf(__ptr, __size); } - late final _reallocfPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Size)>>('reallocf'); + late final _reallocfPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Size) + > + >('reallocf'); late final _reallocf = _reallocfPtr .asFunction Function(ffi.Pointer, int)>(); - ffi.Pointer valloc( - int __size, - ) { - return _valloc( - __size, - ); + ffi.Pointer valloc(int __size) { + return _valloc(__size); } late final _vallocPtr = _lookup Function(ffi.Size)>>( - 'valloc'); - late final _valloc = - _vallocPtr.asFunction Function(int)>(); + 'valloc', + ); + late final _valloc = _vallocPtr + .asFunction Function(int)>(); - ffi.Pointer aligned_alloc( - int __alignment, - int __size, - ) { - return _aligned_alloc( - __alignment, - __size, - ); + ffi.Pointer aligned_alloc(int __alignment, int __size) { + return _aligned_alloc(__alignment, __size); } - late final _aligned_allocPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Size, ffi.Size)>>('aligned_alloc'); - late final _aligned_alloc = - _aligned_allocPtr.asFunction Function(int, int)>(); + late final _aligned_allocPtr = + _lookup< + ffi.NativeFunction Function(ffi.Size, ffi.Size)> + >('aligned_alloc'); + late final _aligned_alloc = _aligned_allocPtr + .asFunction Function(int, int)>(); int posix_memalign( ffi.Pointer> __memptr, int __alignment, int __size, ) { - return _posix_memalign( - __memptr, - __alignment, - __size, - ); + return _posix_memalign(__memptr, __alignment, __size); } - late final _posix_memalignPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer>, ffi.Size, - ffi.Size)>>('posix_memalign'); + late final _posix_memalignPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer>, + ffi.Size, + ffi.Size, + ) + > + >('posix_memalign'); late final _posix_memalign = _posix_memalignPtr .asFunction>, int, int)>(); @@ -670,106 +616,91 @@ class NativeCupertinoHttp { return _abort(); } - late final _abortPtr = - _lookup>('abort'); + late final _abortPtr = _lookup>( + 'abort', + ); late final _abort = _abortPtr.asFunction(); - int abs( - int arg0, - ) { - return _abs( - arg0, - ); + int abs(int arg0) { + return _abs(arg0); } - late final _absPtr = - _lookup>('abs'); + late final _absPtr = _lookup>( + 'abs', + ); late final _abs = _absPtr.asFunction(); - int atexit( - ffi.Pointer> arg0, - ) { - return _atexit( - arg0, - ); + int atexit(ffi.Pointer> arg0) { + return _atexit(arg0); } - late final _atexitPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer>)>>('atexit'); - late final _atexit = _atexitPtr.asFunction< - int Function(ffi.Pointer>)>(); + late final _atexitPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer>) + > + >('atexit'); + late final _atexit = _atexitPtr + .asFunction< + int Function(ffi.Pointer>) + >(); - int at_quick_exit( - ffi.Pointer> arg0, - ) { - return _at_quick_exit( - arg0, - ); + int at_quick_exit(ffi.Pointer> arg0) { + return _at_quick_exit(arg0); } - late final _at_quick_exitPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer>)>>( - 'at_quick_exit'); - late final _at_quick_exit = _at_quick_exitPtr.asFunction< - int Function(ffi.Pointer>)>(); + late final _at_quick_exitPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer>) + > + >('at_quick_exit'); + late final _at_quick_exit = _at_quick_exitPtr + .asFunction< + int Function(ffi.Pointer>) + >(); - double atof( - ffi.Pointer arg0, - ) { - return _atof( - arg0, - ); + double atof(ffi.Pointer arg0) { + return _atof(arg0); } late final _atofPtr = _lookup)>>( - 'atof'); - late final _atof = - _atofPtr.asFunction)>(); + 'atof', + ); + late final _atof = _atofPtr + .asFunction)>(); - int atoi( - ffi.Pointer arg0, - ) { - return _atoi( - arg0, - ); + int atoi(ffi.Pointer arg0) { + return _atoi(arg0); } late final _atoiPtr = _lookup)>>( - 'atoi'); + 'atoi', + ); late final _atoi = _atoiPtr.asFunction)>(); - int atol( - ffi.Pointer arg0, - ) { - return _atol( - arg0, - ); + int atol(ffi.Pointer arg0) { + return _atol(arg0); } late final _atolPtr = _lookup)>>( - 'atol'); + 'atol', + ); late final _atol = _atolPtr.asFunction)>(); - int atoll( - ffi.Pointer arg0, - ) { - return _atoll( - arg0, - ); + int atoll(ffi.Pointer arg0) { + return _atoll(arg0); } late final _atollPtr = _lookup)>>( - 'atoll'); - late final _atoll = - _atollPtr.asFunction)>(); + 'atoll', + ); + late final _atoll = _atollPtr + .asFunction)>(); ffi.Pointer bsearch( ffi.Pointer __key, @@ -777,231 +708,208 @@ class NativeCupertinoHttp { int __nel, int __width, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>> - __compar, + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, ) { - return _bsearch( - __key, - __base, - __nel, - __width, - __compar, - ); + return _bsearch(__key, __base, __nel, __width, __compar); } - late final _bsearchPtr = _lookup< - ffi.NativeFunction< + late final _bsearchPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer)>>)>>('bsearch'); - late final _bsearch = _bsearchPtr.asFunction< - ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) + > + >('bsearch'); + late final _bsearch = _bsearchPtr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>)>(); + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) + >(); - div_t div( - int arg0, - int arg1, - ) { - return _div( - arg0, - arg1, - ); + div_t div(int arg0, int arg1) { + return _div(arg0, arg1); } late final _divPtr = _lookup>('div'); late final _div = _divPtr.asFunction(); - void exit( - int arg0, - ) { - return _exit$1( - arg0, - ); + void exit(int arg0) { + return _exit$1(arg0); } - late final _exitPtr = - _lookup>('exit'); + late final _exitPtr = _lookup>( + 'exit', + ); late final _exit$1 = _exitPtr.asFunction(); - ffi.Pointer getenv( - ffi.Pointer arg0, - ) { - return _getenv( - arg0, - ); + ffi.Pointer getenv(ffi.Pointer arg0) { + return _getenv(arg0); } - late final _getenvPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('getenv'); + late final _getenvPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('getenv'); late final _getenv = _getenvPtr .asFunction Function(ffi.Pointer)>(); - int labs( - int arg0, - ) { - return _labs( - arg0, - ); + int labs(int arg0) { + return _labs(arg0); } late final _labsPtr = _lookup>('labs'); late final _labs = _labsPtr.asFunction(); - ldiv_t ldiv( - int arg0, - int arg1, - ) { - return _ldiv( - arg0, - arg1, - ); + ldiv_t ldiv(int arg0, int arg1) { + return _ldiv(arg0, arg1); } late final _ldivPtr = _lookup>('ldiv'); late final _ldiv = _ldivPtr.asFunction(); - int llabs( - int arg0, - ) { - return _llabs( - arg0, - ); + int llabs(int arg0) { + return _llabs(arg0); } late final _llabsPtr = _lookup>('llabs'); late final _llabs = _llabsPtr.asFunction(); - lldiv_t lldiv( - int arg0, - int arg1, - ) { - return _lldiv( - arg0, - arg1, - ); + lldiv_t lldiv(int arg0, int arg1) { + return _lldiv(arg0, arg1); } late final _lldivPtr = _lookup>( - 'lldiv'); + 'lldiv', + ); late final _lldiv = _lldivPtr.asFunction(); - int mblen( - ffi.Pointer __s, - int __n, - ) { - return _mblen( - __s, - __n, - ); + int mblen(ffi.Pointer __s, int __n) { + return _mblen(__s, __n); } - late final _mblenPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size)>>('mblen'); - late final _mblen = - _mblenPtr.asFunction, int)>(); + late final _mblenPtr = + _lookup< + ffi.NativeFunction, ffi.Size)> + >('mblen'); + late final _mblen = _mblenPtr + .asFunction, int)>(); int mbstowcs( ffi.Pointer arg0, ffi.Pointer arg1, int __n, ) { - return _mbstowcs( - arg0, - arg1, - __n, - ); + return _mbstowcs(arg0, arg1, __n); } - late final _mbstowcsPtr = _lookup< - ffi.NativeFunction< - ffi.Size Function(ffi.Pointer, ffi.Pointer, - ffi.Size)>>('mbstowcs'); - late final _mbstowcs = _mbstowcsPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _mbstowcsPtr = + _lookup< + ffi.NativeFunction< + ffi.Size Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('mbstowcs'); + late final _mbstowcs = _mbstowcsPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); - int mbtowc( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __n, - ) { - return _mbtowc( - arg0, - arg1, - __n, - ); + int mbtowc(ffi.Pointer arg0, ffi.Pointer arg1, int __n) { + return _mbtowc(arg0, arg1, __n); } - late final _mbtowcPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Size)>>('mbtowc'); - late final _mbtowc = _mbtowcPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _mbtowcPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('mbtowc'); + late final _mbtowc = _mbtowcPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); void qsort( ffi.Pointer __base, int __nel, int __width, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>> - __compar, + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, ) { - return _qsort( - __base, - __nel, - __width, - __compar, - ); + return _qsort(__base, __nel, __width, __compar); } - late final _qsortPtr = _lookup< - ffi.NativeFunction< + late final _qsortPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer)>>)>>('qsort'); - late final _qsort = _qsortPtr.asFunction< - void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) + > + >('qsort'); + late final _qsort = _qsortPtr + .asFunction< + void Function( ffi.Pointer, int, int, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>)>(); + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) + >(); - void quick_exit( - int arg0, - ) { - return _quick_exit( - arg0, - ); + void quick_exit(int arg0) { + return _quick_exit(arg0); } late final _quick_exitPtr = @@ -1015,12 +923,8 @@ class NativeCupertinoHttp { late final _randPtr = _lookup>('rand'); late final _rand = _randPtr.asFunction(); - void srand( - int arg0, - ) { - return _srand( - arg0, - ); + void srand(int arg0) { + return _srand(arg0); } late final _srandPtr = @@ -1031,198 +935,228 @@ class NativeCupertinoHttp { ffi.Pointer arg0, ffi.Pointer> arg1, ) { - return _strtod( - arg0, - arg1, - ); + return _strtod(arg0, arg1); } - late final _strtodPtr = _lookup< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, - ffi.Pointer>)>>('strtod'); - late final _strtod = _strtodPtr.asFunction< - double Function( - ffi.Pointer, ffi.Pointer>)>(); + late final _strtodPtr = + _lookup< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + >('strtod'); + late final _strtod = _strtodPtr + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer>, + ) + >(); double strtof( ffi.Pointer arg0, ffi.Pointer> arg1, ) { - return _strtof( - arg0, - arg1, - ); + return _strtof(arg0, arg1); } - late final _strtofPtr = _lookup< - ffi.NativeFunction< - ffi.Float Function(ffi.Pointer, - ffi.Pointer>)>>('strtof'); - late final _strtof = _strtofPtr.asFunction< - double Function( - ffi.Pointer, ffi.Pointer>)>(); + late final _strtofPtr = + _lookup< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + >('strtof'); + late final _strtof = _strtofPtr + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer>, + ) + >(); int strtol( ffi.Pointer __str, ffi.Pointer> __endptr, int __base, ) { - return _strtol( - __str, - __endptr, - __base, - ); + return _strtol(__str, __endptr, __base); } - late final _strtolPtr = _lookup< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer>, ffi.Int)>>('strtol'); - late final _strtol = _strtolPtr.asFunction< - int Function( - ffi.Pointer, ffi.Pointer>, int)>(); + late final _strtolPtr = + _lookup< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) + > + >('strtol'); + late final _strtol = _strtolPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); int strtoll( ffi.Pointer __str, ffi.Pointer> __endptr, int __base, ) { - return _strtoll( - __str, - __endptr, - __base, - ); + return _strtoll(__str, __endptr, __base); } - late final _strtollPtr = _lookup< - ffi.NativeFunction< - ffi.LongLong Function(ffi.Pointer, - ffi.Pointer>, ffi.Int)>>('strtoll'); - late final _strtoll = _strtollPtr.asFunction< - int Function( - ffi.Pointer, ffi.Pointer>, int)>(); + late final _strtollPtr = + _lookup< + ffi.NativeFunction< + ffi.LongLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) + > + >('strtoll'); + late final _strtoll = _strtollPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); int strtoul( ffi.Pointer __str, ffi.Pointer> __endptr, int __base, ) { - return _strtoul( - __str, - __endptr, - __base, - ); + return _strtoul(__str, __endptr, __base); } - late final _strtoulPtr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer>, ffi.Int)>>('strtoul'); - late final _strtoul = _strtoulPtr.asFunction< - int Function( - ffi.Pointer, ffi.Pointer>, int)>(); + late final _strtoulPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) + > + >('strtoul'); + late final _strtoul = _strtoulPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); int strtoull( ffi.Pointer __str, ffi.Pointer> __endptr, int __base, ) { - return _strtoull( - __str, - __endptr, - __base, - ); + return _strtoull(__str, __endptr, __base); } - late final _strtoullPtr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLongLong Function(ffi.Pointer, - ffi.Pointer>, ffi.Int)>>('strtoull'); - late final _strtoull = _strtoullPtr.asFunction< - int Function( - ffi.Pointer, ffi.Pointer>, int)>(); + late final _strtoullPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedLongLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) + > + >('strtoull'); + late final _strtoull = _strtoullPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); - int system( - ffi.Pointer arg0, - ) { - return _system( - arg0, - ); + int system(ffi.Pointer arg0) { + return _system(arg0); } late final _systemPtr = _lookup)>>( - 'system'); - late final _system = - _systemPtr.asFunction)>(); + 'system', + ); + late final _system = _systemPtr + .asFunction)>(); int wcstombs( ffi.Pointer arg0, ffi.Pointer arg1, int __n, ) { - return _wcstombs( - arg0, - arg1, - __n, - ); + return _wcstombs(arg0, arg1, __n); } - late final _wcstombsPtr = _lookup< - ffi.NativeFunction< - ffi.Size Function(ffi.Pointer, ffi.Pointer, - ffi.Size)>>('wcstombs'); - late final _wcstombs = _wcstombsPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _wcstombsPtr = + _lookup< + ffi.NativeFunction< + ffi.Size Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('wcstombs'); + late final _wcstombs = _wcstombsPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); - int wctomb( - ffi.Pointer arg0, - int arg1, - ) { - return _wctomb( - arg0, - arg1, - ); + int wctomb(ffi.Pointer arg0, int arg1) { + return _wctomb(arg0, arg1); } - late final _wctombPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.WChar)>>('wctomb'); - late final _wctomb = - _wctombPtr.asFunction, int)>(); + late final _wctombPtr = + _lookup< + ffi.NativeFunction, ffi.WChar)> + >('wctomb'); + late final _wctomb = _wctombPtr + .asFunction, int)>(); - void _Exit( - int arg0, - ) { - return __Exit( - arg0, - ); + void _Exit(int arg0) { + return __Exit(arg0); } late final __ExitPtr = _lookup>('_Exit'); late final __Exit = __ExitPtr.asFunction(); - int a64l( - ffi.Pointer arg0, - ) { - return _a64l( - arg0, - ); + int a64l(ffi.Pointer arg0) { + return _a64l(arg0); } late final _a64lPtr = _lookup)>>( - 'a64l'); + 'a64l', + ); late final _a64l = _a64lPtr.asFunction)>(); double drand48() { return _drand48(); } - late final _drand48Ptr = - _lookup>('drand48'); + late final _drand48Ptr = _lookup>( + 'drand48', + ); late final _drand48 = _drand48Ptr.asFunction(); ffi.Pointer ecvt( @@ -1231,35 +1165,40 @@ class NativeCupertinoHttp { ffi.Pointer arg2, ffi.Pointer arg3, ) { - return _ecvt( - arg0, - arg1, - arg2, - arg3, - ); + return _ecvt(arg0, arg1, arg2, arg3); } - late final _ecvtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Double, ffi.Int, - ffi.Pointer, ffi.Pointer)>>('ecvt'); - late final _ecvt = _ecvtPtr.asFunction< - ffi.Pointer Function( - double, int, ffi.Pointer, ffi.Pointer)>(); + late final _ecvtPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Double, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + >('ecvt'); + late final _ecvt = _ecvtPtr + .asFunction< + ffi.Pointer Function( + double, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); - double erand48( - ffi.Pointer arg0, - ) { - return _erand48( - arg0, - ); + double erand48(ffi.Pointer arg0) { + return _erand48(arg0); } - late final _erand48Ptr = _lookup< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer)>>('erand48'); - late final _erand48 = - _erand48Ptr.asFunction)>(); + late final _erand48Ptr = + _lookup< + ffi.NativeFunction)> + >('erand48'); + late final _erand48 = _erand48Ptr + .asFunction)>(); ffi.Pointer fcvt( double arg0, @@ -1267,71 +1206,82 @@ class NativeCupertinoHttp { ffi.Pointer arg2, ffi.Pointer arg3, ) { - return _fcvt( - arg0, - arg1, - arg2, - arg3, - ); + return _fcvt(arg0, arg1, arg2, arg3); } - late final _fcvtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Double, ffi.Int, - ffi.Pointer, ffi.Pointer)>>('fcvt'); - late final _fcvt = _fcvtPtr.asFunction< - ffi.Pointer Function( - double, int, ffi.Pointer, ffi.Pointer)>(); + late final _fcvtPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Double, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + >('fcvt'); + late final _fcvt = _fcvtPtr + .asFunction< + ffi.Pointer Function( + double, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); ffi.Pointer gcvt( double arg0, int arg1, ffi.Pointer arg2, ) { - return _gcvt( - arg0, - arg1, - arg2, - ); + return _gcvt(arg0, arg1, arg2); } - late final _gcvtPtr = _lookup< - ffi.NativeFunction< + late final _gcvtPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Double, ffi.Int, ffi.Pointer)>>('gcvt'); - late final _gcvt = _gcvtPtr.asFunction< - ffi.Pointer Function(double, int, ffi.Pointer)>(); + ffi.Double, + ffi.Int, + ffi.Pointer, + ) + > + >('gcvt'); + late final _gcvt = _gcvtPtr + .asFunction< + ffi.Pointer Function(double, int, ffi.Pointer) + >(); int getsubopt( ffi.Pointer> arg0, ffi.Pointer> arg1, ffi.Pointer> arg2, ) { - return _getsubopt( - arg0, - arg1, - arg2, - ); + return _getsubopt(arg0, arg1, arg2); } - late final _getsuboptPtr = _lookup< - ffi.NativeFunction< + late final _getsuboptPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer>)>>('getsubopt'); - late final _getsubopt = _getsuboptPtr.asFunction< - int Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >('getsubopt'); + late final _getsubopt = _getsuboptPtr + .asFunction< + int Function( ffi.Pointer>, ffi.Pointer>, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); - int grantpt( - int arg0, - ) { - return _grantpt( - arg0, - ); + int grantpt(int arg0) { + return _grantpt(arg0); } late final _grantptPtr = @@ -1343,331 +1293,296 @@ class NativeCupertinoHttp { ffi.Pointer arg1, int __size, ) { - return _initstate( - arg0, - arg1, - __size, - ); + return _initstate(arg0, arg1, __size); } - late final _initstatePtr = _lookup< - ffi.NativeFunction< + late final _initstatePtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.UnsignedInt, ffi.Pointer, ffi.Size)>>('initstate'); - late final _initstate = _initstatePtr.asFunction< - ffi.Pointer Function(int, ffi.Pointer, int)>(); + ffi.UnsignedInt, + ffi.Pointer, + ffi.Size, + ) + > + >('initstate'); + late final _initstate = _initstatePtr + .asFunction< + ffi.Pointer Function(int, ffi.Pointer, int) + >(); - int jrand48( - ffi.Pointer arg0, - ) { - return _jrand48( - arg0, - ); + int jrand48(ffi.Pointer arg0) { + return _jrand48(arg0); } - late final _jrand48Ptr = _lookup< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer)>>('jrand48'); - late final _jrand48 = - _jrand48Ptr.asFunction)>(); + late final _jrand48Ptr = + _lookup< + ffi.NativeFunction)> + >('jrand48'); + late final _jrand48 = _jrand48Ptr + .asFunction)>(); - ffi.Pointer l64a( - int arg0, - ) { - return _l64a( - arg0, - ); + ffi.Pointer l64a(int arg0) { + return _l64a(arg0); } late final _l64aPtr = _lookup Function(ffi.Long)>>( - 'l64a'); + 'l64a', + ); late final _l64a = _l64aPtr.asFunction Function(int)>(); - void lcong48( - ffi.Pointer arg0, - ) { - return _lcong48( - arg0, - ); + void lcong48(ffi.Pointer arg0) { + return _lcong48(arg0); } - late final _lcong48Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer)>>('lcong48'); - late final _lcong48 = - _lcong48Ptr.asFunction)>(); + late final _lcong48Ptr = + _lookup< + ffi.NativeFunction)> + >('lcong48'); + late final _lcong48 = _lcong48Ptr + .asFunction)>(); int lrand48() { return _lrand48(); } - late final _lrand48Ptr = - _lookup>('lrand48'); + late final _lrand48Ptr = _lookup>( + 'lrand48', + ); late final _lrand48 = _lrand48Ptr.asFunction(); - ffi.Pointer mktemp( - ffi.Pointer arg0, - ) { - return _mktemp( - arg0, - ); + ffi.Pointer mktemp(ffi.Pointer arg0) { + return _mktemp(arg0); } - late final _mktempPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('mktemp'); + late final _mktempPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('mktemp'); late final _mktemp = _mktempPtr .asFunction Function(ffi.Pointer)>(); - int mkstemp( - ffi.Pointer arg0, - ) { - return _mkstemp( - arg0, - ); + int mkstemp(ffi.Pointer arg0) { + return _mkstemp(arg0); } late final _mkstempPtr = _lookup)>>( - 'mkstemp'); - late final _mkstemp = - _mkstempPtr.asFunction)>(); + 'mkstemp', + ); + late final _mkstemp = _mkstempPtr + .asFunction)>(); int mrand48() { return _mrand48(); } - late final _mrand48Ptr = - _lookup>('mrand48'); + late final _mrand48Ptr = _lookup>( + 'mrand48', + ); late final _mrand48 = _mrand48Ptr.asFunction(); - int nrand48( - ffi.Pointer arg0, - ) { - return _nrand48( - arg0, - ); + int nrand48(ffi.Pointer arg0) { + return _nrand48(arg0); } - late final _nrand48Ptr = _lookup< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer)>>('nrand48'); - late final _nrand48 = - _nrand48Ptr.asFunction)>(); + late final _nrand48Ptr = + _lookup< + ffi.NativeFunction)> + >('nrand48'); + late final _nrand48 = _nrand48Ptr + .asFunction)>(); - int posix_openpt( - int arg0, - ) { - return _posix_openpt( - arg0, - ); + int posix_openpt(int arg0) { + return _posix_openpt(arg0); } late final _posix_openptPtr = _lookup>('posix_openpt'); late final _posix_openpt = _posix_openptPtr.asFunction(); - ffi.Pointer ptsname( - int arg0, - ) { - return _ptsname( - arg0, - ); + ffi.Pointer ptsname(int arg0) { + return _ptsname(arg0); } late final _ptsnamePtr = _lookup Function(ffi.Int)>>( - 'ptsname'); - late final _ptsname = - _ptsnamePtr.asFunction Function(int)>(); + 'ptsname', + ); + late final _ptsname = _ptsnamePtr + .asFunction Function(int)>(); - int ptsname_r( - int fildes, - ffi.Pointer buffer, - int buflen, - ) { - return _ptsname_r( - fildes, - buffer, - buflen, - ); + int ptsname_r(int fildes, ffi.Pointer buffer, int buflen) { + return _ptsname_r(fildes, buffer, buflen); } - late final _ptsname_rPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, ffi.Size)>>('ptsname_r'); - late final _ptsname_r = - _ptsname_rPtr.asFunction, int)>(); + late final _ptsname_rPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Size) + > + >('ptsname_r'); + late final _ptsname_r = _ptsname_rPtr + .asFunction, int)>(); - int putenv( - ffi.Pointer arg0, - ) { - return _putenv( - arg0, - ); + int putenv(ffi.Pointer arg0) { + return _putenv(arg0); } late final _putenvPtr = _lookup)>>( - 'putenv'); - late final _putenv = - _putenvPtr.asFunction)>(); + 'putenv', + ); + late final _putenv = _putenvPtr + .asFunction)>(); int random() { return _random(); } - late final _randomPtr = - _lookup>('random'); + late final _randomPtr = _lookup>( + 'random', + ); late final _random = _randomPtr.asFunction(); - int rand_r( - ffi.Pointer arg0, - ) { - return _rand_r( - arg0, - ); + int rand_r(ffi.Pointer arg0) { + return _rand_r(arg0); } - late final _rand_rPtr = _lookup< - ffi.NativeFunction)>>( - 'rand_r'); - late final _rand_r = - _rand_rPtr.asFunction)>(); + late final _rand_rPtr = + _lookup< + ffi.NativeFunction)> + >('rand_r'); + late final _rand_r = _rand_rPtr + .asFunction)>(); ffi.Pointer realpath( ffi.Pointer arg0, ffi.Pointer arg1, ) { - return _realpath( - arg0, - arg1, - ); + return _realpath(arg0, arg1); } - late final _realpathPtr = _lookup< - ffi.NativeFunction< + late final _realpathPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('realpath'); - late final _realpath = _realpathPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('realpath'); + late final _realpath = _realpathPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - ffi.Pointer seed48( - ffi.Pointer arg0, - ) { - return _seed48( - arg0, - ); + ffi.Pointer seed48(ffi.Pointer arg0) { + return _seed48(arg0); } - late final _seed48Ptr = _lookup< - ffi.NativeFunction< + late final _seed48Ptr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer)>>('seed48'); - late final _seed48 = _seed48Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer)>(); + ffi.Pointer, + ) + > + >('seed48'); + late final _seed48 = _seed48Ptr + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); int setenv( ffi.Pointer __name, ffi.Pointer __value, int __overwrite, ) { - return _setenv( - __name, - __value, - __overwrite, - ); + return _setenv(__name, __value, __overwrite); } - late final _setenvPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Int)>>('setenv'); - late final _setenv = _setenvPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _setenvPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('setenv'); + late final _setenv = _setenvPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); - void setkey( - ffi.Pointer arg0, - ) { - return _setkey( - arg0, - ); + void setkey(ffi.Pointer arg0) { + return _setkey(arg0); } late final _setkeyPtr = _lookup)>>( - 'setkey'); - late final _setkey = - _setkeyPtr.asFunction)>(); + 'setkey', + ); + late final _setkey = _setkeyPtr + .asFunction)>(); - ffi.Pointer setstate( - ffi.Pointer arg0, - ) { - return _setstate( - arg0, - ); + ffi.Pointer setstate(ffi.Pointer arg0) { + return _setstate(arg0); } - late final _setstatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('setstate'); + late final _setstatePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('setstate'); late final _setstate = _setstatePtr .asFunction Function(ffi.Pointer)>(); - void srand48( - int arg0, - ) { - return _srand48( - arg0, - ); + void srand48(int arg0) { + return _srand48(arg0); } late final _srand48Ptr = _lookup>('srand48'); late final _srand48 = _srand48Ptr.asFunction(); - void srandom( - int arg0, - ) { - return _srandom( - arg0, - ); + void srandom(int arg0) { + return _srandom(arg0); } late final _srandomPtr = _lookup>( - 'srandom'); + 'srandom', + ); late final _srandom = _srandomPtr.asFunction(); - int unlockpt( - int arg0, - ) { - return _unlockpt( - arg0, - ); + int unlockpt(int arg0) { + return _unlockpt(arg0); } late final _unlockptPtr = _lookup>('unlockpt'); late final _unlockpt = _unlockptPtr.asFunction(); - int unsetenv( - ffi.Pointer arg0, - ) { - return _unsetenv( - arg0, - ); + int unsetenv(ffi.Pointer arg0) { + return _unsetenv(arg0); } late final _unsetenvPtr = _lookup)>>( - 'unsetenv'); - late final _unsetenv = - _unsetenvPtr.asFunction)>(); + 'unsetenv', + ); + late final _unsetenv = _unsetenvPtr + .asFunction)>(); int arc4random() { return _arc4random(); @@ -1677,37 +1592,27 @@ class NativeCupertinoHttp { _lookup>('arc4random'); late final _arc4random = _arc4randomPtr.asFunction(); - void arc4random_addrandom( - ffi.Pointer arg0, - int __datlen, - ) { - return _arc4random_addrandom( - arg0, - __datlen, - ); + void arc4random_addrandom(ffi.Pointer arg0, int __datlen) { + return _arc4random_addrandom(arg0, __datlen); } - late final _arc4random_addrandomPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Int)>>('arc4random_addrandom'); + late final _arc4random_addrandomPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Int) + > + >('arc4random_addrandom'); late final _arc4random_addrandom = _arc4random_addrandomPtr .asFunction, int)>(); - void arc4random_buf( - ffi.Pointer __buf, - int __nbytes, - ) { - return _arc4random_buf( - __buf, - __nbytes, - ); + void arc4random_buf(ffi.Pointer __buf, int __nbytes) { + return _arc4random_buf(__buf, __nbytes); } - late final _arc4random_bufPtr = _lookup< - ffi - .NativeFunction, ffi.Size)>>( - 'arc4random_buf'); + late final _arc4random_bufPtr = + _lookup< + ffi.NativeFunction, ffi.Size)> + >('arc4random_buf'); late final _arc4random_buf = _arc4random_bufPtr .asFunction, int)>(); @@ -1717,36 +1622,30 @@ class NativeCupertinoHttp { late final _arc4random_stirPtr = _lookup>('arc4random_stir'); - late final _arc4random_stir = - _arc4random_stirPtr.asFunction(); + late final _arc4random_stir = _arc4random_stirPtr + .asFunction(); - int arc4random_uniform( - int __upper_bound, - ) { - return _arc4random_uniform( - __upper_bound, - ); + int arc4random_uniform(int __upper_bound) { + return _arc4random_uniform(__upper_bound); } late final _arc4random_uniformPtr = _lookup>( - 'arc4random_uniform'); - late final _arc4random_uniform = - _arc4random_uniformPtr.asFunction(); + 'arc4random_uniform', + ); + late final _arc4random_uniform = _arc4random_uniformPtr + .asFunction(); - int atexit_b( - objc.ObjCBlock arg0, - ) { - return _atexit_b( - arg0.ref.pointer, - ); + int atexit_b(objc.ObjCBlock arg0) { + return _atexit_b(arg0.ref.pointer); } - late final _atexit_bPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer)>>('atexit_b'); - late final _atexit_b = - _atexit_bPtr.asFunction)>(); + late final _atexit_bPtr = + _lookup< + ffi.NativeFunction)> + >('atexit_b'); + late final _atexit_b = _atexit_bPtr + .asFunction)>(); ffi.Pointer bsearch_b( ffi.Pointer __key, @@ -1754,56 +1653,70 @@ class NativeCupertinoHttp { int __nel, int __width, objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer)> - __compar, + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + __compar, ) { - return _bsearch_b( - __key, - __base, - __nel, - __width, - __compar.ref.pointer, - ); + return _bsearch_b(__key, __base, __nel, __width, __compar.ref.pointer); } - late final _bsearch_bPtr = _lookup< - ffi.NativeFunction< + late final _bsearch_bPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer)>>('bsearch_b'); - late final _bsearch_b = _bsearch_bPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) + > + >('bsearch_b'); + late final _bsearch_b = _bsearch_bPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); ffi.Pointer cgetcap( ffi.Pointer arg0, ffi.Pointer arg1, int arg2, ) { - return _cgetcap( - arg0, - arg1, - arg2, - ); + return _cgetcap(arg0, arg1, arg2); } - late final _cgetcapPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>('cgetcap'); - late final _cgetcap = _cgetcapPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + late final _cgetcapPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('cgetcap'); + late final _cgetcap = _cgetcapPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); int cgetclose() { return _cgetclose(); } - late final _cgetclosePtr = - _lookup>('cgetclose'); + late final _cgetclosePtr = _lookup>( + 'cgetclose', + ); late final _cgetclose = _cgetclosePtr.asFunction(); int cgetent( @@ -1811,55 +1724,62 @@ class NativeCupertinoHttp { ffi.Pointer> arg1, ffi.Pointer arg2, ) { - return _cgetent( - arg0, - arg1, - arg2, - ); + return _cgetent(arg0, arg1, arg2); } - late final _cgetentPtr = _lookup< - ffi.NativeFunction< + late final _cgetentPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer)>>('cgetent'); - late final _cgetent = _cgetentPtr.asFunction< - int Function(ffi.Pointer>, - ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ) + > + >('cgetent'); + late final _cgetent = _cgetentPtr + .asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ) + >(); int cgetfirst( ffi.Pointer> arg0, ffi.Pointer> arg1, ) { - return _cgetfirst( - arg0, - arg1, - ); + return _cgetfirst(arg0, arg1); } - late final _cgetfirstPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer>, - ffi.Pointer>)>>('cgetfirst'); - late final _cgetfirst = _cgetfirstPtr.asFunction< - int Function(ffi.Pointer>, - ffi.Pointer>)>(); + late final _cgetfirstPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer>, + ) + > + >('cgetfirst'); + late final _cgetfirst = _cgetfirstPtr + .asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer>, + ) + >(); - int cgetmatch( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _cgetmatch( - arg0, - arg1, - ); + int cgetmatch(ffi.Pointer arg0, ffi.Pointer arg1) { + return _cgetmatch(arg0, arg1); } - late final _cgetmatchPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('cgetmatch'); + late final _cgetmatchPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('cgetmatch'); late final _cgetmatch = _cgetmatchPtr .asFunction, ffi.Pointer)>(); @@ -1867,123 +1787,136 @@ class NativeCupertinoHttp { ffi.Pointer> arg0, ffi.Pointer> arg1, ) { - return _cgetnext( - arg0, - arg1, - ); + return _cgetnext(arg0, arg1); } - late final _cgetnextPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer>, - ffi.Pointer>)>>('cgetnext'); - late final _cgetnext = _cgetnextPtr.asFunction< - int Function(ffi.Pointer>, - ffi.Pointer>)>(); + late final _cgetnextPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer>, + ) + > + >('cgetnext'); + late final _cgetnext = _cgetnextPtr + .asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer>, + ) + >(); int cgetnum( ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ) { - return _cgetnum( - arg0, - arg1, - arg2, - ); + return _cgetnum(arg0, arg1, arg2); } - late final _cgetnumPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('cgetnum'); - late final _cgetnum = _cgetnumPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _cgetnumPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('cgetnum'); + late final _cgetnum = _cgetnumPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); - int cgetset( - ffi.Pointer arg0, - ) { - return _cgetset( - arg0, - ); + int cgetset(ffi.Pointer arg0) { + return _cgetset(arg0); } late final _cgetsetPtr = _lookup)>>( - 'cgetset'); - late final _cgetset = - _cgetsetPtr.asFunction)>(); + 'cgetset', + ); + late final _cgetset = _cgetsetPtr + .asFunction)>(); int cgetstr( ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer> arg2, ) { - return _cgetstr( - arg0, - arg1, - arg2, - ); + return _cgetstr(arg0, arg1, arg2); } - late final _cgetstrPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('cgetstr'); - late final _cgetstr = _cgetstrPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + late final _cgetstrPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('cgetstr'); + late final _cgetstr = _cgetstrPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); int cgetustr( ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer> arg2, ) { - return _cgetustr( - arg0, - arg1, - arg2, - ); + return _cgetustr(arg0, arg1, arg2); } - late final _cgetustrPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('cgetustr'); - late final _cgetustr = _cgetustrPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + late final _cgetustrPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('cgetustr'); + late final _cgetustr = _cgetustrPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); - int daemon( - int arg0, - int arg1, - ) { - return _daemon( - arg0, - arg1, - ); + int daemon(int arg0, int arg1) { + return _daemon(arg0, arg1); } late final _daemonPtr = _lookup>('daemon'); late final _daemon = _daemonPtr.asFunction(); - ffi.Pointer devname( - int arg0, - int arg1, - ) { - return _devname( - arg0, - arg1, - ); + ffi.Pointer devname(int arg0, int arg1) { + return _devname(arg0, arg1); } - late final _devnamePtr = _lookup< - ffi.NativeFunction Function(dev_t, mode_t)>>( - 'devname'); - late final _devname = - _devnamePtr.asFunction Function(int, int)>(); + late final _devnamePtr = + _lookup< + ffi.NativeFunction Function(dev_t, mode_t)> + >('devname'); + late final _devname = _devnamePtr + .asFunction Function(int, int)>(); ffi.Pointer devname_r( int arg0, @@ -1991,54 +1924,59 @@ class NativeCupertinoHttp { ffi.Pointer buf, int len, ) { - return _devname_r( - arg0, - arg1, - buf, - len, - ); + return _devname_r(arg0, arg1, buf, len); } - late final _devname_rPtr = _lookup< - ffi.NativeFunction< + late final _devname_rPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - dev_t, mode_t, ffi.Pointer, ffi.Int)>>('devname_r'); - late final _devname_r = _devname_rPtr.asFunction< - ffi.Pointer Function(int, int, ffi.Pointer, int)>(); + dev_t, + mode_t, + ffi.Pointer, + ffi.Int, + ) + > + >('devname_r'); + late final _devname_r = _devname_rPtr + .asFunction< + ffi.Pointer Function(int, int, ffi.Pointer, int) + >(); ffi.Pointer getbsize( ffi.Pointer arg0, ffi.Pointer arg1, ) { - return _getbsize( - arg0, - arg1, - ); + return _getbsize(arg0, arg1); } - late final _getbsizePtr = _lookup< - ffi.NativeFunction< + late final _getbsizePtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('getbsize'); - late final _getbsize = _getbsizePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('getbsize'); + late final _getbsize = _getbsizePtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - int getloadavg( - ffi.Pointer arg0, - int __nelem, - ) { - return _getloadavg( - arg0, - __nelem, - ); + int getloadavg(ffi.Pointer arg0, int __nelem) { + return _getloadavg(arg0, __nelem); } - late final _getloadavgPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int)>>('getloadavg'); - late final _getloadavg = - _getloadavgPtr.asFunction, int)>(); + late final _getloadavgPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('getloadavg'); + late final _getloadavg = _getloadavgPtr + .asFunction, int)>(); ffi.Pointer getprogname() { return _getprogname(); @@ -2046,206 +1984,249 @@ class NativeCupertinoHttp { late final _getprognamePtr = _lookup Function()>>( - 'getprogname'); - late final _getprogname = - _getprognamePtr.asFunction Function()>(); + 'getprogname', + ); + late final _getprogname = _getprognamePtr + .asFunction Function()>(); - void setprogname( - ffi.Pointer arg0, - ) { - return _setprogname( - arg0, - ); + void setprogname(ffi.Pointer arg0) { + return _setprogname(arg0); } late final _setprognamePtr = _lookup)>>( - 'setprogname'); - late final _setprogname = - _setprognamePtr.asFunction)>(); + 'setprogname', + ); + late final _setprogname = _setprognamePtr + .asFunction)>(); int heapsort( ffi.Pointer __base, int __nel, int __width, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>> - __compar, + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, ) { - return _heapsort( - __base, - __nel, - __width, - __compar, - ); + return _heapsort(__base, __nel, __width, __compar); } - late final _heapsortPtr = _lookup< - ffi.NativeFunction< + late final _heapsortPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer)>>)>>('heapsort'); - late final _heapsort = _heapsortPtr.asFunction< - int Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) + > + >('heapsort'); + late final _heapsort = _heapsortPtr + .asFunction< + int Function( ffi.Pointer, int, int, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>)>(); + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) + >(); int heapsort_b( ffi.Pointer __base, int __nel, int __width, objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer)> - __compar, + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + __compar, ) { - return _heapsort_b( - __base, - __nel, - __width, - __compar.ref.pointer, - ); + return _heapsort_b(__base, __nel, __width, __compar.ref.pointer); } - late final _heapsort_bPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Size, - ffi.Pointer)>>('heapsort_b'); - late final _heapsort_b = _heapsort_bPtr.asFunction< - int Function( - ffi.Pointer, int, int, ffi.Pointer)>(); + late final _heapsort_bPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) + > + >('heapsort_b'); + late final _heapsort_b = _heapsort_bPtr + .asFunction< + int Function( + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); int mergesort( ffi.Pointer __base, int __nel, int __width, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>> - __compar, + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, ) { - return _mergesort( - __base, - __nel, - __width, - __compar, - ); + return _mergesort(__base, __nel, __width, __compar); } - late final _mergesortPtr = _lookup< - ffi.NativeFunction< + late final _mergesortPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer)>>)>>('mergesort'); - late final _mergesort = _mergesortPtr.asFunction< - int Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) + > + >('mergesort'); + late final _mergesort = _mergesortPtr + .asFunction< + int Function( ffi.Pointer, int, int, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>)>(); + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) + >(); int mergesort_b( ffi.Pointer __base, int __nel, int __width, objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer)> - __compar, + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + __compar, ) { - return _mergesort_b( - __base, - __nel, - __width, - __compar.ref.pointer, - ); + return _mergesort_b(__base, __nel, __width, __compar.ref.pointer); } - late final _mergesort_bPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Size, - ffi.Pointer)>>('mergesort_b'); - late final _mergesort_b = _mergesort_bPtr.asFunction< - int Function( - ffi.Pointer, int, int, ffi.Pointer)>(); + late final _mergesort_bPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) + > + >('mergesort_b'); + late final _mergesort_b = _mergesort_bPtr + .asFunction< + int Function( + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); void psort( ffi.Pointer __base, int __nel, int __width, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>> - __compar, + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, ) { - return _psort( - __base, - __nel, - __width, - __compar, - ); + return _psort(__base, __nel, __width, __compar); } - late final _psortPtr = _lookup< - ffi.NativeFunction< + late final _psortPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer)>>)>>('psort'); - late final _psort = _psortPtr.asFunction< - void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) + > + >('psort'); + late final _psort = _psortPtr + .asFunction< + void Function( ffi.Pointer, int, int, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>)>(); + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) + >(); void psort_b( ffi.Pointer __base, int __nel, int __width, objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer)> - __compar, + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + __compar, ) { - return _psort_b( - __base, - __nel, - __width, - __compar.ref.pointer, - ); + return _psort_b(__base, __nel, __width, __compar.ref.pointer); } - late final _psort_bPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Size, ffi.Size, - ffi.Pointer)>>('psort_b'); - late final _psort_b = _psort_bPtr.asFunction< - void Function( - ffi.Pointer, int, int, ffi.Pointer)>(); + late final _psort_bPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) + > + >('psort_b'); + late final _psort_b = _psort_bPtr + .asFunction< + void Function( + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); void psort_r( ffi.Pointer __base, @@ -2253,67 +2234,90 @@ class NativeCupertinoHttp { int __width, ffi.Pointer arg3, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>> - __compar, - ) { - return _psort_r( - __base, - __nel, - __width, - arg3, - __compar, - ); + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + __compar, + ) { + return _psort_r(__base, __nel, __width, arg3, __compar); } - late final _psort_rPtr = _lookup< - ffi.NativeFunction< + late final _psort_rPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>)>>('psort_r'); - late final _psort_r = _psort_rPtr.asFunction< - void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ) + > + >('psort_r'); + late final _psort_r = _psort_rPtr + .asFunction< + void Function( ffi.Pointer, int, int, ffi.Pointer, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>)>(); + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ) + >(); void qsort_b( ffi.Pointer __base, int __nel, int __width, objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer)> - __compar, + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + __compar, ) { - return _qsort_b( - __base, - __nel, - __width, - __compar.ref.pointer, - ); + return _qsort_b(__base, __nel, __width, __compar.ref.pointer); } - late final _qsort_bPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Size, ffi.Size, - ffi.Pointer)>>('qsort_b'); - late final _qsort_b = _qsort_bPtr.asFunction< - void Function( - ffi.Pointer, int, int, ffi.Pointer)>(); + late final _qsort_bPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) + > + >('qsort_b'); + late final _qsort_b = _qsort_bPtr + .asFunction< + void Function( + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); void qsort_r( ffi.Pointer __base, @@ -2321,43 +2325,57 @@ class NativeCupertinoHttp { int __width, ffi.Pointer arg3, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>> - __compar, - ) { - return _qsort_r( - __base, - __nel, - __width, - arg3, - __compar, - ); - } - - late final _qsort_rPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>)>>('qsort_r'); - late final _qsort_r = _qsort_rPtr.asFunction< - void Function( + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + __compar, + ) { + return _qsort_r(__base, __nel, __width, arg3, __compar); + } + + late final _qsort_rPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ) + > + >('qsort_r'); + late final _qsort_r = _qsort_rPtr + .asFunction< + void Function( ffi.Pointer, int, int, ffi.Pointer, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>)>(); + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ) + >(); int radixsort( ffi.Pointer> __base, @@ -2365,35 +2383,40 @@ class NativeCupertinoHttp { ffi.Pointer __table, int __endbyte, ) { - return _radixsort( - __base, - __nel, - __table, - __endbyte, - ); + return _radixsort(__base, __nel, __table, __endbyte); } - late final _radixsortPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer>, ffi.Int, - ffi.Pointer, ffi.UnsignedInt)>>('radixsort'); - late final _radixsort = _radixsortPtr.asFunction< - int Function(ffi.Pointer>, int, - ffi.Pointer, int)>(); + late final _radixsortPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('radixsort'); + late final _radixsort = _radixsortPtr + .asFunction< + int Function( + ffi.Pointer>, + int, + ffi.Pointer, + int, + ) + >(); - int rpmatch( - ffi.Pointer arg0, - ) { - return _rpmatch( - arg0, - ); + int rpmatch(ffi.Pointer arg0) { + return _rpmatch(arg0); } late final _rpmatchPtr = _lookup)>>( - 'rpmatch'); - late final _rpmatch = - _rpmatchPtr.asFunction)>(); + 'rpmatch', + ); + late final _rpmatch = _rpmatchPtr + .asFunction)>(); int sradixsort( ffi.Pointer> __base, @@ -2401,36 +2424,46 @@ class NativeCupertinoHttp { ffi.Pointer __table, int __endbyte, ) { - return _sradixsort( - __base, - __nel, - __table, - __endbyte, - ); + return _sradixsort(__base, __nel, __table, __endbyte); } - late final _sradixsortPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer>, ffi.Int, - ffi.Pointer, ffi.UnsignedInt)>>('sradixsort'); - late final _sradixsort = _sradixsortPtr.asFunction< - int Function(ffi.Pointer>, int, - ffi.Pointer, int)>(); + late final _sradixsortPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('sradixsort'); + late final _sradixsort = _sradixsortPtr + .asFunction< + int Function( + ffi.Pointer>, + int, + ffi.Pointer, + int, + ) + >(); void sranddev() { return _sranddev(); } - late final _sranddevPtr = - _lookup>('sranddev'); + late final _sranddevPtr = _lookup>( + 'sranddev', + ); late final _sranddev = _sranddevPtr.asFunction(); void srandomdev() { return _srandomdev(); } - late final _srandomdevPtr = - _lookup>('srandomdev'); + late final _srandomdevPtr = _lookup>( + 'srandomdev', + ); late final _srandomdev = _srandomdevPtr.asFunction(); int strtonum( @@ -2439,61 +2472,83 @@ class NativeCupertinoHttp { int __maxval, ffi.Pointer> __errstrp, ) { - return _strtonum( - __numstr, - __minval, - __maxval, - __errstrp, - ); + return _strtonum(__numstr, __minval, __maxval, __errstrp); } - late final _strtonumPtr = _lookup< - ffi.NativeFunction< - ffi.LongLong Function(ffi.Pointer, ffi.LongLong, - ffi.LongLong, ffi.Pointer>)>>('strtonum'); - late final _strtonum = _strtonumPtr.asFunction< - int Function(ffi.Pointer, int, int, - ffi.Pointer>)>(); + late final _strtonumPtr = + _lookup< + ffi.NativeFunction< + ffi.LongLong Function( + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.Pointer>, + ) + > + >('strtonum'); + late final _strtonum = _strtonumPtr + .asFunction< + int Function( + ffi.Pointer, + int, + int, + ffi.Pointer>, + ) + >(); int strtoq( ffi.Pointer __str, ffi.Pointer> __endptr, int __base, ) { - return _strtoq( - __str, - __endptr, - __base, - ); + return _strtoq(__str, __endptr, __base); } - late final _strtoqPtr = _lookup< - ffi.NativeFunction< - ffi.LongLong Function(ffi.Pointer, - ffi.Pointer>, ffi.Int)>>('strtoq'); - late final _strtoq = _strtoqPtr.asFunction< - int Function( - ffi.Pointer, ffi.Pointer>, int)>(); + late final _strtoqPtr = + _lookup< + ffi.NativeFunction< + ffi.LongLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) + > + >('strtoq'); + late final _strtoq = _strtoqPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); int strtouq( ffi.Pointer __str, ffi.Pointer> __endptr, int __base, ) { - return _strtouq( - __str, - __endptr, - __base, - ); + return _strtouq(__str, __endptr, __base); } - late final _strtouqPtr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLongLong Function(ffi.Pointer, - ffi.Pointer>, ffi.Int)>>('strtouq'); - late final _strtouq = _strtouqPtr.asFunction< - int Function( - ffi.Pointer, ffi.Pointer>, int)>(); + late final _strtouqPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedLongLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) + > + >('strtouq'); + late final _strtouq = _strtouqPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); late final ffi.Pointer> _suboptarg = _lookup>('suboptarg'); @@ -2507,168 +2562,153 @@ class NativeCupertinoHttp { ffi.Pointer arg1, int arg2, ) { - return ___darwin_check_fd_set_overflow( - arg0, - arg1, - arg2, - ); + return ___darwin_check_fd_set_overflow(arg0, arg1, arg2); } - late final ___darwin_check_fd_set_overflowPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, - ffi.Int)>>('__darwin_check_fd_set_overflow'); + late final ___darwin_check_fd_set_overflowPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int) + > + >('__darwin_check_fd_set_overflow'); late final ___darwin_check_fd_set_overflow = ___darwin_check_fd_set_overflowPtr .asFunction, int)>(); - ffi.Pointer sel_getName( - ffi.Pointer sel, - ) { - return _sel_getName( - sel, - ); + ffi.Pointer sel_getName(ffi.Pointer sel) { + return _sel_getName(sel); } - late final _sel_getNamePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('sel_getName'); - late final _sel_getName = _sel_getNamePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _sel_getNamePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sel_getName'); + late final _sel_getName = _sel_getNamePtr + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); - ffi.Pointer sel_registerName( - ffi.Pointer str, - ) { - return _sel_registerName( - str, - ); + ffi.Pointer sel_registerName(ffi.Pointer str) { + return _sel_registerName(str); } - late final _sel_registerNamePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('sel_registerName'); - late final _sel_registerName = _sel_registerNamePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _sel_registerNamePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sel_registerName'); + late final _sel_registerName = _sel_registerNamePtr + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); - ffi.Pointer object_getClassName( - objc.ObjCObjectBase? obj, - ) { - return _object_getClassName( - obj?.ref.pointer ?? ffi.nullptr, - ); + ffi.Pointer object_getClassName(objc.ObjCObjectBase? obj) { + return _object_getClassName(obj?.ref.pointer ?? ffi.nullptr); } - late final _object_getClassNamePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('object_getClassName'); - late final _object_getClassName = _object_getClassNamePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _object_getClassNamePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('object_getClassName'); + late final _object_getClassName = _object_getClassNamePtr + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); - ffi.Pointer object_getIndexedIvars( - objc.ObjCObjectBase? obj, - ) { - return _object_getIndexedIvars( - obj?.ref.pointer ?? ffi.nullptr, - ); + ffi.Pointer object_getIndexedIvars(objc.ObjCObjectBase? obj) { + return _object_getIndexedIvars(obj?.ref.pointer ?? ffi.nullptr); } - late final _object_getIndexedIvarsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('object_getIndexedIvars'); - late final _object_getIndexedIvars = _object_getIndexedIvarsPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _object_getIndexedIvarsPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('object_getIndexedIvars'); + late final _object_getIndexedIvars = _object_getIndexedIvarsPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); - bool sel_isMapped( - ffi.Pointer sel, - ) { - return _sel_isMapped( - sel, - ); + bool sel_isMapped(ffi.Pointer sel) { + return _sel_isMapped(sel); } - late final _sel_isMappedPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer)>>('sel_isMapped'); + late final _sel_isMappedPtr = + _lookup< + ffi.NativeFunction)> + >('sel_isMapped'); late final _sel_isMapped = _sel_isMappedPtr .asFunction)>(); - ffi.Pointer sel_getUid( - ffi.Pointer str, - ) { - return _sel_getUid( - str, - ); + ffi.Pointer sel_getUid(ffi.Pointer str) { + return _sel_getUid(str); } - late final _sel_getUidPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('sel_getUid'); - late final _sel_getUid = _sel_getUidPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _sel_getUidPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sel_getUid'); + late final _sel_getUid = _sel_getUidPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); - objc.ObjCObjectBase? objc_retainedObject( - objc_objectptr_t obj, - ) { - return _objc_retainedObject( - obj, - ).address == - 0 + objc.ObjCObjectBase? objc_retainedObject(objc_objectptr_t obj) { + return _objc_retainedObject(obj).address == 0 ? null : objc.ObjCObjectBase( - _objc_retainedObject( - obj, - ), + _objc_retainedObject(obj), retain: true, - release: true); + release: true, + ); } - late final _objc_retainedObjectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - objc_objectptr_t)>>('objc_retainedObject'); + late final _objc_retainedObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(objc_objectptr_t) + > + >('objc_retainedObject'); late final _objc_retainedObject = _objc_retainedObjectPtr .asFunction Function(objc_objectptr_t)>(); - objc.ObjCObjectBase? objc_unretainedObject( - objc_objectptr_t obj, - ) { - return _objc_unretainedObject( - obj, - ).address == - 0 + objc.ObjCObjectBase? objc_unretainedObject(objc_objectptr_t obj) { + return _objc_unretainedObject(obj).address == 0 ? null : objc.ObjCObjectBase( - _objc_unretainedObject( - obj, - ), + _objc_unretainedObject(obj), retain: true, - release: true); + release: true, + ); } - late final _objc_unretainedObjectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - objc_objectptr_t)>>('objc_unretainedObject'); + late final _objc_unretainedObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(objc_objectptr_t) + > + >('objc_unretainedObject'); late final _objc_unretainedObject = _objc_unretainedObjectPtr .asFunction Function(objc_objectptr_t)>(); - objc_objectptr_t objc_unretainedPointer( - objc.ObjCObjectBase? obj, - ) { - return _objc_unretainedPointer( - obj?.ref.pointer ?? ffi.nullptr, - ); + objc_objectptr_t objc_unretainedPointer(objc.ObjCObjectBase? obj) { + return _objc_unretainedPointer(obj?.ref.pointer ?? ffi.nullptr); } - late final _objc_unretainedPointerPtr = _lookup< - ffi.NativeFunction< - objc_objectptr_t Function( - ffi.Pointer)>>('objc_unretainedPointer'); + late final _objc_unretainedPointerPtr = + _lookup< + ffi.NativeFunction< + objc_objectptr_t Function(ffi.Pointer) + > + >('objc_unretainedPointer'); late final _objc_unretainedPointer = _objc_unretainedPointerPtr .asFunction)>(); @@ -2680,240 +2720,236 @@ class NativeCupertinoHttp { set NSFoundationVersionNumber(double value) => _NSFoundationVersionNumber.value = value; - objc.NSString NSStringFromSelector( - ffi.Pointer aSelector, - ) { + objc.NSString NSStringFromSelector(ffi.Pointer aSelector) { return objc.NSString.castFromPointer( - _NSStringFromSelector( - aSelector, - ), - retain: true, - release: true); + _NSStringFromSelector(aSelector), + retain: true, + release: true, + ); } - late final _NSStringFromSelectorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSStringFromSelector'); - late final _NSStringFromSelector = _NSStringFromSelectorPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _NSStringFromSelectorPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('NSStringFromSelector'); + late final _NSStringFromSelector = + _NSStringFromSelectorPtr.asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); ffi.Pointer NSSelectorFromString( objc.NSString aSelectorName, ) { - return _NSSelectorFromString( - aSelectorName.ref.pointer, - ); + return _NSSelectorFromString(aSelectorName.ref.pointer); } - late final _NSSelectorFromStringPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSSelectorFromString'); - late final _NSSelectorFromString = _NSSelectorFromStringPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); - - objc.NSString NSStringFromClass( - objc.ObjCObjectBase aClass, - ) { + late final _NSSelectorFromStringPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('NSSelectorFromString'); + late final _NSSelectorFromString = + _NSSelectorFromStringPtr.asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); + + objc.NSString NSStringFromClass(objc.ObjCObjectBase aClass) { return objc.NSString.castFromPointer( - _NSStringFromClass( - aClass.ref.pointer, - ), - retain: true, - release: true); + _NSStringFromClass(aClass.ref.pointer), + retain: true, + release: true, + ); } - late final _NSStringFromClassPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSStringFromClass'); - late final _NSStringFromClass = _NSStringFromClassPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); - - objc.ObjCObjectBase? NSClassFromString( - objc.NSString aClassName, - ) { - return _NSClassFromString( - aClassName.ref.pointer, - ).address == - 0 + late final _NSStringFromClassPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('NSStringFromClass'); + late final _NSStringFromClass = + _NSStringFromClassPtr.asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); + + objc.ObjCObjectBase? NSClassFromString(objc.NSString aClassName) { + return _NSClassFromString(aClassName.ref.pointer).address == 0 ? null : objc.ObjCObjectBase( - _NSClassFromString( - aClassName.ref.pointer, - ), + _NSClassFromString(aClassName.ref.pointer), retain: true, - release: true); + release: true, + ); } - late final _NSClassFromStringPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSClassFromString'); - late final _NSClassFromString = _NSClassFromStringPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); - - objc.NSString NSStringFromProtocol( - objc.Protocol proto, - ) { + late final _NSClassFromStringPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('NSClassFromString'); + late final _NSClassFromString = + _NSClassFromStringPtr.asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); + + objc.NSString NSStringFromProtocol(objc.Protocol proto) { return objc.NSString.castFromPointer( - _NSStringFromProtocol( - proto.ref.pointer, - ), - retain: true, - release: true); + _NSStringFromProtocol(proto.ref.pointer), + retain: true, + release: true, + ); } - late final _NSStringFromProtocolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSStringFromProtocol'); - late final _NSStringFromProtocol = _NSStringFromProtocolPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); - - objc.Protocol? NSProtocolFromString( - objc.NSString namestr, - ) { - return _NSProtocolFromString( - namestr.ref.pointer, - ).address == - 0 + late final _NSStringFromProtocolPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('NSStringFromProtocol'); + late final _NSStringFromProtocol = + _NSStringFromProtocolPtr.asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); + + objc.Protocol? NSProtocolFromString(objc.NSString namestr) { + return _NSProtocolFromString(namestr.ref.pointer).address == 0 ? null : objc.Protocol.castFromPointer( - _NSProtocolFromString( - namestr.ref.pointer, - ), + _NSProtocolFromString(namestr.ref.pointer), retain: true, - release: true); + release: true, + ); } - late final _NSProtocolFromStringPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSProtocolFromString'); - late final _NSProtocolFromString = _NSProtocolFromStringPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _NSProtocolFromStringPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('NSProtocolFromString'); + late final _NSProtocolFromString = + _NSProtocolFromStringPtr.asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); ffi.Pointer NSGetSizeAndAlignment( ffi.Pointer typePtr, ffi.Pointer sizep, ffi.Pointer alignp, ) { - return _NSGetSizeAndAlignment( - typePtr, - sizep, - alignp, - ); + return _NSGetSizeAndAlignment(typePtr, sizep, alignp); } - late final _NSGetSizeAndAlignmentPtr = _lookup< - ffi.NativeFunction< + late final _NSGetSizeAndAlignmentPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('NSGetSizeAndAlignment'); - late final _NSGetSizeAndAlignment = _NSGetSizeAndAlignmentPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('NSGetSizeAndAlignment'); + late final _NSGetSizeAndAlignment = + _NSGetSizeAndAlignmentPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); - void NSLog( - objc.NSString format, - ) { - return _NSLog( - format.ref.pointer, - ); + void NSLog(objc.NSString format) { + return _NSLog(format.ref.pointer); } - late final _NSLogPtr = _lookup< - ffi.NativeFunction)>>( - 'NSLog'); + late final _NSLogPtr = + _lookup< + ffi.NativeFunction)> + >('NSLog'); late final _NSLog = _NSLogPtr.asFunction)>(); - void NSLogv( - objc.NSString format, - va_list args, - ) { - return _NSLogv( - format.ref.pointer, - args, - ); + void NSLogv(objc.NSString format, va_list args) { + return _NSLogv(format.ref.pointer, args); } - late final _NSLogvPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, va_list)>>('NSLogv'); - late final _NSLogv = _NSLogvPtr.asFunction< - void Function(ffi.Pointer, va_list)>(); - - late final ffi.Pointer _NSNotFound = - _lookup('NSNotFound'); + late final _NSLogvPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, va_list) + > + >('NSLogv'); + late final _NSLogv = + _NSLogvPtr.asFunction< + void Function(ffi.Pointer, va_list) + >(); + + late final ffi.Pointer _NSNotFound = _lookup( + 'NSNotFound', + ); DartNSInteger get NSNotFound => _NSNotFound.value; - ffi.Pointer _Block_copy( - ffi.Pointer aBlock, - ) { - return __Block_copy( - aBlock, - ); + ffi.Pointer _Block_copy(ffi.Pointer aBlock) { + return __Block_copy(aBlock); } - late final __Block_copyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('_Block_copy'); + late final __Block_copyPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('_Block_copy'); late final __Block_copy = __Block_copyPtr .asFunction Function(ffi.Pointer)>(); - void _Block_release( - ffi.Pointer aBlock, - ) { - return __Block_release( - aBlock, - ); + void _Block_release(ffi.Pointer aBlock) { + return __Block_release(aBlock); } late final __Block_releasePtr = _lookup)>>( - '_Block_release'); - late final __Block_release = - __Block_releasePtr.asFunction)>(); + '_Block_release', + ); + late final __Block_release = __Block_releasePtr + .asFunction)>(); void _Block_object_assign( ffi.Pointer arg0, ffi.Pointer arg1, int arg2, ) { - return __Block_object_assign( - arg0, - arg1, - arg2, - ); + return __Block_object_assign(arg0, arg1, arg2); } - late final __Block_object_assignPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int)>>('_Block_object_assign'); - late final __Block_object_assign = __Block_object_assignPtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final __Block_object_assignPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('_Block_object_assign'); + late final __Block_object_assign = __Block_object_assignPtr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); - void _Block_object_dispose( - ffi.Pointer arg0, - int arg1, - ) { - return __Block_object_dispose( - arg0, - arg1, - ); + void _Block_object_dispose(ffi.Pointer arg0, int arg1) { + return __Block_object_dispose(arg0, arg1); } - late final __Block_object_disposePtr = _lookup< - ffi - .NativeFunction, ffi.Int)>>( - '_Block_object_dispose'); + late final __Block_object_disposePtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('_Block_object_dispose'); late final __Block_object_dispose = __Block_object_disposePtr .asFunction, int)>(); @@ -2933,21 +2969,19 @@ class NativeCupertinoHttp { return _Debugger(); } - late final _DebuggerPtr = - _lookup>('Debugger'); + late final _DebuggerPtr = _lookup>( + 'Debugger', + ); late final _Debugger = _DebuggerPtr.asFunction(); - void DebugStr( - ConstStr255Param debuggerMsg, - ) { - return _DebugStr( - debuggerMsg, - ); + void DebugStr(ConstStr255Param debuggerMsg) { + return _DebugStr(debuggerMsg); } late final _DebugStrPtr = _lookup>( - 'DebugStr'); + 'DebugStr', + ); late final _DebugStr = _DebugStrPtr.asFunction(); @@ -2955,35 +2989,30 @@ class NativeCupertinoHttp { return _SysBreak(); } - late final _SysBreakPtr = - _lookup>('SysBreak'); + late final _SysBreakPtr = _lookup>( + 'SysBreak', + ); late final _SysBreak = _SysBreakPtr.asFunction(); - void SysBreakStr( - ConstStr255Param debuggerMsg, - ) { - return _SysBreakStr( - debuggerMsg, - ); + void SysBreakStr(ConstStr255Param debuggerMsg) { + return _SysBreakStr(debuggerMsg); } late final _SysBreakStrPtr = _lookup>( - 'SysBreakStr'); + 'SysBreakStr', + ); late final _SysBreakStr = _SysBreakStrPtr.asFunction(); - void SysBreakFunc( - ConstStr255Param debuggerMsg, - ) { - return _SysBreakFunc( - debuggerMsg, - ); + void SysBreakFunc(ConstStr255Param debuggerMsg) { + return _SysBreakFunc(debuggerMsg); } late final _SysBreakFuncPtr = _lookup>( - 'SysBreakFunc'); + 'SysBreakFunc', + ); late final _SysBreakFunc = _SysBreakFuncPtr.asFunction(); @@ -2996,26 +3025,22 @@ class NativeCupertinoHttp { set kCFCoreFoundationVersionNumber(double value) => _kCFCoreFoundationVersionNumber.value = value; - late final ffi.Pointer _kCFNotFound = - _lookup('kCFNotFound'); + late final ffi.Pointer _kCFNotFound = _lookup( + 'kCFNotFound', + ); DartCFIndex get kCFNotFound => _kCFNotFound.value; - CFRange __CFRangeMake( - int loc, - int len, - ) { - return ___CFRangeMake( - loc, - len, - ); + CFRange __CFRangeMake(int loc, int len) { + return ___CFRangeMake(loc, len); } late final ___CFRangeMakePtr = _lookup>( - '__CFRangeMake'); - late final ___CFRangeMake = - ___CFRangeMakePtr.asFunction(); + '__CFRangeMake', + ); + late final ___CFRangeMake = ___CFRangeMakePtr + .asFunction(); int CFNullGetTypeID() { return _CFNullGetTypeID(); @@ -3070,17 +3095,14 @@ class NativeCupertinoHttp { late final _CFAllocatorGetTypeID = _CFAllocatorGetTypeIDPtr.asFunction(); - void CFAllocatorSetDefault( - CFAllocatorRef allocator, - ) { - return _CFAllocatorSetDefault( - allocator, - ); + void CFAllocatorSetDefault(CFAllocatorRef allocator) { + return _CFAllocatorSetDefault(allocator); } late final _CFAllocatorSetDefaultPtr = _lookup>( - 'CFAllocatorSetDefault'); + 'CFAllocatorSetDefault', + ); late final _CFAllocatorSetDefault = _CFAllocatorSetDefaultPtr.asFunction(); @@ -3090,7 +3112,8 @@ class NativeCupertinoHttp { late final _CFAllocatorGetDefaultPtr = _lookup>( - 'CFAllocatorGetDefault'); + 'CFAllocatorGetDefault', + ); late final _CFAllocatorGetDefault = _CFAllocatorGetDefaultPtr.asFunction(); @@ -3098,19 +3121,22 @@ class NativeCupertinoHttp { CFAllocatorRef allocator, ffi.Pointer context, ) { - return _CFAllocatorCreate( - allocator, - context, - ); + return _CFAllocatorCreate(allocator, context); } - late final _CFAllocatorCreatePtr = _lookup< - ffi.NativeFunction< - CFAllocatorRef Function(CFAllocatorRef, - ffi.Pointer)>>('CFAllocatorCreate'); - late final _CFAllocatorCreate = _CFAllocatorCreatePtr.asFunction< - CFAllocatorRef Function( - CFAllocatorRef, ffi.Pointer)>(); + late final _CFAllocatorCreatePtr = + _lookup< + ffi.NativeFunction< + CFAllocatorRef Function( + CFAllocatorRef, + ffi.Pointer, + ) + > + >('CFAllocatorCreate'); + late final _CFAllocatorCreate = + _CFAllocatorCreatePtr.asFunction< + CFAllocatorRef Function(CFAllocatorRef, ffi.Pointer) + >(); ffi.Pointer CFAllocatorAllocateTyped( CFAllocatorRef allocator, @@ -3118,21 +3144,24 @@ class NativeCupertinoHttp { int descriptor, int hint, ) { - return _CFAllocatorAllocateTyped( - allocator, - size, - descriptor, - hint, - ); + return _CFAllocatorAllocateTyped(allocator, size, descriptor, hint); } - late final _CFAllocatorAllocateTypedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CFAllocatorRef, CFIndex, - CFAllocatorTypeID, CFOptionFlags)>>('CFAllocatorAllocateTyped'); + late final _CFAllocatorAllocateTypedPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CFAllocatorRef, + CFIndex, + CFAllocatorTypeID, + CFOptionFlags, + ) + > + >('CFAllocatorAllocateTyped'); late final _CFAllocatorAllocateTyped = _CFAllocatorAllocateTypedPtr.asFunction< - ffi.Pointer Function(CFAllocatorRef, int, int, int)>(); + ffi.Pointer Function(CFAllocatorRef, int, int, int) + >(); ffi.Pointer CFAllocatorReallocateTyped( CFAllocatorRef allocator, @@ -3150,37 +3179,47 @@ class NativeCupertinoHttp { ); } - late final _CFAllocatorReallocateTypedPtr = _lookup< - ffi.NativeFunction< + late final _CFAllocatorReallocateTypedPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFAllocatorTypeID, - CFOptionFlags)>>('CFAllocatorReallocateTyped'); + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFAllocatorTypeID, + CFOptionFlags, + ) + > + >('CFAllocatorReallocateTyped'); late final _CFAllocatorReallocateTyped = _CFAllocatorReallocateTypedPtr.asFunction< - ffi.Pointer Function( - CFAllocatorRef, ffi.Pointer, int, int, int)>(); + ffi.Pointer Function( + CFAllocatorRef, + ffi.Pointer, + int, + int, + int, + ) + >(); ffi.Pointer CFAllocatorAllocateBytes( CFAllocatorRef allocator, int size, int hint, ) { - return _CFAllocatorAllocateBytes( - allocator, - size, - hint, - ); + return _CFAllocatorAllocateBytes(allocator, size, hint); } - late final _CFAllocatorAllocateBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CFAllocatorRef, CFIndex, - CFOptionFlags)>>('CFAllocatorAllocateBytes'); - late final _CFAllocatorAllocateBytes = _CFAllocatorAllocateBytesPtr - .asFunction Function(CFAllocatorRef, int, int)>(); + late final _CFAllocatorAllocateBytesPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CFAllocatorRef, CFIndex, CFOptionFlags) + > + >('CFAllocatorAllocateBytes'); + late final _CFAllocatorAllocateBytes = + _CFAllocatorAllocateBytesPtr.asFunction< + ffi.Pointer Function(CFAllocatorRef, int, int) + >(); ffi.Pointer CFAllocatorReallocateBytes( CFAllocatorRef allocator, @@ -3188,41 +3227,48 @@ class NativeCupertinoHttp { int newsize, int hint, ) { - return _CFAllocatorReallocateBytes( - allocator, - ptr, - newsize, - hint, - ); + return _CFAllocatorReallocateBytes(allocator, ptr, newsize, hint); } - late final _CFAllocatorReallocateBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CFAllocatorRef, ffi.Pointer, - CFIndex, CFOptionFlags)>>('CFAllocatorReallocateBytes'); + late final _CFAllocatorReallocateBytesPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFOptionFlags, + ) + > + >('CFAllocatorReallocateBytes'); late final _CFAllocatorReallocateBytes = _CFAllocatorReallocateBytesPtr.asFunction< - ffi.Pointer Function( - CFAllocatorRef, ffi.Pointer, int, int)>(); + ffi.Pointer Function( + CFAllocatorRef, + ffi.Pointer, + int, + int, + ) + >(); ffi.Pointer CFAllocatorAllocate( CFAllocatorRef allocator, int size, int hint, ) { - return _CFAllocatorAllocate( - allocator, - size, - hint, - ); + return _CFAllocatorAllocate(allocator, size, hint); } - late final _CFAllocatorAllocatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef, CFIndex, CFOptionFlags)>>('CFAllocatorAllocate'); - late final _CFAllocatorAllocate = _CFAllocatorAllocatePtr.asFunction< - ffi.Pointer Function(CFAllocatorRef, int, int)>(); + late final _CFAllocatorAllocatePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CFAllocatorRef, CFIndex, CFOptionFlags) + > + >('CFAllocatorAllocate'); + late final _CFAllocatorAllocate = + _CFAllocatorAllocatePtr.asFunction< + ffi.Pointer Function(CFAllocatorRef, int, int) + >(); ffi.Pointer CFAllocatorReallocate( CFAllocatorRef allocator, @@ -3230,82 +3276,87 @@ class NativeCupertinoHttp { int newsize, int hint, ) { - return _CFAllocatorReallocate( - allocator, - ptr, - newsize, - hint, - ); + return _CFAllocatorReallocate(allocator, ptr, newsize, hint); } - late final _CFAllocatorReallocatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CFAllocatorRef, ffi.Pointer, - CFIndex, CFOptionFlags)>>('CFAllocatorReallocate'); - late final _CFAllocatorReallocate = _CFAllocatorReallocatePtr.asFunction< - ffi.Pointer Function( - CFAllocatorRef, ffi.Pointer, int, int)>(); + late final _CFAllocatorReallocatePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFOptionFlags, + ) + > + >('CFAllocatorReallocate'); + late final _CFAllocatorReallocate = + _CFAllocatorReallocatePtr.asFunction< + ffi.Pointer Function( + CFAllocatorRef, + ffi.Pointer, + int, + int, + ) + >(); void CFAllocatorDeallocate( CFAllocatorRef allocator, ffi.Pointer ptr, ) { - return _CFAllocatorDeallocate( - allocator, - ptr, - ); + return _CFAllocatorDeallocate(allocator, ptr); } - late final _CFAllocatorDeallocatePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFAllocatorRef, ffi.Pointer)>>('CFAllocatorDeallocate'); - late final _CFAllocatorDeallocate = _CFAllocatorDeallocatePtr.asFunction< - void Function(CFAllocatorRef, ffi.Pointer)>(); + late final _CFAllocatorDeallocatePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef, ffi.Pointer) + > + >('CFAllocatorDeallocate'); + late final _CFAllocatorDeallocate = + _CFAllocatorDeallocatePtr.asFunction< + void Function(CFAllocatorRef, ffi.Pointer) + >(); int CFAllocatorGetPreferredSizeForSize( CFAllocatorRef allocator, int size, int hint, ) { - return _CFAllocatorGetPreferredSizeForSize( - allocator, - size, - hint, - ); + return _CFAllocatorGetPreferredSizeForSize(allocator, size, hint); } - late final _CFAllocatorGetPreferredSizeForSizePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFAllocatorRef, CFIndex, - CFOptionFlags)>>('CFAllocatorGetPreferredSizeForSize'); + late final _CFAllocatorGetPreferredSizeForSizePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFAllocatorRef, CFIndex, CFOptionFlags) + > + >('CFAllocatorGetPreferredSizeForSize'); late final _CFAllocatorGetPreferredSizeForSize = _CFAllocatorGetPreferredSizeForSizePtr.asFunction< - int Function(CFAllocatorRef, int, int)>(); + int Function(CFAllocatorRef, int, int) + >(); void CFAllocatorGetContext( CFAllocatorRef allocator, ffi.Pointer context, ) { - return _CFAllocatorGetContext( - allocator, - context, - ); + return _CFAllocatorGetContext(allocator, context); } - late final _CFAllocatorGetContextPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFAllocatorRef, - ffi.Pointer)>>('CFAllocatorGetContext'); - late final _CFAllocatorGetContext = _CFAllocatorGetContextPtr.asFunction< - void Function(CFAllocatorRef, ffi.Pointer)>(); + late final _CFAllocatorGetContextPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef, ffi.Pointer) + > + >('CFAllocatorGetContext'); + late final _CFAllocatorGetContext = + _CFAllocatorGetContextPtr.asFunction< + void Function(CFAllocatorRef, ffi.Pointer) + >(); - int CFGetTypeID( - CFTypeRef cf, - ) { - return _CFGetTypeID( - cf, - ); + int CFGetTypeID(CFTypeRef cf) { + return _CFGetTypeID(cf); } late final _CFGetTypeIDPtr = @@ -3313,26 +3364,19 @@ class NativeCupertinoHttp { late final _CFGetTypeID = _CFGetTypeIDPtr.asFunction(); - CFStringRef CFCopyTypeIDDescription( - int type_id, - ) { - return _CFCopyTypeIDDescription( - type_id, - ); + CFStringRef CFCopyTypeIDDescription(int type_id) { + return _CFCopyTypeIDDescription(type_id); } late final _CFCopyTypeIDDescriptionPtr = _lookup>( - 'CFCopyTypeIDDescription'); + 'CFCopyTypeIDDescription', + ); late final _CFCopyTypeIDDescription = _CFCopyTypeIDDescriptionPtr.asFunction(); - CFTypeRef CFRetain( - CFTypeRef cf, - ) { - return _CFRetain( - cf, - ); + CFTypeRef CFRetain(CFTypeRef cf) { + return _CFRetain(cf); } late final _CFRetainPtr = @@ -3340,113 +3384,85 @@ class NativeCupertinoHttp { late final _CFRetain = _CFRetainPtr.asFunction(); - void CFRelease( - CFTypeRef cf, - ) { - return _CFRelease( - cf, - ); + void CFRelease(CFTypeRef cf) { + return _CFRelease(cf); } late final _CFReleasePtr = _lookup>('CFRelease'); late final _CFRelease = _CFReleasePtr.asFunction(); - CFTypeRef CFAutorelease( - CFTypeRef arg, - ) { - return _CFAutorelease( - arg, - ); + CFTypeRef CFAutorelease(CFTypeRef arg) { + return _CFAutorelease(arg); } late final _CFAutoreleasePtr = _lookup>( - 'CFAutorelease'); + 'CFAutorelease', + ); late final _CFAutorelease = _CFAutoreleasePtr.asFunction(); - int CFGetRetainCount( - CFTypeRef cf, - ) { - return _CFGetRetainCount( - cf, - ); + int CFGetRetainCount(CFTypeRef cf) { + return _CFGetRetainCount(cf); } late final _CFGetRetainCountPtr = _lookup>( - 'CFGetRetainCount'); + 'CFGetRetainCount', + ); late final _CFGetRetainCount = _CFGetRetainCountPtr.asFunction(); - int CFEqual( - CFTypeRef cf1, - CFTypeRef cf2, - ) { - return _CFEqual( - cf1, - cf2, - ); + int CFEqual(CFTypeRef cf1, CFTypeRef cf2) { + return _CFEqual(cf1, cf2); } late final _CFEqualPtr = _lookup>( - 'CFEqual'); + 'CFEqual', + ); late final _CFEqual = _CFEqualPtr.asFunction(); - int CFHash( - CFTypeRef cf, - ) { - return _CFHash( - cf, - ); + int CFHash(CFTypeRef cf) { + return _CFHash(cf); } late final _CFHashPtr = _lookup>('CFHash'); late final _CFHash = _CFHashPtr.asFunction(); - CFStringRef CFCopyDescription( - CFTypeRef cf, - ) { - return _CFCopyDescription( - cf, - ); + CFStringRef CFCopyDescription(CFTypeRef cf) { + return _CFCopyDescription(cf); } late final _CFCopyDescriptionPtr = _lookup>( - 'CFCopyDescription'); + 'CFCopyDescription', + ); late final _CFCopyDescription = _CFCopyDescriptionPtr.asFunction(); - CFAllocatorRef CFGetAllocator( - CFTypeRef cf, - ) { - return _CFGetAllocator( - cf, - ); + CFAllocatorRef CFGetAllocator(CFTypeRef cf) { + return _CFGetAllocator(cf); } late final _CFGetAllocatorPtr = _lookup>( - 'CFGetAllocator'); + 'CFGetAllocator', + ); late final _CFGetAllocator = _CFGetAllocatorPtr.asFunction(); - CFTypeRef CFMakeCollectable( - CFTypeRef cf, - ) { - return _CFMakeCollectable( - cf, - ); + CFTypeRef CFMakeCollectable(CFTypeRef cf) { + return _CFMakeCollectable(cf); } late final _CFMakeCollectablePtr = _lookup>( - 'CFMakeCollectable'); + 'CFMakeCollectable', + ); late final _CFMakeCollectable = _CFMakeCollectablePtr.asFunction(); @@ -3456,7 +3472,8 @@ class NativeCupertinoHttp { late final _NSDefaultMallocZonePtr = _lookup Function()>>( - 'NSDefaultMallocZone'); + 'NSDefaultMallocZone', + ); late final _NSDefaultMallocZone = _NSDefaultMallocZonePtr.asFunction Function()>(); @@ -3465,192 +3482,195 @@ class NativeCupertinoHttp { int granularity, bool canFree, ) { - return _NSCreateZone( - startSize, - granularity, - canFree, - ); + return _NSCreateZone(startSize, granularity, canFree); } - late final _NSCreateZonePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - NSUInteger, NSUInteger, ffi.Bool)>>('NSCreateZone'); - late final _NSCreateZone = _NSCreateZonePtr.asFunction< - ffi.Pointer Function(int, int, bool)>(); + late final _NSCreateZonePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(NSUInteger, NSUInteger, ffi.Bool) + > + >('NSCreateZone'); + late final _NSCreateZone = + _NSCreateZonePtr.asFunction< + ffi.Pointer Function(int, int, bool) + >(); - void NSRecycleZone( - ffi.Pointer zone, - ) { - return _NSRecycleZone( - zone, - ); + void NSRecycleZone(ffi.Pointer zone) { + return _NSRecycleZone(zone); } late final _NSRecycleZonePtr = _lookup)>>( - 'NSRecycleZone'); + 'NSRecycleZone', + ); late final _NSRecycleZone = _NSRecycleZonePtr.asFunction)>(); - void NSSetZoneName( - ffi.Pointer zone, - objc.NSString name, - ) { - return _NSSetZoneName( - zone, - name.ref.pointer, - ); + void NSSetZoneName(ffi.Pointer zone, objc.NSString name) { + return _NSSetZoneName(zone, name.ref.pointer); } - late final _NSSetZoneNamePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>>('NSSetZoneName'); - late final _NSSetZoneName = _NSSetZoneNamePtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer)>(); - - objc.NSString NSZoneName( - ffi.Pointer zone, - ) { + late final _NSSetZoneNamePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + >('NSSetZoneName'); + late final _NSSetZoneName = + _NSSetZoneNamePtr.asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >(); + + objc.NSString NSZoneName(ffi.Pointer zone) { return objc.NSString.castFromPointer( - _NSZoneName( - zone, - ), - retain: true, - release: true); + _NSZoneName(zone), + retain: true, + release: true, + ); } - late final _NSZoneNamePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSZoneName'); - late final _NSZoneName = _NSZoneNamePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _NSZoneNamePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('NSZoneName'); + late final _NSZoneName = + _NSZoneNamePtr.asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); - ffi.Pointer NSZoneFromPointer( - ffi.Pointer ptr, - ) { - return _NSZoneFromPointer( - ptr, - ); + ffi.Pointer NSZoneFromPointer(ffi.Pointer ptr) { + return _NSZoneFromPointer(ptr); } - late final _NSZoneFromPointerPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer)>>( - 'NSZoneFromPointer'); - late final _NSZoneFromPointer = _NSZoneFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _NSZoneFromPointerPtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('NSZoneFromPointer'); + late final _NSZoneFromPointer = + _NSZoneFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); - ffi.Pointer NSZoneMalloc( - ffi.Pointer zone, - int size, - ) { - return _NSZoneMalloc( - zone, - size, - ); + ffi.Pointer NSZoneMalloc(ffi.Pointer zone, int size) { + return _NSZoneMalloc(zone, size); } - late final _NSZoneMallocPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, NSUInteger)>>('NSZoneMalloc'); - late final _NSZoneMalloc = _NSZoneMallocPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int)>(); + late final _NSZoneMallocPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, NSUInteger) + > + >('NSZoneMalloc'); + late final _NSZoneMalloc = + _NSZoneMallocPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); ffi.Pointer NSZoneCalloc( ffi.Pointer zone, int numElems, int byteSize, ) { - return _NSZoneCalloc( - zone, - numElems, - byteSize, - ); + return _NSZoneCalloc(zone, numElems, byteSize); } - late final _NSZoneCallocPtr = _lookup< - ffi.NativeFunction< + late final _NSZoneCallocPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, NSUInteger, NSUInteger)>>('NSZoneCalloc'); - late final _NSZoneCalloc = _NSZoneCallocPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, int)>(); + ffi.Pointer, + NSUInteger, + NSUInteger, + ) + > + >('NSZoneCalloc'); + late final _NSZoneCalloc = + _NSZoneCallocPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, int) + >(); ffi.Pointer NSZoneRealloc( ffi.Pointer zone, ffi.Pointer ptr, int size, ) { - return _NSZoneRealloc( - zone, - ptr, - size, - ); + return _NSZoneRealloc(zone, ptr, size); } - late final _NSZoneReallocPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('NSZoneRealloc'); - late final _NSZoneRealloc = _NSZoneReallocPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + late final _NSZoneReallocPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >('NSZoneRealloc'); + late final _NSZoneRealloc = + _NSZoneReallocPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - void NSZoneFree( - ffi.Pointer zone, - ffi.Pointer ptr, - ) { - return _NSZoneFree( - zone, - ptr, - ); + void NSZoneFree(ffi.Pointer zone, ffi.Pointer ptr) { + return _NSZoneFree(zone, ptr); } - late final _NSZoneFreePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>>('NSZoneFree'); - late final _NSZoneFree = _NSZoneFreePtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer)>(); + late final _NSZoneFreePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + >('NSZoneFree'); + late final _NSZoneFree = + _NSZoneFreePtr.asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >(); - ffi.Pointer NSAllocateCollectable( - int size, - int options, - ) { - return _NSAllocateCollectable( - size, - options, - ); + ffi.Pointer NSAllocateCollectable(int size, int options) { + return _NSAllocateCollectable(size, options); } - late final _NSAllocateCollectablePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - NSUInteger, NSUInteger)>>('NSAllocateCollectable'); - late final _NSAllocateCollectable = _NSAllocateCollectablePtr.asFunction< - ffi.Pointer Function(int, int)>(); + late final _NSAllocateCollectablePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(NSUInteger, NSUInteger) + > + >('NSAllocateCollectable'); + late final _NSAllocateCollectable = + _NSAllocateCollectablePtr.asFunction< + ffi.Pointer Function(int, int) + >(); ffi.Pointer NSReallocateCollectable( ffi.Pointer ptr, int size, int options, ) { - return _NSReallocateCollectable( - ptr, - size, - options, - ); + return _NSReallocateCollectable(ptr, size, options); } - late final _NSReallocateCollectablePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, NSUInteger, - NSUInteger)>>('NSReallocateCollectable'); - late final _NSReallocateCollectable = _NSReallocateCollectablePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, int)>(); + late final _NSReallocateCollectablePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + NSUInteger, + NSUInteger, + ) + > + >('NSReallocateCollectable'); + late final _NSReallocateCollectable = + _NSReallocateCollectablePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, int) + >(); int NSPageSize() { return _NSPageSize(); @@ -3668,83 +3688,76 @@ class NativeCupertinoHttp { _lookup>('NSLogPageSize'); late final _NSLogPageSize = _NSLogPageSizePtr.asFunction(); - int NSRoundUpToMultipleOfPageSize( - int bytes, - ) { - return _NSRoundUpToMultipleOfPageSize( - bytes, - ); + int NSRoundUpToMultipleOfPageSize(int bytes) { + return _NSRoundUpToMultipleOfPageSize(bytes); } late final _NSRoundUpToMultipleOfPageSizePtr = _lookup>( - 'NSRoundUpToMultipleOfPageSize'); + 'NSRoundUpToMultipleOfPageSize', + ); late final _NSRoundUpToMultipleOfPageSize = _NSRoundUpToMultipleOfPageSizePtr.asFunction(); - int NSRoundDownToMultipleOfPageSize( - int bytes, - ) { - return _NSRoundDownToMultipleOfPageSize( - bytes, - ); + int NSRoundDownToMultipleOfPageSize(int bytes) { + return _NSRoundDownToMultipleOfPageSize(bytes); } late final _NSRoundDownToMultipleOfPageSizePtr = _lookup>( - 'NSRoundDownToMultipleOfPageSize'); + 'NSRoundDownToMultipleOfPageSize', + ); late final _NSRoundDownToMultipleOfPageSize = _NSRoundDownToMultipleOfPageSizePtr.asFunction(); - ffi.Pointer NSAllocateMemoryPages( - int bytes, - ) { - return _NSAllocateMemoryPages( - bytes, - ); + ffi.Pointer NSAllocateMemoryPages(int bytes) { + return _NSAllocateMemoryPages(bytes); } late final _NSAllocateMemoryPagesPtr = _lookup Function(NSUInteger)>>( - 'NSAllocateMemoryPages'); - late final _NSAllocateMemoryPages = _NSAllocateMemoryPagesPtr.asFunction< - ffi.Pointer Function(int)>(); + 'NSAllocateMemoryPages', + ); + late final _NSAllocateMemoryPages = + _NSAllocateMemoryPagesPtr.asFunction< + ffi.Pointer Function(int) + >(); - void NSDeallocateMemoryPages( - ffi.Pointer ptr, - int bytes, - ) { - return _NSDeallocateMemoryPages( - ptr, - bytes, - ); + void NSDeallocateMemoryPages(ffi.Pointer ptr, int bytes) { + return _NSDeallocateMemoryPages(ptr, bytes); } - late final _NSDeallocateMemoryPagesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, NSUInteger)>>('NSDeallocateMemoryPages'); - late final _NSDeallocateMemoryPages = _NSDeallocateMemoryPagesPtr.asFunction< - void Function(ffi.Pointer, int)>(); + late final _NSDeallocateMemoryPagesPtr = + _lookup< + ffi.NativeFunction, NSUInteger)> + >('NSDeallocateMemoryPages'); + late final _NSDeallocateMemoryPages = + _NSDeallocateMemoryPagesPtr.asFunction< + void Function(ffi.Pointer, int) + >(); void NSCopyMemoryPages( ffi.Pointer source, ffi.Pointer dest, int bytes, ) { - return _NSCopyMemoryPages( - source, - dest, - bytes, - ); + return _NSCopyMemoryPages(source, dest, bytes); } - late final _NSCopyMemoryPagesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('NSCopyMemoryPages'); - late final _NSCopyMemoryPages = _NSCopyMemoryPagesPtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _NSCopyMemoryPagesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >('NSCopyMemoryPages'); + late final _NSCopyMemoryPages = + _NSCopyMemoryPagesPtr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); int NSRealMemoryAvailable() { return _NSRealMemoryAvailable(); @@ -3752,7 +3765,8 @@ class NativeCupertinoHttp { late final _NSRealMemoryAvailablePtr = _lookup>( - 'NSRealMemoryAvailable'); + 'NSRealMemoryAvailable', + ); late final _NSRealMemoryAvailable = _NSRealMemoryAvailablePtr.asFunction(); @@ -3762,36 +3776,43 @@ class NativeCupertinoHttp { ffi.Pointer zone, ) { return objc.ObjCObjectBase( - _NSAllocateObject( - aClass.ref.pointer, - extraBytes, - zone, - ), - retain: true, - release: true); + _NSAllocateObject(aClass.ref.pointer, extraBytes, zone), + retain: true, + release: true, + ); } - late final _NSAllocateObjectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - NSUInteger, ffi.Pointer)>>('NSAllocateObject'); - late final _NSAllocateObject = _NSAllocateObjectPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + late final _NSAllocateObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >('NSAllocateObject'); + late final _NSAllocateObject = + _NSAllocateObjectPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); - void NSDeallocateObject( - objc.ObjCObjectBase object, - ) { - return _NSDeallocateObject( - object.ref.pointer, - ); + void NSDeallocateObject(objc.ObjCObjectBase object) { + return _NSDeallocateObject(object.ref.pointer); } - late final _NSDeallocateObjectPtr = _lookup< - ffi.NativeFunction)>>( - 'NSDeallocateObject'); - late final _NSDeallocateObject = _NSDeallocateObjectPtr.asFunction< - void Function(ffi.Pointer)>(); + late final _NSDeallocateObjectPtr = + _lookup< + ffi.NativeFunction)> + >('NSDeallocateObject'); + late final _NSDeallocateObject = + _NSDeallocateObjectPtr.asFunction< + void Function(ffi.Pointer) + >(); objc.ObjCObjectBase NSCopyObject( objc.ObjCObjectBase object, @@ -3799,346 +3820,404 @@ class NativeCupertinoHttp { ffi.Pointer zone, ) { return objc.ObjCObjectBase( - _NSCopyObject( - object.ref.pointer, - extraBytes, - zone, - ), - retain: true, - release: true); + _NSCopyObject(object.ref.pointer, extraBytes, zone), + retain: true, + release: true, + ); } - late final _NSCopyObjectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - NSUInteger, ffi.Pointer)>>('NSCopyObject'); - late final _NSCopyObject = _NSCopyObjectPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + late final _NSCopyObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >('NSCopyObject'); + late final _NSCopyObject = + _NSCopyObjectPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); bool NSShouldRetainWithZone( objc.ObjCObjectBase anObject, ffi.Pointer requestedZone, ) { - return _NSShouldRetainWithZone( - anObject.ref.pointer, - requestedZone, - ); + return _NSShouldRetainWithZone(anObject.ref.pointer, requestedZone); } - late final _NSShouldRetainWithZonePtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer)>>('NSShouldRetainWithZone'); - late final _NSShouldRetainWithZone = _NSShouldRetainWithZonePtr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer)>(); + late final _NSShouldRetainWithZonePtr = + _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + >('NSShouldRetainWithZone'); + late final _NSShouldRetainWithZone = + _NSShouldRetainWithZonePtr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >(); - void NSIncrementExtraRefCount( - objc.ObjCObjectBase object, - ) { - return _NSIncrementExtraRefCount( - object.ref.pointer, - ); + void NSIncrementExtraRefCount(objc.ObjCObjectBase object) { + return _NSIncrementExtraRefCount(object.ref.pointer); } - late final _NSIncrementExtraRefCountPtr = _lookup< - ffi.NativeFunction)>>( - 'NSIncrementExtraRefCount'); - late final _NSIncrementExtraRefCount = _NSIncrementExtraRefCountPtr - .asFunction)>(); + late final _NSIncrementExtraRefCountPtr = + _lookup< + ffi.NativeFunction)> + >('NSIncrementExtraRefCount'); + late final _NSIncrementExtraRefCount = + _NSIncrementExtraRefCountPtr.asFunction< + void Function(ffi.Pointer) + >(); - bool NSDecrementExtraRefCountWasZero( - objc.ObjCObjectBase object, - ) { - return _NSDecrementExtraRefCountWasZero( - object.ref.pointer, - ); + bool NSDecrementExtraRefCountWasZero(objc.ObjCObjectBase object) { + return _NSDecrementExtraRefCountWasZero(object.ref.pointer); } - late final _NSDecrementExtraRefCountWasZeroPtr = _lookup< - ffi.NativeFunction)>>( - 'NSDecrementExtraRefCountWasZero'); + late final _NSDecrementExtraRefCountWasZeroPtr = + _lookup< + ffi.NativeFunction)> + >('NSDecrementExtraRefCountWasZero'); late final _NSDecrementExtraRefCountWasZero = _NSDecrementExtraRefCountWasZeroPtr.asFunction< - bool Function(ffi.Pointer)>(); + bool Function(ffi.Pointer) + >(); - DartNSUInteger NSExtraRefCount( - objc.ObjCObjectBase object, - ) { - return _NSExtraRefCount( - object.ref.pointer, - ); + DartNSUInteger NSExtraRefCount(objc.ObjCObjectBase object) { + return _NSExtraRefCount(object.ref.pointer); } - late final _NSExtraRefCountPtr = _lookup< - ffi - .NativeFunction)>>( - 'NSExtraRefCount'); - late final _NSExtraRefCount = _NSExtraRefCountPtr.asFunction< - int Function(ffi.Pointer)>(); + late final _NSExtraRefCountPtr = + _lookup< + ffi.NativeFunction)> + >('NSExtraRefCount'); + late final _NSExtraRefCount = + _NSExtraRefCountPtr.asFunction< + int Function(ffi.Pointer) + >(); late final ffi.Pointer - _NSSystemClockDidChangeNotification = - _lookup('NSSystemClockDidChangeNotification'); + _NSSystemClockDidChangeNotification = _lookup( + 'NSSystemClockDidChangeNotification', + ); DartNSNotificationName get NSSystemClockDidChangeNotification => - objc.NSString.castFromPointer(_NSSystemClockDidChangeNotification.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSSystemClockDidChangeNotification.value, + retain: true, + release: true, + ); set NSSystemClockDidChangeNotification(DartNSNotificationName value) { - objc.NSString.castFromPointer(_NSSystemClockDidChangeNotification.value, - retain: false, release: true) - .ref - .release(); - _NSSystemClockDidChangeNotification.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSSystemClockDidChangeNotification.value, + retain: false, + release: true, + ).ref.release(); + _NSSystemClockDidChangeNotification.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSHTTPCookieManagerAcceptPolicyChangedNotification = + _NSHTTPCookieManagerAcceptPolicyChangedNotification = _lookup( - 'NSHTTPCookieManagerAcceptPolicyChangedNotification'); + 'NSHTTPCookieManagerAcceptPolicyChangedNotification', + ); DartNSNotificationName - get NSHTTPCookieManagerAcceptPolicyChangedNotification => - objc.NSString.castFromPointer( - _NSHTTPCookieManagerAcceptPolicyChangedNotification.value, - retain: true, - release: true); + get NSHTTPCookieManagerAcceptPolicyChangedNotification => + objc.NSString.castFromPointer( + _NSHTTPCookieManagerAcceptPolicyChangedNotification.value, + retain: true, + release: true, + ); set NSHTTPCookieManagerAcceptPolicyChangedNotification( - DartNSNotificationName value) { + DartNSNotificationName value, + ) { objc.NSString.castFromPointer( - _NSHTTPCookieManagerAcceptPolicyChangedNotification.value, - retain: false, - release: true) - .ref - .release(); - _NSHTTPCookieManagerAcceptPolicyChangedNotification.value = - value.ref.retainAndReturnPointer(); + _NSHTTPCookieManagerAcceptPolicyChangedNotification.value, + retain: false, + release: true, + ).ref.release(); + _NSHTTPCookieManagerAcceptPolicyChangedNotification.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSHTTPCookieManagerCookiesChangedNotification = - _lookup( - 'NSHTTPCookieManagerCookiesChangedNotification'); + _NSHTTPCookieManagerCookiesChangedNotification = _lookup( + 'NSHTTPCookieManagerCookiesChangedNotification', + ); DartNSNotificationName get NSHTTPCookieManagerCookiesChangedNotification => objc.NSString.castFromPointer( - _NSHTTPCookieManagerCookiesChangedNotification.value, - retain: true, - release: true); + _NSHTTPCookieManagerCookiesChangedNotification.value, + retain: true, + release: true, + ); set NSHTTPCookieManagerCookiesChangedNotification( - DartNSNotificationName value) { + DartNSNotificationName value, + ) { objc.NSString.castFromPointer( - _NSHTTPCookieManagerCookiesChangedNotification.value, - retain: false, - release: true) - .ref - .release(); - _NSHTTPCookieManagerCookiesChangedNotification.value = - value.ref.retainAndReturnPointer(); + _NSHTTPCookieManagerCookiesChangedNotification.value, + retain: false, + release: true, + ).ref.release(); + _NSHTTPCookieManagerCookiesChangedNotification.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSProgressEstimatedTimeRemainingKey = - _lookup('NSProgressEstimatedTimeRemainingKey'); + _NSProgressEstimatedTimeRemainingKey = _lookup( + 'NSProgressEstimatedTimeRemainingKey', + ); DartNSProgressUserInfoKey get NSProgressEstimatedTimeRemainingKey => - objc.NSString.castFromPointer(_NSProgressEstimatedTimeRemainingKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSProgressEstimatedTimeRemainingKey.value, + retain: true, + release: true, + ); set NSProgressEstimatedTimeRemainingKey(DartNSProgressUserInfoKey value) { - objc.NSString.castFromPointer(_NSProgressEstimatedTimeRemainingKey.value, - retain: false, release: true) - .ref - .release(); - _NSProgressEstimatedTimeRemainingKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSProgressEstimatedTimeRemainingKey.value, + retain: false, + release: true, + ).ref.release(); + _NSProgressEstimatedTimeRemainingKey.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer _NSProgressThroughputKey = _lookup('NSProgressThroughputKey'); DartNSProgressUserInfoKey get NSProgressThroughputKey => - objc.NSString.castFromPointer(_NSProgressThroughputKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSProgressThroughputKey.value, + retain: true, + release: true, + ); set NSProgressThroughputKey(DartNSProgressUserInfoKey value) { - objc.NSString.castFromPointer(_NSProgressThroughputKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSProgressThroughputKey.value, + retain: false, + release: true, + ).ref.release(); _NSProgressThroughputKey.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer _NSProgressKindFile = _lookup('NSProgressKindFile'); - DartNSProgressKind get NSProgressKindFile => - objc.NSString.castFromPointer(_NSProgressKindFile.value, - retain: true, release: true); + DartNSProgressKind get NSProgressKindFile => objc.NSString.castFromPointer( + _NSProgressKindFile.value, + retain: true, + release: true, + ); set NSProgressKindFile(DartNSProgressKind value) { - objc.NSString.castFromPointer(_NSProgressKindFile.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSProgressKindFile.value, + retain: false, + release: true, + ).ref.release(); _NSProgressKindFile.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer - _NSProgressFileOperationKindKey = - _lookup('NSProgressFileOperationKindKey'); + _NSProgressFileOperationKindKey = _lookup( + 'NSProgressFileOperationKindKey', + ); DartNSProgressUserInfoKey get NSProgressFileOperationKindKey => - objc.NSString.castFromPointer(_NSProgressFileOperationKindKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSProgressFileOperationKindKey.value, + retain: true, + release: true, + ); set NSProgressFileOperationKindKey(DartNSProgressUserInfoKey value) { - objc.NSString.castFromPointer(_NSProgressFileOperationKindKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSProgressFileOperationKindKey.value, + retain: false, + release: true, + ).ref.release(); _NSProgressFileOperationKindKey.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer - _NSProgressFileOperationKindDownloading = + _NSProgressFileOperationKindDownloading = _lookup( - 'NSProgressFileOperationKindDownloading'); + 'NSProgressFileOperationKindDownloading', + ); DartNSProgressFileOperationKind get NSProgressFileOperationKindDownloading => objc.NSString.castFromPointer( - _NSProgressFileOperationKindDownloading.value, - retain: true, - release: true); + _NSProgressFileOperationKindDownloading.value, + retain: true, + release: true, + ); set NSProgressFileOperationKindDownloading( - DartNSProgressFileOperationKind value) { - objc.NSString.castFromPointer(_NSProgressFileOperationKindDownloading.value, - retain: false, release: true) - .ref - .release(); - _NSProgressFileOperationKindDownloading.value = - value.ref.retainAndReturnPointer(); + DartNSProgressFileOperationKind value, + ) { + objc.NSString.castFromPointer( + _NSProgressFileOperationKindDownloading.value, + retain: false, + release: true, + ).ref.release(); + _NSProgressFileOperationKindDownloading.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSProgressFileOperationKindDecompressingAfterDownloading = + _NSProgressFileOperationKindDecompressingAfterDownloading = _lookup( - 'NSProgressFileOperationKindDecompressingAfterDownloading'); + 'NSProgressFileOperationKindDecompressingAfterDownloading', + ); DartNSProgressFileOperationKind - get NSProgressFileOperationKindDecompressingAfterDownloading => - objc.NSString.castFromPointer( - _NSProgressFileOperationKindDecompressingAfterDownloading.value, - retain: true, - release: true); + get NSProgressFileOperationKindDecompressingAfterDownloading => + objc.NSString.castFromPointer( + _NSProgressFileOperationKindDecompressingAfterDownloading.value, + retain: true, + release: true, + ); set NSProgressFileOperationKindDecompressingAfterDownloading( - DartNSProgressFileOperationKind value) { + DartNSProgressFileOperationKind value, + ) { objc.NSString.castFromPointer( - _NSProgressFileOperationKindDecompressingAfterDownloading.value, - retain: false, - release: true) - .ref - .release(); - _NSProgressFileOperationKindDecompressingAfterDownloading.value = - value.ref.retainAndReturnPointer(); + _NSProgressFileOperationKindDecompressingAfterDownloading.value, + retain: false, + release: true, + ).ref.release(); + _NSProgressFileOperationKindDecompressingAfterDownloading.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSProgressFileOperationKindReceiving = - _lookup( - 'NSProgressFileOperationKindReceiving'); + _NSProgressFileOperationKindReceiving = _lookup( + 'NSProgressFileOperationKindReceiving', + ); DartNSProgressFileOperationKind get NSProgressFileOperationKindReceiving => - objc.NSString.castFromPointer(_NSProgressFileOperationKindReceiving.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSProgressFileOperationKindReceiving.value, + retain: true, + release: true, + ); set NSProgressFileOperationKindReceiving( - DartNSProgressFileOperationKind value) { - objc.NSString.castFromPointer(_NSProgressFileOperationKindReceiving.value, - retain: false, release: true) - .ref - .release(); - _NSProgressFileOperationKindReceiving.value = - value.ref.retainAndReturnPointer(); + DartNSProgressFileOperationKind value, + ) { + objc.NSString.castFromPointer( + _NSProgressFileOperationKindReceiving.value, + retain: false, + release: true, + ).ref.release(); + _NSProgressFileOperationKindReceiving.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSProgressFileOperationKindCopying = - _lookup( - 'NSProgressFileOperationKindCopying'); + _NSProgressFileOperationKindCopying = _lookup( + 'NSProgressFileOperationKindCopying', + ); DartNSProgressFileOperationKind get NSProgressFileOperationKindCopying => - objc.NSString.castFromPointer(_NSProgressFileOperationKindCopying.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSProgressFileOperationKindCopying.value, + retain: true, + release: true, + ); set NSProgressFileOperationKindCopying( - DartNSProgressFileOperationKind value) { - objc.NSString.castFromPointer(_NSProgressFileOperationKindCopying.value, - retain: false, release: true) - .ref - .release(); - _NSProgressFileOperationKindCopying.value = - value.ref.retainAndReturnPointer(); + DartNSProgressFileOperationKind value, + ) { + objc.NSString.castFromPointer( + _NSProgressFileOperationKindCopying.value, + retain: false, + release: true, + ).ref.release(); + _NSProgressFileOperationKindCopying.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSProgressFileOperationKindUploading = - _lookup( - 'NSProgressFileOperationKindUploading'); + _NSProgressFileOperationKindUploading = _lookup( + 'NSProgressFileOperationKindUploading', + ); DartNSProgressFileOperationKind get NSProgressFileOperationKindUploading => - objc.NSString.castFromPointer(_NSProgressFileOperationKindUploading.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSProgressFileOperationKindUploading.value, + retain: true, + release: true, + ); set NSProgressFileOperationKindUploading( - DartNSProgressFileOperationKind value) { - objc.NSString.castFromPointer(_NSProgressFileOperationKindUploading.value, - retain: false, release: true) - .ref - .release(); - _NSProgressFileOperationKindUploading.value = - value.ref.retainAndReturnPointer(); + DartNSProgressFileOperationKind value, + ) { + objc.NSString.castFromPointer( + _NSProgressFileOperationKindUploading.value, + retain: false, + release: true, + ).ref.release(); + _NSProgressFileOperationKindUploading.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSProgressFileOperationKindDuplicating = + _NSProgressFileOperationKindDuplicating = _lookup( - 'NSProgressFileOperationKindDuplicating'); + 'NSProgressFileOperationKindDuplicating', + ); DartNSProgressFileOperationKind get NSProgressFileOperationKindDuplicating => objc.NSString.castFromPointer( - _NSProgressFileOperationKindDuplicating.value, - retain: true, - release: true); + _NSProgressFileOperationKindDuplicating.value, + retain: true, + release: true, + ); set NSProgressFileOperationKindDuplicating( - DartNSProgressFileOperationKind value) { - objc.NSString.castFromPointer(_NSProgressFileOperationKindDuplicating.value, - retain: false, release: true) - .ref - .release(); - _NSProgressFileOperationKindDuplicating.value = - value.ref.retainAndReturnPointer(); + DartNSProgressFileOperationKind value, + ) { + objc.NSString.castFromPointer( + _NSProgressFileOperationKindDuplicating.value, + retain: false, + release: true, + ).ref.release(); + _NSProgressFileOperationKindDuplicating.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer _NSProgressFileURLKey = _lookup('NSProgressFileURLKey'); DartNSProgressUserInfoKey get NSProgressFileURLKey => - objc.NSString.castFromPointer(_NSProgressFileURLKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSProgressFileURLKey.value, + retain: true, + release: true, + ); set NSProgressFileURLKey(DartNSProgressUserInfoKey value) { - objc.NSString.castFromPointer(_NSProgressFileURLKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSProgressFileURLKey.value, + retain: false, + release: true, + ).ref.release(); _NSProgressFileURLKey.value = value.ref.retainAndReturnPointer(); } @@ -4146,84 +4225,103 @@ class NativeCupertinoHttp { _lookup('NSProgressFileTotalCountKey'); DartNSProgressUserInfoKey get NSProgressFileTotalCountKey => - objc.NSString.castFromPointer(_NSProgressFileTotalCountKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSProgressFileTotalCountKey.value, + retain: true, + release: true, + ); set NSProgressFileTotalCountKey(DartNSProgressUserInfoKey value) { - objc.NSString.castFromPointer(_NSProgressFileTotalCountKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSProgressFileTotalCountKey.value, + retain: false, + release: true, + ).ref.release(); _NSProgressFileTotalCountKey.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer - _NSProgressFileCompletedCountKey = - _lookup('NSProgressFileCompletedCountKey'); + _NSProgressFileCompletedCountKey = _lookup( + 'NSProgressFileCompletedCountKey', + ); DartNSProgressUserInfoKey get NSProgressFileCompletedCountKey => - objc.NSString.castFromPointer(_NSProgressFileCompletedCountKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSProgressFileCompletedCountKey.value, + retain: true, + release: true, + ); set NSProgressFileCompletedCountKey(DartNSProgressUserInfoKey value) { - objc.NSString.castFromPointer(_NSProgressFileCompletedCountKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSProgressFileCompletedCountKey.value, + retain: false, + release: true, + ).ref.release(); _NSProgressFileCompletedCountKey.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer - _NSProgressFileAnimationImageKey = - _lookup('NSProgressFileAnimationImageKey'); + _NSProgressFileAnimationImageKey = _lookup( + 'NSProgressFileAnimationImageKey', + ); DartNSProgressUserInfoKey get NSProgressFileAnimationImageKey => - objc.NSString.castFromPointer(_NSProgressFileAnimationImageKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSProgressFileAnimationImageKey.value, + retain: true, + release: true, + ); set NSProgressFileAnimationImageKey(DartNSProgressUserInfoKey value) { - objc.NSString.castFromPointer(_NSProgressFileAnimationImageKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSProgressFileAnimationImageKey.value, + retain: false, + release: true, + ).ref.release(); _NSProgressFileAnimationImageKey.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer - _NSProgressFileAnimationImageOriginalRectKey = - _lookup( - 'NSProgressFileAnimationImageOriginalRectKey'); + _NSProgressFileAnimationImageOriginalRectKey = _lookup( + 'NSProgressFileAnimationImageOriginalRectKey', + ); DartNSProgressUserInfoKey get NSProgressFileAnimationImageOriginalRectKey => objc.NSString.castFromPointer( - _NSProgressFileAnimationImageOriginalRectKey.value, - retain: true, - release: true); + _NSProgressFileAnimationImageOriginalRectKey.value, + retain: true, + release: true, + ); set NSProgressFileAnimationImageOriginalRectKey( - DartNSProgressUserInfoKey value) { + DartNSProgressUserInfoKey value, + ) { objc.NSString.castFromPointer( - _NSProgressFileAnimationImageOriginalRectKey.value, - retain: false, - release: true) - .ref - .release(); - _NSProgressFileAnimationImageOriginalRectKey.value = - value.ref.retainAndReturnPointer(); + _NSProgressFileAnimationImageOriginalRectKey.value, + retain: false, + release: true, + ).ref.release(); + _NSProgressFileAnimationImageOriginalRectKey.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer _NSProgressFileIconKey = _lookup('NSProgressFileIconKey'); DartNSProgressUserInfoKey get NSProgressFileIconKey => - objc.NSString.castFromPointer(_NSProgressFileIconKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSProgressFileIconKey.value, + retain: true, + release: true, + ); set NSProgressFileIconKey(DartNSProgressUserInfoKey value) { - objc.NSString.castFromPointer(_NSProgressFileIconKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSProgressFileIconKey.value, + retain: false, + release: true, + ).ref.release(); _NSProgressFileIconKey.value = value.ref.retainAndReturnPointer(); } @@ -4247,92 +4345,97 @@ class NativeCupertinoHttp { int numValues, ffi.Pointer callBacks, ) { - return _CFArrayCreate( - allocator, - values, - numValues, - callBacks, - ); + return _CFArrayCreate(allocator, values, numValues, callBacks); } - late final _CFArrayCreatePtr = _lookup< - ffi.NativeFunction< + late final _CFArrayCreatePtr = + _lookup< + ffi.NativeFunction< CFArrayRef Function( - CFAllocatorRef, - ffi.Pointer>, - CFIndex, - ffi.Pointer)>>('CFArrayCreate'); - late final _CFArrayCreate = _CFArrayCreatePtr.asFunction< - CFArrayRef Function(CFAllocatorRef, ffi.Pointer>, - int, ffi.Pointer)>(); - - CFArrayRef CFArrayCreateCopy( - CFAllocatorRef allocator, - CFArrayRef theArray, - ) { - return _CFArrayCreateCopy( - allocator, - theArray, - ); + CFAllocatorRef, + ffi.Pointer>, + CFIndex, + ffi.Pointer, + ) + > + >('CFArrayCreate'); + late final _CFArrayCreate = + _CFArrayCreatePtr.asFunction< + CFArrayRef Function( + CFAllocatorRef, + ffi.Pointer>, + int, + ffi.Pointer, + ) + >(); + + CFArrayRef CFArrayCreateCopy(CFAllocatorRef allocator, CFArrayRef theArray) { + return _CFArrayCreateCopy(allocator, theArray); } - late final _CFArrayCreateCopyPtr = _lookup< - ffi.NativeFunction>( - 'CFArrayCreateCopy'); - late final _CFArrayCreateCopy = _CFArrayCreateCopyPtr.asFunction< - CFArrayRef Function(CFAllocatorRef, CFArrayRef)>(); + late final _CFArrayCreateCopyPtr = + _lookup< + ffi.NativeFunction + >('CFArrayCreateCopy'); + late final _CFArrayCreateCopy = + _CFArrayCreateCopyPtr.asFunction< + CFArrayRef Function(CFAllocatorRef, CFArrayRef) + >(); CFMutableArrayRef CFArrayCreateMutable( CFAllocatorRef allocator, int capacity, ffi.Pointer callBacks, ) { - return _CFArrayCreateMutable( - allocator, - capacity, - callBacks, - ); + return _CFArrayCreateMutable(allocator, capacity, callBacks); } - late final _CFArrayCreateMutablePtr = _lookup< - ffi.NativeFunction< - CFMutableArrayRef Function(CFAllocatorRef, CFIndex, - ffi.Pointer)>>('CFArrayCreateMutable'); - late final _CFArrayCreateMutable = _CFArrayCreateMutablePtr.asFunction< - CFMutableArrayRef Function( - CFAllocatorRef, int, ffi.Pointer)>(); + late final _CFArrayCreateMutablePtr = + _lookup< + ffi.NativeFunction< + CFMutableArrayRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ) + > + >('CFArrayCreateMutable'); + late final _CFArrayCreateMutable = + _CFArrayCreateMutablePtr.asFunction< + CFMutableArrayRef Function( + CFAllocatorRef, + int, + ffi.Pointer, + ) + >(); CFMutableArrayRef CFArrayCreateMutableCopy( CFAllocatorRef allocator, int capacity, CFArrayRef theArray, ) { - return _CFArrayCreateMutableCopy( - allocator, - capacity, - theArray, - ); + return _CFArrayCreateMutableCopy(allocator, capacity, theArray); } - late final _CFArrayCreateMutableCopyPtr = _lookup< - ffi.NativeFunction< - CFMutableArrayRef Function(CFAllocatorRef, CFIndex, - CFArrayRef)>>('CFArrayCreateMutableCopy'); + late final _CFArrayCreateMutableCopyPtr = + _lookup< + ffi.NativeFunction< + CFMutableArrayRef Function(CFAllocatorRef, CFIndex, CFArrayRef) + > + >('CFArrayCreateMutableCopy'); late final _CFArrayCreateMutableCopy = _CFArrayCreateMutableCopyPtr.asFunction< - CFMutableArrayRef Function(CFAllocatorRef, int, CFArrayRef)>(); + CFMutableArrayRef Function(CFAllocatorRef, int, CFArrayRef) + >(); - int CFArrayGetCount( - CFArrayRef theArray, - ) { - return _CFArrayGetCount( - theArray, - ); + int CFArrayGetCount(CFArrayRef theArray) { + return _CFArrayGetCount(theArray); } late final _CFArrayGetCountPtr = _lookup>( - 'CFArrayGetCount'); + 'CFArrayGetCount', + ); late final _CFArrayGetCount = _CFArrayGetCountPtr.asFunction(); @@ -4341,74 +4444,74 @@ class NativeCupertinoHttp { CFRange range, ffi.Pointer value, ) { - return _CFArrayGetCountOfValue( - theArray, - range, - value, - ); + return _CFArrayGetCountOfValue(theArray, range, value); } - late final _CFArrayGetCountOfValuePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFArrayRef, CFRange, - ffi.Pointer)>>('CFArrayGetCountOfValue'); - late final _CFArrayGetCountOfValue = _CFArrayGetCountOfValuePtr.asFunction< - int Function(CFArrayRef, CFRange, ffi.Pointer)>(); + late final _CFArrayGetCountOfValuePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFArrayRef, CFRange, ffi.Pointer) + > + >('CFArrayGetCountOfValue'); + late final _CFArrayGetCountOfValue = + _CFArrayGetCountOfValuePtr.asFunction< + int Function(CFArrayRef, CFRange, ffi.Pointer) + >(); int CFArrayContainsValue( CFArrayRef theArray, CFRange range, ffi.Pointer value, ) { - return _CFArrayContainsValue( - theArray, - range, - value, - ); + return _CFArrayContainsValue(theArray, range, value); } - late final _CFArrayContainsValuePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFArrayRef, CFRange, - ffi.Pointer)>>('CFArrayContainsValue'); - late final _CFArrayContainsValue = _CFArrayContainsValuePtr.asFunction< - int Function(CFArrayRef, CFRange, ffi.Pointer)>(); + late final _CFArrayContainsValuePtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFArrayRef, CFRange, ffi.Pointer) + > + >('CFArrayContainsValue'); + late final _CFArrayContainsValue = + _CFArrayContainsValuePtr.asFunction< + int Function(CFArrayRef, CFRange, ffi.Pointer) + >(); - ffi.Pointer CFArrayGetValueAtIndex( - CFArrayRef theArray, - int idx, - ) { - return _CFArrayGetValueAtIndex( - theArray, - idx, - ); + ffi.Pointer CFArrayGetValueAtIndex(CFArrayRef theArray, int idx) { + return _CFArrayGetValueAtIndex(theArray, idx); } - late final _CFArrayGetValueAtIndexPtr = _lookup< - ffi - .NativeFunction Function(CFArrayRef, CFIndex)>>( - 'CFArrayGetValueAtIndex'); - late final _CFArrayGetValueAtIndex = _CFArrayGetValueAtIndexPtr.asFunction< - ffi.Pointer Function(CFArrayRef, int)>(); + late final _CFArrayGetValueAtIndexPtr = + _lookup< + ffi.NativeFunction Function(CFArrayRef, CFIndex)> + >('CFArrayGetValueAtIndex'); + late final _CFArrayGetValueAtIndex = + _CFArrayGetValueAtIndexPtr.asFunction< + ffi.Pointer Function(CFArrayRef, int) + >(); void CFArrayGetValues( CFArrayRef theArray, CFRange range, ffi.Pointer> values, ) { - return _CFArrayGetValues( - theArray, - range, - values, - ); + return _CFArrayGetValues(theArray, range, values); } - late final _CFArrayGetValuesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFArrayRef, CFRange, - ffi.Pointer>)>>('CFArrayGetValues'); - late final _CFArrayGetValues = _CFArrayGetValuesPtr.asFunction< - void Function(CFArrayRef, CFRange, ffi.Pointer>)>(); + late final _CFArrayGetValuesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFArrayRef, + CFRange, + ffi.Pointer>, + ) + > + >('CFArrayGetValues'); + late final _CFArrayGetValues = + _CFArrayGetValuesPtr.asFunction< + void Function(CFArrayRef, CFRange, ffi.Pointer>) + >(); void CFArrayApplyFunction( CFArrayRef theArray, @@ -4416,59 +4519,67 @@ class NativeCupertinoHttp { CFArrayApplierFunction applier, ffi.Pointer context, ) { - return _CFArrayApplyFunction( - theArray, - range, - applier, - context, - ); + return _CFArrayApplyFunction(theArray, range, applier, context); } - late final _CFArrayApplyFunctionPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFArrayRef, CFRange, CFArrayApplierFunction, - ffi.Pointer)>>('CFArrayApplyFunction'); - late final _CFArrayApplyFunction = _CFArrayApplyFunctionPtr.asFunction< - void Function(CFArrayRef, CFRange, CFArrayApplierFunction, - ffi.Pointer)>(); + late final _CFArrayApplyFunctionPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFArrayRef, + CFRange, + CFArrayApplierFunction, + ffi.Pointer, + ) + > + >('CFArrayApplyFunction'); + late final _CFArrayApplyFunction = + _CFArrayApplyFunctionPtr.asFunction< + void Function( + CFArrayRef, + CFRange, + CFArrayApplierFunction, + ffi.Pointer, + ) + >(); int CFArrayGetFirstIndexOfValue( CFArrayRef theArray, CFRange range, ffi.Pointer value, ) { - return _CFArrayGetFirstIndexOfValue( - theArray, - range, - value, - ); + return _CFArrayGetFirstIndexOfValue(theArray, range, value); } - late final _CFArrayGetFirstIndexOfValuePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFArrayRef, CFRange, - ffi.Pointer)>>('CFArrayGetFirstIndexOfValue'); - late final _CFArrayGetFirstIndexOfValue = _CFArrayGetFirstIndexOfValuePtr - .asFunction)>(); + late final _CFArrayGetFirstIndexOfValuePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFArrayRef, CFRange, ffi.Pointer) + > + >('CFArrayGetFirstIndexOfValue'); + late final _CFArrayGetFirstIndexOfValue = + _CFArrayGetFirstIndexOfValuePtr.asFunction< + int Function(CFArrayRef, CFRange, ffi.Pointer) + >(); int CFArrayGetLastIndexOfValue( CFArrayRef theArray, CFRange range, ffi.Pointer value, ) { - return _CFArrayGetLastIndexOfValue( - theArray, - range, - value, - ); + return _CFArrayGetLastIndexOfValue(theArray, range, value); } - late final _CFArrayGetLastIndexOfValuePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFArrayRef, CFRange, - ffi.Pointer)>>('CFArrayGetLastIndexOfValue'); - late final _CFArrayGetLastIndexOfValue = _CFArrayGetLastIndexOfValuePtr - .asFunction)>(); + late final _CFArrayGetLastIndexOfValuePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFArrayRef, CFRange, ffi.Pointer) + > + >('CFArrayGetLastIndexOfValue'); + late final _CFArrayGetLastIndexOfValue = + _CFArrayGetLastIndexOfValuePtr.asFunction< + int Function(CFArrayRef, CFRange, ffi.Pointer) + >(); int CFArrayBSearchValues( CFArrayRef theArray, @@ -4477,110 +4588,109 @@ class NativeCupertinoHttp { CFComparatorFunction comparator, ffi.Pointer context, ) { - return _CFArrayBSearchValues( - theArray, - range, - value, - comparator, - context, - ); + return _CFArrayBSearchValues(theArray, range, value, comparator, context); } - late final _CFArrayBSearchValuesPtr = _lookup< - ffi.NativeFunction< + late final _CFArrayBSearchValuesPtr = + _lookup< + ffi.NativeFunction< CFIndex Function( - CFArrayRef, - CFRange, - ffi.Pointer, - CFComparatorFunction, - ffi.Pointer)>>('CFArrayBSearchValues'); - late final _CFArrayBSearchValues = _CFArrayBSearchValuesPtr.asFunction< - int Function(CFArrayRef, CFRange, ffi.Pointer, - CFComparatorFunction, ffi.Pointer)>(); + CFArrayRef, + CFRange, + ffi.Pointer, + CFComparatorFunction, + ffi.Pointer, + ) + > + >('CFArrayBSearchValues'); + late final _CFArrayBSearchValues = + _CFArrayBSearchValuesPtr.asFunction< + int Function( + CFArrayRef, + CFRange, + ffi.Pointer, + CFComparatorFunction, + ffi.Pointer, + ) + >(); void CFArrayAppendValue( CFMutableArrayRef theArray, ffi.Pointer value, ) { - return _CFArrayAppendValue( - theArray, - value, - ); + return _CFArrayAppendValue(theArray, value); } - late final _CFArrayAppendValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableArrayRef, ffi.Pointer)>>('CFArrayAppendValue'); - late final _CFArrayAppendValue = _CFArrayAppendValuePtr.asFunction< - void Function(CFMutableArrayRef, ffi.Pointer)>(); + late final _CFArrayAppendValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableArrayRef, ffi.Pointer) + > + >('CFArrayAppendValue'); + late final _CFArrayAppendValue = + _CFArrayAppendValuePtr.asFunction< + void Function(CFMutableArrayRef, ffi.Pointer) + >(); void CFArrayInsertValueAtIndex( CFMutableArrayRef theArray, int idx, ffi.Pointer value, ) { - return _CFArrayInsertValueAtIndex( - theArray, - idx, - value, - ); + return _CFArrayInsertValueAtIndex(theArray, idx, value); } - late final _CFArrayInsertValueAtIndexPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableArrayRef, CFIndex, - ffi.Pointer)>>('CFArrayInsertValueAtIndex'); + late final _CFArrayInsertValueAtIndexPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableArrayRef, CFIndex, ffi.Pointer) + > + >('CFArrayInsertValueAtIndex'); late final _CFArrayInsertValueAtIndex = _CFArrayInsertValueAtIndexPtr.asFunction< - void Function(CFMutableArrayRef, int, ffi.Pointer)>(); + void Function(CFMutableArrayRef, int, ffi.Pointer) + >(); void CFArraySetValueAtIndex( CFMutableArrayRef theArray, int idx, ffi.Pointer value, ) { - return _CFArraySetValueAtIndex( - theArray, - idx, - value, - ); + return _CFArraySetValueAtIndex(theArray, idx, value); } - late final _CFArraySetValueAtIndexPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableArrayRef, CFIndex, - ffi.Pointer)>>('CFArraySetValueAtIndex'); - late final _CFArraySetValueAtIndex = _CFArraySetValueAtIndexPtr.asFunction< - void Function(CFMutableArrayRef, int, ffi.Pointer)>(); + late final _CFArraySetValueAtIndexPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableArrayRef, CFIndex, ffi.Pointer) + > + >('CFArraySetValueAtIndex'); + late final _CFArraySetValueAtIndex = + _CFArraySetValueAtIndexPtr.asFunction< + void Function(CFMutableArrayRef, int, ffi.Pointer) + >(); - void CFArrayRemoveValueAtIndex( - CFMutableArrayRef theArray, - int idx, - ) { - return _CFArrayRemoveValueAtIndex( - theArray, - idx, - ); + void CFArrayRemoveValueAtIndex(CFMutableArrayRef theArray, int idx) { + return _CFArrayRemoveValueAtIndex(theArray, idx); } - late final _CFArrayRemoveValueAtIndexPtr = _lookup< - ffi.NativeFunction>( - 'CFArrayRemoveValueAtIndex'); - late final _CFArrayRemoveValueAtIndex = _CFArrayRemoveValueAtIndexPtr - .asFunction(); + late final _CFArrayRemoveValueAtIndexPtr = + _lookup< + ffi.NativeFunction + >('CFArrayRemoveValueAtIndex'); + late final _CFArrayRemoveValueAtIndex = + _CFArrayRemoveValueAtIndexPtr.asFunction< + void Function(CFMutableArrayRef, int) + >(); - void CFArrayRemoveAllValues( - CFMutableArrayRef theArray, - ) { - return _CFArrayRemoveAllValues( - theArray, - ); + void CFArrayRemoveAllValues(CFMutableArrayRef theArray) { + return _CFArrayRemoveAllValues(theArray); } late final _CFArrayRemoveAllValuesPtr = _lookup>( - 'CFArrayRemoveAllValues'); + 'CFArrayRemoveAllValues', + ); late final _CFArrayRemoveAllValues = _CFArrayRemoveAllValuesPtr.asFunction(); @@ -4590,44 +4700,48 @@ class NativeCupertinoHttp { ffi.Pointer> newValues, int newCount, ) { - return _CFArrayReplaceValues( - theArray, - range, - newValues, - newCount, - ); + return _CFArrayReplaceValues(theArray, range, newValues, newCount); } - late final _CFArrayReplaceValuesPtr = _lookup< - ffi.NativeFunction< + late final _CFArrayReplaceValuesPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - CFMutableArrayRef, - CFRange, - ffi.Pointer>, - CFIndex)>>('CFArrayReplaceValues'); - late final _CFArrayReplaceValues = _CFArrayReplaceValuesPtr.asFunction< - void Function(CFMutableArrayRef, CFRange, - ffi.Pointer>, int)>(); + CFMutableArrayRef, + CFRange, + ffi.Pointer>, + CFIndex, + ) + > + >('CFArrayReplaceValues'); + late final _CFArrayReplaceValues = + _CFArrayReplaceValuesPtr.asFunction< + void Function( + CFMutableArrayRef, + CFRange, + ffi.Pointer>, + int, + ) + >(); void CFArrayExchangeValuesAtIndices( CFMutableArrayRef theArray, int idx1, int idx2, ) { - return _CFArrayExchangeValuesAtIndices( - theArray, - idx1, - idx2, - ); + return _CFArrayExchangeValuesAtIndices(theArray, idx1, idx2); } - late final _CFArrayExchangeValuesAtIndicesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableArrayRef, CFIndex, - CFIndex)>>('CFArrayExchangeValuesAtIndices'); + late final _CFArrayExchangeValuesAtIndicesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableArrayRef, CFIndex, CFIndex) + > + >('CFArrayExchangeValuesAtIndices'); late final _CFArrayExchangeValuesAtIndices = _CFArrayExchangeValuesAtIndicesPtr.asFunction< - void Function(CFMutableArrayRef, int, int)>(); + void Function(CFMutableArrayRef, int, int) + >(); void CFArraySortValues( CFMutableArrayRef theArray, @@ -4635,113 +4749,114 @@ class NativeCupertinoHttp { CFComparatorFunction comparator, ffi.Pointer context, ) { - return _CFArraySortValues( - theArray, - range, - comparator, - context, - ); + return _CFArraySortValues(theArray, range, comparator, context); } - late final _CFArraySortValuesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableArrayRef, CFRange, CFComparatorFunction, - ffi.Pointer)>>('CFArraySortValues'); - late final _CFArraySortValues = _CFArraySortValuesPtr.asFunction< - void Function(CFMutableArrayRef, CFRange, CFComparatorFunction, - ffi.Pointer)>(); + late final _CFArraySortValuesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFMutableArrayRef, + CFRange, + CFComparatorFunction, + ffi.Pointer, + ) + > + >('CFArraySortValues'); + late final _CFArraySortValues = + _CFArraySortValuesPtr.asFunction< + void Function( + CFMutableArrayRef, + CFRange, + CFComparatorFunction, + ffi.Pointer, + ) + >(); void CFArrayAppendArray( CFMutableArrayRef theArray, CFArrayRef otherArray, CFRange otherRange, ) { - return _CFArrayAppendArray( - theArray, - otherArray, - otherRange, - ); + return _CFArrayAppendArray(theArray, otherArray, otherRange); } - late final _CFArrayAppendArrayPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableArrayRef, CFArrayRef, CFRange)>>('CFArrayAppendArray'); - late final _CFArrayAppendArray = _CFArrayAppendArrayPtr.asFunction< - void Function(CFMutableArrayRef, CFArrayRef, CFRange)>(); + late final _CFArrayAppendArrayPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableArrayRef, CFArrayRef, CFRange) + > + >('CFArrayAppendArray'); + late final _CFArrayAppendArray = + _CFArrayAppendArrayPtr.asFunction< + void Function(CFMutableArrayRef, CFArrayRef, CFRange) + >(); - ffi.Pointer os_retain( - ffi.Pointer object, - ) { - return _os_retain( - object, - ); + ffi.Pointer os_retain(ffi.Pointer object) { + return _os_retain(object); } - late final _os_retainPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('os_retain'); + late final _os_retainPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('os_retain'); late final _os_retain = _os_retainPtr .asFunction Function(ffi.Pointer)>(); - void os_release( - ffi.Pointer object, - ) { - return _os_release( - object, - ); + void os_release(ffi.Pointer object) { + return _os_release(object); } late final _os_releasePtr = _lookup)>>( - 'os_release'); - late final _os_release = - _os_releasePtr.asFunction)>(); + 'os_release', + ); + late final _os_release = _os_releasePtr + .asFunction)>(); - ffi.Pointer sec_retain( - ffi.Pointer obj, - ) { - return _sec_retain( - obj, - ); + ffi.Pointer sec_retain(ffi.Pointer obj) { + return _sec_retain(obj); } - late final _sec_retainPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('sec_retain'); + late final _sec_retainPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sec_retain'); late final _sec_retain = _sec_retainPtr .asFunction Function(ffi.Pointer)>(); - void sec_release( - ffi.Pointer obj, - ) { - return _sec_release( - obj, - ); + void sec_release(ffi.Pointer obj) { + return _sec_release(obj); } late final _sec_releasePtr = _lookup)>>( - 'sec_release'); - late final _sec_release = - _sec_releasePtr.asFunction)>(); + 'sec_release', + ); + late final _sec_release = _sec_releasePtr + .asFunction)>(); CFStringRef SecCopyErrorMessageString( int status, ffi.Pointer reserved, ) { - return _SecCopyErrorMessageString( - status, - reserved, - ); + return _SecCopyErrorMessageString(status, reserved); } - late final _SecCopyErrorMessageStringPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function( - OSStatus, ffi.Pointer)>>('SecCopyErrorMessageString'); - late final _SecCopyErrorMessageString = _SecCopyErrorMessageStringPtr - .asFunction)>(); + late final _SecCopyErrorMessageStringPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(OSStatus, ffi.Pointer) + > + >('SecCopyErrorMessageString'); + late final _SecCopyErrorMessageString = + _SecCopyErrorMessageStringPtr.asFunction< + CFStringRef Function(int, ffi.Pointer) + >(); void __assert_rtn( ffi.Pointer arg0, @@ -4749,21 +4864,29 @@ class NativeCupertinoHttp { int arg2, ffi.Pointer arg3, ) { - return ___assert_rtn( - arg0, - arg1, - arg2, - arg3, - ); + return ___assert_rtn(arg0, arg1, arg2, arg3); } - late final ___assert_rtnPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int, ffi.Pointer)>>('__assert_rtn'); - late final ___assert_rtn = ___assert_rtnPtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); + late final ___assert_rtnPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >('__assert_rtn'); + late final ___assert_rtn = ___assert_rtnPtr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); late final ffi.Pointer<_RuneLocale> __DefaultRuneLocale = _lookup<_RuneLocale>('_DefaultRuneLocale'); @@ -4778,85 +4901,66 @@ class NativeCupertinoHttp { set _CurrentRuneLocale(ffi.Pointer<_RuneLocale> value) => __CurrentRuneLocale.value = value; - int ___runetype( - int arg0, - ) { - return ____runetype( - arg0, - ); + int ___runetype(int arg0) { + return ____runetype(arg0); } - late final ____runetypePtr = _lookup< - ffi.NativeFunction>( - '___runetype'); + late final ____runetypePtr = + _lookup< + ffi.NativeFunction + >('___runetype'); late final ____runetype = ____runetypePtr.asFunction(); - int ___tolower( - int arg0, - ) { - return ____tolower( - arg0, - ); + int ___tolower(int arg0) { + return ____tolower(arg0); } - late final ____tolowerPtr = _lookup< - ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>>( - '___tolower'); + late final ____tolowerPtr = + _lookup< + ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)> + >('___tolower'); late final ____tolower = ____tolowerPtr.asFunction(); - int ___toupper( - int arg0, - ) { - return ____toupper( - arg0, - ); + int ___toupper(int arg0) { + return ____toupper(arg0); } - late final ____toupperPtr = _lookup< - ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>>( - '___toupper'); + late final ____toupperPtr = + _lookup< + ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)> + >('___toupper'); late final ____toupper = ____toupperPtr.asFunction(); - int __maskrune( - int arg0, - int arg1, - ) { - return ___maskrune( - arg0, - arg1, - ); + int __maskrune(int arg0, int arg1) { + return ___maskrune(arg0, arg1); } - late final ___maskrunePtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - __darwin_ct_rune_t, ffi.UnsignedLong)>>('__maskrune'); + late final ___maskrunePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(__darwin_ct_rune_t, ffi.UnsignedLong) + > + >('__maskrune'); late final ___maskrune = ___maskrunePtr.asFunction(); - int __toupper( - int arg0, - ) { - return ___toupper$1( - arg0, - ); + int __toupper(int arg0) { + return ___toupper$1(arg0); } - late final ___toupperPtr = _lookup< - ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>>( - '__toupper'); + late final ___toupperPtr = + _lookup< + ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)> + >('__toupper'); late final ___toupper$1 = ___toupperPtr.asFunction(); - int __tolower( - int arg0, - ) { - return ___tolower$1( - arg0, - ); + int __tolower(int arg0) { + return ___tolower$1(arg0); } - late final ___tolowerPtr = _lookup< - ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>>( - '__tolower'); + late final ___tolowerPtr = + _lookup< + ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)> + >('__tolower'); late final ___tolower$1 = ___tolowerPtr.asFunction(); ffi.Pointer __error() { @@ -4865,28 +4969,20 @@ class NativeCupertinoHttp { late final ___errorPtr = _lookup Function()>>('__error'); - late final ___error = - ___errorPtr.asFunction Function()>(); + late final ___error = ___errorPtr + .asFunction Function()>(); - locale_t duplocale( - locale_t arg0, - ) { - return _duplocale( - arg0, - ); + locale_t duplocale(locale_t arg0) { + return _duplocale(arg0); } late final _duplocalePtr = _lookup>('duplocale'); - late final _duplocale = - _duplocalePtr.asFunction(); + late final _duplocale = _duplocalePtr + .asFunction(); - int freelocale( - locale_t arg0, - ) { - return _freelocale( - arg0, - ); + int freelocale(locale_t arg0) { + return _freelocale(arg0); } late final _freelocalePtr = @@ -4899,55 +4995,41 @@ class NativeCupertinoHttp { late final _localeconvPtr = _lookup Function()>>('localeconv'); - late final _localeconv = - _localeconvPtr.asFunction Function()>(); + late final _localeconv = _localeconvPtr + .asFunction Function()>(); - locale_t newlocale( - int arg0, - ffi.Pointer arg1, - locale_t arg2, - ) { - return _newlocale( - arg0, - arg1, - arg2, - ); + locale_t newlocale(int arg0, ffi.Pointer arg1, locale_t arg2) { + return _newlocale(arg0, arg1, arg2); } - late final _newlocalePtr = _lookup< - ffi.NativeFunction< - locale_t Function( - ffi.Int, ffi.Pointer, locale_t)>>('newlocale'); + late final _newlocalePtr = + _lookup< + ffi.NativeFunction< + locale_t Function(ffi.Int, ffi.Pointer, locale_t) + > + >('newlocale'); late final _newlocale = _newlocalePtr .asFunction, locale_t)>(); - locale_t uselocale( - locale_t arg0, - ) { - return _uselocale( - arg0, - ); + locale_t uselocale(locale_t arg0) { + return _uselocale(arg0); } late final _uselocalePtr = _lookup>('uselocale'); - late final _uselocale = - _uselocalePtr.asFunction(); + late final _uselocale = _uselocalePtr + .asFunction(); - ffi.Pointer setlocale( - int arg0, - ffi.Pointer arg1, - ) { - return _setlocale( - arg0, - arg1, - ); + ffi.Pointer setlocale(int arg0, ffi.Pointer arg1) { + return _setlocale(arg0, arg1); } - late final _setlocalePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Pointer)>>('setlocale'); + late final _setlocalePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Pointer) + > + >('setlocale'); late final _setlocale = _setlocalePtr .asFunction Function(int, ffi.Pointer)>(); @@ -4957,1754 +5039,1194 @@ class NativeCupertinoHttp { late final ___math_errhandlingPtr = _lookup>('__math_errhandling'); - late final ___math_errhandling = - ___math_errhandlingPtr.asFunction(); + late final ___math_errhandling = ___math_errhandlingPtr + .asFunction(); - int __fpclassifyf( - double arg0, - ) { - return ___fpclassifyf( - arg0, - ); + int __fpclassifyf(double arg0) { + return ___fpclassifyf(arg0); } late final ___fpclassifyfPtr = _lookup>('__fpclassifyf'); - late final ___fpclassifyf = - ___fpclassifyfPtr.asFunction(); + late final ___fpclassifyf = ___fpclassifyfPtr + .asFunction(); - int __fpclassifyd( - double arg0, - ) { - return ___fpclassifyd( - arg0, - ); + int __fpclassifyd(double arg0) { + return ___fpclassifyd(arg0); } late final ___fpclassifydPtr = _lookup>( - '__fpclassifyd'); - late final ___fpclassifyd = - ___fpclassifydPtr.asFunction(); + '__fpclassifyd', + ); + late final ___fpclassifyd = ___fpclassifydPtr + .asFunction(); - double acosf( - double arg0, - ) { - return _acosf( - arg0, - ); + double acosf(double arg0) { + return _acosf(arg0); } late final _acosfPtr = _lookup>('acosf'); late final _acosf = _acosfPtr.asFunction(); - double acos( - double arg0, - ) { - return _acos( - arg0, - ); + double acos(double arg0) { + return _acos(arg0); } late final _acosPtr = _lookup>('acos'); late final _acos = _acosPtr.asFunction(); - double asinf( - double arg0, - ) { - return _asinf( - arg0, - ); + double asinf(double arg0) { + return _asinf(arg0); } late final _asinfPtr = _lookup>('asinf'); late final _asinf = _asinfPtr.asFunction(); - double asin( - double arg0, - ) { - return _asin( - arg0, - ); + double asin(double arg0) { + return _asin(arg0); } late final _asinPtr = _lookup>('asin'); late final _asin = _asinPtr.asFunction(); - double atanf( - double arg0, - ) { - return _atanf( - arg0, - ); + double atanf(double arg0) { + return _atanf(arg0); } late final _atanfPtr = _lookup>('atanf'); late final _atanf = _atanfPtr.asFunction(); - double atan( - double arg0, - ) { - return _atan( - arg0, - ); + double atan(double arg0) { + return _atan(arg0); } late final _atanPtr = _lookup>('atan'); late final _atan = _atanPtr.asFunction(); - double atan2f( - double arg0, - double arg1, - ) { - return _atan2f( - arg0, - arg1, - ); + double atan2f(double arg0, double arg1) { + return _atan2f(arg0, arg1); } late final _atan2fPtr = _lookup>( - 'atan2f'); + 'atan2f', + ); late final _atan2f = _atan2fPtr.asFunction(); - double atan2( - double arg0, - double arg1, - ) { - return _atan2( - arg0, - arg1, - ); + double atan2(double arg0, double arg1) { + return _atan2(arg0, arg1); } late final _atan2Ptr = _lookup>( - 'atan2'); + 'atan2', + ); late final _atan2 = _atan2Ptr.asFunction(); - double cosf( - double arg0, - ) { - return _cosf( - arg0, - ); + double cosf(double arg0) { + return _cosf(arg0); } late final _cosfPtr = _lookup>('cosf'); late final _cosf = _cosfPtr.asFunction(); - double cos( - double arg0, - ) { - return _cos( - arg0, - ); + double cos(double arg0) { + return _cos(arg0); } late final _cosPtr = _lookup>('cos'); late final _cos = _cosPtr.asFunction(); - double sinf( - double arg0, - ) { - return _sinf( - arg0, - ); + double sinf(double arg0) { + return _sinf(arg0); } late final _sinfPtr = _lookup>('sinf'); late final _sinf = _sinfPtr.asFunction(); - double sin( - double arg0, - ) { - return _sin( - arg0, - ); + double sin(double arg0) { + return _sin(arg0); } late final _sinPtr = _lookup>('sin'); late final _sin = _sinPtr.asFunction(); - double tanf( - double arg0, - ) { - return _tanf( - arg0, - ); + double tanf(double arg0) { + return _tanf(arg0); } late final _tanfPtr = _lookup>('tanf'); late final _tanf = _tanfPtr.asFunction(); - double tan( - double arg0, - ) { - return _tan( - arg0, - ); + double tan(double arg0) { + return _tan(arg0); } late final _tanPtr = _lookup>('tan'); late final _tan = _tanPtr.asFunction(); - double acoshf( - double arg0, - ) { - return _acoshf( - arg0, - ); + double acoshf(double arg0) { + return _acoshf(arg0); } late final _acoshfPtr = _lookup>('acoshf'); late final _acoshf = _acoshfPtr.asFunction(); - double acosh( - double arg0, - ) { - return _acosh( - arg0, - ); + double acosh(double arg0) { + return _acosh(arg0); } late final _acoshPtr = _lookup>('acosh'); late final _acosh = _acoshPtr.asFunction(); - double asinhf( - double arg0, - ) { - return _asinhf( - arg0, - ); + double asinhf(double arg0) { + return _asinhf(arg0); } late final _asinhfPtr = _lookup>('asinhf'); late final _asinhf = _asinhfPtr.asFunction(); - double asinh( - double arg0, - ) { - return _asinh( - arg0, - ); + double asinh(double arg0) { + return _asinh(arg0); } late final _asinhPtr = _lookup>('asinh'); late final _asinh = _asinhPtr.asFunction(); - double atanhf( - double arg0, - ) { - return _atanhf( - arg0, - ); + double atanhf(double arg0) { + return _atanhf(arg0); } late final _atanhfPtr = _lookup>('atanhf'); late final _atanhf = _atanhfPtr.asFunction(); - double atanh( - double arg0, - ) { - return _atanh( - arg0, - ); + double atanh(double arg0) { + return _atanh(arg0); } late final _atanhPtr = _lookup>('atanh'); late final _atanh = _atanhPtr.asFunction(); - double coshf( - double arg0, - ) { - return _coshf( - arg0, - ); + double coshf(double arg0) { + return _coshf(arg0); } late final _coshfPtr = _lookup>('coshf'); late final _coshf = _coshfPtr.asFunction(); - double cosh( - double arg0, - ) { - return _cosh( - arg0, - ); + double cosh(double arg0) { + return _cosh(arg0); } late final _coshPtr = _lookup>('cosh'); late final _cosh = _coshPtr.asFunction(); - double sinhf( - double arg0, - ) { - return _sinhf( - arg0, - ); + double sinhf(double arg0) { + return _sinhf(arg0); } late final _sinhfPtr = _lookup>('sinhf'); late final _sinhf = _sinhfPtr.asFunction(); - double sinh( - double arg0, - ) { - return _sinh( - arg0, - ); + double sinh(double arg0) { + return _sinh(arg0); } late final _sinhPtr = _lookup>('sinh'); late final _sinh = _sinhPtr.asFunction(); - double tanhf( - double arg0, - ) { - return _tanhf( - arg0, - ); + double tanhf(double arg0) { + return _tanhf(arg0); } late final _tanhfPtr = _lookup>('tanhf'); late final _tanhf = _tanhfPtr.asFunction(); - double tanh( - double arg0, - ) { - return _tanh( - arg0, - ); + double tanh(double arg0) { + return _tanh(arg0); } late final _tanhPtr = _lookup>('tanh'); late final _tanh = _tanhPtr.asFunction(); - double expf( - double arg0, - ) { - return _expf( - arg0, - ); + double expf(double arg0) { + return _expf(arg0); } late final _expfPtr = _lookup>('expf'); late final _expf = _expfPtr.asFunction(); - double exp( - double arg0, - ) { - return _exp( - arg0, - ); + double exp(double arg0) { + return _exp(arg0); } late final _expPtr = _lookup>('exp'); late final _exp = _expPtr.asFunction(); - double exp2f( - double arg0, - ) { - return _exp2f( - arg0, - ); + double exp2f(double arg0) { + return _exp2f(arg0); } late final _exp2fPtr = _lookup>('exp2f'); late final _exp2f = _exp2fPtr.asFunction(); - double exp2( - double arg0, - ) { - return _exp2( - arg0, - ); + double exp2(double arg0) { + return _exp2(arg0); } late final _exp2Ptr = _lookup>('exp2'); late final _exp2 = _exp2Ptr.asFunction(); - double expm1f( - double arg0, - ) { - return _expm1f( - arg0, - ); + double expm1f(double arg0) { + return _expm1f(arg0); } late final _expm1fPtr = _lookup>('expm1f'); late final _expm1f = _expm1fPtr.asFunction(); - double expm1( - double arg0, - ) { - return _expm1( - arg0, - ); + double expm1(double arg0) { + return _expm1(arg0); } late final _expm1Ptr = _lookup>('expm1'); late final _expm1 = _expm1Ptr.asFunction(); - double logf( - double arg0, - ) { - return _logf( - arg0, - ); + double logf(double arg0) { + return _logf(arg0); } late final _logfPtr = _lookup>('logf'); late final _logf = _logfPtr.asFunction(); - double log( - double arg0, - ) { - return _log( - arg0, - ); + double log(double arg0) { + return _log(arg0); } late final _logPtr = _lookup>('log'); late final _log = _logPtr.asFunction(); - double log10f( - double arg0, - ) { - return _log10f( - arg0, - ); + double log10f(double arg0) { + return _log10f(arg0); } late final _log10fPtr = _lookup>('log10f'); late final _log10f = _log10fPtr.asFunction(); - double log10( - double arg0, - ) { - return _log10( - arg0, - ); + double log10(double arg0) { + return _log10(arg0); } late final _log10Ptr = _lookup>('log10'); late final _log10 = _log10Ptr.asFunction(); - double log2f( - double arg0, - ) { - return _log2f( - arg0, - ); + double log2f(double arg0) { + return _log2f(arg0); } late final _log2fPtr = _lookup>('log2f'); late final _log2f = _log2fPtr.asFunction(); - double log2( - double arg0, - ) { - return _log2( - arg0, - ); + double log2(double arg0) { + return _log2(arg0); } late final _log2Ptr = _lookup>('log2'); late final _log2 = _log2Ptr.asFunction(); - double log1pf( - double arg0, - ) { - return _log1pf( - arg0, - ); + double log1pf(double arg0) { + return _log1pf(arg0); } late final _log1pfPtr = _lookup>('log1pf'); late final _log1pf = _log1pfPtr.asFunction(); - double log1p( - double arg0, - ) { - return _log1p( - arg0, - ); + double log1p(double arg0) { + return _log1p(arg0); } late final _log1pPtr = _lookup>('log1p'); late final _log1p = _log1pPtr.asFunction(); - double logbf( - double arg0, - ) { - return _logbf( - arg0, - ); + double logbf(double arg0) { + return _logbf(arg0); } late final _logbfPtr = _lookup>('logbf'); late final _logbf = _logbfPtr.asFunction(); - double logb( - double arg0, - ) { - return _logb( - arg0, - ); + double logb(double arg0) { + return _logb(arg0); } late final _logbPtr = _lookup>('logb'); late final _logb = _logbPtr.asFunction(); - double modff( - double arg0, - ffi.Pointer arg1, - ) { - return _modff( - arg0, - arg1, - ); + double modff(double arg0, ffi.Pointer arg1) { + return _modff(arg0, arg1); } - late final _modffPtr = _lookup< - ffi.NativeFunction< - ffi.Float Function(ffi.Float, ffi.Pointer)>>('modff'); - late final _modff = - _modffPtr.asFunction)>(); + late final _modffPtr = + _lookup< + ffi.NativeFunction< + ffi.Float Function(ffi.Float, ffi.Pointer) + > + >('modff'); + late final _modff = _modffPtr + .asFunction)>(); - double modf( - double arg0, - ffi.Pointer arg1, - ) { - return _modf( - arg0, - arg1, - ); + double modf(double arg0, ffi.Pointer arg1) { + return _modf(arg0, arg1); } - late final _modfPtr = _lookup< - ffi.NativeFunction< - ffi.Double Function(ffi.Double, ffi.Pointer)>>('modf'); - late final _modf = - _modfPtr.asFunction)>(); + late final _modfPtr = + _lookup< + ffi.NativeFunction< + ffi.Double Function(ffi.Double, ffi.Pointer) + > + >('modf'); + late final _modf = _modfPtr + .asFunction)>(); - double ldexpf( - double arg0, - int arg1, - ) { - return _ldexpf( - arg0, - arg1, - ); + double ldexpf(double arg0, int arg1) { + return _ldexpf(arg0, arg1); } late final _ldexpfPtr = _lookup>( - 'ldexpf'); + 'ldexpf', + ); late final _ldexpf = _ldexpfPtr.asFunction(); - double ldexp( - double arg0, - int arg1, - ) { - return _ldexp( - arg0, - arg1, - ); + double ldexp(double arg0, int arg1) { + return _ldexp(arg0, arg1); } late final _ldexpPtr = _lookup>( - 'ldexp'); + 'ldexp', + ); late final _ldexp = _ldexpPtr.asFunction(); - double frexpf( - double arg0, - ffi.Pointer arg1, - ) { - return _frexpf( - arg0, - arg1, - ); + double frexpf(double arg0, ffi.Pointer arg1) { + return _frexpf(arg0, arg1); } - late final _frexpfPtr = _lookup< - ffi.NativeFunction< - ffi.Float Function(ffi.Float, ffi.Pointer)>>('frexpf'); - late final _frexpf = - _frexpfPtr.asFunction)>(); + late final _frexpfPtr = + _lookup< + ffi.NativeFunction)> + >('frexpf'); + late final _frexpf = _frexpfPtr + .asFunction)>(); - double frexp( - double arg0, - ffi.Pointer arg1, - ) { - return _frexp( - arg0, - arg1, - ); + double frexp(double arg0, ffi.Pointer arg1) { + return _frexp(arg0, arg1); } - late final _frexpPtr = _lookup< - ffi.NativeFunction< - ffi.Double Function(ffi.Double, ffi.Pointer)>>('frexp'); - late final _frexp = - _frexpPtr.asFunction)>(); + late final _frexpPtr = + _lookup< + ffi.NativeFunction< + ffi.Double Function(ffi.Double, ffi.Pointer) + > + >('frexp'); + late final _frexp = _frexpPtr + .asFunction)>(); - int ilogbf( - double arg0, - ) { - return _ilogbf( - arg0, - ); + int ilogbf(double arg0) { + return _ilogbf(arg0); } late final _ilogbfPtr = _lookup>('ilogbf'); late final _ilogbf = _ilogbfPtr.asFunction(); - int ilogb( - double arg0, - ) { - return _ilogb( - arg0, - ); + int ilogb(double arg0) { + return _ilogb(arg0); } late final _ilogbPtr = _lookup>('ilogb'); late final _ilogb = _ilogbPtr.asFunction(); - double scalbnf( - double arg0, - int arg1, - ) { - return _scalbnf( - arg0, - arg1, - ); + double scalbnf(double arg0, int arg1) { + return _scalbnf(arg0, arg1); } late final _scalbnfPtr = _lookup>( - 'scalbnf'); + 'scalbnf', + ); late final _scalbnf = _scalbnfPtr.asFunction(); - double scalbn( - double arg0, - int arg1, - ) { - return _scalbn( - arg0, - arg1, - ); + double scalbn(double arg0, int arg1) { + return _scalbn(arg0, arg1); } late final _scalbnPtr = _lookup>( - 'scalbn'); + 'scalbn', + ); late final _scalbn = _scalbnPtr.asFunction(); - double scalblnf( - double arg0, - int arg1, - ) { - return _scalblnf( - arg0, - arg1, - ); + double scalblnf(double arg0, int arg1) { + return _scalblnf(arg0, arg1); } late final _scalblnfPtr = _lookup>( - 'scalblnf'); - late final _scalblnf = - _scalblnfPtr.asFunction(); + 'scalblnf', + ); + late final _scalblnf = _scalblnfPtr + .asFunction(); - double scalbln( - double arg0, - int arg1, - ) { - return _scalbln( - arg0, - arg1, - ); + double scalbln(double arg0, int arg1) { + return _scalbln(arg0, arg1); } late final _scalblnPtr = _lookup>( - 'scalbln'); + 'scalbln', + ); late final _scalbln = _scalblnPtr.asFunction(); - double fabsf( - double arg0, - ) { - return _fabsf( - arg0, - ); + double fabsf(double arg0) { + return _fabsf(arg0); } late final _fabsfPtr = _lookup>('fabsf'); late final _fabsf = _fabsfPtr.asFunction(); - double fabs( - double arg0, - ) { - return _fabs( - arg0, - ); + double fabs(double arg0) { + return _fabs(arg0); } late final _fabsPtr = _lookup>('fabs'); late final _fabs = _fabsPtr.asFunction(); - double cbrtf( - double arg0, - ) { - return _cbrtf( - arg0, - ); + double cbrtf(double arg0) { + return _cbrtf(arg0); } late final _cbrtfPtr = _lookup>('cbrtf'); late final _cbrtf = _cbrtfPtr.asFunction(); - double cbrt( - double arg0, - ) { - return _cbrt( - arg0, - ); + double cbrt(double arg0) { + return _cbrt(arg0); } late final _cbrtPtr = _lookup>('cbrt'); late final _cbrt = _cbrtPtr.asFunction(); - double hypotf( - double arg0, - double arg1, - ) { - return _hypotf( - arg0, - arg1, - ); + double hypotf(double arg0, double arg1) { + return _hypotf(arg0, arg1); } late final _hypotfPtr = _lookup>( - 'hypotf'); + 'hypotf', + ); late final _hypotf = _hypotfPtr.asFunction(); - double hypot( - double arg0, - double arg1, - ) { - return _hypot( - arg0, - arg1, - ); + double hypot(double arg0, double arg1) { + return _hypot(arg0, arg1); } late final _hypotPtr = _lookup>( - 'hypot'); + 'hypot', + ); late final _hypot = _hypotPtr.asFunction(); - double powf( - double arg0, - double arg1, - ) { - return _powf( - arg0, - arg1, - ); + double powf(double arg0, double arg1) { + return _powf(arg0, arg1); } late final _powfPtr = _lookup>( - 'powf'); + 'powf', + ); late final _powf = _powfPtr.asFunction(); - double pow( - double arg0, - double arg1, - ) { - return _pow( - arg0, - arg1, - ); + double pow(double arg0, double arg1) { + return _pow(arg0, arg1); } late final _powPtr = _lookup>( - 'pow'); + 'pow', + ); late final _pow = _powPtr.asFunction(); - double sqrtf( - double arg0, - ) { - return _sqrtf( - arg0, - ); + double sqrtf(double arg0) { + return _sqrtf(arg0); } late final _sqrtfPtr = _lookup>('sqrtf'); late final _sqrtf = _sqrtfPtr.asFunction(); - double sqrt( - double arg0, - ) { - return _sqrt( - arg0, - ); + double sqrt(double arg0) { + return _sqrt(arg0); } late final _sqrtPtr = _lookup>('sqrt'); late final _sqrt = _sqrtPtr.asFunction(); - double erff( - double arg0, - ) { - return _erff( - arg0, - ); + double erff(double arg0) { + return _erff(arg0); } late final _erffPtr = _lookup>('erff'); late final _erff = _erffPtr.asFunction(); - double erf( - double arg0, - ) { - return _erf( - arg0, - ); + double erf(double arg0) { + return _erf(arg0); } late final _erfPtr = _lookup>('erf'); late final _erf = _erfPtr.asFunction(); - double erfcf( - double arg0, - ) { - return _erfcf( - arg0, - ); + double erfcf(double arg0) { + return _erfcf(arg0); } late final _erfcfPtr = _lookup>('erfcf'); late final _erfcf = _erfcfPtr.asFunction(); - double erfc( - double arg0, - ) { - return _erfc( - arg0, - ); + double erfc(double arg0) { + return _erfc(arg0); } late final _erfcPtr = _lookup>('erfc'); late final _erfc = _erfcPtr.asFunction(); - double lgammaf( - double arg0, - ) { - return _lgammaf( - arg0, - ); + double lgammaf(double arg0) { + return _lgammaf(arg0); } late final _lgammafPtr = _lookup>('lgammaf'); late final _lgammaf = _lgammafPtr.asFunction(); - double lgamma( - double arg0, - ) { - return _lgamma( - arg0, - ); + double lgamma(double arg0) { + return _lgamma(arg0); } late final _lgammaPtr = _lookup>('lgamma'); late final _lgamma = _lgammaPtr.asFunction(); - double tgammaf( - double arg0, - ) { - return _tgammaf( - arg0, - ); + double tgammaf(double arg0) { + return _tgammaf(arg0); } late final _tgammafPtr = _lookup>('tgammaf'); late final _tgammaf = _tgammafPtr.asFunction(); - double tgamma( - double arg0, - ) { - return _tgamma( - arg0, - ); + double tgamma(double arg0) { + return _tgamma(arg0); } late final _tgammaPtr = _lookup>('tgamma'); late final _tgamma = _tgammaPtr.asFunction(); - double ceilf( - double arg0, - ) { - return _ceilf( - arg0, - ); + double ceilf(double arg0) { + return _ceilf(arg0); } late final _ceilfPtr = _lookup>('ceilf'); late final _ceilf = _ceilfPtr.asFunction(); - double ceil( - double arg0, - ) { - return _ceil( - arg0, - ); + double ceil(double arg0) { + return _ceil(arg0); } late final _ceilPtr = _lookup>('ceil'); late final _ceil = _ceilPtr.asFunction(); - double floorf( - double arg0, - ) { - return _floorf( - arg0, - ); + double floorf(double arg0) { + return _floorf(arg0); } late final _floorfPtr = _lookup>('floorf'); late final _floorf = _floorfPtr.asFunction(); - double floor( - double arg0, - ) { - return _floor( - arg0, - ); + double floor(double arg0) { + return _floor(arg0); } late final _floorPtr = _lookup>('floor'); late final _floor = _floorPtr.asFunction(); - double nearbyintf( - double arg0, - ) { - return _nearbyintf( - arg0, - ); + double nearbyintf(double arg0) { + return _nearbyintf(arg0); } late final _nearbyintfPtr = _lookup>('nearbyintf'); late final _nearbyintf = _nearbyintfPtr.asFunction(); - double nearbyint( - double arg0, - ) { - return _nearbyint( - arg0, - ); + double nearbyint(double arg0) { + return _nearbyint(arg0); } late final _nearbyintPtr = _lookup>('nearbyint'); late final _nearbyint = _nearbyintPtr.asFunction(); - double rintf( - double arg0, - ) { - return _rintf( - arg0, - ); + double rintf(double arg0) { + return _rintf(arg0); } late final _rintfPtr = _lookup>('rintf'); late final _rintf = _rintfPtr.asFunction(); - double rint( - double arg0, - ) { - return _rint( - arg0, - ); + double rint(double arg0) { + return _rint(arg0); } late final _rintPtr = _lookup>('rint'); late final _rint = _rintPtr.asFunction(); - int lrintf( - double arg0, - ) { - return _lrintf( - arg0, - ); + int lrintf(double arg0) { + return _lrintf(arg0); } late final _lrintfPtr = _lookup>('lrintf'); late final _lrintf = _lrintfPtr.asFunction(); - int lrint( - double arg0, - ) { - return _lrint( - arg0, - ); + int lrint(double arg0) { + return _lrint(arg0); } late final _lrintPtr = _lookup>('lrint'); late final _lrint = _lrintPtr.asFunction(); - double roundf( - double arg0, - ) { - return _roundf( - arg0, - ); + double roundf(double arg0) { + return _roundf(arg0); } late final _roundfPtr = _lookup>('roundf'); late final _roundf = _roundfPtr.asFunction(); - double round( - double arg0, - ) { - return _round( - arg0, - ); + double round(double arg0) { + return _round(arg0); } late final _roundPtr = _lookup>('round'); late final _round = _roundPtr.asFunction(); - int lroundf( - double arg0, - ) { - return _lroundf( - arg0, - ); + int lroundf(double arg0) { + return _lroundf(arg0); } late final _lroundfPtr = _lookup>('lroundf'); late final _lroundf = _lroundfPtr.asFunction(); - int lround( - double arg0, - ) { - return _lround( - arg0, - ); + int lround(double arg0) { + return _lround(arg0); } late final _lroundPtr = _lookup>('lround'); late final _lround = _lroundPtr.asFunction(); - int llrintf( - double arg0, - ) { - return _llrintf( - arg0, - ); + int llrintf(double arg0) { + return _llrintf(arg0); } late final _llrintfPtr = _lookup>('llrintf'); late final _llrintf = _llrintfPtr.asFunction(); - int llrint( - double arg0, - ) { - return _llrint( - arg0, - ); + int llrint(double arg0) { + return _llrint(arg0); } late final _llrintPtr = _lookup>('llrint'); late final _llrint = _llrintPtr.asFunction(); - int llroundf( - double arg0, - ) { - return _llroundf( - arg0, - ); + int llroundf(double arg0) { + return _llroundf(arg0); } late final _llroundfPtr = _lookup>('llroundf'); late final _llroundf = _llroundfPtr.asFunction(); - int llround( - double arg0, - ) { - return _llround( - arg0, - ); + int llround(double arg0) { + return _llround(arg0); } late final _llroundPtr = _lookup>('llround'); late final _llround = _llroundPtr.asFunction(); - double truncf( - double arg0, - ) { - return _truncf( - arg0, - ); + double truncf(double arg0) { + return _truncf(arg0); } late final _truncfPtr = _lookup>('truncf'); late final _truncf = _truncfPtr.asFunction(); - double trunc( - double arg0, - ) { - return _trunc( - arg0, - ); + double trunc(double arg0) { + return _trunc(arg0); } late final _truncPtr = _lookup>('trunc'); late final _trunc = _truncPtr.asFunction(); - double fmodf( - double arg0, - double arg1, - ) { - return _fmodf( - arg0, - arg1, - ); + double fmodf(double arg0, double arg1) { + return _fmodf(arg0, arg1); } late final _fmodfPtr = _lookup>( - 'fmodf'); + 'fmodf', + ); late final _fmodf = _fmodfPtr.asFunction(); - double fmod( - double arg0, - double arg1, - ) { - return _fmod( - arg0, - arg1, - ); + double fmod(double arg0, double arg1) { + return _fmod(arg0, arg1); } late final _fmodPtr = _lookup>( - 'fmod'); + 'fmod', + ); late final _fmod = _fmodPtr.asFunction(); - double remainderf( - double arg0, - double arg1, - ) { - return _remainderf( - arg0, - arg1, - ); + double remainderf(double arg0, double arg1) { + return _remainderf(arg0, arg1); } late final _remainderfPtr = _lookup>( - 'remainderf'); - late final _remainderf = - _remainderfPtr.asFunction(); + 'remainderf', + ); + late final _remainderf = _remainderfPtr + .asFunction(); - double remainder( - double arg0, - double arg1, - ) { - return _remainder( - arg0, - arg1, - ); + double remainder(double arg0, double arg1) { + return _remainder(arg0, arg1); } late final _remainderPtr = _lookup>( - 'remainder'); - late final _remainder = - _remainderPtr.asFunction(); + 'remainder', + ); + late final _remainder = _remainderPtr + .asFunction(); - double remquof( - double arg0, - double arg1, - ffi.Pointer arg2, - ) { - return _remquof( - arg0, - arg1, - arg2, - ); + double remquof(double arg0, double arg1, ffi.Pointer arg2) { + return _remquof(arg0, arg1, arg2); } - late final _remquofPtr = _lookup< - ffi.NativeFunction< - ffi.Float Function( - ffi.Float, ffi.Float, ffi.Pointer)>>('remquof'); + late final _remquofPtr = + _lookup< + ffi.NativeFunction< + ffi.Float Function(ffi.Float, ffi.Float, ffi.Pointer) + > + >('remquof'); late final _remquof = _remquofPtr .asFunction)>(); - double remquo( - double arg0, - double arg1, - ffi.Pointer arg2, - ) { - return _remquo( - arg0, - arg1, - arg2, - ); + double remquo(double arg0, double arg1, ffi.Pointer arg2) { + return _remquo(arg0, arg1, arg2); } - late final _remquoPtr = _lookup< - ffi.NativeFunction< - ffi.Double Function( - ffi.Double, ffi.Double, ffi.Pointer)>>('remquo'); + late final _remquoPtr = + _lookup< + ffi.NativeFunction< + ffi.Double Function(ffi.Double, ffi.Double, ffi.Pointer) + > + >('remquo'); late final _remquo = _remquoPtr .asFunction)>(); - double copysignf( - double arg0, - double arg1, - ) { - return _copysignf( - arg0, - arg1, - ); + double copysignf(double arg0, double arg1) { + return _copysignf(arg0, arg1); } late final _copysignfPtr = _lookup>( - 'copysignf'); - late final _copysignf = - _copysignfPtr.asFunction(); + 'copysignf', + ); + late final _copysignf = _copysignfPtr + .asFunction(); - double copysign( - double arg0, - double arg1, - ) { - return _copysign( - arg0, - arg1, - ); + double copysign(double arg0, double arg1) { + return _copysign(arg0, arg1); } late final _copysignPtr = _lookup>( - 'copysign'); - late final _copysign = - _copysignPtr.asFunction(); + 'copysign', + ); + late final _copysign = _copysignPtr + .asFunction(); - double nanf( - ffi.Pointer arg0, - ) { - return _nanf( - arg0, - ); + double nanf(ffi.Pointer arg0) { + return _nanf(arg0); } late final _nanfPtr = _lookup)>>( - 'nanf'); - late final _nanf = - _nanfPtr.asFunction)>(); + 'nanf', + ); + late final _nanf = _nanfPtr + .asFunction)>(); - double nan( - ffi.Pointer arg0, - ) { - return _nan( - arg0, - ); + double nan(ffi.Pointer arg0) { + return _nan(arg0); } late final _nanPtr = _lookup)>>( - 'nan'); - late final _nan = - _nanPtr.asFunction)>(); + 'nan', + ); + late final _nan = _nanPtr + .asFunction)>(); - double nextafterf( - double arg0, - double arg1, - ) { - return _nextafterf( - arg0, - arg1, - ); + double nextafterf(double arg0, double arg1) { + return _nextafterf(arg0, arg1); } late final _nextafterfPtr = _lookup>( - 'nextafterf'); - late final _nextafterf = - _nextafterfPtr.asFunction(); + 'nextafterf', + ); + late final _nextafterf = _nextafterfPtr + .asFunction(); - double nextafter( - double arg0, - double arg1, - ) { - return _nextafter( - arg0, - arg1, - ); + double nextafter(double arg0, double arg1) { + return _nextafter(arg0, arg1); } late final _nextafterPtr = _lookup>( - 'nextafter'); - late final _nextafter = - _nextafterPtr.asFunction(); + 'nextafter', + ); + late final _nextafter = _nextafterPtr + .asFunction(); - double fdimf( - double arg0, - double arg1, - ) { - return _fdimf( - arg0, - arg1, - ); + double fdimf(double arg0, double arg1) { + return _fdimf(arg0, arg1); } late final _fdimfPtr = _lookup>( - 'fdimf'); + 'fdimf', + ); late final _fdimf = _fdimfPtr.asFunction(); - double fdim( - double arg0, - double arg1, - ) { - return _fdim( - arg0, - arg1, - ); + double fdim(double arg0, double arg1) { + return _fdim(arg0, arg1); } late final _fdimPtr = _lookup>( - 'fdim'); + 'fdim', + ); late final _fdim = _fdimPtr.asFunction(); - double fmaxf( - double arg0, - double arg1, - ) { - return _fmaxf( - arg0, - arg1, - ); + double fmaxf(double arg0, double arg1) { + return _fmaxf(arg0, arg1); } late final _fmaxfPtr = _lookup>( - 'fmaxf'); + 'fmaxf', + ); late final _fmaxf = _fmaxfPtr.asFunction(); - double fmax( - double arg0, - double arg1, - ) { - return _fmax( - arg0, - arg1, - ); + double fmax(double arg0, double arg1) { + return _fmax(arg0, arg1); } late final _fmaxPtr = _lookup>( - 'fmax'); + 'fmax', + ); late final _fmax = _fmaxPtr.asFunction(); - double fminf( - double arg0, - double arg1, - ) { - return _fminf( - arg0, - arg1, - ); + double fminf(double arg0, double arg1) { + return _fminf(arg0, arg1); } late final _fminfPtr = _lookup>( - 'fminf'); + 'fminf', + ); late final _fminf = _fminfPtr.asFunction(); - double fmin( - double arg0, - double arg1, - ) { - return _fmin( - arg0, - arg1, - ); + double fmin(double arg0, double arg1) { + return _fmin(arg0, arg1); } late final _fminPtr = _lookup>( - 'fmin'); + 'fmin', + ); late final _fmin = _fminPtr.asFunction(); - double fmaf( - double arg0, - double arg1, - double arg2, - ) { - return _fmaf( - arg0, - arg1, - arg2, - ); + double fmaf(double arg0, double arg1, double arg2) { + return _fmaf(arg0, arg1, arg2); } - late final _fmafPtr = _lookup< - ffi.NativeFunction< - ffi.Float Function(ffi.Float, ffi.Float, ffi.Float)>>('fmaf'); - late final _fmaf = - _fmafPtr.asFunction(); + late final _fmafPtr = + _lookup< + ffi.NativeFunction + >('fmaf'); + late final _fmaf = _fmafPtr + .asFunction(); - double fma( - double arg0, - double arg1, - double arg2, - ) { - return _fma( - arg0, - arg1, - arg2, - ); + double fma(double arg0, double arg1, double arg2) { + return _fma(arg0, arg1, arg2); } - late final _fmaPtr = _lookup< - ffi.NativeFunction< - ffi.Double Function(ffi.Double, ffi.Double, ffi.Double)>>('fma'); - late final _fma = - _fmaPtr.asFunction(); + late final _fmaPtr = + _lookup< + ffi.NativeFunction< + ffi.Double Function(ffi.Double, ffi.Double, ffi.Double) + > + >('fma'); + late final _fma = _fmaPtr + .asFunction(); - double __exp10f( - double arg0, - ) { - return ___exp10f( - arg0, - ); + double __exp10f(double arg0) { + return ___exp10f(arg0); } late final ___exp10fPtr = _lookup>('__exp10f'); late final ___exp10f = ___exp10fPtr.asFunction(); - double __exp10( - double arg0, - ) { - return ___exp10( - arg0, - ); + double __exp10(double arg0) { + return ___exp10(arg0); } late final ___exp10Ptr = _lookup>('__exp10'); late final ___exp10 = ___exp10Ptr.asFunction(); - double __cospif( - double arg0, - ) { - return ___cospif( - arg0, - ); + double __cospif(double arg0) { + return ___cospif(arg0); } late final ___cospifPtr = _lookup>('__cospif'); late final ___cospif = ___cospifPtr.asFunction(); - double __cospi( - double arg0, - ) { - return ___cospi( - arg0, - ); + double __cospi(double arg0) { + return ___cospi(arg0); } late final ___cospiPtr = _lookup>('__cospi'); late final ___cospi = ___cospiPtr.asFunction(); - double __sinpif( - double arg0, - ) { - return ___sinpif( - arg0, - ); + double __sinpif(double arg0) { + return ___sinpif(arg0); } late final ___sinpifPtr = _lookup>('__sinpif'); late final ___sinpif = ___sinpifPtr.asFunction(); - double __sinpi( - double arg0, - ) { - return ___sinpi( - arg0, - ); + double __sinpi(double arg0) { + return ___sinpi(arg0); } late final ___sinpiPtr = _lookup>('__sinpi'); late final ___sinpi = ___sinpiPtr.asFunction(); - double __tanpif( - double arg0, - ) { - return ___tanpif( - arg0, - ); + double __tanpif(double arg0) { + return ___tanpif(arg0); } late final ___tanpifPtr = _lookup>('__tanpif'); late final ___tanpif = ___tanpifPtr.asFunction(); - double __tanpi( - double arg0, - ) { - return ___tanpi( - arg0, - ); + double __tanpi(double arg0) { + return ___tanpi(arg0); } late final ___tanpiPtr = _lookup>('__tanpi'); late final ___tanpi = ___tanpiPtr.asFunction(); - __float2 __sincosf_stret( - double arg0, - ) { - return ___sincosf_stret( - arg0, - ); + __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)>(); + '__sincosf_stret', + ); + late final ___sincosf_stret = ___sincosf_stretPtr + .asFunction<__float2 Function(double)>(); - __double2 __sincos_stret( - double arg0, - ) { - return ___sincos_stret( - arg0, - ); + __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)>(); + '__sincos_stret', + ); + late final ___sincos_stret = ___sincos_stretPtr + .asFunction<__double2 Function(double)>(); - __float2 __sincospif_stret( - double arg0, - ) { - return ___sincospif_stret( - arg0, - ); + __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)>(); + '__sincospif_stret', + ); + late final ___sincospif_stret = ___sincospif_stretPtr + .asFunction<__float2 Function(double)>(); - __double2 __sincospi_stret( - double arg0, - ) { - return ___sincospi_stret( - arg0, - ); + __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)>(); + '__sincospi_stret', + ); + late final ___sincospi_stret = ___sincospi_stretPtr + .asFunction<__double2 Function(double)>(); - double j0( - double arg0, - ) { - return _j0( - arg0, - ); + double j0(double arg0) { + return _j0(arg0); } late final _j0Ptr = _lookup>('j0'); late final _j0 = _j0Ptr.asFunction(); - double j1( - double arg0, - ) { - return _j1( - arg0, - ); + double j1(double arg0) { + return _j1(arg0); } late final _j1Ptr = _lookup>('j1'); late final _j1 = _j1Ptr.asFunction(); - double jn( - int arg0, - double arg1, - ) { - return _jn( - arg0, - arg1, - ); + double jn(int arg0, double arg1) { + return _jn(arg0, arg1); } late final _jnPtr = _lookup>( - 'jn'); + 'jn', + ); late final _jn = _jnPtr.asFunction(); - double y0( - double arg0, - ) { - return _y0( - arg0, - ); + double y0(double arg0) { + return _y0(arg0); } late final _y0Ptr = _lookup>('y0'); late final _y0 = _y0Ptr.asFunction(); - double y1( - double arg0, - ) { - return _y1( - arg0, - ); + double y1(double arg0) { + return _y1(arg0); } late final _y1Ptr = _lookup>('y1'); late final _y1 = _y1Ptr.asFunction(); - double yn( - int arg0, - double arg1, - ) { - return _yn( - arg0, - arg1, - ); + double yn(int arg0, double arg1) { + return _yn(arg0, arg1); } late final _ynPtr = _lookup>( - 'yn'); + 'yn', + ); late final _yn = _ynPtr.asFunction(); - double scalb( - double arg0, - double arg1, - ) { - return _scalb( - arg0, - arg1, - ); + double scalb(double arg0, double arg1) { + return _scalb(arg0, arg1); } late final _scalbPtr = _lookup>( - 'scalb'); + 'scalb', + ); late final _scalb = _scalbPtr.asFunction(); late final ffi.Pointer _signgam = _lookup('signgam'); @@ -6713,97 +6235,71 @@ class NativeCupertinoHttp { set signgam(int value) => _signgam.value = value; - int setjmp( - ffi.Pointer arg0, - ) { - return _setjmp$1( - arg0, - ); + int setjmp(ffi.Pointer arg0) { + return _setjmp$1(arg0); } late final _setjmpPtr = _lookup)>>( - 'setjmp'); - late final _setjmp$1 = - _setjmpPtr.asFunction)>(); + 'setjmp', + ); + late final _setjmp$1 = _setjmpPtr + .asFunction)>(); - void longjmp( - ffi.Pointer arg0, - int arg1, - ) { - return _longjmp$1( - arg0, - arg1, - ); + void longjmp(ffi.Pointer arg0, int arg1) { + return _longjmp$1(arg0, arg1); } - late final _longjmpPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'longjmp'); - late final _longjmp$1 = - _longjmpPtr.asFunction, int)>(); + late final _longjmpPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('longjmp'); + late final _longjmp$1 = _longjmpPtr + .asFunction, int)>(); - int _setjmp( - ffi.Pointer arg0, - ) { - return __setjmp( - arg0, - ); + int _setjmp(ffi.Pointer arg0) { + return __setjmp(arg0); } late final __setjmpPtr = _lookup)>>( - '_setjmp'); - late final __setjmp = - __setjmpPtr.asFunction)>(); + '_setjmp', + ); + late final __setjmp = __setjmpPtr + .asFunction)>(); - void _longjmp( - ffi.Pointer arg0, - int arg1, - ) { - return __longjmp( - arg0, - arg1, - ); + void _longjmp(ffi.Pointer arg0, int arg1) { + return __longjmp(arg0, arg1); } - late final __longjmpPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - '_longjmp'); - late final __longjmp = - __longjmpPtr.asFunction, int)>(); + late final __longjmpPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('_longjmp'); + late final __longjmp = __longjmpPtr + .asFunction, int)>(); - int sigsetjmp( - ffi.Pointer arg0, - int arg1, - ) { - return _sigsetjmp( - arg0, - arg1, - ); + int sigsetjmp(ffi.Pointer arg0, int arg1) { + return _sigsetjmp(arg0, arg1); } - late final _sigsetjmpPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'sigsetjmp'); - late final _sigsetjmp = - _sigsetjmpPtr.asFunction, int)>(); + late final _sigsetjmpPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sigsetjmp'); + late final _sigsetjmp = _sigsetjmpPtr + .asFunction, int)>(); - void siglongjmp( - ffi.Pointer arg0, - int arg1, - ) { - return _siglongjmp( - arg0, - arg1, - ); + void siglongjmp(ffi.Pointer arg0, int arg1) { + return _siglongjmp(arg0, arg1); } - late final _siglongjmpPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'siglongjmp'); - late final _siglongjmp = - _siglongjmpPtr.asFunction, int)>(); + late final _siglongjmpPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('siglongjmp'); + late final _siglongjmp = _siglongjmpPtr + .asFunction, int)>(); void longjmperror() { return _longjmperror(); @@ -6823,305 +6319,251 @@ class NativeCupertinoHttp { ffi.Pointer> get sys_siglist => _sys_siglist; - int raise( - int arg0, - ) { - return _raise( - arg0, - ); + int raise(int arg0) { + return _raise(arg0); } - late final _raisePtr = - _lookup>('raise'); + late final _raisePtr = _lookup>( + 'raise', + ); late final _raise = _raisePtr.asFunction(); ffi.Pointer> bsd_signal( int arg0, ffi.Pointer> arg1, ) { - return _bsd_signal( - arg0, - arg1, - ); + return _bsd_signal(arg0, arg1); } - late final _bsd_signalPtr = _lookup< - ffi.NativeFunction< + late final _bsd_signalPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer> Function( - ffi.Int, - ffi.Pointer< - ffi - .NativeFunction>)>>('bsd_signal'); - late final _bsd_signal = _bsd_signalPtr.asFunction< - ffi.Pointer> Function( - int, ffi.Pointer>)>(); - - int kill( - int arg0, - int arg1, - ) { - return _kill( - arg0, - arg1, - ); + ffi.Int, + ffi.Pointer>, + ) + > + >('bsd_signal'); + late final _bsd_signal = _bsd_signalPtr + .asFunction< + ffi.Pointer> Function( + int, + ffi.Pointer>, + ) + >(); + + int kill(int arg0, int arg1) { + return _kill(arg0, arg1); } late final _killPtr = _lookup>('kill'); late final _kill = _killPtr.asFunction(); - int killpg( - int arg0, - int arg1, - ) { - return _killpg( - arg0, - arg1, - ); + int killpg(int arg0, int arg1) { + return _killpg(arg0, arg1); } late final _killpgPtr = _lookup>('killpg'); late final _killpg = _killpgPtr.asFunction(); - int pthread_kill( - pthread_t arg0, - int arg1, - ) { - return _pthread_kill( - arg0, - arg1, - ); + int pthread_kill(pthread_t arg0, int arg1) { + return _pthread_kill(arg0, arg1); } late final _pthread_killPtr = _lookup>( - 'pthread_kill'); - late final _pthread_kill = - _pthread_killPtr.asFunction(); + 'pthread_kill', + ); + late final _pthread_kill = _pthread_killPtr + .asFunction(); int pthread_sigmask( int arg0, ffi.Pointer arg1, ffi.Pointer arg2, ) { - return _pthread_sigmask( - arg0, - arg1, - arg2, - ); + return _pthread_sigmask(arg0, arg1, arg2); } - late final _pthread_sigmaskPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, - ffi.Pointer)>>('pthread_sigmask'); - late final _pthread_sigmask = _pthread_sigmaskPtr.asFunction< - int Function(int, ffi.Pointer, ffi.Pointer)>(); + late final _pthread_sigmaskPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + >('pthread_sigmask'); + late final _pthread_sigmask = _pthread_sigmaskPtr + .asFunction< + int Function(int, ffi.Pointer, ffi.Pointer) + >(); int sigaction$1( int arg0, ffi.Pointer arg1, ffi.Pointer arg2, ) { - return _sigaction$1( - arg0, - arg1, - arg2, - ); + return _sigaction$1(arg0, arg1, arg2); } - late final _sigaction$1Ptr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, - ffi.Pointer)>>('sigaction'); - late final _sigaction$1 = _sigaction$1Ptr.asFunction< - int Function(int, ffi.Pointer, ffi.Pointer)>(); + late final _sigaction$1Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + >('sigaction'); + late final _sigaction$1 = _sigaction$1Ptr + .asFunction< + int Function(int, ffi.Pointer, ffi.Pointer) + >(); - int sigaddset( - ffi.Pointer arg0, - int arg1, - ) { - return _sigaddset( - arg0, - arg1, - ); + int sigaddset(ffi.Pointer arg0, int arg1) { + return _sigaddset(arg0, arg1); } - late final _sigaddsetPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'sigaddset'); - late final _sigaddset = - _sigaddsetPtr.asFunction, int)>(); + late final _sigaddsetPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sigaddset'); + late final _sigaddset = _sigaddsetPtr + .asFunction, int)>(); - int sigaltstack( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _sigaltstack( - arg0, - arg1, - ); + int sigaltstack(ffi.Pointer arg0, ffi.Pointer arg1) { + return _sigaltstack(arg0, arg1); } - late final _sigaltstackPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('sigaltstack'); + late final _sigaltstackPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('sigaltstack'); late final _sigaltstack = _sigaltstackPtr .asFunction, ffi.Pointer)>(); - int sigdelset( - ffi.Pointer arg0, - int arg1, - ) { - return _sigdelset( - arg0, - arg1, - ); + int sigdelset(ffi.Pointer arg0, int arg1) { + return _sigdelset(arg0, arg1); } - late final _sigdelsetPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'sigdelset'); - late final _sigdelset = - _sigdelsetPtr.asFunction, int)>(); + late final _sigdelsetPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sigdelset'); + late final _sigdelset = _sigdelsetPtr + .asFunction, int)>(); - int sigemptyset( - ffi.Pointer arg0, - ) { - return _sigemptyset( - arg0, - ); + int sigemptyset(ffi.Pointer arg0) { + return _sigemptyset(arg0); } late final _sigemptysetPtr = _lookup)>>( - 'sigemptyset'); - late final _sigemptyset = - _sigemptysetPtr.asFunction)>(); + 'sigemptyset', + ); + late final _sigemptyset = _sigemptysetPtr + .asFunction)>(); - int sigfillset( - ffi.Pointer arg0, - ) { - return _sigfillset( - arg0, - ); + int sigfillset(ffi.Pointer arg0) { + return _sigfillset(arg0); } late final _sigfillsetPtr = _lookup)>>( - 'sigfillset'); - late final _sigfillset = - _sigfillsetPtr.asFunction)>(); + 'sigfillset', + ); + late final _sigfillset = _sigfillsetPtr + .asFunction)>(); - int sighold( - int arg0, - ) { - return _sighold( - arg0, - ); + int sighold(int arg0) { + return _sighold(arg0); } late final _sigholdPtr = _lookup>('sighold'); late final _sighold = _sigholdPtr.asFunction(); - int sigignore( - int arg0, - ) { - return _sigignore( - arg0, - ); + int sigignore(int arg0) { + return _sigignore(arg0); } late final _sigignorePtr = _lookup>('sigignore'); late final _sigignore = _sigignorePtr.asFunction(); - int siginterrupt( - int arg0, - int arg1, - ) { - return _siginterrupt( - arg0, - arg1, - ); + int siginterrupt(int arg0, int arg1) { + return _siginterrupt(arg0, arg1); } late final _siginterruptPtr = _lookup>( - 'siginterrupt'); - late final _siginterrupt = - _siginterruptPtr.asFunction(); + 'siginterrupt', + ); + late final _siginterrupt = _siginterruptPtr + .asFunction(); - int sigismember( - ffi.Pointer arg0, - int arg1, - ) { - return _sigismember( - arg0, - arg1, - ); + int sigismember(ffi.Pointer arg0, int arg1) { + return _sigismember(arg0, arg1); } - late final _sigismemberPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'sigismember'); - late final _sigismember = - _sigismemberPtr.asFunction, int)>(); + late final _sigismemberPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sigismember'); + late final _sigismember = _sigismemberPtr + .asFunction, int)>(); - int sigpause( - int arg0, - ) { - return _sigpause( - arg0, - ); + int sigpause(int arg0) { + return _sigpause(arg0); } late final _sigpausePtr = _lookup>('sigpause'); late final _sigpause = _sigpausePtr.asFunction(); - int sigpending( - ffi.Pointer arg0, - ) { - return _sigpending( - arg0, - ); + int sigpending(ffi.Pointer arg0) { + return _sigpending(arg0); } late final _sigpendingPtr = _lookup)>>( - 'sigpending'); - late final _sigpending = - _sigpendingPtr.asFunction)>(); + 'sigpending', + ); + late final _sigpending = _sigpendingPtr + .asFunction)>(); int sigprocmask( int arg0, ffi.Pointer arg1, ffi.Pointer arg2, ) { - return _sigprocmask( - arg0, - arg1, - arg2, - ); + return _sigprocmask(arg0, arg1, arg2); } - late final _sigprocmaskPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, - ffi.Pointer)>>('sigprocmask'); - late final _sigprocmask = _sigprocmaskPtr.asFunction< - int Function(int, ffi.Pointer, ffi.Pointer)>(); + late final _sigprocmaskPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + >('sigprocmask'); + late final _sigprocmask = _sigprocmaskPtr + .asFunction< + int Function(int, ffi.Pointer, ffi.Pointer) + >(); - int sigrelse( - int arg0, - ) { - return _sigrelse( - arg0, - ); + int sigrelse(int arg0) { + return _sigrelse(arg0); } late final _sigrelsePtr = @@ -7132,111 +6574,91 @@ class NativeCupertinoHttp { int arg0, ffi.Pointer> arg1, ) { - return _sigset( - arg0, - arg1, - ); + return _sigset(arg0, arg1); } - late final _sigsetPtr = _lookup< - ffi.NativeFunction< + late final _sigsetPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer> Function( - ffi.Int, - ffi.Pointer< - ffi.NativeFunction>)>>('sigset'); - late final _sigset = _sigsetPtr.asFunction< - ffi.Pointer> Function( - int, ffi.Pointer>)>(); + ffi.Int, + ffi.Pointer>, + ) + > + >('sigset'); + late final _sigset = _sigsetPtr + .asFunction< + ffi.Pointer> Function( + int, + ffi.Pointer>, + ) + >(); - int sigsuspend( - ffi.Pointer arg0, - ) { - return _sigsuspend( - arg0, - ); + int sigsuspend(ffi.Pointer arg0) { + return _sigsuspend(arg0); } late final _sigsuspendPtr = _lookup)>>( - 'sigsuspend'); - late final _sigsuspend = - _sigsuspendPtr.asFunction)>(); + 'sigsuspend', + ); + late final _sigsuspend = _sigsuspendPtr + .asFunction)>(); - int sigwait( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _sigwait( - arg0, - arg1, - ); + int sigwait(ffi.Pointer arg0, ffi.Pointer arg1) { + return _sigwait(arg0, arg1); } - late final _sigwaitPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('sigwait'); + late final _sigwaitPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('sigwait'); late final _sigwait = _sigwaitPtr .asFunction, ffi.Pointer)>(); - void psignal( - int arg0, - ffi.Pointer arg1, - ) { - return _psignal( - arg0, - arg1, - ); + void psignal(int arg0, ffi.Pointer arg1) { + return _psignal(arg0, arg1); } - late final _psignalPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Int, ffi.Pointer)>>('psignal'); - late final _psignal = - _psignalPtr.asFunction)>(); + late final _psignalPtr = + _lookup< + ffi.NativeFunction)> + >('psignal'); + late final _psignal = _psignalPtr + .asFunction)>(); - int sigblock( - int arg0, - ) { - return _sigblock( - arg0, - ); + int sigblock(int arg0) { + return _sigblock(arg0); } late final _sigblockPtr = _lookup>('sigblock'); late final _sigblock = _sigblockPtr.asFunction(); - int sigsetmask( - int arg0, - ) { - return _sigsetmask( - arg0, - ); + int sigsetmask(int arg0) { + return _sigsetmask(arg0); } late final _sigsetmaskPtr = _lookup>('sigsetmask'); late final _sigsetmask = _sigsetmaskPtr.asFunction(); - int sigvec$1( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return _sigvec$1( - arg0, - arg1, - arg2, - ); + int sigvec$1(int arg0, ffi.Pointer arg1, ffi.Pointer arg2) { + return _sigvec$1(arg0, arg1, arg2); } - late final _sigvec$1Ptr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, ffi.Pointer)>>('sigvec'); - late final _sigvec$1 = _sigvec$1Ptr.asFunction< - int Function(int, ffi.Pointer, ffi.Pointer)>(); + late final _sigvec$1Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) + > + >('sigvec'); + late final _sigvec$1 = _sigvec$1Ptr + .asFunction< + int Function(int, ffi.Pointer, ffi.Pointer) + >(); int renameat( int arg0, @@ -7244,39 +6666,47 @@ class NativeCupertinoHttp { int arg2, ffi.Pointer arg3, ) { - return _renameat( - arg0, - arg1, - arg2, - arg3, - ); + return _renameat(arg0, arg1, arg2, arg3); } - late final _renameatPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, - ffi.Pointer)>>('renameat'); - late final _renameat = _renameatPtr.asFunction< - int Function(int, ffi.Pointer, int, ffi.Pointer)>(); + late final _renameatPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >('renameat'); + late final _renameat = _renameatPtr + .asFunction< + int Function(int, ffi.Pointer, int, ffi.Pointer) + >(); int renamex_np( ffi.Pointer arg0, ffi.Pointer arg1, int arg2, ) { - return _renamex_np( - arg0, - arg1, - arg2, - ); + return _renamex_np(arg0, arg1, arg2); } - late final _renamex_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedInt)>>('renamex_np'); - late final _renamex_np = _renamex_npPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _renamex_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('renamex_np'); + late final _renamex_np = _renamex_npPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); int renameatx_np( int arg0, @@ -7285,36 +6715,42 @@ class NativeCupertinoHttp { ffi.Pointer arg3, int arg4, ) { - return _renameatx_np( - arg0, - arg1, - arg2, - arg3, - arg4, - ); + return _renameatx_np(arg0, arg1, arg2, arg3, arg4); } - late final _renameatx_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, - ffi.Pointer, ffi.UnsignedInt)>>('renameatx_np'); - late final _renameatx_np = _renameatx_npPtr.asFunction< - int Function( - int, ffi.Pointer, int, ffi.Pointer, int)>(); + late final _renameatx_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('renameatx_np'); + late final _renameatx_np = _renameatx_npPtr + .asFunction< + int Function( + int, + ffi.Pointer, + int, + ffi.Pointer, + int, + ) + >(); - int printf( - ffi.Pointer arg0, - ) { - return _printf( - arg0, - ); + int printf(ffi.Pointer arg0) { + return _printf(arg0); } late final _printfPtr = _lookup)>>( - 'printf'); - late final _printf = - _printfPtr.asFunction)>(); + 'printf', + ); + late final _printf = _printfPtr + .asFunction)>(); late final ffi.Pointer> ___stdinp = _lookup>('__stdinp'); @@ -7337,96 +6773,73 @@ class NativeCupertinoHttp { set __stderrp(ffi.Pointer value) => ___stderrp.value = value; - void clearerr( - ffi.Pointer arg0, - ) { - return _clearerr( - arg0, - ); + void clearerr(ffi.Pointer arg0) { + return _clearerr(arg0); } late final _clearerrPtr = _lookup)>>( - 'clearerr'); - late final _clearerr = - _clearerrPtr.asFunction)>(); + 'clearerr', + ); + late final _clearerr = _clearerrPtr + .asFunction)>(); - int fclose( - ffi.Pointer arg0, - ) { - return _fclose( - arg0, - ); + int fclose(ffi.Pointer arg0) { + return _fclose(arg0); } late final _fclosePtr = _lookup)>>( - 'fclose'); + 'fclose', + ); late final _fclose = _fclosePtr.asFunction)>(); - int feof( - ffi.Pointer arg0, - ) { - return _feof( - arg0, - ); + int feof(ffi.Pointer arg0) { + return _feof(arg0); } late final _feofPtr = _lookup)>>('feof'); late final _feof = _feofPtr.asFunction)>(); - int ferror( - ffi.Pointer arg0, - ) { - return _ferror( - arg0, - ); + int ferror(ffi.Pointer arg0) { + return _ferror(arg0); } late final _ferrorPtr = _lookup)>>( - 'ferror'); + 'ferror', + ); late final _ferror = _ferrorPtr.asFunction)>(); - int fflush( - ffi.Pointer arg0, - ) { - return _fflush( - arg0, - ); + int fflush(ffi.Pointer arg0) { + return _fflush(arg0); } late final _fflushPtr = _lookup)>>( - 'fflush'); + 'fflush', + ); late final _fflush = _fflushPtr.asFunction)>(); - int fgetc( - ffi.Pointer arg0, - ) { - return _fgetc( - arg0, - ); + int fgetc(ffi.Pointer arg0) { + return _fgetc(arg0); } late final _fgetcPtr = _lookup)>>('fgetc'); late final _fgetc = _fgetcPtr.asFunction)>(); - int fgetpos( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _fgetpos( - arg0, - arg1, - ); + int fgetpos(ffi.Pointer arg0, ffi.Pointer arg1) { + return _fgetpos(arg0, arg1); } - late final _fgetposPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>>('fgetpos'); + late final _fgetposPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('fgetpos'); late final _fgetpos = _fgetposPtr .asFunction, ffi.Pointer)>(); @@ -7435,85 +6848,83 @@ class NativeCupertinoHttp { int __size, ffi.Pointer arg2, ) { - return _fgets( - arg0, - __size, - arg2, - ); + return _fgets(arg0, __size, arg2); } - late final _fgetsPtr = _lookup< - ffi.NativeFunction< + late final _fgetsPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('fgets'); - late final _fgets = _fgetsPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >('fgets'); + late final _fgets = _fgetsPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); ffi.Pointer fopen( ffi.Pointer __filename, ffi.Pointer __mode, ) { - return _fopen( - __filename, - __mode, - ); + return _fopen(__filename, __mode); } - late final _fopenPtr = _lookup< - ffi.NativeFunction< + late final _fopenPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('fopen'); - late final _fopen = _fopenPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('fopen'); + late final _fopen = _fopenPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); - int fprintf( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _fprintf( - arg0, - arg1, - ); + int fprintf(ffi.Pointer arg0, ffi.Pointer arg1) { + return _fprintf(arg0, arg1); } - late final _fprintfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('fprintf'); + late final _fprintfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('fprintf'); late final _fprintf = _fprintfPtr .asFunction, ffi.Pointer)>(); - int fputc( - int arg0, - ffi.Pointer arg1, - ) { - return _fputc( - arg0, - arg1, - ); + int fputc(int arg0, ffi.Pointer arg1) { + return _fputc(arg0, arg1); } late final _fputcPtr = _lookup)>>( - 'fputc'); - late final _fputc = - _fputcPtr.asFunction)>(); + 'fputc', + ); + late final _fputc = _fputcPtr + .asFunction)>(); - int fputs( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _fputs( - arg0, - arg1, - ); + int fputs(ffi.Pointer arg0, ffi.Pointer arg1) { + return _fputs(arg0, arg1); } - late final _fputsPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>>('fputs'); + late final _fputsPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('fputs'); late final _fputs = _fputsPtr .asFunction, ffi.Pointer)>(); @@ -7523,103 +6934,99 @@ class NativeCupertinoHttp { int __nitems, ffi.Pointer __stream, ) { - return _fread( - __ptr, - __size, - __nitems, - __stream, - ); + return _fread(__ptr, __size, __nitems, __stream); } - late final _freadPtr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, ffi.Size, ffi.Size, - ffi.Pointer)>>('fread'); - late final _fread = _freadPtr.asFunction< - int Function(ffi.Pointer, int, int, ffi.Pointer)>(); + late final _freadPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) + > + >('fread'); + late final _fread = _freadPtr + .asFunction< + int Function(ffi.Pointer, int, int, ffi.Pointer) + >(); ffi.Pointer freopen( ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ) { - return _freopen( - arg0, - arg1, - arg2, - ); + return _freopen(arg0, arg1, arg2); } - late final _freopenPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('freopen'); - late final _freopen = _freopenPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + late final _freopenPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('freopen'); + late final _freopen = _freopenPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); - int fscanf( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _fscanf( - arg0, - arg1, - ); + int fscanf(ffi.Pointer arg0, ffi.Pointer arg1) { + return _fscanf(arg0, arg1); } - late final _fscanfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('fscanf'); + late final _fscanfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('fscanf'); late final _fscanf = _fscanfPtr .asFunction, ffi.Pointer)>(); - int fseek( - ffi.Pointer arg0, - int arg1, - int arg2, - ) { - return _fseek( - arg0, - arg1, - arg2, - ); + int fseek(ffi.Pointer arg0, int arg1, int arg2) { + return _fseek(arg0, arg1, arg2); } - late final _fseekPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Long, ffi.Int)>>('fseek'); - late final _fseek = - _fseekPtr.asFunction, int, int)>(); + late final _fseekPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Long, ffi.Int) + > + >('fseek'); + late final _fseek = _fseekPtr + .asFunction, int, int)>(); - int fsetpos( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _fsetpos( - arg0, - arg1, - ); + int fsetpos(ffi.Pointer arg0, ffi.Pointer arg1) { + return _fsetpos(arg0, arg1); } - late final _fsetposPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>>('fsetpos'); + late final _fsetposPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('fsetpos'); late final _fsetpos = _fsetposPtr .asFunction, ffi.Pointer)>(); - int ftell( - ffi.Pointer arg0, - ) { - return _ftell( - arg0, - ); + int ftell(ffi.Pointer arg0) { + return _ftell(arg0); } late final _ftellPtr = _lookup)>>( - 'ftell'); + 'ftell', + ); late final _ftell = _ftellPtr.asFunction)>(); int fwrite( @@ -7628,27 +7035,27 @@ class NativeCupertinoHttp { int __nitems, ffi.Pointer __stream, ) { - return _fwrite( - __ptr, - __size, - __nitems, - __stream, - ); + return _fwrite(__ptr, __size, __nitems, __stream); } - late final _fwritePtr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, ffi.Size, ffi.Size, - ffi.Pointer)>>('fwrite'); - late final _fwrite = _fwritePtr.asFunction< - int Function(ffi.Pointer, int, int, ffi.Pointer)>(); + late final _fwritePtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) + > + >('fwrite'); + late final _fwrite = _fwritePtr + .asFunction< + int Function(ffi.Pointer, int, int, ffi.Pointer) + >(); - int getc( - ffi.Pointer arg0, - ) { - return _getc( - arg0, - ); + int getc(ffi.Pointer arg0) { + return _getc(arg0); } late final _getcPtr = @@ -7659,152 +7066,120 @@ class NativeCupertinoHttp { return _getchar(); } - late final _getcharPtr = - _lookup>('getchar'); + late final _getcharPtr = _lookup>( + 'getchar', + ); late final _getchar = _getcharPtr.asFunction(); - ffi.Pointer gets( - ffi.Pointer arg0, - ) { - return _gets( - arg0, - ); + ffi.Pointer gets(ffi.Pointer arg0) { + return _gets(arg0); } - late final _getsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('gets'); + late final _getsPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('gets'); late final _gets = _getsPtr .asFunction Function(ffi.Pointer)>(); - void perror( - ffi.Pointer arg0, - ) { - return _perror( - arg0, - ); + void perror(ffi.Pointer arg0) { + return _perror(arg0); } late final _perrorPtr = _lookup)>>( - 'perror'); - late final _perror = - _perrorPtr.asFunction)>(); + 'perror', + ); + late final _perror = _perrorPtr + .asFunction)>(); - int putc( - int arg0, - ffi.Pointer arg1, - ) { - return _putc( - arg0, - arg1, - ); + int putc(int arg0, ffi.Pointer arg1) { + return _putc(arg0, arg1); } late final _putcPtr = _lookup)>>( - 'putc'); - late final _putc = - _putcPtr.asFunction)>(); + 'putc', + ); + late final _putc = _putcPtr + .asFunction)>(); - int putchar( - int arg0, - ) { - return _putchar( - arg0, - ); + int putchar(int arg0) { + return _putchar(arg0); } late final _putcharPtr = _lookup>('putchar'); late final _putchar = _putcharPtr.asFunction(); - int puts( - ffi.Pointer arg0, - ) { - return _puts( - arg0, - ); + int puts(ffi.Pointer arg0) { + return _puts(arg0); } late final _putsPtr = _lookup)>>( - 'puts'); + 'puts', + ); late final _puts = _putsPtr.asFunction)>(); - int remove( - ffi.Pointer arg0, - ) { - return _remove( - arg0, - ); + int remove(ffi.Pointer arg0) { + return _remove(arg0); } late final _removePtr = _lookup)>>( - 'remove'); - late final _remove = - _removePtr.asFunction)>(); + 'remove', + ); + late final _remove = _removePtr + .asFunction)>(); - int rename( - ffi.Pointer __old, - ffi.Pointer __new, - ) { - return _rename( - __old, - __new, - ); + int rename(ffi.Pointer __old, ffi.Pointer __new) { + return _rename(__old, __new); } - late final _renamePtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('rename'); + late final _renamePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('rename'); late final _rename = _renamePtr .asFunction, ffi.Pointer)>(); - void rewind( - ffi.Pointer arg0, - ) { - return _rewind( - arg0, - ); + void rewind(ffi.Pointer arg0) { + return _rewind(arg0); } late final _rewindPtr = _lookup)>>( - 'rewind'); - late final _rewind = - _rewindPtr.asFunction)>(); + 'rewind', + ); + late final _rewind = _rewindPtr + .asFunction)>(); - int scanf( - ffi.Pointer arg0, - ) { - return _scanf( - arg0, - ); + int scanf(ffi.Pointer arg0) { + return _scanf(arg0); } late final _scanfPtr = _lookup)>>( - 'scanf'); - late final _scanf = - _scanfPtr.asFunction)>(); + 'scanf', + ); + late final _scanf = _scanfPtr + .asFunction)>(); - void setbuf( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _setbuf( - arg0, - arg1, - ); + void setbuf(ffi.Pointer arg0, ffi.Pointer arg1) { + return _setbuf(arg0, arg1); } - late final _setbufPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>>('setbuf'); + late final _setbufPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + >('setbuf'); late final _setbuf = _setbufPtr .asFunction, ffi.Pointer)>(); @@ -7814,52 +7189,48 @@ class NativeCupertinoHttp { int arg2, int __size, ) { - return _setvbuf( - arg0, - arg1, - arg2, - __size, - ); + return _setvbuf(arg0, arg1, arg2, __size); } - late final _setvbufPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int, - ffi.Size)>>('setvbuf'); - late final _setvbuf = _setvbufPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, int)>(); + late final _setvbufPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Size, + ) + > + >('setvbuf'); + late final _setvbuf = _setvbufPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, int) + >(); - int sprintf( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _sprintf( - arg0, - arg1, - ); + int sprintf(ffi.Pointer arg0, ffi.Pointer arg1) { + return _sprintf(arg0, arg1); } - late final _sprintfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('sprintf'); + late final _sprintfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('sprintf'); late final _sprintf = _sprintfPtr .asFunction, ffi.Pointer)>(); - int sscanf( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _sscanf( - arg0, - arg1, - ); + int sscanf(ffi.Pointer arg0, ffi.Pointer arg1) { + return _sscanf(arg0, arg1); } - late final _sscanfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('sscanf'); + late final _sscanfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('sscanf'); late final _sscanf = _sscanfPtr .asFunction, ffi.Pointer)>(); @@ -7871,269 +7242,234 @@ class NativeCupertinoHttp { _lookup Function()>>('tmpfile'); late final _tmpfile = _tmpfilePtr.asFunction Function()>(); - ffi.Pointer tmpnam( - ffi.Pointer arg0, - ) { - return _tmpnam( - arg0, - ); + ffi.Pointer tmpnam(ffi.Pointer arg0) { + return _tmpnam(arg0); } - late final _tmpnamPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('tmpnam'); + late final _tmpnamPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('tmpnam'); late final _tmpnam = _tmpnamPtr .asFunction Function(ffi.Pointer)>(); - int ungetc( - int arg0, - ffi.Pointer arg1, - ) { - return _ungetc( - arg0, - arg1, - ); + int ungetc(int arg0, ffi.Pointer arg1) { + return _ungetc(arg0, arg1); } late final _ungetcPtr = _lookup)>>( - 'ungetc'); - late final _ungetc = - _ungetcPtr.asFunction)>(); + 'ungetc', + ); + late final _ungetc = _ungetcPtr + .asFunction)>(); int vfprintf( ffi.Pointer arg0, ffi.Pointer arg1, va_list arg2, ) { - return _vfprintf( - arg0, - arg1, - arg2, - ); + return _vfprintf(arg0, arg1, arg2); } - late final _vfprintfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer, va_list)>>('vfprintf'); - late final _vfprintf = _vfprintfPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, va_list)>(); + late final _vfprintfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) + > + >('vfprintf'); + late final _vfprintf = _vfprintfPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, va_list) + >(); - int vprintf( - ffi.Pointer arg0, - va_list arg1, - ) { - return _vprintf( - arg0, - arg1, - ); + int vprintf(ffi.Pointer arg0, va_list arg1) { + return _vprintf(arg0, arg1); } - late final _vprintfPtr = _lookup< - ffi.NativeFunction, va_list)>>( - 'vprintf'); - late final _vprintf = - _vprintfPtr.asFunction, va_list)>(); + late final _vprintfPtr = + _lookup< + ffi.NativeFunction, va_list)> + >('vprintf'); + late final _vprintf = _vprintfPtr + .asFunction, va_list)>(); int vsprintf( ffi.Pointer arg0, ffi.Pointer arg1, va_list arg2, ) { - return _vsprintf( - arg0, - arg1, - arg2, - ); + return _vsprintf(arg0, arg1, arg2); } - late final _vsprintfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - va_list)>>('vsprintf'); - late final _vsprintf = _vsprintfPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, va_list)>(); + late final _vsprintfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + va_list, + ) + > + >('vsprintf'); + late final _vsprintf = _vsprintfPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, va_list) + >(); - ffi.Pointer ctermid( - ffi.Pointer arg0, - ) { - return _ctermid( - arg0, - ); + ffi.Pointer ctermid(ffi.Pointer arg0) { + return _ctermid(arg0); } - late final _ctermidPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('ctermid'); + late final _ctermidPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('ctermid'); late final _ctermid = _ctermidPtr .asFunction Function(ffi.Pointer)>(); - ffi.Pointer fdopen( - int arg0, - ffi.Pointer arg1, - ) { - return _fdopen( - arg0, - arg1, - ); + ffi.Pointer fdopen(int arg0, ffi.Pointer arg1) { + return _fdopen(arg0, arg1); } - late final _fdopenPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Pointer)>>('fdopen'); + late final _fdopenPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Pointer) + > + >('fdopen'); late final _fdopen = _fdopenPtr .asFunction Function(int, ffi.Pointer)>(); - int fileno( - ffi.Pointer arg0, - ) { - return _fileno( - arg0, - ); + int fileno(ffi.Pointer arg0) { + return _fileno(arg0); } late final _filenoPtr = _lookup)>>( - 'fileno'); + 'fileno', + ); late final _fileno = _filenoPtr.asFunction)>(); - int pclose( - ffi.Pointer arg0, - ) { - return _pclose( - arg0, - ); + int pclose(ffi.Pointer arg0) { + return _pclose(arg0); } late final _pclosePtr = _lookup)>>( - 'pclose'); + 'pclose', + ); late final _pclose = _pclosePtr.asFunction)>(); ffi.Pointer popen( ffi.Pointer arg0, ffi.Pointer arg1, ) { - return _popen( - arg0, - arg1, - ); + return _popen(arg0, arg1); } - late final _popenPtr = _lookup< - ffi.NativeFunction< + late final _popenPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('popen'); - late final _popen = _popenPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('popen'); + late final _popen = _popenPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); - int __srget( - ffi.Pointer arg0, - ) { - return ___srget( - arg0, - ); + int __srget(ffi.Pointer arg0) { + return ___srget(arg0); } late final ___srgetPtr = _lookup)>>( - '__srget'); - late final ___srget = - ___srgetPtr.asFunction)>(); + '__srget', + ); + late final ___srget = ___srgetPtr + .asFunction)>(); int __svfscanf( ffi.Pointer arg0, ffi.Pointer arg1, va_list arg2, ) { - return ___svfscanf( - arg0, - arg1, - arg2, - ); + return ___svfscanf(arg0, arg1, arg2); } - late final ___svfscanfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - va_list)>>('__svfscanf'); - late final ___svfscanf = ___svfscanfPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, va_list)>(); + late final ___svfscanfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) + > + >('__svfscanf'); + late final ___svfscanf = ___svfscanfPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, va_list) + >(); - int __swbuf( - int arg0, - ffi.Pointer arg1, - ) { - return ___swbuf( - arg0, - arg1, - ); + int __swbuf(int arg0, ffi.Pointer arg1) { + return ___swbuf(arg0, arg1); } late final ___swbufPtr = _lookup)>>( - '__swbuf'); - late final ___swbuf = - ___swbufPtr.asFunction)>(); + '__swbuf', + ); + late final ___swbuf = ___swbufPtr + .asFunction)>(); - void flockfile( - ffi.Pointer arg0, - ) { - return _flockfile( - arg0, - ); + void flockfile(ffi.Pointer arg0) { + return _flockfile(arg0); } late final _flockfilePtr = _lookup)>>( - 'flockfile'); - late final _flockfile = - _flockfilePtr.asFunction)>(); + 'flockfile', + ); + late final _flockfile = _flockfilePtr + .asFunction)>(); - int ftrylockfile( - ffi.Pointer arg0, - ) { - return _ftrylockfile( - arg0, - ); + int ftrylockfile(ffi.Pointer arg0) { + return _ftrylockfile(arg0); } late final _ftrylockfilePtr = _lookup)>>( - 'ftrylockfile'); - late final _ftrylockfile = - _ftrylockfilePtr.asFunction)>(); + 'ftrylockfile', + ); + late final _ftrylockfile = _ftrylockfilePtr + .asFunction)>(); - void funlockfile( - ffi.Pointer arg0, - ) { - return _funlockfile( - arg0, - ); + void funlockfile(ffi.Pointer arg0) { + return _funlockfile(arg0); } late final _funlockfilePtr = _lookup)>>( - 'funlockfile'); - late final _funlockfile = - _funlockfilePtr.asFunction)>(); + 'funlockfile', + ); + late final _funlockfile = _funlockfilePtr + .asFunction)>(); - int getc_unlocked( - ffi.Pointer arg0, - ) { - return _getc_unlocked( - arg0, - ); + int getc_unlocked(ffi.Pointer arg0) { + return _getc_unlocked(arg0); } late final _getc_unlockedPtr = _lookup)>>( - 'getc_unlocked'); - late final _getc_unlocked = - _getc_unlockedPtr.asFunction)>(); + 'getc_unlocked', + ); + late final _getc_unlocked = _getc_unlockedPtr + .asFunction)>(); int getchar_unlocked() { return _getchar_unlocked(); @@ -8141,109 +7477,87 @@ class NativeCupertinoHttp { late final _getchar_unlockedPtr = _lookup>('getchar_unlocked'); - late final _getchar_unlocked = - _getchar_unlockedPtr.asFunction(); + late final _getchar_unlocked = _getchar_unlockedPtr + .asFunction(); - int putc_unlocked( - int arg0, - ffi.Pointer arg1, - ) { - return _putc_unlocked( - arg0, - arg1, - ); + int putc_unlocked(int arg0, ffi.Pointer arg1) { + return _putc_unlocked(arg0, arg1); } late final _putc_unlockedPtr = _lookup)>>( - 'putc_unlocked'); - late final _putc_unlocked = - _putc_unlockedPtr.asFunction)>(); + 'putc_unlocked', + ); + late final _putc_unlocked = _putc_unlockedPtr + .asFunction)>(); - int putchar_unlocked( - int arg0, - ) { - return _putchar_unlocked( - arg0, - ); + int putchar_unlocked(int arg0) { + return _putchar_unlocked(arg0); } late final _putchar_unlockedPtr = _lookup>( - 'putchar_unlocked'); - late final _putchar_unlocked = - _putchar_unlockedPtr.asFunction(); + 'putchar_unlocked', + ); + late final _putchar_unlocked = _putchar_unlockedPtr + .asFunction(); - int getw( - ffi.Pointer arg0, - ) { - return _getw( - arg0, - ); + int getw(ffi.Pointer arg0) { + return _getw(arg0); } late final _getwPtr = _lookup)>>('getw'); late final _getw = _getwPtr.asFunction)>(); - int putw( - int arg0, - ffi.Pointer arg1, - ) { - return _putw( - arg0, - arg1, - ); + int putw(int arg0, ffi.Pointer arg1) { + return _putw(arg0, arg1); } late final _putwPtr = _lookup)>>( - 'putw'); - late final _putw = - _putwPtr.asFunction)>(); + 'putw', + ); + late final _putw = _putwPtr + .asFunction)>(); ffi.Pointer tempnam( ffi.Pointer __dir, ffi.Pointer __prefix, ) { - return _tempnam( - __dir, - __prefix, - ); + return _tempnam(__dir, __prefix); } - late final _tempnamPtr = _lookup< - ffi.NativeFunction< + late final _tempnamPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('tempnam'); - late final _tempnam = _tempnamPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('tempnam'); + late final _tempnam = _tempnamPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - int fseeko( - ffi.Pointer __stream, - int __offset, - int __whence, - ) { - return _fseeko( - __stream, - __offset, - __whence, - ); + int fseeko(ffi.Pointer __stream, int __offset, int __whence) { + return _fseeko(__stream, __offset, __whence); } - late final _fseekoPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, off_t, ffi.Int)>>('fseeko'); - late final _fseeko = - _fseekoPtr.asFunction, int, int)>(); + late final _fseekoPtr = + _lookup< + ffi.NativeFunction, off_t, ffi.Int)> + >('fseeko'); + late final _fseeko = _fseekoPtr + .asFunction, int, int)>(); - int ftello( - ffi.Pointer __stream, - ) { - return _ftello( - __stream, - ); + int ftello(ffi.Pointer __stream) { + return _ftello(__stream); } late final _ftelloPtr = @@ -8255,54 +7569,53 @@ class NativeCupertinoHttp { int __size, ffi.Pointer __format, ) { - return _snprintf( - __str, - __size, - __format, - ); + return _snprintf(__str, __size, __format); } - late final _snprintfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size, - ffi.Pointer)>>('snprintf'); - late final _snprintf = _snprintfPtr.asFunction< - int Function(ffi.Pointer, int, ffi.Pointer)>(); + late final _snprintfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) + > + >('snprintf'); + late final _snprintf = _snprintfPtr + .asFunction< + int Function(ffi.Pointer, int, ffi.Pointer) + >(); int vfscanf( ffi.Pointer __stream, ffi.Pointer __format, va_list arg2, ) { - return _vfscanf( - __stream, - __format, - arg2, - ); + return _vfscanf(__stream, __format, arg2); } - late final _vfscanfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer, va_list)>>('vfscanf'); - late final _vfscanf = _vfscanfPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, va_list)>(); + late final _vfscanfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) + > + >('vfscanf'); + late final _vfscanf = _vfscanfPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, va_list) + >(); - int vscanf( - ffi.Pointer __format, - va_list arg1, - ) { - return _vscanf( - __format, - arg1, - ); + int vscanf(ffi.Pointer __format, va_list arg1) { + return _vscanf(__format, arg1); } - late final _vscanfPtr = _lookup< - ffi.NativeFunction, va_list)>>( - 'vscanf'); - late final _vscanf = - _vscanfPtr.asFunction, va_list)>(); + late final _vscanfPtr = + _lookup< + ffi.NativeFunction, va_list)> + >('vscanf'); + late final _vscanf = _vscanfPtr + .asFunction, va_list)>(); int vsnprintf( ffi.Pointer __str, @@ -8310,73 +7623,69 @@ class NativeCupertinoHttp { ffi.Pointer __format, va_list arg3, ) { - return _vsnprintf( - __str, - __size, - __format, - arg3, - ); + return _vsnprintf(__str, __size, __format, arg3); } - late final _vsnprintfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size, - ffi.Pointer, va_list)>>('vsnprintf'); - late final _vsnprintf = _vsnprintfPtr.asFunction< - int Function( - ffi.Pointer, int, ffi.Pointer, va_list)>(); + late final _vsnprintfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + va_list, + ) + > + >('vsnprintf'); + late final _vsnprintf = _vsnprintfPtr + .asFunction< + int Function(ffi.Pointer, int, ffi.Pointer, va_list) + >(); int vsscanf( ffi.Pointer __str, ffi.Pointer __format, va_list arg2, ) { - return _vsscanf( - __str, - __format, - arg2, - ); + return _vsscanf(__str, __format, arg2); } - late final _vsscanfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - va_list)>>('vsscanf'); - late final _vsscanf = _vsscanfPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, va_list)>(); + late final _vsscanfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + va_list, + ) + > + >('vsscanf'); + late final _vsscanf = _vsscanfPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, va_list) + >(); - int dprintf( - int arg0, - ffi.Pointer arg1, - ) { - return _dprintf( - arg0, - arg1, - ); + int dprintf(int arg0, ffi.Pointer arg1) { + return _dprintf(arg0, arg1); } - late final _dprintfPtr = _lookup< - ffi.NativeFunction)>>( - 'dprintf'); - late final _dprintf = - _dprintfPtr.asFunction)>(); + late final _dprintfPtr = + _lookup< + ffi.NativeFunction)> + >('dprintf'); + late final _dprintf = _dprintfPtr + .asFunction)>(); - int vdprintf( - int arg0, - ffi.Pointer arg1, - va_list arg2, - ) { - return _vdprintf( - arg0, - arg1, - arg2, - ); + int vdprintf(int arg0, ffi.Pointer arg1, va_list arg2) { + return _vdprintf(arg0, arg1, arg2); } - late final _vdprintfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, va_list)>>('vdprintf'); + late final _vdprintfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, va_list) + > + >('vdprintf'); late final _vdprintf = _vdprintfPtr .asFunction, va_list)>(); @@ -8386,79 +7695,107 @@ class NativeCupertinoHttp { int __delimiter, ffi.Pointer __stream, ) { - return _getdelim( - __linep, - __linecapp, - __delimiter, - __stream, - ); + return _getdelim(__linep, __linecapp, __delimiter, __stream); } - late final _getdelimPtr = _lookup< - ffi.NativeFunction< - ssize_t Function(ffi.Pointer>, - ffi.Pointer, ffi.Int, ffi.Pointer)>>('getdelim'); - late final _getdelim = _getdelimPtr.asFunction< - int Function(ffi.Pointer>, ffi.Pointer, - int, ffi.Pointer)>(); + late final _getdelimPtr = + _lookup< + ffi.NativeFunction< + ssize_t Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >('getdelim'); + late final _getdelim = _getdelimPtr + .asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); int getline( ffi.Pointer> __linep, ffi.Pointer __linecapp, ffi.Pointer __stream, ) { - return _getline( - __linep, - __linecapp, - __stream, - ); + return _getline(__linep, __linecapp, __stream); } - late final _getlinePtr = _lookup< - ffi.NativeFunction< - ssize_t Function(ffi.Pointer>, - ffi.Pointer, ffi.Pointer)>>('getline'); - late final _getline = _getlinePtr.asFunction< - int Function(ffi.Pointer>, ffi.Pointer, - ffi.Pointer)>(); + late final _getlinePtr = + _lookup< + ffi.NativeFunction< + ssize_t Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) + > + >('getline'); + late final _getline = _getlinePtr + .asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) + >(); ffi.Pointer fmemopen( ffi.Pointer __buf, int __size, ffi.Pointer __mode, ) { - return _fmemopen( - __buf, - __size, - __mode, - ); + return _fmemopen(__buf, __size, __mode); } - late final _fmemopenPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Size, - ffi.Pointer)>>('fmemopen'); - late final _fmemopen = _fmemopenPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + late final _fmemopenPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) + > + >('fmemopen'); + late final _fmemopen = _fmemopenPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); ffi.Pointer open_memstream( ffi.Pointer> __bufp, ffi.Pointer __sizep, ) { - return _open_memstream( - __bufp, - __sizep, - ); + return _open_memstream(__bufp, __sizep); } - late final _open_memstreamPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer>, - ffi.Pointer)>>('open_memstream'); - late final _open_memstream = _open_memstreamPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer>, ffi.Pointer)>(); + late final _open_memstreamPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer>, + ffi.Pointer, + ) + > + >('open_memstream'); + late final _open_memstream = _open_memstreamPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer>, + ffi.Pointer, + ) + >(); late final ffi.Pointer _sys_nerr = _lookup('sys_nerr'); @@ -8476,31 +7813,33 @@ class NativeCupertinoHttp { ffi.Pointer> arg0, ffi.Pointer arg1, ) { - return _asprintf( - arg0, - arg1, - ); + return _asprintf(arg0, arg1); } - late final _asprintfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer>, - ffi.Pointer)>>('asprintf'); - late final _asprintf = _asprintfPtr.asFunction< - int Function( - ffi.Pointer>, ffi.Pointer)>(); + late final _asprintfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer, + ) + > + >('asprintf'); + late final _asprintf = _asprintfPtr + .asFunction< + int Function(ffi.Pointer>, ffi.Pointer) + >(); - ffi.Pointer ctermid_r( - ffi.Pointer arg0, - ) { - return _ctermid_r( - arg0, - ); + ffi.Pointer ctermid_r(ffi.Pointer arg0) { + return _ctermid_r(arg0); } - late final _ctermid_rPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('ctermid_r'); + late final _ctermid_rPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('ctermid_r'); late final _ctermid_r = _ctermid_rPtr .asFunction Function(ffi.Pointer)>(); @@ -8508,49 +7847,55 @@ class NativeCupertinoHttp { ffi.Pointer arg0, ffi.Pointer __len, ) { - return _fgetln( - arg0, - __len, - ); + return _fgetln(arg0, __len); } - late final _fgetlnPtr = _lookup< - ffi.NativeFunction< + late final _fgetlnPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('fgetln'); - late final _fgetln = _fgetlnPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('fgetln'); + late final _fgetln = _fgetlnPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); ffi.Pointer fmtcheck( ffi.Pointer arg0, ffi.Pointer arg1, ) { - return _fmtcheck( - arg0, - arg1, - ); + return _fmtcheck(arg0, arg1); } - late final _fmtcheckPtr = _lookup< - ffi.NativeFunction< + late final _fmtcheckPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('fmtcheck'); - late final _fmtcheck = _fmtcheckPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('fmtcheck'); + late final _fmtcheck = _fmtcheckPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - int fpurge( - ffi.Pointer arg0, - ) { - return _fpurge( - arg0, - ); + int fpurge(ffi.Pointer arg0) { + return _fpurge(arg0); } late final _fpurgePtr = _lookup)>>( - 'fpurge'); + 'fpurge', + ); late final _fpurge = _fpurgePtr.asFunction)>(); void setbuffer( @@ -8558,116 +7903,150 @@ class NativeCupertinoHttp { ffi.Pointer arg1, int __size, ) { - return _setbuffer( - arg0, - arg1, - __size, - ); + return _setbuffer(arg0, arg1, __size); } - late final _setbufferPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>>('setbuffer'); - late final _setbuffer = _setbufferPtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _setbufferPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + >('setbuffer'); + late final _setbuffer = _setbufferPtr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); - int setlinebuf( - ffi.Pointer arg0, - ) { - return _setlinebuf( - arg0, - ); + int setlinebuf(ffi.Pointer arg0) { + return _setlinebuf(arg0); } late final _setlinebufPtr = _lookup)>>( - 'setlinebuf'); - late final _setlinebuf = - _setlinebufPtr.asFunction)>(); + 'setlinebuf', + ); + late final _setlinebuf = _setlinebufPtr + .asFunction)>(); int vasprintf( ffi.Pointer> arg0, ffi.Pointer arg1, va_list arg2, ) { - return _vasprintf( - arg0, - arg1, - arg2, - ); + return _vasprintf(arg0, arg1, arg2); } - late final _vasprintfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer>, - ffi.Pointer, va_list)>>('vasprintf'); - late final _vasprintf = _vasprintfPtr.asFunction< - int Function(ffi.Pointer>, ffi.Pointer, - va_list)>(); + late final _vasprintfPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer, + va_list, + ) + > + >('vasprintf'); + late final _vasprintf = _vasprintfPtr + .asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + va_list, + ) + >(); ffi.Pointer funopen( ffi.Pointer arg0, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>> - arg1, + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + > + arg1, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>> - arg2, + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + > + arg2, ffi.Pointer< - ffi.NativeFunction< - fpos_t Function(ffi.Pointer, fpos_t, ffi.Int)>> - arg3, + ffi.NativeFunction< + fpos_t Function(ffi.Pointer, fpos_t, ffi.Int) + > + > + arg3, ffi.Pointer)>> - arg4, + arg4, ) { - return _funopen( - arg0, - arg1, - arg2, - arg3, - arg4, - ); + return _funopen(arg0, arg1, arg2, arg3, arg4); } - late final _funopenPtr = _lookup< - ffi.NativeFunction< + late final _funopenPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>, - ffi.Pointer< - ffi.NativeFunction< - fpos_t Function(ffi.Pointer, fpos_t, ffi.Int)>>, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer)>>)>>('funopen'); - late final _funopen = _funopenPtr.asFunction< - ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction< + fpos_t Function(ffi.Pointer, fpos_t, ffi.Int) + > + >, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('funopen'); + late final _funopen = _funopenPtr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>>, + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >, ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>>, + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >, ffi.Pointer< - ffi.NativeFunction< - fpos_t Function(ffi.Pointer, fpos_t, ffi.Int)>>, + ffi.NativeFunction< + fpos_t Function(ffi.Pointer, fpos_t, ffi.Int) + > + >, ffi.Pointer< - ffi.NativeFunction)>>)>(); + ffi.NativeFunction)> + >, + ) + >(); int __sprintf_chk( ffi.Pointer arg0, @@ -8675,20 +8054,24 @@ class NativeCupertinoHttp { int arg2, ffi.Pointer arg3, ) { - return ___sprintf_chk( - arg0, - arg1, - arg2, - arg3, - ); + return ___sprintf_chk(arg0, arg1, arg2, arg3); } - late final ___sprintf_chkPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Size, - ffi.Pointer)>>('__sprintf_chk'); - late final ___sprintf_chk = ___sprintf_chkPtr.asFunction< - int Function(ffi.Pointer, int, int, ffi.Pointer)>(); + late final ___sprintf_chkPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Size, + ffi.Pointer, + ) + > + >('__sprintf_chk'); + late final ___sprintf_chk = ___sprintf_chkPtr + .asFunction< + int Function(ffi.Pointer, int, int, ffi.Pointer) + >(); int __snprintf_chk( ffi.Pointer arg0, @@ -8697,22 +8080,31 @@ class NativeCupertinoHttp { int arg3, ffi.Pointer arg4, ) { - return ___snprintf_chk( - arg0, - __maxlen, - arg2, - arg3, - arg4, - ); + return ___snprintf_chk(arg0, __maxlen, arg2, arg3, arg4); } - late final ___snprintf_chkPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Int, ffi.Size, - ffi.Pointer)>>('__snprintf_chk'); - late final ___snprintf_chk = ___snprintf_chkPtr.asFunction< - int Function( - ffi.Pointer, int, int, int, ffi.Pointer)>(); + late final ___snprintf_chkPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Size, + ffi.Pointer, + ) + > + >('__snprintf_chk'); + late final ___snprintf_chk = ___snprintf_chkPtr + .asFunction< + int Function( + ffi.Pointer, + int, + int, + int, + ffi.Pointer, + ) + >(); int __vsprintf_chk( ffi.Pointer arg0, @@ -8721,22 +8113,31 @@ class NativeCupertinoHttp { ffi.Pointer arg3, va_list arg4, ) { - return ___vsprintf_chk( - arg0, - arg1, - arg2, - arg3, - arg4, - ); + return ___vsprintf_chk(arg0, arg1, arg2, arg3, arg4); } - late final ___vsprintf_chkPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Size, - ffi.Pointer, va_list)>>('__vsprintf_chk'); - late final ___vsprintf_chk = ___vsprintf_chkPtr.asFunction< - int Function( - ffi.Pointer, int, int, ffi.Pointer, va_list)>(); + late final ___vsprintf_chkPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Size, + ffi.Pointer, + va_list, + ) + > + >('__vsprintf_chk'); + late final ___vsprintf_chk = ___vsprintf_chkPtr + .asFunction< + int Function( + ffi.Pointer, + int, + int, + ffi.Pointer, + va_list, + ) + >(); int __vsnprintf_chk( ffi.Pointer arg0, @@ -8746,187 +8147,205 @@ class NativeCupertinoHttp { ffi.Pointer arg4, va_list arg5, ) { - return ___vsnprintf_chk( - arg0, - __maxlen, - arg2, - arg3, - arg4, - arg5, - ); + return ___vsnprintf_chk(arg0, __maxlen, arg2, arg3, arg4, arg5); } - late final ___vsnprintf_chkPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Int, ffi.Size, - ffi.Pointer, va_list)>>('__vsnprintf_chk'); - late final ___vsnprintf_chk = ___vsnprintf_chkPtr.asFunction< - int Function(ffi.Pointer, int, int, int, ffi.Pointer, - va_list)>(); - - ffi.Pointer memchr( - ffi.Pointer __s, - int __c, - int __n, - ) { - return _memchr( - __s, - __c, - __n, - ); + late final ___vsnprintf_chkPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Size, + ffi.Pointer, + va_list, + ) + > + >('__vsnprintf_chk'); + late final ___vsnprintf_chk = ___vsnprintf_chkPtr + .asFunction< + int Function( + ffi.Pointer, + int, + int, + int, + ffi.Pointer, + va_list, + ) + >(); + + ffi.Pointer memchr(ffi.Pointer __s, int __c, int __n) { + return _memchr(__s, __c, __n); } - late final _memchrPtr = _lookup< - ffi.NativeFunction< + late final _memchrPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Size)>>('memchr'); - late final _memchr = _memchrPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, int)>(); + ffi.Pointer, + ffi.Int, + ffi.Size, + ) + > + >('memchr'); + late final _memchr = _memchrPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int, int) + >(); - int memcmp( - ffi.Pointer __s1, - ffi.Pointer __s2, - int __n, - ) { - return _memcmp( - __s1, - __s2, - __n, - ); + int memcmp(ffi.Pointer __s1, ffi.Pointer __s2, int __n) { + return _memcmp(__s1, __s2, __n); } - late final _memcmpPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Size)>>('memcmp'); - late final _memcmp = _memcmpPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _memcmpPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('memcmp'); + late final _memcmp = _memcmpPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); ffi.Pointer memcpy( ffi.Pointer __dst, ffi.Pointer __src, int __n, ) { - return _memcpy( - __dst, - __src, - __n, - ); + return _memcpy(__dst, __src, __n); } - late final _memcpyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Size)>>('memcpy'); - late final _memcpy = _memcpyPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + late final _memcpyPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('memcpy'); + late final _memcpy = _memcpyPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); ffi.Pointer memmove( ffi.Pointer __dst, ffi.Pointer __src, int __len, ) { - return _memmove( - __dst, - __src, - __len, - ); + return _memmove(__dst, __src, __len); } - late final _memmovePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Size)>>('memmove'); - late final _memmove = _memmovePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + late final _memmovePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('memmove'); + late final _memmove = _memmovePtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - ffi.Pointer memset( - ffi.Pointer __b, - int __c, - int __len, - ) { - return _memset( - __b, - __c, - __len, - ); + ffi.Pointer memset(ffi.Pointer __b, int __c, int __len) { + return _memset(__b, __c, __len); } - late final _memsetPtr = _lookup< - ffi.NativeFunction< + late final _memsetPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Size)>>('memset'); - late final _memset = _memsetPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, int)>(); + ffi.Pointer, + ffi.Int, + ffi.Size, + ) + > + >('memset'); + late final _memset = _memsetPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int, int) + >(); ffi.Pointer strcat( ffi.Pointer __s1, ffi.Pointer __s2, ) { - return _strcat( - __s1, - __s2, - ); + return _strcat(__s1, __s2); } - late final _strcatPtr = _lookup< - ffi.NativeFunction< + late final _strcatPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('strcat'); - late final _strcat = _strcatPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('strcat'); + late final _strcat = _strcatPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - ffi.Pointer strchr( - ffi.Pointer __s, - int __c, - ) { - return _strchr( - __s, - __c, - ); + ffi.Pointer strchr(ffi.Pointer __s, int __c) { + return _strchr(__s, __c); } - late final _strchrPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int)>>('strchr'); + late final _strchrPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('strchr'); late final _strchr = _strchrPtr .asFunction Function(ffi.Pointer, int)>(); - int strcmp( - ffi.Pointer __s1, - ffi.Pointer __s2, - ) { - return _strcmp( - __s1, - __s2, - ); + int strcmp(ffi.Pointer __s1, ffi.Pointer __s2) { + return _strcmp(__s1, __s2); } - late final _strcmpPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('strcmp'); + late final _strcmpPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('strcmp'); late final _strcmp = _strcmpPtr .asFunction, ffi.Pointer)>(); - int strcoll( - ffi.Pointer __s1, - ffi.Pointer __s2, - ) { - return _strcoll( - __s1, - __s2, - ); + int strcoll(ffi.Pointer __s1, ffi.Pointer __s2) { + return _strcoll(__s1, __s2); } - late final _strcollPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('strcoll'); + late final _strcollPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('strcoll'); late final _strcoll = _strcollPtr .asFunction, ffi.Pointer)>(); @@ -8934,173 +8353,187 @@ class NativeCupertinoHttp { ffi.Pointer __dst, ffi.Pointer __src, ) { - return _strcpy( - __dst, - __src, - ); + return _strcpy(__dst, __src); } - late final _strcpyPtr = _lookup< - ffi.NativeFunction< + late final _strcpyPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('strcpy'); - late final _strcpy = _strcpyPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('strcpy'); + late final _strcpy = _strcpyPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - int strcspn( - ffi.Pointer __s, - ffi.Pointer __charset, - ) { - return _strcspn( - __s, - __charset, - ); + int strcspn(ffi.Pointer __s, ffi.Pointer __charset) { + return _strcspn(__s, __charset); } - late final _strcspnPtr = _lookup< - ffi.NativeFunction< + late final _strcspnPtr = + _lookup< + ffi.NativeFunction< ffi.UnsignedLong Function( - ffi.Pointer, ffi.Pointer)>>('strcspn'); + ffi.Pointer, + ffi.Pointer, + ) + > + >('strcspn'); late final _strcspn = _strcspnPtr .asFunction, ffi.Pointer)>(); - ffi.Pointer strerror( - int __errnum, - ) { - return _strerror( - __errnum, - ); + ffi.Pointer strerror(int __errnum) { + return _strerror(__errnum); } late final _strerrorPtr = _lookup Function(ffi.Int)>>( - 'strerror'); - late final _strerror = - _strerrorPtr.asFunction Function(int)>(); + 'strerror', + ); + late final _strerror = _strerrorPtr + .asFunction Function(int)>(); - int strlen( - ffi.Pointer __s, - ) { - return _strlen( - __s, - ); + int strlen(ffi.Pointer __s) { + return _strlen(__s); } - late final _strlenPtr = _lookup< - ffi.NativeFunction)>>( - 'strlen'); - late final _strlen = - _strlenPtr.asFunction)>(); + late final _strlenPtr = + _lookup< + ffi.NativeFunction)> + >('strlen'); + late final _strlen = _strlenPtr + .asFunction)>(); ffi.Pointer strncat( ffi.Pointer __s1, ffi.Pointer __s2, int __n, ) { - return _strncat( - __s1, - __s2, - __n, - ); + return _strncat(__s1, __s2, __n); } - late final _strncatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Size)>>('strncat'); - late final _strncat = _strncatPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + late final _strncatPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('strncat'); + late final _strncat = _strncatPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - int strncmp( - ffi.Pointer __s1, - ffi.Pointer __s2, - int __n, - ) { - return _strncmp( - __s1, - __s2, - __n, - ); + int strncmp(ffi.Pointer __s1, ffi.Pointer __s2, int __n) { + return _strncmp(__s1, __s2, __n); } - late final _strncmpPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Size)>>('strncmp'); - late final _strncmp = _strncmpPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _strncmpPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('strncmp'); + late final _strncmp = _strncmpPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); ffi.Pointer strncpy( ffi.Pointer __dst, ffi.Pointer __src, int __n, ) { - return _strncpy( - __dst, - __src, - __n, - ); + return _strncpy(__dst, __src, __n); } - late final _strncpyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Size)>>('strncpy'); - late final _strncpy = _strncpyPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + late final _strncpyPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('strncpy'); + late final _strncpy = _strncpyPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); ffi.Pointer strpbrk( ffi.Pointer __s, ffi.Pointer __charset, ) { - return _strpbrk( - __s, - __charset, - ); + return _strpbrk(__s, __charset); } - late final _strpbrkPtr = _lookup< - ffi.NativeFunction< + late final _strpbrkPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('strpbrk'); - late final _strpbrk = _strpbrkPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('strpbrk'); + late final _strpbrk = _strpbrkPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - ffi.Pointer strrchr( - ffi.Pointer __s, - int __c, - ) { - return _strrchr( - __s, - __c, - ); + ffi.Pointer strrchr(ffi.Pointer __s, int __c) { + return _strrchr(__s, __c); } - late final _strrchrPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int)>>('strrchr'); + late final _strrchrPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('strrchr'); late final _strrchr = _strrchrPtr .asFunction Function(ffi.Pointer, int)>(); - int strspn( - ffi.Pointer __s, - ffi.Pointer __charset, - ) { - return _strspn( - __s, - __charset, - ); + int strspn(ffi.Pointer __s, ffi.Pointer __charset) { + return _strspn(__s, __charset); } - late final _strspnPtr = _lookup< - ffi.NativeFunction< + late final _strspnPtr = + _lookup< + ffi.NativeFunction< ffi.UnsignedLong Function( - ffi.Pointer, ffi.Pointer)>>('strspn'); + ffi.Pointer, + ffi.Pointer, + ) + > + >('strspn'); late final _strspn = _strspnPtr .asFunction, ffi.Pointer)>(); @@ -9108,109 +8541,123 @@ class NativeCupertinoHttp { ffi.Pointer __big, ffi.Pointer __little, ) { - return _strstr( - __big, - __little, - ); + return _strstr(__big, __little); } - late final _strstrPtr = _lookup< - ffi.NativeFunction< + late final _strstrPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('strstr'); - late final _strstr = _strstrPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('strstr'); + late final _strstr = _strstrPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); ffi.Pointer strtok( ffi.Pointer __str, ffi.Pointer __sep, ) { - return _strtok( - __str, - __sep, - ); + return _strtok(__str, __sep); } - late final _strtokPtr = _lookup< - ffi.NativeFunction< + late final _strtokPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('strtok'); - late final _strtok = _strtokPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('strtok'); + late final _strtok = _strtokPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - int strxfrm( - ffi.Pointer __s1, - ffi.Pointer __s2, - int __n, - ) { - return _strxfrm( - __s1, - __s2, - __n, - ); + int strxfrm(ffi.Pointer __s1, ffi.Pointer __s2, int __n) { + return _strxfrm(__s1, __s2, __n); } - late final _strxfrmPtr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, ffi.Size)>>('strxfrm'); - late final _strxfrm = _strxfrmPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _strxfrmPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('strxfrm'); + late final _strxfrm = _strxfrmPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); ffi.Pointer strtok_r( ffi.Pointer __str, ffi.Pointer __sep, ffi.Pointer> __lasts, ) { - return _strtok_r( - __str, - __sep, - __lasts, - ); + return _strtok_r(__str, __sep, __lasts); } - late final _strtok_rPtr = _lookup< - ffi.NativeFunction< + late final _strtok_rPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('strtok_r'); - late final _strtok_r = _strtok_rPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('strtok_r'); + late final _strtok_r = _strtok_rPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); int strerror_r( int __errnum, ffi.Pointer __strerrbuf, int __buflen, ) { - return _strerror_r( - __errnum, - __strerrbuf, - __buflen, - ); + return _strerror_r(__errnum, __strerrbuf, __buflen); } - late final _strerror_rPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, ffi.Size)>>('strerror_r'); + late final _strerror_rPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Size) + > + >('strerror_r'); late final _strerror_r = _strerror_rPtr .asFunction, int)>(); - ffi.Pointer strdup( - ffi.Pointer __s1, - ) { - return _strdup( - __s1, - ); + ffi.Pointer strdup(ffi.Pointer __s1) { + return _strdup(__s1); } - late final _strdupPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('strdup'); + late final _strdupPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('strdup'); late final _strdup = _strdupPtr .asFunction Function(ffi.Pointer)>(); @@ -9220,125 +8667,126 @@ class NativeCupertinoHttp { int __c, int __n, ) { - return _memccpy( - __dst, - __src, - __c, - __n, - ); + return _memccpy(__dst, __src, __c, __n); } - late final _memccpyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int, ffi.Size)>>('memccpy'); - late final _memccpy = _memccpyPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int, int)>(); + late final _memccpyPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Size, + ) + > + >('memccpy'); + late final _memccpy = _memccpyPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); ffi.Pointer stpcpy( ffi.Pointer __dst, ffi.Pointer __src, ) { - return _stpcpy( - __dst, - __src, - ); + return _stpcpy(__dst, __src); } - late final _stpcpyPtr = _lookup< - ffi.NativeFunction< + late final _stpcpyPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('stpcpy'); - late final _stpcpy = _stpcpyPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('stpcpy'); + late final _stpcpy = _stpcpyPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); ffi.Pointer stpncpy( ffi.Pointer __dst, ffi.Pointer __src, int __n, ) { - return _stpncpy( - __dst, - __src, - __n, - ); + return _stpncpy(__dst, __src, __n); } - late final _stpncpyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Size)>>('stpncpy'); - late final _stpncpy = _stpncpyPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + late final _stpncpyPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('stpncpy'); + late final _stpncpy = _stpncpyPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - ffi.Pointer strndup( - ffi.Pointer __s1, - int __n, - ) { - return _strndup( - __s1, - __n, - ); + ffi.Pointer strndup(ffi.Pointer __s1, int __n) { + return _strndup(__s1, __n); } - late final _strndupPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Size)>>('strndup'); + late final _strndupPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Size) + > + >('strndup'); late final _strndup = _strndupPtr .asFunction Function(ffi.Pointer, int)>(); - int strnlen( - ffi.Pointer __s1, - int __n, - ) { - return _strnlen( - __s1, - __n, - ); + int strnlen(ffi.Pointer __s1, int __n) { + return _strnlen(__s1, __n); } - late final _strnlenPtr = _lookup< - ffi.NativeFunction< - ffi.Size Function(ffi.Pointer, ffi.Size)>>('strnlen'); - late final _strnlen = - _strnlenPtr.asFunction, int)>(); + late final _strnlenPtr = + _lookup< + ffi.NativeFunction, ffi.Size)> + >('strnlen'); + late final _strnlen = _strnlenPtr + .asFunction, int)>(); - ffi.Pointer strsignal( - int __sig, - ) { - return _strsignal( - __sig, - ); + ffi.Pointer strsignal(int __sig) { + return _strsignal(__sig); } late final _strsignalPtr = _lookup Function(ffi.Int)>>( - 'strsignal'); - late final _strsignal = - _strsignalPtr.asFunction Function(int)>(); + 'strsignal', + ); + late final _strsignal = _strsignalPtr + .asFunction Function(int)>(); - int memset_s( - ffi.Pointer __s, - int __smax, - int __c, - int __n, - ) { - return _memset_s( - __s, - __smax, - __c, - __n, - ); + int memset_s(ffi.Pointer __s, int __smax, int __c, int __n) { + return _memset_s(__s, __smax, __c, __n); } - late final _memset_sPtr = _lookup< - ffi.NativeFunction< - errno_t Function( - ffi.Pointer, rsize_t, ffi.Int, rsize_t)>>('memset_s'); + late final _memset_sPtr = + _lookup< + ffi.NativeFunction< + errno_t Function(ffi.Pointer, rsize_t, ffi.Int, rsize_t) + > + >('memset_s'); late final _memset_s = _memset_sPtr .asFunction, int, int, int)>(); @@ -9348,111 +8796,133 @@ class NativeCupertinoHttp { ffi.Pointer __little, int __little_len, ) { - return _memmem( - __big, - __big_len, - __little, - __little_len, - ); + return _memmem(__big, __big_len, __little, __little_len); } - late final _memmemPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Size, - ffi.Pointer, ffi.Size)>>('memmem'); - late final _memmem = _memmemPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer, int)>(); + late final _memmemPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + > + >('memmem'); + late final _memmem = _memmemPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + int, + ffi.Pointer, + int, + ) + >(); void memset_pattern4( ffi.Pointer __b, ffi.Pointer __pattern4, int __len, ) { - return _memset_pattern4( - __b, - __pattern4, - __len, - ); + return _memset_pattern4(__b, __pattern4, __len); } - late final _memset_pattern4Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Size)>>('memset_pattern4'); - late final _memset_pattern4 = _memset_pattern4Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _memset_pattern4Ptr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('memset_pattern4'); + late final _memset_pattern4 = _memset_pattern4Ptr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); void memset_pattern8( ffi.Pointer __b, ffi.Pointer __pattern8, int __len, ) { - return _memset_pattern8( - __b, - __pattern8, - __len, - ); + return _memset_pattern8(__b, __pattern8, __len); } - late final _memset_pattern8Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Size)>>('memset_pattern8'); - late final _memset_pattern8 = _memset_pattern8Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _memset_pattern8Ptr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('memset_pattern8'); + late final _memset_pattern8 = _memset_pattern8Ptr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); void memset_pattern16( ffi.Pointer __b, ffi.Pointer __pattern16, int __len, ) { - return _memset_pattern16( - __b, - __pattern16, - __len, - ); + return _memset_pattern16(__b, __pattern16, __len); } - late final _memset_pattern16Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Size)>>('memset_pattern16'); - late final _memset_pattern16 = _memset_pattern16Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _memset_pattern16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('memset_pattern16'); + late final _memset_pattern16 = _memset_pattern16Ptr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); ffi.Pointer strcasestr( ffi.Pointer __big, ffi.Pointer __little, ) { - return _strcasestr( - __big, - __little, - ); + return _strcasestr(__big, __little); } - late final _strcasestrPtr = _lookup< - ffi.NativeFunction< + late final _strcasestrPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('strcasestr'); - late final _strcasestr = _strcasestrPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('strcasestr'); + late final _strcasestr = _strcasestrPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - ffi.Pointer strchrnul( - ffi.Pointer __s, - int __c, - ) { - return _strchrnul( - __s, - __c, - ); + ffi.Pointer strchrnul(ffi.Pointer __s, int __c) { + return _strchrnul(__s, __c); } - late final _strchrnulPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int)>>('strchrnul'); + late final _strchrnulPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('strchrnul'); late final _strchrnul = _strchrnulPtr .asFunction Function(ffi.Pointer, int)>(); @@ -9461,264 +8931,262 @@ class NativeCupertinoHttp { ffi.Pointer __little, int __len, ) { - return _strnstr( - __big, - __little, - __len, - ); + return _strnstr(__big, __little, __len); } - late final _strnstrPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Size)>>('strnstr'); - late final _strnstr = _strnstrPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + late final _strnstrPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('strnstr'); + late final _strnstr = _strnstrPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); int strlcat( ffi.Pointer __dst, ffi.Pointer __source, int __size, ) { - return _strlcat( - __dst, - __source, - __size, - ); + return _strlcat(__dst, __source, __size); } - late final _strlcatPtr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, ffi.Size)>>('strlcat'); - late final _strlcat = _strlcatPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _strlcatPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('strlcat'); + late final _strlcat = _strlcatPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); int strlcpy( ffi.Pointer __dst, ffi.Pointer __source, int __size, ) { - return _strlcpy( - __dst, - __source, - __size, - ); + return _strlcpy(__dst, __source, __size); } - late final _strlcpyPtr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, ffi.Size)>>('strlcpy'); - late final _strlcpy = _strlcpyPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _strlcpyPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('strlcpy'); + late final _strlcpy = _strlcpyPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); - void strmode( - int __mode, - ffi.Pointer __bp, - ) { - return _strmode( - __mode, - __bp, - ); + void strmode(int __mode, ffi.Pointer __bp) { + return _strmode(__mode, __bp); } - late final _strmodePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Int, ffi.Pointer)>>('strmode'); - late final _strmode = - _strmodePtr.asFunction)>(); + late final _strmodePtr = + _lookup< + ffi.NativeFunction)> + >('strmode'); + late final _strmode = _strmodePtr + .asFunction)>(); ffi.Pointer strsep( ffi.Pointer> __stringp, ffi.Pointer __delim, ) { - return _strsep( - __stringp, - __delim, - ); + return _strsep(__stringp, __delim); } - late final _strsepPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer>, - ffi.Pointer)>>('strsep'); - late final _strsep = _strsepPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer>, ffi.Pointer)>(); + late final _strsepPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer>, + ffi.Pointer, + ) + > + >('strsep'); + late final _strsep = _strsepPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer>, + ffi.Pointer, + ) + >(); - void swab( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __len, - ) { - return _swab( - arg0, - arg1, - __len, - ); + void swab(ffi.Pointer arg0, ffi.Pointer arg1, int __len) { + return _swab(arg0, arg1, __len); } - late final _swabPtr = _lookup< - ffi.NativeFunction< + late final _swabPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ssize_t)>>('swab'); - late final _swab = _swabPtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ssize_t, + ) + > + >('swab'); + late final _swab = _swabPtr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); int timingsafe_bcmp( ffi.Pointer __b1, ffi.Pointer __b2, int __len, ) { - return _timingsafe_bcmp( - __b1, - __b2, - __len, - ); + return _timingsafe_bcmp(__b1, __b2, __len); } - late final _timingsafe_bcmpPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Size)>>('timingsafe_bcmp'); - late final _timingsafe_bcmp = _timingsafe_bcmpPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _timingsafe_bcmpPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('timingsafe_bcmp'); + late final _timingsafe_bcmp = _timingsafe_bcmpPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); int strsignal_r( int __sig, ffi.Pointer __strsignalbuf, int __buflen, ) { - return _strsignal_r( - __sig, - __strsignalbuf, - __buflen, - ); + return _strsignal_r(__sig, __strsignalbuf, __buflen); } - late final _strsignal_rPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, ffi.Size)>>('strsignal_r'); + late final _strsignal_rPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Size) + > + >('strsignal_r'); late final _strsignal_r = _strsignal_rPtr .asFunction, int)>(); - int bcmp( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __n, - ) { - return _bcmp( - arg0, - arg1, - __n, - ); + int bcmp(ffi.Pointer arg0, ffi.Pointer arg1, int __n) { + return _bcmp(arg0, arg1, __n); } - late final _bcmpPtr = _lookup< - ffi.NativeFunction< + late final _bcmpPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Pointer, ffi.Pointer, ffi.Size)>>('bcmp'); - late final _bcmp = _bcmpPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('bcmp'); + late final _bcmp = _bcmpPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); - void bcopy( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __n, - ) { - return _bcopy( - arg0, - arg1, - __n, - ); + void bcopy(ffi.Pointer arg0, ffi.Pointer arg1, int __n) { + return _bcopy(arg0, arg1, __n); } - late final _bcopyPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Size)>>('bcopy'); - late final _bcopy = _bcopyPtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _bcopyPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('bcopy'); + late final _bcopy = _bcopyPtr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); - void bzero( - ffi.Pointer arg0, - int __n, - ) { - return _bzero( - arg0, - __n, - ); + void bzero(ffi.Pointer arg0, int __n) { + return _bzero(arg0, __n); } - late final _bzeroPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Size)>>('bzero'); - late final _bzero = - _bzeroPtr.asFunction, int)>(); + late final _bzeroPtr = + _lookup< + ffi.NativeFunction, ffi.Size)> + >('bzero'); + late final _bzero = _bzeroPtr + .asFunction, int)>(); - ffi.Pointer index( - ffi.Pointer arg0, - int arg1, - ) { - return _index( - arg0, - arg1, - ); + ffi.Pointer index(ffi.Pointer arg0, int arg1) { + return _index(arg0, arg1); } - late final _indexPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int)>>('index'); + late final _indexPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('index'); late final _index = _indexPtr .asFunction Function(ffi.Pointer, int)>(); - ffi.Pointer rindex( - ffi.Pointer arg0, - int arg1, - ) { - return _rindex( - arg0, - arg1, - ); + ffi.Pointer rindex(ffi.Pointer arg0, int arg1) { + return _rindex(arg0, arg1); } - late final _rindexPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int)>>('rindex'); + late final _rindexPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('rindex'); late final _rindex = _rindexPtr .asFunction Function(ffi.Pointer, int)>(); - int ffs( - int arg0, - ) { - return _ffs( - arg0, - ); + int ffs(int arg0) { + return _ffs(arg0); } - late final _ffsPtr = - _lookup>('ffs'); + late final _ffsPtr = _lookup>( + 'ffs', + ); late final _ffs = _ffsPtr.asFunction(); - int strcasecmp( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _strcasecmp( - arg0, - arg1, - ); + int strcasecmp(ffi.Pointer arg0, ffi.Pointer arg1) { + return _strcasecmp(arg0, arg1); } - late final _strcasecmpPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('strcasecmp'); + late final _strcasecmpPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('strcasecmp'); late final _strcasecmp = _strcasecmpPtr .asFunction, ffi.Pointer)>(); @@ -9727,74 +9195,61 @@ class NativeCupertinoHttp { ffi.Pointer arg1, int arg2, ) { - return _strncasecmp( - arg0, - arg1, - arg2, - ); + return _strncasecmp(arg0, arg1, arg2); } - late final _strncasecmpPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Size)>>('strncasecmp'); - late final _strncasecmp = _strncasecmpPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _strncasecmpPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('strncasecmp'); + late final _strncasecmp = _strncasecmpPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); - int ffsl( - int arg0, - ) { - return _ffsl( - arg0, - ); + int ffsl(int arg0) { + return _ffsl(arg0); } - late final _ffslPtr = - _lookup>('ffsl'); + late final _ffslPtr = _lookup>( + 'ffsl', + ); late final _ffsl = _ffslPtr.asFunction(); - int ffsll( - int arg0, - ) { - return _ffsll( - arg0, - ); + int ffsll(int arg0) { + return _ffsll(arg0); } late final _ffsllPtr = _lookup>('ffsll'); late final _ffsll = _ffsllPtr.asFunction(); - int fls( - int arg0, - ) { - return _fls( - arg0, - ); + int fls(int arg0) { + return _fls(arg0); } - late final _flsPtr = - _lookup>('fls'); + late final _flsPtr = _lookup>( + 'fls', + ); late final _fls = _flsPtr.asFunction(); - int flsl( - int arg0, - ) { - return _flsl( - arg0, - ); + int flsl(int arg0) { + return _flsl(arg0); } - late final _flslPtr = - _lookup>('flsl'); + late final _flslPtr = _lookup>( + 'flsl', + ); late final _flsl = _flslPtr.asFunction(); - int flsll( - int arg0, - ) { - return _flsll( - arg0, - ); + int flsll(int arg0) { + return _flsll(arg0); } late final _flsllPtr = @@ -9808,8 +9263,9 @@ class NativeCupertinoHttp { set tzname(ffi.Pointer> value) => _tzname.value = value; - late final ffi.Pointer _getdate_err = - _lookup('getdate_err'); + late final ffi.Pointer _getdate_err = _lookup( + 'getdate_err', + ); int get getdate_err => _getdate_err.value; @@ -9827,105 +9283,82 @@ class NativeCupertinoHttp { set daylight(int value) => _daylight.value = value; - ffi.Pointer asctime( - ffi.Pointer arg0, - ) { - return _asctime( - arg0, - ); + ffi.Pointer asctime(ffi.Pointer arg0) { + return _asctime(arg0); } - late final _asctimePtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'asctime'); - late final _asctime = - _asctimePtr.asFunction Function(ffi.Pointer)>(); + late final _asctimePtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('asctime'); + late final _asctime = _asctimePtr + .asFunction Function(ffi.Pointer)>(); int clock() { return _clock(); } - late final _clockPtr = - _lookup>('clock'); + late final _clockPtr = _lookup>( + 'clock', + ); late final _clock = _clockPtr.asFunction(); - ffi.Pointer ctime( - ffi.Pointer arg0, - ) { - return _ctime( - arg0, - ); + ffi.Pointer ctime(ffi.Pointer arg0) { + return _ctime(arg0); } - late final _ctimePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('ctime'); + late final _ctimePtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('ctime'); late final _ctime = _ctimePtr .asFunction Function(ffi.Pointer)>(); - double difftime( - int arg0, - int arg1, - ) { - return _difftime( - arg0, - arg1, - ); + double difftime(int arg0, int arg1) { + return _difftime(arg0, arg1); } late final _difftimePtr = _lookup>( - 'difftime'); + 'difftime', + ); late final _difftime = _difftimePtr.asFunction(); - ffi.Pointer getdate( - ffi.Pointer arg0, - ) { - return _getdate( - arg0, - ); + ffi.Pointer getdate(ffi.Pointer arg0) { + return _getdate(arg0); } - late final _getdatePtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'getdate'); - late final _getdate = - _getdatePtr.asFunction Function(ffi.Pointer)>(); + late final _getdatePtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('getdate'); + late final _getdate = _getdatePtr + .asFunction Function(ffi.Pointer)>(); - ffi.Pointer gmtime( - ffi.Pointer arg0, - ) { - return _gmtime( - arg0, - ); + ffi.Pointer gmtime(ffi.Pointer arg0) { + return _gmtime(arg0); } - late final _gmtimePtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer)>>('gmtime'); - late final _gmtime = - _gmtimePtr.asFunction Function(ffi.Pointer)>(); + late final _gmtimePtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('gmtime'); + late final _gmtime = _gmtimePtr + .asFunction Function(ffi.Pointer)>(); - ffi.Pointer localtime( - ffi.Pointer arg0, - ) { - return _localtime( - arg0, - ); + ffi.Pointer localtime(ffi.Pointer arg0) { + return _localtime(arg0); } - late final _localtimePtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'localtime'); - late final _localtime = - _localtimePtr.asFunction Function(ffi.Pointer)>(); + late final _localtimePtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('localtime'); + late final _localtime = _localtimePtr + .asFunction Function(ffi.Pointer)>(); - int mktime( - ffi.Pointer arg0, - ) { - return _mktime( - arg0, - ); + int mktime(ffi.Pointer arg0) { + return _mktime(arg0); } late final _mktimePtr = @@ -9938,48 +9371,59 @@ class NativeCupertinoHttp { ffi.Pointer arg2, ffi.Pointer arg3, ) { - return _strftime( - arg0, - __maxsize, - arg2, - arg3, - ); + return _strftime(arg0, __maxsize, arg2, arg3); } - late final _strftimePtr = _lookup< - ffi.NativeFunction< - ffi.Size Function(ffi.Pointer, ffi.Size, - ffi.Pointer, ffi.Pointer)>>('strftime'); - late final _strftime = _strftimePtr.asFunction< - int Function(ffi.Pointer, int, ffi.Pointer, - ffi.Pointer)>(); + late final _strftimePtr = + _lookup< + ffi.NativeFunction< + ffi.Size Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) + > + >('strftime'); + late final _strftime = _strftimePtr + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); ffi.Pointer strptime( ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ) { - return _strptime( - arg0, - arg1, - arg2, - ); + return _strptime(arg0, arg1, arg2); } - late final _strptimePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('strptime'); - late final _strptime = _strptimePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + late final _strptimePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('strptime'); + late final _strptime = _strptimePtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); - int time( - ffi.Pointer arg0, - ) { - return _time( - arg0, - ); + int time(ffi.Pointer arg0) { + return _time(arg0); } late final _timePtr = @@ -9990,85 +9434,85 @@ class NativeCupertinoHttp { return _tzset(); } - late final _tzsetPtr = - _lookup>('tzset'); + late final _tzsetPtr = _lookup>( + 'tzset', + ); late final _tzset = _tzsetPtr.asFunction(); ffi.Pointer asctime_r( ffi.Pointer arg0, ffi.Pointer arg1, ) { - return _asctime_r( - arg0, - arg1, - ); + return _asctime_r(arg0, arg1); } - late final _asctime_rPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('asctime_r'); - late final _asctime_r = _asctime_rPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + late final _asctime_rPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + >('asctime_r'); + late final _asctime_r = _asctime_rPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); ffi.Pointer ctime_r( ffi.Pointer arg0, ffi.Pointer arg1, ) { - return _ctime_r( - arg0, - arg1, - ); + return _ctime_r(arg0, arg1); } - late final _ctime_rPtr = _lookup< - ffi.NativeFunction< + late final _ctime_rPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('ctime_r'); - late final _ctime_r = _ctime_rPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('ctime_r'); + late final _ctime_r = _ctime_rPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - ffi.Pointer gmtime_r( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _gmtime_r( - arg0, - arg1, - ); + ffi.Pointer gmtime_r(ffi.Pointer arg0, ffi.Pointer arg1) { + return _gmtime_r(arg0, arg1); } - late final _gmtime_rPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('gmtime_r'); - late final _gmtime_r = _gmtime_rPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + late final _gmtime_rPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + >('gmtime_r'); + late final _gmtime_r = _gmtime_rPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); - ffi.Pointer localtime_r( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _localtime_r( - arg0, - arg1, - ); + ffi.Pointer localtime_r(ffi.Pointer arg0, ffi.Pointer arg1) { + return _localtime_r(arg0, arg1); } - late final _localtime_rPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('localtime_r'); - late final _localtime_r = _localtime_rPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + late final _localtime_rPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + >('localtime_r'); + late final _localtime_r = _localtime_rPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); - int posix2time( - int arg0, - ) { - return _posix2time( - arg0, - ); + int posix2time(int arg0) { + return _posix2time(arg0); } late final _posix2timePtr = @@ -10079,171 +9523,128 @@ class NativeCupertinoHttp { return _tzsetwall(); } - late final _tzsetwallPtr = - _lookup>('tzsetwall'); + late final _tzsetwallPtr = _lookup>( + 'tzsetwall', + ); late final _tzsetwall = _tzsetwallPtr.asFunction(); - int time2posix( - int arg0, - ) { - return _time2posix( - arg0, - ); + int time2posix(int arg0) { + return _time2posix(arg0); } late final _time2posixPtr = _lookup>('time2posix'); late final _time2posix = _time2posixPtr.asFunction(); - int timelocal( - ffi.Pointer arg0, - ) { - return _timelocal( - arg0, - ); + int timelocal(ffi.Pointer arg0) { + return _timelocal(arg0); } late final _timelocalPtr = _lookup)>>( - 'timelocal'); - late final _timelocal = - _timelocalPtr.asFunction)>(); + 'timelocal', + ); + late final _timelocal = _timelocalPtr + .asFunction)>(); - int timegm( - ffi.Pointer arg0, - ) { - return _timegm( - arg0, - ); + int timegm(ffi.Pointer arg0) { + return _timegm(arg0); } late final _timegmPtr = _lookup)>>('timegm'); late final _timegm = _timegmPtr.asFunction)>(); - int nanosleep( - ffi.Pointer __rqtp, - ffi.Pointer __rmtp, - ) { - return _nanosleep( - __rqtp, - __rmtp, - ); + int nanosleep(ffi.Pointer __rqtp, ffi.Pointer __rmtp) { + return _nanosleep(__rqtp, __rmtp); } - late final _nanosleepPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('nanosleep'); + late final _nanosleepPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('nanosleep'); late final _nanosleep = _nanosleepPtr .asFunction, ffi.Pointer)>(); - int clock_getres( - clockid_t __clock_id, - ffi.Pointer __res, - ) { - return _clock_getres( - __clock_id.value, - __res, - ); + int clock_getres(clockid_t __clock_id, ffi.Pointer __res) { + return _clock_getres(__clock_id.value, __res); } - late final _clock_getresPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.UnsignedInt, ffi.Pointer)>>('clock_getres'); - late final _clock_getres = - _clock_getresPtr.asFunction)>(); + late final _clock_getresPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + > + >('clock_getres'); + late final _clock_getres = _clock_getresPtr + .asFunction)>(); - int clock_gettime( - clockid_t __clock_id, - ffi.Pointer __tp, - ) { - return _clock_gettime( - __clock_id.value, - __tp, - ); + int clock_gettime(clockid_t __clock_id, ffi.Pointer __tp) { + return _clock_gettime(__clock_id.value, __tp); } - late final _clock_gettimePtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.UnsignedInt, ffi.Pointer)>>('clock_gettime'); - late final _clock_gettime = - _clock_gettimePtr.asFunction)>(); + late final _clock_gettimePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + > + >('clock_gettime'); + late final _clock_gettime = _clock_gettimePtr + .asFunction)>(); - Dart__uint64_t clock_gettime_nsec_np( - clockid_t __clock_id, - ) { - return _clock_gettime_nsec_np( - __clock_id.value, - ); + Dart__uint64_t clock_gettime_nsec_np(clockid_t __clock_id) { + return _clock_gettime_nsec_np(__clock_id.value); } late final _clock_gettime_nsec_npPtr = _lookup>( - 'clock_gettime_nsec_np'); - late final _clock_gettime_nsec_np = - _clock_gettime_nsec_npPtr.asFunction(); + 'clock_gettime_nsec_np', + ); + late final _clock_gettime_nsec_np = _clock_gettime_nsec_npPtr + .asFunction(); - int clock_settime( - clockid_t __clock_id, - ffi.Pointer __tp, - ) { - return _clock_settime( - __clock_id.value, - __tp, - ); + int clock_settime(clockid_t __clock_id, ffi.Pointer __tp) { + return _clock_settime(__clock_id.value, __tp); } - late final _clock_settimePtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.UnsignedInt, ffi.Pointer)>>('clock_settime'); - late final _clock_settime = - _clock_settimePtr.asFunction)>(); + late final _clock_settimePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + > + >('clock_settime'); + late final _clock_settime = _clock_settimePtr + .asFunction)>(); - int timespec_get( - ffi.Pointer ts, - int base, - ) { - return _timespec_get( - ts, - base, - ); + int timespec_get(ffi.Pointer ts, int base) { + return _timespec_get(ts, base); } - late final _timespec_getPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'timespec_get'); - late final _timespec_get = - _timespec_getPtr.asFunction, int)>(); + late final _timespec_getPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('timespec_get'); + late final _timespec_get = _timespec_getPtr + .asFunction, int)>(); - int imaxabs( - int j, - ) { - return _imaxabs( - j, - ); + int imaxabs(int j) { + return _imaxabs(j); } late final _imaxabsPtr = _lookup>('imaxabs'); late final _imaxabs = _imaxabsPtr.asFunction(); - imaxdiv_t imaxdiv( - int __numer, - int __denom, - ) { - return _imaxdiv( - __numer, - __denom, - ); + imaxdiv_t imaxdiv(int __numer, int __denom) { + return _imaxdiv(__numer, __denom); } late final _imaxdivPtr = _lookup>( - 'imaxdiv'); + 'imaxdiv', + ); late final _imaxdiv = _imaxdivPtr.asFunction(); int strtoimax( @@ -10251,80 +9652,108 @@ class NativeCupertinoHttp { ffi.Pointer> __endptr, int __base, ) { - return _strtoimax( - __nptr, - __endptr, - __base, - ); + return _strtoimax(__nptr, __endptr, __base); } - late final _strtoimaxPtr = _lookup< - ffi.NativeFunction< - intmax_t Function(ffi.Pointer, - ffi.Pointer>, ffi.Int)>>('strtoimax'); - late final _strtoimax = _strtoimaxPtr.asFunction< - int Function( - ffi.Pointer, ffi.Pointer>, int)>(); + late final _strtoimaxPtr = + _lookup< + ffi.NativeFunction< + intmax_t Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) + > + >('strtoimax'); + late final _strtoimax = _strtoimaxPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); int strtoumax( ffi.Pointer __nptr, ffi.Pointer> __endptr, int __base, ) { - return _strtoumax( - __nptr, - __endptr, - __base, - ); + return _strtoumax(__nptr, __endptr, __base); } - late final _strtoumaxPtr = _lookup< - ffi.NativeFunction< - uintmax_t Function(ffi.Pointer, - ffi.Pointer>, ffi.Int)>>('strtoumax'); - late final _strtoumax = _strtoumaxPtr.asFunction< - int Function( - ffi.Pointer, ffi.Pointer>, int)>(); + late final _strtoumaxPtr = + _lookup< + ffi.NativeFunction< + uintmax_t Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) + > + >('strtoumax'); + late final _strtoumax = _strtoumaxPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); int wcstoimax( ffi.Pointer __nptr, ffi.Pointer> __endptr, int __base, ) { - return _wcstoimax( - __nptr, - __endptr, - __base, - ); + return _wcstoimax(__nptr, __endptr, __base); } - late final _wcstoimaxPtr = _lookup< - ffi.NativeFunction< - intmax_t Function(ffi.Pointer, - ffi.Pointer>, ffi.Int)>>('wcstoimax'); - late final _wcstoimax = _wcstoimaxPtr.asFunction< - int Function( - ffi.Pointer, ffi.Pointer>, int)>(); + late final _wcstoimaxPtr = + _lookup< + ffi.NativeFunction< + intmax_t Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) + > + >('wcstoimax'); + late final _wcstoimax = _wcstoimaxPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); int wcstoumax( ffi.Pointer __nptr, ffi.Pointer> __endptr, int __base, ) { - return _wcstoumax( - __nptr, - __endptr, - __base, - ); + return _wcstoumax(__nptr, __endptr, __base); } - late final _wcstoumaxPtr = _lookup< - ffi.NativeFunction< - uintmax_t Function(ffi.Pointer, - ffi.Pointer>, ffi.Int)>>('wcstoumax'); - late final _wcstoumax = _wcstoumaxPtr.asFunction< - int Function( - ffi.Pointer, ffi.Pointer>, int)>(); + late final _wcstoumaxPtr = + _lookup< + ffi.NativeFunction< + uintmax_t Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) + > + >('wcstoumax'); + late final _wcstoumax = _wcstoumaxPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); late final ffi.Pointer _kCFTypeBagCallBacks = _lookup('kCFTypeBagCallBacks'); @@ -10351,83 +9780,91 @@ class NativeCupertinoHttp { int numValues, ffi.Pointer callBacks, ) { - return _CFBagCreate( - allocator, - values, - numValues, - callBacks, - ); + return _CFBagCreate(allocator, values, numValues, callBacks); } - late final _CFBagCreatePtr = _lookup< - ffi.NativeFunction< - CFBagRef Function(CFAllocatorRef, ffi.Pointer>, - CFIndex, ffi.Pointer)>>('CFBagCreate'); - late final _CFBagCreate = _CFBagCreatePtr.asFunction< - CFBagRef Function(CFAllocatorRef, ffi.Pointer>, int, - ffi.Pointer)>(); + late final _CFBagCreatePtr = + _lookup< + ffi.NativeFunction< + CFBagRef Function( + CFAllocatorRef, + ffi.Pointer>, + CFIndex, + ffi.Pointer, + ) + > + >('CFBagCreate'); + late final _CFBagCreate = + _CFBagCreatePtr.asFunction< + CFBagRef Function( + CFAllocatorRef, + ffi.Pointer>, + int, + ffi.Pointer, + ) + >(); - CFBagRef CFBagCreateCopy( - CFAllocatorRef allocator, - CFBagRef theBag, - ) { - return _CFBagCreateCopy( - allocator, - theBag, - ); + CFBagRef CFBagCreateCopy(CFAllocatorRef allocator, CFBagRef theBag) { + return _CFBagCreateCopy(allocator, theBag); } late final _CFBagCreateCopyPtr = _lookup>( - 'CFBagCreateCopy'); - late final _CFBagCreateCopy = _CFBagCreateCopyPtr.asFunction< - CFBagRef Function(CFAllocatorRef, CFBagRef)>(); + 'CFBagCreateCopy', + ); + late final _CFBagCreateCopy = + _CFBagCreateCopyPtr.asFunction< + CFBagRef Function(CFAllocatorRef, CFBagRef) + >(); CFMutableBagRef CFBagCreateMutable( CFAllocatorRef allocator, int capacity, ffi.Pointer callBacks, ) { - return _CFBagCreateMutable( - allocator, - capacity, - callBacks, - ); + return _CFBagCreateMutable(allocator, capacity, callBacks); } - late final _CFBagCreateMutablePtr = _lookup< - ffi.NativeFunction< - CFMutableBagRef Function(CFAllocatorRef, CFIndex, - ffi.Pointer)>>('CFBagCreateMutable'); - late final _CFBagCreateMutable = _CFBagCreateMutablePtr.asFunction< - CFMutableBagRef Function( - CFAllocatorRef, int, ffi.Pointer)>(); + late final _CFBagCreateMutablePtr = + _lookup< + ffi.NativeFunction< + CFMutableBagRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ) + > + >('CFBagCreateMutable'); + late final _CFBagCreateMutable = + _CFBagCreateMutablePtr.asFunction< + CFMutableBagRef Function( + CFAllocatorRef, + int, + ffi.Pointer, + ) + >(); CFMutableBagRef CFBagCreateMutableCopy( CFAllocatorRef allocator, int capacity, CFBagRef theBag, ) { - return _CFBagCreateMutableCopy( - allocator, - capacity, - theBag, - ); + return _CFBagCreateMutableCopy(allocator, capacity, theBag); } - late final _CFBagCreateMutableCopyPtr = _lookup< - ffi.NativeFunction< - CFMutableBagRef Function( - CFAllocatorRef, CFIndex, CFBagRef)>>('CFBagCreateMutableCopy'); - late final _CFBagCreateMutableCopy = _CFBagCreateMutableCopyPtr.asFunction< - CFMutableBagRef Function(CFAllocatorRef, int, CFBagRef)>(); + late final _CFBagCreateMutableCopyPtr = + _lookup< + ffi.NativeFunction< + CFMutableBagRef Function(CFAllocatorRef, CFIndex, CFBagRef) + > + >('CFBagCreateMutableCopy'); + late final _CFBagCreateMutableCopy = + _CFBagCreateMutableCopyPtr.asFunction< + CFMutableBagRef Function(CFAllocatorRef, int, CFBagRef) + >(); - int CFBagGetCount( - CFBagRef theBag, - ) { - return _CFBagGetCount( - theBag, - ); + int CFBagGetCount(CFBagRef theBag) { + return _CFBagGetCount(theBag); } late final _CFBagGetCountPtr = @@ -10435,192 +9872,186 @@ class NativeCupertinoHttp { late final _CFBagGetCount = _CFBagGetCountPtr.asFunction(); - int CFBagGetCountOfValue( - CFBagRef theBag, - ffi.Pointer value, - ) { - return _CFBagGetCountOfValue( - theBag, - value, - ); + int CFBagGetCountOfValue(CFBagRef theBag, ffi.Pointer value) { + return _CFBagGetCountOfValue(theBag, value); } - late final _CFBagGetCountOfValuePtr = _lookup< - ffi - .NativeFunction)>>( - 'CFBagGetCountOfValue'); - late final _CFBagGetCountOfValue = _CFBagGetCountOfValuePtr.asFunction< - int Function(CFBagRef, ffi.Pointer)>(); + late final _CFBagGetCountOfValuePtr = + _lookup< + ffi.NativeFunction)> + >('CFBagGetCountOfValue'); + late final _CFBagGetCountOfValue = + _CFBagGetCountOfValuePtr.asFunction< + int Function(CFBagRef, ffi.Pointer) + >(); - int CFBagContainsValue( - CFBagRef theBag, - ffi.Pointer value, - ) { - return _CFBagContainsValue( - theBag, - value, - ); + int CFBagContainsValue(CFBagRef theBag, ffi.Pointer value) { + return _CFBagContainsValue(theBag, value); } - late final _CFBagContainsValuePtr = _lookup< - ffi - .NativeFunction)>>( - 'CFBagContainsValue'); - late final _CFBagContainsValue = _CFBagContainsValuePtr.asFunction< - int Function(CFBagRef, ffi.Pointer)>(); + late final _CFBagContainsValuePtr = + _lookup< + ffi.NativeFunction)> + >('CFBagContainsValue'); + late final _CFBagContainsValue = + _CFBagContainsValuePtr.asFunction< + int Function(CFBagRef, ffi.Pointer) + >(); ffi.Pointer CFBagGetValue( CFBagRef theBag, ffi.Pointer value, ) { - return _CFBagGetValue( - theBag, - value, - ); + return _CFBagGetValue(theBag, value); } - late final _CFBagGetValuePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CFBagRef, ffi.Pointer)>>('CFBagGetValue'); - late final _CFBagGetValue = _CFBagGetValuePtr.asFunction< - ffi.Pointer Function(CFBagRef, ffi.Pointer)>(); + late final _CFBagGetValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CFBagRef, ffi.Pointer) + > + >('CFBagGetValue'); + late final _CFBagGetValue = + _CFBagGetValuePtr.asFunction< + ffi.Pointer Function(CFBagRef, ffi.Pointer) + >(); int CFBagGetValueIfPresent( CFBagRef theBag, ffi.Pointer candidate, ffi.Pointer> value, ) { - return _CFBagGetValueIfPresent( - theBag, - candidate, - value, - ); + return _CFBagGetValueIfPresent(theBag, candidate, value); } - late final _CFBagGetValueIfPresentPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFBagRef, ffi.Pointer, - ffi.Pointer>)>>('CFBagGetValueIfPresent'); - late final _CFBagGetValueIfPresent = _CFBagGetValueIfPresentPtr.asFunction< - int Function(CFBagRef, ffi.Pointer, - ffi.Pointer>)>(); + late final _CFBagGetValueIfPresentPtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFBagRef, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('CFBagGetValueIfPresent'); + late final _CFBagGetValueIfPresent = + _CFBagGetValueIfPresentPtr.asFunction< + int Function( + CFBagRef, + ffi.Pointer, + ffi.Pointer>, + ) + >(); void CFBagGetValues( CFBagRef theBag, ffi.Pointer> values, ) { - return _CFBagGetValues( - theBag, - values, - ); + return _CFBagGetValues(theBag, values); } - late final _CFBagGetValuesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFBagRef, ffi.Pointer>)>>('CFBagGetValues'); - late final _CFBagGetValues = _CFBagGetValuesPtr.asFunction< - void Function(CFBagRef, ffi.Pointer>)>(); + late final _CFBagGetValuesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFBagRef, ffi.Pointer>) + > + >('CFBagGetValues'); + late final _CFBagGetValues = + _CFBagGetValuesPtr.asFunction< + void Function(CFBagRef, ffi.Pointer>) + >(); void CFBagApplyFunction( CFBagRef theBag, CFBagApplierFunction applier, ffi.Pointer context, ) { - return _CFBagApplyFunction( - theBag, - applier, - context, - ); + return _CFBagApplyFunction(theBag, applier, context); } - late final _CFBagApplyFunctionPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFBagRef, CFBagApplierFunction, - ffi.Pointer)>>('CFBagApplyFunction'); - late final _CFBagApplyFunction = _CFBagApplyFunctionPtr.asFunction< - void Function(CFBagRef, CFBagApplierFunction, ffi.Pointer)>(); + late final _CFBagApplyFunctionPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFBagRef, + CFBagApplierFunction, + ffi.Pointer, + ) + > + >('CFBagApplyFunction'); + late final _CFBagApplyFunction = + _CFBagApplyFunctionPtr.asFunction< + void Function(CFBagRef, CFBagApplierFunction, ffi.Pointer) + >(); - void CFBagAddValue( - CFMutableBagRef theBag, - ffi.Pointer value, - ) { - return _CFBagAddValue( - theBag, - value, - ); + void CFBagAddValue(CFMutableBagRef theBag, ffi.Pointer value) { + return _CFBagAddValue(theBag, value); } - late final _CFBagAddValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableBagRef, ffi.Pointer)>>('CFBagAddValue'); - late final _CFBagAddValue = _CFBagAddValuePtr.asFunction< - void Function(CFMutableBagRef, ffi.Pointer)>(); + late final _CFBagAddValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableBagRef, ffi.Pointer) + > + >('CFBagAddValue'); + late final _CFBagAddValue = + _CFBagAddValuePtr.asFunction< + void Function(CFMutableBagRef, ffi.Pointer) + >(); - void CFBagReplaceValue( - CFMutableBagRef theBag, - ffi.Pointer value, - ) { - return _CFBagReplaceValue( - theBag, - value, - ); + void CFBagReplaceValue(CFMutableBagRef theBag, ffi.Pointer value) { + return _CFBagReplaceValue(theBag, value); } - late final _CFBagReplaceValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableBagRef, ffi.Pointer)>>('CFBagReplaceValue'); - late final _CFBagReplaceValue = _CFBagReplaceValuePtr.asFunction< - void Function(CFMutableBagRef, ffi.Pointer)>(); + late final _CFBagReplaceValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableBagRef, ffi.Pointer) + > + >('CFBagReplaceValue'); + late final _CFBagReplaceValue = + _CFBagReplaceValuePtr.asFunction< + void Function(CFMutableBagRef, ffi.Pointer) + >(); - void CFBagSetValue( - CFMutableBagRef theBag, - ffi.Pointer value, - ) { - return _CFBagSetValue( - theBag, - value, - ); + void CFBagSetValue(CFMutableBagRef theBag, ffi.Pointer value) { + return _CFBagSetValue(theBag, value); } - late final _CFBagSetValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableBagRef, ffi.Pointer)>>('CFBagSetValue'); - late final _CFBagSetValue = _CFBagSetValuePtr.asFunction< - void Function(CFMutableBagRef, ffi.Pointer)>(); + late final _CFBagSetValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableBagRef, ffi.Pointer) + > + >('CFBagSetValue'); + late final _CFBagSetValue = + _CFBagSetValuePtr.asFunction< + void Function(CFMutableBagRef, ffi.Pointer) + >(); - void CFBagRemoveValue( - CFMutableBagRef theBag, - ffi.Pointer value, - ) { - return _CFBagRemoveValue( - theBag, - value, - ); + void CFBagRemoveValue(CFMutableBagRef theBag, ffi.Pointer value) { + return _CFBagRemoveValue(theBag, value); } - late final _CFBagRemoveValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableBagRef, ffi.Pointer)>>('CFBagRemoveValue'); - late final _CFBagRemoveValue = _CFBagRemoveValuePtr.asFunction< - void Function(CFMutableBagRef, ffi.Pointer)>(); + late final _CFBagRemoveValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableBagRef, ffi.Pointer) + > + >('CFBagRemoveValue'); + late final _CFBagRemoveValue = + _CFBagRemoveValuePtr.asFunction< + void Function(CFMutableBagRef, ffi.Pointer) + >(); - void CFBagRemoveAllValues( - CFMutableBagRef theBag, - ) { - return _CFBagRemoveAllValues( - theBag, - ); + void CFBagRemoveAllValues(CFMutableBagRef theBag) { + return _CFBagRemoveAllValues(theBag); } late final _CFBagRemoveAllValuesPtr = _lookup>( - 'CFBagRemoveAllValues'); + 'CFBagRemoveAllValues', + ); late final _CFBagRemoveAllValues = _CFBagRemoveAllValuesPtr.asFunction(); @@ -10645,58 +10076,57 @@ class NativeCupertinoHttp { ffi.Pointer callBacks, ffi.Pointer compareContext, ) { - return _CFBinaryHeapCreate( - allocator, - capacity, - callBacks, - compareContext, - ); + return _CFBinaryHeapCreate(allocator, capacity, callBacks, compareContext); } - late final _CFBinaryHeapCreatePtr = _lookup< - ffi.NativeFunction< + late final _CFBinaryHeapCreatePtr = + _lookup< + ffi.NativeFunction< CFBinaryHeapRef Function( - CFAllocatorRef, - CFIndex, - ffi.Pointer, - ffi.Pointer)>>('CFBinaryHeapCreate'); - late final _CFBinaryHeapCreate = _CFBinaryHeapCreatePtr.asFunction< - CFBinaryHeapRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFBinaryHeapCreate'); + late final _CFBinaryHeapCreate = + _CFBinaryHeapCreatePtr.asFunction< + CFBinaryHeapRef Function( CFAllocatorRef, int, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); CFBinaryHeapRef CFBinaryHeapCreateCopy( CFAllocatorRef allocator, int capacity, CFBinaryHeapRef heap, ) { - return _CFBinaryHeapCreateCopy( - allocator, - capacity, - heap, - ); + return _CFBinaryHeapCreateCopy(allocator, capacity, heap); } - late final _CFBinaryHeapCreateCopyPtr = _lookup< - ffi.NativeFunction< - CFBinaryHeapRef Function(CFAllocatorRef, CFIndex, - CFBinaryHeapRef)>>('CFBinaryHeapCreateCopy'); - late final _CFBinaryHeapCreateCopy = _CFBinaryHeapCreateCopyPtr.asFunction< - CFBinaryHeapRef Function(CFAllocatorRef, int, CFBinaryHeapRef)>(); + late final _CFBinaryHeapCreateCopyPtr = + _lookup< + ffi.NativeFunction< + CFBinaryHeapRef Function(CFAllocatorRef, CFIndex, CFBinaryHeapRef) + > + >('CFBinaryHeapCreateCopy'); + late final _CFBinaryHeapCreateCopy = + _CFBinaryHeapCreateCopyPtr.asFunction< + CFBinaryHeapRef Function(CFAllocatorRef, int, CFBinaryHeapRef) + >(); - int CFBinaryHeapGetCount( - CFBinaryHeapRef heap, - ) { - return _CFBinaryHeapGetCount( - heap, - ); + int CFBinaryHeapGetCount(CFBinaryHeapRef heap) { + return _CFBinaryHeapGetCount(heap); } late final _CFBinaryHeapGetCountPtr = _lookup>( - 'CFBinaryHeapGetCount'); + 'CFBinaryHeapGetCount', + ); late final _CFBinaryHeapGetCount = _CFBinaryHeapGetCountPtr.asFunction(); @@ -10704,152 +10134,154 @@ class NativeCupertinoHttp { CFBinaryHeapRef heap, ffi.Pointer value, ) { - return _CFBinaryHeapGetCountOfValue( - heap, - value, - ); + return _CFBinaryHeapGetCountOfValue(heap, value); } - late final _CFBinaryHeapGetCountOfValuePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFBinaryHeapRef, - ffi.Pointer)>>('CFBinaryHeapGetCountOfValue'); - late final _CFBinaryHeapGetCountOfValue = _CFBinaryHeapGetCountOfValuePtr - .asFunction)>(); + late final _CFBinaryHeapGetCountOfValuePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFBinaryHeapRef, ffi.Pointer) + > + >('CFBinaryHeapGetCountOfValue'); + late final _CFBinaryHeapGetCountOfValue = + _CFBinaryHeapGetCountOfValuePtr.asFunction< + int Function(CFBinaryHeapRef, ffi.Pointer) + >(); int CFBinaryHeapContainsValue( CFBinaryHeapRef heap, ffi.Pointer value, ) { - return _CFBinaryHeapContainsValue( - heap, - value, - ); + return _CFBinaryHeapContainsValue(heap, value); } - late final _CFBinaryHeapContainsValuePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFBinaryHeapRef, - ffi.Pointer)>>('CFBinaryHeapContainsValue'); - late final _CFBinaryHeapContainsValue = _CFBinaryHeapContainsValuePtr - .asFunction)>(); + late final _CFBinaryHeapContainsValuePtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFBinaryHeapRef, ffi.Pointer) + > + >('CFBinaryHeapContainsValue'); + late final _CFBinaryHeapContainsValue = + _CFBinaryHeapContainsValuePtr.asFunction< + int Function(CFBinaryHeapRef, ffi.Pointer) + >(); - ffi.Pointer CFBinaryHeapGetMinimum( - CFBinaryHeapRef heap, - ) { - return _CFBinaryHeapGetMinimum( - heap, - ); + ffi.Pointer CFBinaryHeapGetMinimum(CFBinaryHeapRef heap) { + return _CFBinaryHeapGetMinimum(heap); } - late final _CFBinaryHeapGetMinimumPtr = _lookup< - ffi.NativeFunction Function(CFBinaryHeapRef)>>( - 'CFBinaryHeapGetMinimum'); - late final _CFBinaryHeapGetMinimum = _CFBinaryHeapGetMinimumPtr.asFunction< - ffi.Pointer Function(CFBinaryHeapRef)>(); + late final _CFBinaryHeapGetMinimumPtr = + _lookup< + ffi.NativeFunction Function(CFBinaryHeapRef)> + >('CFBinaryHeapGetMinimum'); + late final _CFBinaryHeapGetMinimum = + _CFBinaryHeapGetMinimumPtr.asFunction< + ffi.Pointer Function(CFBinaryHeapRef) + >(); int CFBinaryHeapGetMinimumIfPresent( CFBinaryHeapRef heap, ffi.Pointer> value, ) { - return _CFBinaryHeapGetMinimumIfPresent( - heap, - value, - ); + return _CFBinaryHeapGetMinimumIfPresent(heap, value); } - late final _CFBinaryHeapGetMinimumIfPresentPtr = _lookup< - ffi.NativeFunction< - Boolean Function( - CFBinaryHeapRef, ffi.Pointer>)>>( - 'CFBinaryHeapGetMinimumIfPresent'); + late final _CFBinaryHeapGetMinimumIfPresentPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFBinaryHeapRef, ffi.Pointer>) + > + >('CFBinaryHeapGetMinimumIfPresent'); late final _CFBinaryHeapGetMinimumIfPresent = _CFBinaryHeapGetMinimumIfPresentPtr.asFunction< - int Function(CFBinaryHeapRef, ffi.Pointer>)>(); + int Function(CFBinaryHeapRef, ffi.Pointer>) + >(); void CFBinaryHeapGetValues( CFBinaryHeapRef heap, ffi.Pointer> values, ) { - return _CFBinaryHeapGetValues( - heap, - values, - ); + return _CFBinaryHeapGetValues(heap, values); } - late final _CFBinaryHeapGetValuesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFBinaryHeapRef, - ffi.Pointer>)>>('CFBinaryHeapGetValues'); - late final _CFBinaryHeapGetValues = _CFBinaryHeapGetValuesPtr.asFunction< - void Function(CFBinaryHeapRef, ffi.Pointer>)>(); + late final _CFBinaryHeapGetValuesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFBinaryHeapRef, ffi.Pointer>) + > + >('CFBinaryHeapGetValues'); + late final _CFBinaryHeapGetValues = + _CFBinaryHeapGetValuesPtr.asFunction< + void Function(CFBinaryHeapRef, ffi.Pointer>) + >(); void CFBinaryHeapApplyFunction( CFBinaryHeapRef heap, CFBinaryHeapApplierFunction applier, ffi.Pointer context, ) { - return _CFBinaryHeapApplyFunction( - heap, - applier, - context, - ); + return _CFBinaryHeapApplyFunction(heap, applier, context); } - late final _CFBinaryHeapApplyFunctionPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFBinaryHeapRef, CFBinaryHeapApplierFunction, - ffi.Pointer)>>('CFBinaryHeapApplyFunction'); + late final _CFBinaryHeapApplyFunctionPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFBinaryHeapRef, + CFBinaryHeapApplierFunction, + ffi.Pointer, + ) + > + >('CFBinaryHeapApplyFunction'); late final _CFBinaryHeapApplyFunction = _CFBinaryHeapApplyFunctionPtr.asFunction< - void Function(CFBinaryHeapRef, CFBinaryHeapApplierFunction, - ffi.Pointer)>(); + void Function( + CFBinaryHeapRef, + CFBinaryHeapApplierFunction, + ffi.Pointer, + ) + >(); - void CFBinaryHeapAddValue( - CFBinaryHeapRef heap, - ffi.Pointer value, - ) { - return _CFBinaryHeapAddValue( - heap, - value, - ); + void CFBinaryHeapAddValue(CFBinaryHeapRef heap, ffi.Pointer value) { + return _CFBinaryHeapAddValue(heap, value); } - late final _CFBinaryHeapAddValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFBinaryHeapRef, ffi.Pointer)>>('CFBinaryHeapAddValue'); - late final _CFBinaryHeapAddValue = _CFBinaryHeapAddValuePtr.asFunction< - void Function(CFBinaryHeapRef, ffi.Pointer)>(); + late final _CFBinaryHeapAddValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFBinaryHeapRef, ffi.Pointer) + > + >('CFBinaryHeapAddValue'); + late final _CFBinaryHeapAddValue = + _CFBinaryHeapAddValuePtr.asFunction< + void Function(CFBinaryHeapRef, ffi.Pointer) + >(); - void CFBinaryHeapRemoveMinimumValue( - CFBinaryHeapRef heap, - ) { - return _CFBinaryHeapRemoveMinimumValue( - heap, - ); + void CFBinaryHeapRemoveMinimumValue(CFBinaryHeapRef heap) { + return _CFBinaryHeapRemoveMinimumValue(heap); } late final _CFBinaryHeapRemoveMinimumValuePtr = _lookup>( - 'CFBinaryHeapRemoveMinimumValue'); + 'CFBinaryHeapRemoveMinimumValue', + ); late final _CFBinaryHeapRemoveMinimumValue = _CFBinaryHeapRemoveMinimumValuePtr.asFunction< - void Function(CFBinaryHeapRef)>(); + void Function(CFBinaryHeapRef) + >(); - void CFBinaryHeapRemoveAllValues( - CFBinaryHeapRef heap, - ) { - return _CFBinaryHeapRemoveAllValues( - heap, - ); + void CFBinaryHeapRemoveAllValues(CFBinaryHeapRef heap) { + return _CFBinaryHeapRemoveAllValues(heap); } late final _CFBinaryHeapRemoveAllValuesPtr = _lookup>( - 'CFBinaryHeapRemoveAllValues'); - late final _CFBinaryHeapRemoveAllValues = _CFBinaryHeapRemoveAllValuesPtr - .asFunction(); + 'CFBinaryHeapRemoveAllValues', + ); + late final _CFBinaryHeapRemoveAllValues = + _CFBinaryHeapRemoveAllValuesPtr.asFunction< + void Function(CFBinaryHeapRef) + >(); int CFBitVectorGetTypeID() { return _CFBitVectorGetTypeID(); @@ -10865,318 +10297,284 @@ class NativeCupertinoHttp { ffi.Pointer bytes, int numBits, ) { - return _CFBitVectorCreate( - allocator, - bytes, - numBits, - ); + return _CFBitVectorCreate(allocator, bytes, numBits); } - late final _CFBitVectorCreatePtr = _lookup< - ffi.NativeFunction< - CFBitVectorRef Function(CFAllocatorRef, ffi.Pointer, - CFIndex)>>('CFBitVectorCreate'); - late final _CFBitVectorCreate = _CFBitVectorCreatePtr.asFunction< - CFBitVectorRef Function(CFAllocatorRef, ffi.Pointer, int)>(); + late final _CFBitVectorCreatePtr = + _lookup< + ffi.NativeFunction< + CFBitVectorRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) + > + >('CFBitVectorCreate'); + late final _CFBitVectorCreate = + _CFBitVectorCreatePtr.asFunction< + CFBitVectorRef Function(CFAllocatorRef, ffi.Pointer, int) + >(); CFBitVectorRef CFBitVectorCreateCopy( CFAllocatorRef allocator, CFBitVectorRef bv, ) { - return _CFBitVectorCreateCopy( - allocator, - bv, - ); + return _CFBitVectorCreateCopy(allocator, bv); } - late final _CFBitVectorCreateCopyPtr = _lookup< - ffi.NativeFunction< - CFBitVectorRef Function( - CFAllocatorRef, CFBitVectorRef)>>('CFBitVectorCreateCopy'); - late final _CFBitVectorCreateCopy = _CFBitVectorCreateCopyPtr.asFunction< - CFBitVectorRef Function(CFAllocatorRef, CFBitVectorRef)>(); + late final _CFBitVectorCreateCopyPtr = + _lookup< + ffi.NativeFunction< + CFBitVectorRef Function(CFAllocatorRef, CFBitVectorRef) + > + >('CFBitVectorCreateCopy'); + late final _CFBitVectorCreateCopy = + _CFBitVectorCreateCopyPtr.asFunction< + CFBitVectorRef Function(CFAllocatorRef, CFBitVectorRef) + >(); CFMutableBitVectorRef CFBitVectorCreateMutable( CFAllocatorRef allocator, int capacity, ) { - return _CFBitVectorCreateMutable( - allocator, - capacity, - ); + return _CFBitVectorCreateMutable(allocator, capacity); } - late final _CFBitVectorCreateMutablePtr = _lookup< - ffi.NativeFunction< - CFMutableBitVectorRef Function( - CFAllocatorRef, CFIndex)>>('CFBitVectorCreateMutable'); - late final _CFBitVectorCreateMutable = _CFBitVectorCreateMutablePtr - .asFunction(); + late final _CFBitVectorCreateMutablePtr = + _lookup< + ffi.NativeFunction< + CFMutableBitVectorRef Function(CFAllocatorRef, CFIndex) + > + >('CFBitVectorCreateMutable'); + late final _CFBitVectorCreateMutable = + _CFBitVectorCreateMutablePtr.asFunction< + CFMutableBitVectorRef Function(CFAllocatorRef, int) + >(); CFMutableBitVectorRef CFBitVectorCreateMutableCopy( CFAllocatorRef allocator, int capacity, CFBitVectorRef bv, ) { - return _CFBitVectorCreateMutableCopy( - allocator, - capacity, - bv, - ); + return _CFBitVectorCreateMutableCopy(allocator, capacity, bv); } - late final _CFBitVectorCreateMutableCopyPtr = _lookup< - ffi.NativeFunction< - CFMutableBitVectorRef Function(CFAllocatorRef, CFIndex, - CFBitVectorRef)>>('CFBitVectorCreateMutableCopy'); + late final _CFBitVectorCreateMutableCopyPtr = + _lookup< + ffi.NativeFunction< + CFMutableBitVectorRef Function( + CFAllocatorRef, + CFIndex, + CFBitVectorRef, + ) + > + >('CFBitVectorCreateMutableCopy'); late final _CFBitVectorCreateMutableCopy = _CFBitVectorCreateMutableCopyPtr.asFunction< - CFMutableBitVectorRef Function( - CFAllocatorRef, int, CFBitVectorRef)>(); + CFMutableBitVectorRef Function(CFAllocatorRef, int, CFBitVectorRef) + >(); - int CFBitVectorGetCount( - CFBitVectorRef bv, - ) { - return _CFBitVectorGetCount( - bv, - ); + int CFBitVectorGetCount(CFBitVectorRef bv) { + return _CFBitVectorGetCount(bv); } late final _CFBitVectorGetCountPtr = _lookup>( - 'CFBitVectorGetCount'); + 'CFBitVectorGetCount', + ); late final _CFBitVectorGetCount = _CFBitVectorGetCountPtr.asFunction(); - int CFBitVectorGetCountOfBit( - CFBitVectorRef bv, - CFRange range, - int value, - ) { - return _CFBitVectorGetCountOfBit( - bv, - range, - value, - ); + int CFBitVectorGetCountOfBit(CFBitVectorRef bv, CFRange range, int value) { + return _CFBitVectorGetCountOfBit(bv, range, value); } - late final _CFBitVectorGetCountOfBitPtr = _lookup< - ffi.NativeFunction>( - 'CFBitVectorGetCountOfBit'); - late final _CFBitVectorGetCountOfBit = _CFBitVectorGetCountOfBitPtr - .asFunction(); + late final _CFBitVectorGetCountOfBitPtr = + _lookup< + ffi.NativeFunction + >('CFBitVectorGetCountOfBit'); + late final _CFBitVectorGetCountOfBit = + _CFBitVectorGetCountOfBitPtr.asFunction< + int Function(CFBitVectorRef, CFRange, int) + >(); - int CFBitVectorContainsBit( - CFBitVectorRef bv, - CFRange range, - int value, - ) { - return _CFBitVectorContainsBit( - bv, - range, - value, - ); + int CFBitVectorContainsBit(CFBitVectorRef bv, CFRange range, int value) { + return _CFBitVectorContainsBit(bv, range, value); } - late final _CFBitVectorContainsBitPtr = _lookup< - ffi.NativeFunction>( - 'CFBitVectorContainsBit'); - late final _CFBitVectorContainsBit = _CFBitVectorContainsBitPtr.asFunction< - int Function(CFBitVectorRef, CFRange, int)>(); + late final _CFBitVectorContainsBitPtr = + _lookup< + ffi.NativeFunction + >('CFBitVectorContainsBit'); + late final _CFBitVectorContainsBit = + _CFBitVectorContainsBitPtr.asFunction< + int Function(CFBitVectorRef, CFRange, int) + >(); - int CFBitVectorGetBitAtIndex( - CFBitVectorRef bv, - int idx, - ) { - return _CFBitVectorGetBitAtIndex( - bv, - idx, - ); + int CFBitVectorGetBitAtIndex(CFBitVectorRef bv, int idx) { + return _CFBitVectorGetBitAtIndex(bv, idx); } late final _CFBitVectorGetBitAtIndexPtr = _lookup>( - 'CFBitVectorGetBitAtIndex'); - late final _CFBitVectorGetBitAtIndex = _CFBitVectorGetBitAtIndexPtr - .asFunction(); + 'CFBitVectorGetBitAtIndex', + ); + late final _CFBitVectorGetBitAtIndex = + _CFBitVectorGetBitAtIndexPtr.asFunction< + int Function(CFBitVectorRef, int) + >(); void CFBitVectorGetBits( CFBitVectorRef bv, CFRange range, ffi.Pointer bytes, ) { - return _CFBitVectorGetBits( - bv, - range, - bytes, - ); + return _CFBitVectorGetBits(bv, range, bytes); } - late final _CFBitVectorGetBitsPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFBitVectorRef, CFRange, - ffi.Pointer)>>('CFBitVectorGetBits'); - late final _CFBitVectorGetBits = _CFBitVectorGetBitsPtr.asFunction< - void Function(CFBitVectorRef, CFRange, ffi.Pointer)>(); + late final _CFBitVectorGetBitsPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFBitVectorRef, CFRange, ffi.Pointer) + > + >('CFBitVectorGetBits'); + late final _CFBitVectorGetBits = + _CFBitVectorGetBitsPtr.asFunction< + void Function(CFBitVectorRef, CFRange, ffi.Pointer) + >(); int CFBitVectorGetFirstIndexOfBit( CFBitVectorRef bv, CFRange range, int value, ) { - return _CFBitVectorGetFirstIndexOfBit( - bv, - range, - value, - ); + return _CFBitVectorGetFirstIndexOfBit(bv, range, value); } - late final _CFBitVectorGetFirstIndexOfBitPtr = _lookup< - ffi.NativeFunction>( - 'CFBitVectorGetFirstIndexOfBit'); - late final _CFBitVectorGetFirstIndexOfBit = _CFBitVectorGetFirstIndexOfBitPtr - .asFunction(); + late final _CFBitVectorGetFirstIndexOfBitPtr = + _lookup< + ffi.NativeFunction + >('CFBitVectorGetFirstIndexOfBit'); + late final _CFBitVectorGetFirstIndexOfBit = + _CFBitVectorGetFirstIndexOfBitPtr.asFunction< + int Function(CFBitVectorRef, CFRange, int) + >(); int CFBitVectorGetLastIndexOfBit( CFBitVectorRef bv, CFRange range, int value, ) { - return _CFBitVectorGetLastIndexOfBit( - bv, - range, - value, - ); + return _CFBitVectorGetLastIndexOfBit(bv, range, value); } - late final _CFBitVectorGetLastIndexOfBitPtr = _lookup< - ffi.NativeFunction>( - 'CFBitVectorGetLastIndexOfBit'); - late final _CFBitVectorGetLastIndexOfBit = _CFBitVectorGetLastIndexOfBitPtr - .asFunction(); + late final _CFBitVectorGetLastIndexOfBitPtr = + _lookup< + ffi.NativeFunction + >('CFBitVectorGetLastIndexOfBit'); + late final _CFBitVectorGetLastIndexOfBit = + _CFBitVectorGetLastIndexOfBitPtr.asFunction< + int Function(CFBitVectorRef, CFRange, int) + >(); - void CFBitVectorSetCount( - CFMutableBitVectorRef bv, - int count, - ) { - return _CFBitVectorSetCount( - bv, - count, - ); + void CFBitVectorSetCount(CFMutableBitVectorRef bv, int count) { + return _CFBitVectorSetCount(bv, count); } - late final _CFBitVectorSetCountPtr = _lookup< - ffi - .NativeFunction>( - 'CFBitVectorSetCount'); - late final _CFBitVectorSetCount = _CFBitVectorSetCountPtr.asFunction< - void Function(CFMutableBitVectorRef, int)>(); + late final _CFBitVectorSetCountPtr = + _lookup< + ffi.NativeFunction + >('CFBitVectorSetCount'); + late final _CFBitVectorSetCount = + _CFBitVectorSetCountPtr.asFunction< + void Function(CFMutableBitVectorRef, int) + >(); - void CFBitVectorFlipBitAtIndex( - CFMutableBitVectorRef bv, - int idx, - ) { - return _CFBitVectorFlipBitAtIndex( - bv, - idx, - ); + void CFBitVectorFlipBitAtIndex(CFMutableBitVectorRef bv, int idx) { + return _CFBitVectorFlipBitAtIndex(bv, idx); } - late final _CFBitVectorFlipBitAtIndexPtr = _lookup< - ffi - .NativeFunction>( - 'CFBitVectorFlipBitAtIndex'); - late final _CFBitVectorFlipBitAtIndex = _CFBitVectorFlipBitAtIndexPtr - .asFunction(); + late final _CFBitVectorFlipBitAtIndexPtr = + _lookup< + ffi.NativeFunction + >('CFBitVectorFlipBitAtIndex'); + late final _CFBitVectorFlipBitAtIndex = + _CFBitVectorFlipBitAtIndexPtr.asFunction< + void Function(CFMutableBitVectorRef, int) + >(); - void CFBitVectorFlipBits( - CFMutableBitVectorRef bv, - CFRange range, - ) { - return _CFBitVectorFlipBits( - bv, - range, - ); + void CFBitVectorFlipBits(CFMutableBitVectorRef bv, CFRange range) { + return _CFBitVectorFlipBits(bv, range); } - late final _CFBitVectorFlipBitsPtr = _lookup< - ffi - .NativeFunction>( - 'CFBitVectorFlipBits'); - late final _CFBitVectorFlipBits = _CFBitVectorFlipBitsPtr.asFunction< - void Function(CFMutableBitVectorRef, CFRange)>(); + late final _CFBitVectorFlipBitsPtr = + _lookup< + ffi.NativeFunction + >('CFBitVectorFlipBits'); + late final _CFBitVectorFlipBits = + _CFBitVectorFlipBitsPtr.asFunction< + void Function(CFMutableBitVectorRef, CFRange) + >(); - void CFBitVectorSetBitAtIndex( - CFMutableBitVectorRef bv, - int idx, - int value, - ) { - return _CFBitVectorSetBitAtIndex( - bv, - idx, - value, - ); + void CFBitVectorSetBitAtIndex(CFMutableBitVectorRef bv, int idx, int value) { + return _CFBitVectorSetBitAtIndex(bv, idx, value); } - late final _CFBitVectorSetBitAtIndexPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableBitVectorRef, CFIndex, - CFBit)>>('CFBitVectorSetBitAtIndex'); - late final _CFBitVectorSetBitAtIndex = _CFBitVectorSetBitAtIndexPtr - .asFunction(); + late final _CFBitVectorSetBitAtIndexPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableBitVectorRef, CFIndex, CFBit) + > + >('CFBitVectorSetBitAtIndex'); + late final _CFBitVectorSetBitAtIndex = + _CFBitVectorSetBitAtIndexPtr.asFunction< + void Function(CFMutableBitVectorRef, int, int) + >(); - void CFBitVectorSetBits( - CFMutableBitVectorRef bv, - CFRange range, - int value, - ) { - return _CFBitVectorSetBits( - bv, - range, - value, - ); + void CFBitVectorSetBits(CFMutableBitVectorRef bv, CFRange range, int value) { + return _CFBitVectorSetBits(bv, range, value); } - late final _CFBitVectorSetBitsPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableBitVectorRef, CFRange, CFBit)>>('CFBitVectorSetBits'); - late final _CFBitVectorSetBits = _CFBitVectorSetBitsPtr.asFunction< - void Function(CFMutableBitVectorRef, CFRange, int)>(); + late final _CFBitVectorSetBitsPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableBitVectorRef, CFRange, CFBit) + > + >('CFBitVectorSetBits'); + late final _CFBitVectorSetBits = + _CFBitVectorSetBitsPtr.asFunction< + void Function(CFMutableBitVectorRef, CFRange, int) + >(); - void CFBitVectorSetAllBits( - CFMutableBitVectorRef bv, - int value, - ) { - return _CFBitVectorSetAllBits( - bv, - value, - ); + void CFBitVectorSetAllBits(CFMutableBitVectorRef bv, int value) { + return _CFBitVectorSetAllBits(bv, value); } - late final _CFBitVectorSetAllBitsPtr = _lookup< - ffi.NativeFunction>( - 'CFBitVectorSetAllBits'); - late final _CFBitVectorSetAllBits = _CFBitVectorSetAllBitsPtr.asFunction< - void Function(CFMutableBitVectorRef, int)>(); + late final _CFBitVectorSetAllBitsPtr = + _lookup< + ffi.NativeFunction + >('CFBitVectorSetAllBits'); + late final _CFBitVectorSetAllBits = + _CFBitVectorSetAllBitsPtr.asFunction< + void Function(CFMutableBitVectorRef, int) + >(); late final ffi.Pointer - _kCFTypeDictionaryKeyCallBacks = - _lookup('kCFTypeDictionaryKeyCallBacks'); + _kCFTypeDictionaryKeyCallBacks = _lookup( + 'kCFTypeDictionaryKeyCallBacks', + ); CFDictionaryKeyCallBacks get kCFTypeDictionaryKeyCallBacks => _kCFTypeDictionaryKeyCallBacks.ref; late final ffi.Pointer - _kCFCopyStringDictionaryKeyCallBacks = - _lookup('kCFCopyStringDictionaryKeyCallBacks'); + _kCFCopyStringDictionaryKeyCallBacks = _lookup( + 'kCFCopyStringDictionaryKeyCallBacks', + ); CFDictionaryKeyCallBacks get kCFCopyStringDictionaryKeyCallBacks => _kCFCopyStringDictionaryKeyCallBacks.ref; late final ffi.Pointer - _kCFTypeDictionaryValueCallBacks = - _lookup('kCFTypeDictionaryValueCallBacks'); + _kCFTypeDictionaryValueCallBacks = _lookup( + 'kCFTypeDictionaryValueCallBacks', + ); CFDictionaryValueCallBacks get kCFTypeDictionaryValueCallBacks => _kCFTypeDictionaryValueCallBacks.ref; @@ -11208,40 +10606,48 @@ class NativeCupertinoHttp { ); } - late final _CFDictionaryCreatePtr = _lookup< - ffi.NativeFunction< + late final _CFDictionaryCreatePtr = + _lookup< + ffi.NativeFunction< CFDictionaryRef Function( - CFAllocatorRef, - ffi.Pointer>, - ffi.Pointer>, - CFIndex, - ffi.Pointer, - ffi.Pointer)>>('CFDictionaryCreate'); - late final _CFDictionaryCreate = _CFDictionaryCreatePtr.asFunction< - CFDictionaryRef Function( + CFAllocatorRef, + ffi.Pointer>, + ffi.Pointer>, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFDictionaryCreate'); + late final _CFDictionaryCreate = + _CFDictionaryCreatePtr.asFunction< + CFDictionaryRef Function( CFAllocatorRef, ffi.Pointer>, ffi.Pointer>, int, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); CFDictionaryRef CFDictionaryCreateCopy( CFAllocatorRef allocator, CFDictionaryRef theDict, ) { - return _CFDictionaryCreateCopy( - allocator, - theDict, - ); + return _CFDictionaryCreateCopy(allocator, theDict); } - late final _CFDictionaryCreateCopyPtr = _lookup< - ffi.NativeFunction< - CFDictionaryRef Function( - CFAllocatorRef, CFDictionaryRef)>>('CFDictionaryCreateCopy'); - late final _CFDictionaryCreateCopy = _CFDictionaryCreateCopyPtr.asFunction< - CFDictionaryRef Function(CFAllocatorRef, CFDictionaryRef)>(); + late final _CFDictionaryCreateCopyPtr = + _lookup< + ffi.NativeFunction< + CFDictionaryRef Function(CFAllocatorRef, CFDictionaryRef) + > + >('CFDictionaryCreateCopy'); + late final _CFDictionaryCreateCopy = + _CFDictionaryCreateCopyPtr.asFunction< + CFDictionaryRef Function(CFAllocatorRef, CFDictionaryRef) + >(); CFMutableDictionaryRef CFDictionaryCreateMutable( CFAllocatorRef allocator, @@ -11257,54 +10663,58 @@ class NativeCupertinoHttp { ); } - late final _CFDictionaryCreateMutablePtr = _lookup< - ffi.NativeFunction< - CFMutableDictionaryRef Function( - CFAllocatorRef, - CFIndex, - ffi.Pointer, - ffi.Pointer)>>( - 'CFDictionaryCreateMutable'); + late final _CFDictionaryCreateMutablePtr = + _lookup< + ffi.NativeFunction< + CFMutableDictionaryRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFDictionaryCreateMutable'); late final _CFDictionaryCreateMutable = _CFDictionaryCreateMutablePtr.asFunction< - CFMutableDictionaryRef Function( - CFAllocatorRef, - int, - ffi.Pointer, - ffi.Pointer)>(); + CFMutableDictionaryRef Function( + CFAllocatorRef, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); CFMutableDictionaryRef CFDictionaryCreateMutableCopy( CFAllocatorRef allocator, int capacity, CFDictionaryRef theDict, ) { - return _CFDictionaryCreateMutableCopy( - allocator, - capacity, - theDict, - ); + return _CFDictionaryCreateMutableCopy(allocator, capacity, theDict); } - late final _CFDictionaryCreateMutableCopyPtr = _lookup< - ffi.NativeFunction< - CFMutableDictionaryRef Function(CFAllocatorRef, CFIndex, - CFDictionaryRef)>>('CFDictionaryCreateMutableCopy'); + late final _CFDictionaryCreateMutableCopyPtr = + _lookup< + ffi.NativeFunction< + CFMutableDictionaryRef Function( + CFAllocatorRef, + CFIndex, + CFDictionaryRef, + ) + > + >('CFDictionaryCreateMutableCopy'); late final _CFDictionaryCreateMutableCopy = _CFDictionaryCreateMutableCopyPtr.asFunction< - CFMutableDictionaryRef Function( - CFAllocatorRef, int, CFDictionaryRef)>(); + CFMutableDictionaryRef Function(CFAllocatorRef, int, CFDictionaryRef) + >(); - int CFDictionaryGetCount( - CFDictionaryRef theDict, - ) { - return _CFDictionaryGetCount( - theDict, - ); + int CFDictionaryGetCount(CFDictionaryRef theDict) { + return _CFDictionaryGetCount(theDict); } late final _CFDictionaryGetCountPtr = _lookup>( - 'CFDictionaryGetCount'); + 'CFDictionaryGetCount', + ); late final _CFDictionaryGetCount = _CFDictionaryGetCountPtr.asFunction(); @@ -11312,245 +10722,284 @@ class NativeCupertinoHttp { CFDictionaryRef theDict, ffi.Pointer key, ) { - return _CFDictionaryGetCountOfKey( - theDict, - key, - ); + return _CFDictionaryGetCountOfKey(theDict, key); } - late final _CFDictionaryGetCountOfKeyPtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFDictionaryRef, - ffi.Pointer)>>('CFDictionaryGetCountOfKey'); - late final _CFDictionaryGetCountOfKey = _CFDictionaryGetCountOfKeyPtr - .asFunction)>(); + late final _CFDictionaryGetCountOfKeyPtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFDictionaryRef, ffi.Pointer) + > + >('CFDictionaryGetCountOfKey'); + late final _CFDictionaryGetCountOfKey = + _CFDictionaryGetCountOfKeyPtr.asFunction< + int Function(CFDictionaryRef, ffi.Pointer) + >(); int CFDictionaryGetCountOfValue( CFDictionaryRef theDict, ffi.Pointer value, ) { - return _CFDictionaryGetCountOfValue( - theDict, - value, - ); + return _CFDictionaryGetCountOfValue(theDict, value); } - late final _CFDictionaryGetCountOfValuePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFDictionaryRef, - ffi.Pointer)>>('CFDictionaryGetCountOfValue'); - late final _CFDictionaryGetCountOfValue = _CFDictionaryGetCountOfValuePtr - .asFunction)>(); + late final _CFDictionaryGetCountOfValuePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFDictionaryRef, ffi.Pointer) + > + >('CFDictionaryGetCountOfValue'); + late final _CFDictionaryGetCountOfValue = + _CFDictionaryGetCountOfValuePtr.asFunction< + int Function(CFDictionaryRef, ffi.Pointer) + >(); int CFDictionaryContainsKey( CFDictionaryRef theDict, ffi.Pointer key, ) { - return _CFDictionaryContainsKey( - theDict, - key, - ); + return _CFDictionaryContainsKey(theDict, key); } - late final _CFDictionaryContainsKeyPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFDictionaryRef, - ffi.Pointer)>>('CFDictionaryContainsKey'); - late final _CFDictionaryContainsKey = _CFDictionaryContainsKeyPtr.asFunction< - int Function(CFDictionaryRef, ffi.Pointer)>(); + late final _CFDictionaryContainsKeyPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFDictionaryRef, ffi.Pointer) + > + >('CFDictionaryContainsKey'); + late final _CFDictionaryContainsKey = + _CFDictionaryContainsKeyPtr.asFunction< + int Function(CFDictionaryRef, ffi.Pointer) + >(); int CFDictionaryContainsValue( CFDictionaryRef theDict, ffi.Pointer value, ) { - return _CFDictionaryContainsValue( - theDict, - value, - ); + return _CFDictionaryContainsValue(theDict, value); } - late final _CFDictionaryContainsValuePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFDictionaryRef, - ffi.Pointer)>>('CFDictionaryContainsValue'); - late final _CFDictionaryContainsValue = _CFDictionaryContainsValuePtr - .asFunction)>(); + late final _CFDictionaryContainsValuePtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFDictionaryRef, ffi.Pointer) + > + >('CFDictionaryContainsValue'); + late final _CFDictionaryContainsValue = + _CFDictionaryContainsValuePtr.asFunction< + int Function(CFDictionaryRef, ffi.Pointer) + >(); ffi.Pointer CFDictionaryGetValue( CFDictionaryRef theDict, ffi.Pointer key, ) { - return _CFDictionaryGetValue( - theDict, - key, - ); + return _CFDictionaryGetValue(theDict, key); } - late final _CFDictionaryGetValuePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CFDictionaryRef, ffi.Pointer)>>('CFDictionaryGetValue'); - late final _CFDictionaryGetValue = _CFDictionaryGetValuePtr.asFunction< - ffi.Pointer Function(CFDictionaryRef, ffi.Pointer)>(); + late final _CFDictionaryGetValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CFDictionaryRef, ffi.Pointer) + > + >('CFDictionaryGetValue'); + late final _CFDictionaryGetValue = + _CFDictionaryGetValuePtr.asFunction< + ffi.Pointer Function(CFDictionaryRef, ffi.Pointer) + >(); int CFDictionaryGetValueIfPresent( CFDictionaryRef theDict, ffi.Pointer key, ffi.Pointer> value, ) { - return _CFDictionaryGetValueIfPresent( - theDict, - key, - value, - ); + return _CFDictionaryGetValueIfPresent(theDict, key, value); } - late final _CFDictionaryGetValueIfPresentPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFDictionaryRef, ffi.Pointer, - ffi.Pointer>)>>( - 'CFDictionaryGetValueIfPresent'); + late final _CFDictionaryGetValueIfPresentPtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFDictionaryRef, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('CFDictionaryGetValueIfPresent'); late final _CFDictionaryGetValueIfPresent = _CFDictionaryGetValueIfPresentPtr.asFunction< - int Function(CFDictionaryRef, ffi.Pointer, - ffi.Pointer>)>(); + int Function( + CFDictionaryRef, + ffi.Pointer, + ffi.Pointer>, + ) + >(); void CFDictionaryGetKeysAndValues( CFDictionaryRef theDict, ffi.Pointer> keys, ffi.Pointer> values, ) { - return _CFDictionaryGetKeysAndValues( - theDict, - keys, - values, - ); + return _CFDictionaryGetKeysAndValues(theDict, keys, values); } - late final _CFDictionaryGetKeysAndValuesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFDictionaryRef, - ffi.Pointer>, - ffi.Pointer>)>>( - 'CFDictionaryGetKeysAndValues'); + late final _CFDictionaryGetKeysAndValuesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFDictionaryRef, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >('CFDictionaryGetKeysAndValues'); late final _CFDictionaryGetKeysAndValues = _CFDictionaryGetKeysAndValuesPtr.asFunction< - void Function(CFDictionaryRef, ffi.Pointer>, - ffi.Pointer>)>(); + void Function( + CFDictionaryRef, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); void CFDictionaryApplyFunction( CFDictionaryRef theDict, CFDictionaryApplierFunction applier, ffi.Pointer context, ) { - return _CFDictionaryApplyFunction( - theDict, - applier, - context, - ); + return _CFDictionaryApplyFunction(theDict, applier, context); } - late final _CFDictionaryApplyFunctionPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFDictionaryRef, CFDictionaryApplierFunction, - ffi.Pointer)>>('CFDictionaryApplyFunction'); + late final _CFDictionaryApplyFunctionPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFDictionaryRef, + CFDictionaryApplierFunction, + ffi.Pointer, + ) + > + >('CFDictionaryApplyFunction'); late final _CFDictionaryApplyFunction = _CFDictionaryApplyFunctionPtr.asFunction< - void Function(CFDictionaryRef, CFDictionaryApplierFunction, - ffi.Pointer)>(); + void Function( + CFDictionaryRef, + CFDictionaryApplierFunction, + ffi.Pointer, + ) + >(); void CFDictionaryAddValue( CFMutableDictionaryRef theDict, ffi.Pointer key, ffi.Pointer value, ) { - return _CFDictionaryAddValue( - theDict, - key, - value, - ); + return _CFDictionaryAddValue(theDict, key, value); } - late final _CFDictionaryAddValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableDictionaryRef, ffi.Pointer, - ffi.Pointer)>>('CFDictionaryAddValue'); - late final _CFDictionaryAddValue = _CFDictionaryAddValuePtr.asFunction< - void Function(CFMutableDictionaryRef, ffi.Pointer, - ffi.Pointer)>(); + late final _CFDictionaryAddValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFMutableDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFDictionaryAddValue'); + late final _CFDictionaryAddValue = + _CFDictionaryAddValuePtr.asFunction< + void Function( + CFMutableDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); void CFDictionarySetValue( CFMutableDictionaryRef theDict, ffi.Pointer key, ffi.Pointer value, ) { - return _CFDictionarySetValue( - theDict, - key, - value, - ); + return _CFDictionarySetValue(theDict, key, value); } - late final _CFDictionarySetValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableDictionaryRef, ffi.Pointer, - ffi.Pointer)>>('CFDictionarySetValue'); - late final _CFDictionarySetValue = _CFDictionarySetValuePtr.asFunction< - void Function(CFMutableDictionaryRef, ffi.Pointer, - ffi.Pointer)>(); + late final _CFDictionarySetValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFMutableDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFDictionarySetValue'); + late final _CFDictionarySetValue = + _CFDictionarySetValuePtr.asFunction< + void Function( + CFMutableDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); void CFDictionaryReplaceValue( CFMutableDictionaryRef theDict, ffi.Pointer key, ffi.Pointer value, ) { - return _CFDictionaryReplaceValue( - theDict, - key, - value, - ); + return _CFDictionaryReplaceValue(theDict, key, value); } - late final _CFDictionaryReplaceValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableDictionaryRef, ffi.Pointer, - ffi.Pointer)>>('CFDictionaryReplaceValue'); + late final _CFDictionaryReplaceValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFMutableDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFDictionaryReplaceValue'); late final _CFDictionaryReplaceValue = _CFDictionaryReplaceValuePtr.asFunction< - void Function(CFMutableDictionaryRef, ffi.Pointer, - ffi.Pointer)>(); + void Function( + CFMutableDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); void CFDictionaryRemoveValue( CFMutableDictionaryRef theDict, ffi.Pointer key, ) { - return _CFDictionaryRemoveValue( - theDict, - key, - ); + return _CFDictionaryRemoveValue(theDict, key); } - late final _CFDictionaryRemoveValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableDictionaryRef, - ffi.Pointer)>>('CFDictionaryRemoveValue'); - late final _CFDictionaryRemoveValue = _CFDictionaryRemoveValuePtr.asFunction< - void Function(CFMutableDictionaryRef, ffi.Pointer)>(); + late final _CFDictionaryRemoveValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableDictionaryRef, ffi.Pointer) + > + >('CFDictionaryRemoveValue'); + late final _CFDictionaryRemoveValue = + _CFDictionaryRemoveValuePtr.asFunction< + void Function(CFMutableDictionaryRef, ffi.Pointer) + >(); - void CFDictionaryRemoveAllValues( - CFMutableDictionaryRef theDict, - ) { - return _CFDictionaryRemoveAllValues( - theDict, - ); + void CFDictionaryRemoveAllValues(CFMutableDictionaryRef theDict) { + return _CFDictionaryRemoveAllValues(theDict); } late final _CFDictionaryRemoveAllValuesPtr = _lookup>( - 'CFDictionaryRemoveAllValues'); - late final _CFDictionaryRemoveAllValues = _CFDictionaryRemoveAllValuesPtr - .asFunction(); + 'CFDictionaryRemoveAllValues', + ); + late final _CFDictionaryRemoveAllValues = + _CFDictionaryRemoveAllValuesPtr.asFunction< + void Function(CFMutableDictionaryRef) + >(); int CFNotificationCenterGetTypeID() { return _CFNotificationCenterGetTypeID(); @@ -11558,7 +11007,8 @@ class NativeCupertinoHttp { late final _CFNotificationCenterGetTypeIDPtr = _lookup>( - 'CFNotificationCenterGetTypeID'); + 'CFNotificationCenterGetTypeID', + ); late final _CFNotificationCenterGetTypeID = _CFNotificationCenterGetTypeIDPtr.asFunction(); @@ -11568,10 +11018,12 @@ class NativeCupertinoHttp { late final _CFNotificationCenterGetLocalCenterPtr = _lookup>( - 'CFNotificationCenterGetLocalCenter'); + 'CFNotificationCenterGetLocalCenter', + ); late final _CFNotificationCenterGetLocalCenter = _CFNotificationCenterGetLocalCenterPtr.asFunction< - CFNotificationCenterRef Function()>(); + CFNotificationCenterRef Function() + >(); CFNotificationCenterRef CFNotificationCenterGetDistributedCenter() { return _CFNotificationCenterGetDistributedCenter(); @@ -11579,10 +11031,12 @@ class NativeCupertinoHttp { late final _CFNotificationCenterGetDistributedCenterPtr = _lookup>( - 'CFNotificationCenterGetDistributedCenter'); + 'CFNotificationCenterGetDistributedCenter', + ); late final _CFNotificationCenterGetDistributedCenter = _CFNotificationCenterGetDistributedCenterPtr.asFunction< - CFNotificationCenterRef Function()>(); + CFNotificationCenterRef Function() + >(); CFNotificationCenterRef CFNotificationCenterGetDarwinNotifyCenter() { return _CFNotificationCenterGetDarwinNotifyCenter(); @@ -11590,10 +11044,12 @@ class NativeCupertinoHttp { late final _CFNotificationCenterGetDarwinNotifyCenterPtr = _lookup>( - 'CFNotificationCenterGetDarwinNotifyCenter'); + 'CFNotificationCenterGetDarwinNotifyCenter', + ); late final _CFNotificationCenterGetDarwinNotifyCenter = _CFNotificationCenterGetDarwinNotifyCenterPtr.asFunction< - CFNotificationCenterRef Function()>(); + CFNotificationCenterRef Function() + >(); void CFNotificationCenterAddObserver( CFNotificationCenterRef center, @@ -11613,24 +11069,30 @@ class NativeCupertinoHttp { ); } - late final _CFNotificationCenterAddObserverPtr = _lookup< - ffi.NativeFunction< + late final _CFNotificationCenterAddObserverPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - CFNotificationCenterRef, - ffi.Pointer, - CFNotificationCallback, - CFStringRef, - ffi.Pointer, - CFIndex)>>('CFNotificationCenterAddObserver'); + CFNotificationCenterRef, + ffi.Pointer, + CFNotificationCallback, + CFStringRef, + ffi.Pointer, + CFIndex, + ) + > + >('CFNotificationCenterAddObserver'); late final _CFNotificationCenterAddObserver = _CFNotificationCenterAddObserverPtr.asFunction< - void Function( - CFNotificationCenterRef, - ffi.Pointer, - CFNotificationCallback, - CFStringRef, - ffi.Pointer, - int)>(); + void Function( + CFNotificationCenterRef, + ffi.Pointer, + CFNotificationCallback, + CFStringRef, + ffi.Pointer, + int, + ) + >(); void CFNotificationCenterRemoveObserver( CFNotificationCenterRef center, @@ -11638,44 +11100,47 @@ class NativeCupertinoHttp { CFNotificationName name, ffi.Pointer object, ) { - return _CFNotificationCenterRemoveObserver( - center, - observer, - name, - object, - ); + return _CFNotificationCenterRemoveObserver(center, observer, name, object); } - late final _CFNotificationCenterRemoveObserverPtr = _lookup< - ffi.NativeFunction< + late final _CFNotificationCenterRemoveObserverPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - CFNotificationCenterRef, - ffi.Pointer, - CFNotificationName, - ffi.Pointer)>>('CFNotificationCenterRemoveObserver'); + CFNotificationCenterRef, + ffi.Pointer, + CFNotificationName, + ffi.Pointer, + ) + > + >('CFNotificationCenterRemoveObserver'); late final _CFNotificationCenterRemoveObserver = _CFNotificationCenterRemoveObserverPtr.asFunction< - void Function(CFNotificationCenterRef, ffi.Pointer, - CFNotificationName, ffi.Pointer)>(); + void Function( + CFNotificationCenterRef, + ffi.Pointer, + CFNotificationName, + ffi.Pointer, + ) + >(); void CFNotificationCenterRemoveEveryObserver( CFNotificationCenterRef center, ffi.Pointer observer, ) { - return _CFNotificationCenterRemoveEveryObserver( - center, - observer, - ); + return _CFNotificationCenterRemoveEveryObserver(center, observer); } - late final _CFNotificationCenterRemoveEveryObserverPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFNotificationCenterRef, ffi.Pointer)>>( - 'CFNotificationCenterRemoveEveryObserver'); + late final _CFNotificationCenterRemoveEveryObserverPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFNotificationCenterRef, ffi.Pointer) + > + >('CFNotificationCenterRemoveEveryObserver'); late final _CFNotificationCenterRemoveEveryObserver = _CFNotificationCenterRemoveEveryObserverPtr.asFunction< - void Function(CFNotificationCenterRef, ffi.Pointer)>(); + void Function(CFNotificationCenterRef, ffi.Pointer) + >(); void CFNotificationCenterPostNotification( CFNotificationCenterRef center, @@ -11693,18 +11158,28 @@ class NativeCupertinoHttp { ); } - late final _CFNotificationCenterPostNotificationPtr = _lookup< - ffi.NativeFunction< + late final _CFNotificationCenterPostNotificationPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - CFNotificationCenterRef, - CFNotificationName, - ffi.Pointer, - CFDictionaryRef, - Boolean)>>('CFNotificationCenterPostNotification'); + CFNotificationCenterRef, + CFNotificationName, + ffi.Pointer, + CFDictionaryRef, + Boolean, + ) + > + >('CFNotificationCenterPostNotification'); late final _CFNotificationCenterPostNotification = _CFNotificationCenterPostNotificationPtr.asFunction< - void Function(CFNotificationCenterRef, CFNotificationName, - ffi.Pointer, CFDictionaryRef, int)>(); + void Function( + CFNotificationCenterRef, + CFNotificationName, + ffi.Pointer, + CFDictionaryRef, + int, + ) + >(); void CFNotificationCenterPostNotificationWithOptions( CFNotificationCenterRef center, @@ -11722,15 +11197,28 @@ class NativeCupertinoHttp { ); } - late final _CFNotificationCenterPostNotificationWithOptionsPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFNotificationCenterRef, CFNotificationName, - ffi.Pointer, CFDictionaryRef, CFOptionFlags)>>( - 'CFNotificationCenterPostNotificationWithOptions'); + late final _CFNotificationCenterPostNotificationWithOptionsPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFNotificationCenterRef, + CFNotificationName, + ffi.Pointer, + CFDictionaryRef, + CFOptionFlags, + ) + > + >('CFNotificationCenterPostNotificationWithOptions'); late final _CFNotificationCenterPostNotificationWithOptions = _CFNotificationCenterPostNotificationWithOptionsPtr.asFunction< - void Function(CFNotificationCenterRef, CFNotificationName, - ffi.Pointer, CFDictionaryRef, int)>(); + void Function( + CFNotificationCenterRef, + CFNotificationName, + ffi.Pointer, + CFDictionaryRef, + int, + ) + >(); int CFLocaleGetTypeID() { return _CFLocaleGetTypeID(); @@ -11756,7 +11244,8 @@ class NativeCupertinoHttp { late final _CFLocaleCopyCurrentPtr = _lookup>( - 'CFLocaleCopyCurrent'); + 'CFLocaleCopyCurrent', + ); late final _CFLocaleCopyCurrent = _CFLocaleCopyCurrentPtr.asFunction(); @@ -11766,10 +11255,12 @@ class NativeCupertinoHttp { late final _CFLocaleCopyAvailableLocaleIdentifiersPtr = _lookup>( - 'CFLocaleCopyAvailableLocaleIdentifiers'); + 'CFLocaleCopyAvailableLocaleIdentifiers', + ); late final _CFLocaleCopyAvailableLocaleIdentifiers = _CFLocaleCopyAvailableLocaleIdentifiersPtr.asFunction< - CFArrayRef Function()>(); + CFArrayRef Function() + >(); CFArrayRef CFLocaleCopyISOLanguageCodes() { return _CFLocaleCopyISOLanguageCodes(); @@ -11777,7 +11268,8 @@ class NativeCupertinoHttp { late final _CFLocaleCopyISOLanguageCodesPtr = _lookup>( - 'CFLocaleCopyISOLanguageCodes'); + 'CFLocaleCopyISOLanguageCodes', + ); late final _CFLocaleCopyISOLanguageCodes = _CFLocaleCopyISOLanguageCodesPtr.asFunction(); @@ -11787,7 +11279,8 @@ class NativeCupertinoHttp { late final _CFLocaleCopyISOCountryCodesPtr = _lookup>( - 'CFLocaleCopyISOCountryCodes'); + 'CFLocaleCopyISOCountryCodes', + ); late final _CFLocaleCopyISOCountryCodes = _CFLocaleCopyISOCountryCodesPtr.asFunction(); @@ -11797,7 +11290,8 @@ class NativeCupertinoHttp { late final _CFLocaleCopyISOCurrencyCodesPtr = _lookup>( - 'CFLocaleCopyISOCurrencyCodes'); + 'CFLocaleCopyISOCurrencyCodes', + ); late final _CFLocaleCopyISOCurrencyCodes = _CFLocaleCopyISOCurrencyCodesPtr.asFunction(); @@ -11807,10 +11301,12 @@ class NativeCupertinoHttp { late final _CFLocaleCopyCommonISOCurrencyCodesPtr = _lookup>( - 'CFLocaleCopyCommonISOCurrencyCodes'); + 'CFLocaleCopyCommonISOCurrencyCodes', + ); late final _CFLocaleCopyCommonISOCurrencyCodes = _CFLocaleCopyCommonISOCurrencyCodesPtr.asFunction< - CFArrayRef Function()>(); + CFArrayRef Function() + >(); CFArrayRef CFLocaleCopyPreferredLanguages() { return _CFLocaleCopyPreferredLanguages(); @@ -11818,7 +11314,8 @@ class NativeCupertinoHttp { late final _CFLocaleCopyPreferredLanguagesPtr = _lookup>( - 'CFLocaleCopyPreferredLanguages'); + 'CFLocaleCopyPreferredLanguages', + ); late final _CFLocaleCopyPreferredLanguages = _CFLocaleCopyPreferredLanguagesPtr.asFunction(); @@ -11832,13 +11329,16 @@ class NativeCupertinoHttp { ); } - late final _CFLocaleCreateCanonicalLanguageIdentifierFromStringPtr = _lookup< - ffi.NativeFunction< - CFLocaleIdentifier Function(CFAllocatorRef, CFStringRef)>>( - 'CFLocaleCreateCanonicalLanguageIdentifierFromString'); + late final _CFLocaleCreateCanonicalLanguageIdentifierFromStringPtr = + _lookup< + ffi.NativeFunction< + CFLocaleIdentifier Function(CFAllocatorRef, CFStringRef) + > + >('CFLocaleCreateCanonicalLanguageIdentifierFromString'); late final _CFLocaleCreateCanonicalLanguageIdentifierFromString = _CFLocaleCreateCanonicalLanguageIdentifierFromStringPtr.asFunction< - CFLocaleIdentifier Function(CFAllocatorRef, CFStringRef)>(); + CFLocaleIdentifier Function(CFAllocatorRef, CFStringRef) + >(); CFLocaleIdentifier CFLocaleCreateCanonicalLocaleIdentifierFromString( CFAllocatorRef allocator, @@ -11850,16 +11350,19 @@ class NativeCupertinoHttp { ); } - late final _CFLocaleCreateCanonicalLocaleIdentifierFromStringPtr = _lookup< - ffi.NativeFunction< - CFLocaleIdentifier Function(CFAllocatorRef, CFStringRef)>>( - 'CFLocaleCreateCanonicalLocaleIdentifierFromString'); + late final _CFLocaleCreateCanonicalLocaleIdentifierFromStringPtr = + _lookup< + ffi.NativeFunction< + CFLocaleIdentifier Function(CFAllocatorRef, CFStringRef) + > + >('CFLocaleCreateCanonicalLocaleIdentifierFromString'); late final _CFLocaleCreateCanonicalLocaleIdentifierFromString = _CFLocaleCreateCanonicalLocaleIdentifierFromStringPtr.asFunction< - CFLocaleIdentifier Function(CFAllocatorRef, CFStringRef)>(); + CFLocaleIdentifier Function(CFAllocatorRef, CFStringRef) + >(); CFLocaleIdentifier - CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes( + CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes( CFAllocatorRef allocator, int lcode, int rcode, @@ -11873,13 +11376,14 @@ class NativeCupertinoHttp { late final _CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodesPtr = _lookup< - ffi.NativeFunction< - CFLocaleIdentifier Function( - CFAllocatorRef, LangCode, RegionCode)>>( - 'CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes'); + ffi.NativeFunction< + CFLocaleIdentifier Function(CFAllocatorRef, LangCode, RegionCode) + > + >('CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes'); late final _CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes = - _CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodesPtr - .asFunction(); + _CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodesPtr.asFunction< + CFLocaleIdentifier Function(CFAllocatorRef, int, int) + >(); CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode( CFAllocatorRef allocator, @@ -11891,185 +11395,182 @@ class NativeCupertinoHttp { ); } - late final _CFLocaleCreateLocaleIdentifierFromWindowsLocaleCodePtr = _lookup< - ffi.NativeFunction< - CFLocaleIdentifier Function(CFAllocatorRef, ffi.Uint32)>>( - 'CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode'); + late final _CFLocaleCreateLocaleIdentifierFromWindowsLocaleCodePtr = + _lookup< + ffi.NativeFunction< + CFLocaleIdentifier Function(CFAllocatorRef, ffi.Uint32) + > + >('CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode'); late final _CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode = _CFLocaleCreateLocaleIdentifierFromWindowsLocaleCodePtr.asFunction< - CFLocaleIdentifier Function(CFAllocatorRef, int)>(); + CFLocaleIdentifier Function(CFAllocatorRef, int) + >(); int CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier( CFLocaleIdentifier localeIdentifier, ) { - return _CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier( - localeIdentifier, - ); + return _CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier(localeIdentifier); } late final _CFLocaleGetWindowsLocaleCodeFromLocaleIdentifierPtr = _lookup>( - 'CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier'); + 'CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier', + ); late final _CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier = _CFLocaleGetWindowsLocaleCodeFromLocaleIdentifierPtr.asFunction< - int Function(CFLocaleIdentifier)>(); + int Function(CFLocaleIdentifier) + >(); CFLocaleLanguageDirection CFLocaleGetLanguageCharacterDirection( CFStringRef isoLangCode, ) { return CFLocaleLanguageDirection.fromValue( - _CFLocaleGetLanguageCharacterDirection( - isoLangCode, - )); + _CFLocaleGetLanguageCharacterDirection(isoLangCode), + ); } late final _CFLocaleGetLanguageCharacterDirectionPtr = _lookup>( - 'CFLocaleGetLanguageCharacterDirection'); + 'CFLocaleGetLanguageCharacterDirection', + ); late final _CFLocaleGetLanguageCharacterDirection = _CFLocaleGetLanguageCharacterDirectionPtr.asFunction< - int Function(CFStringRef)>(); + int Function(CFStringRef) + >(); CFLocaleLanguageDirection CFLocaleGetLanguageLineDirection( CFStringRef isoLangCode, ) { return CFLocaleLanguageDirection.fromValue( - _CFLocaleGetLanguageLineDirection( - isoLangCode, - )); + _CFLocaleGetLanguageLineDirection(isoLangCode), + ); } late final _CFLocaleGetLanguageLineDirectionPtr = _lookup>( - 'CFLocaleGetLanguageLineDirection'); + 'CFLocaleGetLanguageLineDirection', + ); late final _CFLocaleGetLanguageLineDirection = _CFLocaleGetLanguageLineDirectionPtr.asFunction< - int Function(CFStringRef)>(); + int Function(CFStringRef) + >(); CFDictionaryRef CFLocaleCreateComponentsFromLocaleIdentifier( CFAllocatorRef allocator, CFLocaleIdentifier localeID, ) { - return _CFLocaleCreateComponentsFromLocaleIdentifier( - allocator, - localeID, - ); + return _CFLocaleCreateComponentsFromLocaleIdentifier(allocator, localeID); } - late final _CFLocaleCreateComponentsFromLocaleIdentifierPtr = _lookup< - ffi.NativeFunction< - CFDictionaryRef Function(CFAllocatorRef, CFLocaleIdentifier)>>( - 'CFLocaleCreateComponentsFromLocaleIdentifier'); + late final _CFLocaleCreateComponentsFromLocaleIdentifierPtr = + _lookup< + ffi.NativeFunction< + CFDictionaryRef Function(CFAllocatorRef, CFLocaleIdentifier) + > + >('CFLocaleCreateComponentsFromLocaleIdentifier'); late final _CFLocaleCreateComponentsFromLocaleIdentifier = _CFLocaleCreateComponentsFromLocaleIdentifierPtr.asFunction< - CFDictionaryRef Function(CFAllocatorRef, CFLocaleIdentifier)>(); + CFDictionaryRef Function(CFAllocatorRef, CFLocaleIdentifier) + >(); CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromComponents( CFAllocatorRef allocator, CFDictionaryRef dictionary, ) { - return _CFLocaleCreateLocaleIdentifierFromComponents( - allocator, - dictionary, - ); + return _CFLocaleCreateLocaleIdentifierFromComponents(allocator, dictionary); } - late final _CFLocaleCreateLocaleIdentifierFromComponentsPtr = _lookup< - ffi.NativeFunction< - CFLocaleIdentifier Function(CFAllocatorRef, CFDictionaryRef)>>( - 'CFLocaleCreateLocaleIdentifierFromComponents'); + late final _CFLocaleCreateLocaleIdentifierFromComponentsPtr = + _lookup< + ffi.NativeFunction< + CFLocaleIdentifier Function(CFAllocatorRef, CFDictionaryRef) + > + >('CFLocaleCreateLocaleIdentifierFromComponents'); late final _CFLocaleCreateLocaleIdentifierFromComponents = _CFLocaleCreateLocaleIdentifierFromComponentsPtr.asFunction< - CFLocaleIdentifier Function(CFAllocatorRef, CFDictionaryRef)>(); + CFLocaleIdentifier Function(CFAllocatorRef, CFDictionaryRef) + >(); CFLocaleRef CFLocaleCreate( CFAllocatorRef allocator, CFLocaleIdentifier localeIdentifier, ) { - return _CFLocaleCreate( - allocator, - localeIdentifier, - ); + return _CFLocaleCreate(allocator, localeIdentifier); } - late final _CFLocaleCreatePtr = _lookup< - ffi.NativeFunction< - CFLocaleRef Function( - CFAllocatorRef, CFLocaleIdentifier)>>('CFLocaleCreate'); - late final _CFLocaleCreate = _CFLocaleCreatePtr.asFunction< - CFLocaleRef Function(CFAllocatorRef, CFLocaleIdentifier)>(); + late final _CFLocaleCreatePtr = + _lookup< + ffi.NativeFunction< + CFLocaleRef Function(CFAllocatorRef, CFLocaleIdentifier) + > + >('CFLocaleCreate'); + late final _CFLocaleCreate = + _CFLocaleCreatePtr.asFunction< + CFLocaleRef Function(CFAllocatorRef, CFLocaleIdentifier) + >(); - CFLocaleRef CFLocaleCreateCopy( - CFAllocatorRef allocator, - CFLocaleRef locale, - ) { - return _CFLocaleCreateCopy( - allocator, - locale, - ); + CFLocaleRef CFLocaleCreateCopy(CFAllocatorRef allocator, CFLocaleRef locale) { + return _CFLocaleCreateCopy(allocator, locale); } - late final _CFLocaleCreateCopyPtr = _lookup< - ffi - .NativeFunction>( - 'CFLocaleCreateCopy'); - late final _CFLocaleCreateCopy = _CFLocaleCreateCopyPtr.asFunction< - CFLocaleRef Function(CFAllocatorRef, CFLocaleRef)>(); + late final _CFLocaleCreateCopyPtr = + _lookup< + ffi.NativeFunction + >('CFLocaleCreateCopy'); + late final _CFLocaleCreateCopy = + _CFLocaleCreateCopyPtr.asFunction< + CFLocaleRef Function(CFAllocatorRef, CFLocaleRef) + >(); - CFLocaleIdentifier CFLocaleGetIdentifier( - CFLocaleRef locale, - ) { - return _CFLocaleGetIdentifier( - locale, - ); + CFLocaleIdentifier CFLocaleGetIdentifier(CFLocaleRef locale) { + return _CFLocaleGetIdentifier(locale); } late final _CFLocaleGetIdentifierPtr = _lookup>( - 'CFLocaleGetIdentifier'); - late final _CFLocaleGetIdentifier = _CFLocaleGetIdentifierPtr.asFunction< - CFLocaleIdentifier Function(CFLocaleRef)>(); + 'CFLocaleGetIdentifier', + ); + late final _CFLocaleGetIdentifier = + _CFLocaleGetIdentifierPtr.asFunction< + CFLocaleIdentifier Function(CFLocaleRef) + >(); - CFTypeRef CFLocaleGetValue( - CFLocaleRef locale, - CFLocaleKey key, - ) { - return _CFLocaleGetValue( - locale, - key, - ); + CFTypeRef CFLocaleGetValue(CFLocaleRef locale, CFLocaleKey key) { + return _CFLocaleGetValue(locale, key); } late final _CFLocaleGetValuePtr = _lookup>( - 'CFLocaleGetValue'); - late final _CFLocaleGetValue = _CFLocaleGetValuePtr.asFunction< - CFTypeRef Function(CFLocaleRef, CFLocaleKey)>(); + 'CFLocaleGetValue', + ); + late final _CFLocaleGetValue = + _CFLocaleGetValuePtr.asFunction< + CFTypeRef Function(CFLocaleRef, CFLocaleKey) + >(); CFStringRef CFLocaleCopyDisplayNameForPropertyValue( CFLocaleRef displayLocale, CFLocaleKey key, CFStringRef value, ) { - return _CFLocaleCopyDisplayNameForPropertyValue( - displayLocale, - key, - value, - ); + return _CFLocaleCopyDisplayNameForPropertyValue(displayLocale, key, value); } - late final _CFLocaleCopyDisplayNameForPropertyValuePtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFLocaleRef, CFLocaleKey, - CFStringRef)>>('CFLocaleCopyDisplayNameForPropertyValue'); + late final _CFLocaleCopyDisplayNameForPropertyValuePtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(CFLocaleRef, CFLocaleKey, CFStringRef) + > + >('CFLocaleCopyDisplayNameForPropertyValue'); late final _CFLocaleCopyDisplayNameForPropertyValue = _CFLocaleCopyDisplayNameForPropertyValuePtr.asFunction< - CFStringRef Function(CFLocaleRef, CFLocaleKey, CFStringRef)>(); + CFStringRef Function(CFLocaleRef, CFLocaleKey, CFStringRef) + >(); late final ffi.Pointer - _kCFLocaleCurrentLocaleDidChangeNotification = - _lookup( - 'kCFLocaleCurrentLocaleDidChangeNotification'); + _kCFLocaleCurrentLocaleDidChangeNotification = _lookup( + 'kCFLocaleCurrentLocaleDidChangeNotification', + ); CFNotificationName get kCFLocaleCurrentLocaleDidChangeNotification => _kCFLocaleCurrentLocaleDidChangeNotification.value; @@ -12111,8 +11612,9 @@ class NativeCupertinoHttp { CFLocaleKey get kCFLocaleCalendarIdentifier => _kCFLocaleCalendarIdentifier.value; - late final ffi.Pointer _kCFLocaleCalendar = - _lookup('kCFLocaleCalendar'); + late final ffi.Pointer _kCFLocaleCalendar = _lookup( + 'kCFLocaleCalendar', + ); CFLocaleKey get kCFLocaleCalendar => _kCFLocaleCalendar.value; @@ -12173,15 +11675,17 @@ class NativeCupertinoHttp { _kCFLocaleQuotationEndDelimiterKey.value; late final ffi.Pointer - _kCFLocaleAlternateQuotationBeginDelimiterKey = - _lookup('kCFLocaleAlternateQuotationBeginDelimiterKey'); + _kCFLocaleAlternateQuotationBeginDelimiterKey = _lookup( + 'kCFLocaleAlternateQuotationBeginDelimiterKey', + ); CFLocaleKey get kCFLocaleAlternateQuotationBeginDelimiterKey => _kCFLocaleAlternateQuotationBeginDelimiterKey.value; late final ffi.Pointer - _kCFLocaleAlternateQuotationEndDelimiterKey = - _lookup('kCFLocaleAlternateQuotationEndDelimiterKey'); + _kCFLocaleAlternateQuotationEndDelimiterKey = _lookup( + 'kCFLocaleAlternateQuotationEndDelimiterKey', + ); CFLocaleKey get kCFLocaleAlternateQuotationEndDelimiterKey => _kCFLocaleAlternateQuotationEndDelimiterKey.value; @@ -12261,7 +11765,8 @@ class NativeCupertinoHttp { late final _CFAbsoluteTimeGetCurrentPtr = _lookup>( - 'CFAbsoluteTimeGetCurrent'); + 'CFAbsoluteTimeGetCurrent', + ); late final _CFAbsoluteTimeGetCurrent = _CFAbsoluteTimeGetCurrentPtr.asFunction(); @@ -12286,33 +11791,25 @@ class NativeCupertinoHttp { late final _CFDateGetTypeID = _CFDateGetTypeIDPtr.asFunction(); - CFDateRef CFDateCreate( - CFAllocatorRef allocator, - double at, - ) { - return _CFDateCreate( - allocator, - at, - ); + CFDateRef CFDateCreate(CFAllocatorRef allocator, double at) { + return _CFDateCreate(allocator, at); } - late final _CFDateCreatePtr = _lookup< - ffi.NativeFunction< - CFDateRef Function(CFAllocatorRef, CFAbsoluteTime)>>('CFDateCreate'); + late final _CFDateCreatePtr = + _lookup< + ffi.NativeFunction + >('CFDateCreate'); late final _CFDateCreate = _CFDateCreatePtr.asFunction(); - double CFDateGetAbsoluteTime( - CFDateRef theDate, - ) { - return _CFDateGetAbsoluteTime( - theDate, - ); + double CFDateGetAbsoluteTime(CFDateRef theDate) { + return _CFDateGetAbsoluteTime(theDate); } late final _CFDateGetAbsoluteTimePtr = _lookup>( - 'CFDateGetAbsoluteTime'); + 'CFDateGetAbsoluteTime', + ); late final _CFDateGetAbsoluteTime = _CFDateGetAbsoluteTimePtr.asFunction(); @@ -12320,109 +11817,107 @@ class NativeCupertinoHttp { CFDateRef theDate, CFDateRef otherDate, ) { - return _CFDateGetTimeIntervalSinceDate( - theDate, - otherDate, - ); + return _CFDateGetTimeIntervalSinceDate(theDate, otherDate); } - late final _CFDateGetTimeIntervalSinceDatePtr = _lookup< - ffi.NativeFunction>( - 'CFDateGetTimeIntervalSinceDate'); + late final _CFDateGetTimeIntervalSinceDatePtr = + _lookup< + ffi.NativeFunction + >('CFDateGetTimeIntervalSinceDate'); late final _CFDateGetTimeIntervalSinceDate = _CFDateGetTimeIntervalSinceDatePtr.asFunction< - double Function(CFDateRef, CFDateRef)>(); + double Function(CFDateRef, CFDateRef) + >(); CFComparisonResult CFDateCompare( CFDateRef theDate, CFDateRef otherDate, ffi.Pointer context, ) { - return CFComparisonResult.fromValue(_CFDateCompare( - theDate, - otherDate, - context, - )); + return CFComparisonResult.fromValue( + _CFDateCompare(theDate, otherDate, context), + ); } - late final _CFDateComparePtr = _lookup< - ffi.NativeFunction< - CFIndex Function( - CFDateRef, CFDateRef, ffi.Pointer)>>('CFDateCompare'); - late final _CFDateCompare = _CFDateComparePtr.asFunction< - int Function(CFDateRef, CFDateRef, ffi.Pointer)>(); + late final _CFDateComparePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFDateRef, CFDateRef, ffi.Pointer) + > + >('CFDateCompare'); + late final _CFDateCompare = + _CFDateComparePtr.asFunction< + int Function(CFDateRef, CFDateRef, ffi.Pointer) + >(); - int CFGregorianDateIsValid( - CFGregorianDate gdate, - int unitFlags, - ) { - return _CFGregorianDateIsValid( - gdate, - unitFlags, - ); + int CFGregorianDateIsValid(CFGregorianDate gdate, int unitFlags) { + return _CFGregorianDateIsValid(gdate, unitFlags); } - late final _CFGregorianDateIsValidPtr = _lookup< - ffi.NativeFunction>( - 'CFGregorianDateIsValid'); - late final _CFGregorianDateIsValid = _CFGregorianDateIsValidPtr.asFunction< - int Function(CFGregorianDate, int)>(); + late final _CFGregorianDateIsValidPtr = + _lookup< + ffi.NativeFunction + >('CFGregorianDateIsValid'); + late final _CFGregorianDateIsValid = + _CFGregorianDateIsValidPtr.asFunction< + int Function(CFGregorianDate, int) + >(); double CFGregorianDateGetAbsoluteTime( CFGregorianDate gdate, CFTimeZoneRef tz, ) { - return _CFGregorianDateGetAbsoluteTime( - gdate, - tz, - ); + return _CFGregorianDateGetAbsoluteTime(gdate, tz); } - late final _CFGregorianDateGetAbsoluteTimePtr = _lookup< - ffi.NativeFunction< - CFAbsoluteTime Function(CFGregorianDate, - CFTimeZoneRef)>>('CFGregorianDateGetAbsoluteTime'); + late final _CFGregorianDateGetAbsoluteTimePtr = + _lookup< + ffi.NativeFunction< + CFAbsoluteTime Function(CFGregorianDate, CFTimeZoneRef) + > + >('CFGregorianDateGetAbsoluteTime'); late final _CFGregorianDateGetAbsoluteTime = _CFGregorianDateGetAbsoluteTimePtr.asFunction< - double Function(CFGregorianDate, CFTimeZoneRef)>(); + double Function(CFGregorianDate, CFTimeZoneRef) + >(); - CFGregorianDate CFAbsoluteTimeGetGregorianDate( - double at, - CFTimeZoneRef tz, - ) { - return _CFAbsoluteTimeGetGregorianDate( - at, - tz, - ); + CFGregorianDate CFAbsoluteTimeGetGregorianDate(double at, CFTimeZoneRef tz) { + return _CFAbsoluteTimeGetGregorianDate(at, tz); } - late final _CFAbsoluteTimeGetGregorianDatePtr = _lookup< - ffi.NativeFunction< - CFGregorianDate Function(CFAbsoluteTime, - CFTimeZoneRef)>>('CFAbsoluteTimeGetGregorianDate'); + late final _CFAbsoluteTimeGetGregorianDatePtr = + _lookup< + ffi.NativeFunction< + CFGregorianDate Function(CFAbsoluteTime, CFTimeZoneRef) + > + >('CFAbsoluteTimeGetGregorianDate'); late final _CFAbsoluteTimeGetGregorianDate = _CFAbsoluteTimeGetGregorianDatePtr.asFunction< - CFGregorianDate Function(double, CFTimeZoneRef)>(); + CFGregorianDate Function(double, CFTimeZoneRef) + >(); double CFAbsoluteTimeAddGregorianUnits( double at, CFTimeZoneRef tz, CFGregorianUnits units, ) { - return _CFAbsoluteTimeAddGregorianUnits( - at, - tz, - units, - ); + return _CFAbsoluteTimeAddGregorianUnits(at, tz, units); } - late final _CFAbsoluteTimeAddGregorianUnitsPtr = _lookup< - ffi.NativeFunction< - CFAbsoluteTime Function(CFAbsoluteTime, CFTimeZoneRef, - CFGregorianUnits)>>('CFAbsoluteTimeAddGregorianUnits'); + late final _CFAbsoluteTimeAddGregorianUnitsPtr = + _lookup< + ffi.NativeFunction< + CFAbsoluteTime Function( + CFAbsoluteTime, + CFTimeZoneRef, + CFGregorianUnits, + ) + > + >('CFAbsoluteTimeAddGregorianUnits'); late final _CFAbsoluteTimeAddGregorianUnits = _CFAbsoluteTimeAddGregorianUnitsPtr.asFunction< - double Function(double, CFTimeZoneRef, CFGregorianUnits)>(); + double Function(double, CFTimeZoneRef, CFGregorianUnits) + >(); CFGregorianUnits CFAbsoluteTimeGetDifferenceAsGregorianUnits( double at1, @@ -12438,64 +11933,60 @@ class NativeCupertinoHttp { ); } - late final _CFAbsoluteTimeGetDifferenceAsGregorianUnitsPtr = _lookup< - ffi.NativeFunction< + late final _CFAbsoluteTimeGetDifferenceAsGregorianUnitsPtr = + _lookup< + ffi.NativeFunction< CFGregorianUnits Function( - CFAbsoluteTime, - CFAbsoluteTime, - CFTimeZoneRef, - CFOptionFlags)>>('CFAbsoluteTimeGetDifferenceAsGregorianUnits'); + CFAbsoluteTime, + CFAbsoluteTime, + CFTimeZoneRef, + CFOptionFlags, + ) + > + >('CFAbsoluteTimeGetDifferenceAsGregorianUnits'); late final _CFAbsoluteTimeGetDifferenceAsGregorianUnits = _CFAbsoluteTimeGetDifferenceAsGregorianUnitsPtr.asFunction< - CFGregorianUnits Function(double, double, CFTimeZoneRef, int)>(); + CFGregorianUnits Function(double, double, CFTimeZoneRef, int) + >(); - int CFAbsoluteTimeGetDayOfWeek( - double at, - CFTimeZoneRef tz, - ) { - return _CFAbsoluteTimeGetDayOfWeek( - at, - tz, - ); + int CFAbsoluteTimeGetDayOfWeek(double at, CFTimeZoneRef tz) { + return _CFAbsoluteTimeGetDayOfWeek(at, tz); } - late final _CFAbsoluteTimeGetDayOfWeekPtr = _lookup< - ffi.NativeFunction>( - 'CFAbsoluteTimeGetDayOfWeek'); - late final _CFAbsoluteTimeGetDayOfWeek = _CFAbsoluteTimeGetDayOfWeekPtr - .asFunction(); + late final _CFAbsoluteTimeGetDayOfWeekPtr = + _lookup< + ffi.NativeFunction + >('CFAbsoluteTimeGetDayOfWeek'); + late final _CFAbsoluteTimeGetDayOfWeek = + _CFAbsoluteTimeGetDayOfWeekPtr.asFunction< + int Function(double, CFTimeZoneRef) + >(); - int CFAbsoluteTimeGetDayOfYear( - double at, - CFTimeZoneRef tz, - ) { - return _CFAbsoluteTimeGetDayOfYear( - at, - tz, - ); + int CFAbsoluteTimeGetDayOfYear(double at, CFTimeZoneRef tz) { + return _CFAbsoluteTimeGetDayOfYear(at, tz); } - late final _CFAbsoluteTimeGetDayOfYearPtr = _lookup< - ffi.NativeFunction>( - 'CFAbsoluteTimeGetDayOfYear'); - late final _CFAbsoluteTimeGetDayOfYear = _CFAbsoluteTimeGetDayOfYearPtr - .asFunction(); + late final _CFAbsoluteTimeGetDayOfYearPtr = + _lookup< + ffi.NativeFunction + >('CFAbsoluteTimeGetDayOfYear'); + late final _CFAbsoluteTimeGetDayOfYear = + _CFAbsoluteTimeGetDayOfYearPtr.asFunction< + int Function(double, CFTimeZoneRef) + >(); - int CFAbsoluteTimeGetWeekOfYear( - double at, - CFTimeZoneRef tz, - ) { - return _CFAbsoluteTimeGetWeekOfYear( - at, - tz, - ); + int CFAbsoluteTimeGetWeekOfYear(double at, CFTimeZoneRef tz) { + return _CFAbsoluteTimeGetWeekOfYear(at, tz); } - late final _CFAbsoluteTimeGetWeekOfYearPtr = _lookup< - ffi.NativeFunction>( - 'CFAbsoluteTimeGetWeekOfYear'); - late final _CFAbsoluteTimeGetWeekOfYear = _CFAbsoluteTimeGetWeekOfYearPtr - .asFunction(); + late final _CFAbsoluteTimeGetWeekOfYearPtr = + _lookup< + ffi.NativeFunction + >('CFAbsoluteTimeGetWeekOfYear'); + late final _CFAbsoluteTimeGetWeekOfYear = + _CFAbsoluteTimeGetWeekOfYearPtr.asFunction< + int Function(double, CFTimeZoneRef) + >(); int CFDataGetTypeID() { return _CFDataGetTypeID(); @@ -12511,19 +12002,19 @@ class NativeCupertinoHttp { ffi.Pointer bytes, int length, ) { - return _CFDataCreate( - allocator, - bytes, - length, - ); + return _CFDataCreate(allocator, bytes, length); } - late final _CFDataCreatePtr = _lookup< - ffi.NativeFunction< - CFDataRef Function( - CFAllocatorRef, ffi.Pointer, CFIndex)>>('CFDataCreate'); - late final _CFDataCreate = _CFDataCreatePtr.asFunction< - CFDataRef Function(CFAllocatorRef, ffi.Pointer, int)>(); + late final _CFDataCreatePtr = + _lookup< + ffi.NativeFunction< + CFDataRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) + > + >('CFDataCreate'); + late final _CFDataCreate = + _CFDataCreatePtr.asFunction< + CFDataRef Function(CFAllocatorRef, ffi.Pointer, int) + >(); CFDataRef CFDataCreateWithBytesNoCopy( CFAllocatorRef allocator, @@ -12539,178 +12030,168 @@ class NativeCupertinoHttp { ); } - late final _CFDataCreateWithBytesNoCopyPtr = _lookup< - ffi.NativeFunction< - CFDataRef Function(CFAllocatorRef, ffi.Pointer, CFIndex, - CFAllocatorRef)>>('CFDataCreateWithBytesNoCopy'); + late final _CFDataCreateWithBytesNoCopyPtr = + _lookup< + ffi.NativeFunction< + CFDataRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFAllocatorRef, + ) + > + >('CFDataCreateWithBytesNoCopy'); late final _CFDataCreateWithBytesNoCopy = _CFDataCreateWithBytesNoCopyPtr.asFunction< - CFDataRef Function( - CFAllocatorRef, ffi.Pointer, int, CFAllocatorRef)>(); + CFDataRef Function( + CFAllocatorRef, + ffi.Pointer, + int, + CFAllocatorRef, + ) + >(); - CFDataRef CFDataCreateCopy( - CFAllocatorRef allocator, - CFDataRef theData, - ) { - return _CFDataCreateCopy( - allocator, - theData, - ); + CFDataRef CFDataCreateCopy(CFAllocatorRef allocator, CFDataRef theData) { + return _CFDataCreateCopy(allocator, theData); } - late final _CFDataCreateCopyPtr = _lookup< - ffi.NativeFunction>( - 'CFDataCreateCopy'); - late final _CFDataCreateCopy = _CFDataCreateCopyPtr.asFunction< - CFDataRef Function(CFAllocatorRef, CFDataRef)>(); + late final _CFDataCreateCopyPtr = + _lookup< + ffi.NativeFunction + >('CFDataCreateCopy'); + late final _CFDataCreateCopy = + _CFDataCreateCopyPtr.asFunction< + CFDataRef Function(CFAllocatorRef, CFDataRef) + >(); - CFMutableDataRef CFDataCreateMutable( - CFAllocatorRef allocator, - int capacity, - ) { - return _CFDataCreateMutable( - allocator, - capacity, - ); + CFMutableDataRef CFDataCreateMutable(CFAllocatorRef allocator, int capacity) { + return _CFDataCreateMutable(allocator, capacity); } - late final _CFDataCreateMutablePtr = _lookup< - ffi - .NativeFunction>( - 'CFDataCreateMutable'); - late final _CFDataCreateMutable = _CFDataCreateMutablePtr.asFunction< - CFMutableDataRef Function(CFAllocatorRef, int)>(); + late final _CFDataCreateMutablePtr = + _lookup< + ffi.NativeFunction + >('CFDataCreateMutable'); + late final _CFDataCreateMutable = + _CFDataCreateMutablePtr.asFunction< + CFMutableDataRef Function(CFAllocatorRef, int) + >(); CFMutableDataRef CFDataCreateMutableCopy( CFAllocatorRef allocator, int capacity, CFDataRef theData, ) { - return _CFDataCreateMutableCopy( - allocator, - capacity, - theData, - ); + return _CFDataCreateMutableCopy(allocator, capacity, theData); } - late final _CFDataCreateMutableCopyPtr = _lookup< - ffi.NativeFunction< - CFMutableDataRef Function( - CFAllocatorRef, CFIndex, CFDataRef)>>('CFDataCreateMutableCopy'); - late final _CFDataCreateMutableCopy = _CFDataCreateMutableCopyPtr.asFunction< - CFMutableDataRef Function(CFAllocatorRef, int, CFDataRef)>(); + late final _CFDataCreateMutableCopyPtr = + _lookup< + ffi.NativeFunction< + CFMutableDataRef Function(CFAllocatorRef, CFIndex, CFDataRef) + > + >('CFDataCreateMutableCopy'); + late final _CFDataCreateMutableCopy = + _CFDataCreateMutableCopyPtr.asFunction< + CFMutableDataRef Function(CFAllocatorRef, int, CFDataRef) + >(); - int CFDataGetLength( - CFDataRef theData, - ) { - return _CFDataGetLength( - theData, - ); + int CFDataGetLength(CFDataRef theData) { + return _CFDataGetLength(theData); } late final _CFDataGetLengthPtr = _lookup>( - 'CFDataGetLength'); + 'CFDataGetLength', + ); late final _CFDataGetLength = _CFDataGetLengthPtr.asFunction(); - ffi.Pointer CFDataGetBytePtr( - CFDataRef theData, - ) { - return _CFDataGetBytePtr( - theData, - ); + ffi.Pointer CFDataGetBytePtr(CFDataRef theData) { + return _CFDataGetBytePtr(theData); } late final _CFDataGetBytePtrPtr = _lookup Function(CFDataRef)>>( - 'CFDataGetBytePtr'); + 'CFDataGetBytePtr', + ); late final _CFDataGetBytePtr = _CFDataGetBytePtrPtr.asFunction Function(CFDataRef)>(); - ffi.Pointer CFDataGetMutableBytePtr( - CFMutableDataRef theData, - ) { - return _CFDataGetMutableBytePtr( - theData, - ); + ffi.Pointer CFDataGetMutableBytePtr(CFMutableDataRef theData) { + return _CFDataGetMutableBytePtr(theData); } - late final _CFDataGetMutableBytePtrPtr = _lookup< - ffi.NativeFunction Function(CFMutableDataRef)>>( - 'CFDataGetMutableBytePtr'); - late final _CFDataGetMutableBytePtr = _CFDataGetMutableBytePtrPtr.asFunction< - ffi.Pointer Function(CFMutableDataRef)>(); + late final _CFDataGetMutableBytePtrPtr = + _lookup< + ffi.NativeFunction Function(CFMutableDataRef)> + >('CFDataGetMutableBytePtr'); + late final _CFDataGetMutableBytePtr = + _CFDataGetMutableBytePtrPtr.asFunction< + ffi.Pointer Function(CFMutableDataRef) + >(); void CFDataGetBytes( CFDataRef theData, CFRange range, ffi.Pointer buffer, ) { - return _CFDataGetBytes( - theData, - range, - buffer, - ); + return _CFDataGetBytes(theData, range, buffer); } - late final _CFDataGetBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFDataRef, CFRange, ffi.Pointer)>>('CFDataGetBytes'); - late final _CFDataGetBytes = _CFDataGetBytesPtr.asFunction< - void Function(CFDataRef, CFRange, ffi.Pointer)>(); + late final _CFDataGetBytesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFDataRef, CFRange, ffi.Pointer) + > + >('CFDataGetBytes'); + late final _CFDataGetBytes = + _CFDataGetBytesPtr.asFunction< + void Function(CFDataRef, CFRange, ffi.Pointer) + >(); - void CFDataSetLength( - CFMutableDataRef theData, - int length, - ) { - return _CFDataSetLength( - theData, - length, - ); + void CFDataSetLength(CFMutableDataRef theData, int length) { + return _CFDataSetLength(theData, length); } late final _CFDataSetLengthPtr = _lookup>( - 'CFDataSetLength'); + 'CFDataSetLength', + ); late final _CFDataSetLength = _CFDataSetLengthPtr.asFunction(); - void CFDataIncreaseLength( - CFMutableDataRef theData, - int extraLength, - ) { - return _CFDataIncreaseLength( - theData, - extraLength, - ); + void CFDataIncreaseLength(CFMutableDataRef theData, int extraLength) { + return _CFDataIncreaseLength(theData, extraLength); } late final _CFDataIncreaseLengthPtr = _lookup>( - 'CFDataIncreaseLength'); - late final _CFDataIncreaseLength = _CFDataIncreaseLengthPtr.asFunction< - void Function(CFMutableDataRef, int)>(); + 'CFDataIncreaseLength', + ); + late final _CFDataIncreaseLength = + _CFDataIncreaseLengthPtr.asFunction< + void Function(CFMutableDataRef, int) + >(); void CFDataAppendBytes( CFMutableDataRef theData, ffi.Pointer bytes, int length, ) { - return _CFDataAppendBytes( - theData, - bytes, - length, - ); + return _CFDataAppendBytes(theData, bytes, length); } - late final _CFDataAppendBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableDataRef, ffi.Pointer, - CFIndex)>>('CFDataAppendBytes'); - late final _CFDataAppendBytes = _CFDataAppendBytesPtr.asFunction< - void Function(CFMutableDataRef, ffi.Pointer, int)>(); + late final _CFDataAppendBytesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableDataRef, ffi.Pointer, CFIndex) + > + >('CFDataAppendBytes'); + late final _CFDataAppendBytes = + _CFDataAppendBytesPtr.asFunction< + void Function(CFMutableDataRef, ffi.Pointer, int) + >(); void CFDataReplaceBytes( CFMutableDataRef theData, @@ -12718,36 +12199,37 @@ class NativeCupertinoHttp { ffi.Pointer newBytes, int newLength, ) { - return _CFDataReplaceBytes( - theData, - range, - newBytes, - newLength, - ); + return _CFDataReplaceBytes(theData, range, newBytes, newLength); } - late final _CFDataReplaceBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableDataRef, CFRange, ffi.Pointer, - CFIndex)>>('CFDataReplaceBytes'); - late final _CFDataReplaceBytes = _CFDataReplaceBytesPtr.asFunction< - void Function(CFMutableDataRef, CFRange, ffi.Pointer, int)>(); - - void CFDataDeleteBytes( - CFMutableDataRef theData, - CFRange range, - ) { - return _CFDataDeleteBytes( - theData, - range, - ); + late final _CFDataReplaceBytesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFMutableDataRef, + CFRange, + ffi.Pointer, + CFIndex, + ) + > + >('CFDataReplaceBytes'); + late final _CFDataReplaceBytes = + _CFDataReplaceBytesPtr.asFunction< + void Function(CFMutableDataRef, CFRange, ffi.Pointer, int) + >(); + + void CFDataDeleteBytes(CFMutableDataRef theData, CFRange range) { + return _CFDataDeleteBytes(theData, range); } late final _CFDataDeleteBytesPtr = _lookup>( - 'CFDataDeleteBytes'); - late final _CFDataDeleteBytes = _CFDataDeleteBytesPtr.asFunction< - void Function(CFMutableDataRef, CFRange)>(); + 'CFDataDeleteBytes', + ); + late final _CFDataDeleteBytes = + _CFDataDeleteBytesPtr.asFunction< + void Function(CFMutableDataRef, CFRange) + >(); CFRange CFDataFind( CFDataRef theData, @@ -12755,20 +12237,19 @@ class NativeCupertinoHttp { CFRange searchRange, CFDataSearchFlags compareOptions, ) { - return _CFDataFind( - theData, - dataToFind, - searchRange, - compareOptions.value, - ); + return _CFDataFind(theData, dataToFind, searchRange, compareOptions.value); } - late final _CFDataFindPtr = _lookup< - ffi.NativeFunction< - CFRange Function( - CFDataRef, CFDataRef, CFRange, CFOptionFlags)>>('CFDataFind'); - late final _CFDataFind = _CFDataFindPtr.asFunction< - CFRange Function(CFDataRef, CFDataRef, CFRange, int)>(); + late final _CFDataFindPtr = + _lookup< + ffi.NativeFunction< + CFRange Function(CFDataRef, CFDataRef, CFRange, CFOptionFlags) + > + >('CFDataFind'); + late final _CFDataFind = + _CFDataFindPtr.asFunction< + CFRange Function(CFDataRef, CFDataRef, CFRange, int) + >(); int CFCharacterSetGetTypeID() { return _CFCharacterSetGetTypeID(); @@ -12776,353 +12257,339 @@ class NativeCupertinoHttp { late final _CFCharacterSetGetTypeIDPtr = _lookup>( - 'CFCharacterSetGetTypeID'); + 'CFCharacterSetGetTypeID', + ); late final _CFCharacterSetGetTypeID = _CFCharacterSetGetTypeIDPtr.asFunction(); CFCharacterSetRef CFCharacterSetGetPredefined( CFCharacterSetPredefinedSet theSetIdentifier, ) { - return _CFCharacterSetGetPredefined( - theSetIdentifier.value, - ); + return _CFCharacterSetGetPredefined(theSetIdentifier.value); } late final _CFCharacterSetGetPredefinedPtr = _lookup>( - 'CFCharacterSetGetPredefined'); - late final _CFCharacterSetGetPredefined = _CFCharacterSetGetPredefinedPtr - .asFunction(); + 'CFCharacterSetGetPredefined', + ); + late final _CFCharacterSetGetPredefined = + _CFCharacterSetGetPredefinedPtr.asFunction< + CFCharacterSetRef Function(int) + >(); CFCharacterSetRef CFCharacterSetCreateWithCharactersInRange( CFAllocatorRef alloc, CFRange theRange, ) { - return _CFCharacterSetCreateWithCharactersInRange( - alloc, - theRange, - ); + return _CFCharacterSetCreateWithCharactersInRange(alloc, theRange); } - late final _CFCharacterSetCreateWithCharactersInRangePtr = _lookup< - ffi - .NativeFunction>( - 'CFCharacterSetCreateWithCharactersInRange'); + late final _CFCharacterSetCreateWithCharactersInRangePtr = + _lookup< + ffi.NativeFunction + >('CFCharacterSetCreateWithCharactersInRange'); late final _CFCharacterSetCreateWithCharactersInRange = _CFCharacterSetCreateWithCharactersInRangePtr.asFunction< - CFCharacterSetRef Function(CFAllocatorRef, CFRange)>(); + CFCharacterSetRef Function(CFAllocatorRef, CFRange) + >(); CFCharacterSetRef CFCharacterSetCreateWithCharactersInString( CFAllocatorRef alloc, CFStringRef theString, ) { - return _CFCharacterSetCreateWithCharactersInString( - alloc, - theString, - ); + return _CFCharacterSetCreateWithCharactersInString(alloc, theString); } - late final _CFCharacterSetCreateWithCharactersInStringPtr = _lookup< - ffi.NativeFunction< - CFCharacterSetRef Function(CFAllocatorRef, - CFStringRef)>>('CFCharacterSetCreateWithCharactersInString'); + late final _CFCharacterSetCreateWithCharactersInStringPtr = + _lookup< + ffi.NativeFunction< + CFCharacterSetRef Function(CFAllocatorRef, CFStringRef) + > + >('CFCharacterSetCreateWithCharactersInString'); late final _CFCharacterSetCreateWithCharactersInString = _CFCharacterSetCreateWithCharactersInStringPtr.asFunction< - CFCharacterSetRef Function(CFAllocatorRef, CFStringRef)>(); + CFCharacterSetRef Function(CFAllocatorRef, CFStringRef) + >(); CFCharacterSetRef CFCharacterSetCreateWithBitmapRepresentation( CFAllocatorRef alloc, CFDataRef theData, ) { - return _CFCharacterSetCreateWithBitmapRepresentation( - alloc, - theData, - ); + return _CFCharacterSetCreateWithBitmapRepresentation(alloc, theData); } - late final _CFCharacterSetCreateWithBitmapRepresentationPtr = _lookup< - ffi.NativeFunction< - CFCharacterSetRef Function(CFAllocatorRef, - CFDataRef)>>('CFCharacterSetCreateWithBitmapRepresentation'); + late final _CFCharacterSetCreateWithBitmapRepresentationPtr = + _lookup< + ffi.NativeFunction< + CFCharacterSetRef Function(CFAllocatorRef, CFDataRef) + > + >('CFCharacterSetCreateWithBitmapRepresentation'); late final _CFCharacterSetCreateWithBitmapRepresentation = _CFCharacterSetCreateWithBitmapRepresentationPtr.asFunction< - CFCharacterSetRef Function(CFAllocatorRef, CFDataRef)>(); + CFCharacterSetRef Function(CFAllocatorRef, CFDataRef) + >(); CFCharacterSetRef CFCharacterSetCreateInvertedSet( CFAllocatorRef alloc, CFCharacterSetRef theSet, ) { - return _CFCharacterSetCreateInvertedSet( - alloc, - theSet, - ); + return _CFCharacterSetCreateInvertedSet(alloc, theSet); } - late final _CFCharacterSetCreateInvertedSetPtr = _lookup< - ffi.NativeFunction< - CFCharacterSetRef Function(CFAllocatorRef, - CFCharacterSetRef)>>('CFCharacterSetCreateInvertedSet'); + late final _CFCharacterSetCreateInvertedSetPtr = + _lookup< + ffi.NativeFunction< + CFCharacterSetRef Function(CFAllocatorRef, CFCharacterSetRef) + > + >('CFCharacterSetCreateInvertedSet'); late final _CFCharacterSetCreateInvertedSet = _CFCharacterSetCreateInvertedSetPtr.asFunction< - CFCharacterSetRef Function(CFAllocatorRef, CFCharacterSetRef)>(); + CFCharacterSetRef Function(CFAllocatorRef, CFCharacterSetRef) + >(); int CFCharacterSetIsSupersetOfSet( CFCharacterSetRef theSet, CFCharacterSetRef theOtherset, ) { - return _CFCharacterSetIsSupersetOfSet( - theSet, - theOtherset, - ); + return _CFCharacterSetIsSupersetOfSet(theSet, theOtherset); } - late final _CFCharacterSetIsSupersetOfSetPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFCharacterSetRef, - CFCharacterSetRef)>>('CFCharacterSetIsSupersetOfSet'); - late final _CFCharacterSetIsSupersetOfSet = _CFCharacterSetIsSupersetOfSetPtr - .asFunction(); + late final _CFCharacterSetIsSupersetOfSetPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFCharacterSetRef, CFCharacterSetRef) + > + >('CFCharacterSetIsSupersetOfSet'); + late final _CFCharacterSetIsSupersetOfSet = + _CFCharacterSetIsSupersetOfSetPtr.asFunction< + int Function(CFCharacterSetRef, CFCharacterSetRef) + >(); - int CFCharacterSetHasMemberInPlane( - CFCharacterSetRef theSet, - int thePlane, - ) { - return _CFCharacterSetHasMemberInPlane( - theSet, - thePlane, - ); + int CFCharacterSetHasMemberInPlane(CFCharacterSetRef theSet, int thePlane) { + return _CFCharacterSetHasMemberInPlane(theSet, thePlane); } late final _CFCharacterSetHasMemberInPlanePtr = _lookup>( - 'CFCharacterSetHasMemberInPlane'); + 'CFCharacterSetHasMemberInPlane', + ); late final _CFCharacterSetHasMemberInPlane = _CFCharacterSetHasMemberInPlanePtr.asFunction< - int Function(CFCharacterSetRef, int)>(); + int Function(CFCharacterSetRef, int) + >(); - CFMutableCharacterSetRef CFCharacterSetCreateMutable( - CFAllocatorRef alloc, - ) { - return _CFCharacterSetCreateMutable( - alloc, - ); + CFMutableCharacterSetRef CFCharacterSetCreateMutable(CFAllocatorRef alloc) { + return _CFCharacterSetCreateMutable(alloc); } - late final _CFCharacterSetCreateMutablePtr = _lookup< - ffi - .NativeFunction>( - 'CFCharacterSetCreateMutable'); - late final _CFCharacterSetCreateMutable = _CFCharacterSetCreateMutablePtr - .asFunction(); + late final _CFCharacterSetCreateMutablePtr = + _lookup< + ffi.NativeFunction + >('CFCharacterSetCreateMutable'); + late final _CFCharacterSetCreateMutable = + _CFCharacterSetCreateMutablePtr.asFunction< + CFMutableCharacterSetRef Function(CFAllocatorRef) + >(); CFCharacterSetRef CFCharacterSetCreateCopy( CFAllocatorRef alloc, CFCharacterSetRef theSet, ) { - return _CFCharacterSetCreateCopy( - alloc, - theSet, - ); + return _CFCharacterSetCreateCopy(alloc, theSet); } - late final _CFCharacterSetCreateCopyPtr = _lookup< - ffi.NativeFunction< - CFCharacterSetRef Function( - CFAllocatorRef, CFCharacterSetRef)>>('CFCharacterSetCreateCopy'); + late final _CFCharacterSetCreateCopyPtr = + _lookup< + ffi.NativeFunction< + CFCharacterSetRef Function(CFAllocatorRef, CFCharacterSetRef) + > + >('CFCharacterSetCreateCopy'); late final _CFCharacterSetCreateCopy = _CFCharacterSetCreateCopyPtr.asFunction< - CFCharacterSetRef Function(CFAllocatorRef, CFCharacterSetRef)>(); + CFCharacterSetRef Function(CFAllocatorRef, CFCharacterSetRef) + >(); CFMutableCharacterSetRef CFCharacterSetCreateMutableCopy( CFAllocatorRef alloc, CFCharacterSetRef theSet, ) { - return _CFCharacterSetCreateMutableCopy( - alloc, - theSet, - ); + return _CFCharacterSetCreateMutableCopy(alloc, theSet); } - late final _CFCharacterSetCreateMutableCopyPtr = _lookup< - ffi.NativeFunction< - CFMutableCharacterSetRef Function(CFAllocatorRef, - CFCharacterSetRef)>>('CFCharacterSetCreateMutableCopy'); + late final _CFCharacterSetCreateMutableCopyPtr = + _lookup< + ffi.NativeFunction< + CFMutableCharacterSetRef Function(CFAllocatorRef, CFCharacterSetRef) + > + >('CFCharacterSetCreateMutableCopy'); late final _CFCharacterSetCreateMutableCopy = _CFCharacterSetCreateMutableCopyPtr.asFunction< - CFMutableCharacterSetRef Function( - CFAllocatorRef, CFCharacterSetRef)>(); + CFMutableCharacterSetRef Function(CFAllocatorRef, CFCharacterSetRef) + >(); - int CFCharacterSetIsCharacterMember( - CFCharacterSetRef theSet, - int theChar, - ) { - return _CFCharacterSetIsCharacterMember( - theSet, - theChar, - ); + int CFCharacterSetIsCharacterMember(CFCharacterSetRef theSet, int theChar) { + return _CFCharacterSetIsCharacterMember(theSet, theChar); } late final _CFCharacterSetIsCharacterMemberPtr = _lookup>( - 'CFCharacterSetIsCharacterMember'); + 'CFCharacterSetIsCharacterMember', + ); late final _CFCharacterSetIsCharacterMember = _CFCharacterSetIsCharacterMemberPtr.asFunction< - int Function(CFCharacterSetRef, int)>(); + int Function(CFCharacterSetRef, int) + >(); int CFCharacterSetIsLongCharacterMember( CFCharacterSetRef theSet, int theChar, ) { - return _CFCharacterSetIsLongCharacterMember( - theSet, - theChar, - ); + return _CFCharacterSetIsLongCharacterMember(theSet, theChar); } - late final _CFCharacterSetIsLongCharacterMemberPtr = _lookup< - ffi.NativeFunction>( - 'CFCharacterSetIsLongCharacterMember'); + late final _CFCharacterSetIsLongCharacterMemberPtr = + _lookup< + ffi.NativeFunction + >('CFCharacterSetIsLongCharacterMember'); late final _CFCharacterSetIsLongCharacterMember = _CFCharacterSetIsLongCharacterMemberPtr.asFunction< - int Function(CFCharacterSetRef, int)>(); + int Function(CFCharacterSetRef, int) + >(); CFDataRef CFCharacterSetCreateBitmapRepresentation( CFAllocatorRef alloc, CFCharacterSetRef theSet, ) { - return _CFCharacterSetCreateBitmapRepresentation( - alloc, - theSet, - ); + return _CFCharacterSetCreateBitmapRepresentation(alloc, theSet); } - late final _CFCharacterSetCreateBitmapRepresentationPtr = _lookup< - ffi.NativeFunction< - CFDataRef Function(CFAllocatorRef, - CFCharacterSetRef)>>('CFCharacterSetCreateBitmapRepresentation'); + late final _CFCharacterSetCreateBitmapRepresentationPtr = + _lookup< + ffi.NativeFunction< + CFDataRef Function(CFAllocatorRef, CFCharacterSetRef) + > + >('CFCharacterSetCreateBitmapRepresentation'); late final _CFCharacterSetCreateBitmapRepresentation = _CFCharacterSetCreateBitmapRepresentationPtr.asFunction< - CFDataRef Function(CFAllocatorRef, CFCharacterSetRef)>(); + CFDataRef Function(CFAllocatorRef, CFCharacterSetRef) + >(); void CFCharacterSetAddCharactersInRange( CFMutableCharacterSetRef theSet, CFRange theRange, ) { - return _CFCharacterSetAddCharactersInRange( - theSet, - theRange, - ); + return _CFCharacterSetAddCharactersInRange(theSet, theRange); } - late final _CFCharacterSetAddCharactersInRangePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableCharacterSetRef, - CFRange)>>('CFCharacterSetAddCharactersInRange'); + late final _CFCharacterSetAddCharactersInRangePtr = + _lookup< + ffi.NativeFunction + >('CFCharacterSetAddCharactersInRange'); late final _CFCharacterSetAddCharactersInRange = _CFCharacterSetAddCharactersInRangePtr.asFunction< - void Function(CFMutableCharacterSetRef, CFRange)>(); + void Function(CFMutableCharacterSetRef, CFRange) + >(); void CFCharacterSetRemoveCharactersInRange( CFMutableCharacterSetRef theSet, CFRange theRange, ) { - return _CFCharacterSetRemoveCharactersInRange( - theSet, - theRange, - ); + return _CFCharacterSetRemoveCharactersInRange(theSet, theRange); } - late final _CFCharacterSetRemoveCharactersInRangePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableCharacterSetRef, - CFRange)>>('CFCharacterSetRemoveCharactersInRange'); + late final _CFCharacterSetRemoveCharactersInRangePtr = + _lookup< + ffi.NativeFunction + >('CFCharacterSetRemoveCharactersInRange'); late final _CFCharacterSetRemoveCharactersInRange = _CFCharacterSetRemoveCharactersInRangePtr.asFunction< - void Function(CFMutableCharacterSetRef, CFRange)>(); + void Function(CFMutableCharacterSetRef, CFRange) + >(); void CFCharacterSetAddCharactersInString( CFMutableCharacterSetRef theSet, CFStringRef theString, ) { - return _CFCharacterSetAddCharactersInString( - theSet, - theString, - ); + return _CFCharacterSetAddCharactersInString(theSet, theString); } - late final _CFCharacterSetAddCharactersInStringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableCharacterSetRef, - CFStringRef)>>('CFCharacterSetAddCharactersInString'); + late final _CFCharacterSetAddCharactersInStringPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableCharacterSetRef, CFStringRef) + > + >('CFCharacterSetAddCharactersInString'); late final _CFCharacterSetAddCharactersInString = _CFCharacterSetAddCharactersInStringPtr.asFunction< - void Function(CFMutableCharacterSetRef, CFStringRef)>(); + void Function(CFMutableCharacterSetRef, CFStringRef) + >(); void CFCharacterSetRemoveCharactersInString( CFMutableCharacterSetRef theSet, CFStringRef theString, ) { - return _CFCharacterSetRemoveCharactersInString( - theSet, - theString, - ); + return _CFCharacterSetRemoveCharactersInString(theSet, theString); } - late final _CFCharacterSetRemoveCharactersInStringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableCharacterSetRef, - CFStringRef)>>('CFCharacterSetRemoveCharactersInString'); + late final _CFCharacterSetRemoveCharactersInStringPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableCharacterSetRef, CFStringRef) + > + >('CFCharacterSetRemoveCharactersInString'); late final _CFCharacterSetRemoveCharactersInString = _CFCharacterSetRemoveCharactersInStringPtr.asFunction< - void Function(CFMutableCharacterSetRef, CFStringRef)>(); + void Function(CFMutableCharacterSetRef, CFStringRef) + >(); void CFCharacterSetUnion( CFMutableCharacterSetRef theSet, CFCharacterSetRef theOtherSet, ) { - return _CFCharacterSetUnion( - theSet, - theOtherSet, - ); + return _CFCharacterSetUnion(theSet, theOtherSet); } - late final _CFCharacterSetUnionPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableCharacterSetRef, - CFCharacterSetRef)>>('CFCharacterSetUnion'); - late final _CFCharacterSetUnion = _CFCharacterSetUnionPtr.asFunction< - void Function(CFMutableCharacterSetRef, CFCharacterSetRef)>(); + late final _CFCharacterSetUnionPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableCharacterSetRef, CFCharacterSetRef) + > + >('CFCharacterSetUnion'); + late final _CFCharacterSetUnion = + _CFCharacterSetUnionPtr.asFunction< + void Function(CFMutableCharacterSetRef, CFCharacterSetRef) + >(); void CFCharacterSetIntersect( CFMutableCharacterSetRef theSet, CFCharacterSetRef theOtherSet, ) { - return _CFCharacterSetIntersect( - theSet, - theOtherSet, - ); + return _CFCharacterSetIntersect(theSet, theOtherSet); } - late final _CFCharacterSetIntersectPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableCharacterSetRef, - CFCharacterSetRef)>>('CFCharacterSetIntersect'); - late final _CFCharacterSetIntersect = _CFCharacterSetIntersectPtr.asFunction< - void Function(CFMutableCharacterSetRef, CFCharacterSetRef)>(); + late final _CFCharacterSetIntersectPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableCharacterSetRef, CFCharacterSetRef) + > + >('CFCharacterSetIntersect'); + late final _CFCharacterSetIntersect = + _CFCharacterSetIntersectPtr.asFunction< + void Function(CFMutableCharacterSetRef, CFCharacterSetRef) + >(); - void CFCharacterSetInvert( - CFMutableCharacterSetRef theSet, - ) { - return _CFCharacterSetInvert( - theSet, - ); + void CFCharacterSetInvert(CFMutableCharacterSetRef theSet) { + return _CFCharacterSetInvert(theSet); } late final _CFCharacterSetInvertPtr = _lookup>( - 'CFCharacterSetInvert'); - late final _CFCharacterSetInvert = _CFCharacterSetInvertPtr.asFunction< - void Function(CFMutableCharacterSetRef)>(); + 'CFCharacterSetInvert', + ); + late final _CFCharacterSetInvert = + _CFCharacterSetInvertPtr.asFunction< + void Function(CFMutableCharacterSetRef) + >(); int CFErrorGetTypeID() { return _CFErrorGetTypeID(); @@ -13188,8 +12655,9 @@ class NativeCupertinoHttp { CFStringRef get kCFErrorUnderlyingErrorKey => _kCFErrorUnderlyingErrorKey.value; - late final ffi.Pointer _kCFErrorURLKey = - _lookup('kCFErrorURLKey'); + late final ffi.Pointer _kCFErrorURLKey = _lookup( + 'kCFErrorURLKey', + ); CFStringRef get kCFErrorURLKey => _kCFErrorURLKey.value; @@ -13204,21 +12672,24 @@ class NativeCupertinoHttp { int code, CFDictionaryRef userInfo, ) { - return _CFErrorCreate( - allocator, - domain, - code, - userInfo, - ); + return _CFErrorCreate(allocator, domain, code, userInfo); } - late final _CFErrorCreatePtr = _lookup< - ffi.NativeFunction< - CFErrorRef Function(CFAllocatorRef, CFErrorDomain, CFIndex, - CFDictionaryRef)>>('CFErrorCreate'); - late final _CFErrorCreate = _CFErrorCreatePtr.asFunction< - CFErrorRef Function( - CFAllocatorRef, CFErrorDomain, int, CFDictionaryRef)>(); + late final _CFErrorCreatePtr = + _lookup< + ffi.NativeFunction< + CFErrorRef Function( + CFAllocatorRef, + CFErrorDomain, + CFIndex, + CFDictionaryRef, + ) + > + >('CFErrorCreate'); + late final _CFErrorCreate = + _CFErrorCreatePtr.asFunction< + CFErrorRef Function(CFAllocatorRef, CFErrorDomain, int, CFDictionaryRef) + >(); CFErrorRef CFErrorCreateWithUserInfoKeysAndValues( CFAllocatorRef allocator, @@ -13238,108 +12709,102 @@ class NativeCupertinoHttp { ); } - late final _CFErrorCreateWithUserInfoKeysAndValuesPtr = _lookup< - ffi.NativeFunction< + late final _CFErrorCreateWithUserInfoKeysAndValuesPtr = + _lookup< + ffi.NativeFunction< CFErrorRef Function( - CFAllocatorRef, - CFErrorDomain, - CFIndex, - ffi.Pointer>, - ffi.Pointer>, - CFIndex)>>('CFErrorCreateWithUserInfoKeysAndValues'); + CFAllocatorRef, + CFErrorDomain, + CFIndex, + ffi.Pointer>, + ffi.Pointer>, + CFIndex, + ) + > + >('CFErrorCreateWithUserInfoKeysAndValues'); late final _CFErrorCreateWithUserInfoKeysAndValues = _CFErrorCreateWithUserInfoKeysAndValuesPtr.asFunction< - CFErrorRef Function( - CFAllocatorRef, - CFErrorDomain, - int, - ffi.Pointer>, - ffi.Pointer>, - int)>(); + CFErrorRef Function( + CFAllocatorRef, + CFErrorDomain, + int, + ffi.Pointer>, + ffi.Pointer>, + int, + ) + >(); - CFErrorDomain CFErrorGetDomain( - CFErrorRef err, - ) { - return _CFErrorGetDomain( - err, - ); + CFErrorDomain CFErrorGetDomain(CFErrorRef err) { + return _CFErrorGetDomain(err); } late final _CFErrorGetDomainPtr = _lookup>( - 'CFErrorGetDomain'); + 'CFErrorGetDomain', + ); late final _CFErrorGetDomain = _CFErrorGetDomainPtr.asFunction(); - int CFErrorGetCode( - CFErrorRef err, - ) { - return _CFErrorGetCode( - err, - ); + int CFErrorGetCode(CFErrorRef err) { + return _CFErrorGetCode(err); } late final _CFErrorGetCodePtr = _lookup>( - 'CFErrorGetCode'); + 'CFErrorGetCode', + ); late final _CFErrorGetCode = _CFErrorGetCodePtr.asFunction(); - CFDictionaryRef CFErrorCopyUserInfo( - CFErrorRef err, - ) { - return _CFErrorCopyUserInfo( - err, - ); + CFDictionaryRef CFErrorCopyUserInfo(CFErrorRef err) { + return _CFErrorCopyUserInfo(err); } late final _CFErrorCopyUserInfoPtr = _lookup>( - 'CFErrorCopyUserInfo'); - late final _CFErrorCopyUserInfo = _CFErrorCopyUserInfoPtr.asFunction< - CFDictionaryRef Function(CFErrorRef)>(); + 'CFErrorCopyUserInfo', + ); + late final _CFErrorCopyUserInfo = + _CFErrorCopyUserInfoPtr.asFunction< + CFDictionaryRef Function(CFErrorRef) + >(); - CFStringRef CFErrorCopyDescription( - CFErrorRef err, - ) { - return _CFErrorCopyDescription( - err, - ); + CFStringRef CFErrorCopyDescription(CFErrorRef err) { + return _CFErrorCopyDescription(err); } late final _CFErrorCopyDescriptionPtr = _lookup>( - 'CFErrorCopyDescription'); + 'CFErrorCopyDescription', + ); late final _CFErrorCopyDescription = _CFErrorCopyDescriptionPtr.asFunction(); - CFStringRef CFErrorCopyFailureReason( - CFErrorRef err, - ) { - return _CFErrorCopyFailureReason( - err, - ); + CFStringRef CFErrorCopyFailureReason(CFErrorRef err) { + return _CFErrorCopyFailureReason(err); } late final _CFErrorCopyFailureReasonPtr = _lookup>( - 'CFErrorCopyFailureReason'); - late final _CFErrorCopyFailureReason = _CFErrorCopyFailureReasonPtr - .asFunction(); + 'CFErrorCopyFailureReason', + ); + late final _CFErrorCopyFailureReason = + _CFErrorCopyFailureReasonPtr.asFunction< + CFStringRef Function(CFErrorRef) + >(); - CFStringRef CFErrorCopyRecoverySuggestion( - CFErrorRef err, - ) { - return _CFErrorCopyRecoverySuggestion( - err, - ); + CFStringRef CFErrorCopyRecoverySuggestion(CFErrorRef err) { + return _CFErrorCopyRecoverySuggestion(err); } late final _CFErrorCopyRecoverySuggestionPtr = _lookup>( - 'CFErrorCopyRecoverySuggestion'); - late final _CFErrorCopyRecoverySuggestion = _CFErrorCopyRecoverySuggestionPtr - .asFunction(); + 'CFErrorCopyRecoverySuggestion', + ); + late final _CFErrorCopyRecoverySuggestion = + _CFErrorCopyRecoverySuggestionPtr.asFunction< + CFStringRef Function(CFErrorRef) + >(); int CFStringGetTypeID() { return _CFStringGetTypeID(); @@ -13355,40 +12820,46 @@ class NativeCupertinoHttp { ConstStr255Param pStr, int encoding, ) { - return _CFStringCreateWithPascalString( - alloc, - pStr, - encoding, - ); + return _CFStringCreateWithPascalString(alloc, pStr, encoding); } - late final _CFStringCreateWithPascalStringPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, ConstStr255Param, - CFStringEncoding)>>('CFStringCreateWithPascalString'); + late final _CFStringCreateWithPascalStringPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + ConstStr255Param, + CFStringEncoding, + ) + > + >('CFStringCreateWithPascalString'); late final _CFStringCreateWithPascalString = _CFStringCreateWithPascalStringPtr.asFunction< - CFStringRef Function(CFAllocatorRef, ConstStr255Param, int)>(); + CFStringRef Function(CFAllocatorRef, ConstStr255Param, int) + >(); CFStringRef CFStringCreateWithCString( CFAllocatorRef alloc, ffi.Pointer cStr, int encoding, ) { - return _CFStringCreateWithCString( - alloc, - cStr, - encoding, - ); + return _CFStringCreateWithCString(alloc, cStr, encoding); } - late final _CFStringCreateWithCStringPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, ffi.Pointer, - CFStringEncoding)>>('CFStringCreateWithCString'); + late final _CFStringCreateWithCStringPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFStringEncoding, + ) + > + >('CFStringCreateWithCString'); late final _CFStringCreateWithCString = _CFStringCreateWithCStringPtr.asFunction< - CFStringRef Function(CFAllocatorRef, ffi.Pointer, int)>(); + CFStringRef Function(CFAllocatorRef, ffi.Pointer, int) + >(); CFStringRef CFStringCreateWithBytes( CFAllocatorRef alloc, @@ -13406,33 +12877,41 @@ class NativeCupertinoHttp { ); } - late final _CFStringCreateWithBytesPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, ffi.Pointer, CFIndex, - CFStringEncoding, Boolean)>>('CFStringCreateWithBytes'); - late final _CFStringCreateWithBytes = _CFStringCreateWithBytesPtr.asFunction< - CFStringRef Function( - CFAllocatorRef, ffi.Pointer, int, int, int)>(); + late final _CFStringCreateWithBytesPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + Boolean, + ) + > + >('CFStringCreateWithBytes'); + late final _CFStringCreateWithBytes = + _CFStringCreateWithBytesPtr.asFunction< + CFStringRef Function(CFAllocatorRef, ffi.Pointer, int, int, int) + >(); CFStringRef CFStringCreateWithCharacters( CFAllocatorRef alloc, ffi.Pointer chars, int numChars, ) { - return _CFStringCreateWithCharacters( - alloc, - chars, - numChars, - ); + return _CFStringCreateWithCharacters(alloc, chars, numChars); } - late final _CFStringCreateWithCharactersPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, ffi.Pointer, - CFIndex)>>('CFStringCreateWithCharacters'); + late final _CFStringCreateWithCharactersPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) + > + >('CFStringCreateWithCharacters'); late final _CFStringCreateWithCharacters = _CFStringCreateWithCharactersPtr.asFunction< - CFStringRef Function(CFAllocatorRef, ffi.Pointer, int)>(); + CFStringRef Function(CFAllocatorRef, ffi.Pointer, int) + >(); CFStringRef CFStringCreateWithPascalStringNoCopy( CFAllocatorRef alloc, @@ -13448,17 +12927,26 @@ class NativeCupertinoHttp { ); } - late final _CFStringCreateWithPascalStringNoCopyPtr = _lookup< - ffi.NativeFunction< + late final _CFStringCreateWithPascalStringNoCopyPtr = + _lookup< + ffi.NativeFunction< CFStringRef Function( - CFAllocatorRef, - ConstStr255Param, - CFStringEncoding, - CFAllocatorRef)>>('CFStringCreateWithPascalStringNoCopy'); + CFAllocatorRef, + ConstStr255Param, + CFStringEncoding, + CFAllocatorRef, + ) + > + >('CFStringCreateWithPascalStringNoCopy'); late final _CFStringCreateWithPascalStringNoCopy = _CFStringCreateWithPascalStringNoCopyPtr.asFunction< - CFStringRef Function( - CFAllocatorRef, ConstStr255Param, int, CFAllocatorRef)>(); + CFStringRef Function( + CFAllocatorRef, + ConstStr255Param, + int, + CFAllocatorRef, + ) + >(); CFStringRef CFStringCreateWithCStringNoCopy( CFAllocatorRef alloc, @@ -13474,17 +12962,26 @@ class NativeCupertinoHttp { ); } - late final _CFStringCreateWithCStringNoCopyPtr = _lookup< - ffi.NativeFunction< + late final _CFStringCreateWithCStringNoCopyPtr = + _lookup< + ffi.NativeFunction< CFStringRef Function( - CFAllocatorRef, - ffi.Pointer, - CFStringEncoding, - CFAllocatorRef)>>('CFStringCreateWithCStringNoCopy'); + CFAllocatorRef, + ffi.Pointer, + CFStringEncoding, + CFAllocatorRef, + ) + > + >('CFStringCreateWithCStringNoCopy'); late final _CFStringCreateWithCStringNoCopy = _CFStringCreateWithCStringNoCopyPtr.asFunction< - CFStringRef Function( - CFAllocatorRef, ffi.Pointer, int, CFAllocatorRef)>(); + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + int, + CFAllocatorRef, + ) + >(); CFStringRef CFStringCreateWithBytesNoCopy( CFAllocatorRef alloc, @@ -13504,19 +13001,30 @@ class NativeCupertinoHttp { ); } - late final _CFStringCreateWithBytesNoCopyPtr = _lookup< - ffi.NativeFunction< + late final _CFStringCreateWithBytesNoCopyPtr = + _lookup< + ffi.NativeFunction< CFStringRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFStringEncoding, - Boolean, - CFAllocatorRef)>>('CFStringCreateWithBytesNoCopy'); + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + Boolean, + CFAllocatorRef, + ) + > + >('CFStringCreateWithBytesNoCopy'); late final _CFStringCreateWithBytesNoCopy = _CFStringCreateWithBytesNoCopyPtr.asFunction< - CFStringRef Function(CFAllocatorRef, ffi.Pointer, int, int, - int, CFAllocatorRef)>(); + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + int, + int, + int, + CFAllocatorRef, + ) + >(); CFStringRef CFStringCreateWithCharactersNoCopy( CFAllocatorRef alloc, @@ -13532,70 +13040,77 @@ class NativeCupertinoHttp { ); } - late final _CFStringCreateWithCharactersNoCopyPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, ffi.Pointer, CFIndex, - CFAllocatorRef)>>('CFStringCreateWithCharactersNoCopy'); + late final _CFStringCreateWithCharactersNoCopyPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFAllocatorRef, + ) + > + >('CFStringCreateWithCharactersNoCopy'); late final _CFStringCreateWithCharactersNoCopy = _CFStringCreateWithCharactersNoCopyPtr.asFunction< - CFStringRef Function( - CFAllocatorRef, ffi.Pointer, int, CFAllocatorRef)>(); + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + int, + CFAllocatorRef, + ) + >(); CFStringRef CFStringCreateWithSubstring( CFAllocatorRef alloc, CFStringRef str, CFRange range, ) { - return _CFStringCreateWithSubstring( - alloc, - str, - range, - ); + return _CFStringCreateWithSubstring(alloc, str, range); } - late final _CFStringCreateWithSubstringPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFStringRef, - CFRange)>>('CFStringCreateWithSubstring'); - late final _CFStringCreateWithSubstring = _CFStringCreateWithSubstringPtr - .asFunction(); + late final _CFStringCreateWithSubstringPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(CFAllocatorRef, CFStringRef, CFRange) + > + >('CFStringCreateWithSubstring'); + late final _CFStringCreateWithSubstring = + _CFStringCreateWithSubstringPtr.asFunction< + CFStringRef Function(CFAllocatorRef, CFStringRef, CFRange) + >(); - CFStringRef CFStringCreateCopy( - CFAllocatorRef alloc, - CFStringRef theString, - ) { - return _CFStringCreateCopy( - alloc, - theString, - ); + CFStringRef CFStringCreateCopy(CFAllocatorRef alloc, CFStringRef theString) { + return _CFStringCreateCopy(alloc, theString); } - late final _CFStringCreateCopyPtr = _lookup< - ffi - .NativeFunction>( - 'CFStringCreateCopy'); - late final _CFStringCreateCopy = _CFStringCreateCopyPtr.asFunction< - CFStringRef Function(CFAllocatorRef, CFStringRef)>(); + late final _CFStringCreateCopyPtr = + _lookup< + ffi.NativeFunction + >('CFStringCreateCopy'); + late final _CFStringCreateCopy = + _CFStringCreateCopyPtr.asFunction< + CFStringRef Function(CFAllocatorRef, CFStringRef) + >(); CFStringRef CFStringCreateWithFormat( CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef format, ) { - return _CFStringCreateWithFormat( - alloc, - formatOptions, - format, - ); + return _CFStringCreateWithFormat(alloc, formatOptions, format); } - late final _CFStringCreateWithFormatPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFDictionaryRef, - CFStringRef)>>('CFStringCreateWithFormat'); + late final _CFStringCreateWithFormatPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef) + > + >('CFStringCreateWithFormat'); late final _CFStringCreateWithFormat = _CFStringCreateWithFormatPtr.asFunction< - CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef)>(); + CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef) + >(); CFStringRef CFStringCreateWithFormatAndArguments( CFAllocatorRef alloc, @@ -13611,14 +13126,26 @@ class NativeCupertinoHttp { ); } - late final _CFStringCreateWithFormatAndArgumentsPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef, - va_list)>>('CFStringCreateWithFormatAndArguments'); + late final _CFStringCreateWithFormatAndArgumentsPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + CFDictionaryRef, + CFStringRef, + va_list, + ) + > + >('CFStringCreateWithFormatAndArguments'); late final _CFStringCreateWithFormatAndArguments = _CFStringCreateWithFormatAndArgumentsPtr.asFunction< - CFStringRef Function( - CFAllocatorRef, CFDictionaryRef, CFStringRef, va_list)>(); + CFStringRef Function( + CFAllocatorRef, + CFDictionaryRef, + CFStringRef, + va_list, + ) + >(); CFStringRef CFStringCreateStringWithValidatedFormat( CFAllocatorRef alloc, @@ -13636,15 +13163,28 @@ class NativeCupertinoHttp { ); } - late final _CFStringCreateStringWithValidatedFormatPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef, - CFStringRef, ffi.Pointer)>>( - 'CFStringCreateStringWithValidatedFormat'); + late final _CFStringCreateStringWithValidatedFormatPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + CFDictionaryRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) + > + >('CFStringCreateStringWithValidatedFormat'); late final _CFStringCreateStringWithValidatedFormat = _CFStringCreateStringWithValidatedFormatPtr.asFunction< - CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef, - CFStringRef, ffi.Pointer)>(); + CFStringRef Function( + CFAllocatorRef, + CFDictionaryRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) + >(); CFStringRef CFStringCreateStringWithValidatedFormatAndArguments( CFAllocatorRef alloc, @@ -13664,52 +13204,65 @@ class NativeCupertinoHttp { ); } - late final _CFStringCreateStringWithValidatedFormatAndArgumentsPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef, - CFStringRef, va_list, ffi.Pointer)>>( - 'CFStringCreateStringWithValidatedFormatAndArguments'); + late final _CFStringCreateStringWithValidatedFormatAndArgumentsPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + CFDictionaryRef, + CFStringRef, + CFStringRef, + va_list, + ffi.Pointer, + ) + > + >('CFStringCreateStringWithValidatedFormatAndArguments'); late final _CFStringCreateStringWithValidatedFormatAndArguments = _CFStringCreateStringWithValidatedFormatAndArgumentsPtr.asFunction< - CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef, - CFStringRef, va_list, ffi.Pointer)>(); + CFStringRef Function( + CFAllocatorRef, + CFDictionaryRef, + CFStringRef, + CFStringRef, + va_list, + ffi.Pointer, + ) + >(); CFMutableStringRef CFStringCreateMutable( CFAllocatorRef alloc, int maxLength, ) { - return _CFStringCreateMutable( - alloc, - maxLength, - ); + return _CFStringCreateMutable(alloc, maxLength); } - late final _CFStringCreateMutablePtr = _lookup< - ffi.NativeFunction< - CFMutableStringRef Function( - CFAllocatorRef, CFIndex)>>('CFStringCreateMutable'); - late final _CFStringCreateMutable = _CFStringCreateMutablePtr.asFunction< - CFMutableStringRef Function(CFAllocatorRef, int)>(); + late final _CFStringCreateMutablePtr = + _lookup< + ffi.NativeFunction + >('CFStringCreateMutable'); + late final _CFStringCreateMutable = + _CFStringCreateMutablePtr.asFunction< + CFMutableStringRef Function(CFAllocatorRef, int) + >(); CFMutableStringRef CFStringCreateMutableCopy( CFAllocatorRef alloc, int maxLength, CFStringRef theString, ) { - return _CFStringCreateMutableCopy( - alloc, - maxLength, - theString, - ); + return _CFStringCreateMutableCopy(alloc, maxLength, theString); } - late final _CFStringCreateMutableCopyPtr = _lookup< - ffi.NativeFunction< - CFMutableStringRef Function(CFAllocatorRef, CFIndex, - CFStringRef)>>('CFStringCreateMutableCopy'); + late final _CFStringCreateMutableCopyPtr = + _lookup< + ffi.NativeFunction< + CFMutableStringRef Function(CFAllocatorRef, CFIndex, CFStringRef) + > + >('CFStringCreateMutableCopy'); late final _CFStringCreateMutableCopy = _CFStringCreateMutableCopyPtr.asFunction< - CFMutableStringRef Function(CFAllocatorRef, int, CFStringRef)>(); + CFMutableStringRef Function(CFAllocatorRef, int, CFStringRef) + >(); CFMutableStringRef CFStringCreateMutableWithExternalCharactersNoCopy( CFAllocatorRef alloc, @@ -13727,64 +13280,71 @@ class NativeCupertinoHttp { ); } - late final _CFStringCreateMutableWithExternalCharactersNoCopyPtr = _lookup< - ffi.NativeFunction< - CFMutableStringRef Function(CFAllocatorRef, ffi.Pointer, - CFIndex, CFIndex, CFAllocatorRef)>>( - 'CFStringCreateMutableWithExternalCharactersNoCopy'); + late final _CFStringCreateMutableWithExternalCharactersNoCopyPtr = + _lookup< + ffi.NativeFunction< + CFMutableStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFIndex, + CFAllocatorRef, + ) + > + >('CFStringCreateMutableWithExternalCharactersNoCopy'); late final _CFStringCreateMutableWithExternalCharactersNoCopy = _CFStringCreateMutableWithExternalCharactersNoCopyPtr.asFunction< - CFMutableStringRef Function(CFAllocatorRef, ffi.Pointer, int, - int, CFAllocatorRef)>(); + CFMutableStringRef Function( + CFAllocatorRef, + ffi.Pointer, + int, + int, + CFAllocatorRef, + ) + >(); - int CFStringGetLength( - CFStringRef theString, - ) { - return _CFStringGetLength( - theString, - ); + int CFStringGetLength(CFStringRef theString) { + return _CFStringGetLength(theString); } late final _CFStringGetLengthPtr = _lookup>( - 'CFStringGetLength'); + 'CFStringGetLength', + ); late final _CFStringGetLength = _CFStringGetLengthPtr.asFunction(); - int CFStringGetCharacterAtIndex( - CFStringRef theString, - int idx, - ) { - return _CFStringGetCharacterAtIndex( - theString, - idx, - ); + int CFStringGetCharacterAtIndex(CFStringRef theString, int idx) { + return _CFStringGetCharacterAtIndex(theString, idx); } late final _CFStringGetCharacterAtIndexPtr = _lookup>( - 'CFStringGetCharacterAtIndex'); - late final _CFStringGetCharacterAtIndex = _CFStringGetCharacterAtIndexPtr - .asFunction(); + 'CFStringGetCharacterAtIndex', + ); + late final _CFStringGetCharacterAtIndex = + _CFStringGetCharacterAtIndexPtr.asFunction< + int Function(CFStringRef, int) + >(); void CFStringGetCharacters( CFStringRef theString, CFRange range, ffi.Pointer buffer, ) { - return _CFStringGetCharacters( - theString, - range, - buffer, - ); + return _CFStringGetCharacters(theString, range, buffer); } - late final _CFStringGetCharactersPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFStringRef, CFRange, - ffi.Pointer)>>('CFStringGetCharacters'); - late final _CFStringGetCharacters = _CFStringGetCharactersPtr.asFunction< - void Function(CFStringRef, CFRange, ffi.Pointer)>(); + late final _CFStringGetCharactersPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFStringRef, CFRange, ffi.Pointer) + > + >('CFStringGetCharacters'); + late final _CFStringGetCharacters = + _CFStringGetCharactersPtr.asFunction< + void Function(CFStringRef, CFRange, ffi.Pointer) + >(); int CFStringGetPascalString( CFStringRef theString, @@ -13792,20 +13352,19 @@ class NativeCupertinoHttp { int bufferSize, int encoding, ) { - return _CFStringGetPascalString( - theString, - buffer, - bufferSize, - encoding, - ); + return _CFStringGetPascalString(theString, buffer, bufferSize, encoding); } - late final _CFStringGetPascalStringPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFStringRef, StringPtr, CFIndex, - CFStringEncoding)>>('CFStringGetPascalString'); - late final _CFStringGetPascalString = _CFStringGetPascalStringPtr.asFunction< - int Function(CFStringRef, StringPtr, int, int)>(); + late final _CFStringGetPascalStringPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFStringRef, StringPtr, CFIndex, CFStringEncoding) + > + >('CFStringGetPascalString'); + late final _CFStringGetPascalString = + _CFStringGetPascalStringPtr.asFunction< + int Function(CFStringRef, StringPtr, int, int) + >(); int CFStringGetCString( CFStringRef theString, @@ -13813,68 +13372,73 @@ class NativeCupertinoHttp { int bufferSize, int encoding, ) { - return _CFStringGetCString( - theString, - buffer, - bufferSize, - encoding, - ); + return _CFStringGetCString(theString, buffer, bufferSize, encoding); } - late final _CFStringGetCStringPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFStringRef, ffi.Pointer, CFIndex, - CFStringEncoding)>>('CFStringGetCString'); - late final _CFStringGetCString = _CFStringGetCStringPtr.asFunction< - int Function(CFStringRef, ffi.Pointer, int, int)>(); + late final _CFStringGetCStringPtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFStringRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + ) + > + >('CFStringGetCString'); + late final _CFStringGetCString = + _CFStringGetCStringPtr.asFunction< + int Function(CFStringRef, ffi.Pointer, int, int) + >(); ConstStringPtr CFStringGetPascalStringPtr( CFStringRef theString, int encoding, ) { - return _CFStringGetPascalStringPtr$1( - theString, - encoding, - ); + return _CFStringGetPascalStringPtr$1(theString, encoding); } - late final _CFStringGetPascalStringPtrPtr = _lookup< - ffi.NativeFunction< - ConstStringPtr Function( - CFStringRef, CFStringEncoding)>>('CFStringGetPascalStringPtr'); - late final _CFStringGetPascalStringPtr$1 = _CFStringGetPascalStringPtrPtr - .asFunction(); + late final _CFStringGetPascalStringPtrPtr = + _lookup< + ffi.NativeFunction< + ConstStringPtr Function(CFStringRef, CFStringEncoding) + > + >('CFStringGetPascalStringPtr'); + late final _CFStringGetPascalStringPtr$1 = + _CFStringGetPascalStringPtrPtr.asFunction< + ConstStringPtr Function(CFStringRef, int) + >(); ffi.Pointer CFStringGetCStringPtr( CFStringRef theString, int encoding, ) { - return _CFStringGetCStringPtr$1( - theString, - encoding, - ); + return _CFStringGetCStringPtr$1(theString, encoding); } - late final _CFStringGetCStringPtrPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CFStringRef, CFStringEncoding)>>('CFStringGetCStringPtr'); - late final _CFStringGetCStringPtr$1 = _CFStringGetCStringPtrPtr.asFunction< - ffi.Pointer Function(CFStringRef, int)>(); + late final _CFStringGetCStringPtrPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CFStringRef, CFStringEncoding) + > + >('CFStringGetCStringPtr'); + late final _CFStringGetCStringPtr$1 = + _CFStringGetCStringPtrPtr.asFunction< + ffi.Pointer Function(CFStringRef, int) + >(); - ffi.Pointer CFStringGetCharactersPtr( - CFStringRef theString, - ) { - return _CFStringGetCharactersPtr$1( - theString, - ); + ffi.Pointer CFStringGetCharactersPtr(CFStringRef theString) { + return _CFStringGetCharactersPtr$1(theString); } late final _CFStringGetCharactersPtrPtr = _lookup Function(CFStringRef)>>( - 'CFStringGetCharactersPtr'); - late final _CFStringGetCharactersPtr$1 = _CFStringGetCharactersPtrPtr - .asFunction Function(CFStringRef)>(); + 'CFStringGetCharactersPtr', + ); + late final _CFStringGetCharactersPtr$1 = + _CFStringGetCharactersPtrPtr.asFunction< + ffi.Pointer Function(CFStringRef) + >(); int CFStringGetBytes( CFStringRef theString, @@ -13898,40 +13462,53 @@ class NativeCupertinoHttp { ); } - late final _CFStringGetBytesPtr = _lookup< - ffi.NativeFunction< + late final _CFStringGetBytesPtr = + _lookup< + ffi.NativeFunction< CFIndex Function( - CFStringRef, - CFRange, - CFStringEncoding, - UInt8, - Boolean, - ffi.Pointer, - CFIndex, - ffi.Pointer)>>('CFStringGetBytes'); - late final _CFStringGetBytes = _CFStringGetBytesPtr.asFunction< - int Function(CFStringRef, CFRange, int, int, int, ffi.Pointer, int, - ffi.Pointer)>(); + CFStringRef, + CFRange, + CFStringEncoding, + UInt8, + Boolean, + ffi.Pointer, + CFIndex, + ffi.Pointer, + ) + > + >('CFStringGetBytes'); + late final _CFStringGetBytes = + _CFStringGetBytesPtr.asFunction< + int Function( + CFStringRef, + CFRange, + int, + int, + int, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); CFStringRef CFStringCreateFromExternalRepresentation( CFAllocatorRef alloc, CFDataRef data, int encoding, ) { - return _CFStringCreateFromExternalRepresentation( - alloc, - data, - encoding, - ); + return _CFStringCreateFromExternalRepresentation(alloc, data, encoding); } - late final _CFStringCreateFromExternalRepresentationPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFDataRef, - CFStringEncoding)>>('CFStringCreateFromExternalRepresentation'); + late final _CFStringCreateFromExternalRepresentationPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(CFAllocatorRef, CFDataRef, CFStringEncoding) + > + >('CFStringCreateFromExternalRepresentation'); late final _CFStringCreateFromExternalRepresentation = _CFStringCreateFromExternalRepresentationPtr.asFunction< - CFStringRef Function(CFAllocatorRef, CFDataRef, int)>(); + CFStringRef Function(CFAllocatorRef, CFDataRef, int) + >(); CFDataRef CFStringCreateExternalRepresentation( CFAllocatorRef alloc, @@ -13947,39 +13524,41 @@ class NativeCupertinoHttp { ); } - late final _CFStringCreateExternalRepresentationPtr = _lookup< - ffi.NativeFunction< - CFDataRef Function(CFAllocatorRef, CFStringRef, CFStringEncoding, - UInt8)>>('CFStringCreateExternalRepresentation'); + late final _CFStringCreateExternalRepresentationPtr = + _lookup< + ffi.NativeFunction< + CFDataRef Function( + CFAllocatorRef, + CFStringRef, + CFStringEncoding, + UInt8, + ) + > + >('CFStringCreateExternalRepresentation'); late final _CFStringCreateExternalRepresentation = _CFStringCreateExternalRepresentationPtr.asFunction< - CFDataRef Function(CFAllocatorRef, CFStringRef, int, int)>(); + CFDataRef Function(CFAllocatorRef, CFStringRef, int, int) + >(); - int CFStringGetSmallestEncoding( - CFStringRef theString, - ) { - return _CFStringGetSmallestEncoding( - theString, - ); + int CFStringGetSmallestEncoding(CFStringRef theString) { + return _CFStringGetSmallestEncoding(theString); } late final _CFStringGetSmallestEncodingPtr = _lookup>( - 'CFStringGetSmallestEncoding'); + 'CFStringGetSmallestEncoding', + ); late final _CFStringGetSmallestEncoding = _CFStringGetSmallestEncodingPtr.asFunction(); - int CFStringGetFastestEncoding( - CFStringRef theString, - ) { - return _CFStringGetFastestEncoding( - theString, - ); + int CFStringGetFastestEncoding(CFStringRef theString) { + return _CFStringGetFastestEncoding(theString); } late final _CFStringGetFastestEncodingPtr = _lookup>( - 'CFStringGetFastestEncoding'); + 'CFStringGetFastestEncoding', + ); late final _CFStringGetFastestEncoding = _CFStringGetFastestEncodingPtr.asFunction(); @@ -13989,79 +13568,73 @@ class NativeCupertinoHttp { late final _CFStringGetSystemEncodingPtr = _lookup>( - 'CFStringGetSystemEncoding'); + 'CFStringGetSystemEncoding', + ); late final _CFStringGetSystemEncoding = _CFStringGetSystemEncodingPtr.asFunction(); - int CFStringGetMaximumSizeForEncoding( - int length, - int encoding, - ) { - return _CFStringGetMaximumSizeForEncoding( - length, - encoding, - ); + int CFStringGetMaximumSizeForEncoding(int length, int encoding) { + return _CFStringGetMaximumSizeForEncoding(length, encoding); } late final _CFStringGetMaximumSizeForEncodingPtr = _lookup>( - 'CFStringGetMaximumSizeForEncoding'); + 'CFStringGetMaximumSizeForEncoding', + ); late final _CFStringGetMaximumSizeForEncoding = _CFStringGetMaximumSizeForEncodingPtr.asFunction< - int Function(int, int)>(); + int Function(int, int) + >(); int CFStringGetFileSystemRepresentation( CFStringRef string, ffi.Pointer buffer, int maxBufLen, ) { - return _CFStringGetFileSystemRepresentation( - string, - buffer, - maxBufLen, - ); + return _CFStringGetFileSystemRepresentation(string, buffer, maxBufLen); } - late final _CFStringGetFileSystemRepresentationPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFStringRef, ffi.Pointer, - CFIndex)>>('CFStringGetFileSystemRepresentation'); + late final _CFStringGetFileSystemRepresentationPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFStringRef, ffi.Pointer, CFIndex) + > + >('CFStringGetFileSystemRepresentation'); late final _CFStringGetFileSystemRepresentation = _CFStringGetFileSystemRepresentationPtr.asFunction< - int Function(CFStringRef, ffi.Pointer, int)>(); + int Function(CFStringRef, ffi.Pointer, int) + >(); - int CFStringGetMaximumSizeOfFileSystemRepresentation( - CFStringRef string, - ) { - return _CFStringGetMaximumSizeOfFileSystemRepresentation( - string, - ); + int CFStringGetMaximumSizeOfFileSystemRepresentation(CFStringRef string) { + return _CFStringGetMaximumSizeOfFileSystemRepresentation(string); } late final _CFStringGetMaximumSizeOfFileSystemRepresentationPtr = _lookup>( - 'CFStringGetMaximumSizeOfFileSystemRepresentation'); + 'CFStringGetMaximumSizeOfFileSystemRepresentation', + ); late final _CFStringGetMaximumSizeOfFileSystemRepresentation = _CFStringGetMaximumSizeOfFileSystemRepresentationPtr.asFunction< - int Function(CFStringRef)>(); + int Function(CFStringRef) + >(); CFStringRef CFStringCreateWithFileSystemRepresentation( CFAllocatorRef alloc, ffi.Pointer buffer, ) { - return _CFStringCreateWithFileSystemRepresentation( - alloc, - buffer, - ); + return _CFStringCreateWithFileSystemRepresentation(alloc, buffer); } - late final _CFStringCreateWithFileSystemRepresentationPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, ffi.Pointer)>>( - 'CFStringCreateWithFileSystemRepresentation'); + late final _CFStringCreateWithFileSystemRepresentationPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(CFAllocatorRef, ffi.Pointer) + > + >('CFStringCreateWithFileSystemRepresentation'); late final _CFStringCreateWithFileSystemRepresentation = _CFStringCreateWithFileSystemRepresentationPtr.asFunction< - CFStringRef Function(CFAllocatorRef, ffi.Pointer)>(); + CFStringRef Function(CFAllocatorRef, ffi.Pointer) + >(); CFComparisonResult CFStringCompareWithOptionsAndLocale( CFStringRef theString1, @@ -14070,22 +13643,33 @@ class NativeCupertinoHttp { CFStringCompareFlags compareOptions, CFLocaleRef locale, ) { - return CFComparisonResult.fromValue(_CFStringCompareWithOptionsAndLocale( - theString1, - theString2, - rangeToCompare, - compareOptions.value, - locale, - )); + return CFComparisonResult.fromValue( + _CFStringCompareWithOptionsAndLocale( + theString1, + theString2, + rangeToCompare, + compareOptions.value, + locale, + ), + ); } - late final _CFStringCompareWithOptionsAndLocalePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFStringRef, CFStringRef, CFRange, CFOptionFlags, - CFLocaleRef)>>('CFStringCompareWithOptionsAndLocale'); + late final _CFStringCompareWithOptionsAndLocalePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function( + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + CFLocaleRef, + ) + > + >('CFStringCompareWithOptionsAndLocale'); late final _CFStringCompareWithOptionsAndLocale = _CFStringCompareWithOptionsAndLocalePtr.asFunction< - int Function(CFStringRef, CFStringRef, CFRange, int, CFLocaleRef)>(); + int Function(CFStringRef, CFStringRef, CFRange, int, CFLocaleRef) + >(); CFComparisonResult CFStringCompareWithOptions( CFStringRef theString1, @@ -14093,39 +13677,47 @@ class NativeCupertinoHttp { CFRange rangeToCompare, CFStringCompareFlags compareOptions, ) { - return CFComparisonResult.fromValue(_CFStringCompareWithOptions( - theString1, - theString2, - rangeToCompare, - compareOptions.value, - )); + return CFComparisonResult.fromValue( + _CFStringCompareWithOptions( + theString1, + theString2, + rangeToCompare, + compareOptions.value, + ), + ); } - late final _CFStringCompareWithOptionsPtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFStringRef, CFStringRef, CFRange, - CFOptionFlags)>>('CFStringCompareWithOptions'); - late final _CFStringCompareWithOptions = _CFStringCompareWithOptionsPtr - .asFunction(); + late final _CFStringCompareWithOptionsPtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFStringRef, CFStringRef, CFRange, CFOptionFlags) + > + >('CFStringCompareWithOptions'); + late final _CFStringCompareWithOptions = + _CFStringCompareWithOptionsPtr.asFunction< + int Function(CFStringRef, CFStringRef, CFRange, int) + >(); CFComparisonResult CFStringCompare( CFStringRef theString1, CFStringRef theString2, CFStringCompareFlags compareOptions, ) { - return CFComparisonResult.fromValue(_CFStringCompare( - theString1, - theString2, - compareOptions.value, - )); + return CFComparisonResult.fromValue( + _CFStringCompare(theString1, theString2, compareOptions.value), + ); } - late final _CFStringComparePtr = _lookup< - ffi.NativeFunction< - CFIndex Function( - CFStringRef, CFStringRef, CFOptionFlags)>>('CFStringCompare'); - late final _CFStringCompare = _CFStringComparePtr.asFunction< - int Function(CFStringRef, CFStringRef, int)>(); + late final _CFStringComparePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFStringRef, CFStringRef, CFOptionFlags) + > + >('CFStringCompare'); + late final _CFStringCompare = + _CFStringComparePtr.asFunction< + int Function(CFStringRef, CFStringRef, int) + >(); DartBoolean CFStringFindWithOptionsAndLocale( CFStringRef theString, @@ -14145,19 +13737,30 @@ class NativeCupertinoHttp { ); } - late final _CFStringFindWithOptionsAndLocalePtr = _lookup< - ffi.NativeFunction< + late final _CFStringFindWithOptionsAndLocalePtr = + _lookup< + ffi.NativeFunction< Boolean Function( - CFStringRef, - CFStringRef, - CFRange, - CFOptionFlags, - CFLocaleRef, - ffi.Pointer)>>('CFStringFindWithOptionsAndLocale'); + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + CFLocaleRef, + ffi.Pointer, + ) + > + >('CFStringFindWithOptionsAndLocale'); late final _CFStringFindWithOptionsAndLocale = _CFStringFindWithOptionsAndLocalePtr.asFunction< - int Function(CFStringRef, CFStringRef, CFRange, int, CFLocaleRef, - ffi.Pointer)>(); + int Function( + CFStringRef, + CFStringRef, + CFRange, + int, + CFLocaleRef, + ffi.Pointer, + ) + >(); DartBoolean CFStringFindWithOptions( CFStringRef theString, @@ -14175,13 +13778,28 @@ class NativeCupertinoHttp { ); } - late final _CFStringFindWithOptionsPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFStringRef, CFStringRef, CFRange, CFOptionFlags, - ffi.Pointer)>>('CFStringFindWithOptions'); - late final _CFStringFindWithOptions = _CFStringFindWithOptionsPtr.asFunction< - int Function( - CFStringRef, CFStringRef, CFRange, int, ffi.Pointer)>(); + late final _CFStringFindWithOptionsPtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + ffi.Pointer, + ) + > + >('CFStringFindWithOptions'); + late final _CFStringFindWithOptions = + _CFStringFindWithOptionsPtr.asFunction< + int Function( + CFStringRef, + CFStringRef, + CFRange, + int, + ffi.Pointer, + ) + >(); CFArrayRef CFStringCreateArrayWithFindResults( CFAllocatorRef alloc, @@ -14199,82 +13817,89 @@ class NativeCupertinoHttp { ); } - late final _CFStringCreateArrayWithFindResultsPtr = _lookup< - ffi.NativeFunction< - CFArrayRef Function(CFAllocatorRef, CFStringRef, CFStringRef, CFRange, - CFOptionFlags)>>('CFStringCreateArrayWithFindResults'); + late final _CFStringCreateArrayWithFindResultsPtr = + _lookup< + ffi.NativeFunction< + CFArrayRef Function( + CFAllocatorRef, + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + ) + > + >('CFStringCreateArrayWithFindResults'); late final _CFStringCreateArrayWithFindResults = _CFStringCreateArrayWithFindResultsPtr.asFunction< - CFArrayRef Function( - CFAllocatorRef, CFStringRef, CFStringRef, CFRange, int)>(); + CFArrayRef Function( + CFAllocatorRef, + CFStringRef, + CFStringRef, + CFRange, + int, + ) + >(); CFRange CFStringFind( CFStringRef theString, CFStringRef stringToFind, CFStringCompareFlags compareOptions, ) { - return _CFStringFind( - theString, - stringToFind, - compareOptions.value, - ); + return _CFStringFind(theString, stringToFind, compareOptions.value); } - late final _CFStringFindPtr = _lookup< - ffi.NativeFunction< - CFRange Function( - CFStringRef, CFStringRef, CFOptionFlags)>>('CFStringFind'); - late final _CFStringFind = _CFStringFindPtr.asFunction< - CFRange Function(CFStringRef, CFStringRef, int)>(); + late final _CFStringFindPtr = + _lookup< + ffi.NativeFunction< + CFRange Function(CFStringRef, CFStringRef, CFOptionFlags) + > + >('CFStringFind'); + late final _CFStringFind = + _CFStringFindPtr.asFunction< + CFRange Function(CFStringRef, CFStringRef, int) + >(); - int CFStringHasPrefix( - CFStringRef theString, - CFStringRef prefix, - ) { - return _CFStringHasPrefix( - theString, - prefix, - ); + int CFStringHasPrefix(CFStringRef theString, CFStringRef prefix) { + return _CFStringHasPrefix(theString, prefix); } late final _CFStringHasPrefixPtr = _lookup>( - 'CFStringHasPrefix'); - late final _CFStringHasPrefix = _CFStringHasPrefixPtr.asFunction< - int Function(CFStringRef, CFStringRef)>(); + 'CFStringHasPrefix', + ); + late final _CFStringHasPrefix = + _CFStringHasPrefixPtr.asFunction< + int Function(CFStringRef, CFStringRef) + >(); - int CFStringHasSuffix( - CFStringRef theString, - CFStringRef suffix, - ) { - return _CFStringHasSuffix( - theString, - suffix, - ); + int CFStringHasSuffix(CFStringRef theString, CFStringRef suffix) { + return _CFStringHasSuffix(theString, suffix); } late final _CFStringHasSuffixPtr = _lookup>( - 'CFStringHasSuffix'); - late final _CFStringHasSuffix = _CFStringHasSuffixPtr.asFunction< - int Function(CFStringRef, CFStringRef)>(); + 'CFStringHasSuffix', + ); + late final _CFStringHasSuffix = + _CFStringHasSuffixPtr.asFunction< + int Function(CFStringRef, CFStringRef) + >(); CFRange CFStringGetRangeOfComposedCharactersAtIndex( CFStringRef theString, int theIndex, ) { - return _CFStringGetRangeOfComposedCharactersAtIndex( - theString, - theIndex, - ); + return _CFStringGetRangeOfComposedCharactersAtIndex(theString, theIndex); } late final _CFStringGetRangeOfComposedCharactersAtIndexPtr = _lookup>( - 'CFStringGetRangeOfComposedCharactersAtIndex'); + 'CFStringGetRangeOfComposedCharactersAtIndex', + ); late final _CFStringGetRangeOfComposedCharactersAtIndex = _CFStringGetRangeOfComposedCharactersAtIndexPtr.asFunction< - CFRange Function(CFStringRef, int)>(); + CFRange Function(CFStringRef, int) + >(); DartBoolean CFStringFindCharacterFromSet( CFStringRef theString, @@ -14292,18 +13917,28 @@ class NativeCupertinoHttp { ); } - late final _CFStringFindCharacterFromSetPtr = _lookup< - ffi.NativeFunction< + late final _CFStringFindCharacterFromSetPtr = + _lookup< + ffi.NativeFunction< Boolean Function( - CFStringRef, - CFCharacterSetRef, - CFRange, - CFOptionFlags, - ffi.Pointer)>>('CFStringFindCharacterFromSet'); + CFStringRef, + CFCharacterSetRef, + CFRange, + CFOptionFlags, + ffi.Pointer, + ) + > + >('CFStringFindCharacterFromSet'); late final _CFStringFindCharacterFromSet = _CFStringFindCharacterFromSetPtr.asFunction< - int Function(CFStringRef, CFCharacterSetRef, CFRange, int, - ffi.Pointer)>(); + int Function( + CFStringRef, + CFCharacterSetRef, + CFRange, + int, + ffi.Pointer, + ) + >(); void CFStringGetLineBounds( CFStringRef theString, @@ -14321,17 +13956,28 @@ class NativeCupertinoHttp { ); } - late final _CFStringGetLineBoundsPtr = _lookup< - ffi.NativeFunction< + late final _CFStringGetLineBoundsPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - CFStringRef, - CFRange, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('CFStringGetLineBounds'); - late final _CFStringGetLineBounds = _CFStringGetLineBoundsPtr.asFunction< - void Function(CFStringRef, CFRange, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + CFStringRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFStringGetLineBounds'); + late final _CFStringGetLineBounds = + _CFStringGetLineBoundsPtr.asFunction< + void Function( + CFStringRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); void CFStringGetParagraphBounds( CFStringRef string, @@ -14349,18 +13995,28 @@ class NativeCupertinoHttp { ); } - late final _CFStringGetParagraphBoundsPtr = _lookup< - ffi.NativeFunction< + late final _CFStringGetParagraphBoundsPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - CFStringRef, - CFRange, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('CFStringGetParagraphBounds'); + CFStringRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFStringGetParagraphBounds'); late final _CFStringGetParagraphBounds = _CFStringGetParagraphBoundsPtr.asFunction< - void Function(CFStringRef, CFRange, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + CFStringRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); int CFStringGetHyphenationLocationBeforeIndex( CFStringRef string, @@ -14380,50 +14036,62 @@ class NativeCupertinoHttp { ); } - late final _CFStringGetHyphenationLocationBeforeIndexPtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFStringRef, CFIndex, CFRange, CFOptionFlags, - CFLocaleRef, ffi.Pointer)>>( - 'CFStringGetHyphenationLocationBeforeIndex'); + late final _CFStringGetHyphenationLocationBeforeIndexPtr = + _lookup< + ffi.NativeFunction< + CFIndex Function( + CFStringRef, + CFIndex, + CFRange, + CFOptionFlags, + CFLocaleRef, + ffi.Pointer, + ) + > + >('CFStringGetHyphenationLocationBeforeIndex'); late final _CFStringGetHyphenationLocationBeforeIndex = _CFStringGetHyphenationLocationBeforeIndexPtr.asFunction< - int Function(CFStringRef, int, CFRange, int, CFLocaleRef, - ffi.Pointer)>(); + int Function( + CFStringRef, + int, + CFRange, + int, + CFLocaleRef, + ffi.Pointer, + ) + >(); - int CFStringIsHyphenationAvailableForLocale( - CFLocaleRef locale, - ) { - return _CFStringIsHyphenationAvailableForLocale( - locale, - ); + int CFStringIsHyphenationAvailableForLocale(CFLocaleRef locale) { + return _CFStringIsHyphenationAvailableForLocale(locale); } late final _CFStringIsHyphenationAvailableForLocalePtr = _lookup>( - 'CFStringIsHyphenationAvailableForLocale'); + 'CFStringIsHyphenationAvailableForLocale', + ); late final _CFStringIsHyphenationAvailableForLocale = _CFStringIsHyphenationAvailableForLocalePtr.asFunction< - int Function(CFLocaleRef)>(); + int Function(CFLocaleRef) + >(); CFStringRef CFStringCreateByCombiningStrings( CFAllocatorRef alloc, CFArrayRef theArray, CFStringRef separatorString, ) { - return _CFStringCreateByCombiningStrings( - alloc, - theArray, - separatorString, - ); + return _CFStringCreateByCombiningStrings(alloc, theArray, separatorString); } - late final _CFStringCreateByCombiningStringsPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFArrayRef, - CFStringRef)>>('CFStringCreateByCombiningStrings'); + late final _CFStringCreateByCombiningStringsPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(CFAllocatorRef, CFArrayRef, CFStringRef) + > + >('CFStringCreateByCombiningStrings'); late final _CFStringCreateByCombiningStrings = _CFStringCreateByCombiningStringsPtr.asFunction< - CFStringRef Function(CFAllocatorRef, CFArrayRef, CFStringRef)>(); + CFStringRef Function(CFAllocatorRef, CFArrayRef, CFStringRef) + >(); CFArrayRef CFStringCreateArrayBySeparatingStrings( CFAllocatorRef alloc, @@ -14437,39 +14105,36 @@ class NativeCupertinoHttp { ); } - late final _CFStringCreateArrayBySeparatingStringsPtr = _lookup< - ffi.NativeFunction< - CFArrayRef Function(CFAllocatorRef, CFStringRef, - CFStringRef)>>('CFStringCreateArrayBySeparatingStrings'); + late final _CFStringCreateArrayBySeparatingStringsPtr = + _lookup< + ffi.NativeFunction< + CFArrayRef Function(CFAllocatorRef, CFStringRef, CFStringRef) + > + >('CFStringCreateArrayBySeparatingStrings'); late final _CFStringCreateArrayBySeparatingStrings = _CFStringCreateArrayBySeparatingStringsPtr.asFunction< - CFArrayRef Function(CFAllocatorRef, CFStringRef, CFStringRef)>(); + CFArrayRef Function(CFAllocatorRef, CFStringRef, CFStringRef) + >(); - int CFStringGetIntValue( - CFStringRef str, - ) { - return _CFStringGetIntValue( - str, - ); + int CFStringGetIntValue(CFStringRef str) { + return _CFStringGetIntValue(str); } late final _CFStringGetIntValuePtr = _lookup>( - 'CFStringGetIntValue'); + 'CFStringGetIntValue', + ); late final _CFStringGetIntValue = _CFStringGetIntValuePtr.asFunction(); - double CFStringGetDoubleValue( - CFStringRef str, - ) { - return _CFStringGetDoubleValue( - str, - ); + double CFStringGetDoubleValue(CFStringRef str) { + return _CFStringGetDoubleValue(str); } late final _CFStringGetDoubleValuePtr = _lookup>( - 'CFStringGetDoubleValue'); + 'CFStringGetDoubleValue', + ); late final _CFStringGetDoubleValue = _CFStringGetDoubleValuePtr.asFunction(); @@ -14477,95 +14142,101 @@ class NativeCupertinoHttp { CFMutableStringRef theString, CFStringRef appendedString, ) { - return _CFStringAppend( - theString, - appendedString, - ); + return _CFStringAppend(theString, appendedString); } - late final _CFStringAppendPtr = _lookup< - ffi - .NativeFunction>( - 'CFStringAppend'); - late final _CFStringAppend = _CFStringAppendPtr.asFunction< - void Function(CFMutableStringRef, CFStringRef)>(); + late final _CFStringAppendPtr = + _lookup< + ffi.NativeFunction + >('CFStringAppend'); + late final _CFStringAppend = + _CFStringAppendPtr.asFunction< + void Function(CFMutableStringRef, CFStringRef) + >(); void CFStringAppendCharacters( CFMutableStringRef theString, ffi.Pointer chars, int numChars, ) { - return _CFStringAppendCharacters( - theString, - chars, - numChars, - ); + return _CFStringAppendCharacters(theString, chars, numChars); } - late final _CFStringAppendCharactersPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableStringRef, ffi.Pointer, - CFIndex)>>('CFStringAppendCharacters'); + late final _CFStringAppendCharactersPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFIndex) + > + >('CFStringAppendCharacters'); late final _CFStringAppendCharacters = _CFStringAppendCharactersPtr.asFunction< - void Function(CFMutableStringRef, ffi.Pointer, int)>(); + void Function(CFMutableStringRef, ffi.Pointer, int) + >(); void CFStringAppendPascalString( CFMutableStringRef theString, ConstStr255Param pStr, int encoding, ) { - return _CFStringAppendPascalString( - theString, - pStr, - encoding, - ); + return _CFStringAppendPascalString(theString, pStr, encoding); } - late final _CFStringAppendPascalStringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableStringRef, ConstStr255Param, - CFStringEncoding)>>('CFStringAppendPascalString'); - late final _CFStringAppendPascalString = _CFStringAppendPascalStringPtr - .asFunction(); + late final _CFStringAppendPascalStringPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFMutableStringRef, + ConstStr255Param, + CFStringEncoding, + ) + > + >('CFStringAppendPascalString'); + late final _CFStringAppendPascalString = + _CFStringAppendPascalStringPtr.asFunction< + void Function(CFMutableStringRef, ConstStr255Param, int) + >(); void CFStringAppendCString( CFMutableStringRef theString, ffi.Pointer cStr, int encoding, ) { - return _CFStringAppendCString( - theString, - cStr, - encoding, - ); + return _CFStringAppendCString(theString, cStr, encoding); } - late final _CFStringAppendCStringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableStringRef, ffi.Pointer, - CFStringEncoding)>>('CFStringAppendCString'); - late final _CFStringAppendCString = _CFStringAppendCStringPtr.asFunction< - void Function(CFMutableStringRef, ffi.Pointer, int)>(); + late final _CFStringAppendCStringPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFMutableStringRef, + ffi.Pointer, + CFStringEncoding, + ) + > + >('CFStringAppendCString'); + late final _CFStringAppendCString = + _CFStringAppendCStringPtr.asFunction< + void Function(CFMutableStringRef, ffi.Pointer, int) + >(); void CFStringAppendFormat( CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef format, ) { - return _CFStringAppendFormat( - theString, - formatOptions, - format, - ); + return _CFStringAppendFormat(theString, formatOptions, format); } - late final _CFStringAppendFormatPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableStringRef, CFDictionaryRef, - CFStringRef)>>('CFStringAppendFormat'); - late final _CFStringAppendFormat = _CFStringAppendFormatPtr.asFunction< - void Function(CFMutableStringRef, CFDictionaryRef, CFStringRef)>(); + late final _CFStringAppendFormatPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableStringRef, CFDictionaryRef, CFStringRef) + > + >('CFStringAppendFormat'); + late final _CFStringAppendFormat = + _CFStringAppendFormatPtr.asFunction< + void Function(CFMutableStringRef, CFDictionaryRef, CFStringRef) + >(); void CFStringAppendFormatAndArguments( CFMutableStringRef theString, @@ -14581,85 +14252,88 @@ class NativeCupertinoHttp { ); } - late final _CFStringAppendFormatAndArgumentsPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableStringRef, CFDictionaryRef, CFStringRef, - va_list)>>('CFStringAppendFormatAndArguments'); + late final _CFStringAppendFormatAndArgumentsPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFMutableStringRef, + CFDictionaryRef, + CFStringRef, + va_list, + ) + > + >('CFStringAppendFormatAndArguments'); late final _CFStringAppendFormatAndArguments = _CFStringAppendFormatAndArgumentsPtr.asFunction< - void Function( - CFMutableStringRef, CFDictionaryRef, CFStringRef, va_list)>(); + void Function(CFMutableStringRef, CFDictionaryRef, CFStringRef, va_list) + >(); void CFStringInsert( CFMutableStringRef str, int idx, CFStringRef insertedStr, ) { - return _CFStringInsert( - str, - idx, - insertedStr, - ); + return _CFStringInsert(str, idx, insertedStr); } - late final _CFStringInsertPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableStringRef, CFIndex, CFStringRef)>>('CFStringInsert'); - late final _CFStringInsert = _CFStringInsertPtr.asFunction< - void Function(CFMutableStringRef, int, CFStringRef)>(); + late final _CFStringInsertPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableStringRef, CFIndex, CFStringRef) + > + >('CFStringInsert'); + late final _CFStringInsert = + _CFStringInsertPtr.asFunction< + void Function(CFMutableStringRef, int, CFStringRef) + >(); - void CFStringDelete( - CFMutableStringRef theString, - CFRange range, - ) { - return _CFStringDelete( - theString, - range, - ); + void CFStringDelete(CFMutableStringRef theString, CFRange range) { + return _CFStringDelete(theString, range); } - late final _CFStringDeletePtr = _lookup< - ffi.NativeFunction>( - 'CFStringDelete'); - late final _CFStringDelete = _CFStringDeletePtr.asFunction< - void Function(CFMutableStringRef, CFRange)>(); + late final _CFStringDeletePtr = + _lookup< + ffi.NativeFunction + >('CFStringDelete'); + late final _CFStringDelete = + _CFStringDeletePtr.asFunction< + void Function(CFMutableStringRef, CFRange) + >(); void CFStringReplace( CFMutableStringRef theString, CFRange range, CFStringRef replacement, ) { - return _CFStringReplace( - theString, - range, - replacement, - ); + return _CFStringReplace(theString, range, replacement); } - late final _CFStringReplacePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableStringRef, CFRange, CFStringRef)>>('CFStringReplace'); - late final _CFStringReplace = _CFStringReplacePtr.asFunction< - void Function(CFMutableStringRef, CFRange, CFStringRef)>(); + late final _CFStringReplacePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableStringRef, CFRange, CFStringRef) + > + >('CFStringReplace'); + late final _CFStringReplace = + _CFStringReplacePtr.asFunction< + void Function(CFMutableStringRef, CFRange, CFStringRef) + >(); void CFStringReplaceAll( CFMutableStringRef theString, CFStringRef replacement, ) { - return _CFStringReplaceAll( - theString, - replacement, - ); + return _CFStringReplaceAll(theString, replacement); } - late final _CFStringReplaceAllPtr = _lookup< - ffi - .NativeFunction>( - 'CFStringReplaceAll'); - late final _CFStringReplaceAll = _CFStringReplaceAllPtr.asFunction< - void Function(CFMutableStringRef, CFStringRef)>(); + late final _CFStringReplaceAllPtr = + _lookup< + ffi.NativeFunction + >('CFStringReplaceAll'); + late final _CFStringReplaceAll = + _CFStringReplaceAllPtr.asFunction< + void Function(CFMutableStringRef, CFStringRef) + >(); DartCFIndex CFStringFindAndReplace( CFMutableStringRef theString, @@ -14677,13 +14351,22 @@ class NativeCupertinoHttp { ); } - late final _CFStringFindAndReplacePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFMutableStringRef, CFStringRef, CFStringRef, - CFRange, CFOptionFlags)>>('CFStringFindAndReplace'); - late final _CFStringFindAndReplace = _CFStringFindAndReplacePtr.asFunction< - int Function( - CFMutableStringRef, CFStringRef, CFStringRef, CFRange, int)>(); + late final _CFStringFindAndReplacePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function( + CFMutableStringRef, + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + ) + > + >('CFStringFindAndReplace'); + late final _CFStringFindAndReplace = + _CFStringFindAndReplacePtr.asFunction< + int Function(CFMutableStringRef, CFStringRef, CFStringRef, CFRange, int) + >(); void CFStringSetExternalCharactersNoCopy( CFMutableStringRef theString, @@ -14699,13 +14382,21 @@ class NativeCupertinoHttp { ); } - late final _CFStringSetExternalCharactersNoCopyPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFIndex, - CFIndex)>>('CFStringSetExternalCharactersNoCopy'); + late final _CFStringSetExternalCharactersNoCopyPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFMutableStringRef, + ffi.Pointer, + CFIndex, + CFIndex, + ) + > + >('CFStringSetExternalCharactersNoCopy'); late final _CFStringSetExternalCharactersNoCopy = _CFStringSetExternalCharactersNoCopyPtr.asFunction< - void Function(CFMutableStringRef, ffi.Pointer, int, int)>(); + void Function(CFMutableStringRef, ffi.Pointer, int, int) + >(); void CFStringPad( CFMutableStringRef theString, @@ -14713,136 +14404,119 @@ class NativeCupertinoHttp { int length, int indexIntoPad, ) { - return _CFStringPad( - theString, - padString, - length, - indexIntoPad, - ); + return _CFStringPad(theString, padString, length, indexIntoPad); } - late final _CFStringPadPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableStringRef, CFStringRef, CFIndex, - CFIndex)>>('CFStringPad'); - late final _CFStringPad = _CFStringPadPtr.asFunction< - void Function(CFMutableStringRef, CFStringRef, int, int)>(); + late final _CFStringPadPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableStringRef, CFStringRef, CFIndex, CFIndex) + > + >('CFStringPad'); + late final _CFStringPad = + _CFStringPadPtr.asFunction< + void Function(CFMutableStringRef, CFStringRef, int, int) + >(); - void CFStringTrim( - CFMutableStringRef theString, - CFStringRef trimString, - ) { - return _CFStringTrim( - theString, - trimString, - ); + void CFStringTrim(CFMutableStringRef theString, CFStringRef trimString) { + return _CFStringTrim(theString, trimString); } - late final _CFStringTrimPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableStringRef, CFStringRef)>>('CFStringTrim'); - late final _CFStringTrim = _CFStringTrimPtr.asFunction< - void Function(CFMutableStringRef, CFStringRef)>(); + late final _CFStringTrimPtr = + _lookup< + ffi.NativeFunction + >('CFStringTrim'); + late final _CFStringTrim = + _CFStringTrimPtr.asFunction< + void Function(CFMutableStringRef, CFStringRef) + >(); - void CFStringTrimWhitespace( - CFMutableStringRef theString, - ) { - return _CFStringTrimWhitespace( - theString, - ); + void CFStringTrimWhitespace(CFMutableStringRef theString) { + return _CFStringTrimWhitespace(theString); } late final _CFStringTrimWhitespacePtr = _lookup>( - 'CFStringTrimWhitespace'); - late final _CFStringTrimWhitespace = _CFStringTrimWhitespacePtr.asFunction< - void Function(CFMutableStringRef)>(); + 'CFStringTrimWhitespace', + ); + late final _CFStringTrimWhitespace = + _CFStringTrimWhitespacePtr.asFunction< + void Function(CFMutableStringRef) + >(); - void CFStringLowercase( - CFMutableStringRef theString, - CFLocaleRef locale, - ) { - return _CFStringLowercase( - theString, - locale, - ); + void CFStringLowercase(CFMutableStringRef theString, CFLocaleRef locale) { + return _CFStringLowercase(theString, locale); } - late final _CFStringLowercasePtr = _lookup< - ffi - .NativeFunction>( - 'CFStringLowercase'); - late final _CFStringLowercase = _CFStringLowercasePtr.asFunction< - void Function(CFMutableStringRef, CFLocaleRef)>(); + late final _CFStringLowercasePtr = + _lookup< + ffi.NativeFunction + >('CFStringLowercase'); + late final _CFStringLowercase = + _CFStringLowercasePtr.asFunction< + void Function(CFMutableStringRef, CFLocaleRef) + >(); - void CFStringUppercase( - CFMutableStringRef theString, - CFLocaleRef locale, - ) { - return _CFStringUppercase( - theString, - locale, - ); + void CFStringUppercase(CFMutableStringRef theString, CFLocaleRef locale) { + return _CFStringUppercase(theString, locale); } - late final _CFStringUppercasePtr = _lookup< - ffi - .NativeFunction>( - 'CFStringUppercase'); - late final _CFStringUppercase = _CFStringUppercasePtr.asFunction< - void Function(CFMutableStringRef, CFLocaleRef)>(); + late final _CFStringUppercasePtr = + _lookup< + ffi.NativeFunction + >('CFStringUppercase'); + late final _CFStringUppercase = + _CFStringUppercasePtr.asFunction< + void Function(CFMutableStringRef, CFLocaleRef) + >(); - void CFStringCapitalize( - CFMutableStringRef theString, - CFLocaleRef locale, - ) { - return _CFStringCapitalize( - theString, - locale, - ); + void CFStringCapitalize(CFMutableStringRef theString, CFLocaleRef locale) { + return _CFStringCapitalize(theString, locale); } - late final _CFStringCapitalizePtr = _lookup< - ffi - .NativeFunction>( - 'CFStringCapitalize'); - late final _CFStringCapitalize = _CFStringCapitalizePtr.asFunction< - void Function(CFMutableStringRef, CFLocaleRef)>(); + late final _CFStringCapitalizePtr = + _lookup< + ffi.NativeFunction + >('CFStringCapitalize'); + late final _CFStringCapitalize = + _CFStringCapitalizePtr.asFunction< + void Function(CFMutableStringRef, CFLocaleRef) + >(); void CFStringNormalize( CFMutableStringRef theString, CFStringNormalizationForm theForm, ) { - return _CFStringNormalize( - theString, - theForm.value, - ); + return _CFStringNormalize(theString, theForm.value); } - late final _CFStringNormalizePtr = _lookup< - ffi.NativeFunction>( - 'CFStringNormalize'); - late final _CFStringNormalize = _CFStringNormalizePtr.asFunction< - void Function(CFMutableStringRef, int)>(); + late final _CFStringNormalizePtr = + _lookup< + ffi.NativeFunction + >('CFStringNormalize'); + late final _CFStringNormalize = + _CFStringNormalizePtr.asFunction< + void Function(CFMutableStringRef, int) + >(); void CFStringFold( CFMutableStringRef theString, CFStringCompareFlags theFlags, CFLocaleRef theLocale, ) { - return _CFStringFold( - theString, - theFlags.value, - theLocale, - ); + return _CFStringFold(theString, theFlags.value, theLocale); } - late final _CFStringFoldPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableStringRef, CFOptionFlags, CFLocaleRef)>>('CFStringFold'); - late final _CFStringFold = _CFStringFoldPtr.asFunction< - void Function(CFMutableStringRef, int, CFLocaleRef)>(); + late final _CFStringFoldPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableStringRef, CFOptionFlags, CFLocaleRef) + > + >('CFStringFold'); + late final _CFStringFold = + _CFStringFoldPtr.asFunction< + void Function(CFMutableStringRef, int, CFLocaleRef) + >(); int CFStringTransform( CFMutableStringRef string, @@ -14850,21 +14524,24 @@ class NativeCupertinoHttp { CFStringRef transform, int reverse, ) { - return _CFStringTransform( - string, - range, - transform, - reverse, - ); + return _CFStringTransform(string, range, transform, reverse); } - late final _CFStringTransformPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFMutableStringRef, ffi.Pointer, - CFStringRef, Boolean)>>('CFStringTransform'); - late final _CFStringTransform = _CFStringTransformPtr.asFunction< - int Function( - CFMutableStringRef, ffi.Pointer, CFStringRef, int)>(); + late final _CFStringTransformPtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFMutableStringRef, + ffi.Pointer, + CFStringRef, + Boolean, + ) + > + >('CFStringTransform'); + late final _CFStringTransform = + _CFStringTransformPtr.asFunction< + int Function(CFMutableStringRef, ffi.Pointer, CFStringRef, int) + >(); late final ffi.Pointer _kCFStringTransformStripCombiningMarks = _lookup('kCFStringTransformStripCombiningMarks'); @@ -14961,17 +14638,14 @@ class NativeCupertinoHttp { CFStringRef get kCFStringTransformStripDiacritics => _kCFStringTransformStripDiacritics.value; - int CFStringIsEncodingAvailable( - int encoding, - ) { - return _CFStringIsEncodingAvailable( - encoding, - ); + int CFStringIsEncodingAvailable(int encoding) { + return _CFStringIsEncodingAvailable(encoding); } late final _CFStringIsEncodingAvailablePtr = _lookup>( - 'CFStringIsEncodingAvailable'); + 'CFStringIsEncodingAvailable', + ); late final _CFStringIsEncodingAvailable = _CFStringIsEncodingAvailablePtr.asFunction(); @@ -14981,148 +14655,125 @@ class NativeCupertinoHttp { late final _CFStringGetListOfAvailableEncodingsPtr = _lookup Function()>>( - 'CFStringGetListOfAvailableEncodings'); + 'CFStringGetListOfAvailableEncodings', + ); late final _CFStringGetListOfAvailableEncodings = _CFStringGetListOfAvailableEncodingsPtr.asFunction< - ffi.Pointer Function()>(); + ffi.Pointer Function() + >(); - CFStringRef CFStringGetNameOfEncoding( - int encoding, - ) { - return _CFStringGetNameOfEncoding( - encoding, - ); + CFStringRef CFStringGetNameOfEncoding(int encoding) { + return _CFStringGetNameOfEncoding(encoding); } late final _CFStringGetNameOfEncodingPtr = _lookup>( - 'CFStringGetNameOfEncoding'); + 'CFStringGetNameOfEncoding', + ); late final _CFStringGetNameOfEncoding = _CFStringGetNameOfEncodingPtr.asFunction(); - int CFStringConvertEncodingToNSStringEncoding( - int encoding, - ) { - return _CFStringConvertEncodingToNSStringEncoding( - encoding, - ); + int CFStringConvertEncodingToNSStringEncoding(int encoding) { + return _CFStringConvertEncodingToNSStringEncoding(encoding); } late final _CFStringConvertEncodingToNSStringEncodingPtr = _lookup>( - 'CFStringConvertEncodingToNSStringEncoding'); + 'CFStringConvertEncodingToNSStringEncoding', + ); late final _CFStringConvertEncodingToNSStringEncoding = _CFStringConvertEncodingToNSStringEncodingPtr.asFunction< - int Function(int)>(); + int Function(int) + >(); - int CFStringConvertNSStringEncodingToEncoding( - int encoding, - ) { - return _CFStringConvertNSStringEncodingToEncoding( - encoding, - ); + int CFStringConvertNSStringEncodingToEncoding(int encoding) { + return _CFStringConvertNSStringEncodingToEncoding(encoding); } late final _CFStringConvertNSStringEncodingToEncodingPtr = _lookup>( - 'CFStringConvertNSStringEncodingToEncoding'); + 'CFStringConvertNSStringEncodingToEncoding', + ); late final _CFStringConvertNSStringEncodingToEncoding = _CFStringConvertNSStringEncodingToEncodingPtr.asFunction< - int Function(int)>(); + int Function(int) + >(); - int CFStringConvertEncodingToWindowsCodepage( - int encoding, - ) { - return _CFStringConvertEncodingToWindowsCodepage( - encoding, - ); + int CFStringConvertEncodingToWindowsCodepage(int encoding) { + return _CFStringConvertEncodingToWindowsCodepage(encoding); } late final _CFStringConvertEncodingToWindowsCodepagePtr = _lookup>( - 'CFStringConvertEncodingToWindowsCodepage'); + 'CFStringConvertEncodingToWindowsCodepage', + ); late final _CFStringConvertEncodingToWindowsCodepage = _CFStringConvertEncodingToWindowsCodepagePtr.asFunction< - int Function(int)>(); + int Function(int) + >(); - int CFStringConvertWindowsCodepageToEncoding( - int codepage, - ) { - return _CFStringConvertWindowsCodepageToEncoding( - codepage, - ); + int CFStringConvertWindowsCodepageToEncoding(int codepage) { + return _CFStringConvertWindowsCodepageToEncoding(codepage); } late final _CFStringConvertWindowsCodepageToEncodingPtr = _lookup>( - 'CFStringConvertWindowsCodepageToEncoding'); + 'CFStringConvertWindowsCodepageToEncoding', + ); late final _CFStringConvertWindowsCodepageToEncoding = _CFStringConvertWindowsCodepageToEncodingPtr.asFunction< - int Function(int)>(); + int Function(int) + >(); - int CFStringConvertIANACharSetNameToEncoding( - CFStringRef theString, - ) { - return _CFStringConvertIANACharSetNameToEncoding( - theString, - ); + int CFStringConvertIANACharSetNameToEncoding(CFStringRef theString) { + return _CFStringConvertIANACharSetNameToEncoding(theString); } late final _CFStringConvertIANACharSetNameToEncodingPtr = _lookup>( - 'CFStringConvertIANACharSetNameToEncoding'); + 'CFStringConvertIANACharSetNameToEncoding', + ); late final _CFStringConvertIANACharSetNameToEncoding = _CFStringConvertIANACharSetNameToEncodingPtr.asFunction< - int Function(CFStringRef)>(); + int Function(CFStringRef) + >(); - CFStringRef CFStringConvertEncodingToIANACharSetName( - int encoding, - ) { - return _CFStringConvertEncodingToIANACharSetName( - encoding, - ); + CFStringRef CFStringConvertEncodingToIANACharSetName(int encoding) { + return _CFStringConvertEncodingToIANACharSetName(encoding); } late final _CFStringConvertEncodingToIANACharSetNamePtr = _lookup>( - 'CFStringConvertEncodingToIANACharSetName'); + 'CFStringConvertEncodingToIANACharSetName', + ); late final _CFStringConvertEncodingToIANACharSetName = _CFStringConvertEncodingToIANACharSetNamePtr.asFunction< - CFStringRef Function(int)>(); + CFStringRef Function(int) + >(); - int CFStringGetMostCompatibleMacStringEncoding( - int encoding, - ) { - return _CFStringGetMostCompatibleMacStringEncoding( - encoding, - ); + int CFStringGetMostCompatibleMacStringEncoding(int encoding) { + return _CFStringGetMostCompatibleMacStringEncoding(encoding); } late final _CFStringGetMostCompatibleMacStringEncodingPtr = _lookup>( - 'CFStringGetMostCompatibleMacStringEncoding'); + 'CFStringGetMostCompatibleMacStringEncoding', + ); late final _CFStringGetMostCompatibleMacStringEncoding = _CFStringGetMostCompatibleMacStringEncodingPtr.asFunction< - int Function(int)>(); + int Function(int) + >(); - void CFShow( - CFTypeRef obj, - ) { - return _CFShow( - obj, - ); + void CFShow(CFTypeRef obj) { + return _CFShow(obj); } late final _CFShowPtr = _lookup>('CFShow'); late final _CFShow = _CFShowPtr.asFunction(); - void CFShowStr( - CFStringRef str, - ) { - return _CFShowStr( - str, - ); + void CFShowStr(CFStringRef str) { + return _CFShowStr(str); } late final _CFShowStrPtr = @@ -15130,17 +14781,14 @@ class NativeCupertinoHttp { late final _CFShowStr = _CFShowStrPtr.asFunction(); - CFStringRef __CFStringMakeConstantString( - ffi.Pointer cStr, - ) { - return ___CFStringMakeConstantString( - cStr, - ); + CFStringRef __CFStringMakeConstantString(ffi.Pointer cStr) { + return ___CFStringMakeConstantString(cStr); } late final ___CFStringMakeConstantStringPtr = _lookup)>>( - '__CFStringMakeConstantString'); + '__CFStringMakeConstantString', + ); late final ___CFStringMakeConstantString = ___CFStringMakeConstantStringPtr .asFunction)>(); @@ -15159,7 +14807,8 @@ class NativeCupertinoHttp { late final _CFTimeZoneCopySystemPtr = _lookup>( - 'CFTimeZoneCopySystem'); + 'CFTimeZoneCopySystem', + ); late final _CFTimeZoneCopySystem = _CFTimeZoneCopySystemPtr.asFunction(); @@ -15178,21 +14827,19 @@ class NativeCupertinoHttp { late final _CFTimeZoneCopyDefaultPtr = _lookup>( - 'CFTimeZoneCopyDefault'); + 'CFTimeZoneCopyDefault', + ); late final _CFTimeZoneCopyDefault = _CFTimeZoneCopyDefaultPtr.asFunction(); - void CFTimeZoneSetDefault( - CFTimeZoneRef tz, - ) { - return _CFTimeZoneSetDefault( - tz, - ); + void CFTimeZoneSetDefault(CFTimeZoneRef tz) { + return _CFTimeZoneSetDefault(tz); } late final _CFTimeZoneSetDefaultPtr = _lookup>( - 'CFTimeZoneSetDefault'); + 'CFTimeZoneSetDefault', + ); late final _CFTimeZoneSetDefault = _CFTimeZoneSetDefaultPtr.asFunction(); @@ -15202,7 +14849,8 @@ class NativeCupertinoHttp { late final _CFTimeZoneCopyKnownNamesPtr = _lookup>( - 'CFTimeZoneCopyKnownNames'); + 'CFTimeZoneCopyKnownNames', + ); late final _CFTimeZoneCopyKnownNames = _CFTimeZoneCopyKnownNamesPtr.asFunction(); @@ -15212,220 +14860,201 @@ class NativeCupertinoHttp { late final _CFTimeZoneCopyAbbreviationDictionaryPtr = _lookup>( - 'CFTimeZoneCopyAbbreviationDictionary'); + 'CFTimeZoneCopyAbbreviationDictionary', + ); late final _CFTimeZoneCopyAbbreviationDictionary = _CFTimeZoneCopyAbbreviationDictionaryPtr.asFunction< - CFDictionaryRef Function()>(); + CFDictionaryRef Function() + >(); - void CFTimeZoneSetAbbreviationDictionary( - CFDictionaryRef dict, - ) { - return _CFTimeZoneSetAbbreviationDictionary( - dict, - ); + void CFTimeZoneSetAbbreviationDictionary(CFDictionaryRef dict) { + return _CFTimeZoneSetAbbreviationDictionary(dict); } late final _CFTimeZoneSetAbbreviationDictionaryPtr = _lookup>( - 'CFTimeZoneSetAbbreviationDictionary'); + 'CFTimeZoneSetAbbreviationDictionary', + ); late final _CFTimeZoneSetAbbreviationDictionary = _CFTimeZoneSetAbbreviationDictionaryPtr.asFunction< - void Function(CFDictionaryRef)>(); + void Function(CFDictionaryRef) + >(); CFTimeZoneRef CFTimeZoneCreate( CFAllocatorRef allocator, CFStringRef name, CFDataRef data, ) { - return _CFTimeZoneCreate( - allocator, - name, - data, - ); + return _CFTimeZoneCreate(allocator, name, data); } - late final _CFTimeZoneCreatePtr = _lookup< - ffi.NativeFunction< - CFTimeZoneRef Function( - CFAllocatorRef, CFStringRef, CFDataRef)>>('CFTimeZoneCreate'); - late final _CFTimeZoneCreate = _CFTimeZoneCreatePtr.asFunction< - CFTimeZoneRef Function(CFAllocatorRef, CFStringRef, CFDataRef)>(); + late final _CFTimeZoneCreatePtr = + _lookup< + ffi.NativeFunction< + CFTimeZoneRef Function(CFAllocatorRef, CFStringRef, CFDataRef) + > + >('CFTimeZoneCreate'); + late final _CFTimeZoneCreate = + _CFTimeZoneCreatePtr.asFunction< + CFTimeZoneRef Function(CFAllocatorRef, CFStringRef, CFDataRef) + >(); CFTimeZoneRef CFTimeZoneCreateWithTimeIntervalFromGMT( CFAllocatorRef allocator, double ti, ) { - return _CFTimeZoneCreateWithTimeIntervalFromGMT( - allocator, - ti, - ); + return _CFTimeZoneCreateWithTimeIntervalFromGMT(allocator, ti); } - late final _CFTimeZoneCreateWithTimeIntervalFromGMTPtr = _lookup< - ffi.NativeFunction< - CFTimeZoneRef Function(CFAllocatorRef, - CFTimeInterval)>>('CFTimeZoneCreateWithTimeIntervalFromGMT'); + late final _CFTimeZoneCreateWithTimeIntervalFromGMTPtr = + _lookup< + ffi.NativeFunction< + CFTimeZoneRef Function(CFAllocatorRef, CFTimeInterval) + > + >('CFTimeZoneCreateWithTimeIntervalFromGMT'); late final _CFTimeZoneCreateWithTimeIntervalFromGMT = _CFTimeZoneCreateWithTimeIntervalFromGMTPtr.asFunction< - CFTimeZoneRef Function(CFAllocatorRef, double)>(); + CFTimeZoneRef Function(CFAllocatorRef, double) + >(); CFTimeZoneRef CFTimeZoneCreateWithName( CFAllocatorRef allocator, CFStringRef name, int tryAbbrev, ) { - return _CFTimeZoneCreateWithName( - allocator, - name, - tryAbbrev, - ); + return _CFTimeZoneCreateWithName(allocator, name, tryAbbrev); } - late final _CFTimeZoneCreateWithNamePtr = _lookup< - ffi.NativeFunction< - CFTimeZoneRef Function(CFAllocatorRef, CFStringRef, - Boolean)>>('CFTimeZoneCreateWithName'); - late final _CFTimeZoneCreateWithName = _CFTimeZoneCreateWithNamePtr - .asFunction(); + late final _CFTimeZoneCreateWithNamePtr = + _lookup< + ffi.NativeFunction< + CFTimeZoneRef Function(CFAllocatorRef, CFStringRef, Boolean) + > + >('CFTimeZoneCreateWithName'); + late final _CFTimeZoneCreateWithName = + _CFTimeZoneCreateWithNamePtr.asFunction< + CFTimeZoneRef Function(CFAllocatorRef, CFStringRef, int) + >(); - CFStringRef CFTimeZoneGetName( - CFTimeZoneRef tz, - ) { - return _CFTimeZoneGetName( - tz, - ); + CFStringRef CFTimeZoneGetName(CFTimeZoneRef tz) { + return _CFTimeZoneGetName(tz); } late final _CFTimeZoneGetNamePtr = _lookup>( - 'CFTimeZoneGetName'); + 'CFTimeZoneGetName', + ); late final _CFTimeZoneGetName = _CFTimeZoneGetNamePtr.asFunction(); - CFDataRef CFTimeZoneGetData( - CFTimeZoneRef tz, - ) { - return _CFTimeZoneGetData( - tz, - ); + CFDataRef CFTimeZoneGetData(CFTimeZoneRef tz) { + return _CFTimeZoneGetData(tz); } late final _CFTimeZoneGetDataPtr = _lookup>( - 'CFTimeZoneGetData'); + 'CFTimeZoneGetData', + ); late final _CFTimeZoneGetData = _CFTimeZoneGetDataPtr.asFunction(); - double CFTimeZoneGetSecondsFromGMT( - CFTimeZoneRef tz, - double at, - ) { - return _CFTimeZoneGetSecondsFromGMT( - tz, - at, - ); + double CFTimeZoneGetSecondsFromGMT(CFTimeZoneRef tz, double at) { + return _CFTimeZoneGetSecondsFromGMT(tz, at); } - late final _CFTimeZoneGetSecondsFromGMTPtr = _lookup< - ffi.NativeFunction< - CFTimeInterval Function( - CFTimeZoneRef, CFAbsoluteTime)>>('CFTimeZoneGetSecondsFromGMT'); - late final _CFTimeZoneGetSecondsFromGMT = _CFTimeZoneGetSecondsFromGMTPtr - .asFunction(); + late final _CFTimeZoneGetSecondsFromGMTPtr = + _lookup< + ffi.NativeFunction< + CFTimeInterval Function(CFTimeZoneRef, CFAbsoluteTime) + > + >('CFTimeZoneGetSecondsFromGMT'); + late final _CFTimeZoneGetSecondsFromGMT = + _CFTimeZoneGetSecondsFromGMTPtr.asFunction< + double Function(CFTimeZoneRef, double) + >(); - CFStringRef CFTimeZoneCopyAbbreviation( - CFTimeZoneRef tz, - double at, - ) { - return _CFTimeZoneCopyAbbreviation( - tz, - at, - ); + CFStringRef CFTimeZoneCopyAbbreviation(CFTimeZoneRef tz, double at) { + return _CFTimeZoneCopyAbbreviation(tz, at); } - late final _CFTimeZoneCopyAbbreviationPtr = _lookup< - ffi - .NativeFunction>( - 'CFTimeZoneCopyAbbreviation'); - late final _CFTimeZoneCopyAbbreviation = _CFTimeZoneCopyAbbreviationPtr - .asFunction(); + late final _CFTimeZoneCopyAbbreviationPtr = + _lookup< + ffi.NativeFunction + >('CFTimeZoneCopyAbbreviation'); + late final _CFTimeZoneCopyAbbreviation = + _CFTimeZoneCopyAbbreviationPtr.asFunction< + CFStringRef Function(CFTimeZoneRef, double) + >(); - int CFTimeZoneIsDaylightSavingTime( - CFTimeZoneRef tz, - double at, - ) { - return _CFTimeZoneIsDaylightSavingTime( - tz, - at, - ); + int CFTimeZoneIsDaylightSavingTime(CFTimeZoneRef tz, double at) { + return _CFTimeZoneIsDaylightSavingTime(tz, at); } - late final _CFTimeZoneIsDaylightSavingTimePtr = _lookup< - ffi.NativeFunction>( - 'CFTimeZoneIsDaylightSavingTime'); + late final _CFTimeZoneIsDaylightSavingTimePtr = + _lookup< + ffi.NativeFunction + >('CFTimeZoneIsDaylightSavingTime'); late final _CFTimeZoneIsDaylightSavingTime = _CFTimeZoneIsDaylightSavingTimePtr.asFunction< - int Function(CFTimeZoneRef, double)>(); + int Function(CFTimeZoneRef, double) + >(); - double CFTimeZoneGetDaylightSavingTimeOffset( - CFTimeZoneRef tz, - double at, - ) { - return _CFTimeZoneGetDaylightSavingTimeOffset( - tz, - at, - ); + double CFTimeZoneGetDaylightSavingTimeOffset(CFTimeZoneRef tz, double at) { + return _CFTimeZoneGetDaylightSavingTimeOffset(tz, at); } - late final _CFTimeZoneGetDaylightSavingTimeOffsetPtr = _lookup< - ffi.NativeFunction< - CFTimeInterval Function(CFTimeZoneRef, - CFAbsoluteTime)>>('CFTimeZoneGetDaylightSavingTimeOffset'); + late final _CFTimeZoneGetDaylightSavingTimeOffsetPtr = + _lookup< + ffi.NativeFunction< + CFTimeInterval Function(CFTimeZoneRef, CFAbsoluteTime) + > + >('CFTimeZoneGetDaylightSavingTimeOffset'); late final _CFTimeZoneGetDaylightSavingTimeOffset = _CFTimeZoneGetDaylightSavingTimeOffsetPtr.asFunction< - double Function(CFTimeZoneRef, double)>(); + double Function(CFTimeZoneRef, double) + >(); double CFTimeZoneGetNextDaylightSavingTimeTransition( CFTimeZoneRef tz, double at, ) { - return _CFTimeZoneGetNextDaylightSavingTimeTransition( - tz, - at, - ); + return _CFTimeZoneGetNextDaylightSavingTimeTransition(tz, at); } - late final _CFTimeZoneGetNextDaylightSavingTimeTransitionPtr = _lookup< - ffi.NativeFunction< - CFAbsoluteTime Function(CFTimeZoneRef, CFAbsoluteTime)>>( - 'CFTimeZoneGetNextDaylightSavingTimeTransition'); + late final _CFTimeZoneGetNextDaylightSavingTimeTransitionPtr = + _lookup< + ffi.NativeFunction< + CFAbsoluteTime Function(CFTimeZoneRef, CFAbsoluteTime) + > + >('CFTimeZoneGetNextDaylightSavingTimeTransition'); late final _CFTimeZoneGetNextDaylightSavingTimeTransition = _CFTimeZoneGetNextDaylightSavingTimeTransitionPtr.asFunction< - double Function(CFTimeZoneRef, double)>(); + double Function(CFTimeZoneRef, double) + >(); CFStringRef CFTimeZoneCopyLocalizedName( CFTimeZoneRef tz, CFTimeZoneNameStyle style, CFLocaleRef locale, ) { - return _CFTimeZoneCopyLocalizedName( - tz, - style.value, - locale, - ); + return _CFTimeZoneCopyLocalizedName(tz, style.value, locale); } - late final _CFTimeZoneCopyLocalizedNamePtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFTimeZoneRef, CFIndex, - CFLocaleRef)>>('CFTimeZoneCopyLocalizedName'); - late final _CFTimeZoneCopyLocalizedName = _CFTimeZoneCopyLocalizedNamePtr - .asFunction(); + late final _CFTimeZoneCopyLocalizedNamePtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(CFTimeZoneRef, CFIndex, CFLocaleRef) + > + >('CFTimeZoneCopyLocalizedName'); + late final _CFTimeZoneCopyLocalizedName = + _CFTimeZoneCopyLocalizedNamePtr.asFunction< + CFStringRef Function(CFTimeZoneRef, int, CFLocaleRef) + >(); late final ffi.Pointer - _kCFTimeZoneSystemTimeZoneDidChangeNotification = - _lookup( - 'kCFTimeZoneSystemTimeZoneDidChangeNotification'); + _kCFTimeZoneSystemTimeZoneDidChangeNotification = _lookup( + 'kCFTimeZoneSystemTimeZoneDidChangeNotification', + ); CFNotificationName get kCFTimeZoneSystemTimeZoneDidChangeNotification => _kCFTimeZoneSystemTimeZoneDidChangeNotification.value; @@ -15445,7 +15074,8 @@ class NativeCupertinoHttp { late final _CFCalendarCopyCurrentPtr = _lookup>( - 'CFCalendarCopyCurrent'); + 'CFCalendarCopyCurrent', + ); late final _CFCalendarCopyCurrent = _CFCalendarCopyCurrentPtr.asFunction(); @@ -15453,189 +15083,166 @@ class NativeCupertinoHttp { CFAllocatorRef allocator, CFCalendarIdentifier identifier, ) { - return _CFCalendarCreateWithIdentifier( - allocator, - identifier, - ); + return _CFCalendarCreateWithIdentifier(allocator, identifier); } - late final _CFCalendarCreateWithIdentifierPtr = _lookup< - ffi.NativeFunction< - CFCalendarRef Function(CFAllocatorRef, - CFCalendarIdentifier)>>('CFCalendarCreateWithIdentifier'); + late final _CFCalendarCreateWithIdentifierPtr = + _lookup< + ffi.NativeFunction< + CFCalendarRef Function(CFAllocatorRef, CFCalendarIdentifier) + > + >('CFCalendarCreateWithIdentifier'); late final _CFCalendarCreateWithIdentifier = _CFCalendarCreateWithIdentifierPtr.asFunction< - CFCalendarRef Function(CFAllocatorRef, CFCalendarIdentifier)>(); + CFCalendarRef Function(CFAllocatorRef, CFCalendarIdentifier) + >(); - CFCalendarIdentifier CFCalendarGetIdentifier( - CFCalendarRef calendar, - ) { - return _CFCalendarGetIdentifier( - calendar, - ); + CFCalendarIdentifier CFCalendarGetIdentifier(CFCalendarRef calendar) { + return _CFCalendarGetIdentifier(calendar); } late final _CFCalendarGetIdentifierPtr = _lookup>( - 'CFCalendarGetIdentifier'); - late final _CFCalendarGetIdentifier = _CFCalendarGetIdentifierPtr.asFunction< - CFCalendarIdentifier Function(CFCalendarRef)>(); + 'CFCalendarGetIdentifier', + ); + late final _CFCalendarGetIdentifier = + _CFCalendarGetIdentifierPtr.asFunction< + CFCalendarIdentifier Function(CFCalendarRef) + >(); - CFLocaleRef CFCalendarCopyLocale( - CFCalendarRef calendar, - ) { - return _CFCalendarCopyLocale( - calendar, - ); + CFLocaleRef CFCalendarCopyLocale(CFCalendarRef calendar) { + return _CFCalendarCopyLocale(calendar); } late final _CFCalendarCopyLocalePtr = _lookup>( - 'CFCalendarCopyLocale'); - late final _CFCalendarCopyLocale = _CFCalendarCopyLocalePtr.asFunction< - CFLocaleRef Function(CFCalendarRef)>(); + 'CFCalendarCopyLocale', + ); + late final _CFCalendarCopyLocale = + _CFCalendarCopyLocalePtr.asFunction< + CFLocaleRef Function(CFCalendarRef) + >(); - void CFCalendarSetLocale( - CFCalendarRef calendar, - CFLocaleRef locale, - ) { - return _CFCalendarSetLocale( - calendar, - locale, - ); + void CFCalendarSetLocale(CFCalendarRef calendar, CFLocaleRef locale) { + return _CFCalendarSetLocale(calendar, locale); } - late final _CFCalendarSetLocalePtr = _lookup< - ffi.NativeFunction>( - 'CFCalendarSetLocale'); - late final _CFCalendarSetLocale = _CFCalendarSetLocalePtr.asFunction< - void Function(CFCalendarRef, CFLocaleRef)>(); + late final _CFCalendarSetLocalePtr = + _lookup< + ffi.NativeFunction + >('CFCalendarSetLocale'); + late final _CFCalendarSetLocale = + _CFCalendarSetLocalePtr.asFunction< + void Function(CFCalendarRef, CFLocaleRef) + >(); - CFTimeZoneRef CFCalendarCopyTimeZone( - CFCalendarRef calendar, - ) { - return _CFCalendarCopyTimeZone( - calendar, - ); + CFTimeZoneRef CFCalendarCopyTimeZone(CFCalendarRef calendar) { + return _CFCalendarCopyTimeZone(calendar); } late final _CFCalendarCopyTimeZonePtr = _lookup>( - 'CFCalendarCopyTimeZone'); - late final _CFCalendarCopyTimeZone = _CFCalendarCopyTimeZonePtr.asFunction< - CFTimeZoneRef Function(CFCalendarRef)>(); + 'CFCalendarCopyTimeZone', + ); + late final _CFCalendarCopyTimeZone = + _CFCalendarCopyTimeZonePtr.asFunction< + CFTimeZoneRef Function(CFCalendarRef) + >(); - void CFCalendarSetTimeZone( - CFCalendarRef calendar, - CFTimeZoneRef tz, - ) { - return _CFCalendarSetTimeZone( - calendar, - tz, - ); + void CFCalendarSetTimeZone(CFCalendarRef calendar, CFTimeZoneRef tz) { + return _CFCalendarSetTimeZone(calendar, tz); } - late final _CFCalendarSetTimeZonePtr = _lookup< - ffi.NativeFunction>( - 'CFCalendarSetTimeZone'); - late final _CFCalendarSetTimeZone = _CFCalendarSetTimeZonePtr.asFunction< - void Function(CFCalendarRef, CFTimeZoneRef)>(); + late final _CFCalendarSetTimeZonePtr = + _lookup< + ffi.NativeFunction + >('CFCalendarSetTimeZone'); + late final _CFCalendarSetTimeZone = + _CFCalendarSetTimeZonePtr.asFunction< + void Function(CFCalendarRef, CFTimeZoneRef) + >(); - int CFCalendarGetFirstWeekday( - CFCalendarRef calendar, - ) { - return _CFCalendarGetFirstWeekday( - calendar, - ); + int CFCalendarGetFirstWeekday(CFCalendarRef calendar) { + return _CFCalendarGetFirstWeekday(calendar); } late final _CFCalendarGetFirstWeekdayPtr = _lookup>( - 'CFCalendarGetFirstWeekday'); + 'CFCalendarGetFirstWeekday', + ); late final _CFCalendarGetFirstWeekday = _CFCalendarGetFirstWeekdayPtr.asFunction(); - void CFCalendarSetFirstWeekday( - CFCalendarRef calendar, - int wkdy, - ) { - return _CFCalendarSetFirstWeekday( - calendar, - wkdy, - ); + void CFCalendarSetFirstWeekday(CFCalendarRef calendar, int wkdy) { + return _CFCalendarSetFirstWeekday(calendar, wkdy); } late final _CFCalendarSetFirstWeekdayPtr = _lookup>( - 'CFCalendarSetFirstWeekday'); - late final _CFCalendarSetFirstWeekday = _CFCalendarSetFirstWeekdayPtr - .asFunction(); + 'CFCalendarSetFirstWeekday', + ); + late final _CFCalendarSetFirstWeekday = + _CFCalendarSetFirstWeekdayPtr.asFunction< + void Function(CFCalendarRef, int) + >(); - int CFCalendarGetMinimumDaysInFirstWeek( - CFCalendarRef calendar, - ) { - return _CFCalendarGetMinimumDaysInFirstWeek( - calendar, - ); + int CFCalendarGetMinimumDaysInFirstWeek(CFCalendarRef calendar) { + return _CFCalendarGetMinimumDaysInFirstWeek(calendar); } late final _CFCalendarGetMinimumDaysInFirstWeekPtr = _lookup>( - 'CFCalendarGetMinimumDaysInFirstWeek'); + 'CFCalendarGetMinimumDaysInFirstWeek', + ); late final _CFCalendarGetMinimumDaysInFirstWeek = _CFCalendarGetMinimumDaysInFirstWeekPtr.asFunction< - int Function(CFCalendarRef)>(); + int Function(CFCalendarRef) + >(); - void CFCalendarSetMinimumDaysInFirstWeek( - CFCalendarRef calendar, - int mwd, - ) { - return _CFCalendarSetMinimumDaysInFirstWeek( - calendar, - mwd, - ); + void CFCalendarSetMinimumDaysInFirstWeek(CFCalendarRef calendar, int mwd) { + return _CFCalendarSetMinimumDaysInFirstWeek(calendar, mwd); } late final _CFCalendarSetMinimumDaysInFirstWeekPtr = _lookup>( - 'CFCalendarSetMinimumDaysInFirstWeek'); + 'CFCalendarSetMinimumDaysInFirstWeek', + ); late final _CFCalendarSetMinimumDaysInFirstWeek = _CFCalendarSetMinimumDaysInFirstWeekPtr.asFunction< - void Function(CFCalendarRef, int)>(); + void Function(CFCalendarRef, int) + >(); CFRange CFCalendarGetMinimumRangeOfUnit( CFCalendarRef calendar, CFCalendarUnit unit, ) { - return _CFCalendarGetMinimumRangeOfUnit( - calendar, - unit.value, - ); + return _CFCalendarGetMinimumRangeOfUnit(calendar, unit.value); } - late final _CFCalendarGetMinimumRangeOfUnitPtr = _lookup< - ffi.NativeFunction>( - 'CFCalendarGetMinimumRangeOfUnit'); + late final _CFCalendarGetMinimumRangeOfUnitPtr = + _lookup< + ffi.NativeFunction + >('CFCalendarGetMinimumRangeOfUnit'); late final _CFCalendarGetMinimumRangeOfUnit = _CFCalendarGetMinimumRangeOfUnitPtr.asFunction< - CFRange Function(CFCalendarRef, int)>(); + CFRange Function(CFCalendarRef, int) + >(); CFRange CFCalendarGetMaximumRangeOfUnit( CFCalendarRef calendar, CFCalendarUnit unit, ) { - return _CFCalendarGetMaximumRangeOfUnit( - calendar, - unit.value, - ); + return _CFCalendarGetMaximumRangeOfUnit(calendar, unit.value); } - late final _CFCalendarGetMaximumRangeOfUnitPtr = _lookup< - ffi.NativeFunction>( - 'CFCalendarGetMaximumRangeOfUnit'); + late final _CFCalendarGetMaximumRangeOfUnitPtr = + _lookup< + ffi.NativeFunction + >('CFCalendarGetMaximumRangeOfUnit'); late final _CFCalendarGetMaximumRangeOfUnit = _CFCalendarGetMaximumRangeOfUnitPtr.asFunction< - CFRange Function(CFCalendarRef, int)>(); + CFRange Function(CFCalendarRef, int) + >(); CFRange CFCalendarGetRangeOfUnit( CFCalendarRef calendar, @@ -15651,12 +15258,21 @@ class NativeCupertinoHttp { ); } - late final _CFCalendarGetRangeOfUnitPtr = _lookup< - ffi.NativeFunction< - CFRange Function(CFCalendarRef, CFOptionFlags, CFOptionFlags, - CFAbsoluteTime)>>('CFCalendarGetRangeOfUnit'); - late final _CFCalendarGetRangeOfUnit = _CFCalendarGetRangeOfUnitPtr - .asFunction(); + late final _CFCalendarGetRangeOfUnitPtr = + _lookup< + ffi.NativeFunction< + CFRange Function( + CFCalendarRef, + CFOptionFlags, + CFOptionFlags, + CFAbsoluteTime, + ) + > + >('CFCalendarGetRangeOfUnit'); + late final _CFCalendarGetRangeOfUnit = + _CFCalendarGetRangeOfUnitPtr.asFunction< + CFRange Function(CFCalendarRef, int, int, double) + >(); DartCFIndex CFCalendarGetOrdinalityOfUnit( CFCalendarRef calendar, @@ -15672,12 +15288,21 @@ class NativeCupertinoHttp { ); } - late final _CFCalendarGetOrdinalityOfUnitPtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFCalendarRef, CFOptionFlags, CFOptionFlags, - CFAbsoluteTime)>>('CFCalendarGetOrdinalityOfUnit'); - late final _CFCalendarGetOrdinalityOfUnit = _CFCalendarGetOrdinalityOfUnitPtr - .asFunction(); + late final _CFCalendarGetOrdinalityOfUnitPtr = + _lookup< + ffi.NativeFunction< + CFIndex Function( + CFCalendarRef, + CFOptionFlags, + CFOptionFlags, + CFAbsoluteTime, + ) + > + >('CFCalendarGetOrdinalityOfUnit'); + late final _CFCalendarGetOrdinalityOfUnit = + _CFCalendarGetOrdinalityOfUnitPtr.asFunction< + int Function(CFCalendarRef, int, int, double) + >(); DartBoolean CFCalendarGetTimeRangeOfUnit( CFCalendarRef calendar, @@ -15686,68 +15311,77 @@ class NativeCupertinoHttp { ffi.Pointer startp, ffi.Pointer tip, ) { - return _CFCalendarGetTimeRangeOfUnit( - calendar, - unit.value, - at, - startp, - tip, - ); + return _CFCalendarGetTimeRangeOfUnit(calendar, unit.value, at, startp, tip); } - late final _CFCalendarGetTimeRangeOfUnitPtr = _lookup< - ffi.NativeFunction< + late final _CFCalendarGetTimeRangeOfUnitPtr = + _lookup< + ffi.NativeFunction< Boolean Function( - CFCalendarRef, - CFOptionFlags, - CFAbsoluteTime, - ffi.Pointer, - ffi.Pointer)>>('CFCalendarGetTimeRangeOfUnit'); + CFCalendarRef, + CFOptionFlags, + CFAbsoluteTime, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFCalendarGetTimeRangeOfUnit'); late final _CFCalendarGetTimeRangeOfUnit = _CFCalendarGetTimeRangeOfUnitPtr.asFunction< - int Function(CFCalendarRef, int, double, ffi.Pointer, - ffi.Pointer)>(); + int Function( + CFCalendarRef, + int, + double, + ffi.Pointer, + ffi.Pointer, + ) + >(); int CFCalendarComposeAbsoluteTime( CFCalendarRef calendar, ffi.Pointer at, ffi.Pointer componentDesc, ) { - return _CFCalendarComposeAbsoluteTime( - calendar, - at, - componentDesc, - ); + return _CFCalendarComposeAbsoluteTime(calendar, at, componentDesc); } - late final _CFCalendarComposeAbsoluteTimePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFCalendarRef, ffi.Pointer, - ffi.Pointer)>>('CFCalendarComposeAbsoluteTime'); + late final _CFCalendarComposeAbsoluteTimePtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFCalendarRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFCalendarComposeAbsoluteTime'); late final _CFCalendarComposeAbsoluteTime = _CFCalendarComposeAbsoluteTimePtr.asFunction< - int Function(CFCalendarRef, ffi.Pointer, - ffi.Pointer)>(); + int Function( + CFCalendarRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); int CFCalendarDecomposeAbsoluteTime( CFCalendarRef calendar, double at, ffi.Pointer componentDesc, ) { - return _CFCalendarDecomposeAbsoluteTime( - calendar, - at, - componentDesc, - ); + return _CFCalendarDecomposeAbsoluteTime(calendar, at, componentDesc); } - late final _CFCalendarDecomposeAbsoluteTimePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFCalendarRef, CFAbsoluteTime, - ffi.Pointer)>>('CFCalendarDecomposeAbsoluteTime'); + late final _CFCalendarDecomposeAbsoluteTimePtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFCalendarRef, CFAbsoluteTime, ffi.Pointer) + > + >('CFCalendarDecomposeAbsoluteTime'); late final _CFCalendarDecomposeAbsoluteTime = _CFCalendarDecomposeAbsoluteTimePtr.asFunction< - int Function(CFCalendarRef, double, ffi.Pointer)>(); + int Function(CFCalendarRef, double, ffi.Pointer) + >(); int CFCalendarAddComponents( CFCalendarRef calendar, @@ -15755,24 +15389,29 @@ class NativeCupertinoHttp { int options, ffi.Pointer componentDesc, ) { - return _CFCalendarAddComponents( - calendar, - at, - options, - componentDesc, - ); + return _CFCalendarAddComponents(calendar, at, options, componentDesc); } - late final _CFCalendarAddComponentsPtr = _lookup< - ffi.NativeFunction< + late final _CFCalendarAddComponentsPtr = + _lookup< + ffi.NativeFunction< Boolean Function( - CFCalendarRef, - ffi.Pointer, - CFOptionFlags, - ffi.Pointer)>>('CFCalendarAddComponents'); - late final _CFCalendarAddComponents = _CFCalendarAddComponentsPtr.asFunction< - int Function(CFCalendarRef, ffi.Pointer, int, - ffi.Pointer)>(); + CFCalendarRef, + ffi.Pointer, + CFOptionFlags, + ffi.Pointer, + ) + > + >('CFCalendarAddComponents'); + late final _CFCalendarAddComponents = + _CFCalendarAddComponentsPtr.asFunction< + int Function( + CFCalendarRef, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); int CFCalendarGetComponentDifference( CFCalendarRef calendar, @@ -15790,18 +15429,22 @@ class NativeCupertinoHttp { ); } - late final _CFCalendarGetComponentDifferencePtr = _lookup< - ffi.NativeFunction< + late final _CFCalendarGetComponentDifferencePtr = + _lookup< + ffi.NativeFunction< Boolean Function( - CFCalendarRef, - CFAbsoluteTime, - CFAbsoluteTime, - CFOptionFlags, - ffi.Pointer)>>('CFCalendarGetComponentDifference'); + CFCalendarRef, + CFAbsoluteTime, + CFAbsoluteTime, + CFOptionFlags, + ffi.Pointer, + ) + > + >('CFCalendarGetComponentDifference'); late final _CFCalendarGetComponentDifference = _CFCalendarGetComponentDifferencePtr.asFunction< - int Function( - CFCalendarRef, double, double, int, ffi.Pointer)>(); + int Function(CFCalendarRef, double, double, int, ffi.Pointer) + >(); CFStringRef CFDateFormatterCreateDateFormatFromTemplate( CFAllocatorRef allocator, @@ -15817,14 +15460,21 @@ class NativeCupertinoHttp { ); } - late final _CFDateFormatterCreateDateFormatFromTemplatePtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFStringRef, CFOptionFlags, - CFLocaleRef)>>('CFDateFormatterCreateDateFormatFromTemplate'); + late final _CFDateFormatterCreateDateFormatFromTemplatePtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + CFStringRef, + CFOptionFlags, + CFLocaleRef, + ) + > + >('CFDateFormatterCreateDateFormatFromTemplate'); late final _CFDateFormatterCreateDateFormatFromTemplate = _CFDateFormatterCreateDateFormatFromTemplatePtr.asFunction< - CFStringRef Function( - CFAllocatorRef, CFStringRef, int, CFLocaleRef)>(); + CFStringRef Function(CFAllocatorRef, CFStringRef, int, CFLocaleRef) + >(); int CFDateFormatterGetTypeID() { return _CFDateFormatterGetTypeID(); @@ -15832,7 +15482,8 @@ class NativeCupertinoHttp { late final _CFDateFormatterGetTypeIDPtr = _lookup>( - 'CFDateFormatterGetTypeID'); + 'CFDateFormatterGetTypeID', + ); late final _CFDateFormatterGetTypeID = _CFDateFormatterGetTypeIDPtr.asFunction(); @@ -15846,13 +15497,16 @@ class NativeCupertinoHttp { ); } - late final _CFDateFormatterCreateISO8601FormatterPtr = _lookup< - ffi.NativeFunction< - CFDateFormatterRef Function(CFAllocatorRef, - CFOptionFlags)>>('CFDateFormatterCreateISO8601Formatter'); + late final _CFDateFormatterCreateISO8601FormatterPtr = + _lookup< + ffi.NativeFunction< + CFDateFormatterRef Function(CFAllocatorRef, CFOptionFlags) + > + >('CFDateFormatterCreateISO8601Formatter'); late final _CFDateFormatterCreateISO8601Formatter = _CFDateFormatterCreateISO8601FormatterPtr.asFunction< - CFDateFormatterRef Function(CFAllocatorRef, int)>(); + CFDateFormatterRef Function(CFAllocatorRef, int) + >(); CFDateFormatterRef CFDateFormatterCreate( CFAllocatorRef allocator, @@ -15868,106 +15522,116 @@ class NativeCupertinoHttp { ); } - late final _CFDateFormatterCreatePtr = _lookup< - ffi.NativeFunction< - CFDateFormatterRef Function(CFAllocatorRef, CFLocaleRef, CFIndex, - CFIndex)>>('CFDateFormatterCreate'); - late final _CFDateFormatterCreate = _CFDateFormatterCreatePtr.asFunction< - CFDateFormatterRef Function(CFAllocatorRef, CFLocaleRef, int, int)>(); - - CFLocaleRef CFDateFormatterGetLocale( - CFDateFormatterRef formatter, - ) { - return _CFDateFormatterGetLocale( - formatter, - ); + late final _CFDateFormatterCreatePtr = + _lookup< + ffi.NativeFunction< + CFDateFormatterRef Function( + CFAllocatorRef, + CFLocaleRef, + CFIndex, + CFIndex, + ) + > + >('CFDateFormatterCreate'); + late final _CFDateFormatterCreate = + _CFDateFormatterCreatePtr.asFunction< + CFDateFormatterRef Function(CFAllocatorRef, CFLocaleRef, int, int) + >(); + + CFLocaleRef CFDateFormatterGetLocale(CFDateFormatterRef formatter) { + return _CFDateFormatterGetLocale(formatter); } late final _CFDateFormatterGetLocalePtr = _lookup>( - 'CFDateFormatterGetLocale'); - late final _CFDateFormatterGetLocale = _CFDateFormatterGetLocalePtr - .asFunction(); + 'CFDateFormatterGetLocale', + ); + late final _CFDateFormatterGetLocale = + _CFDateFormatterGetLocalePtr.asFunction< + CFLocaleRef Function(CFDateFormatterRef) + >(); CFDateFormatterStyle CFDateFormatterGetDateStyle( CFDateFormatterRef formatter, ) { - return CFDateFormatterStyle.fromValue(_CFDateFormatterGetDateStyle( - formatter, - )); + return CFDateFormatterStyle.fromValue( + _CFDateFormatterGetDateStyle(formatter), + ); } late final _CFDateFormatterGetDateStylePtr = _lookup>( - 'CFDateFormatterGetDateStyle'); - late final _CFDateFormatterGetDateStyle = _CFDateFormatterGetDateStylePtr - .asFunction(); + 'CFDateFormatterGetDateStyle', + ); + late final _CFDateFormatterGetDateStyle = + _CFDateFormatterGetDateStylePtr.asFunction< + int Function(CFDateFormatterRef) + >(); CFDateFormatterStyle CFDateFormatterGetTimeStyle( CFDateFormatterRef formatter, ) { - return CFDateFormatterStyle.fromValue(_CFDateFormatterGetTimeStyle( - formatter, - )); + return CFDateFormatterStyle.fromValue( + _CFDateFormatterGetTimeStyle(formatter), + ); } late final _CFDateFormatterGetTimeStylePtr = _lookup>( - 'CFDateFormatterGetTimeStyle'); - late final _CFDateFormatterGetTimeStyle = _CFDateFormatterGetTimeStylePtr - .asFunction(); + 'CFDateFormatterGetTimeStyle', + ); + late final _CFDateFormatterGetTimeStyle = + _CFDateFormatterGetTimeStylePtr.asFunction< + int Function(CFDateFormatterRef) + >(); - CFStringRef CFDateFormatterGetFormat( - CFDateFormatterRef formatter, - ) { - return _CFDateFormatterGetFormat( - formatter, - ); + CFStringRef CFDateFormatterGetFormat(CFDateFormatterRef formatter) { + return _CFDateFormatterGetFormat(formatter); } late final _CFDateFormatterGetFormatPtr = _lookup>( - 'CFDateFormatterGetFormat'); - late final _CFDateFormatterGetFormat = _CFDateFormatterGetFormatPtr - .asFunction(); + 'CFDateFormatterGetFormat', + ); + late final _CFDateFormatterGetFormat = + _CFDateFormatterGetFormatPtr.asFunction< + CFStringRef Function(CFDateFormatterRef) + >(); void CFDateFormatterSetFormat( CFDateFormatterRef formatter, CFStringRef formatString, ) { - return _CFDateFormatterSetFormat( - formatter, - formatString, - ); + return _CFDateFormatterSetFormat(formatter, formatString); } - late final _CFDateFormatterSetFormatPtr = _lookup< - ffi - .NativeFunction>( - 'CFDateFormatterSetFormat'); - late final _CFDateFormatterSetFormat = _CFDateFormatterSetFormatPtr - .asFunction(); + late final _CFDateFormatterSetFormatPtr = + _lookup< + ffi.NativeFunction + >('CFDateFormatterSetFormat'); + late final _CFDateFormatterSetFormat = + _CFDateFormatterSetFormatPtr.asFunction< + void Function(CFDateFormatterRef, CFStringRef) + >(); CFStringRef CFDateFormatterCreateStringWithDate( CFAllocatorRef allocator, CFDateFormatterRef formatter, CFDateRef date, ) { - return _CFDateFormatterCreateStringWithDate( - allocator, - formatter, - date, - ); + return _CFDateFormatterCreateStringWithDate(allocator, formatter, date); } - late final _CFDateFormatterCreateStringWithDatePtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, - CFDateRef)>>('CFDateFormatterCreateStringWithDate'); + late final _CFDateFormatterCreateStringWithDatePtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, CFDateRef) + > + >('CFDateFormatterCreateStringWithDate'); late final _CFDateFormatterCreateStringWithDate = _CFDateFormatterCreateStringWithDatePtr.asFunction< - CFStringRef Function( - CFAllocatorRef, CFDateFormatterRef, CFDateRef)>(); + CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, CFDateRef) + >(); CFStringRef CFDateFormatterCreateStringWithAbsoluteTime( CFAllocatorRef allocator, @@ -15981,13 +15645,20 @@ class NativeCupertinoHttp { ); } - late final _CFDateFormatterCreateStringWithAbsoluteTimePtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, - CFAbsoluteTime)>>('CFDateFormatterCreateStringWithAbsoluteTime'); + late final _CFDateFormatterCreateStringWithAbsoluteTimePtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + CFDateFormatterRef, + CFAbsoluteTime, + ) + > + >('CFDateFormatterCreateStringWithAbsoluteTime'); late final _CFDateFormatterCreateStringWithAbsoluteTime = _CFDateFormatterCreateStringWithAbsoluteTimePtr.asFunction< - CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, double)>(); + CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, double) + >(); CFDateRef CFDateFormatterCreateDateFromString( CFAllocatorRef allocator, @@ -16003,14 +15674,26 @@ class NativeCupertinoHttp { ); } - late final _CFDateFormatterCreateDateFromStringPtr = _lookup< - ffi.NativeFunction< - CFDateRef Function(CFAllocatorRef, CFDateFormatterRef, CFStringRef, - ffi.Pointer)>>('CFDateFormatterCreateDateFromString'); + late final _CFDateFormatterCreateDateFromStringPtr = + _lookup< + ffi.NativeFunction< + CFDateRef Function( + CFAllocatorRef, + CFDateFormatterRef, + CFStringRef, + ffi.Pointer, + ) + > + >('CFDateFormatterCreateDateFromString'); late final _CFDateFormatterCreateDateFromString = _CFDateFormatterCreateDateFromStringPtr.asFunction< - CFDateRef Function(CFAllocatorRef, CFDateFormatterRef, CFStringRef, - ffi.Pointer)>(); + CFDateRef Function( + CFAllocatorRef, + CFDateFormatterRef, + CFStringRef, + ffi.Pointer, + ) + >(); int CFDateFormatterGetAbsoluteTimeFromString( CFDateFormatterRef formatter, @@ -16026,51 +15709,63 @@ class NativeCupertinoHttp { ); } - late final _CFDateFormatterGetAbsoluteTimeFromStringPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFDateFormatterRef, CFStringRef, - ffi.Pointer, ffi.Pointer)>>( - 'CFDateFormatterGetAbsoluteTimeFromString'); + late final _CFDateFormatterGetAbsoluteTimeFromStringPtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFDateFormatterRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFDateFormatterGetAbsoluteTimeFromString'); late final _CFDateFormatterGetAbsoluteTimeFromString = _CFDateFormatterGetAbsoluteTimeFromStringPtr.asFunction< - int Function(CFDateFormatterRef, CFStringRef, ffi.Pointer, - ffi.Pointer)>(); + int Function( + CFDateFormatterRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); void CFDateFormatterSetProperty( CFDateFormatterRef formatter, CFStringRef key, CFTypeRef value, ) { - return _CFDateFormatterSetProperty( - formatter, - key, - value, - ); + return _CFDateFormatterSetProperty(formatter, key, value); } - late final _CFDateFormatterSetPropertyPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFDateFormatterRef, CFStringRef, - CFTypeRef)>>('CFDateFormatterSetProperty'); - late final _CFDateFormatterSetProperty = _CFDateFormatterSetPropertyPtr - .asFunction(); + late final _CFDateFormatterSetPropertyPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFDateFormatterRef, CFStringRef, CFTypeRef) + > + >('CFDateFormatterSetProperty'); + late final _CFDateFormatterSetProperty = + _CFDateFormatterSetPropertyPtr.asFunction< + void Function(CFDateFormatterRef, CFStringRef, CFTypeRef) + >(); CFTypeRef CFDateFormatterCopyProperty( CFDateFormatterRef formatter, CFDateFormatterKey key, ) { - return _CFDateFormatterCopyProperty( - formatter, - key, - ); + return _CFDateFormatterCopyProperty(formatter, key); } - late final _CFDateFormatterCopyPropertyPtr = _lookup< - ffi.NativeFunction< - CFTypeRef Function(CFDateFormatterRef, - CFDateFormatterKey)>>('CFDateFormatterCopyProperty'); - late final _CFDateFormatterCopyProperty = _CFDateFormatterCopyPropertyPtr - .asFunction(); + late final _CFDateFormatterCopyPropertyPtr = + _lookup< + ffi.NativeFunction< + CFTypeRef Function(CFDateFormatterRef, CFDateFormatterKey) + > + >('CFDateFormatterCopyProperty'); + late final _CFDateFormatterCopyProperty = + _CFDateFormatterCopyPropertyPtr.asFunction< + CFTypeRef Function(CFDateFormatterRef, CFDateFormatterKey) + >(); late final ffi.Pointer _kCFDateFormatterIsLenient = _lookup('kCFDateFormatterIsLenient'); @@ -16097,8 +15792,9 @@ class NativeCupertinoHttp { _kCFDateFormatterDefaultFormat.value; late final ffi.Pointer - _kCFDateFormatterTwoDigitStartDate = - _lookup('kCFDateFormatterTwoDigitStartDate'); + _kCFDateFormatterTwoDigitStartDate = _lookup( + 'kCFDateFormatterTwoDigitStartDate', + ); CFDateFormatterKey get kCFDateFormatterTwoDigitStartDate => _kCFDateFormatterTwoDigitStartDate.value; @@ -16128,8 +15824,9 @@ class NativeCupertinoHttp { _kCFDateFormatterMonthSymbols.value; late final ffi.Pointer - _kCFDateFormatterShortMonthSymbols = - _lookup('kCFDateFormatterShortMonthSymbols'); + _kCFDateFormatterShortMonthSymbols = _lookup( + 'kCFDateFormatterShortMonthSymbols', + ); CFDateFormatterKey get kCFDateFormatterShortMonthSymbols => _kCFDateFormatterShortMonthSymbols.value; @@ -16141,8 +15838,9 @@ class NativeCupertinoHttp { _kCFDateFormatterWeekdaySymbols.value; late final ffi.Pointer - _kCFDateFormatterShortWeekdaySymbols = - _lookup('kCFDateFormatterShortWeekdaySymbols'); + _kCFDateFormatterShortWeekdaySymbols = _lookup( + 'kCFDateFormatterShortWeekdaySymbols', + ); CFDateFormatterKey get kCFDateFormatterShortWeekdaySymbols => _kCFDateFormatterShortWeekdaySymbols.value; @@ -16166,61 +15864,67 @@ class NativeCupertinoHttp { _kCFDateFormatterLongEraSymbols.value; late final ffi.Pointer - _kCFDateFormatterVeryShortMonthSymbols = - _lookup('kCFDateFormatterVeryShortMonthSymbols'); + _kCFDateFormatterVeryShortMonthSymbols = _lookup( + 'kCFDateFormatterVeryShortMonthSymbols', + ); CFDateFormatterKey get kCFDateFormatterVeryShortMonthSymbols => _kCFDateFormatterVeryShortMonthSymbols.value; late final ffi.Pointer - _kCFDateFormatterStandaloneMonthSymbols = - _lookup('kCFDateFormatterStandaloneMonthSymbols'); + _kCFDateFormatterStandaloneMonthSymbols = _lookup( + 'kCFDateFormatterStandaloneMonthSymbols', + ); CFDateFormatterKey get kCFDateFormatterStandaloneMonthSymbols => _kCFDateFormatterStandaloneMonthSymbols.value; late final ffi.Pointer - _kCFDateFormatterShortStandaloneMonthSymbols = - _lookup( - 'kCFDateFormatterShortStandaloneMonthSymbols'); + _kCFDateFormatterShortStandaloneMonthSymbols = _lookup( + 'kCFDateFormatterShortStandaloneMonthSymbols', + ); CFDateFormatterKey get kCFDateFormatterShortStandaloneMonthSymbols => _kCFDateFormatterShortStandaloneMonthSymbols.value; late final ffi.Pointer - _kCFDateFormatterVeryShortStandaloneMonthSymbols = + _kCFDateFormatterVeryShortStandaloneMonthSymbols = _lookup( - 'kCFDateFormatterVeryShortStandaloneMonthSymbols'); + 'kCFDateFormatterVeryShortStandaloneMonthSymbols', + ); CFDateFormatterKey get kCFDateFormatterVeryShortStandaloneMonthSymbols => _kCFDateFormatterVeryShortStandaloneMonthSymbols.value; late final ffi.Pointer - _kCFDateFormatterVeryShortWeekdaySymbols = - _lookup('kCFDateFormatterVeryShortWeekdaySymbols'); + _kCFDateFormatterVeryShortWeekdaySymbols = _lookup( + 'kCFDateFormatterVeryShortWeekdaySymbols', + ); CFDateFormatterKey get kCFDateFormatterVeryShortWeekdaySymbols => _kCFDateFormatterVeryShortWeekdaySymbols.value; late final ffi.Pointer - _kCFDateFormatterStandaloneWeekdaySymbols = - _lookup('kCFDateFormatterStandaloneWeekdaySymbols'); + _kCFDateFormatterStandaloneWeekdaySymbols = _lookup( + 'kCFDateFormatterStandaloneWeekdaySymbols', + ); CFDateFormatterKey get kCFDateFormatterStandaloneWeekdaySymbols => _kCFDateFormatterStandaloneWeekdaySymbols.value; late final ffi.Pointer - _kCFDateFormatterShortStandaloneWeekdaySymbols = - _lookup( - 'kCFDateFormatterShortStandaloneWeekdaySymbols'); + _kCFDateFormatterShortStandaloneWeekdaySymbols = _lookup( + 'kCFDateFormatterShortStandaloneWeekdaySymbols', + ); CFDateFormatterKey get kCFDateFormatterShortStandaloneWeekdaySymbols => _kCFDateFormatterShortStandaloneWeekdaySymbols.value; late final ffi.Pointer - _kCFDateFormatterVeryShortStandaloneWeekdaySymbols = + _kCFDateFormatterVeryShortStandaloneWeekdaySymbols = _lookup( - 'kCFDateFormatterVeryShortStandaloneWeekdaySymbols'); + 'kCFDateFormatterVeryShortStandaloneWeekdaySymbols', + ); CFDateFormatterKey get kCFDateFormatterVeryShortStandaloneWeekdaySymbols => _kCFDateFormatterVeryShortStandaloneWeekdaySymbols.value; @@ -16232,49 +15936,54 @@ class NativeCupertinoHttp { _kCFDateFormatterQuarterSymbols.value; late final ffi.Pointer - _kCFDateFormatterShortQuarterSymbols = - _lookup('kCFDateFormatterShortQuarterSymbols'); + _kCFDateFormatterShortQuarterSymbols = _lookup( + 'kCFDateFormatterShortQuarterSymbols', + ); CFDateFormatterKey get kCFDateFormatterShortQuarterSymbols => _kCFDateFormatterShortQuarterSymbols.value; late final ffi.Pointer - _kCFDateFormatterStandaloneQuarterSymbols = - _lookup('kCFDateFormatterStandaloneQuarterSymbols'); + _kCFDateFormatterStandaloneQuarterSymbols = _lookup( + 'kCFDateFormatterStandaloneQuarterSymbols', + ); CFDateFormatterKey get kCFDateFormatterStandaloneQuarterSymbols => _kCFDateFormatterStandaloneQuarterSymbols.value; late final ffi.Pointer - _kCFDateFormatterShortStandaloneQuarterSymbols = - _lookup( - 'kCFDateFormatterShortStandaloneQuarterSymbols'); + _kCFDateFormatterShortStandaloneQuarterSymbols = _lookup( + 'kCFDateFormatterShortStandaloneQuarterSymbols', + ); CFDateFormatterKey get kCFDateFormatterShortStandaloneQuarterSymbols => _kCFDateFormatterShortStandaloneQuarterSymbols.value; late final ffi.Pointer - _kCFDateFormatterGregorianStartDate = - _lookup('kCFDateFormatterGregorianStartDate'); + _kCFDateFormatterGregorianStartDate = _lookup( + 'kCFDateFormatterGregorianStartDate', + ); CFDateFormatterKey get kCFDateFormatterGregorianStartDate => _kCFDateFormatterGregorianStartDate.value; late final ffi.Pointer - _kCFDateFormatterDoesRelativeDateFormattingKey = - _lookup( - 'kCFDateFormatterDoesRelativeDateFormattingKey'); + _kCFDateFormatterDoesRelativeDateFormattingKey = _lookup( + 'kCFDateFormatterDoesRelativeDateFormattingKey', + ); CFDateFormatterKey get kCFDateFormatterDoesRelativeDateFormattingKey => _kCFDateFormatterDoesRelativeDateFormattingKey.value; - late final ffi.Pointer _kCFBooleanTrue = - _lookup('kCFBooleanTrue'); + late final ffi.Pointer _kCFBooleanTrue = _lookup( + 'kCFBooleanTrue', + ); CFBooleanRef get kCFBooleanTrue => _kCFBooleanTrue.value; - late final ffi.Pointer _kCFBooleanFalse = - _lookup('kCFBooleanFalse'); + late final ffi.Pointer _kCFBooleanFalse = _lookup( + 'kCFBooleanFalse', + ); CFBooleanRef get kCFBooleanFalse => _kCFBooleanFalse.value; @@ -16287,17 +15996,14 @@ class NativeCupertinoHttp { late final _CFBooleanGetTypeID = _CFBooleanGetTypeIDPtr.asFunction(); - int CFBooleanGetValue( - CFBooleanRef boolean, - ) { - return _CFBooleanGetValue( - boolean, - ); + int CFBooleanGetValue(CFBooleanRef boolean) { + return _CFBooleanGetValue(boolean); } late final _CFBooleanGetValuePtr = _lookup>( - 'CFBooleanGetValue'); + 'CFBooleanGetValue', + ); late final _CFBooleanGetValue = _CFBooleanGetValuePtr.asFunction(); @@ -16311,8 +16017,9 @@ class NativeCupertinoHttp { CFNumberRef get kCFNumberNegativeInfinity => _kCFNumberNegativeInfinity.value; - late final ffi.Pointer _kCFNumberNaN = - _lookup('kCFNumberNaN'); + late final ffi.Pointer _kCFNumberNaN = _lookup( + 'kCFNumberNaN', + ); CFNumberRef get kCFNumberNaN => _kCFNumberNaN.value; @@ -16330,59 +16037,50 @@ class NativeCupertinoHttp { CFNumberType theType, ffi.Pointer valuePtr, ) { - return _CFNumberCreate( - allocator, - theType.value, - valuePtr, - ); + return _CFNumberCreate(allocator, theType.value, valuePtr); } - late final _CFNumberCreatePtr = _lookup< - ffi.NativeFunction< - CFNumberRef Function(CFAllocatorRef, CFIndex, - ffi.Pointer)>>('CFNumberCreate'); - late final _CFNumberCreate = _CFNumberCreatePtr.asFunction< - CFNumberRef Function(CFAllocatorRef, int, ffi.Pointer)>(); + late final _CFNumberCreatePtr = + _lookup< + ffi.NativeFunction< + CFNumberRef Function(CFAllocatorRef, CFIndex, ffi.Pointer) + > + >('CFNumberCreate'); + late final _CFNumberCreate = + _CFNumberCreatePtr.asFunction< + CFNumberRef Function(CFAllocatorRef, int, ffi.Pointer) + >(); - CFNumberType CFNumberGetType( - CFNumberRef number, - ) { - return CFNumberType.fromValue(_CFNumberGetType( - number, - )); + CFNumberType CFNumberGetType(CFNumberRef number) { + return CFNumberType.fromValue(_CFNumberGetType(number)); } late final _CFNumberGetTypePtr = _lookup>( - 'CFNumberGetType'); + 'CFNumberGetType', + ); late final _CFNumberGetType = _CFNumberGetTypePtr.asFunction(); - int CFNumberGetByteSize( - CFNumberRef number, - ) { - return _CFNumberGetByteSize( - number, - ); + int CFNumberGetByteSize(CFNumberRef number) { + return _CFNumberGetByteSize(number); } late final _CFNumberGetByteSizePtr = _lookup>( - 'CFNumberGetByteSize'); + 'CFNumberGetByteSize', + ); late final _CFNumberGetByteSize = _CFNumberGetByteSizePtr.asFunction(); - int CFNumberIsFloatType( - CFNumberRef number, - ) { - return _CFNumberIsFloatType( - number, - ); + int CFNumberIsFloatType(CFNumberRef number) { + return _CFNumberIsFloatType(number); } late final _CFNumberIsFloatTypePtr = _lookup>( - 'CFNumberIsFloatType'); + 'CFNumberIsFloatType', + ); late final _CFNumberIsFloatType = _CFNumberIsFloatTypePtr.asFunction(); @@ -16391,38 +16089,40 @@ class NativeCupertinoHttp { CFNumberType theType, ffi.Pointer valuePtr, ) { - return _CFNumberGetValue( - number, - theType.value, - valuePtr, - ); + return _CFNumberGetValue(number, theType.value, valuePtr); } - late final _CFNumberGetValuePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFNumberRef, CFIndex, - ffi.Pointer)>>('CFNumberGetValue'); - late final _CFNumberGetValue = _CFNumberGetValuePtr.asFunction< - int Function(CFNumberRef, int, ffi.Pointer)>(); + late final _CFNumberGetValuePtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFNumberRef, CFIndex, ffi.Pointer) + > + >('CFNumberGetValue'); + late final _CFNumberGetValue = + _CFNumberGetValuePtr.asFunction< + int Function(CFNumberRef, int, ffi.Pointer) + >(); CFComparisonResult CFNumberCompare( CFNumberRef number, CFNumberRef otherNumber, ffi.Pointer context, ) { - return CFComparisonResult.fromValue(_CFNumberCompare( - number, - otherNumber, - context, - )); + return CFComparisonResult.fromValue( + _CFNumberCompare(number, otherNumber, context), + ); } - late final _CFNumberComparePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFNumberRef, CFNumberRef, - ffi.Pointer)>>('CFNumberCompare'); - late final _CFNumberCompare = _CFNumberComparePtr.asFunction< - int Function(CFNumberRef, CFNumberRef, ffi.Pointer)>(); + late final _CFNumberComparePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFNumberRef, CFNumberRef, ffi.Pointer) + > + >('CFNumberCompare'); + late final _CFNumberCompare = + _CFNumberComparePtr.asFunction< + int Function(CFNumberRef, CFNumberRef, ffi.Pointer) + >(); int CFNumberFormatterGetTypeID() { return _CFNumberFormatterGetTypeID(); @@ -16430,7 +16130,8 @@ class NativeCupertinoHttp { late final _CFNumberFormatterGetTypeIDPtr = _lookup>( - 'CFNumberFormatterGetTypeID'); + 'CFNumberFormatterGetTypeID', + ); late final _CFNumberFormatterGetTypeID = _CFNumberFormatterGetTypeIDPtr.asFunction(); @@ -16439,78 +16140,78 @@ class NativeCupertinoHttp { CFLocaleRef locale, CFNumberFormatterStyle style, ) { - return _CFNumberFormatterCreate( - allocator, - locale, - style.value, - ); + return _CFNumberFormatterCreate(allocator, locale, style.value); } - late final _CFNumberFormatterCreatePtr = _lookup< - ffi.NativeFunction< - CFNumberFormatterRef Function(CFAllocatorRef, CFLocaleRef, - CFIndex)>>('CFNumberFormatterCreate'); - late final _CFNumberFormatterCreate = _CFNumberFormatterCreatePtr.asFunction< - CFNumberFormatterRef Function(CFAllocatorRef, CFLocaleRef, int)>(); + late final _CFNumberFormatterCreatePtr = + _lookup< + ffi.NativeFunction< + CFNumberFormatterRef Function(CFAllocatorRef, CFLocaleRef, CFIndex) + > + >('CFNumberFormatterCreate'); + late final _CFNumberFormatterCreate = + _CFNumberFormatterCreatePtr.asFunction< + CFNumberFormatterRef Function(CFAllocatorRef, CFLocaleRef, int) + >(); - CFLocaleRef CFNumberFormatterGetLocale( - CFNumberFormatterRef formatter, - ) { - return _CFNumberFormatterGetLocale( - formatter, - ); + CFLocaleRef CFNumberFormatterGetLocale(CFNumberFormatterRef formatter) { + return _CFNumberFormatterGetLocale(formatter); } late final _CFNumberFormatterGetLocalePtr = _lookup>( - 'CFNumberFormatterGetLocale'); - late final _CFNumberFormatterGetLocale = _CFNumberFormatterGetLocalePtr - .asFunction(); + 'CFNumberFormatterGetLocale', + ); + late final _CFNumberFormatterGetLocale = + _CFNumberFormatterGetLocalePtr.asFunction< + CFLocaleRef Function(CFNumberFormatterRef) + >(); CFNumberFormatterStyle CFNumberFormatterGetStyle( CFNumberFormatterRef formatter, ) { - return CFNumberFormatterStyle.fromValue(_CFNumberFormatterGetStyle( - formatter, - )); + return CFNumberFormatterStyle.fromValue( + _CFNumberFormatterGetStyle(formatter), + ); } late final _CFNumberFormatterGetStylePtr = _lookup>( - 'CFNumberFormatterGetStyle'); - late final _CFNumberFormatterGetStyle = _CFNumberFormatterGetStylePtr - .asFunction(); + 'CFNumberFormatterGetStyle', + ); + late final _CFNumberFormatterGetStyle = + _CFNumberFormatterGetStylePtr.asFunction< + int Function(CFNumberFormatterRef) + >(); - CFStringRef CFNumberFormatterGetFormat( - CFNumberFormatterRef formatter, - ) { - return _CFNumberFormatterGetFormat( - formatter, - ); + CFStringRef CFNumberFormatterGetFormat(CFNumberFormatterRef formatter) { + return _CFNumberFormatterGetFormat(formatter); } late final _CFNumberFormatterGetFormatPtr = _lookup>( - 'CFNumberFormatterGetFormat'); - late final _CFNumberFormatterGetFormat = _CFNumberFormatterGetFormatPtr - .asFunction(); + 'CFNumberFormatterGetFormat', + ); + late final _CFNumberFormatterGetFormat = + _CFNumberFormatterGetFormatPtr.asFunction< + CFStringRef Function(CFNumberFormatterRef) + >(); void CFNumberFormatterSetFormat( CFNumberFormatterRef formatter, CFStringRef formatString, ) { - return _CFNumberFormatterSetFormat( - formatter, - formatString, - ); + return _CFNumberFormatterSetFormat(formatter, formatString); } - late final _CFNumberFormatterSetFormatPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFNumberFormatterRef, - CFStringRef)>>('CFNumberFormatterSetFormat'); - late final _CFNumberFormatterSetFormat = _CFNumberFormatterSetFormatPtr - .asFunction(); + late final _CFNumberFormatterSetFormatPtr = + _lookup< + ffi.NativeFunction + >('CFNumberFormatterSetFormat'); + late final _CFNumberFormatterSetFormat = + _CFNumberFormatterSetFormatPtr.asFunction< + void Function(CFNumberFormatterRef, CFStringRef) + >(); CFStringRef CFNumberFormatterCreateStringWithNumber( CFAllocatorRef allocator, @@ -16524,14 +16225,20 @@ class NativeCupertinoHttp { ); } - late final _CFNumberFormatterCreateStringWithNumberPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFNumberFormatterRef, - CFNumberRef)>>('CFNumberFormatterCreateStringWithNumber'); + late final _CFNumberFormatterCreateStringWithNumberPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + CFNumberFormatterRef, + CFNumberRef, + ) + > + >('CFNumberFormatterCreateStringWithNumber'); late final _CFNumberFormatterCreateStringWithNumber = _CFNumberFormatterCreateStringWithNumberPtr.asFunction< - CFStringRef Function( - CFAllocatorRef, CFNumberFormatterRef, CFNumberRef)>(); + CFStringRef Function(CFAllocatorRef, CFNumberFormatterRef, CFNumberRef) + >(); CFStringRef CFNumberFormatterCreateStringWithValue( CFAllocatorRef allocator, @@ -16547,15 +16254,26 @@ class NativeCupertinoHttp { ); } - late final _CFNumberFormatterCreateStringWithValuePtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFNumberFormatterRef, - CFIndex, ffi.Pointer)>>( - 'CFNumberFormatterCreateStringWithValue'); + late final _CFNumberFormatterCreateStringWithValuePtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + CFNumberFormatterRef, + CFIndex, + ffi.Pointer, + ) + > + >('CFNumberFormatterCreateStringWithValue'); late final _CFNumberFormatterCreateStringWithValue = _CFNumberFormatterCreateStringWithValuePtr.asFunction< - CFStringRef Function(CFAllocatorRef, CFNumberFormatterRef, int, - ffi.Pointer)>(); + CFStringRef Function( + CFAllocatorRef, + CFNumberFormatterRef, + int, + ffi.Pointer, + ) + >(); CFNumberRef CFNumberFormatterCreateNumberFromString( CFAllocatorRef allocator, @@ -16573,18 +16291,28 @@ class NativeCupertinoHttp { ); } - late final _CFNumberFormatterCreateNumberFromStringPtr = _lookup< - ffi.NativeFunction< + late final _CFNumberFormatterCreateNumberFromStringPtr = + _lookup< + ffi.NativeFunction< CFNumberRef Function( - CFAllocatorRef, - CFNumberFormatterRef, - CFStringRef, - ffi.Pointer, - CFOptionFlags)>>('CFNumberFormatterCreateNumberFromString'); + CFAllocatorRef, + CFNumberFormatterRef, + CFStringRef, + ffi.Pointer, + CFOptionFlags, + ) + > + >('CFNumberFormatterCreateNumberFromString'); late final _CFNumberFormatterCreateNumberFromString = _CFNumberFormatterCreateNumberFromStringPtr.asFunction< - CFNumberRef Function(CFAllocatorRef, CFNumberFormatterRef, - CFStringRef, ffi.Pointer, int)>(); + CFNumberRef Function( + CFAllocatorRef, + CFNumberFormatterRef, + CFStringRef, + ffi.Pointer, + int, + ) + >(); DartBoolean CFNumberFormatterGetValueFromString( CFNumberFormatterRef formatter, @@ -16602,57 +16330,69 @@ class NativeCupertinoHttp { ); } - late final _CFNumberFormatterGetValueFromStringPtr = _lookup< - ffi.NativeFunction< + late final _CFNumberFormatterGetValueFromStringPtr = + _lookup< + ffi.NativeFunction< Boolean Function( - CFNumberFormatterRef, - CFStringRef, - ffi.Pointer, - CFIndex, - ffi.Pointer)>>('CFNumberFormatterGetValueFromString'); + CFNumberFormatterRef, + CFStringRef, + ffi.Pointer, + CFIndex, + ffi.Pointer, + ) + > + >('CFNumberFormatterGetValueFromString'); late final _CFNumberFormatterGetValueFromString = _CFNumberFormatterGetValueFromStringPtr.asFunction< - int Function(CFNumberFormatterRef, CFStringRef, ffi.Pointer, - int, ffi.Pointer)>(); + int Function( + CFNumberFormatterRef, + CFStringRef, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); void CFNumberFormatterSetProperty( CFNumberFormatterRef formatter, CFNumberFormatterKey key, CFTypeRef value, ) { - return _CFNumberFormatterSetProperty( - formatter, - key, - value, - ); + return _CFNumberFormatterSetProperty(formatter, key, value); } - late final _CFNumberFormatterSetPropertyPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFNumberFormatterRef, CFNumberFormatterKey, - CFTypeRef)>>('CFNumberFormatterSetProperty'); + late final _CFNumberFormatterSetPropertyPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFNumberFormatterRef, + CFNumberFormatterKey, + CFTypeRef, + ) + > + >('CFNumberFormatterSetProperty'); late final _CFNumberFormatterSetProperty = _CFNumberFormatterSetPropertyPtr.asFunction< - void Function( - CFNumberFormatterRef, CFNumberFormatterKey, CFTypeRef)>(); + void Function(CFNumberFormatterRef, CFNumberFormatterKey, CFTypeRef) + >(); CFTypeRef CFNumberFormatterCopyProperty( CFNumberFormatterRef formatter, CFNumberFormatterKey key, ) { - return _CFNumberFormatterCopyProperty( - formatter, - key, - ); + return _CFNumberFormatterCopyProperty(formatter, key); } - late final _CFNumberFormatterCopyPropertyPtr = _lookup< - ffi.NativeFunction< - CFTypeRef Function(CFNumberFormatterRef, - CFNumberFormatterKey)>>('CFNumberFormatterCopyProperty'); + late final _CFNumberFormatterCopyPropertyPtr = + _lookup< + ffi.NativeFunction< + CFTypeRef Function(CFNumberFormatterRef, CFNumberFormatterKey) + > + >('CFNumberFormatterCopyProperty'); late final _CFNumberFormatterCopyProperty = _CFNumberFormatterCopyPropertyPtr.asFunction< - CFTypeRef Function(CFNumberFormatterRef, CFNumberFormatterKey)>(); + CFTypeRef Function(CFNumberFormatterRef, CFNumberFormatterKey) + >(); late final ffi.Pointer _kCFNumberFormatterCurrencyCode = _lookup('kCFNumberFormatterCurrencyCode'); @@ -16661,45 +16401,49 @@ class NativeCupertinoHttp { _kCFNumberFormatterCurrencyCode.value; late final ffi.Pointer - _kCFNumberFormatterDecimalSeparator = - _lookup('kCFNumberFormatterDecimalSeparator'); + _kCFNumberFormatterDecimalSeparator = _lookup( + 'kCFNumberFormatterDecimalSeparator', + ); CFNumberFormatterKey get kCFNumberFormatterDecimalSeparator => _kCFNumberFormatterDecimalSeparator.value; late final ffi.Pointer - _kCFNumberFormatterCurrencyDecimalSeparator = - _lookup( - 'kCFNumberFormatterCurrencyDecimalSeparator'); + _kCFNumberFormatterCurrencyDecimalSeparator = _lookup( + 'kCFNumberFormatterCurrencyDecimalSeparator', + ); CFNumberFormatterKey get kCFNumberFormatterCurrencyDecimalSeparator => _kCFNumberFormatterCurrencyDecimalSeparator.value; late final ffi.Pointer - _kCFNumberFormatterAlwaysShowDecimalSeparator = - _lookup( - 'kCFNumberFormatterAlwaysShowDecimalSeparator'); + _kCFNumberFormatterAlwaysShowDecimalSeparator = _lookup( + 'kCFNumberFormatterAlwaysShowDecimalSeparator', + ); CFNumberFormatterKey get kCFNumberFormatterAlwaysShowDecimalSeparator => _kCFNumberFormatterAlwaysShowDecimalSeparator.value; late final ffi.Pointer - _kCFNumberFormatterGroupingSeparator = - _lookup('kCFNumberFormatterGroupingSeparator'); + _kCFNumberFormatterGroupingSeparator = _lookup( + 'kCFNumberFormatterGroupingSeparator', + ); CFNumberFormatterKey get kCFNumberFormatterGroupingSeparator => _kCFNumberFormatterGroupingSeparator.value; late final ffi.Pointer - _kCFNumberFormatterUseGroupingSeparator = - _lookup('kCFNumberFormatterUseGroupingSeparator'); + _kCFNumberFormatterUseGroupingSeparator = _lookup( + 'kCFNumberFormatterUseGroupingSeparator', + ); CFNumberFormatterKey get kCFNumberFormatterUseGroupingSeparator => _kCFNumberFormatterUseGroupingSeparator.value; late final ffi.Pointer - _kCFNumberFormatterPercentSymbol = - _lookup('kCFNumberFormatterPercentSymbol'); + _kCFNumberFormatterPercentSymbol = _lookup( + 'kCFNumberFormatterPercentSymbol', + ); CFNumberFormatterKey get kCFNumberFormatterPercentSymbol => _kCFNumberFormatterPercentSymbol.value; @@ -16717,8 +16461,9 @@ class NativeCupertinoHttp { _kCFNumberFormatterNaNSymbol.value; late final ffi.Pointer - _kCFNumberFormatterInfinitySymbol = - _lookup('kCFNumberFormatterInfinitySymbol'); + _kCFNumberFormatterInfinitySymbol = _lookup( + 'kCFNumberFormatterInfinitySymbol', + ); CFNumberFormatterKey get kCFNumberFormatterInfinitySymbol => _kCFNumberFormatterInfinitySymbol.value; @@ -16736,43 +16481,49 @@ class NativeCupertinoHttp { _kCFNumberFormatterPlusSign.value; late final ffi.Pointer - _kCFNumberFormatterCurrencySymbol = - _lookup('kCFNumberFormatterCurrencySymbol'); + _kCFNumberFormatterCurrencySymbol = _lookup( + 'kCFNumberFormatterCurrencySymbol', + ); CFNumberFormatterKey get kCFNumberFormatterCurrencySymbol => _kCFNumberFormatterCurrencySymbol.value; late final ffi.Pointer - _kCFNumberFormatterExponentSymbol = - _lookup('kCFNumberFormatterExponentSymbol'); + _kCFNumberFormatterExponentSymbol = _lookup( + 'kCFNumberFormatterExponentSymbol', + ); CFNumberFormatterKey get kCFNumberFormatterExponentSymbol => _kCFNumberFormatterExponentSymbol.value; late final ffi.Pointer - _kCFNumberFormatterMinIntegerDigits = - _lookup('kCFNumberFormatterMinIntegerDigits'); + _kCFNumberFormatterMinIntegerDigits = _lookup( + 'kCFNumberFormatterMinIntegerDigits', + ); CFNumberFormatterKey get kCFNumberFormatterMinIntegerDigits => _kCFNumberFormatterMinIntegerDigits.value; late final ffi.Pointer - _kCFNumberFormatterMaxIntegerDigits = - _lookup('kCFNumberFormatterMaxIntegerDigits'); + _kCFNumberFormatterMaxIntegerDigits = _lookup( + 'kCFNumberFormatterMaxIntegerDigits', + ); CFNumberFormatterKey get kCFNumberFormatterMaxIntegerDigits => _kCFNumberFormatterMaxIntegerDigits.value; late final ffi.Pointer - _kCFNumberFormatterMinFractionDigits = - _lookup('kCFNumberFormatterMinFractionDigits'); + _kCFNumberFormatterMinFractionDigits = _lookup( + 'kCFNumberFormatterMinFractionDigits', + ); CFNumberFormatterKey get kCFNumberFormatterMinFractionDigits => _kCFNumberFormatterMinFractionDigits.value; late final ffi.Pointer - _kCFNumberFormatterMaxFractionDigits = - _lookup('kCFNumberFormatterMaxFractionDigits'); + _kCFNumberFormatterMaxFractionDigits = _lookup( + 'kCFNumberFormatterMaxFractionDigits', + ); CFNumberFormatterKey get kCFNumberFormatterMaxFractionDigits => _kCFNumberFormatterMaxFractionDigits.value; @@ -16784,8 +16535,9 @@ class NativeCupertinoHttp { _kCFNumberFormatterGroupingSize.value; late final ffi.Pointer - _kCFNumberFormatterSecondaryGroupingSize = - _lookup('kCFNumberFormatterSecondaryGroupingSize'); + _kCFNumberFormatterSecondaryGroupingSize = _lookup( + 'kCFNumberFormatterSecondaryGroupingSize', + ); CFNumberFormatterKey get kCFNumberFormatterSecondaryGroupingSize => _kCFNumberFormatterSecondaryGroupingSize.value; @@ -16797,8 +16549,9 @@ class NativeCupertinoHttp { _kCFNumberFormatterRoundingMode.value; late final ffi.Pointer - _kCFNumberFormatterRoundingIncrement = - _lookup('kCFNumberFormatterRoundingIncrement'); + _kCFNumberFormatterRoundingIncrement = _lookup( + 'kCFNumberFormatterRoundingIncrement', + ); CFNumberFormatterKey get kCFNumberFormatterRoundingIncrement => _kCFNumberFormatterRoundingIncrement.value; @@ -16810,22 +16563,25 @@ class NativeCupertinoHttp { _kCFNumberFormatterFormatWidth.value; late final ffi.Pointer - _kCFNumberFormatterPaddingPosition = - _lookup('kCFNumberFormatterPaddingPosition'); + _kCFNumberFormatterPaddingPosition = _lookup( + 'kCFNumberFormatterPaddingPosition', + ); CFNumberFormatterKey get kCFNumberFormatterPaddingPosition => _kCFNumberFormatterPaddingPosition.value; late final ffi.Pointer - _kCFNumberFormatterPaddingCharacter = - _lookup('kCFNumberFormatterPaddingCharacter'); + _kCFNumberFormatterPaddingCharacter = _lookup( + 'kCFNumberFormatterPaddingCharacter', + ); CFNumberFormatterKey get kCFNumberFormatterPaddingCharacter => _kCFNumberFormatterPaddingCharacter.value; late final ffi.Pointer - _kCFNumberFormatterDefaultFormat = - _lookup('kCFNumberFormatterDefaultFormat'); + _kCFNumberFormatterDefaultFormat = _lookup( + 'kCFNumberFormatterDefaultFormat', + ); CFNumberFormatterKey get kCFNumberFormatterDefaultFormat => _kCFNumberFormatterDefaultFormat.value; @@ -16837,52 +16593,58 @@ class NativeCupertinoHttp { _kCFNumberFormatterMultiplier.value; late final ffi.Pointer - _kCFNumberFormatterPositivePrefix = - _lookup('kCFNumberFormatterPositivePrefix'); + _kCFNumberFormatterPositivePrefix = _lookup( + 'kCFNumberFormatterPositivePrefix', + ); CFNumberFormatterKey get kCFNumberFormatterPositivePrefix => _kCFNumberFormatterPositivePrefix.value; late final ffi.Pointer - _kCFNumberFormatterPositiveSuffix = - _lookup('kCFNumberFormatterPositiveSuffix'); + _kCFNumberFormatterPositiveSuffix = _lookup( + 'kCFNumberFormatterPositiveSuffix', + ); CFNumberFormatterKey get kCFNumberFormatterPositiveSuffix => _kCFNumberFormatterPositiveSuffix.value; late final ffi.Pointer - _kCFNumberFormatterNegativePrefix = - _lookup('kCFNumberFormatterNegativePrefix'); + _kCFNumberFormatterNegativePrefix = _lookup( + 'kCFNumberFormatterNegativePrefix', + ); CFNumberFormatterKey get kCFNumberFormatterNegativePrefix => _kCFNumberFormatterNegativePrefix.value; late final ffi.Pointer - _kCFNumberFormatterNegativeSuffix = - _lookup('kCFNumberFormatterNegativeSuffix'); + _kCFNumberFormatterNegativeSuffix = _lookup( + 'kCFNumberFormatterNegativeSuffix', + ); CFNumberFormatterKey get kCFNumberFormatterNegativeSuffix => _kCFNumberFormatterNegativeSuffix.value; late final ffi.Pointer - _kCFNumberFormatterPerMillSymbol = - _lookup('kCFNumberFormatterPerMillSymbol'); + _kCFNumberFormatterPerMillSymbol = _lookup( + 'kCFNumberFormatterPerMillSymbol', + ); CFNumberFormatterKey get kCFNumberFormatterPerMillSymbol => _kCFNumberFormatterPerMillSymbol.value; late final ffi.Pointer - _kCFNumberFormatterInternationalCurrencySymbol = + _kCFNumberFormatterInternationalCurrencySymbol = _lookup( - 'kCFNumberFormatterInternationalCurrencySymbol'); + 'kCFNumberFormatterInternationalCurrencySymbol', + ); CFNumberFormatterKey get kCFNumberFormatterInternationalCurrencySymbol => _kCFNumberFormatterInternationalCurrencySymbol.value; late final ffi.Pointer - _kCFNumberFormatterCurrencyGroupingSeparator = - _lookup( - 'kCFNumberFormatterCurrencyGroupingSeparator'); + _kCFNumberFormatterCurrencyGroupingSeparator = _lookup( + 'kCFNumberFormatterCurrencyGroupingSeparator', + ); CFNumberFormatterKey get kCFNumberFormatterCurrencyGroupingSeparator => _kCFNumberFormatterCurrencyGroupingSeparator.value; @@ -16894,29 +16656,33 @@ class NativeCupertinoHttp { _kCFNumberFormatterIsLenient.value; late final ffi.Pointer - _kCFNumberFormatterUseSignificantDigits = - _lookup('kCFNumberFormatterUseSignificantDigits'); + _kCFNumberFormatterUseSignificantDigits = _lookup( + 'kCFNumberFormatterUseSignificantDigits', + ); CFNumberFormatterKey get kCFNumberFormatterUseSignificantDigits => _kCFNumberFormatterUseSignificantDigits.value; late final ffi.Pointer - _kCFNumberFormatterMinSignificantDigits = - _lookup('kCFNumberFormatterMinSignificantDigits'); + _kCFNumberFormatterMinSignificantDigits = _lookup( + 'kCFNumberFormatterMinSignificantDigits', + ); CFNumberFormatterKey get kCFNumberFormatterMinSignificantDigits => _kCFNumberFormatterMinSignificantDigits.value; late final ffi.Pointer - _kCFNumberFormatterMaxSignificantDigits = - _lookup('kCFNumberFormatterMaxSignificantDigits'); + _kCFNumberFormatterMaxSignificantDigits = _lookup( + 'kCFNumberFormatterMaxSignificantDigits', + ); CFNumberFormatterKey get kCFNumberFormatterMaxSignificantDigits => _kCFNumberFormatterMaxSignificantDigits.value; late final ffi.Pointer - _kCFNumberFormatterMinGroupingDigits = - _lookup('kCFNumberFormatterMinGroupingDigits'); + _kCFNumberFormatterMinGroupingDigits = _lookup( + 'kCFNumberFormatterMinGroupingDigits', + ); CFNumberFormatterKey get kCFNumberFormatterMinGroupingDigits => _kCFNumberFormatterMinGroupingDigits.value; @@ -16933,15 +16699,24 @@ class NativeCupertinoHttp { ); } - late final _CFNumberFormatterGetDecimalInfoForCurrencyCodePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFStringRef, ffi.Pointer, - ffi.Pointer)>>( - 'CFNumberFormatterGetDecimalInfoForCurrencyCode'); + late final _CFNumberFormatterGetDecimalInfoForCurrencyCodePtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFNumberFormatterGetDecimalInfoForCurrencyCode'); late final _CFNumberFormatterGetDecimalInfoForCurrencyCode = _CFNumberFormatterGetDecimalInfoForCurrencyCodePtr.asFunction< - int Function( - CFStringRef, ffi.Pointer, ffi.Pointer)>(); + int Function( + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final ffi.Pointer _kCFPreferencesAnyApplication = _lookup('kCFPreferencesAnyApplication'); @@ -16997,18 +16772,17 @@ class NativeCupertinoHttp { CFStringRef key, CFStringRef applicationID, ) { - return _CFPreferencesCopyAppValue( - key, - applicationID, - ); + return _CFPreferencesCopyAppValue(key, applicationID); } - late final _CFPreferencesCopyAppValuePtr = _lookup< - ffi.NativeFunction< - CFPropertyListRef Function( - CFStringRef, CFStringRef)>>('CFPreferencesCopyAppValue'); - late final _CFPreferencesCopyAppValue = _CFPreferencesCopyAppValuePtr - .asFunction(); + late final _CFPreferencesCopyAppValuePtr = + _lookup< + ffi.NativeFunction + >('CFPreferencesCopyAppValue'); + late final _CFPreferencesCopyAppValue = + _CFPreferencesCopyAppValuePtr.asFunction< + CFPropertyListRef Function(CFStringRef, CFStringRef) + >(); int CFPreferencesGetAppBooleanValue( CFStringRef key, @@ -17022,13 +16796,16 @@ class NativeCupertinoHttp { ); } - late final _CFPreferencesGetAppBooleanValuePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFStringRef, CFStringRef, - ffi.Pointer)>>('CFPreferencesGetAppBooleanValue'); + late final _CFPreferencesGetAppBooleanValuePtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFStringRef, CFStringRef, ffi.Pointer) + > + >('CFPreferencesGetAppBooleanValue'); late final _CFPreferencesGetAppBooleanValue = _CFPreferencesGetAppBooleanValuePtr.asFunction< - int Function(CFStringRef, CFStringRef, ffi.Pointer)>(); + int Function(CFStringRef, CFStringRef, ffi.Pointer) + >(); int CFPreferencesGetAppIntegerValue( CFStringRef key, @@ -17042,78 +16819,76 @@ class NativeCupertinoHttp { ); } - late final _CFPreferencesGetAppIntegerValuePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFStringRef, CFStringRef, - ffi.Pointer)>>('CFPreferencesGetAppIntegerValue'); + late final _CFPreferencesGetAppIntegerValuePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFStringRef, CFStringRef, ffi.Pointer) + > + >('CFPreferencesGetAppIntegerValue'); late final _CFPreferencesGetAppIntegerValue = _CFPreferencesGetAppIntegerValuePtr.asFunction< - int Function(CFStringRef, CFStringRef, ffi.Pointer)>(); + int Function(CFStringRef, CFStringRef, ffi.Pointer) + >(); void CFPreferencesSetAppValue( CFStringRef key, CFPropertyListRef value, CFStringRef applicationID, ) { - return _CFPreferencesSetAppValue( - key, - value, - applicationID, - ); + return _CFPreferencesSetAppValue(key, value, applicationID); } - late final _CFPreferencesSetAppValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFStringRef, CFPropertyListRef, - CFStringRef)>>('CFPreferencesSetAppValue'); - late final _CFPreferencesSetAppValue = _CFPreferencesSetAppValuePtr - .asFunction(); + late final _CFPreferencesSetAppValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFStringRef, CFPropertyListRef, CFStringRef) + > + >('CFPreferencesSetAppValue'); + late final _CFPreferencesSetAppValue = + _CFPreferencesSetAppValuePtr.asFunction< + void Function(CFStringRef, CFPropertyListRef, CFStringRef) + >(); void CFPreferencesAddSuitePreferencesToApp( CFStringRef applicationID, CFStringRef suiteID, ) { - return _CFPreferencesAddSuitePreferencesToApp( - applicationID, - suiteID, - ); + return _CFPreferencesAddSuitePreferencesToApp(applicationID, suiteID); } late final _CFPreferencesAddSuitePreferencesToAppPtr = _lookup>( - 'CFPreferencesAddSuitePreferencesToApp'); + 'CFPreferencesAddSuitePreferencesToApp', + ); late final _CFPreferencesAddSuitePreferencesToApp = _CFPreferencesAddSuitePreferencesToAppPtr.asFunction< - void Function(CFStringRef, CFStringRef)>(); + void Function(CFStringRef, CFStringRef) + >(); void CFPreferencesRemoveSuitePreferencesFromApp( CFStringRef applicationID, CFStringRef suiteID, ) { - return _CFPreferencesRemoveSuitePreferencesFromApp( - applicationID, - suiteID, - ); + return _CFPreferencesRemoveSuitePreferencesFromApp(applicationID, suiteID); } late final _CFPreferencesRemoveSuitePreferencesFromAppPtr = _lookup>( - 'CFPreferencesRemoveSuitePreferencesFromApp'); + 'CFPreferencesRemoveSuitePreferencesFromApp', + ); late final _CFPreferencesRemoveSuitePreferencesFromApp = _CFPreferencesRemoveSuitePreferencesFromAppPtr.asFunction< - void Function(CFStringRef, CFStringRef)>(); + void Function(CFStringRef, CFStringRef) + >(); - int CFPreferencesAppSynchronize( - CFStringRef applicationID, - ) { - return _CFPreferencesAppSynchronize( - applicationID, - ); + int CFPreferencesAppSynchronize(CFStringRef applicationID) { + return _CFPreferencesAppSynchronize(applicationID); } late final _CFPreferencesAppSynchronizePtr = _lookup>( - 'CFPreferencesAppSynchronize'); + 'CFPreferencesAppSynchronize', + ); late final _CFPreferencesAppSynchronize = _CFPreferencesAppSynchronizePtr.asFunction(); @@ -17123,21 +16898,29 @@ class NativeCupertinoHttp { CFStringRef userName, CFStringRef hostName, ) { - return _CFPreferencesCopyValue( - key, - applicationID, - userName, - hostName, - ); + return _CFPreferencesCopyValue(key, applicationID, userName, hostName); } - late final _CFPreferencesCopyValuePtr = _lookup< - ffi.NativeFunction< - CFPropertyListRef Function(CFStringRef, CFStringRef, CFStringRef, - CFStringRef)>>('CFPreferencesCopyValue'); - late final _CFPreferencesCopyValue = _CFPreferencesCopyValuePtr.asFunction< - CFPropertyListRef Function( - CFStringRef, CFStringRef, CFStringRef, CFStringRef)>(); + late final _CFPreferencesCopyValuePtr = + _lookup< + ffi.NativeFunction< + CFPropertyListRef Function( + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + > + >('CFPreferencesCopyValue'); + late final _CFPreferencesCopyValue = + _CFPreferencesCopyValuePtr.asFunction< + CFPropertyListRef Function( + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + >(); CFDictionaryRef CFPreferencesCopyMultiple( CFArrayRef keysToFetch, @@ -17153,14 +16936,26 @@ class NativeCupertinoHttp { ); } - late final _CFPreferencesCopyMultiplePtr = _lookup< - ffi.NativeFunction< - CFDictionaryRef Function(CFArrayRef, CFStringRef, CFStringRef, - CFStringRef)>>('CFPreferencesCopyMultiple'); + late final _CFPreferencesCopyMultiplePtr = + _lookup< + ffi.NativeFunction< + CFDictionaryRef Function( + CFArrayRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + > + >('CFPreferencesCopyMultiple'); late final _CFPreferencesCopyMultiple = _CFPreferencesCopyMultiplePtr.asFunction< - CFDictionaryRef Function( - CFArrayRef, CFStringRef, CFStringRef, CFStringRef)>(); + CFDictionaryRef Function( + CFArrayRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + >(); void CFPreferencesSetValue( CFStringRef key, @@ -17178,13 +16973,28 @@ class NativeCupertinoHttp { ); } - late final _CFPreferencesSetValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFStringRef, CFPropertyListRef, CFStringRef, - CFStringRef, CFStringRef)>>('CFPreferencesSetValue'); - late final _CFPreferencesSetValue = _CFPreferencesSetValuePtr.asFunction< - void Function(CFStringRef, CFPropertyListRef, CFStringRef, CFStringRef, - CFStringRef)>(); + late final _CFPreferencesSetValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFStringRef, + CFPropertyListRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + > + >('CFPreferencesSetValue'); + late final _CFPreferencesSetValue = + _CFPreferencesSetValuePtr.asFunction< + void Function( + CFStringRef, + CFPropertyListRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + >(); void CFPreferencesSetMultiple( CFDictionaryRef keysToSet, @@ -17202,85 +17012,98 @@ class NativeCupertinoHttp { ); } - late final _CFPreferencesSetMultiplePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFDictionaryRef, CFArrayRef, CFStringRef, - CFStringRef, CFStringRef)>>('CFPreferencesSetMultiple'); + late final _CFPreferencesSetMultiplePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFDictionaryRef, + CFArrayRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + > + >('CFPreferencesSetMultiple'); late final _CFPreferencesSetMultiple = _CFPreferencesSetMultiplePtr.asFunction< - void Function(CFDictionaryRef, CFArrayRef, CFStringRef, CFStringRef, - CFStringRef)>(); + void Function( + CFDictionaryRef, + CFArrayRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + >(); int CFPreferencesSynchronize( CFStringRef applicationID, CFStringRef userName, CFStringRef hostName, ) { - return _CFPreferencesSynchronize( - applicationID, - userName, - hostName, - ); + return _CFPreferencesSynchronize(applicationID, userName, hostName); } - late final _CFPreferencesSynchronizePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFStringRef, CFStringRef, - CFStringRef)>>('CFPreferencesSynchronize'); - late final _CFPreferencesSynchronize = _CFPreferencesSynchronizePtr - .asFunction(); + late final _CFPreferencesSynchronizePtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFStringRef, CFStringRef, CFStringRef) + > + >('CFPreferencesSynchronize'); + late final _CFPreferencesSynchronize = + _CFPreferencesSynchronizePtr.asFunction< + int Function(CFStringRef, CFStringRef, CFStringRef) + >(); CFArrayRef CFPreferencesCopyApplicationList( CFStringRef userName, CFStringRef hostName, ) { - return _CFPreferencesCopyApplicationList( - userName, - hostName, - ); + return _CFPreferencesCopyApplicationList(userName, hostName); } - late final _CFPreferencesCopyApplicationListPtr = _lookup< - ffi.NativeFunction>( - 'CFPreferencesCopyApplicationList'); + late final _CFPreferencesCopyApplicationListPtr = + _lookup< + ffi.NativeFunction + >('CFPreferencesCopyApplicationList'); late final _CFPreferencesCopyApplicationList = _CFPreferencesCopyApplicationListPtr.asFunction< - CFArrayRef Function(CFStringRef, CFStringRef)>(); + CFArrayRef Function(CFStringRef, CFStringRef) + >(); CFArrayRef CFPreferencesCopyKeyList( CFStringRef applicationID, CFStringRef userName, CFStringRef hostName, ) { - return _CFPreferencesCopyKeyList( - applicationID, - userName, - hostName, - ); + return _CFPreferencesCopyKeyList(applicationID, userName, hostName); } - late final _CFPreferencesCopyKeyListPtr = _lookup< - ffi.NativeFunction< - CFArrayRef Function(CFStringRef, CFStringRef, - CFStringRef)>>('CFPreferencesCopyKeyList'); - late final _CFPreferencesCopyKeyList = _CFPreferencesCopyKeyListPtr - .asFunction(); + late final _CFPreferencesCopyKeyListPtr = + _lookup< + ffi.NativeFunction< + CFArrayRef Function(CFStringRef, CFStringRef, CFStringRef) + > + >('CFPreferencesCopyKeyList'); + late final _CFPreferencesCopyKeyList = + _CFPreferencesCopyKeyListPtr.asFunction< + CFArrayRef Function(CFStringRef, CFStringRef, CFStringRef) + >(); int CFPreferencesAppValueIsForced( CFStringRef key, CFStringRef applicationID, ) { - return _CFPreferencesAppValueIsForced( - key, - applicationID, - ); + return _CFPreferencesAppValueIsForced(key, applicationID); } late final _CFPreferencesAppValueIsForcedPtr = _lookup>( - 'CFPreferencesAppValueIsForced'); - late final _CFPreferencesAppValueIsForced = _CFPreferencesAppValueIsForcedPtr - .asFunction(); + 'CFPreferencesAppValueIsForced', + ); + late final _CFPreferencesAppValueIsForced = + _CFPreferencesAppValueIsForcedPtr.asFunction< + int Function(CFStringRef, CFStringRef) + >(); int CFURLGetTypeID() { return _CFURLGetTypeID(); @@ -17306,13 +17129,28 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateWithBytesPtr = _lookup< - ffi.NativeFunction< - CFURLRef Function(CFAllocatorRef, ffi.Pointer, CFIndex, - CFStringEncoding, CFURLRef)>>('CFURLCreateWithBytes'); - late final _CFURLCreateWithBytes = _CFURLCreateWithBytesPtr.asFunction< - CFURLRef Function( - CFAllocatorRef, ffi.Pointer, int, int, CFURLRef)>(); + late final _CFURLCreateWithBytesPtr = + _lookup< + ffi.NativeFunction< + CFURLRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + CFURLRef, + ) + > + >('CFURLCreateWithBytes'); + late final _CFURLCreateWithBytes = + _CFURLCreateWithBytesPtr.asFunction< + CFURLRef Function( + CFAllocatorRef, + ffi.Pointer, + int, + int, + CFURLRef, + ) + >(); CFDataRef CFURLCreateData( CFAllocatorRef allocator, @@ -17320,39 +17158,43 @@ class NativeCupertinoHttp { int encoding, int escapeWhitespace, ) { - return _CFURLCreateData( - allocator, - url, - encoding, - escapeWhitespace, - ); + return _CFURLCreateData(allocator, url, encoding, escapeWhitespace); } - late final _CFURLCreateDataPtr = _lookup< - ffi.NativeFunction< - CFDataRef Function(CFAllocatorRef, CFURLRef, CFStringEncoding, - Boolean)>>('CFURLCreateData'); - late final _CFURLCreateData = _CFURLCreateDataPtr.asFunction< - CFDataRef Function(CFAllocatorRef, CFURLRef, int, int)>(); + late final _CFURLCreateDataPtr = + _lookup< + ffi.NativeFunction< + CFDataRef Function( + CFAllocatorRef, + CFURLRef, + CFStringEncoding, + Boolean, + ) + > + >('CFURLCreateData'); + late final _CFURLCreateData = + _CFURLCreateDataPtr.asFunction< + CFDataRef Function(CFAllocatorRef, CFURLRef, int, int) + >(); CFURLRef CFURLCreateWithString( CFAllocatorRef allocator, CFStringRef URLString, CFURLRef baseURL, ) { - return _CFURLCreateWithString( - allocator, - URLString, - baseURL, - ); + return _CFURLCreateWithString(allocator, URLString, baseURL); } - late final _CFURLCreateWithStringPtr = _lookup< - ffi.NativeFunction< - CFURLRef Function( - CFAllocatorRef, CFStringRef, CFURLRef)>>('CFURLCreateWithString'); - late final _CFURLCreateWithString = _CFURLCreateWithStringPtr.asFunction< - CFURLRef Function(CFAllocatorRef, CFStringRef, CFURLRef)>(); + late final _CFURLCreateWithStringPtr = + _lookup< + ffi.NativeFunction< + CFURLRef Function(CFAllocatorRef, CFStringRef, CFURLRef) + > + >('CFURLCreateWithString'); + late final _CFURLCreateWithString = + _CFURLCreateWithStringPtr.asFunction< + CFURLRef Function(CFAllocatorRef, CFStringRef, CFURLRef) + >(); CFURLRef CFURLCreateAbsoluteURLWithBytes( CFAllocatorRef alloc, @@ -17372,19 +17214,30 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateAbsoluteURLWithBytesPtr = _lookup< - ffi.NativeFunction< + late final _CFURLCreateAbsoluteURLWithBytesPtr = + _lookup< + ffi.NativeFunction< CFURLRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFStringEncoding, - CFURLRef, - Boolean)>>('CFURLCreateAbsoluteURLWithBytes'); + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + CFURLRef, + Boolean, + ) + > + >('CFURLCreateAbsoluteURLWithBytes'); late final _CFURLCreateAbsoluteURLWithBytes = _CFURLCreateAbsoluteURLWithBytesPtr.asFunction< - CFURLRef Function( - CFAllocatorRef, ffi.Pointer, int, int, CFURLRef, int)>(); + CFURLRef Function( + CFAllocatorRef, + ffi.Pointer, + int, + int, + CFURLRef, + int, + ) + >(); CFURLRef CFURLCreateWithFileSystemPath( CFAllocatorRef allocator, @@ -17400,12 +17253,16 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateWithFileSystemPathPtr = _lookup< - ffi.NativeFunction< - CFURLRef Function(CFAllocatorRef, CFStringRef, CFIndex, - Boolean)>>('CFURLCreateWithFileSystemPath'); - late final _CFURLCreateWithFileSystemPath = _CFURLCreateWithFileSystemPathPtr - .asFunction(); + late final _CFURLCreateWithFileSystemPathPtr = + _lookup< + ffi.NativeFunction< + CFURLRef Function(CFAllocatorRef, CFStringRef, CFIndex, Boolean) + > + >('CFURLCreateWithFileSystemPath'); + late final _CFURLCreateWithFileSystemPath = + _CFURLCreateWithFileSystemPathPtr.asFunction< + CFURLRef Function(CFAllocatorRef, CFStringRef, int, int) + >(); CFURLRef CFURLCreateFromFileSystemRepresentation( CFAllocatorRef allocator, @@ -17421,13 +17278,21 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateFromFileSystemRepresentationPtr = _lookup< - ffi.NativeFunction< - CFURLRef Function(CFAllocatorRef, ffi.Pointer, CFIndex, - Boolean)>>('CFURLCreateFromFileSystemRepresentation'); + late final _CFURLCreateFromFileSystemRepresentationPtr = + _lookup< + ffi.NativeFunction< + CFURLRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + Boolean, + ) + > + >('CFURLCreateFromFileSystemRepresentation'); late final _CFURLCreateFromFileSystemRepresentation = _CFURLCreateFromFileSystemRepresentationPtr.asFunction< - CFURLRef Function(CFAllocatorRef, ffi.Pointer, int, int)>(); + CFURLRef Function(CFAllocatorRef, ffi.Pointer, int, int) + >(); CFURLRef CFURLCreateWithFileSystemPathRelativeToBase( CFAllocatorRef allocator, @@ -17445,13 +17310,22 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateWithFileSystemPathRelativeToBasePtr = _lookup< - ffi.NativeFunction< - CFURLRef Function(CFAllocatorRef, CFStringRef, CFIndex, Boolean, - CFURLRef)>>('CFURLCreateWithFileSystemPathRelativeToBase'); + late final _CFURLCreateWithFileSystemPathRelativeToBasePtr = + _lookup< + ffi.NativeFunction< + CFURLRef Function( + CFAllocatorRef, + CFStringRef, + CFIndex, + Boolean, + CFURLRef, + ) + > + >('CFURLCreateWithFileSystemPathRelativeToBase'); late final _CFURLCreateWithFileSystemPathRelativeToBase = _CFURLCreateWithFileSystemPathRelativeToBasePtr.asFunction< - CFURLRef Function(CFAllocatorRef, CFStringRef, int, int, CFURLRef)>(); + CFURLRef Function(CFAllocatorRef, CFStringRef, int, int, CFURLRef) + >(); CFURLRef CFURLCreateFromFileSystemRepresentationRelativeToBase( CFAllocatorRef allocator, @@ -17471,14 +17345,26 @@ class NativeCupertinoHttp { late final _CFURLCreateFromFileSystemRepresentationRelativeToBasePtr = _lookup< - ffi.NativeFunction< - CFURLRef Function(CFAllocatorRef, ffi.Pointer, CFIndex, - Boolean, CFURLRef)>>( - 'CFURLCreateFromFileSystemRepresentationRelativeToBase'); + ffi.NativeFunction< + CFURLRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + Boolean, + CFURLRef, + ) + > + >('CFURLCreateFromFileSystemRepresentationRelativeToBase'); late final _CFURLCreateFromFileSystemRepresentationRelativeToBase = _CFURLCreateFromFileSystemRepresentationRelativeToBasePtr.asFunction< - CFURLRef Function( - CFAllocatorRef, ffi.Pointer, int, int, CFURLRef)>(); + CFURLRef Function( + CFAllocatorRef, + ffi.Pointer, + int, + int, + CFURLRef, + ) + >(); int CFURLGetFileSystemRepresentation( CFURLRef url, @@ -17494,109 +17380,91 @@ class NativeCupertinoHttp { ); } - late final _CFURLGetFileSystemRepresentationPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFURLRef, Boolean, ffi.Pointer, - CFIndex)>>('CFURLGetFileSystemRepresentation'); + late final _CFURLGetFileSystemRepresentationPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFURLRef, Boolean, ffi.Pointer, CFIndex) + > + >('CFURLGetFileSystemRepresentation'); late final _CFURLGetFileSystemRepresentation = _CFURLGetFileSystemRepresentationPtr.asFunction< - int Function(CFURLRef, int, ffi.Pointer, int)>(); + int Function(CFURLRef, int, ffi.Pointer, int) + >(); - CFURLRef CFURLCopyAbsoluteURL( - CFURLRef relativeURL, - ) { - return _CFURLCopyAbsoluteURL( - relativeURL, - ); + CFURLRef CFURLCopyAbsoluteURL(CFURLRef relativeURL) { + return _CFURLCopyAbsoluteURL(relativeURL); } late final _CFURLCopyAbsoluteURLPtr = _lookup>( - 'CFURLCopyAbsoluteURL'); + 'CFURLCopyAbsoluteURL', + ); late final _CFURLCopyAbsoluteURL = _CFURLCopyAbsoluteURLPtr.asFunction(); - CFStringRef CFURLGetString( - CFURLRef anURL, - ) { - return _CFURLGetString( - anURL, - ); + CFStringRef CFURLGetString(CFURLRef anURL) { + return _CFURLGetString(anURL); } late final _CFURLGetStringPtr = _lookup>( - 'CFURLGetString'); + 'CFURLGetString', + ); late final _CFURLGetString = _CFURLGetStringPtr.asFunction(); - CFURLRef CFURLGetBaseURL( - CFURLRef anURL, - ) { - return _CFURLGetBaseURL( - anURL, - ); + CFURLRef CFURLGetBaseURL(CFURLRef anURL) { + return _CFURLGetBaseURL(anURL); } late final _CFURLGetBaseURLPtr = _lookup>( - 'CFURLGetBaseURL'); + 'CFURLGetBaseURL', + ); late final _CFURLGetBaseURL = _CFURLGetBaseURLPtr.asFunction(); - int CFURLCanBeDecomposed( - CFURLRef anURL, - ) { - return _CFURLCanBeDecomposed( - anURL, - ); + int CFURLCanBeDecomposed(CFURLRef anURL) { + return _CFURLCanBeDecomposed(anURL); } late final _CFURLCanBeDecomposedPtr = _lookup>( - 'CFURLCanBeDecomposed'); + 'CFURLCanBeDecomposed', + ); late final _CFURLCanBeDecomposed = _CFURLCanBeDecomposedPtr.asFunction(); - CFStringRef CFURLCopyScheme( - CFURLRef anURL, - ) { - return _CFURLCopyScheme( - anURL, - ); + CFStringRef CFURLCopyScheme(CFURLRef anURL) { + return _CFURLCopyScheme(anURL); } late final _CFURLCopySchemePtr = _lookup>( - 'CFURLCopyScheme'); + 'CFURLCopyScheme', + ); late final _CFURLCopyScheme = _CFURLCopySchemePtr.asFunction(); - CFStringRef CFURLCopyNetLocation( - CFURLRef anURL, - ) { - return _CFURLCopyNetLocation( - anURL, - ); + CFStringRef CFURLCopyNetLocation(CFURLRef anURL) { + return _CFURLCopyNetLocation(anURL); } late final _CFURLCopyNetLocationPtr = _lookup>( - 'CFURLCopyNetLocation'); + 'CFURLCopyNetLocation', + ); late final _CFURLCopyNetLocation = _CFURLCopyNetLocationPtr.asFunction(); - CFStringRef CFURLCopyPath( - CFURLRef anURL, - ) { - return _CFURLCopyPath( - anURL, - ); + CFStringRef CFURLCopyPath(CFURLRef anURL) { + return _CFURLCopyPath(anURL); } late final _CFURLCopyPathPtr = _lookup>( - 'CFURLCopyPath'); + 'CFURLCopyPath', + ); late final _CFURLCopyPath = _CFURLCopyPathPtr.asFunction(); @@ -17604,116 +17472,99 @@ class NativeCupertinoHttp { CFURLRef anURL, ffi.Pointer isAbsolute, ) { - return _CFURLCopyStrictPath( - anURL, - isAbsolute, - ); + return _CFURLCopyStrictPath(anURL, isAbsolute); } - late final _CFURLCopyStrictPathPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function( - CFURLRef, ffi.Pointer)>>('CFURLCopyStrictPath'); - late final _CFURLCopyStrictPath = _CFURLCopyStrictPathPtr.asFunction< - CFStringRef Function(CFURLRef, ffi.Pointer)>(); + late final _CFURLCopyStrictPathPtr = + _lookup< + ffi.NativeFunction)> + >('CFURLCopyStrictPath'); + late final _CFURLCopyStrictPath = + _CFURLCopyStrictPathPtr.asFunction< + CFStringRef Function(CFURLRef, ffi.Pointer) + >(); CFStringRef CFURLCopyFileSystemPath( CFURLRef anURL, CFURLPathStyle pathStyle, ) { - return _CFURLCopyFileSystemPath( - anURL, - pathStyle.value, - ); + return _CFURLCopyFileSystemPath(anURL, pathStyle.value); } late final _CFURLCopyFileSystemPathPtr = _lookup>( - 'CFURLCopyFileSystemPath'); - late final _CFURLCopyFileSystemPath = _CFURLCopyFileSystemPathPtr.asFunction< - CFStringRef Function(CFURLRef, int)>(); + 'CFURLCopyFileSystemPath', + ); + late final _CFURLCopyFileSystemPath = + _CFURLCopyFileSystemPathPtr.asFunction< + CFStringRef Function(CFURLRef, int) + >(); - int CFURLHasDirectoryPath( - CFURLRef anURL, - ) { - return _CFURLHasDirectoryPath( - anURL, - ); + int CFURLHasDirectoryPath(CFURLRef anURL) { + return _CFURLHasDirectoryPath(anURL); } late final _CFURLHasDirectoryPathPtr = _lookup>( - 'CFURLHasDirectoryPath'); + 'CFURLHasDirectoryPath', + ); late final _CFURLHasDirectoryPath = _CFURLHasDirectoryPathPtr.asFunction(); - CFStringRef CFURLCopyResourceSpecifier( - CFURLRef anURL, - ) { - return _CFURLCopyResourceSpecifier( - anURL, - ); + CFStringRef CFURLCopyResourceSpecifier(CFURLRef anURL) { + return _CFURLCopyResourceSpecifier(anURL); } late final _CFURLCopyResourceSpecifierPtr = _lookup>( - 'CFURLCopyResourceSpecifier'); - late final _CFURLCopyResourceSpecifier = _CFURLCopyResourceSpecifierPtr - .asFunction(); + 'CFURLCopyResourceSpecifier', + ); + late final _CFURLCopyResourceSpecifier = + _CFURLCopyResourceSpecifierPtr.asFunction< + CFStringRef Function(CFURLRef) + >(); - CFStringRef CFURLCopyHostName( - CFURLRef anURL, - ) { - return _CFURLCopyHostName( - anURL, - ); + CFStringRef CFURLCopyHostName(CFURLRef anURL) { + return _CFURLCopyHostName(anURL); } late final _CFURLCopyHostNamePtr = _lookup>( - 'CFURLCopyHostName'); + 'CFURLCopyHostName', + ); late final _CFURLCopyHostName = _CFURLCopyHostNamePtr.asFunction(); - int CFURLGetPortNumber( - CFURLRef anURL, - ) { - return _CFURLGetPortNumber( - anURL, - ); + int CFURLGetPortNumber(CFURLRef anURL) { + return _CFURLGetPortNumber(anURL); } late final _CFURLGetPortNumberPtr = _lookup>( - 'CFURLGetPortNumber'); + 'CFURLGetPortNumber', + ); late final _CFURLGetPortNumber = _CFURLGetPortNumberPtr.asFunction(); - CFStringRef CFURLCopyUserName( - CFURLRef anURL, - ) { - return _CFURLCopyUserName( - anURL, - ); + CFStringRef CFURLCopyUserName(CFURLRef anURL) { + return _CFURLCopyUserName(anURL); } late final _CFURLCopyUserNamePtr = _lookup>( - 'CFURLCopyUserName'); + 'CFURLCopyUserName', + ); late final _CFURLCopyUserName = _CFURLCopyUserNamePtr.asFunction(); - CFStringRef CFURLCopyPassword( - CFURLRef anURL, - ) { - return _CFURLCopyPassword( - anURL, - ); + CFStringRef CFURLCopyPassword(CFURLRef anURL) { + return _CFURLCopyPassword(anURL); } late final _CFURLCopyPasswordPtr = _lookup>( - 'CFURLCopyPassword'); + 'CFURLCopyPassword', + ); late final _CFURLCopyPassword = _CFURLCopyPasswordPtr.asFunction(); @@ -17721,75 +17572,71 @@ class NativeCupertinoHttp { CFURLRef anURL, CFStringRef charactersToLeaveEscaped, ) { - return _CFURLCopyParameterString( - anURL, - charactersToLeaveEscaped, - ); + return _CFURLCopyParameterString(anURL, charactersToLeaveEscaped); } late final _CFURLCopyParameterStringPtr = _lookup>( - 'CFURLCopyParameterString'); - late final _CFURLCopyParameterString = _CFURLCopyParameterStringPtr - .asFunction(); + 'CFURLCopyParameterString', + ); + late final _CFURLCopyParameterString = + _CFURLCopyParameterStringPtr.asFunction< + CFStringRef Function(CFURLRef, CFStringRef) + >(); CFStringRef CFURLCopyQueryString( CFURLRef anURL, CFStringRef charactersToLeaveEscaped, ) { - return _CFURLCopyQueryString( - anURL, - charactersToLeaveEscaped, - ); + return _CFURLCopyQueryString(anURL, charactersToLeaveEscaped); } late final _CFURLCopyQueryStringPtr = _lookup>( - 'CFURLCopyQueryString'); - late final _CFURLCopyQueryString = _CFURLCopyQueryStringPtr.asFunction< - CFStringRef Function(CFURLRef, CFStringRef)>(); + 'CFURLCopyQueryString', + ); + late final _CFURLCopyQueryString = + _CFURLCopyQueryStringPtr.asFunction< + CFStringRef Function(CFURLRef, CFStringRef) + >(); CFStringRef CFURLCopyFragment( CFURLRef anURL, CFStringRef charactersToLeaveEscaped, ) { - return _CFURLCopyFragment( - anURL, - charactersToLeaveEscaped, - ); + return _CFURLCopyFragment(anURL, charactersToLeaveEscaped); } late final _CFURLCopyFragmentPtr = _lookup>( - 'CFURLCopyFragment'); - late final _CFURLCopyFragment = _CFURLCopyFragmentPtr.asFunction< - CFStringRef Function(CFURLRef, CFStringRef)>(); + 'CFURLCopyFragment', + ); + late final _CFURLCopyFragment = + _CFURLCopyFragmentPtr.asFunction< + CFStringRef Function(CFURLRef, CFStringRef) + >(); - CFStringRef CFURLCopyLastPathComponent( - CFURLRef url, - ) { - return _CFURLCopyLastPathComponent( - url, - ); + CFStringRef CFURLCopyLastPathComponent(CFURLRef url) { + return _CFURLCopyLastPathComponent(url); } late final _CFURLCopyLastPathComponentPtr = _lookup>( - 'CFURLCopyLastPathComponent'); - late final _CFURLCopyLastPathComponent = _CFURLCopyLastPathComponentPtr - .asFunction(); + 'CFURLCopyLastPathComponent', + ); + late final _CFURLCopyLastPathComponent = + _CFURLCopyLastPathComponentPtr.asFunction< + CFStringRef Function(CFURLRef) + >(); - CFStringRef CFURLCopyPathExtension( - CFURLRef url, - ) { - return _CFURLCopyPathExtension( - url, - ); + CFStringRef CFURLCopyPathExtension(CFURLRef url) { + return _CFURLCopyPathExtension(url); } late final _CFURLCopyPathExtensionPtr = _lookup>( - 'CFURLCopyPathExtension'); + 'CFURLCopyPathExtension', + ); late final _CFURLCopyPathExtension = _CFURLCopyPathExtensionPtr.asFunction(); @@ -17807,86 +17654,82 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateCopyAppendingPathComponentPtr = _lookup< - ffi.NativeFunction< - CFURLRef Function(CFAllocatorRef, CFURLRef, CFStringRef, - Boolean)>>('CFURLCreateCopyAppendingPathComponent'); + late final _CFURLCreateCopyAppendingPathComponentPtr = + _lookup< + ffi.NativeFunction< + CFURLRef Function(CFAllocatorRef, CFURLRef, CFStringRef, Boolean) + > + >('CFURLCreateCopyAppendingPathComponent'); late final _CFURLCreateCopyAppendingPathComponent = _CFURLCreateCopyAppendingPathComponentPtr.asFunction< - CFURLRef Function(CFAllocatorRef, CFURLRef, CFStringRef, int)>(); + CFURLRef Function(CFAllocatorRef, CFURLRef, CFStringRef, int) + >(); CFURLRef CFURLCreateCopyDeletingLastPathComponent( CFAllocatorRef allocator, CFURLRef url, ) { - return _CFURLCreateCopyDeletingLastPathComponent( - allocator, - url, - ); + return _CFURLCreateCopyDeletingLastPathComponent(allocator, url); } late final _CFURLCreateCopyDeletingLastPathComponentPtr = _lookup>( - 'CFURLCreateCopyDeletingLastPathComponent'); + 'CFURLCreateCopyDeletingLastPathComponent', + ); late final _CFURLCreateCopyDeletingLastPathComponent = _CFURLCreateCopyDeletingLastPathComponentPtr.asFunction< - CFURLRef Function(CFAllocatorRef, CFURLRef)>(); + CFURLRef Function(CFAllocatorRef, CFURLRef) + >(); CFURLRef CFURLCreateCopyAppendingPathExtension( CFAllocatorRef allocator, CFURLRef url, CFStringRef extension$, ) { - return _CFURLCreateCopyAppendingPathExtension( - allocator, - url, - extension$, - ); + return _CFURLCreateCopyAppendingPathExtension(allocator, url, extension$); } - late final _CFURLCreateCopyAppendingPathExtensionPtr = _lookup< - ffi.NativeFunction< - CFURLRef Function(CFAllocatorRef, CFURLRef, - CFStringRef)>>('CFURLCreateCopyAppendingPathExtension'); + late final _CFURLCreateCopyAppendingPathExtensionPtr = + _lookup< + ffi.NativeFunction< + CFURLRef Function(CFAllocatorRef, CFURLRef, CFStringRef) + > + >('CFURLCreateCopyAppendingPathExtension'); late final _CFURLCreateCopyAppendingPathExtension = _CFURLCreateCopyAppendingPathExtensionPtr.asFunction< - CFURLRef Function(CFAllocatorRef, CFURLRef, CFStringRef)>(); + CFURLRef Function(CFAllocatorRef, CFURLRef, CFStringRef) + >(); CFURLRef CFURLCreateCopyDeletingPathExtension( CFAllocatorRef allocator, CFURLRef url, ) { - return _CFURLCreateCopyDeletingPathExtension( - allocator, - url, - ); + return _CFURLCreateCopyDeletingPathExtension(allocator, url); } late final _CFURLCreateCopyDeletingPathExtensionPtr = _lookup>( - 'CFURLCreateCopyDeletingPathExtension'); + 'CFURLCreateCopyDeletingPathExtension', + ); late final _CFURLCreateCopyDeletingPathExtension = _CFURLCreateCopyDeletingPathExtensionPtr.asFunction< - CFURLRef Function(CFAllocatorRef, CFURLRef)>(); + CFURLRef Function(CFAllocatorRef, CFURLRef) + >(); - int CFURLGetBytes( - CFURLRef url, - ffi.Pointer buffer, - int bufferLength, - ) { - return _CFURLGetBytes( - url, - buffer, - bufferLength, - ); + int CFURLGetBytes(CFURLRef url, ffi.Pointer buffer, int bufferLength) { + return _CFURLGetBytes(url, buffer, bufferLength); } - late final _CFURLGetBytesPtr = _lookup< - ffi.NativeFunction< - CFIndex Function( - CFURLRef, ffi.Pointer, CFIndex)>>('CFURLGetBytes'); - late final _CFURLGetBytes = _CFURLGetBytesPtr.asFunction< - int Function(CFURLRef, ffi.Pointer, int)>(); + late final _CFURLGetBytesPtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFURLRef, ffi.Pointer, CFIndex) + > + >('CFURLGetBytes'); + late final _CFURLGetBytes = + _CFURLGetBytesPtr.asFunction< + int Function(CFURLRef, ffi.Pointer, int) + >(); CFRange CFURLGetByteRangeForComponent( CFURLRef url, @@ -17900,12 +17743,16 @@ class NativeCupertinoHttp { ); } - late final _CFURLGetByteRangeForComponentPtr = _lookup< - ffi.NativeFunction< - CFRange Function(CFURLRef, CFIndex, - ffi.Pointer)>>('CFURLGetByteRangeForComponent'); - late final _CFURLGetByteRangeForComponent = _CFURLGetByteRangeForComponentPtr - .asFunction)>(); + late final _CFURLGetByteRangeForComponentPtr = + _lookup< + ffi.NativeFunction< + CFRange Function(CFURLRef, CFIndex, ffi.Pointer) + > + >('CFURLGetByteRangeForComponent'); + late final _CFURLGetByteRangeForComponent = + _CFURLGetByteRangeForComponentPtr.asFunction< + CFRange Function(CFURLRef, int, ffi.Pointer) + >(); CFStringRef CFURLCreateStringByReplacingPercentEscapes( CFAllocatorRef allocator, @@ -17919,13 +17766,16 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateStringByReplacingPercentEscapesPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFStringRef, - CFStringRef)>>('CFURLCreateStringByReplacingPercentEscapes'); + late final _CFURLCreateStringByReplacingPercentEscapesPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(CFAllocatorRef, CFStringRef, CFStringRef) + > + >('CFURLCreateStringByReplacingPercentEscapes'); late final _CFURLCreateStringByReplacingPercentEscapes = _CFURLCreateStringByReplacingPercentEscapesPtr.asFunction< - CFStringRef Function(CFAllocatorRef, CFStringRef, CFStringRef)>(); + CFStringRef Function(CFAllocatorRef, CFStringRef, CFStringRef) + >(); CFStringRef CFURLCreateStringByReplacingPercentEscapesUsingEncoding( CFAllocatorRef allocator, @@ -17943,14 +17793,19 @@ class NativeCupertinoHttp { late final _CFURLCreateStringByReplacingPercentEscapesUsingEncodingPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFStringRef, CFStringRef, - CFStringEncoding)>>( - 'CFURLCreateStringByReplacingPercentEscapesUsingEncoding'); + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + CFStringRef, + CFStringRef, + CFStringEncoding, + ) + > + >('CFURLCreateStringByReplacingPercentEscapesUsingEncoding'); late final _CFURLCreateStringByReplacingPercentEscapesUsingEncoding = _CFURLCreateStringByReplacingPercentEscapesUsingEncodingPtr.asFunction< - CFStringRef Function( - CFAllocatorRef, CFStringRef, CFStringRef, int)>(); + CFStringRef Function(CFAllocatorRef, CFStringRef, CFStringRef, int) + >(); CFStringRef CFURLCreateStringByAddingPercentEscapes( CFAllocatorRef allocator, @@ -17968,30 +17823,37 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateStringByAddingPercentEscapesPtr = _lookup< - ffi.NativeFunction< + late final _CFURLCreateStringByAddingPercentEscapesPtr = + _lookup< + ffi.NativeFunction< CFStringRef Function( - CFAllocatorRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFStringEncoding)>>('CFURLCreateStringByAddingPercentEscapes'); + CFAllocatorRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringEncoding, + ) + > + >('CFURLCreateStringByAddingPercentEscapes'); late final _CFURLCreateStringByAddingPercentEscapes = _CFURLCreateStringByAddingPercentEscapesPtr.asFunction< - CFStringRef Function( - CFAllocatorRef, CFStringRef, CFStringRef, CFStringRef, int)>(); + CFStringRef Function( + CFAllocatorRef, + CFStringRef, + CFStringRef, + CFStringRef, + int, + ) + >(); - int CFURLIsFileReferenceURL( - CFURLRef url, - ) { - return _CFURLIsFileReferenceURL( - url, - ); + int CFURLIsFileReferenceURL(CFURLRef url) { + return _CFURLIsFileReferenceURL(url); } late final _CFURLIsFileReferenceURLPtr = _lookup>( - 'CFURLIsFileReferenceURL'); + 'CFURLIsFileReferenceURL', + ); late final _CFURLIsFileReferenceURL = _CFURLIsFileReferenceURLPtr.asFunction(); @@ -18000,73 +17862,69 @@ class NativeCupertinoHttp { CFURLRef url, ffi.Pointer error, ) { - return _CFURLCreateFileReferenceURL( - allocator, - url, - error, - ); + return _CFURLCreateFileReferenceURL(allocator, url, error); } - late final _CFURLCreateFileReferenceURLPtr = _lookup< - ffi.NativeFunction< - CFURLRef Function(CFAllocatorRef, CFURLRef, - ffi.Pointer)>>('CFURLCreateFileReferenceURL'); + late final _CFURLCreateFileReferenceURLPtr = + _lookup< + ffi.NativeFunction< + CFURLRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) + > + >('CFURLCreateFileReferenceURL'); late final _CFURLCreateFileReferenceURL = _CFURLCreateFileReferenceURLPtr.asFunction< - CFURLRef Function( - CFAllocatorRef, CFURLRef, ffi.Pointer)>(); + CFURLRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) + >(); CFURLRef CFURLCreateFilePathURL( CFAllocatorRef allocator, CFURLRef url, ffi.Pointer error, ) { - return _CFURLCreateFilePathURL( - allocator, - url, - error, - ); + return _CFURLCreateFilePathURL(allocator, url, error); } - late final _CFURLCreateFilePathURLPtr = _lookup< - ffi.NativeFunction< - CFURLRef Function(CFAllocatorRef, CFURLRef, - ffi.Pointer)>>('CFURLCreateFilePathURL'); - late final _CFURLCreateFilePathURL = _CFURLCreateFilePathURLPtr.asFunction< - CFURLRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer)>(); + late final _CFURLCreateFilePathURLPtr = + _lookup< + ffi.NativeFunction< + CFURLRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) + > + >('CFURLCreateFilePathURL'); + late final _CFURLCreateFilePathURL = + _CFURLCreateFilePathURLPtr.asFunction< + CFURLRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) + >(); CFURLRef CFURLCreateFromFSRef( CFAllocatorRef allocator, ffi.Pointer fsRef, ) { - return _CFURLCreateFromFSRef( - allocator, - fsRef, - ); + return _CFURLCreateFromFSRef(allocator, fsRef); } - late final _CFURLCreateFromFSRefPtr = _lookup< - ffi.NativeFunction< - CFURLRef Function( - CFAllocatorRef, ffi.Pointer)>>('CFURLCreateFromFSRef'); - late final _CFURLCreateFromFSRef = _CFURLCreateFromFSRefPtr.asFunction< - CFURLRef Function(CFAllocatorRef, ffi.Pointer)>(); + late final _CFURLCreateFromFSRefPtr = + _lookup< + ffi.NativeFunction< + CFURLRef Function(CFAllocatorRef, ffi.Pointer) + > + >('CFURLCreateFromFSRef'); + late final _CFURLCreateFromFSRef = + _CFURLCreateFromFSRefPtr.asFunction< + CFURLRef Function(CFAllocatorRef, ffi.Pointer) + >(); - int CFURLGetFSRef( - CFURLRef url, - ffi.Pointer fsRef, - ) { - return _CFURLGetFSRef( - url, - fsRef, - ); + int CFURLGetFSRef(CFURLRef url, ffi.Pointer fsRef) { + return _CFURLGetFSRef(url, fsRef); } - late final _CFURLGetFSRefPtr = _lookup< - ffi.NativeFunction)>>( - 'CFURLGetFSRef'); - late final _CFURLGetFSRef = _CFURLGetFSRefPtr.asFunction< - int Function(CFURLRef, ffi.Pointer)>(); + late final _CFURLGetFSRefPtr = + _lookup< + ffi.NativeFunction)> + >('CFURLGetFSRef'); + late final _CFURLGetFSRef = + _CFURLGetFSRefPtr.asFunction< + int Function(CFURLRef, ffi.Pointer) + >(); int CFURLCopyResourcePropertyForKey( CFURLRef url, @@ -18082,35 +17940,49 @@ class NativeCupertinoHttp { ); } - late final _CFURLCopyResourcePropertyForKeyPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFURLRef, CFStringRef, ffi.Pointer, - ffi.Pointer)>>('CFURLCopyResourcePropertyForKey'); + late final _CFURLCopyResourcePropertyForKeyPtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFURLRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFURLCopyResourcePropertyForKey'); late final _CFURLCopyResourcePropertyForKey = _CFURLCopyResourcePropertyForKeyPtr.asFunction< - int Function(CFURLRef, CFStringRef, ffi.Pointer, - ffi.Pointer)>(); + int Function( + CFURLRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); CFDictionaryRef CFURLCopyResourcePropertiesForKeys( CFURLRef url, CFArrayRef keys, ffi.Pointer error, ) { - return _CFURLCopyResourcePropertiesForKeys( - url, - keys, - error, - ); + return _CFURLCopyResourcePropertiesForKeys(url, keys, error); } - late final _CFURLCopyResourcePropertiesForKeysPtr = _lookup< - ffi.NativeFunction< - CFDictionaryRef Function(CFURLRef, CFArrayRef, - ffi.Pointer)>>('CFURLCopyResourcePropertiesForKeys'); + late final _CFURLCopyResourcePropertiesForKeysPtr = + _lookup< + ffi.NativeFunction< + CFDictionaryRef Function( + CFURLRef, + CFArrayRef, + ffi.Pointer, + ) + > + >('CFURLCopyResourcePropertiesForKeys'); late final _CFURLCopyResourcePropertiesForKeys = _CFURLCopyResourcePropertiesForKeysPtr.asFunction< - CFDictionaryRef Function( - CFURLRef, CFArrayRef, ffi.Pointer)>(); + CFDictionaryRef Function(CFURLRef, CFArrayRef, ffi.Pointer) + >(); int CFURLSetResourcePropertyForKey( CFURLRef url, @@ -18118,42 +17990,43 @@ class NativeCupertinoHttp { CFTypeRef propertyValue, ffi.Pointer error, ) { - return _CFURLSetResourcePropertyForKey( - url, - key, - propertyValue, - error, - ); + return _CFURLSetResourcePropertyForKey(url, key, propertyValue, error); } - late final _CFURLSetResourcePropertyForKeyPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFURLRef, CFStringRef, CFTypeRef, - ffi.Pointer)>>('CFURLSetResourcePropertyForKey'); + late final _CFURLSetResourcePropertyForKeyPtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFURLRef, + CFStringRef, + CFTypeRef, + ffi.Pointer, + ) + > + >('CFURLSetResourcePropertyForKey'); late final _CFURLSetResourcePropertyForKey = _CFURLSetResourcePropertyForKeyPtr.asFunction< - int Function( - CFURLRef, CFStringRef, CFTypeRef, ffi.Pointer)>(); + int Function(CFURLRef, CFStringRef, CFTypeRef, ffi.Pointer) + >(); int CFURLSetResourcePropertiesForKeys( CFURLRef url, CFDictionaryRef keyedPropertyValues, ffi.Pointer error, ) { - return _CFURLSetResourcePropertiesForKeys( - url, - keyedPropertyValues, - error, - ); + return _CFURLSetResourcePropertiesForKeys(url, keyedPropertyValues, error); } - late final _CFURLSetResourcePropertiesForKeysPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFURLRef, CFDictionaryRef, - ffi.Pointer)>>('CFURLSetResourcePropertiesForKeys'); + late final _CFURLSetResourcePropertiesForKeysPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFURLRef, CFDictionaryRef, ffi.Pointer) + > + >('CFURLSetResourcePropertiesForKeys'); late final _CFURLSetResourcePropertiesForKeys = _CFURLSetResourcePropertiesForKeysPtr.asFunction< - int Function(CFURLRef, CFDictionaryRef, ffi.Pointer)>(); + int Function(CFURLRef, CFDictionaryRef, ffi.Pointer) + >(); late final ffi.Pointer _kCFURLKeysOfUnsetValuesKey = _lookup('kCFURLKeysOfUnsetValuesKey'); @@ -18161,34 +18034,27 @@ class NativeCupertinoHttp { CFStringRef get kCFURLKeysOfUnsetValuesKey => _kCFURLKeysOfUnsetValuesKey.value; - void CFURLClearResourcePropertyCacheForKey( - CFURLRef url, - CFStringRef key, - ) { - return _CFURLClearResourcePropertyCacheForKey( - url, - key, - ); + void CFURLClearResourcePropertyCacheForKey(CFURLRef url, CFStringRef key) { + return _CFURLClearResourcePropertyCacheForKey(url, key); } late final _CFURLClearResourcePropertyCacheForKeyPtr = _lookup>( - 'CFURLClearResourcePropertyCacheForKey'); + 'CFURLClearResourcePropertyCacheForKey', + ); late final _CFURLClearResourcePropertyCacheForKey = _CFURLClearResourcePropertyCacheForKeyPtr.asFunction< - void Function(CFURLRef, CFStringRef)>(); + void Function(CFURLRef, CFStringRef) + >(); - void CFURLClearResourcePropertyCache( - CFURLRef url, - ) { - return _CFURLClearResourcePropertyCache( - url, - ); + void CFURLClearResourcePropertyCache(CFURLRef url) { + return _CFURLClearResourcePropertyCache(url); } late final _CFURLClearResourcePropertyCachePtr = _lookup>( - 'CFURLClearResourcePropertyCache'); + 'CFURLClearResourcePropertyCache', + ); late final _CFURLClearResourcePropertyCache = _CFURLClearResourcePropertyCachePtr.asFunction(); @@ -18197,40 +18063,34 @@ class NativeCupertinoHttp { CFStringRef key, CFTypeRef propertyValue, ) { - return _CFURLSetTemporaryResourcePropertyForKey( - url, - key, - propertyValue, - ); + return _CFURLSetTemporaryResourcePropertyForKey(url, key, propertyValue); } - late final _CFURLSetTemporaryResourcePropertyForKeyPtr = _lookup< - ffi - .NativeFunction>( - 'CFURLSetTemporaryResourcePropertyForKey'); + late final _CFURLSetTemporaryResourcePropertyForKeyPtr = + _lookup< + ffi.NativeFunction + >('CFURLSetTemporaryResourcePropertyForKey'); late final _CFURLSetTemporaryResourcePropertyForKey = _CFURLSetTemporaryResourcePropertyForKeyPtr.asFunction< - void Function(CFURLRef, CFStringRef, CFTypeRef)>(); + void Function(CFURLRef, CFStringRef, CFTypeRef) + >(); - int CFURLResourceIsReachable( - CFURLRef url, - ffi.Pointer error, - ) { - return _CFURLResourceIsReachable( - url, - error, - ); + int CFURLResourceIsReachable(CFURLRef url, ffi.Pointer error) { + return _CFURLResourceIsReachable(url, error); } - late final _CFURLResourceIsReachablePtr = _lookup< - ffi - .NativeFunction)>>( - 'CFURLResourceIsReachable'); - late final _CFURLResourceIsReachable = _CFURLResourceIsReachablePtr - .asFunction)>(); - - late final ffi.Pointer _kCFURLNameKey = - _lookup('kCFURLNameKey'); + late final _CFURLResourceIsReachablePtr = + _lookup< + ffi.NativeFunction)> + >('CFURLResourceIsReachable'); + late final _CFURLResourceIsReachable = + _CFURLResourceIsReachablePtr.asFunction< + int Function(CFURLRef, ffi.Pointer) + >(); + + late final ffi.Pointer _kCFURLNameKey = _lookup( + 'kCFURLNameKey', + ); CFStringRef get kCFURLNameKey => _kCFURLNameKey.value; @@ -18254,8 +18114,9 @@ class NativeCupertinoHttp { CFStringRef get kCFURLIsSymbolicLinkKey => _kCFURLIsSymbolicLinkKey.value; - late final ffi.Pointer _kCFURLIsVolumeKey = - _lookup('kCFURLIsVolumeKey'); + late final ffi.Pointer _kCFURLIsVolumeKey = _lookup( + 'kCFURLIsVolumeKey', + ); CFStringRef get kCFURLIsVolumeKey => _kCFURLIsVolumeKey.value; @@ -18286,8 +18147,9 @@ class NativeCupertinoHttp { CFStringRef get kCFURLIsUserImmutableKey => _kCFURLIsUserImmutableKey.value; - late final ffi.Pointer _kCFURLIsHiddenKey = - _lookup('kCFURLIsHiddenKey'); + late final ffi.Pointer _kCFURLIsHiddenKey = _lookup( + 'kCFURLIsHiddenKey', + ); CFStringRef get kCFURLIsHiddenKey => _kCFURLIsHiddenKey.value; @@ -18348,8 +18210,9 @@ class NativeCupertinoHttp { CFStringRef get kCFURLIsPurgeableKey => _kCFURLIsPurgeableKey.value; - late final ffi.Pointer _kCFURLIsSparseKey = - _lookup('kCFURLIsSparseKey'); + late final ffi.Pointer _kCFURLIsSparseKey = _lookup( + 'kCFURLIsSparseKey', + ); CFStringRef get kCFURLIsSparseKey => _kCFURLIsSparseKey.value; @@ -18448,13 +18311,15 @@ class NativeCupertinoHttp { CFStringRef get kCFURLIsExcludedFromBackupKey => _kCFURLIsExcludedFromBackupKey.value; - late final ffi.Pointer _kCFURLTagNamesKey = - _lookup('kCFURLTagNamesKey'); + late final ffi.Pointer _kCFURLTagNamesKey = _lookup( + 'kCFURLTagNamesKey', + ); CFStringRef get kCFURLTagNamesKey => _kCFURLTagNamesKey.value; - late final ffi.Pointer _kCFURLPathKey = - _lookup('kCFURLPathKey'); + late final ffi.Pointer _kCFURLPathKey = _lookup( + 'kCFURLPathKey', + ); CFStringRef get kCFURLPathKey => _kCFURLPathKey.value; @@ -18545,8 +18410,9 @@ class NativeCupertinoHttp { CFStringRef get kCFURLFileResourceTypeUnknown => _kCFURLFileResourceTypeUnknown.value; - late final ffi.Pointer _kCFURLFileSizeKey = - _lookup('kCFURLFileSizeKey'); + late final ffi.Pointer _kCFURLFileSizeKey = _lookup( + 'kCFURLFileSizeKey', + ); CFStringRef get kCFURLFileSizeKey => _kCFURLFileSizeKey.value; @@ -18595,16 +18461,18 @@ class NativeCupertinoHttp { _kCFURLFileProtectionCompleteUnlessOpen.value; late final ffi.Pointer - _kCFURLFileProtectionCompleteUntilFirstUserAuthentication = + _kCFURLFileProtectionCompleteUntilFirstUserAuthentication = _lookup( - 'kCFURLFileProtectionCompleteUntilFirstUserAuthentication'); + 'kCFURLFileProtectionCompleteUntilFirstUserAuthentication', + ); CFStringRef get kCFURLFileProtectionCompleteUntilFirstUserAuthentication => _kCFURLFileProtectionCompleteUntilFirstUserAuthentication.value; late final ffi.Pointer - _kCFURLFileProtectionCompleteWhenUserInactive = - _lookup('kCFURLFileProtectionCompleteWhenUserInactive'); + _kCFURLFileProtectionCompleteWhenUserInactive = _lookup( + 'kCFURLFileProtectionCompleteWhenUserInactive', + ); CFStringRef get kCFURLFileProtectionCompleteWhenUserInactive => _kCFURLFileProtectionCompleteWhenUserInactive.value; @@ -18616,8 +18484,9 @@ class NativeCupertinoHttp { _kCFURLDirectoryEntryCountKey.value; late final ffi.Pointer - _kCFURLVolumeLocalizedFormatDescriptionKey = - _lookup('kCFURLVolumeLocalizedFormatDescriptionKey'); + _kCFURLVolumeLocalizedFormatDescriptionKey = _lookup( + 'kCFURLVolumeLocalizedFormatDescriptionKey', + ); CFStringRef get kCFURLVolumeLocalizedFormatDescriptionKey => _kCFURLVolumeLocalizedFormatDescriptionKey.value; @@ -18635,16 +18504,17 @@ class NativeCupertinoHttp { _kCFURLVolumeAvailableCapacityKey.value; late final ffi.Pointer - _kCFURLVolumeAvailableCapacityForImportantUsageKey = - _lookup('kCFURLVolumeAvailableCapacityForImportantUsageKey'); + _kCFURLVolumeAvailableCapacityForImportantUsageKey = _lookup( + 'kCFURLVolumeAvailableCapacityForImportantUsageKey', + ); CFStringRef get kCFURLVolumeAvailableCapacityForImportantUsageKey => _kCFURLVolumeAvailableCapacityForImportantUsageKey.value; late final ffi.Pointer - _kCFURLVolumeAvailableCapacityForOpportunisticUsageKey = - _lookup( - 'kCFURLVolumeAvailableCapacityForOpportunisticUsageKey'); + _kCFURLVolumeAvailableCapacityForOpportunisticUsageKey = _lookup( + 'kCFURLVolumeAvailableCapacityForOpportunisticUsageKey', + ); CFStringRef get kCFURLVolumeAvailableCapacityForOpportunisticUsageKey => _kCFURLVolumeAvailableCapacityForOpportunisticUsageKey.value; @@ -18698,22 +18568,25 @@ class NativeCupertinoHttp { _kCFURLVolumeSupportsZeroRunsKey.value; late final ffi.Pointer - _kCFURLVolumeSupportsCaseSensitiveNamesKey = - _lookup('kCFURLVolumeSupportsCaseSensitiveNamesKey'); + _kCFURLVolumeSupportsCaseSensitiveNamesKey = _lookup( + 'kCFURLVolumeSupportsCaseSensitiveNamesKey', + ); CFStringRef get kCFURLVolumeSupportsCaseSensitiveNamesKey => _kCFURLVolumeSupportsCaseSensitiveNamesKey.value; late final ffi.Pointer - _kCFURLVolumeSupportsCasePreservedNamesKey = - _lookup('kCFURLVolumeSupportsCasePreservedNamesKey'); + _kCFURLVolumeSupportsCasePreservedNamesKey = _lookup( + 'kCFURLVolumeSupportsCasePreservedNamesKey', + ); CFStringRef get kCFURLVolumeSupportsCasePreservedNamesKey => _kCFURLVolumeSupportsCasePreservedNamesKey.value; late final ffi.Pointer - _kCFURLVolumeSupportsRootDirectoryDatesKey = - _lookup('kCFURLVolumeSupportsRootDirectoryDatesKey'); + _kCFURLVolumeSupportsRootDirectoryDatesKey = _lookup( + 'kCFURLVolumeSupportsRootDirectoryDatesKey', + ); CFStringRef get kCFURLVolumeSupportsRootDirectoryDatesKey => _kCFURLVolumeSupportsRootDirectoryDatesKey.value; @@ -18731,8 +18604,9 @@ class NativeCupertinoHttp { _kCFURLVolumeSupportsRenamingKey.value; late final ffi.Pointer - _kCFURLVolumeSupportsAdvisoryFileLockingKey = - _lookup('kCFURLVolumeSupportsAdvisoryFileLockingKey'); + _kCFURLVolumeSupportsAdvisoryFileLockingKey = _lookup( + 'kCFURLVolumeSupportsAdvisoryFileLockingKey', + ); CFStringRef get kCFURLVolumeSupportsAdvisoryFileLockingKey => _kCFURLVolumeSupportsAdvisoryFileLockingKey.value; @@ -18847,8 +18721,9 @@ class NativeCupertinoHttp { _kCFURLVolumeSupportsSwapRenamingKey.value; late final ffi.Pointer - _kCFURLVolumeSupportsExclusiveRenamingKey = - _lookup('kCFURLVolumeSupportsExclusiveRenamingKey'); + _kCFURLVolumeSupportsExclusiveRenamingKey = _lookup( + 'kCFURLVolumeSupportsExclusiveRenamingKey', + ); CFStringRef get kCFURLVolumeSupportsExclusiveRenamingKey => _kCFURLVolumeSupportsExclusiveRenamingKey.value; @@ -18860,8 +18735,9 @@ class NativeCupertinoHttp { _kCFURLVolumeSupportsImmutableFilesKey.value; late final ffi.Pointer - _kCFURLVolumeSupportsAccessPermissionsKey = - _lookup('kCFURLVolumeSupportsAccessPermissionsKey'); + _kCFURLVolumeSupportsAccessPermissionsKey = _lookup( + 'kCFURLVolumeSupportsAccessPermissionsKey', + ); CFStringRef get kCFURLVolumeSupportsAccessPermissionsKey => _kCFURLVolumeSupportsAccessPermissionsKey.value; @@ -18894,8 +18770,9 @@ class NativeCupertinoHttp { CFStringRef get kCFURLIsUbiquitousItemKey => _kCFURLIsUbiquitousItemKey.value; late final ffi.Pointer - _kCFURLUbiquitousItemHasUnresolvedConflictsKey = - _lookup('kCFURLUbiquitousItemHasUnresolvedConflictsKey'); + _kCFURLUbiquitousItemHasUnresolvedConflictsKey = _lookup( + 'kCFURLUbiquitousItemHasUnresolvedConflictsKey', + ); CFStringRef get kCFURLUbiquitousItemHasUnresolvedConflictsKey => _kCFURLUbiquitousItemHasUnresolvedConflictsKey.value; @@ -18925,8 +18802,9 @@ class NativeCupertinoHttp { _kCFURLUbiquitousItemIsUploadingKey.value; late final ffi.Pointer - _kCFURLUbiquitousItemPercentDownloadedKey = - _lookup('kCFURLUbiquitousItemPercentDownloadedKey'); + _kCFURLUbiquitousItemPercentDownloadedKey = _lookup( + 'kCFURLUbiquitousItemPercentDownloadedKey', + ); CFStringRef get kCFURLUbiquitousItemPercentDownloadedKey => _kCFURLUbiquitousItemPercentDownloadedKey.value; @@ -18938,8 +18816,9 @@ class NativeCupertinoHttp { _kCFURLUbiquitousItemPercentUploadedKey.value; late final ffi.Pointer - _kCFURLUbiquitousItemDownloadingStatusKey = - _lookup('kCFURLUbiquitousItemDownloadingStatusKey'); + _kCFURLUbiquitousItemDownloadingStatusKey = _lookup( + 'kCFURLUbiquitousItemDownloadingStatusKey', + ); CFStringRef get kCFURLUbiquitousItemDownloadingStatusKey => _kCFURLUbiquitousItemDownloadingStatusKey.value; @@ -18957,30 +18836,33 @@ class NativeCupertinoHttp { _kCFURLUbiquitousItemUploadingErrorKey.value; late final ffi.Pointer - _kCFURLUbiquitousItemIsExcludedFromSyncKey = - _lookup('kCFURLUbiquitousItemIsExcludedFromSyncKey'); + _kCFURLUbiquitousItemIsExcludedFromSyncKey = _lookup( + 'kCFURLUbiquitousItemIsExcludedFromSyncKey', + ); CFStringRef get kCFURLUbiquitousItemIsExcludedFromSyncKey => _kCFURLUbiquitousItemIsExcludedFromSyncKey.value; late final ffi.Pointer - _kCFURLUbiquitousItemDownloadingStatusNotDownloaded = - _lookup( - 'kCFURLUbiquitousItemDownloadingStatusNotDownloaded'); + _kCFURLUbiquitousItemDownloadingStatusNotDownloaded = _lookup( + 'kCFURLUbiquitousItemDownloadingStatusNotDownloaded', + ); CFStringRef get kCFURLUbiquitousItemDownloadingStatusNotDownloaded => _kCFURLUbiquitousItemDownloadingStatusNotDownloaded.value; late final ffi.Pointer - _kCFURLUbiquitousItemDownloadingStatusDownloaded = - _lookup('kCFURLUbiquitousItemDownloadingStatusDownloaded'); + _kCFURLUbiquitousItemDownloadingStatusDownloaded = _lookup( + 'kCFURLUbiquitousItemDownloadingStatusDownloaded', + ); CFStringRef get kCFURLUbiquitousItemDownloadingStatusDownloaded => _kCFURLUbiquitousItemDownloadingStatusDownloaded.value; late final ffi.Pointer - _kCFURLUbiquitousItemDownloadingStatusCurrent = - _lookup('kCFURLUbiquitousItemDownloadingStatusCurrent'); + _kCFURLUbiquitousItemDownloadingStatusCurrent = _lookup( + 'kCFURLUbiquitousItemDownloadingStatusCurrent', + ); CFStringRef get kCFURLUbiquitousItemDownloadingStatusCurrent => _kCFURLUbiquitousItemDownloadingStatusCurrent.value; @@ -19003,18 +18885,30 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateBookmarkDataPtr = _lookup< - ffi.NativeFunction< + late final _CFURLCreateBookmarkDataPtr = + _lookup< + ffi.NativeFunction< CFDataRef Function( - CFAllocatorRef, - CFURLRef, - CFOptionFlags, - CFArrayRef, - CFURLRef, - ffi.Pointer)>>('CFURLCreateBookmarkData'); - late final _CFURLCreateBookmarkData = _CFURLCreateBookmarkDataPtr.asFunction< - CFDataRef Function(CFAllocatorRef, CFURLRef, int, CFArrayRef, CFURLRef, - ffi.Pointer)>(); + CFAllocatorRef, + CFURLRef, + CFOptionFlags, + CFArrayRef, + CFURLRef, + ffi.Pointer, + ) + > + >('CFURLCreateBookmarkData'); + late final _CFURLCreateBookmarkData = + _CFURLCreateBookmarkDataPtr.asFunction< + CFDataRef Function( + CFAllocatorRef, + CFURLRef, + int, + CFArrayRef, + CFURLRef, + ffi.Pointer, + ) + >(); CFURLRef CFURLCreateByResolvingBookmarkData( CFAllocatorRef allocator, @@ -19036,20 +18930,32 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateByResolvingBookmarkDataPtr = _lookup< - ffi.NativeFunction< + late final _CFURLCreateByResolvingBookmarkDataPtr = + _lookup< + ffi.NativeFunction< CFURLRef Function( - CFAllocatorRef, - CFDataRef, - CFOptionFlags, - CFURLRef, - CFArrayRef, - ffi.Pointer, - ffi.Pointer)>>('CFURLCreateByResolvingBookmarkData'); + CFAllocatorRef, + CFDataRef, + CFOptionFlags, + CFURLRef, + CFArrayRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFURLCreateByResolvingBookmarkData'); late final _CFURLCreateByResolvingBookmarkData = _CFURLCreateByResolvingBookmarkDataPtr.asFunction< - CFURLRef Function(CFAllocatorRef, CFDataRef, int, CFURLRef, - CFArrayRef, ffi.Pointer, ffi.Pointer)>(); + CFURLRef Function( + CFAllocatorRef, + CFDataRef, + int, + CFURLRef, + CFArrayRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); CFDictionaryRef CFURLCreateResourcePropertiesForKeysFromBookmarkData( CFAllocatorRef allocator, @@ -19063,13 +18969,16 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateResourcePropertiesForKeysFromBookmarkDataPtr = _lookup< - ffi.NativeFunction< - CFDictionaryRef Function(CFAllocatorRef, CFArrayRef, CFDataRef)>>( - 'CFURLCreateResourcePropertiesForKeysFromBookmarkData'); + late final _CFURLCreateResourcePropertiesForKeysFromBookmarkDataPtr = + _lookup< + ffi.NativeFunction< + CFDictionaryRef Function(CFAllocatorRef, CFArrayRef, CFDataRef) + > + >('CFURLCreateResourcePropertiesForKeysFromBookmarkData'); late final _CFURLCreateResourcePropertiesForKeysFromBookmarkData = _CFURLCreateResourcePropertiesForKeysFromBookmarkDataPtr.asFunction< - CFDictionaryRef Function(CFAllocatorRef, CFArrayRef, CFDataRef)>(); + CFDictionaryRef Function(CFAllocatorRef, CFArrayRef, CFDataRef) + >(); CFTypeRef CFURLCreateResourcePropertyForKeyFromBookmarkData( CFAllocatorRef allocator, @@ -19083,34 +18992,35 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateResourcePropertyForKeyFromBookmarkDataPtr = _lookup< - ffi.NativeFunction< - CFTypeRef Function(CFAllocatorRef, CFStringRef, - CFDataRef)>>('CFURLCreateResourcePropertyForKeyFromBookmarkData'); + late final _CFURLCreateResourcePropertyForKeyFromBookmarkDataPtr = + _lookup< + ffi.NativeFunction< + CFTypeRef Function(CFAllocatorRef, CFStringRef, CFDataRef) + > + >('CFURLCreateResourcePropertyForKeyFromBookmarkData'); late final _CFURLCreateResourcePropertyForKeyFromBookmarkData = _CFURLCreateResourcePropertyForKeyFromBookmarkDataPtr.asFunction< - CFTypeRef Function(CFAllocatorRef, CFStringRef, CFDataRef)>(); + CFTypeRef Function(CFAllocatorRef, CFStringRef, CFDataRef) + >(); CFDataRef CFURLCreateBookmarkDataFromFile( CFAllocatorRef allocator, CFURLRef fileURL, ffi.Pointer errorRef, ) { - return _CFURLCreateBookmarkDataFromFile( - allocator, - fileURL, - errorRef, - ); + return _CFURLCreateBookmarkDataFromFile(allocator, fileURL, errorRef); } - late final _CFURLCreateBookmarkDataFromFilePtr = _lookup< - ffi.NativeFunction< - CFDataRef Function(CFAllocatorRef, CFURLRef, - ffi.Pointer)>>('CFURLCreateBookmarkDataFromFile'); + late final _CFURLCreateBookmarkDataFromFilePtr = + _lookup< + ffi.NativeFunction< + CFDataRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) + > + >('CFURLCreateBookmarkDataFromFile'); late final _CFURLCreateBookmarkDataFromFile = _CFURLCreateBookmarkDataFromFilePtr.asFunction< - CFDataRef Function( - CFAllocatorRef, CFURLRef, ffi.Pointer)>(); + CFDataRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) + >(); int CFURLWriteBookmarkDataToFile( CFDataRef bookmarkRef, @@ -19126,16 +19036,21 @@ class NativeCupertinoHttp { ); } - late final _CFURLWriteBookmarkDataToFilePtr = _lookup< - ffi.NativeFunction< + late final _CFURLWriteBookmarkDataToFilePtr = + _lookup< + ffi.NativeFunction< Boolean Function( - CFDataRef, - CFURLRef, - CFURLBookmarkFileCreationOptions, - ffi.Pointer)>>('CFURLWriteBookmarkDataToFile'); + CFDataRef, + CFURLRef, + CFURLBookmarkFileCreationOptions, + ffi.Pointer, + ) + > + >('CFURLWriteBookmarkDataToFile'); late final _CFURLWriteBookmarkDataToFile = _CFURLWriteBookmarkDataToFilePtr.asFunction< - int Function(CFDataRef, CFURLRef, int, ffi.Pointer)>(); + int Function(CFDataRef, CFURLRef, int, ffi.Pointer) + >(); CFDataRef CFURLCreateBookmarkDataFromAliasRecord( CFAllocatorRef allocatorRef, @@ -19147,42 +19062,40 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateBookmarkDataFromAliasRecordPtr = _lookup< - ffi.NativeFunction>( - 'CFURLCreateBookmarkDataFromAliasRecord'); + late final _CFURLCreateBookmarkDataFromAliasRecordPtr = + _lookup< + ffi.NativeFunction + >('CFURLCreateBookmarkDataFromAliasRecord'); late final _CFURLCreateBookmarkDataFromAliasRecord = _CFURLCreateBookmarkDataFromAliasRecordPtr.asFunction< - CFDataRef Function(CFAllocatorRef, CFDataRef)>(); + CFDataRef Function(CFAllocatorRef, CFDataRef) + >(); - int CFURLStartAccessingSecurityScopedResource( - CFURLRef url, - ) { - return _CFURLStartAccessingSecurityScopedResource( - url, - ); + int CFURLStartAccessingSecurityScopedResource(CFURLRef url) { + return _CFURLStartAccessingSecurityScopedResource(url); } late final _CFURLStartAccessingSecurityScopedResourcePtr = _lookup>( - 'CFURLStartAccessingSecurityScopedResource'); + 'CFURLStartAccessingSecurityScopedResource', + ); late final _CFURLStartAccessingSecurityScopedResource = _CFURLStartAccessingSecurityScopedResourcePtr.asFunction< - int Function(CFURLRef)>(); + int Function(CFURLRef) + >(); - void CFURLStopAccessingSecurityScopedResource( - CFURLRef url, - ) { - return _CFURLStopAccessingSecurityScopedResource( - url, - ); + void CFURLStopAccessingSecurityScopedResource(CFURLRef url) { + return _CFURLStopAccessingSecurityScopedResource(url); } late final _CFURLStopAccessingSecurityScopedResourcePtr = _lookup>( - 'CFURLStopAccessingSecurityScopedResource'); + 'CFURLStopAccessingSecurityScopedResource', + ); late final _CFURLStopAccessingSecurityScopedResource = _CFURLStopAccessingSecurityScopedResourcePtr.asFunction< - void Function(CFURLRef)>(); + void Function(CFURLRef) + >(); late final ffi.Pointer _kCFRunLoopDefaultMode = _lookup('kCFRunLoopDefaultMode'); @@ -19209,7 +19122,8 @@ class NativeCupertinoHttp { late final _CFRunLoopGetCurrentPtr = _lookup>( - 'CFRunLoopGetCurrent'); + 'CFRunLoopGetCurrent', + ); late final _CFRunLoopGetCurrent = _CFRunLoopGetCurrentPtr.asFunction(); @@ -19222,66 +19136,55 @@ class NativeCupertinoHttp { late final _CFRunLoopGetMain = _CFRunLoopGetMainPtr.asFunction(); - CFRunLoopMode CFRunLoopCopyCurrentMode( - CFRunLoopRef rl, - ) { - return _CFRunLoopCopyCurrentMode( - rl, - ); + CFRunLoopMode CFRunLoopCopyCurrentMode(CFRunLoopRef rl) { + return _CFRunLoopCopyCurrentMode(rl); } late final _CFRunLoopCopyCurrentModePtr = _lookup>( - 'CFRunLoopCopyCurrentMode'); - late final _CFRunLoopCopyCurrentMode = _CFRunLoopCopyCurrentModePtr - .asFunction(); + 'CFRunLoopCopyCurrentMode', + ); + late final _CFRunLoopCopyCurrentMode = + _CFRunLoopCopyCurrentModePtr.asFunction< + CFRunLoopMode Function(CFRunLoopRef) + >(); - CFArrayRef CFRunLoopCopyAllModes( - CFRunLoopRef rl, - ) { - return _CFRunLoopCopyAllModes( - rl, - ); + CFArrayRef CFRunLoopCopyAllModes(CFRunLoopRef rl) { + return _CFRunLoopCopyAllModes(rl); } late final _CFRunLoopCopyAllModesPtr = _lookup>( - 'CFRunLoopCopyAllModes'); + 'CFRunLoopCopyAllModes', + ); late final _CFRunLoopCopyAllModes = _CFRunLoopCopyAllModesPtr.asFunction(); - void CFRunLoopAddCommonMode( - CFRunLoopRef rl, - CFRunLoopMode mode, - ) { - return _CFRunLoopAddCommonMode( - rl, - mode, - ); + void CFRunLoopAddCommonMode(CFRunLoopRef rl, CFRunLoopMode mode) { + return _CFRunLoopAddCommonMode(rl, mode); } - late final _CFRunLoopAddCommonModePtr = _lookup< - ffi.NativeFunction>( - 'CFRunLoopAddCommonMode'); - late final _CFRunLoopAddCommonMode = _CFRunLoopAddCommonModePtr.asFunction< - void Function(CFRunLoopRef, CFRunLoopMode)>(); + late final _CFRunLoopAddCommonModePtr = + _lookup< + ffi.NativeFunction + >('CFRunLoopAddCommonMode'); + late final _CFRunLoopAddCommonMode = + _CFRunLoopAddCommonModePtr.asFunction< + void Function(CFRunLoopRef, CFRunLoopMode) + >(); - double CFRunLoopGetNextTimerFireDate( - CFRunLoopRef rl, - CFRunLoopMode mode, - ) { - return _CFRunLoopGetNextTimerFireDate( - rl, - mode, - ); + double CFRunLoopGetNextTimerFireDate(CFRunLoopRef rl, CFRunLoopMode mode) { + return _CFRunLoopGetNextTimerFireDate(rl, mode); } - late final _CFRunLoopGetNextTimerFireDatePtr = _lookup< - ffi.NativeFunction< - CFAbsoluteTime Function( - CFRunLoopRef, CFRunLoopMode)>>('CFRunLoopGetNextTimerFireDate'); - late final _CFRunLoopGetNextTimerFireDate = _CFRunLoopGetNextTimerFireDatePtr - .asFunction(); + late final _CFRunLoopGetNextTimerFireDatePtr = + _lookup< + ffi.NativeFunction + >('CFRunLoopGetNextTimerFireDate'); + late final _CFRunLoopGetNextTimerFireDate = + _CFRunLoopGetNextTimerFireDatePtr.asFunction< + double Function(CFRunLoopRef, CFRunLoopMode) + >(); void CFRunLoopRun() { return _CFRunLoopRun(); @@ -19296,59 +19199,52 @@ class NativeCupertinoHttp { DartCFTimeInterval seconds, DartBoolean returnAfterSourceHandled, ) { - return CFRunLoopRunResult.fromValue(_CFRunLoopRunInMode( - mode, - seconds, - returnAfterSourceHandled, - )); + return CFRunLoopRunResult.fromValue( + _CFRunLoopRunInMode(mode, seconds, returnAfterSourceHandled), + ); } - late final _CFRunLoopRunInModePtr = _lookup< - ffi.NativeFunction< - SInt32 Function( - CFRunLoopMode, CFTimeInterval, Boolean)>>('CFRunLoopRunInMode'); - late final _CFRunLoopRunInMode = _CFRunLoopRunInModePtr.asFunction< - int Function(CFRunLoopMode, double, int)>(); + late final _CFRunLoopRunInModePtr = + _lookup< + ffi.NativeFunction< + SInt32 Function(CFRunLoopMode, CFTimeInterval, Boolean) + > + >('CFRunLoopRunInMode'); + late final _CFRunLoopRunInMode = + _CFRunLoopRunInModePtr.asFunction< + int Function(CFRunLoopMode, double, int) + >(); - int CFRunLoopIsWaiting( - CFRunLoopRef rl, - ) { - return _CFRunLoopIsWaiting( - rl, - ); + int CFRunLoopIsWaiting(CFRunLoopRef rl) { + return _CFRunLoopIsWaiting(rl); } late final _CFRunLoopIsWaitingPtr = _lookup>( - 'CFRunLoopIsWaiting'); + 'CFRunLoopIsWaiting', + ); late final _CFRunLoopIsWaiting = _CFRunLoopIsWaitingPtr.asFunction(); - void CFRunLoopWakeUp( - CFRunLoopRef rl, - ) { - return _CFRunLoopWakeUp( - rl, - ); + void CFRunLoopWakeUp(CFRunLoopRef rl) { + return _CFRunLoopWakeUp(rl); } late final _CFRunLoopWakeUpPtr = _lookup>( - 'CFRunLoopWakeUp'); + 'CFRunLoopWakeUp', + ); late final _CFRunLoopWakeUp = _CFRunLoopWakeUpPtr.asFunction(); - void CFRunLoopStop( - CFRunLoopRef rl, - ) { - return _CFRunLoopStop( - rl, - ); + void CFRunLoopStop(CFRunLoopRef rl) { + return _CFRunLoopStop(rl); } late final _CFRunLoopStopPtr = _lookup>( - 'CFRunLoopStop'); + 'CFRunLoopStop', + ); late final _CFRunLoopStop = _CFRunLoopStopPtr.asFunction(); @@ -19357,192 +19253,194 @@ class NativeCupertinoHttp { CFTypeRef mode, objc.ObjCBlock block, ) { - return _CFRunLoopPerformBlock( - rl, - mode, - block.ref.pointer, - ); + return _CFRunLoopPerformBlock(rl, mode, block.ref.pointer); } - late final _CFRunLoopPerformBlockPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopRef, CFTypeRef, - ffi.Pointer)>>('CFRunLoopPerformBlock'); - late final _CFRunLoopPerformBlock = _CFRunLoopPerformBlockPtr.asFunction< - void Function( - CFRunLoopRef, CFTypeRef, ffi.Pointer)>(); + late final _CFRunLoopPerformBlockPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFRunLoopRef, + CFTypeRef, + ffi.Pointer, + ) + > + >('CFRunLoopPerformBlock'); + late final _CFRunLoopPerformBlock = + _CFRunLoopPerformBlockPtr.asFunction< + void Function(CFRunLoopRef, CFTypeRef, ffi.Pointer) + >(); int CFRunLoopContainsSource( CFRunLoopRef rl, CFRunLoopSourceRef source, CFRunLoopMode mode, ) { - return _CFRunLoopContainsSource( - rl, - source, - mode, - ); + return _CFRunLoopContainsSource(rl, source, mode); } - late final _CFRunLoopContainsSourcePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFRunLoopRef, CFRunLoopSourceRef, - CFRunLoopMode)>>('CFRunLoopContainsSource'); - late final _CFRunLoopContainsSource = _CFRunLoopContainsSourcePtr.asFunction< - int Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode)>(); + late final _CFRunLoopContainsSourcePtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) + > + >('CFRunLoopContainsSource'); + late final _CFRunLoopContainsSource = + _CFRunLoopContainsSourcePtr.asFunction< + int Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) + >(); void CFRunLoopAddSource( CFRunLoopRef rl, CFRunLoopSourceRef source, CFRunLoopMode mode, ) { - return _CFRunLoopAddSource( - rl, - source, - mode, - ); + return _CFRunLoopAddSource(rl, source, mode); } - late final _CFRunLoopAddSourcePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopRef, CFRunLoopSourceRef, - CFRunLoopMode)>>('CFRunLoopAddSource'); - late final _CFRunLoopAddSource = _CFRunLoopAddSourcePtr.asFunction< - void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode)>(); + late final _CFRunLoopAddSourcePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) + > + >('CFRunLoopAddSource'); + late final _CFRunLoopAddSource = + _CFRunLoopAddSourcePtr.asFunction< + void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) + >(); void CFRunLoopRemoveSource( CFRunLoopRef rl, CFRunLoopSourceRef source, CFRunLoopMode mode, ) { - return _CFRunLoopRemoveSource( - rl, - source, - mode, - ); + return _CFRunLoopRemoveSource(rl, source, mode); } - late final _CFRunLoopRemoveSourcePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopRef, CFRunLoopSourceRef, - CFRunLoopMode)>>('CFRunLoopRemoveSource'); - late final _CFRunLoopRemoveSource = _CFRunLoopRemoveSourcePtr.asFunction< - void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode)>(); + late final _CFRunLoopRemoveSourcePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) + > + >('CFRunLoopRemoveSource'); + late final _CFRunLoopRemoveSource = + _CFRunLoopRemoveSourcePtr.asFunction< + void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) + >(); int CFRunLoopContainsObserver( CFRunLoopRef rl, CFRunLoopObserverRef observer, CFRunLoopMode mode, ) { - return _CFRunLoopContainsObserver( - rl, - observer, - mode, - ); + return _CFRunLoopContainsObserver(rl, observer, mode); } - late final _CFRunLoopContainsObserverPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFRunLoopRef, CFRunLoopObserverRef, - CFRunLoopMode)>>('CFRunLoopContainsObserver'); + late final _CFRunLoopContainsObserverPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) + > + >('CFRunLoopContainsObserver'); late final _CFRunLoopContainsObserver = _CFRunLoopContainsObserverPtr.asFunction< - int Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode)>(); + int Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) + >(); void CFRunLoopAddObserver( CFRunLoopRef rl, CFRunLoopObserverRef observer, CFRunLoopMode mode, ) { - return _CFRunLoopAddObserver( - rl, - observer, - mode, - ); + return _CFRunLoopAddObserver(rl, observer, mode); } - late final _CFRunLoopAddObserverPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopRef, CFRunLoopObserverRef, - CFRunLoopMode)>>('CFRunLoopAddObserver'); - late final _CFRunLoopAddObserver = _CFRunLoopAddObserverPtr.asFunction< - void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode)>(); + late final _CFRunLoopAddObserverPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) + > + >('CFRunLoopAddObserver'); + late final _CFRunLoopAddObserver = + _CFRunLoopAddObserverPtr.asFunction< + void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) + >(); void CFRunLoopRemoveObserver( CFRunLoopRef rl, CFRunLoopObserverRef observer, CFRunLoopMode mode, ) { - return _CFRunLoopRemoveObserver( - rl, - observer, - mode, - ); + return _CFRunLoopRemoveObserver(rl, observer, mode); } - late final _CFRunLoopRemoveObserverPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopRef, CFRunLoopObserverRef, - CFRunLoopMode)>>('CFRunLoopRemoveObserver'); - late final _CFRunLoopRemoveObserver = _CFRunLoopRemoveObserverPtr.asFunction< - void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode)>(); + late final _CFRunLoopRemoveObserverPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) + > + >('CFRunLoopRemoveObserver'); + late final _CFRunLoopRemoveObserver = + _CFRunLoopRemoveObserverPtr.asFunction< + void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) + >(); int CFRunLoopContainsTimer( CFRunLoopRef rl, CFRunLoopTimerRef timer, CFRunLoopMode mode, ) { - return _CFRunLoopContainsTimer( - rl, - timer, - mode, - ); + return _CFRunLoopContainsTimer(rl, timer, mode); } - late final _CFRunLoopContainsTimerPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFRunLoopRef, CFRunLoopTimerRef, - CFRunLoopMode)>>('CFRunLoopContainsTimer'); - late final _CFRunLoopContainsTimer = _CFRunLoopContainsTimerPtr.asFunction< - int Function(CFRunLoopRef, CFRunLoopTimerRef, CFRunLoopMode)>(); + late final _CFRunLoopContainsTimerPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFRunLoopRef, CFRunLoopTimerRef, CFRunLoopMode) + > + >('CFRunLoopContainsTimer'); + late final _CFRunLoopContainsTimer = + _CFRunLoopContainsTimerPtr.asFunction< + int Function(CFRunLoopRef, CFRunLoopTimerRef, CFRunLoopMode) + >(); void CFRunLoopAddTimer( CFRunLoopRef rl, CFRunLoopTimerRef timer, CFRunLoopMode mode, ) { - return _CFRunLoopAddTimer( - rl, - timer, - mode, - ); + return _CFRunLoopAddTimer(rl, timer, mode); } - late final _CFRunLoopAddTimerPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopRef, CFRunLoopTimerRef, - CFRunLoopMode)>>('CFRunLoopAddTimer'); - late final _CFRunLoopAddTimer = _CFRunLoopAddTimerPtr.asFunction< - void Function(CFRunLoopRef, CFRunLoopTimerRef, CFRunLoopMode)>(); + late final _CFRunLoopAddTimerPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopRef, CFRunLoopTimerRef, CFRunLoopMode) + > + >('CFRunLoopAddTimer'); + late final _CFRunLoopAddTimer = + _CFRunLoopAddTimerPtr.asFunction< + void Function(CFRunLoopRef, CFRunLoopTimerRef, CFRunLoopMode) + >(); void CFRunLoopRemoveTimer( CFRunLoopRef rl, CFRunLoopTimerRef timer, CFRunLoopMode mode, ) { - return _CFRunLoopRemoveTimer( - rl, - timer, - mode, - ); + return _CFRunLoopRemoveTimer(rl, timer, mode); } - late final _CFRunLoopRemoveTimerPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopRef, CFRunLoopTimerRef, - CFRunLoopMode)>>('CFRunLoopRemoveTimer'); - late final _CFRunLoopRemoveTimer = _CFRunLoopRemoveTimerPtr.asFunction< - void Function(CFRunLoopRef, CFRunLoopTimerRef, CFRunLoopMode)>(); + late final _CFRunLoopRemoveTimerPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopRef, CFRunLoopTimerRef, CFRunLoopMode) + > + >('CFRunLoopRemoveTimer'); + late final _CFRunLoopRemoveTimer = + _CFRunLoopRemoveTimerPtr.asFunction< + void Function(CFRunLoopRef, CFRunLoopTimerRef, CFRunLoopMode) + >(); int CFRunLoopSourceGetTypeID() { return _CFRunLoopSourceGetTypeID(); @@ -19550,7 +19448,8 @@ class NativeCupertinoHttp { late final _CFRunLoopSourceGetTypeIDPtr = _lookup>( - 'CFRunLoopSourceGetTypeID'); + 'CFRunLoopSourceGetTypeID', + ); late final _CFRunLoopSourceGetTypeID = _CFRunLoopSourceGetTypeIDPtr.asFunction(); @@ -19559,60 +19458,62 @@ class NativeCupertinoHttp { int order, ffi.Pointer context, ) { - return _CFRunLoopSourceCreate( - allocator, - order, - context, - ); + return _CFRunLoopSourceCreate(allocator, order, context); } - late final _CFRunLoopSourceCreatePtr = _lookup< - ffi.NativeFunction< - CFRunLoopSourceRef Function(CFAllocatorRef, CFIndex, - ffi.Pointer)>>('CFRunLoopSourceCreate'); - late final _CFRunLoopSourceCreate = _CFRunLoopSourceCreatePtr.asFunction< - CFRunLoopSourceRef Function( - CFAllocatorRef, int, ffi.Pointer)>(); + late final _CFRunLoopSourceCreatePtr = + _lookup< + ffi.NativeFunction< + CFRunLoopSourceRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ) + > + >('CFRunLoopSourceCreate'); + late final _CFRunLoopSourceCreate = + _CFRunLoopSourceCreatePtr.asFunction< + CFRunLoopSourceRef Function( + CFAllocatorRef, + int, + ffi.Pointer, + ) + >(); - int CFRunLoopSourceGetOrder( - CFRunLoopSourceRef source, - ) { - return _CFRunLoopSourceGetOrder( - source, - ); + int CFRunLoopSourceGetOrder(CFRunLoopSourceRef source) { + return _CFRunLoopSourceGetOrder(source); } late final _CFRunLoopSourceGetOrderPtr = _lookup>( - 'CFRunLoopSourceGetOrder'); - late final _CFRunLoopSourceGetOrder = _CFRunLoopSourceGetOrderPtr.asFunction< - int Function(CFRunLoopSourceRef)>(); + 'CFRunLoopSourceGetOrder', + ); + late final _CFRunLoopSourceGetOrder = + _CFRunLoopSourceGetOrderPtr.asFunction< + int Function(CFRunLoopSourceRef) + >(); - void CFRunLoopSourceInvalidate( - CFRunLoopSourceRef source, - ) { - return _CFRunLoopSourceInvalidate( - source, - ); + void CFRunLoopSourceInvalidate(CFRunLoopSourceRef source) { + return _CFRunLoopSourceInvalidate(source); } late final _CFRunLoopSourceInvalidatePtr = _lookup>( - 'CFRunLoopSourceInvalidate'); - late final _CFRunLoopSourceInvalidate = _CFRunLoopSourceInvalidatePtr - .asFunction(); + 'CFRunLoopSourceInvalidate', + ); + late final _CFRunLoopSourceInvalidate = + _CFRunLoopSourceInvalidatePtr.asFunction< + void Function(CFRunLoopSourceRef) + >(); - int CFRunLoopSourceIsValid( - CFRunLoopSourceRef source, - ) { - return _CFRunLoopSourceIsValid( - source, - ); + int CFRunLoopSourceIsValid(CFRunLoopSourceRef source) { + return _CFRunLoopSourceIsValid(source); } late final _CFRunLoopSourceIsValidPtr = _lookup>( - 'CFRunLoopSourceIsValid'); + 'CFRunLoopSourceIsValid', + ); late final _CFRunLoopSourceIsValid = _CFRunLoopSourceIsValidPtr.asFunction(); @@ -19620,33 +19521,31 @@ class NativeCupertinoHttp { CFRunLoopSourceRef source, ffi.Pointer context, ) { - return _CFRunLoopSourceGetContext( - source, - context, - ); + return _CFRunLoopSourceGetContext(source, context); } - late final _CFRunLoopSourceGetContextPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFRunLoopSourceRef, ffi.Pointer)>>( - 'CFRunLoopSourceGetContext'); + late final _CFRunLoopSourceGetContextPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFRunLoopSourceRef, + ffi.Pointer, + ) + > + >('CFRunLoopSourceGetContext'); late final _CFRunLoopSourceGetContext = _CFRunLoopSourceGetContextPtr.asFunction< - void Function( - CFRunLoopSourceRef, ffi.Pointer)>(); + void Function(CFRunLoopSourceRef, ffi.Pointer) + >(); - void CFRunLoopSourceSignal( - CFRunLoopSourceRef source, - ) { - return _CFRunLoopSourceSignal( - source, - ); + void CFRunLoopSourceSignal(CFRunLoopSourceRef source) { + return _CFRunLoopSourceSignal(source); } late final _CFRunLoopSourceSignalPtr = _lookup>( - 'CFRunLoopSourceSignal'); + 'CFRunLoopSourceSignal', + ); late final _CFRunLoopSourceSignal = _CFRunLoopSourceSignalPtr.asFunction(); @@ -19656,7 +19555,8 @@ class NativeCupertinoHttp { late final _CFRunLoopObserverGetTypeIDPtr = _lookup>( - 'CFRunLoopObserverGetTypeID'); + 'CFRunLoopObserverGetTypeID', + ); late final _CFRunLoopObserverGetTypeID = _CFRunLoopObserverGetTypeIDPtr.asFunction(); @@ -19678,19 +19578,30 @@ class NativeCupertinoHttp { ); } - late final _CFRunLoopObserverCreatePtr = _lookup< - ffi.NativeFunction< - CFRunLoopObserverRef Function( - CFAllocatorRef, - CFOptionFlags, - Boolean, - CFIndex, - CFRunLoopObserverCallBack, - ffi.Pointer)>>( - 'CFRunLoopObserverCreate'); - late final _CFRunLoopObserverCreate = _CFRunLoopObserverCreatePtr.asFunction< - CFRunLoopObserverRef Function(CFAllocatorRef, int, int, int, - CFRunLoopObserverCallBack, ffi.Pointer)>(); + late final _CFRunLoopObserverCreatePtr = + _lookup< + ffi.NativeFunction< + CFRunLoopObserverRef Function( + CFAllocatorRef, + CFOptionFlags, + Boolean, + CFIndex, + CFRunLoopObserverCallBack, + ffi.Pointer, + ) + > + >('CFRunLoopObserverCreate'); + late final _CFRunLoopObserverCreate = + _CFRunLoopObserverCreatePtr.asFunction< + CFRunLoopObserverRef Function( + CFAllocatorRef, + int, + int, + int, + CFRunLoopObserverCallBack, + ffi.Pointer, + ) + >(); CFRunLoopObserverRef CFRunLoopObserverCreateWithHandler( CFAllocatorRef allocator, @@ -19698,8 +19609,9 @@ class NativeCupertinoHttp { DartBoolean repeats, DartCFIndex order, objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags)> - block, + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + block, ) { return _CFRunLoopObserverCreateWithHandler( allocator, @@ -19710,106 +19622,117 @@ class NativeCupertinoHttp { ); } - late final _CFRunLoopObserverCreateWithHandlerPtr = _lookup< - ffi.NativeFunction< - CFRunLoopObserverRef Function(CFAllocatorRef, CFOptionFlags, - Boolean, CFIndex, ffi.Pointer)>>( - 'CFRunLoopObserverCreateWithHandler'); + late final _CFRunLoopObserverCreateWithHandlerPtr = + _lookup< + ffi.NativeFunction< + CFRunLoopObserverRef Function( + CFAllocatorRef, + CFOptionFlags, + Boolean, + CFIndex, + ffi.Pointer, + ) + > + >('CFRunLoopObserverCreateWithHandler'); late final _CFRunLoopObserverCreateWithHandler = _CFRunLoopObserverCreateWithHandlerPtr.asFunction< - CFRunLoopObserverRef Function(CFAllocatorRef, int, int, int, - ffi.Pointer)>(); + CFRunLoopObserverRef Function( + CFAllocatorRef, + int, + int, + int, + ffi.Pointer, + ) + >(); - int CFRunLoopObserverGetActivities( - CFRunLoopObserverRef observer, - ) { - return _CFRunLoopObserverGetActivities( - observer, - ); + int CFRunLoopObserverGetActivities(CFRunLoopObserverRef observer) { + return _CFRunLoopObserverGetActivities(observer); } late final _CFRunLoopObserverGetActivitiesPtr = _lookup>( - 'CFRunLoopObserverGetActivities'); + 'CFRunLoopObserverGetActivities', + ); late final _CFRunLoopObserverGetActivities = _CFRunLoopObserverGetActivitiesPtr.asFunction< - int Function(CFRunLoopObserverRef)>(); + int Function(CFRunLoopObserverRef) + >(); - int CFRunLoopObserverDoesRepeat( - CFRunLoopObserverRef observer, - ) { - return _CFRunLoopObserverDoesRepeat( - observer, - ); + int CFRunLoopObserverDoesRepeat(CFRunLoopObserverRef observer) { + return _CFRunLoopObserverDoesRepeat(observer); } late final _CFRunLoopObserverDoesRepeatPtr = _lookup>( - 'CFRunLoopObserverDoesRepeat'); - late final _CFRunLoopObserverDoesRepeat = _CFRunLoopObserverDoesRepeatPtr - .asFunction(); + 'CFRunLoopObserverDoesRepeat', + ); + late final _CFRunLoopObserverDoesRepeat = + _CFRunLoopObserverDoesRepeatPtr.asFunction< + int Function(CFRunLoopObserverRef) + >(); - int CFRunLoopObserverGetOrder( - CFRunLoopObserverRef observer, - ) { - return _CFRunLoopObserverGetOrder( - observer, - ); + int CFRunLoopObserverGetOrder(CFRunLoopObserverRef observer) { + return _CFRunLoopObserverGetOrder(observer); } late final _CFRunLoopObserverGetOrderPtr = _lookup>( - 'CFRunLoopObserverGetOrder'); - late final _CFRunLoopObserverGetOrder = _CFRunLoopObserverGetOrderPtr - .asFunction(); + 'CFRunLoopObserverGetOrder', + ); + late final _CFRunLoopObserverGetOrder = + _CFRunLoopObserverGetOrderPtr.asFunction< + int Function(CFRunLoopObserverRef) + >(); - void CFRunLoopObserverInvalidate( - CFRunLoopObserverRef observer, - ) { - return _CFRunLoopObserverInvalidate( - observer, - ); + void CFRunLoopObserverInvalidate(CFRunLoopObserverRef observer) { + return _CFRunLoopObserverInvalidate(observer); } late final _CFRunLoopObserverInvalidatePtr = _lookup>( - 'CFRunLoopObserverInvalidate'); - late final _CFRunLoopObserverInvalidate = _CFRunLoopObserverInvalidatePtr - .asFunction(); + 'CFRunLoopObserverInvalidate', + ); + late final _CFRunLoopObserverInvalidate = + _CFRunLoopObserverInvalidatePtr.asFunction< + void Function(CFRunLoopObserverRef) + >(); - int CFRunLoopObserverIsValid( - CFRunLoopObserverRef observer, - ) { - return _CFRunLoopObserverIsValid( - observer, - ); + int CFRunLoopObserverIsValid(CFRunLoopObserverRef observer) { + return _CFRunLoopObserverIsValid(observer); } late final _CFRunLoopObserverIsValidPtr = _lookup>( - 'CFRunLoopObserverIsValid'); - late final _CFRunLoopObserverIsValid = _CFRunLoopObserverIsValidPtr - .asFunction(); + 'CFRunLoopObserverIsValid', + ); + late final _CFRunLoopObserverIsValid = + _CFRunLoopObserverIsValidPtr.asFunction< + int Function(CFRunLoopObserverRef) + >(); void CFRunLoopObserverGetContext( CFRunLoopObserverRef observer, ffi.Pointer context, ) { - return _CFRunLoopObserverGetContext( - observer, - context, - ); + return _CFRunLoopObserverGetContext(observer, context); } - late final _CFRunLoopObserverGetContextPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopObserverRef, - ffi.Pointer)>>( - 'CFRunLoopObserverGetContext'); + late final _CFRunLoopObserverGetContextPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFRunLoopObserverRef, + ffi.Pointer, + ) + > + >('CFRunLoopObserverGetContext'); late final _CFRunLoopObserverGetContext = _CFRunLoopObserverGetContextPtr.asFunction< - void Function( - CFRunLoopObserverRef, ffi.Pointer)>(); + void Function( + CFRunLoopObserverRef, + ffi.Pointer, + ) + >(); int CFRunLoopTimerGetTypeID() { return _CFRunLoopTimerGetTypeID(); @@ -19817,7 +19740,8 @@ class NativeCupertinoHttp { late final _CFRunLoopTimerGetTypeIDPtr = _lookup>( - 'CFRunLoopTimerGetTypeID'); + 'CFRunLoopTimerGetTypeID', + ); late final _CFRunLoopTimerGetTypeID = _CFRunLoopTimerGetTypeIDPtr.asFunction(); @@ -19841,19 +19765,32 @@ class NativeCupertinoHttp { ); } - late final _CFRunLoopTimerCreatePtr = _lookup< - ffi.NativeFunction< + late final _CFRunLoopTimerCreatePtr = + _lookup< + ffi.NativeFunction< CFRunLoopTimerRef Function( - CFAllocatorRef, - CFAbsoluteTime, - CFTimeInterval, - CFOptionFlags, - CFIndex, - CFRunLoopTimerCallBack, - ffi.Pointer)>>('CFRunLoopTimerCreate'); - late final _CFRunLoopTimerCreate = _CFRunLoopTimerCreatePtr.asFunction< - CFRunLoopTimerRef Function(CFAllocatorRef, double, double, int, int, - CFRunLoopTimerCallBack, ffi.Pointer)>(); + CFAllocatorRef, + CFAbsoluteTime, + CFTimeInterval, + CFOptionFlags, + CFIndex, + CFRunLoopTimerCallBack, + ffi.Pointer, + ) + > + >('CFRunLoopTimerCreate'); + late final _CFRunLoopTimerCreate = + _CFRunLoopTimerCreatePtr.asFunction< + CFRunLoopTimerRef Function( + CFAllocatorRef, + double, + double, + int, + int, + CFRunLoopTimerCallBack, + ffi.Pointer, + ) + >(); CFRunLoopTimerRef CFRunLoopTimerCreateWithHandler( CFAllocatorRef allocator, @@ -19873,119 +19810,115 @@ class NativeCupertinoHttp { ); } - late final _CFRunLoopTimerCreateWithHandlerPtr = _lookup< - ffi.NativeFunction< - CFRunLoopTimerRef Function( - CFAllocatorRef, - CFAbsoluteTime, - CFTimeInterval, - CFOptionFlags, - CFIndex, - ffi.Pointer)>>( - 'CFRunLoopTimerCreateWithHandler'); + late final _CFRunLoopTimerCreateWithHandlerPtr = + _lookup< + ffi.NativeFunction< + CFRunLoopTimerRef Function( + CFAllocatorRef, + CFAbsoluteTime, + CFTimeInterval, + CFOptionFlags, + CFIndex, + ffi.Pointer, + ) + > + >('CFRunLoopTimerCreateWithHandler'); late final _CFRunLoopTimerCreateWithHandler = _CFRunLoopTimerCreateWithHandlerPtr.asFunction< - CFRunLoopTimerRef Function(CFAllocatorRef, double, double, int, int, - ffi.Pointer)>(); + CFRunLoopTimerRef Function( + CFAllocatorRef, + double, + double, + int, + int, + ffi.Pointer, + ) + >(); - double CFRunLoopTimerGetNextFireDate( - CFRunLoopTimerRef timer, - ) { - return _CFRunLoopTimerGetNextFireDate( - timer, - ); + double CFRunLoopTimerGetNextFireDate(CFRunLoopTimerRef timer) { + return _CFRunLoopTimerGetNextFireDate(timer); } late final _CFRunLoopTimerGetNextFireDatePtr = _lookup>( - 'CFRunLoopTimerGetNextFireDate'); - late final _CFRunLoopTimerGetNextFireDate = _CFRunLoopTimerGetNextFireDatePtr - .asFunction(); + 'CFRunLoopTimerGetNextFireDate', + ); + late final _CFRunLoopTimerGetNextFireDate = + _CFRunLoopTimerGetNextFireDatePtr.asFunction< + double Function(CFRunLoopTimerRef) + >(); - void CFRunLoopTimerSetNextFireDate( - CFRunLoopTimerRef timer, - double fireDate, - ) { - return _CFRunLoopTimerSetNextFireDate( - timer, - fireDate, - ); + void CFRunLoopTimerSetNextFireDate(CFRunLoopTimerRef timer, double fireDate) { + return _CFRunLoopTimerSetNextFireDate(timer, fireDate); } - late final _CFRunLoopTimerSetNextFireDatePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopTimerRef, - CFAbsoluteTime)>>('CFRunLoopTimerSetNextFireDate'); - late final _CFRunLoopTimerSetNextFireDate = _CFRunLoopTimerSetNextFireDatePtr - .asFunction(); + late final _CFRunLoopTimerSetNextFireDatePtr = + _lookup< + ffi.NativeFunction + >('CFRunLoopTimerSetNextFireDate'); + late final _CFRunLoopTimerSetNextFireDate = + _CFRunLoopTimerSetNextFireDatePtr.asFunction< + void Function(CFRunLoopTimerRef, double) + >(); - double CFRunLoopTimerGetInterval( - CFRunLoopTimerRef timer, - ) { - return _CFRunLoopTimerGetInterval( - timer, - ); + double CFRunLoopTimerGetInterval(CFRunLoopTimerRef timer) { + return _CFRunLoopTimerGetInterval(timer); } late final _CFRunLoopTimerGetIntervalPtr = _lookup>( - 'CFRunLoopTimerGetInterval'); - late final _CFRunLoopTimerGetInterval = _CFRunLoopTimerGetIntervalPtr - .asFunction(); + 'CFRunLoopTimerGetInterval', + ); + late final _CFRunLoopTimerGetInterval = + _CFRunLoopTimerGetIntervalPtr.asFunction< + double Function(CFRunLoopTimerRef) + >(); - int CFRunLoopTimerDoesRepeat( - CFRunLoopTimerRef timer, - ) { - return _CFRunLoopTimerDoesRepeat( - timer, - ); + int CFRunLoopTimerDoesRepeat(CFRunLoopTimerRef timer) { + return _CFRunLoopTimerDoesRepeat(timer); } late final _CFRunLoopTimerDoesRepeatPtr = _lookup>( - 'CFRunLoopTimerDoesRepeat'); - late final _CFRunLoopTimerDoesRepeat = _CFRunLoopTimerDoesRepeatPtr - .asFunction(); + 'CFRunLoopTimerDoesRepeat', + ); + late final _CFRunLoopTimerDoesRepeat = + _CFRunLoopTimerDoesRepeatPtr.asFunction< + int Function(CFRunLoopTimerRef) + >(); - int CFRunLoopTimerGetOrder( - CFRunLoopTimerRef timer, - ) { - return _CFRunLoopTimerGetOrder( - timer, - ); + int CFRunLoopTimerGetOrder(CFRunLoopTimerRef timer) { + return _CFRunLoopTimerGetOrder(timer); } late final _CFRunLoopTimerGetOrderPtr = _lookup>( - 'CFRunLoopTimerGetOrder'); + 'CFRunLoopTimerGetOrder', + ); late final _CFRunLoopTimerGetOrder = _CFRunLoopTimerGetOrderPtr.asFunction(); - void CFRunLoopTimerInvalidate( - CFRunLoopTimerRef timer, - ) { - return _CFRunLoopTimerInvalidate( - timer, - ); + void CFRunLoopTimerInvalidate(CFRunLoopTimerRef timer) { + return _CFRunLoopTimerInvalidate(timer); } late final _CFRunLoopTimerInvalidatePtr = _lookup>( - 'CFRunLoopTimerInvalidate'); - late final _CFRunLoopTimerInvalidate = _CFRunLoopTimerInvalidatePtr - .asFunction(); + 'CFRunLoopTimerInvalidate', + ); + late final _CFRunLoopTimerInvalidate = + _CFRunLoopTimerInvalidatePtr.asFunction< + void Function(CFRunLoopTimerRef) + >(); - int CFRunLoopTimerIsValid( - CFRunLoopTimerRef timer, - ) { - return _CFRunLoopTimerIsValid( - timer, - ); + int CFRunLoopTimerIsValid(CFRunLoopTimerRef timer) { + return _CFRunLoopTimerIsValid(timer); } late final _CFRunLoopTimerIsValidPtr = _lookup>( - 'CFRunLoopTimerIsValid'); + 'CFRunLoopTimerIsValid', + ); late final _CFRunLoopTimerIsValid = _CFRunLoopTimerIsValidPtr.asFunction(); @@ -19993,51 +19926,48 @@ class NativeCupertinoHttp { CFRunLoopTimerRef timer, ffi.Pointer context, ) { - return _CFRunLoopTimerGetContext( - timer, - context, - ); + return _CFRunLoopTimerGetContext(timer, context); } - late final _CFRunLoopTimerGetContextPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopTimerRef, - ffi.Pointer)>>('CFRunLoopTimerGetContext'); + late final _CFRunLoopTimerGetContextPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFRunLoopTimerRef, + ffi.Pointer, + ) + > + >('CFRunLoopTimerGetContext'); late final _CFRunLoopTimerGetContext = _CFRunLoopTimerGetContextPtr.asFunction< - void Function( - CFRunLoopTimerRef, ffi.Pointer)>(); + void Function(CFRunLoopTimerRef, ffi.Pointer) + >(); - double CFRunLoopTimerGetTolerance( - CFRunLoopTimerRef timer, - ) { - return _CFRunLoopTimerGetTolerance( - timer, - ); + double CFRunLoopTimerGetTolerance(CFRunLoopTimerRef timer) { + return _CFRunLoopTimerGetTolerance(timer); } late final _CFRunLoopTimerGetTolerancePtr = _lookup>( - 'CFRunLoopTimerGetTolerance'); - late final _CFRunLoopTimerGetTolerance = _CFRunLoopTimerGetTolerancePtr - .asFunction(); + 'CFRunLoopTimerGetTolerance', + ); + late final _CFRunLoopTimerGetTolerance = + _CFRunLoopTimerGetTolerancePtr.asFunction< + double Function(CFRunLoopTimerRef) + >(); - void CFRunLoopTimerSetTolerance( - CFRunLoopTimerRef timer, - double tolerance, - ) { - return _CFRunLoopTimerSetTolerance( - timer, - tolerance, - ); + void CFRunLoopTimerSetTolerance(CFRunLoopTimerRef timer, double tolerance) { + return _CFRunLoopTimerSetTolerance(timer, tolerance); } - late final _CFRunLoopTimerSetTolerancePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopTimerRef, - CFTimeInterval)>>('CFRunLoopTimerSetTolerance'); - late final _CFRunLoopTimerSetTolerance = _CFRunLoopTimerSetTolerancePtr - .asFunction(); + late final _CFRunLoopTimerSetTolerancePtr = + _lookup< + ffi.NativeFunction + >('CFRunLoopTimerSetTolerance'); + late final _CFRunLoopTimerSetTolerance = + _CFRunLoopTimerSetTolerancePtr.asFunction< + void Function(CFRunLoopTimerRef, double) + >(); int CFSocketGetTypeID() { return _CFSocketGetTypeID(); @@ -20068,19 +19998,32 @@ class NativeCupertinoHttp { ); } - late final _CFSocketCreatePtr = _lookup< - ffi.NativeFunction< + late final _CFSocketCreatePtr = + _lookup< + ffi.NativeFunction< CFSocketRef Function( - CFAllocatorRef, - SInt32, - SInt32, - SInt32, - CFOptionFlags, - CFSocketCallBack, - ffi.Pointer)>>('CFSocketCreate'); - late final _CFSocketCreate = _CFSocketCreatePtr.asFunction< - CFSocketRef Function(CFAllocatorRef, int, int, int, int, CFSocketCallBack, - ffi.Pointer)>(); + CFAllocatorRef, + SInt32, + SInt32, + SInt32, + CFOptionFlags, + CFSocketCallBack, + ffi.Pointer, + ) + > + >('CFSocketCreate'); + late final _CFSocketCreate = + _CFSocketCreatePtr.asFunction< + CFSocketRef Function( + CFAllocatorRef, + int, + int, + int, + int, + CFSocketCallBack, + ffi.Pointer, + ) + >(); CFSocketRef CFSocketCreateWithNative( CFAllocatorRef allocator, @@ -20098,18 +20041,28 @@ class NativeCupertinoHttp { ); } - late final _CFSocketCreateWithNativePtr = _lookup< - ffi.NativeFunction< + late final _CFSocketCreateWithNativePtr = + _lookup< + ffi.NativeFunction< CFSocketRef Function( - CFAllocatorRef, - CFSocketNativeHandle, - CFOptionFlags, - CFSocketCallBack, - ffi.Pointer)>>('CFSocketCreateWithNative'); + CFAllocatorRef, + CFSocketNativeHandle, + CFOptionFlags, + CFSocketCallBack, + ffi.Pointer, + ) + > + >('CFSocketCreateWithNative'); late final _CFSocketCreateWithNative = _CFSocketCreateWithNativePtr.asFunction< - CFSocketRef Function(CFAllocatorRef, int, int, CFSocketCallBack, - ffi.Pointer)>(); + CFSocketRef Function( + CFAllocatorRef, + int, + int, + CFSocketCallBack, + ffi.Pointer, + ) + >(); CFSocketRef CFSocketCreateWithSocketSignature( CFAllocatorRef allocator, @@ -20127,19 +20080,28 @@ class NativeCupertinoHttp { ); } - late final _CFSocketCreateWithSocketSignaturePtr = _lookup< - ffi.NativeFunction< - CFSocketRef Function( - CFAllocatorRef, - ffi.Pointer, - CFOptionFlags, - CFSocketCallBack, - ffi.Pointer)>>( - 'CFSocketCreateWithSocketSignature'); + late final _CFSocketCreateWithSocketSignaturePtr = + _lookup< + ffi.NativeFunction< + CFSocketRef Function( + CFAllocatorRef, + ffi.Pointer, + CFOptionFlags, + CFSocketCallBack, + ffi.Pointer, + ) + > + >('CFSocketCreateWithSocketSignature'); late final _CFSocketCreateWithSocketSignature = _CFSocketCreateWithSocketSignaturePtr.asFunction< - CFSocketRef Function(CFAllocatorRef, ffi.Pointer, - int, CFSocketCallBack, ffi.Pointer)>(); + CFSocketRef Function( + CFAllocatorRef, + ffi.Pointer, + int, + CFSocketCallBack, + ffi.Pointer, + ) + >(); CFSocketRef CFSocketCreateConnectedToSocketSignature( CFAllocatorRef allocator, @@ -20159,33 +20121,39 @@ class NativeCupertinoHttp { ); } - late final _CFSocketCreateConnectedToSocketSignaturePtr = _lookup< - ffi.NativeFunction< + late final _CFSocketCreateConnectedToSocketSignaturePtr = + _lookup< + ffi.NativeFunction< CFSocketRef Function( - CFAllocatorRef, - ffi.Pointer, - CFOptionFlags, - CFSocketCallBack, - ffi.Pointer, - CFTimeInterval)>>('CFSocketCreateConnectedToSocketSignature'); + CFAllocatorRef, + ffi.Pointer, + CFOptionFlags, + CFSocketCallBack, + ffi.Pointer, + CFTimeInterval, + ) + > + >('CFSocketCreateConnectedToSocketSignature'); late final _CFSocketCreateConnectedToSocketSignature = _CFSocketCreateConnectedToSocketSignaturePtr.asFunction< - CFSocketRef Function(CFAllocatorRef, ffi.Pointer, - int, CFSocketCallBack, ffi.Pointer, double)>(); + CFSocketRef Function( + CFAllocatorRef, + ffi.Pointer, + int, + CFSocketCallBack, + ffi.Pointer, + double, + ) + >(); - CFSocketError CFSocketSetAddress( - CFSocketRef s, - CFDataRef address, - ) { - return CFSocketError.fromValue(_CFSocketSetAddress( - s, - address, - )); + CFSocketError CFSocketSetAddress(CFSocketRef s, CFDataRef address) { + return CFSocketError.fromValue(_CFSocketSetAddress(s, address)); } late final _CFSocketSetAddressPtr = _lookup>( - 'CFSocketSetAddress'); + 'CFSocketSetAddress', + ); late final _CFSocketSetAddress = _CFSocketSetAddressPtr.asFunction(); @@ -20194,104 +20162,89 @@ class NativeCupertinoHttp { CFDataRef address, DartCFTimeInterval timeout, ) { - return CFSocketError.fromValue(_CFSocketConnectToAddress( - s, - address, - timeout, - )); + return CFSocketError.fromValue( + _CFSocketConnectToAddress(s, address, timeout), + ); } - late final _CFSocketConnectToAddressPtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFSocketRef, CFDataRef, - CFTimeInterval)>>('CFSocketConnectToAddress'); - late final _CFSocketConnectToAddress = _CFSocketConnectToAddressPtr - .asFunction(); + late final _CFSocketConnectToAddressPtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFSocketRef, CFDataRef, CFTimeInterval) + > + >('CFSocketConnectToAddress'); + late final _CFSocketConnectToAddress = + _CFSocketConnectToAddressPtr.asFunction< + int Function(CFSocketRef, CFDataRef, double) + >(); - void CFSocketInvalidate( - CFSocketRef s, - ) { - return _CFSocketInvalidate( - s, - ); + void CFSocketInvalidate(CFSocketRef s) { + return _CFSocketInvalidate(s); } late final _CFSocketInvalidatePtr = _lookup>( - 'CFSocketInvalidate'); + 'CFSocketInvalidate', + ); late final _CFSocketInvalidate = _CFSocketInvalidatePtr.asFunction(); - int CFSocketIsValid( - CFSocketRef s, - ) { - return _CFSocketIsValid( - s, - ); + int CFSocketIsValid(CFSocketRef s) { + return _CFSocketIsValid(s); } late final _CFSocketIsValidPtr = _lookup>( - 'CFSocketIsValid'); + 'CFSocketIsValid', + ); late final _CFSocketIsValid = _CFSocketIsValidPtr.asFunction(); - CFDataRef CFSocketCopyAddress( - CFSocketRef s, - ) { - return _CFSocketCopyAddress( - s, - ); + CFDataRef CFSocketCopyAddress(CFSocketRef s) { + return _CFSocketCopyAddress(s); } late final _CFSocketCopyAddressPtr = _lookup>( - 'CFSocketCopyAddress'); + 'CFSocketCopyAddress', + ); late final _CFSocketCopyAddress = _CFSocketCopyAddressPtr.asFunction(); - CFDataRef CFSocketCopyPeerAddress( - CFSocketRef s, - ) { - return _CFSocketCopyPeerAddress( - s, - ); + CFDataRef CFSocketCopyPeerAddress(CFSocketRef s) { + return _CFSocketCopyPeerAddress(s); } late final _CFSocketCopyPeerAddressPtr = _lookup>( - 'CFSocketCopyPeerAddress'); + 'CFSocketCopyPeerAddress', + ); late final _CFSocketCopyPeerAddress = _CFSocketCopyPeerAddressPtr.asFunction(); - void CFSocketGetContext( - CFSocketRef s, - ffi.Pointer context, - ) { - return _CFSocketGetContext( - s, - context, - ); + void CFSocketGetContext(CFSocketRef s, ffi.Pointer context) { + return _CFSocketGetContext(s, context); } - late final _CFSocketGetContextPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFSocketRef, - ffi.Pointer)>>('CFSocketGetContext'); - late final _CFSocketGetContext = _CFSocketGetContextPtr.asFunction< - void Function(CFSocketRef, ffi.Pointer)>(); + late final _CFSocketGetContextPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFSocketRef, ffi.Pointer) + > + >('CFSocketGetContext'); + late final _CFSocketGetContext = + _CFSocketGetContextPtr.asFunction< + void Function(CFSocketRef, ffi.Pointer) + >(); - int CFSocketGetNative( - CFSocketRef s, - ) { - return _CFSocketGetNative( - s, - ); + int CFSocketGetNative(CFSocketRef s) { + return _CFSocketGetNative(s); } late final _CFSocketGetNativePtr = _lookup>( - 'CFSocketGetNative'); + 'CFSocketGetNative', + ); late final _CFSocketGetNative = _CFSocketGetNativePtr.asFunction(); @@ -20300,80 +20253,63 @@ class NativeCupertinoHttp { CFSocketRef s, int order, ) { - return _CFSocketCreateRunLoopSource( - allocator, - s, - order, - ); + return _CFSocketCreateRunLoopSource(allocator, s, order); } - late final _CFSocketCreateRunLoopSourcePtr = _lookup< - ffi.NativeFunction< - CFRunLoopSourceRef Function(CFAllocatorRef, CFSocketRef, - CFIndex)>>('CFSocketCreateRunLoopSource'); + late final _CFSocketCreateRunLoopSourcePtr = + _lookup< + ffi.NativeFunction< + CFRunLoopSourceRef Function(CFAllocatorRef, CFSocketRef, CFIndex) + > + >('CFSocketCreateRunLoopSource'); late final _CFSocketCreateRunLoopSource = _CFSocketCreateRunLoopSourcePtr.asFunction< - CFRunLoopSourceRef Function(CFAllocatorRef, CFSocketRef, int)>(); + CFRunLoopSourceRef Function(CFAllocatorRef, CFSocketRef, int) + >(); - int CFSocketGetSocketFlags( - CFSocketRef s, - ) { - return _CFSocketGetSocketFlags( - s, - ); + int CFSocketGetSocketFlags(CFSocketRef s) { + return _CFSocketGetSocketFlags(s); } late final _CFSocketGetSocketFlagsPtr = _lookup>( - 'CFSocketGetSocketFlags'); + 'CFSocketGetSocketFlags', + ); late final _CFSocketGetSocketFlags = _CFSocketGetSocketFlagsPtr.asFunction(); - void CFSocketSetSocketFlags( - CFSocketRef s, - int flags, - ) { - return _CFSocketSetSocketFlags( - s, - flags, - ); + void CFSocketSetSocketFlags(CFSocketRef s, int flags) { + return _CFSocketSetSocketFlags(s, flags); } - late final _CFSocketSetSocketFlagsPtr = _lookup< - ffi.NativeFunction>( - 'CFSocketSetSocketFlags'); + late final _CFSocketSetSocketFlagsPtr = + _lookup< + ffi.NativeFunction + >('CFSocketSetSocketFlags'); late final _CFSocketSetSocketFlags = _CFSocketSetSocketFlagsPtr.asFunction(); - void CFSocketDisableCallBacks( - CFSocketRef s, - int callBackTypes, - ) { - return _CFSocketDisableCallBacks( - s, - callBackTypes, - ); + void CFSocketDisableCallBacks(CFSocketRef s, int callBackTypes) { + return _CFSocketDisableCallBacks(s, callBackTypes); } - late final _CFSocketDisableCallBacksPtr = _lookup< - ffi.NativeFunction>( - 'CFSocketDisableCallBacks'); - late final _CFSocketDisableCallBacks = _CFSocketDisableCallBacksPtr - .asFunction(); + late final _CFSocketDisableCallBacksPtr = + _lookup< + ffi.NativeFunction + >('CFSocketDisableCallBacks'); + late final _CFSocketDisableCallBacks = + _CFSocketDisableCallBacksPtr.asFunction< + void Function(CFSocketRef, int) + >(); - void CFSocketEnableCallBacks( - CFSocketRef s, - int callBackTypes, - ) { - return _CFSocketEnableCallBacks( - s, - callBackTypes, - ); + void CFSocketEnableCallBacks(CFSocketRef s, int callBackTypes) { + return _CFSocketEnableCallBacks(s, callBackTypes); } - late final _CFSocketEnableCallBacksPtr = _lookup< - ffi.NativeFunction>( - 'CFSocketEnableCallBacks'); + late final _CFSocketEnableCallBacksPtr = + _lookup< + ffi.NativeFunction + >('CFSocketEnableCallBacks'); late final _CFSocketEnableCallBacks = _CFSocketEnableCallBacksPtr.asFunction(); @@ -20383,20 +20319,21 @@ class NativeCupertinoHttp { CFDataRef data, DartCFTimeInterval timeout, ) { - return CFSocketError.fromValue(_CFSocketSendData( - s, - address, - data, - timeout, - )); + return CFSocketError.fromValue( + _CFSocketSendData(s, address, data, timeout), + ); } - late final _CFSocketSendDataPtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFSocketRef, CFDataRef, CFDataRef, - CFTimeInterval)>>('CFSocketSendData'); - late final _CFSocketSendData = _CFSocketSendDataPtr.asFunction< - int Function(CFSocketRef, CFDataRef, CFDataRef, double)>(); + late final _CFSocketSendDataPtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFSocketRef, CFDataRef, CFDataRef, CFTimeInterval) + > + >('CFSocketSendData'); + late final _CFSocketSendData = + _CFSocketSendDataPtr.asFunction< + int Function(CFSocketRef, CFDataRef, CFDataRef, double) + >(); CFSocketError CFSocketRegisterValue( ffi.Pointer nameServerSignature, @@ -20404,21 +20341,31 @@ class NativeCupertinoHttp { CFStringRef name, CFPropertyListRef value, ) { - return CFSocketError.fromValue(_CFSocketRegisterValue( - nameServerSignature, - timeout, - name, - value, - )); + return CFSocketError.fromValue( + _CFSocketRegisterValue(nameServerSignature, timeout, name, value), + ); } - late final _CFSocketRegisterValuePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(ffi.Pointer, CFTimeInterval, - CFStringRef, CFPropertyListRef)>>('CFSocketRegisterValue'); - late final _CFSocketRegisterValue = _CFSocketRegisterValuePtr.asFunction< - int Function(ffi.Pointer, double, CFStringRef, - CFPropertyListRef)>(); + late final _CFSocketRegisterValuePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer, + CFTimeInterval, + CFStringRef, + CFPropertyListRef, + ) + > + >('CFSocketRegisterValue'); + late final _CFSocketRegisterValue = + _CFSocketRegisterValuePtr.asFunction< + int Function( + ffi.Pointer, + double, + CFStringRef, + CFPropertyListRef, + ) + >(); CFSocketError CFSocketCopyRegisteredValue( ffi.Pointer nameServerSignature, @@ -20427,27 +20374,39 @@ class NativeCupertinoHttp { ffi.Pointer value, ffi.Pointer nameServerAddress, ) { - return CFSocketError.fromValue(_CFSocketCopyRegisteredValue( - nameServerSignature, - timeout, - name, - value, - nameServerAddress, - )); + return CFSocketError.fromValue( + _CFSocketCopyRegisteredValue( + nameServerSignature, + timeout, + name, + value, + nameServerAddress, + ), + ); } - late final _CFSocketCopyRegisteredValuePtr = _lookup< - ffi.NativeFunction< + late final _CFSocketCopyRegisteredValuePtr = + _lookup< + ffi.NativeFunction< CFIndex Function( - ffi.Pointer, - CFTimeInterval, - CFStringRef, - ffi.Pointer, - ffi.Pointer)>>('CFSocketCopyRegisteredValue'); + ffi.Pointer, + CFTimeInterval, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFSocketCopyRegisteredValue'); late final _CFSocketCopyRegisteredValue = _CFSocketCopyRegisteredValuePtr.asFunction< - int Function(ffi.Pointer, double, CFStringRef, - ffi.Pointer, ffi.Pointer)>(); + int Function( + ffi.Pointer, + double, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); CFSocketError CFSocketRegisterSocketSignature( ffi.Pointer nameServerSignature, @@ -20455,23 +20414,36 @@ class NativeCupertinoHttp { CFStringRef name, ffi.Pointer signature, ) { - return CFSocketError.fromValue(_CFSocketRegisterSocketSignature( - nameServerSignature, - timeout, - name, - signature, - )); + return CFSocketError.fromValue( + _CFSocketRegisterSocketSignature( + nameServerSignature, + timeout, + name, + signature, + ), + ); } - late final _CFSocketRegisterSocketSignaturePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(ffi.Pointer, CFTimeInterval, - CFStringRef, ffi.Pointer)>>( - 'CFSocketRegisterSocketSignature'); + late final _CFSocketRegisterSocketSignaturePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer, + CFTimeInterval, + CFStringRef, + ffi.Pointer, + ) + > + >('CFSocketRegisterSocketSignature'); late final _CFSocketRegisterSocketSignature = _CFSocketRegisterSocketSignaturePtr.asFunction< - int Function(ffi.Pointer, double, CFStringRef, - ffi.Pointer)>(); + int Function( + ffi.Pointer, + double, + CFStringRef, + ffi.Pointer, + ) + >(); CFSocketError CFSocketCopyRegisteredSocketSignature( ffi.Pointer nameServerSignature, @@ -20480,62 +20452,77 @@ class NativeCupertinoHttp { ffi.Pointer signature, ffi.Pointer nameServerAddress, ) { - return CFSocketError.fromValue(_CFSocketCopyRegisteredSocketSignature( - nameServerSignature, - timeout, - name, - signature, - nameServerAddress, - )); + return CFSocketError.fromValue( + _CFSocketCopyRegisteredSocketSignature( + nameServerSignature, + timeout, + name, + signature, + nameServerAddress, + ), + ); } - late final _CFSocketCopyRegisteredSocketSignaturePtr = _lookup< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer, - CFTimeInterval, - CFStringRef, - ffi.Pointer, - ffi.Pointer)>>( - 'CFSocketCopyRegisteredSocketSignature'); + late final _CFSocketCopyRegisteredSocketSignaturePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer, + CFTimeInterval, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFSocketCopyRegisteredSocketSignature'); late final _CFSocketCopyRegisteredSocketSignature = _CFSocketCopyRegisteredSocketSignaturePtr.asFunction< - int Function(ffi.Pointer, double, CFStringRef, - ffi.Pointer, ffi.Pointer)>(); + int Function( + ffi.Pointer, + double, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); CFSocketError CFSocketUnregister( ffi.Pointer nameServerSignature, DartCFTimeInterval timeout, CFStringRef name, ) { - return CFSocketError.fromValue(_CFSocketUnregister( - nameServerSignature, - timeout, - name, - )); + return CFSocketError.fromValue( + _CFSocketUnregister(nameServerSignature, timeout, name), + ); } - late final _CFSocketUnregisterPtr = _lookup< - ffi.NativeFunction< - CFIndex Function(ffi.Pointer, CFTimeInterval, - CFStringRef)>>('CFSocketUnregister'); - late final _CFSocketUnregister = _CFSocketUnregisterPtr.asFunction< - int Function(ffi.Pointer, double, CFStringRef)>(); + late final _CFSocketUnregisterPtr = + _lookup< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer, + CFTimeInterval, + CFStringRef, + ) + > + >('CFSocketUnregister'); + late final _CFSocketUnregister = + _CFSocketUnregisterPtr.asFunction< + int Function(ffi.Pointer, double, CFStringRef) + >(); - void CFSocketSetDefaultNameRegistryPortNumber( - int port, - ) { - return _CFSocketSetDefaultNameRegistryPortNumber( - port, - ); + void CFSocketSetDefaultNameRegistryPortNumber(int port) { + return _CFSocketSetDefaultNameRegistryPortNumber(port); } late final _CFSocketSetDefaultNameRegistryPortNumberPtr = _lookup>( - 'CFSocketSetDefaultNameRegistryPortNumber'); + 'CFSocketSetDefaultNameRegistryPortNumber', + ); late final _CFSocketSetDefaultNameRegistryPortNumber = _CFSocketSetDefaultNameRegistryPortNumberPtr.asFunction< - void Function(int)>(); + void Function(int) + >(); int CFSocketGetDefaultNameRegistryPortNumber() { return _CFSocketGetDefaultNameRegistryPortNumber(); @@ -20543,7 +20530,8 @@ class NativeCupertinoHttp { late final _CFSocketGetDefaultNameRegistryPortNumberPtr = _lookup>( - 'CFSocketGetDefaultNameRegistryPortNumber'); + 'CFSocketGetDefaultNameRegistryPortNumber', + ); late final _CFSocketGetDefaultNameRegistryPortNumber = _CFSocketGetDefaultNameRegistryPortNumberPtr.asFunction(); @@ -20552,13 +20540,15 @@ class NativeCupertinoHttp { CFStringRef get kCFSocketCommandKey => _kCFSocketCommandKey.value; - late final ffi.Pointer _kCFSocketNameKey = - _lookup('kCFSocketNameKey'); + late final ffi.Pointer _kCFSocketNameKey = _lookup( + 'kCFSocketNameKey', + ); CFStringRef get kCFSocketNameKey => _kCFSocketNameKey.value; - late final ffi.Pointer _kCFSocketValueKey = - _lookup('kCFSocketValueKey'); + late final ffi.Pointer _kCFSocketValueKey = _lookup( + 'kCFSocketValueKey', + ); CFStringRef get kCFSocketValueKey => _kCFSocketValueKey.value; @@ -20567,8 +20557,9 @@ class NativeCupertinoHttp { CFStringRef get kCFSocketResultKey => _kCFSocketResultKey.value; - late final ffi.Pointer _kCFSocketErrorKey = - _lookup('kCFSocketErrorKey'); + late final ffi.Pointer _kCFSocketErrorKey = _lookup( + 'kCFSocketErrorKey', + ); CFStringRef get kCFSocketErrorKey => _kCFSocketErrorKey.value; @@ -20589,22 +20580,31 @@ class NativeCupertinoHttp { int arg3, int arg4, ) { - return _getattrlistbulk( - arg0, - arg1, - arg2, - arg3, - arg4, - ); + return _getattrlistbulk(arg0, arg1, arg2, arg3, arg4); } - late final _getattrlistbulkPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, - ffi.Pointer, ffi.Size, ffi.Uint64)>>('getattrlistbulk'); - late final _getattrlistbulk = _getattrlistbulkPtr.asFunction< - int Function( - int, ffi.Pointer, ffi.Pointer, int, int)>(); + late final _getattrlistbulkPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Uint64, + ) + > + >('getattrlistbulk'); + late final _getattrlistbulk = _getattrlistbulkPtr + .asFunction< + int Function( + int, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); int getattrlistat( int arg0, @@ -20614,28 +20614,33 @@ class NativeCupertinoHttp { int arg4, int arg5, ) { - return _getattrlistat( - arg0, - arg1, - arg2, - arg3, - arg4, - arg5, - ); + return _getattrlistat(arg0, arg1, arg2, arg3, arg4, arg5); } - late final _getattrlistatPtr = _lookup< - ffi.NativeFunction< + late final _getattrlistatPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedLong)>>('getattrlistat'); - late final _getattrlistat = _getattrlistatPtr.asFunction< - int Function(int, ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int)>(); + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedLong, + ) + > + >('getattrlistat'); + late final _getattrlistat = _getattrlistatPtr + .asFunction< + int Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); int setattrlistat( int arg0, @@ -20645,66 +20650,57 @@ class NativeCupertinoHttp { int arg4, int arg5, ) { - return _setattrlistat( - arg0, - arg1, - arg2, - arg3, - arg4, - arg5, - ); + return _setattrlistat(arg0, arg1, arg2, arg3, arg4, arg5); } - late final _setattrlistatPtr = _lookup< - ffi.NativeFunction< + late final _setattrlistatPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Uint32)>>('setattrlistat'); - late final _setattrlistat = _setattrlistatPtr.asFunction< - int Function(int, ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int)>(); + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Uint32, + ) + > + >('setattrlistat'); + late final _setattrlistat = _setattrlistatPtr + .asFunction< + int Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); - int freadlink( - int arg0, - ffi.Pointer arg1, - int arg2, - ) { - return _freadlink( - arg0, - arg1, - arg2, - ); + int freadlink(int arg0, ffi.Pointer arg1, int arg2) { + return _freadlink(arg0, arg1, arg2); } - late final _freadlinkPtr = _lookup< - ffi.NativeFunction< - ssize_t Function( - ffi.Int, ffi.Pointer, ffi.Size)>>('freadlink'); - late final _freadlink = - _freadlinkPtr.asFunction, int)>(); + late final _freadlinkPtr = + _lookup< + ffi.NativeFunction< + ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size) + > + >('freadlink'); + late final _freadlink = _freadlinkPtr + .asFunction, int)>(); - int faccessat( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - ) { - return _faccessat( - arg0, - arg1, - arg2, - arg3, - ); + int faccessat(int arg0, ffi.Pointer arg1, int arg2, int arg3) { + return _faccessat(arg0, arg1, arg2, arg3); } - late final _faccessatPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, ffi.Int, ffi.Int)>>('faccessat'); + late final _faccessatPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) + > + >('faccessat'); late final _faccessat = _faccessatPtr .asFunction, int, int)>(); @@ -20715,19 +20711,21 @@ class NativeCupertinoHttp { int arg3, int arg4, ) { - return _fchownat( - arg0, - arg1, - arg2, - arg3, - arg4, - ); + return _fchownat(arg0, arg1, arg2, arg3, arg4); } - late final _fchownatPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, uid_t, gid_t, - ffi.Int)>>('fchownat'); + late final _fchownatPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + uid_t, + gid_t, + ffi.Int, + ) + > + >('fchownat'); late final _fchownat = _fchownatPtr .asFunction, int, int, int)>(); @@ -20738,22 +20736,31 @@ class NativeCupertinoHttp { ffi.Pointer arg3, int arg4, ) { - return _linkat( - arg0, - arg1, - arg2, - arg3, - arg4, - ); + return _linkat(arg0, arg1, arg2, arg3, arg4); } - late final _linkatPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, - ffi.Pointer, ffi.Int)>>('linkat'); - late final _linkat = _linkatPtr.asFunction< - int Function( - int, ffi.Pointer, int, ffi.Pointer, int)>(); + late final _linkatPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) + > + >('linkat'); + late final _linkat = _linkatPtr + .asFunction< + int Function( + int, + ffi.Pointer, + int, + ffi.Pointer, + int, + ) + >(); int readlinkat( int arg0, @@ -20761,218 +20768,176 @@ class NativeCupertinoHttp { ffi.Pointer arg2, int arg3, ) { - return _readlinkat( - arg0, - arg1, - arg2, - arg3, - ); + return _readlinkat(arg0, arg1, arg2, arg3); } - late final _readlinkatPtr = _lookup< - ffi.NativeFunction< - ssize_t Function(ffi.Int, ffi.Pointer, - ffi.Pointer, ffi.Size)>>('readlinkat'); - late final _readlinkat = _readlinkatPtr.asFunction< - int Function(int, ffi.Pointer, ffi.Pointer, int)>(); + late final _readlinkatPtr = + _lookup< + ffi.NativeFunction< + ssize_t Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('readlinkat'); + late final _readlinkat = _readlinkatPtr + .asFunction< + int Function(int, ffi.Pointer, ffi.Pointer, int) + >(); int symlinkat( ffi.Pointer arg0, int arg1, ffi.Pointer arg2, ) { - return _symlinkat( - arg0, - arg1, - arg2, - ); + return _symlinkat(arg0, arg1, arg2); } - late final _symlinkatPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('symlinkat'); - late final _symlinkat = _symlinkatPtr.asFunction< - int Function(ffi.Pointer, int, ffi.Pointer)>(); + late final _symlinkatPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >('symlinkat'); + late final _symlinkat = _symlinkatPtr + .asFunction< + int Function(ffi.Pointer, int, ffi.Pointer) + >(); - int unlinkat( - int arg0, - ffi.Pointer arg1, - int arg2, - ) { - return _unlinkat( - arg0, - arg1, - arg2, - ); + int unlinkat(int arg0, ffi.Pointer arg1, int arg2) { + return _unlinkat(arg0, arg1, arg2); } - late final _unlinkatPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, ffi.Int)>>('unlinkat'); - late final _unlinkat = - _unlinkatPtr.asFunction, int)>(); + late final _unlinkatPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int) + > + >('unlinkat'); + late final _unlinkat = _unlinkatPtr + .asFunction, int)>(); - void _exit( - int arg0, - ) { - return __exit( - arg0, - ); + void _exit(int arg0) { + return __exit(arg0); } late final __exitPtr = _lookup>('_exit'); late final __exit = __exitPtr.asFunction(); - int access( - ffi.Pointer arg0, - int arg1, - ) { - return _access( - arg0, - arg1, - ); + int access(ffi.Pointer arg0, int arg1) { + return _access(arg0, arg1); } - late final _accessPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'access'); - late final _access = - _accessPtr.asFunction, int)>(); + late final _accessPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('access'); + late final _access = _accessPtr + .asFunction, int)>(); - int alarm( - int arg0, - ) { - return _alarm( - arg0, - ); + int alarm(int arg0) { + return _alarm(arg0); } late final _alarmPtr = _lookup>( - 'alarm'); + 'alarm', + ); late final _alarm = _alarmPtr.asFunction(); - int chdir( - ffi.Pointer arg0, - ) { - return _chdir( - arg0, - ); + int chdir(ffi.Pointer arg0) { + return _chdir(arg0); } late final _chdirPtr = _lookup)>>( - 'chdir'); - late final _chdir = - _chdirPtr.asFunction)>(); + 'chdir', + ); + late final _chdir = _chdirPtr + .asFunction)>(); - int chown( - ffi.Pointer arg0, - int arg1, - int arg2, - ) { - return _chown( - arg0, - arg1, - arg2, - ); + int chown(ffi.Pointer arg0, int arg1, int arg2) { + return _chown(arg0, arg1, arg2); } - late final _chownPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, uid_t, gid_t)>>('chown'); - late final _chown = - _chownPtr.asFunction, int, int)>(); + late final _chownPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, uid_t, gid_t) + > + >('chown'); + late final _chown = _chownPtr + .asFunction, int, int)>(); - int close( - int arg0, - ) { - return _close( - arg0, - ); + int close(int arg0) { + return _close(arg0); } - late final _closePtr = - _lookup>('close'); + late final _closePtr = _lookup>( + 'close', + ); late final _close = _closePtr.asFunction(); - int dup( - int arg0, - ) { - return _dup( - arg0, - ); + int dup(int arg0) { + return _dup(arg0); } - late final _dupPtr = - _lookup>('dup'); + late final _dupPtr = _lookup>( + 'dup', + ); late final _dup = _dupPtr.asFunction(); - int dup2( - int arg0, - int arg1, - ) { - return _dup2( - arg0, - arg1, - ); + int dup2(int arg0, int arg1) { + return _dup2(arg0, arg1); } late final _dup2Ptr = _lookup>('dup2'); late final _dup2 = _dup2Ptr.asFunction(); - int execl( - ffi.Pointer __path, - ffi.Pointer __arg0, - ) { - return _execl( - __path, - __arg0, - ); + int execl(ffi.Pointer __path, ffi.Pointer __arg0) { + return _execl(__path, __arg0); } - late final _execlPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('execl'); + late final _execlPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('execl'); late final _execl = _execlPtr .asFunction, ffi.Pointer)>(); - int execle( - ffi.Pointer __path, - ffi.Pointer __arg0, - ) { - return _execle( - __path, - __arg0, - ); + int execle(ffi.Pointer __path, ffi.Pointer __arg0) { + return _execle(__path, __arg0); } - late final _execlePtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('execle'); + late final _execlePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('execle'); late final _execle = _execlePtr .asFunction, ffi.Pointer)>(); - int execlp( - ffi.Pointer __file, - ffi.Pointer __arg0, - ) { - return _execlp( - __file, - __arg0, - ); + int execlp(ffi.Pointer __file, ffi.Pointer __arg0) { + return _execlp(__file, __arg0); } - late final _execlpPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('execlp'); + late final _execlpPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('execlp'); late final _execlp = _execlpPtr .asFunction, ffi.Pointer)>(); @@ -20980,59 +20945,70 @@ class NativeCupertinoHttp { ffi.Pointer __path, ffi.Pointer> __argv, ) { - return _execv( - __path, - __argv, - ); + return _execv(__path, __argv); } - late final _execvPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer>)>>('execv'); - late final _execv = _execvPtr.asFunction< - int Function( - ffi.Pointer, ffi.Pointer>)>(); + late final _execvPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + >('execv'); + late final _execv = _execvPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer>) + >(); int execve( ffi.Pointer __file, ffi.Pointer> __argv, ffi.Pointer> __envp, ) { - return _execve( - __file, - __argv, - __envp, - ); + return _execve(__file, __argv, __envp); } - late final _execvePtr = _lookup< - ffi.NativeFunction< + late final _execvePtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>>('execve'); - late final _execve = _execvePtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer>, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >('execve'); + late final _execve = _execvePtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); int execvp( ffi.Pointer __file, ffi.Pointer> __argv, ) { - return _execvp( - __file, - __argv, - ); + return _execvp(__file, __argv); } - late final _execvpPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer>)>>('execvp'); - late final _execvp = _execvpPtr.asFunction< - int Function( - ffi.Pointer, ffi.Pointer>)>(); + late final _execvpPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + >('execvp'); + late final _execvp = _execvpPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer>) + >(); int fork() { return _fork(); @@ -21041,35 +21017,26 @@ class NativeCupertinoHttp { late final _forkPtr = _lookup>('fork'); late final _fork = _forkPtr.asFunction(); - int fpathconf( - int arg0, - int arg1, - ) { - return _fpathconf( - arg0, - arg1, - ); + int fpathconf(int arg0, int arg1) { + return _fpathconf(arg0, arg1); } late final _fpathconfPtr = _lookup>( - 'fpathconf'); + 'fpathconf', + ); late final _fpathconf = _fpathconfPtr.asFunction(); - ffi.Pointer getcwd( - ffi.Pointer arg0, - int __size, - ) { - return _getcwd( - arg0, - __size, - ); + ffi.Pointer getcwd(ffi.Pointer arg0, int __size) { + return _getcwd(arg0, __size); } - late final _getcwdPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Size)>>('getcwd'); + late final _getcwdPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Size) + > + >('getcwd'); late final _getcwd = _getcwdPtr .asFunction Function(ffi.Pointer, int)>(); @@ -21077,41 +21044,39 @@ class NativeCupertinoHttp { return _getegid(); } - late final _getegidPtr = - _lookup>('getegid'); + late final _getegidPtr = _lookup>( + 'getegid', + ); late final _getegid = _getegidPtr.asFunction(); int geteuid() { return _geteuid(); } - late final _geteuidPtr = - _lookup>('geteuid'); + late final _geteuidPtr = _lookup>( + 'geteuid', + ); late final _geteuid = _geteuidPtr.asFunction(); int getgid() { return _getgid(); } - late final _getgidPtr = - _lookup>('getgid'); + late final _getgidPtr = _lookup>( + 'getgid', + ); late final _getgid = _getgidPtr.asFunction(); - int getgroups( - int __gidsetsize, - ffi.Pointer arg1, - ) { - return _getgroups( - __gidsetsize, - arg1, - ); + int getgroups(int __gidsetsize, ffi.Pointer arg1) { + return _getgroups(__gidsetsize, arg1); } - late final _getgroupsPtr = _lookup< - ffi.NativeFunction)>>( - 'getgroups'); - late final _getgroups = - _getgroupsPtr.asFunction)>(); + late final _getgroupsPtr = + _lookup< + ffi.NativeFunction)> + >('getgroups'); + late final _getgroups = _getgroupsPtr + .asFunction)>(); ffi.Pointer getlogin() { return _getlogin(); @@ -21119,176 +21084,141 @@ class NativeCupertinoHttp { late final _getloginPtr = _lookup Function()>>('getlogin'); - late final _getlogin = - _getloginPtr.asFunction Function()>(); + late final _getlogin = _getloginPtr + .asFunction Function()>(); int getpgrp() { return _getpgrp(); } - late final _getpgrpPtr = - _lookup>('getpgrp'); + late final _getpgrpPtr = _lookup>( + 'getpgrp', + ); late final _getpgrp = _getpgrpPtr.asFunction(); int getpid() { return _getpid(); } - late final _getpidPtr = - _lookup>('getpid'); + late final _getpidPtr = _lookup>( + 'getpid', + ); late final _getpid = _getpidPtr.asFunction(); int getppid() { return _getppid(); } - late final _getppidPtr = - _lookup>('getppid'); + late final _getppidPtr = _lookup>( + 'getppid', + ); late final _getppid = _getppidPtr.asFunction(); int getuid() { return _getuid(); } - late final _getuidPtr = - _lookup>('getuid'); + late final _getuidPtr = _lookup>( + 'getuid', + ); late final _getuid = _getuidPtr.asFunction(); - int isatty( - int arg0, - ) { - return _isatty( - arg0, - ); + int isatty(int arg0) { + return _isatty(arg0); } late final _isattyPtr = _lookup>('isatty'); late final _isatty = _isattyPtr.asFunction(); - int link( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _link( - arg0, - arg1, - ); + int link(ffi.Pointer arg0, ffi.Pointer arg1) { + return _link(arg0, arg1); } - late final _linkPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('link'); + late final _linkPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('link'); late final _link = _linkPtr .asFunction, ffi.Pointer)>(); - int lseek( - int arg0, - int arg1, - int arg2, - ) { - return _lseek( - arg0, - arg1, - arg2, - ); + int lseek(int arg0, int arg1, int arg2) { + return _lseek(arg0, arg1, arg2); } late final _lseekPtr = _lookup>( - 'lseek'); + 'lseek', + ); late final _lseek = _lseekPtr.asFunction(); - int pathconf( - ffi.Pointer arg0, - int arg1, - ) { - return _pathconf( - arg0, - arg1, - ); + int pathconf(ffi.Pointer arg0, int arg1) { + return _pathconf(arg0, arg1); } - late final _pathconfPtr = _lookup< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, ffi.Int)>>('pathconf'); - late final _pathconf = - _pathconfPtr.asFunction, int)>(); + late final _pathconfPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('pathconf'); + late final _pathconf = _pathconfPtr + .asFunction, int)>(); int pause() { return _pause(); } - late final _pausePtr = - _lookup>('pause'); + late final _pausePtr = _lookup>( + 'pause', + ); late final _pause = _pausePtr.asFunction(); - int pipe( - ffi.Pointer arg0, - ) { - return _pipe( - arg0, - ); + int pipe(ffi.Pointer arg0) { + return _pipe(arg0); } late final _pipePtr = _lookup)>>( - 'pipe'); + 'pipe', + ); late final _pipe = _pipePtr.asFunction)>(); - int read( - int arg0, - ffi.Pointer arg1, - int __nbyte, - ) { - return _read( - arg0, - arg1, - __nbyte, - ); + int read(int arg0, ffi.Pointer arg1, int __nbyte) { + return _read(arg0, arg1, __nbyte); } - late final _readPtr = _lookup< - ffi.NativeFunction< - ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size)>>('read'); - late final _read = - _readPtr.asFunction, int)>(); + late final _readPtr = + _lookup< + ffi.NativeFunction< + ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size) + > + >('read'); + late final _read = _readPtr + .asFunction, int)>(); - int rmdir( - ffi.Pointer arg0, - ) { - return _rmdir( - arg0, - ); + int rmdir(ffi.Pointer arg0) { + return _rmdir(arg0); } late final _rmdirPtr = _lookup)>>( - 'rmdir'); - late final _rmdir = - _rmdirPtr.asFunction)>(); + 'rmdir', + ); + late final _rmdir = _rmdirPtr + .asFunction)>(); - int setgid( - int arg0, - ) { - return _setgid( - arg0, - ); + int setgid(int arg0) { + return _setgid(arg0); } - late final _setgidPtr = - _lookup>('setgid'); + late final _setgidPtr = _lookup>( + 'setgid', + ); late final _setgid = _setgidPtr.asFunction(); - int setpgid( - int arg0, - int arg1, - ) { - return _setpgid( - arg0, - arg1, - ); + int setpgid(int arg0, int arg1) { + return _setpgid(arg0, arg1); } late final _setpgidPtr = @@ -21299,177 +21229,143 @@ class NativeCupertinoHttp { return _setsid(); } - late final _setsidPtr = - _lookup>('setsid'); + late final _setsidPtr = _lookup>( + 'setsid', + ); late final _setsid = _setsidPtr.asFunction(); - int setuid( - int arg0, - ) { - return _setuid( - arg0, - ); + int setuid(int arg0) { + return _setuid(arg0); } - late final _setuidPtr = - _lookup>('setuid'); + late final _setuidPtr = _lookup>( + 'setuid', + ); late final _setuid = _setuidPtr.asFunction(); - int sleep( - int arg0, - ) { - return _sleep( - arg0, - ); + int sleep(int arg0) { + return _sleep(arg0); } late final _sleepPtr = _lookup>( - 'sleep'); + 'sleep', + ); late final _sleep = _sleepPtr.asFunction(); - int sysconf( - int arg0, - ) { - return _sysconf( - arg0, - ); + int sysconf(int arg0) { + return _sysconf(arg0); } late final _sysconfPtr = _lookup>('sysconf'); late final _sysconf = _sysconfPtr.asFunction(); - int tcgetpgrp( - int arg0, - ) { - return _tcgetpgrp( - arg0, - ); + int tcgetpgrp(int arg0) { + return _tcgetpgrp(arg0); } late final _tcgetpgrpPtr = _lookup>('tcgetpgrp'); late final _tcgetpgrp = _tcgetpgrpPtr.asFunction(); - int tcsetpgrp( - int arg0, - int arg1, - ) { - return _tcsetpgrp( - arg0, - arg1, - ); + int tcsetpgrp(int arg0, int arg1) { + return _tcsetpgrp(arg0, arg1); } late final _tcsetpgrpPtr = _lookup>( - 'tcsetpgrp'); + 'tcsetpgrp', + ); late final _tcsetpgrp = _tcsetpgrpPtr.asFunction(); - ffi.Pointer ttyname( - int arg0, - ) { - return _ttyname( - arg0, - ); + ffi.Pointer ttyname(int arg0) { + return _ttyname(arg0); } late final _ttynamePtr = _lookup Function(ffi.Int)>>( - 'ttyname'); - late final _ttyname = - _ttynamePtr.asFunction Function(int)>(); + 'ttyname', + ); + late final _ttyname = _ttynamePtr + .asFunction Function(int)>(); - int ttyname_r( - int arg0, - ffi.Pointer arg1, - int __len, - ) { - return _ttyname_r( - arg0, - arg1, - __len, - ); + int ttyname_r(int arg0, ffi.Pointer arg1, int __len) { + return _ttyname_r(arg0, arg1, __len); } - late final _ttyname_rPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, ffi.Size)>>('ttyname_r'); - late final _ttyname_r = - _ttyname_rPtr.asFunction, int)>(); + late final _ttyname_rPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Size) + > + >('ttyname_r'); + late final _ttyname_r = _ttyname_rPtr + .asFunction, int)>(); - int unlink( - ffi.Pointer arg0, - ) { - return _unlink( - arg0, - ); + int unlink(ffi.Pointer arg0) { + return _unlink(arg0); } late final _unlinkPtr = _lookup)>>( - 'unlink'); - late final _unlink = - _unlinkPtr.asFunction)>(); + 'unlink', + ); + late final _unlink = _unlinkPtr + .asFunction)>(); - int write( - int __fd, - ffi.Pointer __buf, - int __nbyte, - ) { - return _write( - __fd, - __buf, - __nbyte, - ); + int write(int __fd, ffi.Pointer __buf, int __nbyte) { + return _write(__fd, __buf, __nbyte); } - late final _writePtr = _lookup< - ffi.NativeFunction< - ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size)>>('write'); - late final _write = - _writePtr.asFunction, int)>(); + late final _writePtr = + _lookup< + ffi.NativeFunction< + ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size) + > + >('write'); + late final _write = _writePtr + .asFunction, int)>(); - int confstr( - int arg0, - ffi.Pointer arg1, - int __len, - ) { - return _confstr( - arg0, - arg1, - __len, - ); + int confstr(int arg0, ffi.Pointer arg1, int __len) { + return _confstr(arg0, arg1, __len); } - late final _confstrPtr = _lookup< - ffi.NativeFunction< - ffi.Size Function( - ffi.Int, ffi.Pointer, ffi.Size)>>('confstr'); - late final _confstr = - _confstrPtr.asFunction, int)>(); + late final _confstrPtr = + _lookup< + ffi.NativeFunction< + ffi.Size Function(ffi.Int, ffi.Pointer, ffi.Size) + > + >('confstr'); + late final _confstr = _confstrPtr + .asFunction, int)>(); int getopt( int __argc, ffi.Pointer> arg1, ffi.Pointer arg2, ) { - return _getopt( - __argc, - arg1, - arg2, - ); + return _getopt(__argc, arg1, arg2); } - late final _getoptPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer>, - ffi.Pointer)>>('getopt'); - late final _getopt = _getoptPtr.asFunction< - int Function( - int, ffi.Pointer>, ffi.Pointer)>(); + late final _getoptPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ) + > + >('getopt'); + late final _getopt = _getoptPtr + .asFunction< + int Function( + int, + ffi.Pointer>, + ffi.Pointer, + ) + >(); late final ffi.Pointer> _optarg = _lookup>('optarg'); @@ -21496,74 +21392,67 @@ class NativeCupertinoHttp { set optopt(int value) => _optopt.value = value; - ffi.Pointer brk( - ffi.Pointer arg0, - ) { - return _brk( - arg0, - ); + ffi.Pointer brk(ffi.Pointer arg0) { + return _brk(arg0); } - late final _brkPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('brk'); + late final _brkPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('brk'); late final _brk = _brkPtr .asFunction Function(ffi.Pointer)>(); - int chroot( - ffi.Pointer arg0, - ) { - return _chroot( - arg0, - ); + int chroot(ffi.Pointer arg0) { + return _chroot(arg0); } late final _chrootPtr = _lookup)>>( - 'chroot'); - late final _chroot = - _chrootPtr.asFunction)>(); + 'chroot', + ); + late final _chroot = _chrootPtr + .asFunction)>(); ffi.Pointer crypt( ffi.Pointer arg0, ffi.Pointer arg1, ) { - return _crypt( - arg0, - arg1, - ); + return _crypt(arg0, arg1); } - late final _cryptPtr = _lookup< - ffi.NativeFunction< + late final _cryptPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('crypt'); - late final _crypt = _cryptPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('crypt'); + late final _crypt = _cryptPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - void encrypt( - ffi.Pointer arg0, - int arg1, - ) { - return _encrypt( - arg0, - arg1, - ); + void encrypt(ffi.Pointer arg0, int arg1) { + return _encrypt(arg0, arg1); } - late final _encryptPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int)>>('encrypt'); - late final _encrypt = - _encryptPtr.asFunction, int)>(); + late final _encryptPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('encrypt'); + late final _encrypt = _encryptPtr + .asFunction, int)>(); - int fchdir( - int arg0, - ) { - return _fchdir( - arg0, - ); + int fchdir(int arg0) { + return _fchdir(arg0); } late final _fchdirPtr = @@ -21574,32 +21463,27 @@ class NativeCupertinoHttp { return _gethostid(); } - late final _gethostidPtr = - _lookup>('gethostid'); + late final _gethostidPtr = _lookup>( + 'gethostid', + ); late final _gethostid = _gethostidPtr.asFunction(); - int getpgid( - int arg0, - ) { - return _getpgid( - arg0, - ); + int getpgid(int arg0) { + return _getpgid(arg0); } - late final _getpgidPtr = - _lookup>('getpgid'); + late final _getpgidPtr = _lookup>( + 'getpgid', + ); late final _getpgid = _getpgidPtr.asFunction(); - int getsid( - int arg0, - ) { - return _getsid( - arg0, - ); + int getsid(int arg0) { + return _getsid(arg0); } - late final _getsidPtr = - _lookup>('getsid'); + late final _getsidPtr = _lookup>( + 'getsid', + ); late final _getsid = _getsidPtr.asFunction(); int getdtablesize() { @@ -21614,170 +21498,124 @@ class NativeCupertinoHttp { return _getpagesize(); } - late final _getpagesizePtr = - _lookup>('getpagesize'); + late final _getpagesizePtr = _lookup>( + 'getpagesize', + ); late final _getpagesize = _getpagesizePtr.asFunction(); - ffi.Pointer getpass( - ffi.Pointer arg0, - ) { - return _getpass( - arg0, - ); + ffi.Pointer getpass(ffi.Pointer arg0) { + return _getpass(arg0); } - late final _getpassPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('getpass'); + late final _getpassPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('getpass'); late final _getpass = _getpassPtr .asFunction Function(ffi.Pointer)>(); - ffi.Pointer getwd( - ffi.Pointer arg0, - ) { - return _getwd( - arg0, - ); + ffi.Pointer getwd(ffi.Pointer arg0) { + return _getwd(arg0); } - late final _getwdPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('getwd'); + late final _getwdPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('getwd'); late final _getwd = _getwdPtr .asFunction Function(ffi.Pointer)>(); - int lchown( - ffi.Pointer arg0, - int arg1, - int arg2, - ) { - return _lchown( - arg0, - arg1, - arg2, - ); + int lchown(ffi.Pointer arg0, int arg1, int arg2) { + return _lchown(arg0, arg1, arg2); } - late final _lchownPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, uid_t, gid_t)>>('lchown'); - late final _lchown = - _lchownPtr.asFunction, int, int)>(); + late final _lchownPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, uid_t, gid_t) + > + >('lchown'); + late final _lchown = _lchownPtr + .asFunction, int, int)>(); - int lockf( - int arg0, - int arg1, - int arg2, - ) { - return _lockf( - arg0, - arg1, - arg2, - ); + int lockf(int arg0, int arg1, int arg2) { + return _lockf(arg0, arg1, arg2); } late final _lockfPtr = _lookup>( - 'lockf'); + 'lockf', + ); late final _lockf = _lockfPtr.asFunction(); - int nice( - int arg0, - ) { - return _nice( - arg0, - ); + int nice(int arg0) { + return _nice(arg0); } - late final _nicePtr = - _lookup>('nice'); + late final _nicePtr = _lookup>( + 'nice', + ); late final _nice = _nicePtr.asFunction(); - int pread( - int __fd, - ffi.Pointer __buf, - int __nbyte, - int __offset, - ) { - return _pread( - __fd, - __buf, - __nbyte, - __offset, - ); + int pread(int __fd, ffi.Pointer __buf, int __nbyte, int __offset) { + return _pread(__fd, __buf, __nbyte, __offset); } - late final _preadPtr = _lookup< - ffi.NativeFunction< - ssize_t Function( - ffi.Int, ffi.Pointer, ffi.Size, off_t)>>('pread'); + late final _preadPtr = + _lookup< + ffi.NativeFunction< + ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size, off_t) + > + >('pread'); late final _pread = _preadPtr .asFunction, int, int)>(); - int pwrite( - int __fd, - ffi.Pointer __buf, - int __nbyte, - int __offset, - ) { - return _pwrite( - __fd, - __buf, - __nbyte, - __offset, - ); + int pwrite(int __fd, ffi.Pointer __buf, int __nbyte, int __offset) { + return _pwrite(__fd, __buf, __nbyte, __offset); } - late final _pwritePtr = _lookup< - ffi.NativeFunction< - ssize_t Function( - ffi.Int, ffi.Pointer, ffi.Size, off_t)>>('pwrite'); + late final _pwritePtr = + _lookup< + ffi.NativeFunction< + ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size, off_t) + > + >('pwrite'); late final _pwrite = _pwritePtr .asFunction, int, int)>(); - ffi.Pointer sbrk( - int arg0, - ) { - return _sbrk( - arg0, - ); + ffi.Pointer sbrk(int arg0) { + return _sbrk(arg0); } late final _sbrkPtr = _lookup Function(ffi.Int)>>( - 'sbrk'); + 'sbrk', + ); late final _sbrk = _sbrkPtr.asFunction Function(int)>(); int setpgrp() { return _setpgrp(); } - late final _setpgrpPtr = - _lookup>('setpgrp'); + late final _setpgrpPtr = _lookup>( + 'setpgrp', + ); late final _setpgrp = _setpgrpPtr.asFunction(); - int setregid( - int arg0, - int arg1, - ) { - return _setregid( - arg0, - arg1, - ); + int setregid(int arg0, int arg1) { + return _setregid(arg0, arg1); } late final _setregidPtr = _lookup>('setregid'); late final _setregid = _setregidPtr.asFunction(); - int setreuid( - int arg0, - int arg1, - ) { - return _setreuid( - arg0, - arg1, - ); + int setreuid(int arg0, int arg1) { + return _setreuid(arg0, arg1); } late final _setreuidPtr = @@ -21788,47 +21626,34 @@ class NativeCupertinoHttp { return _sync$(); } - late final _sync$Ptr = - _lookup>('sync'); + late final _sync$Ptr = _lookup>( + 'sync', + ); late final _sync$ = _sync$Ptr.asFunction(); - int truncate( - ffi.Pointer arg0, - int arg1, - ) { - return _truncate( - arg0, - arg1, - ); + int truncate(ffi.Pointer arg0, int arg1) { + return _truncate(arg0, arg1); } - late final _truncatePtr = _lookup< - ffi.NativeFunction, off_t)>>( - 'truncate'); - late final _truncate = - _truncatePtr.asFunction, int)>(); + late final _truncatePtr = + _lookup< + ffi.NativeFunction, off_t)> + >('truncate'); + late final _truncate = _truncatePtr + .asFunction, int)>(); - int ualarm( - int arg0, - int arg1, - ) { - return _ualarm( - arg0, - arg1, - ); + int ualarm(int arg0, int arg1) { + return _ualarm(arg0, arg1); } late final _ualarmPtr = _lookup>( - 'ualarm'); + 'ualarm', + ); late final _ualarm = _ualarmPtr.asFunction(); - int usleep( - int arg0, - ) { - return _usleep( - arg0, - ); + int usleep(int arg0) { + return _usleep(arg0); } late final _usleepPtr = @@ -21839,143 +21664,113 @@ class NativeCupertinoHttp { return _vfork(); } - late final _vforkPtr = - _lookup>('vfork'); + late final _vforkPtr = _lookup>( + 'vfork', + ); late final _vfork = _vforkPtr.asFunction(); - int fsync( - int arg0, - ) { - return _fsync( - arg0, - ); + int fsync(int arg0) { + return _fsync(arg0); } - late final _fsyncPtr = - _lookup>('fsync'); + late final _fsyncPtr = _lookup>( + 'fsync', + ); late final _fsync = _fsyncPtr.asFunction(); - int ftruncate( - int arg0, - int arg1, - ) { - return _ftruncate( - arg0, - arg1, - ); + int ftruncate(int arg0, int arg1) { + return _ftruncate(arg0, arg1); } late final _ftruncatePtr = _lookup>( - 'ftruncate'); + 'ftruncate', + ); late final _ftruncate = _ftruncatePtr.asFunction(); - int getlogin_r( - ffi.Pointer arg0, - int __namelen, - ) { - return _getlogin_r( - arg0, - __namelen, - ); + int getlogin_r(ffi.Pointer arg0, int __namelen) { + return _getlogin_r(arg0, __namelen); } - late final _getlogin_rPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size)>>('getlogin_r'); - late final _getlogin_r = - _getlogin_rPtr.asFunction, int)>(); + late final _getlogin_rPtr = + _lookup< + ffi.NativeFunction, ffi.Size)> + >('getlogin_r'); + late final _getlogin_r = _getlogin_rPtr + .asFunction, int)>(); - int fchown( - int arg0, - int arg1, - int arg2, - ) { - return _fchown( - arg0, - arg1, - arg2, - ); + int fchown(int arg0, int arg1, int arg2) { + return _fchown(arg0, arg1, arg2); } late final _fchownPtr = _lookup>( - 'fchown'); + 'fchown', + ); late final _fchown = _fchownPtr.asFunction(); - int gethostname( - ffi.Pointer arg0, - int __namelen, - ) { - return _gethostname( - arg0, - __namelen, - ); + int gethostname(ffi.Pointer arg0, int __namelen) { + return _gethostname(arg0, __namelen); } - late final _gethostnamePtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size)>>('gethostname'); - late final _gethostname = - _gethostnamePtr.asFunction, int)>(); + late final _gethostnamePtr = + _lookup< + ffi.NativeFunction, ffi.Size)> + >('gethostname'); + late final _gethostname = _gethostnamePtr + .asFunction, int)>(); int readlink( ffi.Pointer arg0, ffi.Pointer arg1, int __bufsize, ) { - return _readlink( - arg0, - arg1, - __bufsize, - ); + return _readlink(arg0, arg1, __bufsize); } - late final _readlinkPtr = _lookup< - ffi.NativeFunction< - ssize_t Function(ffi.Pointer, ffi.Pointer, - ffi.Size)>>('readlink'); - late final _readlink = _readlinkPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _readlinkPtr = + _lookup< + ffi.NativeFunction< + ssize_t Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + > + >('readlink'); + late final _readlink = _readlinkPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); - int setegid( - int arg0, - ) { - return _setegid( - arg0, - ); + int setegid(int arg0) { + return _setegid(arg0); } - late final _setegidPtr = - _lookup>('setegid'); + late final _setegidPtr = _lookup>( + 'setegid', + ); late final _setegid = _setegidPtr.asFunction(); - int seteuid( - int arg0, - ) { - return _seteuid( - arg0, - ); + int seteuid(int arg0) { + return _seteuid(arg0); } - late final _seteuidPtr = - _lookup>('seteuid'); + late final _seteuidPtr = _lookup>( + 'seteuid', + ); late final _seteuid = _seteuidPtr.asFunction(); - int symlink( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _symlink( - arg0, - arg1, - ); + int symlink(ffi.Pointer arg0, ffi.Pointer arg1) { + return _symlink(arg0, arg1); } - late final _symlinkPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('symlink'); + late final _symlinkPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('symlink'); late final _symlink = _symlinkPtr .asFunction, ffi.Pointer)>(); @@ -21987,52 +21782,66 @@ class NativeCupertinoHttp { ffi.Pointer arg4, ffi.Pointer arg5, ) { - return _pselect( - arg0, - arg1, - arg2, - arg3, - arg4, - arg5, - ); + return _pselect(arg0, arg1, arg2, arg3, arg4, arg5); } - late final _pselectPtr = _lookup< - ffi.NativeFunction< + late final _pselectPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('pselect'); - late final _pselect = _pselectPtr.asFunction< - int Function(int, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - - int select( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('pselect'); + late final _pselect = _pselectPtr + .asFunction< + int Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + int select( int arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, ffi.Pointer arg4, ) { - return _select( - arg0, - arg1, - arg2, - arg3, - arg4, - ); + return _select(arg0, arg1, arg2, arg3, arg4); } - late final _selectPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('select'); - late final _select = _selectPtr.asFunction< - int Function(int, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _selectPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('select'); + late final _select = _selectPtr + .asFunction< + int Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); int accessx_np( ffi.Pointer arg0, @@ -22040,53 +21849,55 @@ class NativeCupertinoHttp { ffi.Pointer arg2, int arg3, ) { - return _accessx_np( - arg0, - __sz, - arg2, - arg3, - ); + return _accessx_np(arg0, __sz, arg2, arg3); } - late final _accessx_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size, - ffi.Pointer, uid_t)>>('accessx_np'); - late final _accessx_np = _accessx_npPtr.asFunction< - int Function( - ffi.Pointer, int, ffi.Pointer, int)>(); + late final _accessx_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + uid_t, + ) + > + >('accessx_np'); + late final _accessx_np = _accessx_npPtr + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + int, + ) + >(); - int acct( - ffi.Pointer arg0, - ) { - return _acct( - arg0, - ); + int acct(ffi.Pointer arg0) { + return _acct(arg0); } late final _acctPtr = _lookup)>>( - 'acct'); + 'acct', + ); late final _acct = _acctPtr.asFunction)>(); - int add_profil( - ffi.Pointer arg0, - int __bufsiz, - int arg2, - int arg3, - ) { - return _add_profil( - arg0, - __bufsiz, - arg2, - arg3, - ); + int add_profil(ffi.Pointer arg0, int __bufsiz, int arg2, int arg3) { + return _add_profil(arg0, __bufsiz, arg2, arg3); } - late final _add_profilPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size, ffi.UnsignedLong, - ffi.UnsignedInt)>>('add_profil'); + late final _add_profilPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.UnsignedLong, + ffi.UnsignedInt, + ) + > + >('add_profil'); late final _add_profil = _add_profilPtr .asFunction, int, int, int)>(); @@ -22103,50 +21914,49 @@ class NativeCupertinoHttp { ffi.Pointer __searchpath, ffi.Pointer> __argv, ) { - return _execvP( - __file, - __searchpath, - __argv, - ); + return _execvP(__file, __searchpath, __argv); } - late final _execvPPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('execvP'); - late final _execvP = _execvPPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + late final _execvPPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('execvP'); + late final _execvP = _execvPPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); - ffi.Pointer fflagstostr( - int arg0, - ) { - return _fflagstostr( - arg0, - ); + ffi.Pointer fflagstostr(int arg0) { + return _fflagstostr(arg0); } - late final _fflagstostrPtr = _lookup< - ffi.NativeFunction Function(ffi.UnsignedLong)>>( - 'fflagstostr'); - late final _fflagstostr = - _fflagstostrPtr.asFunction Function(int)>(); + late final _fflagstostrPtr = + _lookup< + ffi.NativeFunction Function(ffi.UnsignedLong)> + >('fflagstostr'); + late final _fflagstostr = _fflagstostrPtr + .asFunction Function(int)>(); - int getdomainname( - ffi.Pointer arg0, - int __namelen, - ) { - return _getdomainname( - arg0, - __namelen, - ); + int getdomainname(ffi.Pointer arg0, int __namelen) { + return _getdomainname(arg0, __namelen); } - late final _getdomainnamePtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'getdomainname'); - late final _getdomainname = - _getdomainnamePtr.asFunction, int)>(); + late final _getdomainnamePtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('getdomainname'); + late final _getdomainname = _getdomainnamePtr + .asFunction, int)>(); int getgrouplist( ffi.Pointer arg0, @@ -22154,71 +21964,69 @@ class NativeCupertinoHttp { ffi.Pointer arg2, ffi.Pointer __ngroups, ) { - return _getgrouplist( - arg0, - arg1, - arg2, - __ngroups, - ); + return _getgrouplist(arg0, arg1, arg2, __ngroups); } - late final _getgrouplistPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer, - ffi.Pointer)>>('getgrouplist'); - late final _getgrouplist = _getgrouplistPtr.asFunction< - int Function(ffi.Pointer, int, ffi.Pointer, - ffi.Pointer)>(); + late final _getgrouplistPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + >('getgrouplist'); + late final _getgrouplist = _getgrouplistPtr + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); int gethostuuid( ffi.Pointer arg0, ffi.Pointer arg1, ) { - return _gethostuuid( - arg0, - arg1, - ); + return _gethostuuid(arg0, arg1); } - late final _gethostuuidPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer)>>('gethostuuid'); - late final _gethostuuid = _gethostuuidPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + late final _gethostuuidPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('gethostuuid'); + late final _gethostuuid = _gethostuuidPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); - int getmode( - ffi.Pointer arg0, - int arg1, - ) { - return _getmode( - arg0, - arg1, - ); + int getmode(ffi.Pointer arg0, int arg1) { + return _getmode(arg0, arg1); } - late final _getmodePtr = _lookup< - ffi.NativeFunction, mode_t)>>( - 'getmode'); - late final _getmode = - _getmodePtr.asFunction, int)>(); + late final _getmodePtr = + _lookup< + ffi.NativeFunction, mode_t)> + >('getmode'); + late final _getmode = _getmodePtr + .asFunction, int)>(); - int getpeereid( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return _getpeereid( - arg0, - arg1, - arg2, - ); + int getpeereid(int arg0, ffi.Pointer arg1, ffi.Pointer arg2) { + return _getpeereid(arg0, arg1, arg2); } - late final _getpeereidPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, ffi.Pointer)>>('getpeereid'); + late final _getpeereidPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) + > + >('getpeereid'); late final _getpeereid = _getpeereidPtr .asFunction, ffi.Pointer)>(); @@ -22226,18 +22034,19 @@ class NativeCupertinoHttp { ffi.Pointer arg0, ffi.Pointer arg1, ) { - return _getsgroups_np( - arg0, - arg1, - ); + return _getsgroups_np(arg0, arg1); } - late final _getsgroups_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer)>>('getsgroups_np'); - late final _getsgroups_np = _getsgroups_npPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + late final _getsgroups_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('getsgroups_np'); + late final _getsgroups_np = _getsgroups_npPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); ffi.Pointer getusershell() { return _getusershell(); @@ -22245,221 +22054,174 @@ class NativeCupertinoHttp { late final _getusershellPtr = _lookup Function()>>( - 'getusershell'); - late final _getusershell = - _getusershellPtr.asFunction Function()>(); + 'getusershell', + ); + late final _getusershell = _getusershellPtr + .asFunction Function()>(); int getwgroups_np( ffi.Pointer arg0, ffi.Pointer arg1, ) { - return _getwgroups_np( - arg0, - arg1, - ); + return _getwgroups_np(arg0, arg1); } - late final _getwgroups_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer)>>('getwgroups_np'); - late final _getwgroups_np = _getwgroups_npPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + late final _getwgroups_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('getwgroups_np'); + late final _getwgroups_np = _getwgroups_npPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); - int initgroups( - ffi.Pointer arg0, - int arg1, - ) { - return _initgroups( - arg0, - arg1, - ); + int initgroups(ffi.Pointer arg0, int arg1) { + return _initgroups(arg0, arg1); } - late final _initgroupsPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'initgroups'); - late final _initgroups = - _initgroupsPtr.asFunction, int)>(); + late final _initgroupsPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('initgroups'); + late final _initgroups = _initgroupsPtr + .asFunction, int)>(); int issetugid() { return _issetugid(); } - late final _issetugidPtr = - _lookup>('issetugid'); + late final _issetugidPtr = _lookup>( + 'issetugid', + ); late final _issetugid = _issetugidPtr.asFunction(); - ffi.Pointer mkdtemp( - ffi.Pointer arg0, - ) { - return _mkdtemp( - arg0, - ); + ffi.Pointer mkdtemp(ffi.Pointer arg0) { + return _mkdtemp(arg0); } - late final _mkdtempPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('mkdtemp'); + late final _mkdtempPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('mkdtemp'); late final _mkdtemp = _mkdtempPtr .asFunction Function(ffi.Pointer)>(); - int mknod( - ffi.Pointer arg0, - int arg1, - int arg2, - ) { - return _mknod( - arg0, - arg1, - arg2, - ); + int mknod(ffi.Pointer arg0, int arg1, int arg2) { + return _mknod(arg0, arg1, arg2); } - late final _mknodPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, mode_t, dev_t)>>('mknod'); - late final _mknod = - _mknodPtr.asFunction, int, int)>(); + late final _mknodPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, mode_t, dev_t) + > + >('mknod'); + late final _mknod = _mknodPtr + .asFunction, int, int)>(); - int mkpath_np( - ffi.Pointer path, - int omode, - ) { - return _mkpath_np( - path, - omode, - ); + int mkpath_np(ffi.Pointer path, int omode) { + return _mkpath_np(path, omode); } - late final _mkpath_npPtr = _lookup< - ffi.NativeFunction, mode_t)>>( - 'mkpath_np'); - late final _mkpath_np = - _mkpath_npPtr.asFunction, int)>(); + late final _mkpath_npPtr = + _lookup< + ffi.NativeFunction, mode_t)> + >('mkpath_np'); + late final _mkpath_np = _mkpath_npPtr + .asFunction, int)>(); - int mkpathat_np( - int dfd, - ffi.Pointer path, - int omode, - ) { - return _mkpathat_np( - dfd, - path, - omode, - ); + int mkpathat_np(int dfd, ffi.Pointer path, int omode) { + return _mkpathat_np(dfd, path, omode); } - late final _mkpathat_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, mode_t)>>('mkpathat_np'); + late final _mkpathat_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, mode_t) + > + >('mkpathat_np'); late final _mkpathat_np = _mkpathat_npPtr .asFunction, int)>(); - int mkstemps( - ffi.Pointer arg0, - int arg1, - ) { - return _mkstemps( - arg0, - arg1, - ); + int mkstemps(ffi.Pointer arg0, int arg1) { + return _mkstemps(arg0, arg1); } - late final _mkstempsPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'mkstemps'); - late final _mkstemps = - _mkstempsPtr.asFunction, int)>(); + late final _mkstempsPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('mkstemps'); + late final _mkstemps = _mkstempsPtr + .asFunction, int)>(); - int mkostemp( - ffi.Pointer path, - int oflags, - ) { - return _mkostemp( - path, - oflags, - ); + int mkostemp(ffi.Pointer path, int oflags) { + return _mkostemp(path, oflags); } - late final _mkostempPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'mkostemp'); - late final _mkostemp = - _mkostempPtr.asFunction, int)>(); + late final _mkostempPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('mkostemp'); + late final _mkostemp = _mkostempPtr + .asFunction, int)>(); - int mkostemps( - ffi.Pointer path, - int slen, - int oflags, - ) { - return _mkostemps( - path, - slen, - oflags, - ); + int mkostemps(ffi.Pointer path, int slen, int oflags) { + return _mkostemps(path, slen, oflags); } - late final _mkostempsPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Int, ffi.Int)>>('mkostemps'); - late final _mkostemps = - _mkostempsPtr.asFunction, int, int)>(); + late final _mkostempsPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int) + > + >('mkostemps'); + late final _mkostemps = _mkostempsPtr + .asFunction, int, int)>(); int mkstemp_dprotected_np( ffi.Pointer path, int dpclass, int dpflags, ) { - return _mkstemp_dprotected_np( - path, - dpclass, - dpflags, - ); + return _mkstemp_dprotected_np(path, dpclass, dpflags); } - late final _mkstemp_dprotected_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, - ffi.Int)>>('mkstemp_dprotected_np'); + late final _mkstemp_dprotected_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int) + > + >('mkstemp_dprotected_np'); late final _mkstemp_dprotected_np = _mkstemp_dprotected_npPtr .asFunction, int, int)>(); - ffi.Pointer mkdtempat_np( - int dfd, - ffi.Pointer path, - ) { - return _mkdtempat_np( - dfd, - path, - ); + ffi.Pointer mkdtempat_np(int dfd, ffi.Pointer path) { + return _mkdtempat_np(dfd, path); } - late final _mkdtempat_npPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Pointer)>>('mkdtempat_np'); + late final _mkdtempat_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Pointer) + > + >('mkdtempat_np'); late final _mkdtempat_np = _mkdtempat_npPtr .asFunction Function(int, ffi.Pointer)>(); - int mkstempsat_np( - int dfd, - ffi.Pointer path, - int slen, - ) { - return _mkstempsat_np( - dfd, - path, - slen, - ); + int mkstempsat_np(int dfd, ffi.Pointer path, int slen) { + return _mkstempsat_np(dfd, path, slen); } - late final _mkstempsat_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, ffi.Int)>>('mkstempsat_np'); + late final _mkstempsat_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int) + > + >('mkstempsat_np'); late final _mkstempsat_np = _mkstempsat_npPtr .asFunction, int)>(); @@ -22469,116 +22231,89 @@ class NativeCupertinoHttp { int slen, int oflags, ) { - return _mkostempsat_np( - dfd, - path, - slen, - oflags, - ); + return _mkostempsat_np(dfd, path, slen, oflags); } - late final _mkostempsat_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, - ffi.Int)>>('mkostempsat_np'); + late final _mkostempsat_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) + > + >('mkostempsat_np'); late final _mkostempsat_np = _mkostempsat_npPtr .asFunction, int, int)>(); - int nfssvc( - int arg0, - ffi.Pointer arg1, - ) { - return _nfssvc( - arg0, - arg1, - ); + int nfssvc(int arg0, ffi.Pointer arg1) { + return _nfssvc(arg0, arg1); } - late final _nfssvcPtr = _lookup< - ffi.NativeFunction)>>( - 'nfssvc'); - late final _nfssvc = - _nfssvcPtr.asFunction)>(); + late final _nfssvcPtr = + _lookup< + ffi.NativeFunction)> + >('nfssvc'); + late final _nfssvc = _nfssvcPtr + .asFunction)>(); - int profil( - ffi.Pointer arg0, - int __bufsiz, - int arg2, - int arg3, - ) { - return _profil( - arg0, - __bufsiz, - arg2, - arg3, - ); + int profil(ffi.Pointer arg0, int __bufsiz, int arg2, int arg3) { + return _profil(arg0, __bufsiz, arg2, arg3); } - late final _profilPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size, ffi.UnsignedLong, - ffi.UnsignedInt)>>('profil'); + late final _profilPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.UnsignedLong, + ffi.UnsignedInt, + ) + > + >('profil'); late final _profil = _profilPtr .asFunction, int, int, int)>(); - int pthread_setugid_np( - int arg0, - int arg1, - ) { - return _pthread_setugid_np( - arg0, - arg1, - ); + int pthread_setugid_np(int arg0, int arg1) { + return _pthread_setugid_np(arg0, arg1); } late final _pthread_setugid_npPtr = _lookup>( - 'pthread_setugid_np'); - late final _pthread_setugid_np = - _pthread_setugid_npPtr.asFunction(); + 'pthread_setugid_np', + ); + late final _pthread_setugid_np = _pthread_setugid_npPtr + .asFunction(); - int pthread_getugid_np( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _pthread_getugid_np( - arg0, - arg1, - ); + int pthread_getugid_np(ffi.Pointer arg0, ffi.Pointer arg1) { + return _pthread_getugid_np(arg0, arg1); } - late final _pthread_getugid_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('pthread_getugid_np'); + late final _pthread_getugid_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('pthread_getugid_np'); late final _pthread_getugid_np = _pthread_getugid_npPtr .asFunction, ffi.Pointer)>(); - int reboot( - int arg0, - ) { - return _reboot( - arg0, - ); + int reboot(int arg0) { + return _reboot(arg0); } late final _rebootPtr = _lookup>('reboot'); late final _reboot = _rebootPtr.asFunction(); - int revoke( - ffi.Pointer arg0, - ) { - return _revoke( - arg0, - ); + int revoke(ffi.Pointer arg0) { + return _revoke(arg0); } late final _revokePtr = _lookup)>>( - 'revoke'); - late final _revoke = - _revokePtr.asFunction)>(); + 'revoke', + ); + late final _revoke = _revokePtr + .asFunction)>(); int rcmd( ffi.Pointer> arg0, @@ -22588,33 +22323,33 @@ class NativeCupertinoHttp { ffi.Pointer arg4, ffi.Pointer arg5, ) { - return _rcmd( - arg0, - arg1, - arg2, - arg3, - arg4, - arg5, - ); + return _rcmd(arg0, arg1, arg2, arg3, arg4, arg5); } - late final _rcmdPtr = _lookup< - ffi.NativeFunction< + late final _rcmdPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('rcmd'); - late final _rcmd = _rcmdPtr.asFunction< - int Function( + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('rcmd'); + late final _rcmd = _rcmdPtr + .asFunction< + int Function( ffi.Pointer>, int, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); int rcmd_af( ffi.Pointer> arg0, @@ -22625,66 +22360,57 @@ class NativeCupertinoHttp { ffi.Pointer arg5, int arg6, ) { - return _rcmd_af( - arg0, - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - ); + return _rcmd_af(arg0, arg1, arg2, arg3, arg4, arg5, arg6); } - late final _rcmd_afPtr = _lookup< - ffi.NativeFunction< + late final _rcmd_afPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int)>>('rcmd_af'); - late final _rcmd_af = _rcmd_afPtr.asFunction< - int Function( + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('rcmd_af'); + late final _rcmd_af = _rcmd_afPtr + .asFunction< + int Function( ffi.Pointer>, int, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - int)>(); + int, + ) + >(); - int rresvport( - ffi.Pointer arg0, - ) { - return _rresvport( - arg0, - ); + int rresvport(ffi.Pointer arg0) { + return _rresvport(arg0); } late final _rresvportPtr = _lookup)>>( - 'rresvport'); - late final _rresvport = - _rresvportPtr.asFunction)>(); + 'rresvport', + ); + late final _rresvport = _rresvportPtr + .asFunction)>(); - int rresvport_af( - ffi.Pointer arg0, - int arg1, - ) { - return _rresvport_af( - arg0, - arg1, - ); + int rresvport_af(ffi.Pointer arg0, int arg1) { + return _rresvport_af(arg0, arg1); } - late final _rresvport_afPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'rresvport_af'); - late final _rresvport_af = - _rresvport_afPtr.asFunction, int)>(); + late final _rresvport_afPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('rresvport_af'); + late final _rresvport_af = _rresvport_afPtr + .asFunction, int)>(); int iruserok( int arg0, @@ -22692,20 +22418,24 @@ class NativeCupertinoHttp { ffi.Pointer arg2, ffi.Pointer arg3, ) { - return _iruserok( - arg0, - arg1, - arg2, - arg3, - ); + return _iruserok(arg0, arg1, arg2, arg3); } - late final _iruserokPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.UnsignedLong, ffi.Int, ffi.Pointer, - ffi.Pointer)>>('iruserok'); - late final _iruserok = _iruserokPtr.asFunction< - int Function(int, int, ffi.Pointer, ffi.Pointer)>(); + late final _iruserokPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.UnsignedLong, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + >('iruserok'); + late final _iruserok = _iruserokPtr + .asFunction< + int Function(int, int, ffi.Pointer, ffi.Pointer) + >(); int iruserok_sa( ffi.Pointer arg0, @@ -22714,22 +22444,31 @@ class NativeCupertinoHttp { ffi.Pointer arg3, ffi.Pointer arg4, ) { - return _iruserok_sa( - arg0, - arg1, - arg2, - arg3, - arg4, - ); + return _iruserok_sa(arg0, arg1, arg2, arg3, arg4); } - late final _iruserok_saPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int, - ffi.Pointer, ffi.Pointer)>>('iruserok_sa'); - late final _iruserok_sa = _iruserok_saPtr.asFunction< - int Function(ffi.Pointer, int, int, ffi.Pointer, - ffi.Pointer)>(); + late final _iruserok_saPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + >('iruserok_sa'); + late final _iruserok_sa = _iruserok_saPtr + .asFunction< + int Function( + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); int ruserok( ffi.Pointer arg0, @@ -22737,148 +22476,123 @@ class NativeCupertinoHttp { ffi.Pointer arg2, ffi.Pointer arg3, ) { - return _ruserok( - arg0, - arg1, - arg2, - arg3, - ); + return _ruserok(arg0, arg1, arg2, arg3); } - late final _ruserokPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, - ffi.Pointer, ffi.Pointer)>>('ruserok'); - late final _ruserok = _ruserokPtr.asFunction< - int Function(ffi.Pointer, int, ffi.Pointer, - ffi.Pointer)>(); + late final _ruserokPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + >('ruserok'); + late final _ruserok = _ruserokPtr + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); - int setdomainname( - ffi.Pointer arg0, - int __namelen, - ) { - return _setdomainname( - arg0, - __namelen, - ); + int setdomainname(ffi.Pointer arg0, int __namelen) { + return _setdomainname(arg0, __namelen); } - late final _setdomainnamePtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'setdomainname'); - late final _setdomainname = - _setdomainnamePtr.asFunction, int)>(); + late final _setdomainnamePtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('setdomainname'); + late final _setdomainname = _setdomainnamePtr + .asFunction, int)>(); - int setgroups( - int arg0, - ffi.Pointer arg1, - ) { - return _setgroups( - arg0, - arg1, - ); + int setgroups(int arg0, ffi.Pointer arg1) { + return _setgroups(arg0, arg1); } - late final _setgroupsPtr = _lookup< - ffi.NativeFunction)>>( - 'setgroups'); - late final _setgroups = - _setgroupsPtr.asFunction)>(); + late final _setgroupsPtr = + _lookup< + ffi.NativeFunction)> + >('setgroups'); + late final _setgroups = _setgroupsPtr + .asFunction)>(); - void sethostid( - int arg0, - ) { - return _sethostid( - arg0, - ); + void sethostid(int arg0) { + return _sethostid(arg0); } late final _sethostidPtr = _lookup>('sethostid'); late final _sethostid = _sethostidPtr.asFunction(); - int sethostname( - ffi.Pointer arg0, - int __namelen, - ) { - return _sethostname( - arg0, - __namelen, - ); + int sethostname(ffi.Pointer arg0, int __namelen) { + return _sethostname(arg0, __namelen); } - late final _sethostnamePtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'sethostname'); - late final _sethostname = - _sethostnamePtr.asFunction, int)>(); + late final _sethostnamePtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sethostname'); + late final _sethostname = _sethostnamePtr + .asFunction, int)>(); - int setlogin( - ffi.Pointer arg0, - ) { - return _setlogin( - arg0, - ); + int setlogin(ffi.Pointer arg0) { + return _setlogin(arg0); } late final _setloginPtr = _lookup)>>( - 'setlogin'); - late final _setlogin = - _setloginPtr.asFunction)>(); + 'setlogin', + ); + late final _setlogin = _setloginPtr + .asFunction)>(); - ffi.Pointer setmode( - ffi.Pointer arg0, - ) { - return _setmode( - arg0, - ); + ffi.Pointer setmode(ffi.Pointer arg0) { + return _setmode(arg0); } - late final _setmodePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('setmode'); + late final _setmodePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('setmode'); late final _setmode = _setmodePtr .asFunction Function(ffi.Pointer)>(); - int setrgid( - int arg0, - ) { - return _setrgid( - arg0, - ); + int setrgid(int arg0) { + return _setrgid(arg0); } - late final _setrgidPtr = - _lookup>('setrgid'); + late final _setrgidPtr = _lookup>( + 'setrgid', + ); late final _setrgid = _setrgidPtr.asFunction(); - int setruid( - int arg0, - ) { - return _setruid( - arg0, - ); + int setruid(int arg0) { + return _setruid(arg0); } - late final _setruidPtr = - _lookup>('setruid'); + late final _setruidPtr = _lookup>( + 'setruid', + ); late final _setruid = _setruidPtr.asFunction(); - int setsgroups_np( - int arg0, - ffi.Pointer arg1, - ) { - return _setsgroups_np( - arg0, - arg1, - ); + int setsgroups_np(int arg0, ffi.Pointer arg1) { + return _setsgroups_np(arg0, arg1); } - late final _setsgroups_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer)>>('setsgroups_np'); + late final _setsgroups_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer) + > + >('setsgroups_np'); late final _setsgroups_np = _setsgroups_npPtr .asFunction)>(); @@ -22890,20 +22604,16 @@ class NativeCupertinoHttp { _lookup>('setusershell'); late final _setusershell = _setusershellPtr.asFunction(); - int setwgroups_np( - int arg0, - ffi.Pointer arg1, - ) { - return _setwgroups_np( - arg0, - arg1, - ); + int setwgroups_np(int arg0, ffi.Pointer arg1) { + return _setwgroups_np(arg0, arg1); } - late final _setwgroups_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer)>>('setwgroups_np'); + late final _setwgroups_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer) + > + >('setwgroups_np'); late final _setwgroups_np = _setwgroups_npPtr .asFunction)>(); @@ -22912,79 +22622,72 @@ class NativeCupertinoHttp { ffi.Pointer arg1, ffi.Pointer arg2, ) { - return _strtofflags( - arg0, - arg1, - arg2, - ); + return _strtofflags(arg0, arg1, arg2); } - late final _strtofflagsPtr = _lookup< - ffi.NativeFunction< + late final _strtofflagsPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer)>>('strtofflags'); - late final _strtofflags = _strtofflagsPtr.asFunction< - int Function(ffi.Pointer>, - ffi.Pointer, ffi.Pointer)>(); - - int swapon( - ffi.Pointer arg0, - ) { - return _swapon( - arg0, - ); + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) + > + >('strtofflags'); + late final _strtofflags = _strtofflagsPtr + .asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + int swapon(ffi.Pointer arg0) { + return _swapon(arg0); } late final _swaponPtr = _lookup)>>( - 'swapon'); - late final _swapon = - _swaponPtr.asFunction)>(); + 'swapon', + ); + late final _swapon = _swaponPtr + .asFunction)>(); int ttyslot() { return _ttyslot(); } - late final _ttyslotPtr = - _lookup>('ttyslot'); + late final _ttyslotPtr = _lookup>( + 'ttyslot', + ); late final _ttyslot = _ttyslotPtr.asFunction(); - int undelete( - ffi.Pointer arg0, - ) { - return _undelete( - arg0, - ); + int undelete(ffi.Pointer arg0) { + return _undelete(arg0); } late final _undeletePtr = _lookup)>>( - 'undelete'); - late final _undelete = - _undeletePtr.asFunction)>(); + 'undelete', + ); + late final _undelete = _undeletePtr + .asFunction)>(); - int unwhiteout( - ffi.Pointer arg0, - ) { - return _unwhiteout( - arg0, - ); + int unwhiteout(ffi.Pointer arg0) { + return _unwhiteout(arg0); } late final _unwhiteoutPtr = _lookup)>>( - 'unwhiteout'); - late final _unwhiteout = - _unwhiteoutPtr.asFunction)>(); + 'unwhiteout', + ); + late final _unwhiteout = _unwhiteoutPtr + .asFunction)>(); - int syscall( - int arg0, - ) { - return _syscall( - arg0, - ); + int syscall(int arg0) { + return _syscall(arg0); } late final _syscallPtr = @@ -22998,26 +22701,31 @@ class NativeCupertinoHttp { int __attrBufSize, int arg4, ) { - return _fgetattrlist( - arg0, - arg1, - arg2, - __attrBufSize, - arg4, - ); + return _fgetattrlist(arg0, arg1, arg2, __attrBufSize, arg4); } - late final _fgetattrlistPtr = _lookup< - ffi.NativeFunction< + late final _fgetattrlistPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedInt)>>('fgetattrlist'); - late final _fgetattrlist = _fgetattrlistPtr.asFunction< - int Function( - int, ffi.Pointer, ffi.Pointer, int, int)>(); + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedInt, + ) + > + >('fgetattrlist'); + late final _fgetattrlist = _fgetattrlistPtr + .asFunction< + int Function( + int, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); int fsetattrlist( int arg0, @@ -23026,26 +22734,31 @@ class NativeCupertinoHttp { int __attrBufSize, int arg4, ) { - return _fsetattrlist( - arg0, - arg1, - arg2, - __attrBufSize, - arg4, - ); + return _fsetattrlist(arg0, arg1, arg2, __attrBufSize, arg4); } - late final _fsetattrlistPtr = _lookup< - ffi.NativeFunction< + late final _fsetattrlistPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedInt)>>('fsetattrlist'); - late final _fsetattrlist = _fsetattrlistPtr.asFunction< - int Function( - int, ffi.Pointer, ffi.Pointer, int, int)>(); + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedInt, + ) + > + >('fsetattrlist'); + late final _fsetattrlist = _fsetattrlistPtr + .asFunction< + int Function( + int, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); int getattrlist( ffi.Pointer arg0, @@ -23054,73 +22767,87 @@ class NativeCupertinoHttp { int __attrBufSize, int arg4, ) { - return _getattrlist( - arg0, - arg1, - arg2, - __attrBufSize, - arg4, - ); + return _getattrlist(arg0, arg1, arg2, __attrBufSize, arg4); } - late final _getattrlistPtr = _lookup< - ffi.NativeFunction< + late final _getattrlistPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedInt)>>('getattrlist'); - late final _getattrlist = _getattrlistPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int)>(); - - int setattrlist( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __attrBufSize, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedInt, + ) + > + >('getattrlist'); + late final _getattrlist = _getattrlistPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); + + int setattrlist( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __attrBufSize, int arg4, ) { - return _setattrlist( - arg0, - arg1, - arg2, - __attrBufSize, - arg4, - ); + return _setattrlist(arg0, arg1, arg2, __attrBufSize, arg4); } - late final _setattrlistPtr = _lookup< - ffi.NativeFunction< + late final _setattrlistPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedInt)>>('setattrlist'); - late final _setattrlist = _setattrlistPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedInt, + ) + > + >('setattrlist'); + late final _setattrlist = _setattrlistPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); int exchangedata( ffi.Pointer arg0, ffi.Pointer arg1, int arg2, ) { - return _exchangedata( - arg0, - arg1, - arg2, - ); + return _exchangedata(arg0, arg1, arg2); } - late final _exchangedataPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedInt)>>('exchangedata'); - late final _exchangedata = _exchangedataPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _exchangedataPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('exchangedata'); + late final _exchangedata = _exchangedataPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); int getdirentriesattr( int arg0, @@ -23144,19 +22871,24 @@ class NativeCupertinoHttp { ); } - late final _getdirentriesattrPtr = _lookup< - ffi.NativeFunction< + late final _getdirentriesattrPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt)>>('getdirentriesattr'); - late final _getdirentriesattr = _getdirentriesattrPtr.asFunction< - int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('getdirentriesattr'); + late final _getdirentriesattr = _getdirentriesattrPtr + .asFunction< + int Function( int, ffi.Pointer, ffi.Pointer, @@ -23164,7 +22896,9 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer, - int)>(); + int, + ) + >(); int searchfs( ffi.Pointer arg0, @@ -23174,28 +22908,33 @@ class NativeCupertinoHttp { int arg4, ffi.Pointer arg5, ) { - return _searchfs( - arg0, - arg1, - arg2, - arg3, - arg4, - arg5, - ); + return _searchfs(arg0, arg1, arg2, arg3, arg4, arg5); } - late final _searchfsPtr = _lookup< - ffi.NativeFunction< + late final _searchfsPtr = + _lookup< + ffi.NativeFunction< ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer)>>('searchfs'); - late final _searchfs = _searchfsPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('searchfs'); + late final _searchfs = _searchfsPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); int fsctl( ffi.Pointer arg0, @@ -23203,73 +22942,64 @@ class NativeCupertinoHttp { ffi.Pointer arg2, int arg3, ) { - return _fsctl( - arg0, - arg1, - arg2, - arg3, - ); + return _fsctl(arg0, arg1, arg2, arg3); } - late final _fsctlPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.UnsignedLong, - ffi.Pointer, ffi.UnsignedInt)>>('fsctl'); - late final _fsctl = _fsctlPtr.asFunction< - int Function(ffi.Pointer, int, ffi.Pointer, int)>(); + late final _fsctlPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('fsctl'); + late final _fsctl = _fsctlPtr + .asFunction< + int Function(ffi.Pointer, int, ffi.Pointer, int) + >(); - int ffsctl( - int arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ) { - return _ffsctl( - arg0, - arg1, - arg2, - arg3, - ); + int ffsctl(int arg0, int arg1, ffi.Pointer arg2, int arg3) { + return _ffsctl(arg0, arg1, arg2, arg3); } - late final _ffsctlPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.UnsignedLong, ffi.Pointer, - ffi.UnsignedInt)>>('ffsctl'); + late final _ffsctlPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('ffsctl'); late final _ffsctl = _ffsctlPtr .asFunction, int)>(); - int fsync_volume_np( - int arg0, - int arg1, - ) { - return _fsync_volume_np( - arg0, - arg1, - ); + int fsync_volume_np(int arg0, int arg1) { + return _fsync_volume_np(arg0, arg1); } late final _fsync_volume_npPtr = _lookup>( - 'fsync_volume_np'); - late final _fsync_volume_np = - _fsync_volume_npPtr.asFunction(); + 'fsync_volume_np', + ); + late final _fsync_volume_np = _fsync_volume_npPtr + .asFunction(); - int sync_volume_np( - ffi.Pointer arg0, - int arg1, - ) { - return _sync_volume_np( - arg0, - arg1, - ); + int sync_volume_np(ffi.Pointer arg0, int arg1) { + return _sync_volume_np(arg0, arg1); } - late final _sync_volume_npPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'sync_volume_np'); - late final _sync_volume_np = - _sync_volume_npPtr.asFunction, int)>(); + late final _sync_volume_npPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sync_volume_np'); + late final _sync_volume_np = _sync_volume_npPtr + .asFunction, int)>(); late final ffi.Pointer _optreset = _lookup('optreset'); @@ -23277,86 +23007,59 @@ class NativeCupertinoHttp { set optreset(int value) => _optreset.value = value; - int open( - ffi.Pointer arg0, - int arg1, - ) { - return _open( - arg0, - arg1, - ); + int open(ffi.Pointer arg0, int arg1) { + return _open(arg0, arg1); } - late final _openPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'open'); - late final _open = - _openPtr.asFunction, int)>(); + late final _openPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('open'); + late final _open = _openPtr + .asFunction, int)>(); - int openat( - int arg0, - ffi.Pointer arg1, - int arg2, - ) { - return _openat( - arg0, - arg1, - arg2, - ); + int openat(int arg0, ffi.Pointer arg1, int arg2) { + return _openat(arg0, arg1, arg2); } - late final _openatPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int)>>('openat'); - late final _openat = - _openatPtr.asFunction, int)>(); + late final _openatPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int) + > + >('openat'); + late final _openat = _openatPtr + .asFunction, int)>(); - int creat( - ffi.Pointer arg0, - int arg1, - ) { - return _creat( - arg0, - arg1, - ); + int creat(ffi.Pointer arg0, int arg1) { + return _creat(arg0, arg1); } - late final _creatPtr = _lookup< - ffi.NativeFunction, mode_t)>>( - 'creat'); - late final _creat = - _creatPtr.asFunction, int)>(); + late final _creatPtr = + _lookup< + ffi.NativeFunction, mode_t)> + >('creat'); + late final _creat = _creatPtr + .asFunction, int)>(); - int fcntl( - int arg0, - int arg1, - ) { - return _fcntl( - arg0, - arg1, - ); + int fcntl(int arg0, int arg1) { + return _fcntl(arg0, arg1); } late final _fcntlPtr = _lookup>('fcntl'); late final _fcntl = _fcntlPtr.asFunction(); - int openx_np( - ffi.Pointer arg0, - int arg1, - filesec_t arg2, - ) { - return _openx_np( - arg0, - arg1, - arg2, - ); + int openx_np(ffi.Pointer arg0, int arg1, filesec_t arg2) { + return _openx_np(arg0, arg1, arg2); } - late final _openx_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Int, filesec_t)>>('openx_np'); + late final _openx_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, filesec_t) + > + >('openx_np'); late final _openx_np = _openx_npPtr .asFunction, int, filesec_t)>(); @@ -23366,18 +23069,15 @@ class NativeCupertinoHttp { int arg2, int arg3, ) { - return _open_dprotected_np( - arg0, - arg1, - arg2, - arg3, - ); + return _open_dprotected_np(arg0, arg1, arg2, arg3); } - late final _open_dprotected_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int, - ffi.Int)>>('open_dprotected_np'); + late final _open_dprotected_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int, ffi.Int) + > + >('open_dprotected_np'); late final _open_dprotected_np = _open_dprotected_npPtr .asFunction, int, int, int)>(); @@ -23388,19 +23088,21 @@ class NativeCupertinoHttp { int arg3, int arg4, ) { - return _openat_dprotected_np( - arg0, - arg1, - arg2, - arg3, - arg4, - ); + return _openat_dprotected_np(arg0, arg1, arg2, arg3, arg4); } - late final _openat_dprotected_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int, - ffi.Int)>>('openat_dprotected_np'); + late final _openat_dprotected_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Int, + ) + > + >('openat_dprotected_np'); late final _openat_dprotected_np = _openat_dprotected_npPtr .asFunction, int, int, int)>(); @@ -23410,29 +23112,20 @@ class NativeCupertinoHttp { int arg2, int arg3, ) { - return _openat_authenticated_np( - arg0, - arg1, - arg2, - arg3, - ); + return _openat_authenticated_np(arg0, arg1, arg2, arg3); } - late final _openat_authenticated_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, - ffi.Int)>>('openat_authenticated_np'); + late final _openat_authenticated_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) + > + >('openat_authenticated_np'); late final _openat_authenticated_np = _openat_authenticated_npPtr .asFunction, int, int)>(); - int flock$1( - int arg0, - int arg1, - ) { - return _flock$1( - arg0, - arg1, - ); + int flock$1(int arg0, int arg1) { + return _flock$1(arg0, arg1); } late final _flock$1Ptr = @@ -23445,51 +23138,41 @@ class NativeCupertinoHttp { late final _filesec_initPtr = _lookup>('filesec_init'); - late final _filesec_init = - _filesec_initPtr.asFunction(); + late final _filesec_init = _filesec_initPtr + .asFunction(); - filesec_t filesec_dup( - filesec_t arg0, - ) { - return _filesec_dup( - arg0, - ); + filesec_t filesec_dup(filesec_t arg0) { + return _filesec_dup(arg0); } late final _filesec_dupPtr = _lookup>('filesec_dup'); - late final _filesec_dup = - _filesec_dupPtr.asFunction(); + late final _filesec_dup = _filesec_dupPtr + .asFunction(); - void filesec_free( - filesec_t arg0, - ) { - return _filesec_free( - arg0, - ); + void filesec_free(filesec_t arg0) { + return _filesec_free(arg0); } late final _filesec_freePtr = _lookup>('filesec_free'); - late final _filesec_free = - _filesec_freePtr.asFunction(); + late final _filesec_free = _filesec_freePtr + .asFunction(); int filesec_get_property( filesec_t arg0, filesec_property_t arg1, ffi.Pointer arg2, ) { - return _filesec_get_property( - arg0, - arg1.value, - arg2, - ); + return _filesec_get_property(arg0, arg1.value, arg2); } - late final _filesec_get_propertyPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(filesec_t, ffi.UnsignedInt, - ffi.Pointer)>>('filesec_get_property'); + late final _filesec_get_propertyPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(filesec_t, ffi.UnsignedInt, ffi.Pointer) + > + >('filesec_get_property'); late final _filesec_get_property = _filesec_get_propertyPtr .asFunction)>(); @@ -23498,17 +23181,15 @@ class NativeCupertinoHttp { filesec_property_t arg1, ffi.Pointer arg2, ) { - return _filesec_query_property( - arg0, - arg1.value, - arg2, - ); + return _filesec_query_property(arg0, arg1.value, arg2); } - late final _filesec_query_propertyPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(filesec_t, ffi.UnsignedInt, - ffi.Pointer)>>('filesec_query_property'); + late final _filesec_query_propertyPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(filesec_t, ffi.UnsignedInt, ffi.Pointer) + > + >('filesec_query_property'); late final _filesec_query_property = _filesec_query_propertyPtr .asFunction)>(); @@ -23517,50 +23198,42 @@ class NativeCupertinoHttp { filesec_property_t arg1, ffi.Pointer arg2, ) { - return _filesec_set_property( - arg0, - arg1.value, - arg2, - ); + return _filesec_set_property(arg0, arg1.value, arg2); } - late final _filesec_set_propertyPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(filesec_t, ffi.UnsignedInt, - ffi.Pointer)>>('filesec_set_property'); + late final _filesec_set_propertyPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(filesec_t, ffi.UnsignedInt, ffi.Pointer) + > + >('filesec_set_property'); late final _filesec_set_property = _filesec_set_propertyPtr .asFunction)>(); - int filesec_unset_property( - filesec_t arg0, - filesec_property_t arg1, - ) { - return _filesec_unset_property( - arg0, - arg1.value, - ); + int filesec_unset_property(filesec_t arg0, filesec_property_t arg1) { + return _filesec_unset_property(arg0, arg1.value); } late final _filesec_unset_propertyPtr = _lookup>( - 'filesec_unset_property'); - late final _filesec_unset_property = - _filesec_unset_propertyPtr.asFunction(); + 'filesec_unset_property', + ); + late final _filesec_unset_property = _filesec_unset_propertyPtr + .asFunction(); int os_workgroup_copy_port( Dartos_workgroup_t wg, ffi.Pointer mach_port_out, ) { - return _os_workgroup_copy_port( - wg.ref.pointer, - mach_port_out, - ); + return _os_workgroup_copy_port(wg.ref.pointer, mach_port_out); } - late final _os_workgroup_copy_portPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(os_workgroup_t, - ffi.Pointer)>>('os_workgroup_copy_port'); + late final _os_workgroup_copy_portPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(os_workgroup_t, ffi.Pointer) + > + >('os_workgroup_copy_port'); late final _os_workgroup_copy_port = _os_workgroup_copy_portPtr .asFunction)>(); @@ -23568,25 +23241,21 @@ class NativeCupertinoHttp { ffi.Pointer name, Dart__darwin_natural_t mach_port, ) { - return _os_workgroup_create_with_port( - name, - mach_port, - ).address == - 0 + return _os_workgroup_create_with_port(name, mach_port).address == 0 ? null : OS_os_workgroup.castFromPointer( - _os_workgroup_create_with_port( - name, - mach_port, - ), + _os_workgroup_create_with_port(name, mach_port), retain: false, - release: true); + release: true, + ); } - late final _os_workgroup_create_with_portPtr = _lookup< - ffi.NativeFunction< - os_workgroup_t Function(ffi.Pointer, - mach_port_t)>>('os_workgroup_create_with_port'); + late final _os_workgroup_create_with_portPtr = + _lookup< + ffi.NativeFunction< + os_workgroup_t Function(ffi.Pointer, mach_port_t) + > + >('os_workgroup_create_with_port'); late final _os_workgroup_create_with_port = _os_workgroup_create_with_portPtr .asFunction, int)>(); @@ -23594,43 +23263,41 @@ class NativeCupertinoHttp { ffi.Pointer name, Dartos_workgroup_t wg, ) { - return _os_workgroup_create_with_workgroup( - name, - wg.ref.pointer, - ).address == + return _os_workgroup_create_with_workgroup(name, wg.ref.pointer).address == 0 ? null : OS_os_workgroup.castFromPointer( - _os_workgroup_create_with_workgroup( - name, - wg.ref.pointer, - ), + _os_workgroup_create_with_workgroup(name, wg.ref.pointer), retain: false, - release: true); + release: true, + ); } - late final _os_workgroup_create_with_workgroupPtr = _lookup< - ffi.NativeFunction< - os_workgroup_t Function(ffi.Pointer, - os_workgroup_t)>>('os_workgroup_create_with_workgroup'); + late final _os_workgroup_create_with_workgroupPtr = + _lookup< + ffi.NativeFunction< + os_workgroup_t Function(ffi.Pointer, os_workgroup_t) + > + >('os_workgroup_create_with_workgroup'); late final _os_workgroup_create_with_workgroup = - _os_workgroup_create_with_workgroupPtr.asFunction< - os_workgroup_t Function(ffi.Pointer, os_workgroup_t)>(); + _os_workgroup_create_with_workgroupPtr + .asFunction< + os_workgroup_t Function(ffi.Pointer, os_workgroup_t) + >(); int os_workgroup_join( Dartos_workgroup_t wg, os_workgroup_join_token_t token_out, ) { - return _os_workgroup_join( - wg.ref.pointer, - token_out, - ); + return _os_workgroup_join(wg.ref.pointer, token_out); } - late final _os_workgroup_joinPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - os_workgroup_t, os_workgroup_join_token_t)>>('os_workgroup_join'); + late final _os_workgroup_joinPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(os_workgroup_t, os_workgroup_join_token_t) + > + >('os_workgroup_join'); late final _os_workgroup_join = _os_workgroup_joinPtr .asFunction(); @@ -23638,16 +23305,15 @@ class NativeCupertinoHttp { Dartos_workgroup_t wg, os_workgroup_join_token_t token, ) { - return _os_workgroup_leave( - wg.ref.pointer, - token, - ); + return _os_workgroup_leave(wg.ref.pointer, token); } - late final _os_workgroup_leavePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(os_workgroup_t, - os_workgroup_join_token_t)>>('os_workgroup_leave'); + late final _os_workgroup_leavePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(os_workgroup_t, os_workgroup_join_token_t) + > + >('os_workgroup_leave'); late final _os_workgroup_leave = _os_workgroup_leavePtr .asFunction(); @@ -23665,78 +23331,88 @@ class NativeCupertinoHttp { ); } - late final _os_workgroup_set_working_arenaPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(os_workgroup_t, ffi.Pointer, - ffi.Uint32, os_workgroup_working_arena_destructor_t)>>( - 'os_workgroup_set_working_arena'); + late final _os_workgroup_set_working_arenaPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + os_workgroup_t, + ffi.Pointer, + ffi.Uint32, + os_workgroup_working_arena_destructor_t, + ) + > + >('os_workgroup_set_working_arena'); late final _os_workgroup_set_working_arena = - _os_workgroup_set_working_arenaPtr.asFunction< - int Function(os_workgroup_t, ffi.Pointer, int, - os_workgroup_working_arena_destructor_t)>(); + _os_workgroup_set_working_arenaPtr + .asFunction< + int Function( + os_workgroup_t, + ffi.Pointer, + int, + os_workgroup_working_arena_destructor_t, + ) + >(); ffi.Pointer os_workgroup_get_working_arena( Dartos_workgroup_t wg, ffi.Pointer index_out, ) { - return _os_workgroup_get_working_arena( - wg.ref.pointer, - index_out, - ); + return _os_workgroup_get_working_arena(wg.ref.pointer, index_out); } - late final _os_workgroup_get_working_arenaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - os_workgroup_t, ffi.Pointer)>>( - 'os_workgroup_get_working_arena'); - late final _os_workgroup_get_working_arena = - _os_workgroup_get_working_arenaPtr.asFunction< + late final _os_workgroup_get_working_arenaPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - os_workgroup_t, ffi.Pointer)>(); + os_workgroup_t, + ffi.Pointer, + ) + > + >('os_workgroup_get_working_arena'); + late final _os_workgroup_get_working_arena = + _os_workgroup_get_working_arenaPtr + .asFunction< + ffi.Pointer Function( + os_workgroup_t, + ffi.Pointer, + ) + >(); - void os_workgroup_cancel( - Dartos_workgroup_t wg, - ) { - return _os_workgroup_cancel( - wg.ref.pointer, - ); + void os_workgroup_cancel(Dartos_workgroup_t wg) { + return _os_workgroup_cancel(wg.ref.pointer); } late final _os_workgroup_cancelPtr = _lookup>( - 'os_workgroup_cancel'); - late final _os_workgroup_cancel = - _os_workgroup_cancelPtr.asFunction(); + 'os_workgroup_cancel', + ); + late final _os_workgroup_cancel = _os_workgroup_cancelPtr + .asFunction(); - bool os_workgroup_testcancel( - Dartos_workgroup_t wg, - ) { - return _os_workgroup_testcancel( - wg.ref.pointer, - ); + bool os_workgroup_testcancel(Dartos_workgroup_t wg) { + return _os_workgroup_testcancel(wg.ref.pointer); } late final _os_workgroup_testcancelPtr = _lookup>( - 'os_workgroup_testcancel'); - late final _os_workgroup_testcancel = - _os_workgroup_testcancelPtr.asFunction(); + 'os_workgroup_testcancel', + ); + late final _os_workgroup_testcancel = _os_workgroup_testcancelPtr + .asFunction(); int os_workgroup_max_parallel_threads( Dartos_workgroup_t wg, os_workgroup_mpt_attr_t attr, ) { - return _os_workgroup_max_parallel_threads( - wg.ref.pointer, - attr, - ); + return _os_workgroup_max_parallel_threads(wg.ref.pointer, attr); } - late final _os_workgroup_max_parallel_threadsPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(os_workgroup_t, - os_workgroup_mpt_attr_t)>>('os_workgroup_max_parallel_threads'); + late final _os_workgroup_max_parallel_threadsPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(os_workgroup_t, os_workgroup_mpt_attr_t) + > + >('os_workgroup_max_parallel_threads'); late final _os_workgroup_max_parallel_threads = _os_workgroup_max_parallel_threadsPtr .asFunction(); @@ -23747,122 +23423,125 @@ class NativeCupertinoHttp { int deadline, os_workgroup_interval_data_t data, ) { - return _os_workgroup_interval_start( - wg.ref.pointer, - start, - deadline, - data, - ); + return _os_workgroup_interval_start(wg.ref.pointer, start, deadline, data); } - late final _os_workgroup_interval_startPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(os_workgroup_interval_t, ffi.Uint64, ffi.Uint64, - os_workgroup_interval_data_t)>>('os_workgroup_interval_start'); - late final _os_workgroup_interval_start = - _os_workgroup_interval_startPtr.asFunction< - int Function(os_workgroup_interval_t, int, int, - os_workgroup_interval_data_t)>(); + late final _os_workgroup_interval_startPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + os_workgroup_interval_t, + ffi.Uint64, + ffi.Uint64, + os_workgroup_interval_data_t, + ) + > + >('os_workgroup_interval_start'); + late final _os_workgroup_interval_start = _os_workgroup_interval_startPtr + .asFunction< + int Function( + os_workgroup_interval_t, + int, + int, + os_workgroup_interval_data_t, + ) + >(); int os_workgroup_interval_update( Dartos_workgroup_interval_t wg, int deadline, os_workgroup_interval_data_t data, ) { - return _os_workgroup_interval_update( - wg.ref.pointer, - deadline, - data, - ); + return _os_workgroup_interval_update(wg.ref.pointer, deadline, data); } - late final _os_workgroup_interval_updatePtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(os_workgroup_interval_t, ffi.Uint64, - os_workgroup_interval_data_t)>>('os_workgroup_interval_update'); - late final _os_workgroup_interval_update = - _os_workgroup_interval_updatePtr.asFunction< - int Function( - os_workgroup_interval_t, int, os_workgroup_interval_data_t)>(); + late final _os_workgroup_interval_updatePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + os_workgroup_interval_t, + ffi.Uint64, + os_workgroup_interval_data_t, + ) + > + >('os_workgroup_interval_update'); + late final _os_workgroup_interval_update = _os_workgroup_interval_updatePtr + .asFunction< + int Function(os_workgroup_interval_t, int, os_workgroup_interval_data_t) + >(); int os_workgroup_interval_finish( Dartos_workgroup_interval_t wg, os_workgroup_interval_data_t data, ) { - return _os_workgroup_interval_finish( - wg.ref.pointer, - data, - ); + return _os_workgroup_interval_finish(wg.ref.pointer, data); } - late final _os_workgroup_interval_finishPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(os_workgroup_interval_t, - os_workgroup_interval_data_t)>>('os_workgroup_interval_finish'); - late final _os_workgroup_interval_finish = - _os_workgroup_interval_finishPtr.asFunction< - int Function( - os_workgroup_interval_t, os_workgroup_interval_data_t)>(); + late final _os_workgroup_interval_finishPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + os_workgroup_interval_t, + os_workgroup_interval_data_t, + ) + > + >('os_workgroup_interval_finish'); + late final _os_workgroup_interval_finish = _os_workgroup_interval_finishPtr + .asFunction< + int Function(os_workgroup_interval_t, os_workgroup_interval_data_t) + >(); Dartos_workgroup_parallel_t? os_workgroup_parallel_create( ffi.Pointer name, os_workgroup_attr_t attr, ) { - return _os_workgroup_parallel_create( - name, - attr, - ).address == - 0 + return _os_workgroup_parallel_create(name, attr).address == 0 ? null : OS_os_workgroup.castFromPointer( - _os_workgroup_parallel_create( - name, - attr, - ), + _os_workgroup_parallel_create(name, attr), retain: false, - release: true); + release: true, + ); } - late final _os_workgroup_parallel_createPtr = _lookup< - ffi.NativeFunction< - os_workgroup_parallel_t Function(ffi.Pointer, - os_workgroup_attr_t)>>('os_workgroup_parallel_create'); - late final _os_workgroup_parallel_create = - _os_workgroup_parallel_createPtr.asFunction< + late final _os_workgroup_parallel_createPtr = + _lookup< + ffi.NativeFunction< os_workgroup_parallel_t Function( - ffi.Pointer, os_workgroup_attr_t)>(); + ffi.Pointer, + os_workgroup_attr_t, + ) + > + >('os_workgroup_parallel_create'); + late final _os_workgroup_parallel_create = _os_workgroup_parallel_createPtr + .asFunction< + os_workgroup_parallel_t Function( + ffi.Pointer, + os_workgroup_attr_t, + ) + >(); - int dispatch_time( - int when, - int delta, - ) { - return _dispatch_time( - when, - delta, - ); + int dispatch_time(int when, int delta) { + return _dispatch_time(when, delta); } - late final _dispatch_timePtr = _lookup< - ffi.NativeFunction< - dispatch_time_t Function( - dispatch_time_t, ffi.Int64)>>('dispatch_time'); - late final _dispatch_time = - _dispatch_timePtr.asFunction(); + late final _dispatch_timePtr = + _lookup< + ffi.NativeFunction + >('dispatch_time'); + late final _dispatch_time = _dispatch_timePtr + .asFunction(); - int dispatch_walltime( - ffi.Pointer when, - int delta, - ) { - return _dispatch_walltime( - when, - delta, - ); + int dispatch_walltime(ffi.Pointer when, int delta) { + return _dispatch_walltime(when, delta); } - late final _dispatch_walltimePtr = _lookup< - ffi.NativeFunction< - dispatch_time_t Function( - ffi.Pointer, ffi.Int64)>>('dispatch_walltime'); + late final _dispatch_walltimePtr = + _lookup< + ffi.NativeFunction< + dispatch_time_t Function(ffi.Pointer, ffi.Int64) + > + >('dispatch_walltime'); late final _dispatch_walltime = _dispatch_walltimePtr .asFunction, int)>(); @@ -23882,46 +23561,36 @@ class NativeCupertinoHttp { _lookup>('qos_class_main'); late final _qos_class_main = _qos_class_mainPtr.asFunction(); - void dispatch_retain( - Dartdispatch_object_t object, - ) { - return _dispatch_retain( - object.ref.pointer, - ); + void dispatch_retain(Dartdispatch_object_t object) { + return _dispatch_retain(object.ref.pointer); } late final _dispatch_retainPtr = _lookup>( - 'dispatch_retain'); - late final _dispatch_retain = - _dispatch_retainPtr.asFunction(); + 'dispatch_retain', + ); + late final _dispatch_retain = _dispatch_retainPtr + .asFunction(); - void dispatch_release( - Dartdispatch_object_t object, - ) { - return _dispatch_release( - object.ref.pointer, - ); + void dispatch_release(Dartdispatch_object_t object) { + return _dispatch_release(object.ref.pointer); } late final _dispatch_releasePtr = _lookup>( - 'dispatch_release'); - late final _dispatch_release = - _dispatch_releasePtr.asFunction(); + 'dispatch_release', + ); + late final _dispatch_release = _dispatch_releasePtr + .asFunction(); - ffi.Pointer dispatch_get_context( - Dartdispatch_object_t object, - ) { - return _dispatch_get_context( - object.ref.pointer, - ); + ffi.Pointer dispatch_get_context(Dartdispatch_object_t object) { + return _dispatch_get_context(object.ref.pointer); } - late final _dispatch_get_contextPtr = _lookup< - ffi - .NativeFunction Function(dispatch_object_t)>>( - 'dispatch_get_context'); + late final _dispatch_get_contextPtr = + _lookup< + ffi.NativeFunction Function(dispatch_object_t)> + >('dispatch_get_context'); late final _dispatch_get_context = _dispatch_get_contextPtr .asFunction Function(dispatch_object_t)>(); @@ -23929,16 +23598,15 @@ class NativeCupertinoHttp { Dartdispatch_object_t object, ffi.Pointer context, ) { - return _dispatch_set_context( - object.ref.pointer, - context, - ); + return _dispatch_set_context(object.ref.pointer, context); } - late final _dispatch_set_contextPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_object_t, - ffi.Pointer)>>('dispatch_set_context'); + late final _dispatch_set_contextPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_object_t, ffi.Pointer) + > + >('dispatch_set_context'); late final _dispatch_set_context = _dispatch_set_contextPtr .asFunction)>(); @@ -23946,60 +23614,50 @@ class NativeCupertinoHttp { Dartdispatch_object_t object, dispatch_function_t finalizer, ) { - return _dispatch_set_finalizer_f( - object.ref.pointer, - finalizer, - ); + return _dispatch_set_finalizer_f(object.ref.pointer, finalizer); } - late final _dispatch_set_finalizer_fPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_object_t, - dispatch_function_t)>>('dispatch_set_finalizer_f'); + late final _dispatch_set_finalizer_fPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_object_t, dispatch_function_t) + > + >('dispatch_set_finalizer_f'); late final _dispatch_set_finalizer_f = _dispatch_set_finalizer_fPtr .asFunction(); - void dispatch_activate( - Dartdispatch_object_t object, - ) { - return _dispatch_activate( - object.ref.pointer, - ); + void dispatch_activate(Dartdispatch_object_t object) { + return _dispatch_activate(object.ref.pointer); } late final _dispatch_activatePtr = _lookup>( - 'dispatch_activate'); - late final _dispatch_activate = - _dispatch_activatePtr.asFunction(); + 'dispatch_activate', + ); + late final _dispatch_activate = _dispatch_activatePtr + .asFunction(); - void dispatch_suspend( - Dartdispatch_object_t object, - ) { - return _dispatch_suspend( - object.ref.pointer, - ); + void dispatch_suspend(Dartdispatch_object_t object) { + return _dispatch_suspend(object.ref.pointer); } late final _dispatch_suspendPtr = _lookup>( - 'dispatch_suspend'); - late final _dispatch_suspend = - _dispatch_suspendPtr.asFunction(); + 'dispatch_suspend', + ); + late final _dispatch_suspend = _dispatch_suspendPtr + .asFunction(); - void dispatch_resume( - Dartdispatch_object_t object, - ) { - return _dispatch_resume( - object.ref.pointer, - ); + void dispatch_resume(Dartdispatch_object_t object) { + return _dispatch_resume(object.ref.pointer); } late final _dispatch_resumePtr = _lookup>( - 'dispatch_resume'); - late final _dispatch_resume = - _dispatch_resumePtr.asFunction(); + 'dispatch_resume', + ); + late final _dispatch_resume = _dispatch_resumePtr + .asFunction(); void dispatch_set_qos_class_floor( Dartdispatch_object_t object, @@ -24013,29 +23671,27 @@ class NativeCupertinoHttp { ); } - late final _dispatch_set_qos_class_floorPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_object_t, ffi.UnsignedInt, - ffi.Int)>>('dispatch_set_qos_class_floor'); + late final _dispatch_set_qos_class_floorPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_object_t, ffi.UnsignedInt, ffi.Int) + > + >('dispatch_set_qos_class_floor'); late final _dispatch_set_qos_class_floor = _dispatch_set_qos_class_floorPtr .asFunction(); - int dispatch_wait( - ffi.Pointer object, - int timeout, - ) { - return _dispatch_wait( - object, - timeout, - ); + int dispatch_wait(ffi.Pointer object, int timeout) { + return _dispatch_wait(object, timeout); } - late final _dispatch_waitPtr = _lookup< - ffi.NativeFunction< - ffi.IntPtr Function( - ffi.Pointer, dispatch_time_t)>>('dispatch_wait'); - late final _dispatch_wait = - _dispatch_waitPtr.asFunction, int)>(); + late final _dispatch_waitPtr = + _lookup< + ffi.NativeFunction< + ffi.IntPtr Function(ffi.Pointer, dispatch_time_t) + > + >('dispatch_wait'); + late final _dispatch_wait = _dispatch_waitPtr + .asFunction, int)>(); void dispatch_notify( ffi.Pointer object, @@ -24049,56 +23705,60 @@ class NativeCupertinoHttp { ); } - late final _dispatch_notifyPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, dispatch_object_t, - dispatch_block_t)>>('dispatch_notify'); - late final _dispatch_notify = _dispatch_notifyPtr.asFunction< - void Function( - ffi.Pointer, dispatch_object_t, dispatch_block_t)>(); + late final _dispatch_notifyPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + dispatch_object_t, + dispatch_block_t, + ) + > + >('dispatch_notify'); + late final _dispatch_notify = _dispatch_notifyPtr + .asFunction< + void Function( + ffi.Pointer, + dispatch_object_t, + dispatch_block_t, + ) + >(); - void dispatch_cancel( - ffi.Pointer object, - ) { - return _dispatch_cancel( - object, - ); + void dispatch_cancel(ffi.Pointer object) { + return _dispatch_cancel(object); } late final _dispatch_cancelPtr = _lookup)>>( - 'dispatch_cancel'); - late final _dispatch_cancel = - _dispatch_cancelPtr.asFunction)>(); + 'dispatch_cancel', + ); + late final _dispatch_cancel = _dispatch_cancelPtr + .asFunction)>(); - int dispatch_testcancel( - ffi.Pointer object, - ) { - return _dispatch_testcancel( - object, - ); + int dispatch_testcancel(ffi.Pointer object) { + return _dispatch_testcancel(object); } late final _dispatch_testcancelPtr = _lookup)>>( - 'dispatch_testcancel'); - late final _dispatch_testcancel = - _dispatch_testcancelPtr.asFunction)>(); + 'dispatch_testcancel', + ); + late final _dispatch_testcancel = _dispatch_testcancelPtr + .asFunction)>(); void dispatch_debug( Dartdispatch_object_t object, ffi.Pointer message, ) { - return _dispatch_debug( - object.ref.pointer, - message, - ); + return _dispatch_debug(object.ref.pointer, message); } - late final _dispatch_debugPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - dispatch_object_t, ffi.Pointer)>>('dispatch_debug'); + late final _dispatch_debugPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_object_t, ffi.Pointer) + > + >('dispatch_debug'); late final _dispatch_debug = _dispatch_debugPtr .asFunction)>(); @@ -24107,34 +23767,30 @@ class NativeCupertinoHttp { ffi.Pointer message, va_list ap, ) { - return _dispatch_debugv( - object.ref.pointer, - message, - ap, - ); + return _dispatch_debugv(object.ref.pointer, message, ap); } - late final _dispatch_debugvPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_object_t, ffi.Pointer, - va_list)>>('dispatch_debugv'); - late final _dispatch_debugv = _dispatch_debugvPtr.asFunction< - void Function(dispatch_object_t, ffi.Pointer, va_list)>(); + late final _dispatch_debugvPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_object_t, ffi.Pointer, va_list) + > + >('dispatch_debugv'); + late final _dispatch_debugv = _dispatch_debugvPtr + .asFunction< + void Function(dispatch_object_t, ffi.Pointer, va_list) + >(); - void dispatch_async( - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, - ) { - return _dispatch_async( - queue.ref.pointer, - block.ref.pointer, - ); + void dispatch_async(Dartdispatch_queue_t queue, Dartdispatch_block_t block) { + return _dispatch_async(queue.ref.pointer, block.ref.pointer); } - late final _dispatch_asyncPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - dispatch_queue_t, dispatch_block_t)>>('dispatch_async'); + late final _dispatch_asyncPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_queue_t, dispatch_block_t) + > + >('dispatch_async'); late final _dispatch_async = _dispatch_asyncPtr .asFunction(); @@ -24143,35 +23799,38 @@ class NativeCupertinoHttp { ffi.Pointer context, dispatch_function_t work, ) { - return _dispatch_async_f( - queue.ref.pointer, - context, - work, - ); + return _dispatch_async_f(queue.ref.pointer, context, work); } - late final _dispatch_async_fPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_queue_t, ffi.Pointer, - dispatch_function_t)>>('dispatch_async_f'); - late final _dispatch_async_f = _dispatch_async_fPtr.asFunction< - void Function( - dispatch_queue_t, ffi.Pointer, dispatch_function_t)>(); + late final _dispatch_async_fPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + > + >('dispatch_async_f'); + late final _dispatch_async_f = _dispatch_async_fPtr + .asFunction< + void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + >(); - void dispatch_sync( - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, - ) { - return _dispatch_sync( - queue.ref.pointer, - block.ref.pointer, - ); + void dispatch_sync(Dartdispatch_queue_t queue, Dartdispatch_block_t block) { + return _dispatch_sync(queue.ref.pointer, block.ref.pointer); } - late final _dispatch_syncPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - dispatch_queue_t, dispatch_block_t)>>('dispatch_sync'); + late final _dispatch_syncPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_queue_t, dispatch_block_t) + > + >('dispatch_sync'); late final _dispatch_sync = _dispatch_syncPtr .asFunction(); @@ -24180,35 +23839,41 @@ class NativeCupertinoHttp { ffi.Pointer context, dispatch_function_t work, ) { - return _dispatch_sync_f( - queue.ref.pointer, - context, - work, - ); + return _dispatch_sync_f(queue.ref.pointer, context, work); } - late final _dispatch_sync_fPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_queue_t, ffi.Pointer, - dispatch_function_t)>>('dispatch_sync_f'); - late final _dispatch_sync_f = _dispatch_sync_fPtr.asFunction< - void Function( - dispatch_queue_t, ffi.Pointer, dispatch_function_t)>(); + late final _dispatch_sync_fPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + > + >('dispatch_sync_f'); + late final _dispatch_sync_f = _dispatch_sync_fPtr + .asFunction< + void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + >(); void dispatch_async_and_wait( Dartdispatch_queue_t queue, Dartdispatch_block_t block, ) { - return _dispatch_async_and_wait( - queue.ref.pointer, - block.ref.pointer, - ); + return _dispatch_async_and_wait(queue.ref.pointer, block.ref.pointer); } - late final _dispatch_async_and_waitPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - dispatch_queue_t, dispatch_block_t)>>('dispatch_async_and_wait'); + late final _dispatch_async_and_waitPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_queue_t, dispatch_block_t) + > + >('dispatch_async_and_wait'); late final _dispatch_async_and_wait = _dispatch_async_and_waitPtr .asFunction(); @@ -24217,21 +23882,27 @@ class NativeCupertinoHttp { ffi.Pointer context, dispatch_function_t work, ) { - return _dispatch_async_and_wait_f( - queue.ref.pointer, - context, - work, - ); + return _dispatch_async_and_wait_f(queue.ref.pointer, context, work); } - late final _dispatch_async_and_wait_fPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_queue_t, ffi.Pointer, - dispatch_function_t)>>('dispatch_async_and_wait_f'); - late final _dispatch_async_and_wait_f = - _dispatch_async_and_wait_fPtr.asFunction< - void Function( - dispatch_queue_t, ffi.Pointer, dispatch_function_t)>(); + late final _dispatch_async_and_wait_fPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + > + >('dispatch_async_and_wait_f'); + late final _dispatch_async_and_wait_f = _dispatch_async_and_wait_fPtr + .asFunction< + void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + >(); void dispatch_apply( int iterations, @@ -24245,22 +23916,31 @@ class NativeCupertinoHttp { ); } - late final _dispatch_applyPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Size, dispatch_queue_t, - ffi.Pointer)>>('dispatch_apply'); - late final _dispatch_apply = _dispatch_applyPtr.asFunction< - void Function(int, dispatch_queue_t, ffi.Pointer)>(); + late final _dispatch_applyPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Size, + dispatch_queue_t, + ffi.Pointer, + ) + > + >('dispatch_apply'); + late final _dispatch_apply = _dispatch_applyPtr + .asFunction< + void Function(int, dispatch_queue_t, ffi.Pointer) + >(); void dispatch_apply_f( int iterations, Dartdispatch_queue_t? queue, ffi.Pointer context, ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer context, ffi.Size iteration)>> - work, + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer context, ffi.Size iteration) + > + > + work, ) { return _dispatch_apply_f( iterations, @@ -24270,36 +23950,55 @@ class NativeCupertinoHttp { ); } - late final _dispatch_apply_fPtr = _lookup< - ffi.NativeFunction< + late final _dispatch_apply_fPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - ffi.Size, - dispatch_queue_t, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer context, - ffi.Size iteration)>>)>>('dispatch_apply_f'); - late final _dispatch_apply_f = _dispatch_apply_fPtr.asFunction< - void Function( + ffi.Size, + dispatch_queue_t, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer context, + ffi.Size iteration, + ) + > + >, + ) + > + >('dispatch_apply_f'); + late final _dispatch_apply_f = _dispatch_apply_fPtr + .asFunction< + void Function( int, dispatch_queue_t, ffi.Pointer, ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer context, ffi.Size iteration)>>)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer context, + ffi.Size iteration, + ) + > + >, + ) + >(); Dartdispatch_queue_t dispatch_get_current_queue() { - return objc.NSObject.castFromPointer(_dispatch_get_current_queue(), - retain: true, release: true); - } - + return objc.NSObject.castFromPointer( + _dispatch_get_current_queue(), + retain: true, + release: true, + ); + } + late final _dispatch_get_current_queuePtr = _lookup>( - 'dispatch_get_current_queue'); - late final _dispatch_get_current_queue = - _dispatch_get_current_queuePtr.asFunction(); + 'dispatch_get_current_queue', + ); + late final _dispatch_get_current_queue = _dispatch_get_current_queuePtr + .asFunction(); late final ffi.Pointer __dispatch_main_q = _lookup('_dispatch_main_q'); @@ -24311,24 +24010,25 @@ class NativeCupertinoHttp { int flags, ) { return objc.NSObject.castFromPointer( - _dispatch_get_global_queue( - identifier, - flags, - ), - retain: true, - release: true); + _dispatch_get_global_queue(identifier, flags), + retain: true, + release: true, + ); } - late final _dispatch_get_global_queuePtr = _lookup< - ffi.NativeFunction< - dispatch_queue_global_t Function( - ffi.IntPtr, ffi.UintPtr)>>('dispatch_get_global_queue'); + late final _dispatch_get_global_queuePtr = + _lookup< + ffi.NativeFunction< + dispatch_queue_global_t Function(ffi.IntPtr, ffi.UintPtr) + > + >('dispatch_get_global_queue'); late final _dispatch_get_global_queue = _dispatch_get_global_queuePtr .asFunction(); late final ffi.Pointer - __dispatch_queue_attr_concurrent = - _lookup('_dispatch_queue_attr_concurrent'); + __dispatch_queue_attr_concurrent = _lookup( + '_dispatch_queue_attr_concurrent', + ); ffi.Pointer get _dispatch_queue_attr_concurrent => __dispatch_queue_attr_concurrent; @@ -24337,17 +24037,20 @@ class NativeCupertinoHttp { Dartdispatch_queue_attr_t? attr, ) { return objc.NSObject.castFromPointer( - _dispatch_queue_attr_make_initially_inactive( - attr?.ref.pointer ?? ffi.nullptr, - ), - retain: true, - release: true); + _dispatch_queue_attr_make_initially_inactive( + attr?.ref.pointer ?? ffi.nullptr, + ), + retain: true, + release: true, + ); } - late final _dispatch_queue_attr_make_initially_inactivePtr = _lookup< - ffi.NativeFunction< - dispatch_queue_attr_t Function(dispatch_queue_attr_t)>>( - 'dispatch_queue_attr_make_initially_inactive'); + late final _dispatch_queue_attr_make_initially_inactivePtr = + _lookup< + ffi.NativeFunction< + dispatch_queue_attr_t Function(dispatch_queue_attr_t) + > + >('dispatch_queue_attr_make_initially_inactive'); late final _dispatch_queue_attr_make_initially_inactive = _dispatch_queue_attr_make_initially_inactivePtr .asFunction(); @@ -24357,22 +24060,29 @@ class NativeCupertinoHttp { dispatch_autorelease_frequency_t frequency, ) { return objc.NSObject.castFromPointer( - _dispatch_queue_attr_make_with_autorelease_frequency( - attr?.ref.pointer ?? ffi.nullptr, - frequency.value, - ), - retain: true, - release: true); + _dispatch_queue_attr_make_with_autorelease_frequency( + attr?.ref.pointer ?? ffi.nullptr, + frequency.value, + ), + retain: true, + release: true, + ); } - late final _dispatch_queue_attr_make_with_autorelease_frequencyPtr = _lookup< - ffi.NativeFunction< - dispatch_queue_attr_t Function( - dispatch_queue_attr_t, ffi.UnsignedLong)>>( - 'dispatch_queue_attr_make_with_autorelease_frequency'); + late final _dispatch_queue_attr_make_with_autorelease_frequencyPtr = + _lookup< + ffi.NativeFunction< + dispatch_queue_attr_t Function( + dispatch_queue_attr_t, + ffi.UnsignedLong, + ) + > + >('dispatch_queue_attr_make_with_autorelease_frequency'); late final _dispatch_queue_attr_make_with_autorelease_frequency = - _dispatch_queue_attr_make_with_autorelease_frequencyPtr.asFunction< - dispatch_queue_attr_t Function(dispatch_queue_attr_t, int)>(); + _dispatch_queue_attr_make_with_autorelease_frequencyPtr + .asFunction< + dispatch_queue_attr_t Function(dispatch_queue_attr_t, int) + >(); Dartdispatch_queue_attr_t dispatch_queue_attr_make_with_qos_class( Dartdispatch_queue_attr_t? attr, @@ -24380,22 +24090,31 @@ class NativeCupertinoHttp { int relative_priority, ) { return objc.NSObject.castFromPointer( - _dispatch_queue_attr_make_with_qos_class( - attr?.ref.pointer ?? ffi.nullptr, - qos_class.value, - relative_priority, - ), - retain: true, - release: true); + _dispatch_queue_attr_make_with_qos_class( + attr?.ref.pointer ?? ffi.nullptr, + qos_class.value, + relative_priority, + ), + retain: true, + release: true, + ); } - late final _dispatch_queue_attr_make_with_qos_classPtr = _lookup< - ffi.NativeFunction< - dispatch_queue_attr_t Function(dispatch_queue_attr_t, ffi.UnsignedInt, - ffi.Int)>>('dispatch_queue_attr_make_with_qos_class'); + late final _dispatch_queue_attr_make_with_qos_classPtr = + _lookup< + ffi.NativeFunction< + dispatch_queue_attr_t Function( + dispatch_queue_attr_t, + ffi.UnsignedInt, + ffi.Int, + ) + > + >('dispatch_queue_attr_make_with_qos_class'); late final _dispatch_queue_attr_make_with_qos_class = - _dispatch_queue_attr_make_with_qos_classPtr.asFunction< - dispatch_queue_attr_t Function(dispatch_queue_attr_t, int, int)>(); + _dispatch_queue_attr_make_with_qos_classPtr + .asFunction< + dispatch_queue_attr_t Function(dispatch_queue_attr_t, int, int) + >(); Dartdispatch_queue_t dispatch_queue_create_with_target( ffi.Pointer label, @@ -24403,58 +24122,69 @@ class NativeCupertinoHttp { Dartdispatch_queue_t? target, ) { return objc.NSObject.castFromPointer( - _dispatch_queue_create_with_target( - label, - attr?.ref.pointer ?? ffi.nullptr, - target?.ref.pointer ?? ffi.nullptr, - ), - retain: false, - release: true); + _dispatch_queue_create_with_target( + label, + attr?.ref.pointer ?? ffi.nullptr, + target?.ref.pointer ?? ffi.nullptr, + ), + retain: false, + release: true, + ); } - late final _dispatch_queue_create_with_targetPtr = _lookup< - ffi.NativeFunction< + late final _dispatch_queue_create_with_targetPtr = + _lookup< + ffi.NativeFunction< dispatch_queue_t Function( + ffi.Pointer, + dispatch_queue_attr_t, + dispatch_queue_t, + ) + > + >('dispatch_queue_create_with_target'); + late final _dispatch_queue_create_with_target = + _dispatch_queue_create_with_targetPtr + .asFunction< + dispatch_queue_t Function( ffi.Pointer, dispatch_queue_attr_t, - dispatch_queue_t)>>('dispatch_queue_create_with_target'); - late final _dispatch_queue_create_with_target = - _dispatch_queue_create_with_targetPtr.asFunction< - dispatch_queue_t Function(ffi.Pointer, - dispatch_queue_attr_t, dispatch_queue_t)>(); + dispatch_queue_t, + ) + >(); Dartdispatch_queue_t dispatch_queue_create( ffi.Pointer label, Dartdispatch_queue_attr_t? attr, ) { return objc.NSObject.castFromPointer( - _dispatch_queue_create( - label, - attr?.ref.pointer ?? ffi.nullptr, - ), - retain: false, - release: true); + _dispatch_queue_create(label, attr?.ref.pointer ?? ffi.nullptr), + retain: false, + release: true, + ); } - late final _dispatch_queue_createPtr = _lookup< - ffi.NativeFunction< - dispatch_queue_t Function(ffi.Pointer, - dispatch_queue_attr_t)>>('dispatch_queue_create'); - late final _dispatch_queue_create = _dispatch_queue_createPtr.asFunction< - dispatch_queue_t Function( - ffi.Pointer, dispatch_queue_attr_t)>(); + late final _dispatch_queue_createPtr = + _lookup< + ffi.NativeFunction< + dispatch_queue_t Function( + ffi.Pointer, + dispatch_queue_attr_t, + ) + > + >('dispatch_queue_create'); + late final _dispatch_queue_create = _dispatch_queue_createPtr + .asFunction< + dispatch_queue_t Function(ffi.Pointer, dispatch_queue_attr_t) + >(); - ffi.Pointer dispatch_queue_get_label( - Dartdispatch_queue_t? queue, - ) { - return _dispatch_queue_get_label( - queue?.ref.pointer ?? ffi.nullptr, - ); + ffi.Pointer dispatch_queue_get_label(Dartdispatch_queue_t? queue) { + return _dispatch_queue_get_label(queue?.ref.pointer ?? ffi.nullptr); } - late final _dispatch_queue_get_labelPtr = _lookup< - ffi.NativeFunction Function(dispatch_queue_t)>>( - 'dispatch_queue_get_label'); + late final _dispatch_queue_get_labelPtr = + _lookup< + ffi.NativeFunction Function(dispatch_queue_t)> + >('dispatch_queue_get_label'); late final _dispatch_queue_get_label = _dispatch_queue_get_labelPtr .asFunction Function(dispatch_queue_t)>(); @@ -24462,16 +24192,17 @@ class NativeCupertinoHttp { Dartdispatch_queue_t queue, ffi.Pointer relative_priority_ptr, ) { - return qos_class_t.fromValue(_dispatch_queue_get_qos_class( - queue.ref.pointer, - relative_priority_ptr, - )); + return qos_class_t.fromValue( + _dispatch_queue_get_qos_class(queue.ref.pointer, relative_priority_ptr), + ); } - late final _dispatch_queue_get_qos_classPtr = _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(dispatch_queue_t, - ffi.Pointer)>>('dispatch_queue_get_qos_class'); + late final _dispatch_queue_get_qos_classPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(dispatch_queue_t, ffi.Pointer) + > + >('dispatch_queue_get_qos_class'); late final _dispatch_queue_get_qos_class = _dispatch_queue_get_qos_classPtr .asFunction)>(); @@ -24485,10 +24216,12 @@ class NativeCupertinoHttp { ); } - late final _dispatch_set_target_queuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_object_t, - dispatch_queue_t)>>('dispatch_set_target_queue'); + late final _dispatch_set_target_queuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_object_t, dispatch_queue_t) + > + >('dispatch_set_target_queue'); late final _dispatch_set_target_queue = _dispatch_set_target_queuePtr .asFunction(); @@ -24505,17 +24238,15 @@ class NativeCupertinoHttp { Dartdispatch_queue_t queue, Dartdispatch_block_t block, ) { - return _dispatch_after( - when, - queue.ref.pointer, - block.ref.pointer, - ); + return _dispatch_after(when, queue.ref.pointer, block.ref.pointer); } - late final _dispatch_afterPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_time_t, dispatch_queue_t, - dispatch_block_t)>>('dispatch_after'); + late final _dispatch_afterPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_time_t, dispatch_queue_t, dispatch_block_t) + > + >('dispatch_after'); late final _dispatch_after = _dispatch_afterPtr .asFunction(); @@ -24525,36 +24256,43 @@ class NativeCupertinoHttp { ffi.Pointer context, dispatch_function_t work, ) { - return _dispatch_after_f( - when, - queue.ref.pointer, - context, - work, - ); + return _dispatch_after_f(when, queue.ref.pointer, context, work); } - late final _dispatch_after_fPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_time_t, dispatch_queue_t, - ffi.Pointer, dispatch_function_t)>>('dispatch_after_f'); - late final _dispatch_after_f = _dispatch_after_fPtr.asFunction< - void Function( - int, dispatch_queue_t, ffi.Pointer, dispatch_function_t)>(); + late final _dispatch_after_fPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_time_t, + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + > + >('dispatch_after_f'); + late final _dispatch_after_f = _dispatch_after_fPtr + .asFunction< + void Function( + int, + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + >(); void dispatch_barrier_async( Dartdispatch_queue_t queue, Dartdispatch_block_t block, ) { - return _dispatch_barrier_async( - queue.ref.pointer, - block.ref.pointer, - ); + return _dispatch_barrier_async(queue.ref.pointer, block.ref.pointer); } - late final _dispatch_barrier_asyncPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - dispatch_queue_t, dispatch_block_t)>>('dispatch_barrier_async'); + late final _dispatch_barrier_asyncPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_queue_t, dispatch_block_t) + > + >('dispatch_barrier_async'); late final _dispatch_barrier_async = _dispatch_barrier_asyncPtr .asFunction(); @@ -24563,36 +24301,41 @@ class NativeCupertinoHttp { ffi.Pointer context, dispatch_function_t work, ) { - return _dispatch_barrier_async_f( - queue.ref.pointer, - context, - work, - ); + return _dispatch_barrier_async_f(queue.ref.pointer, context, work); } - late final _dispatch_barrier_async_fPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_queue_t, ffi.Pointer, - dispatch_function_t)>>('dispatch_barrier_async_f'); - late final _dispatch_barrier_async_f = - _dispatch_barrier_async_fPtr.asFunction< - void Function( - dispatch_queue_t, ffi.Pointer, dispatch_function_t)>(); + late final _dispatch_barrier_async_fPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + > + >('dispatch_barrier_async_f'); + late final _dispatch_barrier_async_f = _dispatch_barrier_async_fPtr + .asFunction< + void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + >(); void dispatch_barrier_sync( Dartdispatch_queue_t queue, Dartdispatch_block_t block, ) { - return _dispatch_barrier_sync( - queue.ref.pointer, - block.ref.pointer, - ); + return _dispatch_barrier_sync(queue.ref.pointer, block.ref.pointer); } - late final _dispatch_barrier_syncPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - dispatch_queue_t, dispatch_block_t)>>('dispatch_barrier_sync'); + late final _dispatch_barrier_syncPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_queue_t, dispatch_block_t) + > + >('dispatch_barrier_sync'); late final _dispatch_barrier_sync = _dispatch_barrier_syncPtr .asFunction(); @@ -24601,20 +24344,27 @@ class NativeCupertinoHttp { ffi.Pointer context, dispatch_function_t work, ) { - return _dispatch_barrier_sync_f( - queue.ref.pointer, - context, - work, - ); + return _dispatch_barrier_sync_f(queue.ref.pointer, context, work); } - late final _dispatch_barrier_sync_fPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_queue_t, ffi.Pointer, - dispatch_function_t)>>('dispatch_barrier_sync_f'); - late final _dispatch_barrier_sync_f = _dispatch_barrier_sync_fPtr.asFunction< - void Function( - dispatch_queue_t, ffi.Pointer, dispatch_function_t)>(); + late final _dispatch_barrier_sync_fPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + > + >('dispatch_barrier_sync_f'); + late final _dispatch_barrier_sync_f = _dispatch_barrier_sync_fPtr + .asFunction< + void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + >(); void dispatch_barrier_async_and_wait( Dartdispatch_queue_t queue, @@ -24626,10 +24376,12 @@ class NativeCupertinoHttp { ); } - late final _dispatch_barrier_async_and_waitPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_queue_t, - dispatch_block_t)>>('dispatch_barrier_async_and_wait'); + late final _dispatch_barrier_async_and_waitPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_queue_t, dispatch_block_t) + > + >('dispatch_barrier_async_and_wait'); late final _dispatch_barrier_async_and_wait = _dispatch_barrier_async_and_waitPtr .asFunction(); @@ -24639,21 +24391,28 @@ class NativeCupertinoHttp { ffi.Pointer context, dispatch_function_t work, ) { - return _dispatch_barrier_async_and_wait_f( - queue.ref.pointer, - context, - work, - ); + return _dispatch_barrier_async_and_wait_f(queue.ref.pointer, context, work); } - late final _dispatch_barrier_async_and_wait_fPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_queue_t, ffi.Pointer, - dispatch_function_t)>>('dispatch_barrier_async_and_wait_f'); + late final _dispatch_barrier_async_and_wait_fPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + > + >('dispatch_barrier_async_and_wait_f'); late final _dispatch_barrier_async_and_wait_f = - _dispatch_barrier_async_and_wait_fPtr.asFunction< - void Function( - dispatch_queue_t, ffi.Pointer, dispatch_function_t)>(); + _dispatch_barrier_async_and_wait_fPtr + .asFunction< + void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + >(); void dispatch_queue_set_specific( Dartdispatch_queue_t queue, @@ -24669,125 +24428,122 @@ class NativeCupertinoHttp { ); } - late final _dispatch_queue_set_specificPtr = _lookup< - ffi.NativeFunction< + late final _dispatch_queue_set_specificPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - ffi.Pointer, - dispatch_function_t)>>('dispatch_queue_set_specific'); - late final _dispatch_queue_set_specific = - _dispatch_queue_set_specificPtr.asFunction< - void Function(dispatch_queue_t, ffi.Pointer, - ffi.Pointer, dispatch_function_t)>(); + dispatch_queue_t, + ffi.Pointer, + ffi.Pointer, + dispatch_function_t, + ) + > + >('dispatch_queue_set_specific'); + late final _dispatch_queue_set_specific = _dispatch_queue_set_specificPtr + .asFunction< + void Function( + dispatch_queue_t, + ffi.Pointer, + ffi.Pointer, + dispatch_function_t, + ) + >(); ffi.Pointer dispatch_queue_get_specific( Dartdispatch_queue_t queue, ffi.Pointer key, ) { - return _dispatch_queue_get_specific( - queue.ref.pointer, - key, - ); + return _dispatch_queue_get_specific(queue.ref.pointer, key); } - late final _dispatch_queue_get_specificPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(dispatch_queue_t, - ffi.Pointer)>>('dispatch_queue_get_specific'); - late final _dispatch_queue_get_specific = - _dispatch_queue_get_specificPtr.asFunction< + late final _dispatch_queue_get_specificPtr = + _lookup< + ffi.NativeFunction< ffi.Pointer Function( - dispatch_queue_t, ffi.Pointer)>(); + dispatch_queue_t, + ffi.Pointer, + ) + > + >('dispatch_queue_get_specific'); + late final _dispatch_queue_get_specific = _dispatch_queue_get_specificPtr + .asFunction< + ffi.Pointer Function(dispatch_queue_t, ffi.Pointer) + >(); - ffi.Pointer dispatch_get_specific( - ffi.Pointer key, - ) { - return _dispatch_get_specific( - key, - ); + ffi.Pointer dispatch_get_specific(ffi.Pointer key) { + return _dispatch_get_specific(key); } - late final _dispatch_get_specificPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('dispatch_get_specific'); + late final _dispatch_get_specificPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('dispatch_get_specific'); late final _dispatch_get_specific = _dispatch_get_specificPtr .asFunction Function(ffi.Pointer)>(); - void dispatch_assert_queue( - Dartdispatch_queue_t queue, - ) { - return _dispatch_assert_queue( - queue.ref.pointer, - ); + void dispatch_assert_queue(Dartdispatch_queue_t queue) { + return _dispatch_assert_queue(queue.ref.pointer); } late final _dispatch_assert_queuePtr = _lookup>( - 'dispatch_assert_queue'); - late final _dispatch_assert_queue = - _dispatch_assert_queuePtr.asFunction(); + 'dispatch_assert_queue', + ); + late final _dispatch_assert_queue = _dispatch_assert_queuePtr + .asFunction(); - void dispatch_assert_queue_barrier( - Dartdispatch_queue_t queue, - ) { - return _dispatch_assert_queue_barrier( - queue.ref.pointer, - ); + void dispatch_assert_queue_barrier(Dartdispatch_queue_t queue) { + return _dispatch_assert_queue_barrier(queue.ref.pointer); } late final _dispatch_assert_queue_barrierPtr = _lookup>( - 'dispatch_assert_queue_barrier'); + 'dispatch_assert_queue_barrier', + ); late final _dispatch_assert_queue_barrier = _dispatch_assert_queue_barrierPtr .asFunction(); - void dispatch_assert_queue_not( - Dartdispatch_queue_t queue, - ) { - return _dispatch_assert_queue_not( - queue.ref.pointer, - ); + void dispatch_assert_queue_not(Dartdispatch_queue_t queue) { + return _dispatch_assert_queue_not(queue.ref.pointer); } late final _dispatch_assert_queue_notPtr = _lookup>( - 'dispatch_assert_queue_not'); + 'dispatch_assert_queue_not', + ); late final _dispatch_assert_queue_not = _dispatch_assert_queue_notPtr .asFunction(); - int dispatch_allow_send_signals( - int preserve_signum, - ) { - return _dispatch_allow_send_signals( - preserve_signum, - ); + int dispatch_allow_send_signals(int preserve_signum) { + return _dispatch_allow_send_signals(preserve_signum); } late final _dispatch_allow_send_signalsPtr = _lookup>( - 'dispatch_allow_send_signals'); - late final _dispatch_allow_send_signals = - _dispatch_allow_send_signalsPtr.asFunction(); + 'dispatch_allow_send_signals', + ); + late final _dispatch_allow_send_signals = _dispatch_allow_send_signalsPtr + .asFunction(); Dartdispatch_block_t dispatch_block_create( dispatch_block_flags_t flags, Dartdispatch_block_t block, ) { return ObjCBlock_ffiVoid.castFromPointer( - _dispatch_block_create( - flags.value, - block.ref.pointer, - ), - retain: false, - release: true); + _dispatch_block_create(flags.value, block.ref.pointer), + retain: false, + release: true, + ); } - late final _dispatch_block_createPtr = _lookup< - ffi.NativeFunction< - dispatch_block_t Function( - ffi.UnsignedLong, dispatch_block_t)>>('dispatch_block_create'); + late final _dispatch_block_createPtr = + _lookup< + ffi.NativeFunction< + dispatch_block_t Function(ffi.UnsignedLong, dispatch_block_t) + > + >('dispatch_block_create'); late final _dispatch_block_create = _dispatch_block_createPtr .asFunction(); @@ -24798,38 +24554,47 @@ class NativeCupertinoHttp { Dartdispatch_block_t block, ) { return ObjCBlock_ffiVoid.castFromPointer( - _dispatch_block_create_with_qos_class( - flags.value, - qos_class.value, - relative_priority, - block.ref.pointer, - ), - retain: false, - release: true); + _dispatch_block_create_with_qos_class( + flags.value, + qos_class.value, + relative_priority, + block.ref.pointer, + ), + retain: false, + release: true, + ); } - late final _dispatch_block_create_with_qos_classPtr = _lookup< - ffi.NativeFunction< - dispatch_block_t Function(ffi.UnsignedLong, ffi.UnsignedInt, ffi.Int, - dispatch_block_t)>>('dispatch_block_create_with_qos_class'); + late final _dispatch_block_create_with_qos_classPtr = + _lookup< + ffi.NativeFunction< + dispatch_block_t Function( + ffi.UnsignedLong, + ffi.UnsignedInt, + ffi.Int, + dispatch_block_t, + ) + > + >('dispatch_block_create_with_qos_class'); late final _dispatch_block_create_with_qos_class = - _dispatch_block_create_with_qos_classPtr.asFunction< - dispatch_block_t Function(int, int, int, dispatch_block_t)>(); + _dispatch_block_create_with_qos_classPtr + .asFunction< + dispatch_block_t Function(int, int, int, dispatch_block_t) + >(); void dispatch_block_perform( dispatch_block_flags_t flags, Dartdispatch_block_t block, ) { - return _dispatch_block_perform( - flags.value, - block.ref.pointer, - ); + return _dispatch_block_perform(flags.value, block.ref.pointer); } - late final _dispatch_block_performPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.UnsignedLong, dispatch_block_t)>>('dispatch_block_perform'); + late final _dispatch_block_performPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.UnsignedLong, dispatch_block_t) + > + >('dispatch_block_perform'); late final _dispatch_block_perform = _dispatch_block_performPtr .asFunction(); @@ -24837,18 +24602,17 @@ class NativeCupertinoHttp { Dartdispatch_block_t block, Dartdispatch_time_t timeout, ) { - return _dispatch_block_wait( - block.ref.pointer, - timeout, - ); + return _dispatch_block_wait(block.ref.pointer, timeout); } - late final _dispatch_block_waitPtr = _lookup< - ffi.NativeFunction< - ffi.IntPtr Function( - dispatch_block_t, dispatch_time_t)>>('dispatch_block_wait'); - late final _dispatch_block_wait = - _dispatch_block_waitPtr.asFunction(); + late final _dispatch_block_waitPtr = + _lookup< + ffi.NativeFunction< + ffi.IntPtr Function(dispatch_block_t, dispatch_time_t) + > + >('dispatch_block_wait'); + late final _dispatch_block_wait = _dispatch_block_waitPtr + .asFunction(); void dispatch_block_notify( Dartdispatch_block_t block, @@ -24862,38 +24626,40 @@ class NativeCupertinoHttp { ); } - late final _dispatch_block_notifyPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_block_t, dispatch_queue_t, - dispatch_block_t)>>('dispatch_block_notify'); - late final _dispatch_block_notify = _dispatch_block_notifyPtr.asFunction< - void Function(dispatch_block_t, dispatch_queue_t, dispatch_block_t)>(); + late final _dispatch_block_notifyPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_block_t, + dispatch_queue_t, + dispatch_block_t, + ) + > + >('dispatch_block_notify'); + late final _dispatch_block_notify = _dispatch_block_notifyPtr + .asFunction< + void Function(dispatch_block_t, dispatch_queue_t, dispatch_block_t) + >(); - void dispatch_block_cancel( - Dartdispatch_block_t block, - ) { - return _dispatch_block_cancel( - block.ref.pointer, - ); + void dispatch_block_cancel(Dartdispatch_block_t block) { + return _dispatch_block_cancel(block.ref.pointer); } late final _dispatch_block_cancelPtr = _lookup>( - 'dispatch_block_cancel'); - late final _dispatch_block_cancel = - _dispatch_block_cancelPtr.asFunction(); + 'dispatch_block_cancel', + ); + late final _dispatch_block_cancel = _dispatch_block_cancelPtr + .asFunction(); - int dispatch_block_testcancel( - Dartdispatch_block_t block, - ) { - return _dispatch_block_testcancel( - block.ref.pointer, - ); + int dispatch_block_testcancel(Dartdispatch_block_t block) { + return _dispatch_block_testcancel(block.ref.pointer); } late final _dispatch_block_testcancelPtr = _lookup>( - 'dispatch_block_testcancel'); + 'dispatch_block_testcancel', + ); late final _dispatch_block_testcancel = _dispatch_block_testcancelPtr .asFunction(); @@ -24931,21 +24697,36 @@ class NativeCupertinoHttp { ); } - late final _mach_msg_overwritePtr = _lookup< - ffi.NativeFunction< + late final _mach_msg_overwritePtr = + _lookup< + ffi.NativeFunction< mach_msg_return_t Function( - ffi.Pointer, - mach_msg_option_t, - mach_msg_size_t, - mach_msg_size_t, - mach_port_name_t, - mach_msg_timeout_t, - mach_port_name_t, - ffi.Pointer, - mach_msg_size_t)>>('mach_msg_overwrite'); - late final _mach_msg_overwrite = _mach_msg_overwritePtr.asFunction< - int Function(ffi.Pointer, int, int, int, int, int, int, - ffi.Pointer, int)>(); + ffi.Pointer, + mach_msg_option_t, + mach_msg_size_t, + mach_msg_size_t, + mach_port_name_t, + mach_msg_timeout_t, + mach_port_name_t, + ffi.Pointer, + mach_msg_size_t, + ) + > + >('mach_msg_overwrite'); + late final _mach_msg_overwrite = _mach_msg_overwritePtr + .asFunction< + int Function( + ffi.Pointer, + int, + int, + int, + int, + int, + int, + ffi.Pointer, + int, + ) + >(); int mach_msg( ffi.Pointer msg, @@ -24967,76 +24748,92 @@ class NativeCupertinoHttp { ); } - late final _mach_msgPtr = _lookup< - ffi.NativeFunction< + late final _mach_msgPtr = + _lookup< + ffi.NativeFunction< mach_msg_return_t Function( - ffi.Pointer, - mach_msg_option_t, - mach_msg_size_t, - mach_msg_size_t, - mach_port_name_t, - mach_msg_timeout_t, - mach_port_name_t)>>('mach_msg'); - late final _mach_msg = _mach_msgPtr.asFunction< - int Function( - ffi.Pointer, int, int, int, int, int, int)>(); + ffi.Pointer, + mach_msg_option_t, + mach_msg_size_t, + mach_msg_size_t, + mach_port_name_t, + mach_msg_timeout_t, + mach_port_name_t, + ) + > + >('mach_msg'); + late final _mach_msg = _mach_msgPtr + .asFunction< + int Function( + ffi.Pointer, + int, + int, + int, + int, + int, + int, + ) + >(); - int mach_voucher_deallocate( - int voucher, - ) { - return _mach_voucher_deallocate( - voucher, - ); + int mach_voucher_deallocate(int voucher) { + return _mach_voucher_deallocate(voucher); } late final _mach_voucher_deallocatePtr = _lookup>( - 'mach_voucher_deallocate'); - late final _mach_voucher_deallocate = - _mach_voucher_deallocatePtr.asFunction(); + 'mach_voucher_deallocate', + ); + late final _mach_voucher_deallocate = _mach_voucher_deallocatePtr + .asFunction(); late final ffi.Pointer - __dispatch_source_type_data_add = - _lookup('_dispatch_source_type_data_add'); + __dispatch_source_type_data_add = _lookup( + '_dispatch_source_type_data_add', + ); ffi.Pointer get _dispatch_source_type_data_add => __dispatch_source_type_data_add; late final ffi.Pointer - __dispatch_source_type_data_or = - _lookup('_dispatch_source_type_data_or'); + __dispatch_source_type_data_or = _lookup( + '_dispatch_source_type_data_or', + ); ffi.Pointer get _dispatch_source_type_data_or => __dispatch_source_type_data_or; late final ffi.Pointer - __dispatch_source_type_data_replace = - _lookup('_dispatch_source_type_data_replace'); + __dispatch_source_type_data_replace = _lookup( + '_dispatch_source_type_data_replace', + ); ffi.Pointer get _dispatch_source_type_data_replace => __dispatch_source_type_data_replace; late final ffi.Pointer - __dispatch_source_type_mach_send = - _lookup('_dispatch_source_type_mach_send'); + __dispatch_source_type_mach_send = _lookup( + '_dispatch_source_type_mach_send', + ); ffi.Pointer get _dispatch_source_type_mach_send => __dispatch_source_type_mach_send; late final ffi.Pointer - __dispatch_source_type_mach_recv = - _lookup('_dispatch_source_type_mach_recv'); + __dispatch_source_type_mach_recv = _lookup( + '_dispatch_source_type_mach_recv', + ); ffi.Pointer get _dispatch_source_type_mach_recv => __dispatch_source_type_mach_recv; late final ffi.Pointer - __dispatch_source_type_memorypressure = - _lookup('_dispatch_source_type_memorypressure'); + __dispatch_source_type_memorypressure = _lookup( + '_dispatch_source_type_memorypressure', + ); ffi.Pointer - get _dispatch_source_type_memorypressure => - __dispatch_source_type_memorypressure; + get _dispatch_source_type_memorypressure => + __dispatch_source_type_memorypressure; late final ffi.Pointer __dispatch_source_type_proc = _lookup('_dispatch_source_type_proc'); @@ -25081,23 +24878,37 @@ class NativeCupertinoHttp { Dartdispatch_queue_t? queue, ) { return objc.NSObject.castFromPointer( - _dispatch_source_create( - type, - handle, - mask, - queue?.ref.pointer ?? ffi.nullptr, - ), - retain: false, - release: true); + _dispatch_source_create( + type, + handle, + mask, + queue?.ref.pointer ?? ffi.nullptr, + ), + retain: false, + release: true, + ); } - late final _dispatch_source_createPtr = _lookup< - ffi.NativeFunction< - dispatch_source_t Function(dispatch_source_type_t, ffi.UintPtr, - ffi.UintPtr, dispatch_queue_t)>>('dispatch_source_create'); - late final _dispatch_source_create = _dispatch_source_createPtr.asFunction< - dispatch_source_t Function( - dispatch_source_type_t, int, int, dispatch_queue_t)>(); + late final _dispatch_source_createPtr = + _lookup< + ffi.NativeFunction< + dispatch_source_t Function( + dispatch_source_type_t, + ffi.UintPtr, + ffi.UintPtr, + dispatch_queue_t, + ) + > + >('dispatch_source_create'); + late final _dispatch_source_create = _dispatch_source_createPtr + .asFunction< + dispatch_source_t Function( + dispatch_source_type_t, + int, + int, + dispatch_queue_t, + ) + >(); void dispatch_source_set_event_handler( Dartdispatch_source_t source, @@ -25109,10 +24920,12 @@ class NativeCupertinoHttp { ); } - late final _dispatch_source_set_event_handlerPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_source_t, - dispatch_block_t)>>('dispatch_source_set_event_handler'); + late final _dispatch_source_set_event_handlerPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_source_t, dispatch_block_t) + > + >('dispatch_source_set_event_handler'); late final _dispatch_source_set_event_handler = _dispatch_source_set_event_handlerPtr .asFunction(); @@ -25121,16 +24934,15 @@ class NativeCupertinoHttp { Dartdispatch_source_t source, dispatch_function_t handler, ) { - return _dispatch_source_set_event_handler_f( - source.ref.pointer, - handler, - ); + return _dispatch_source_set_event_handler_f(source.ref.pointer, handler); } - late final _dispatch_source_set_event_handler_fPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_source_t, - dispatch_function_t)>>('dispatch_source_set_event_handler_f'); + late final _dispatch_source_set_event_handler_fPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_source_t, dispatch_function_t) + > + >('dispatch_source_set_event_handler_f'); late final _dispatch_source_set_event_handler_f = _dispatch_source_set_event_handler_fPtr .asFunction(); @@ -25145,10 +24957,12 @@ class NativeCupertinoHttp { ); } - late final _dispatch_source_set_cancel_handlerPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_source_t, - dispatch_block_t)>>('dispatch_source_set_cancel_handler'); + late final _dispatch_source_set_cancel_handlerPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_source_t, dispatch_block_t) + > + >('dispatch_source_set_cancel_handler'); late final _dispatch_source_set_cancel_handler = _dispatch_source_set_cancel_handlerPtr .asFunction(); @@ -25157,104 +24971,82 @@ class NativeCupertinoHttp { Dartdispatch_source_t source, dispatch_function_t handler, ) { - return _dispatch_source_set_cancel_handler_f( - source.ref.pointer, - handler, - ); + return _dispatch_source_set_cancel_handler_f(source.ref.pointer, handler); } - late final _dispatch_source_set_cancel_handler_fPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_source_t, - dispatch_function_t)>>('dispatch_source_set_cancel_handler_f'); + late final _dispatch_source_set_cancel_handler_fPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_source_t, dispatch_function_t) + > + >('dispatch_source_set_cancel_handler_f'); late final _dispatch_source_set_cancel_handler_f = _dispatch_source_set_cancel_handler_fPtr .asFunction(); - void dispatch_source_cancel( - Dartdispatch_source_t source, - ) { - return _dispatch_source_cancel( - source.ref.pointer, - ); + void dispatch_source_cancel(Dartdispatch_source_t source) { + return _dispatch_source_cancel(source.ref.pointer); } late final _dispatch_source_cancelPtr = _lookup>( - 'dispatch_source_cancel'); - late final _dispatch_source_cancel = - _dispatch_source_cancelPtr.asFunction(); + 'dispatch_source_cancel', + ); + late final _dispatch_source_cancel = _dispatch_source_cancelPtr + .asFunction(); - int dispatch_source_testcancel( - Dartdispatch_source_t source, - ) { - return _dispatch_source_testcancel( - source.ref.pointer, - ); + int dispatch_source_testcancel(Dartdispatch_source_t source) { + return _dispatch_source_testcancel(source.ref.pointer); } late final _dispatch_source_testcancelPtr = _lookup>( - 'dispatch_source_testcancel'); + 'dispatch_source_testcancel', + ); late final _dispatch_source_testcancel = _dispatch_source_testcancelPtr .asFunction(); - int dispatch_source_get_handle( - Dartdispatch_source_t source, - ) { - return _dispatch_source_get_handle( - source.ref.pointer, - ); + int dispatch_source_get_handle(Dartdispatch_source_t source) { + return _dispatch_source_get_handle(source.ref.pointer); } late final _dispatch_source_get_handlePtr = _lookup>( - 'dispatch_source_get_handle'); + 'dispatch_source_get_handle', + ); late final _dispatch_source_get_handle = _dispatch_source_get_handlePtr .asFunction(); - int dispatch_source_get_mask( - Dartdispatch_source_t source, - ) { - return _dispatch_source_get_mask( - source.ref.pointer, - ); + int dispatch_source_get_mask(Dartdispatch_source_t source) { + return _dispatch_source_get_mask(source.ref.pointer); } late final _dispatch_source_get_maskPtr = _lookup>( - 'dispatch_source_get_mask'); + 'dispatch_source_get_mask', + ); late final _dispatch_source_get_mask = _dispatch_source_get_maskPtr .asFunction(); - int dispatch_source_get_data( - Dartdispatch_source_t source, - ) { - return _dispatch_source_get_data( - source.ref.pointer, - ); + int dispatch_source_get_data(Dartdispatch_source_t source) { + return _dispatch_source_get_data(source.ref.pointer); } late final _dispatch_source_get_dataPtr = _lookup>( - 'dispatch_source_get_data'); + 'dispatch_source_get_data', + ); late final _dispatch_source_get_data = _dispatch_source_get_dataPtr .asFunction(); - void dispatch_source_merge_data( - Dartdispatch_source_t source, - int value, - ) { - return _dispatch_source_merge_data( - source.ref.pointer, - value, - ); + void dispatch_source_merge_data(Dartdispatch_source_t source, int value) { + return _dispatch_source_merge_data(source.ref.pointer, value); } - late final _dispatch_source_merge_dataPtr = _lookup< - ffi - .NativeFunction>( - 'dispatch_source_merge_data'); + late final _dispatch_source_merge_dataPtr = + _lookup< + ffi.NativeFunction + >('dispatch_source_merge_data'); late final _dispatch_source_merge_data = _dispatch_source_merge_dataPtr .asFunction(); @@ -25272,10 +25064,17 @@ class NativeCupertinoHttp { ); } - late final _dispatch_source_set_timerPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_source_t, dispatch_time_t, ffi.Uint64, - ffi.Uint64)>>('dispatch_source_set_timer'); + late final _dispatch_source_set_timerPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_source_t, + dispatch_time_t, + ffi.Uint64, + ffi.Uint64, + ) + > + >('dispatch_source_set_timer'); late final _dispatch_source_set_timer = _dispatch_source_set_timerPtr .asFunction(); @@ -25289,10 +25088,12 @@ class NativeCupertinoHttp { ); } - late final _dispatch_source_set_registration_handlerPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_source_t, - dispatch_block_t)>>('dispatch_source_set_registration_handler'); + late final _dispatch_source_set_registration_handlerPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_source_t, dispatch_block_t) + > + >('dispatch_source_set_registration_handler'); late final _dispatch_source_set_registration_handler = _dispatch_source_set_registration_handlerPtr .asFunction(); @@ -25307,24 +25108,30 @@ class NativeCupertinoHttp { ); } - late final _dispatch_source_set_registration_handler_fPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_source_t, dispatch_function_t)>>( - 'dispatch_source_set_registration_handler_f'); + late final _dispatch_source_set_registration_handler_fPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_source_t, dispatch_function_t) + > + >('dispatch_source_set_registration_handler_f'); late final _dispatch_source_set_registration_handler_f = _dispatch_source_set_registration_handler_fPtr .asFunction(); Dartdispatch_group_t dispatch_group_create() { - return objc.NSObject.castFromPointer(_dispatch_group_create(), - retain: false, release: true); + return objc.NSObject.castFromPointer( + _dispatch_group_create(), + retain: false, + release: true, + ); } late final _dispatch_group_createPtr = _lookup>( - 'dispatch_group_create'); - late final _dispatch_group_create = - _dispatch_group_createPtr.asFunction(); + 'dispatch_group_create', + ); + late final _dispatch_group_create = _dispatch_group_createPtr + .asFunction(); void dispatch_group_async( Dartdispatch_group_t group, @@ -25338,12 +25145,20 @@ class NativeCupertinoHttp { ); } - late final _dispatch_group_asyncPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_group_t, dispatch_queue_t, - dispatch_block_t)>>('dispatch_group_async'); - late final _dispatch_group_async = _dispatch_group_asyncPtr.asFunction< - void Function(dispatch_group_t, dispatch_queue_t, dispatch_block_t)>(); + late final _dispatch_group_asyncPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_group_t, + dispatch_queue_t, + dispatch_block_t, + ) + > + >('dispatch_group_async'); + late final _dispatch_group_async = _dispatch_group_asyncPtr + .asFunction< + void Function(dispatch_group_t, dispatch_queue_t, dispatch_block_t) + >(); void dispatch_group_async_f( Dartdispatch_group_t group, @@ -25359,33 +25174,42 @@ class NativeCupertinoHttp { ); } - late final _dispatch_group_async_fPtr = _lookup< - ffi.NativeFunction< + late final _dispatch_group_async_fPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - dispatch_group_t, - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t)>>('dispatch_group_async_f'); - late final _dispatch_group_async_f = _dispatch_group_async_fPtr.asFunction< - void Function(dispatch_group_t, dispatch_queue_t, ffi.Pointer, - dispatch_function_t)>(); + dispatch_group_t, + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + > + >('dispatch_group_async_f'); + late final _dispatch_group_async_f = _dispatch_group_async_fPtr + .asFunction< + void Function( + dispatch_group_t, + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + >(); int dispatch_group_wait( Dartdispatch_group_t group, Dartdispatch_time_t timeout, ) { - return _dispatch_group_wait( - group.ref.pointer, - timeout, - ); + return _dispatch_group_wait(group.ref.pointer, timeout); } - late final _dispatch_group_waitPtr = _lookup< - ffi.NativeFunction< - ffi.IntPtr Function( - dispatch_group_t, dispatch_time_t)>>('dispatch_group_wait'); - late final _dispatch_group_wait = - _dispatch_group_waitPtr.asFunction(); + late final _dispatch_group_waitPtr = + _lookup< + ffi.NativeFunction< + ffi.IntPtr Function(dispatch_group_t, dispatch_time_t) + > + >('dispatch_group_wait'); + late final _dispatch_group_wait = _dispatch_group_waitPtr + .asFunction(); void dispatch_group_notify( Dartdispatch_group_t group, @@ -25399,12 +25223,20 @@ class NativeCupertinoHttp { ); } - late final _dispatch_group_notifyPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_group_t, dispatch_queue_t, - dispatch_block_t)>>('dispatch_group_notify'); - late final _dispatch_group_notify = _dispatch_group_notifyPtr.asFunction< - void Function(dispatch_group_t, dispatch_queue_t, dispatch_block_t)>(); + late final _dispatch_group_notifyPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_group_t, + dispatch_queue_t, + dispatch_block_t, + ) + > + >('dispatch_group_notify'); + late final _dispatch_group_notify = _dispatch_group_notifyPtr + .asFunction< + void Function(dispatch_group_t, dispatch_queue_t, dispatch_block_t) + >(); void dispatch_group_notify_f( Dartdispatch_group_t group, @@ -25420,59 +25252,61 @@ class NativeCupertinoHttp { ); } - late final _dispatch_group_notify_fPtr = _lookup< - ffi.NativeFunction< + late final _dispatch_group_notify_fPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - dispatch_group_t, - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t)>>('dispatch_group_notify_f'); - late final _dispatch_group_notify_f = _dispatch_group_notify_fPtr.asFunction< - void Function(dispatch_group_t, dispatch_queue_t, ffi.Pointer, - dispatch_function_t)>(); + dispatch_group_t, + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + > + >('dispatch_group_notify_f'); + late final _dispatch_group_notify_f = _dispatch_group_notify_fPtr + .asFunction< + void Function( + dispatch_group_t, + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) + >(); - void dispatch_group_enter( - Dartdispatch_group_t group, - ) { - return _dispatch_group_enter( - group.ref.pointer, - ); + void dispatch_group_enter(Dartdispatch_group_t group) { + return _dispatch_group_enter(group.ref.pointer); } late final _dispatch_group_enterPtr = _lookup>( - 'dispatch_group_enter'); - late final _dispatch_group_enter = - _dispatch_group_enterPtr.asFunction(); + 'dispatch_group_enter', + ); + late final _dispatch_group_enter = _dispatch_group_enterPtr + .asFunction(); - void dispatch_group_leave( - Dartdispatch_group_t group, - ) { - return _dispatch_group_leave( - group.ref.pointer, - ); + void dispatch_group_leave(Dartdispatch_group_t group) { + return _dispatch_group_leave(group.ref.pointer); } late final _dispatch_group_leavePtr = _lookup>( - 'dispatch_group_leave'); - late final _dispatch_group_leave = - _dispatch_group_leavePtr.asFunction(); + 'dispatch_group_leave', + ); + late final _dispatch_group_leave = _dispatch_group_leavePtr + .asFunction(); - Dartdispatch_semaphore_t dispatch_semaphore_create( - int value, - ) { + Dartdispatch_semaphore_t dispatch_semaphore_create(int value) { return objc.NSObject.castFromPointer( - _dispatch_semaphore_create( - value, - ), - retain: false, - release: true); + _dispatch_semaphore_create(value), + retain: false, + release: true, + ); } late final _dispatch_semaphore_createPtr = _lookup>( - 'dispatch_semaphore_create'); + 'dispatch_semaphore_create', + ); late final _dispatch_semaphore_create = _dispatch_semaphore_createPtr .asFunction(); @@ -25480,30 +25314,26 @@ class NativeCupertinoHttp { Dartdispatch_semaphore_t dsema, Dartdispatch_time_t timeout, ) { - return _dispatch_semaphore_wait( - dsema.ref.pointer, - timeout, - ); + return _dispatch_semaphore_wait(dsema.ref.pointer, timeout); } - late final _dispatch_semaphore_waitPtr = _lookup< - ffi.NativeFunction< - ffi.IntPtr Function(dispatch_semaphore_t, - dispatch_time_t)>>('dispatch_semaphore_wait'); + late final _dispatch_semaphore_waitPtr = + _lookup< + ffi.NativeFunction< + ffi.IntPtr Function(dispatch_semaphore_t, dispatch_time_t) + > + >('dispatch_semaphore_wait'); late final _dispatch_semaphore_wait = _dispatch_semaphore_waitPtr .asFunction(); - int dispatch_semaphore_signal( - Dartdispatch_semaphore_t dsema, - ) { - return _dispatch_semaphore_signal( - dsema.ref.pointer, - ); + int dispatch_semaphore_signal(Dartdispatch_semaphore_t dsema) { + return _dispatch_semaphore_signal(dsema.ref.pointer); } late final _dispatch_semaphore_signalPtr = _lookup>( - 'dispatch_semaphore_signal'); + 'dispatch_semaphore_signal', + ); late final _dispatch_semaphore_signal = _dispatch_semaphore_signalPtr .asFunction(); @@ -25511,38 +25341,46 @@ class NativeCupertinoHttp { ffi.Pointer predicate, Dartdispatch_block_t block, ) { - return _dispatch_once( - predicate, - block.ref.pointer, - ); + return _dispatch_once(predicate, block.ref.pointer); } - late final _dispatch_oncePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - dispatch_block_t)>>('dispatch_once'); - late final _dispatch_once = _dispatch_oncePtr.asFunction< - void Function(ffi.Pointer, dispatch_block_t)>(); + late final _dispatch_oncePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, dispatch_block_t) + > + >('dispatch_once'); + late final _dispatch_once = _dispatch_oncePtr + .asFunction< + void Function(ffi.Pointer, dispatch_block_t) + >(); void dispatch_once_f( ffi.Pointer predicate, ffi.Pointer context, dispatch_function_t function, ) { - return _dispatch_once_f( - predicate, - context, - function, - ); + return _dispatch_once_f(predicate, context, function); } - late final _dispatch_once_fPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - dispatch_function_t)>>('dispatch_once_f'); - late final _dispatch_once_f = _dispatch_once_fPtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - dispatch_function_t)>(); + late final _dispatch_once_fPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_function_t, + ) + > + >('dispatch_once_f'); + late final _dispatch_once_f = _dispatch_once_fPtr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_function_t, + ) + >(); late final ffi.Pointer __dispatch_data_empty = _lookup('_dispatch_data_empty'); @@ -25554,14 +25392,18 @@ class NativeCupertinoHttp { _lookup('_dispatch_data_destructor_free'); Dartdispatch_block_t get _dispatch_data_destructor_free => - ObjCBlock_ffiVoid.castFromPointer(__dispatch_data_destructor_free.value, - retain: true, release: true); + ObjCBlock_ffiVoid.castFromPointer( + __dispatch_data_destructor_free.value, + retain: true, + release: true, + ); set _dispatch_data_destructor_free(Dartdispatch_block_t value) { - ObjCBlock_ffiVoid.castFromPointer(__dispatch_data_destructor_free.value, - retain: false, release: true) - .ref - .release(); + ObjCBlock_ffiVoid.castFromPointer( + __dispatch_data_destructor_free.value, + retain: false, + release: true, + ).ref.release(); __dispatch_data_destructor_free.value = value.ref.retainAndReturnPointer(); } @@ -25569,16 +25411,20 @@ class NativeCupertinoHttp { _lookup('_dispatch_data_destructor_munmap'); Dartdispatch_block_t get _dispatch_data_destructor_munmap => - ObjCBlock_ffiVoid.castFromPointer(__dispatch_data_destructor_munmap.value, - retain: true, release: true); + ObjCBlock_ffiVoid.castFromPointer( + __dispatch_data_destructor_munmap.value, + retain: true, + release: true, + ); set _dispatch_data_destructor_munmap(Dartdispatch_block_t value) { - ObjCBlock_ffiVoid.castFromPointer(__dispatch_data_destructor_munmap.value, - retain: false, release: true) - .ref - .release(); - __dispatch_data_destructor_munmap.value = - value.ref.retainAndReturnPointer(); + ObjCBlock_ffiVoid.castFromPointer( + __dispatch_data_destructor_munmap.value, + retain: false, + release: true, + ).ref.release(); + __dispatch_data_destructor_munmap.value = value.ref + .retainAndReturnPointer(); } Dartdispatch_data_t dispatch_data_create( @@ -25588,37 +25434,48 @@ class NativeCupertinoHttp { Dartdispatch_block_t? destructor, ) { return objc.NSObject.castFromPointer( - _dispatch_data_create( - buffer, - size, - queue?.ref.pointer ?? ffi.nullptr, - destructor?.ref.pointer ?? ffi.nullptr, - ), - retain: false, - release: true); + _dispatch_data_create( + buffer, + size, + queue?.ref.pointer ?? ffi.nullptr, + destructor?.ref.pointer ?? ffi.nullptr, + ), + retain: false, + release: true, + ); } - late final _dispatch_data_createPtr = _lookup< - ffi.NativeFunction< - dispatch_data_t Function(ffi.Pointer, ffi.Size, - dispatch_queue_t, dispatch_block_t)>>('dispatch_data_create'); - late final _dispatch_data_create = _dispatch_data_createPtr.asFunction< - dispatch_data_t Function( - ffi.Pointer, int, dispatch_queue_t, dispatch_block_t)>(); + late final _dispatch_data_createPtr = + _lookup< + ffi.NativeFunction< + dispatch_data_t Function( + ffi.Pointer, + ffi.Size, + dispatch_queue_t, + dispatch_block_t, + ) + > + >('dispatch_data_create'); + late final _dispatch_data_create = _dispatch_data_createPtr + .asFunction< + dispatch_data_t Function( + ffi.Pointer, + int, + dispatch_queue_t, + dispatch_block_t, + ) + >(); - int dispatch_data_get_size( - Dartdispatch_data_t data, - ) { - return _dispatch_data_get_size( - data.ref.pointer, - ); + int dispatch_data_get_size(Dartdispatch_data_t data) { + return _dispatch_data_get_size(data.ref.pointer); } late final _dispatch_data_get_sizePtr = _lookup>( - 'dispatch_data_get_size'); - late final _dispatch_data_get_size = - _dispatch_data_get_sizePtr.asFunction(); + 'dispatch_data_get_size', + ); + late final _dispatch_data_get_size = _dispatch_data_get_sizePtr + .asFunction(); Dartdispatch_data_t dispatch_data_create_map( Dartdispatch_data_t data, @@ -25626,43 +25483,48 @@ class NativeCupertinoHttp { ffi.Pointer size_ptr, ) { return objc.NSObject.castFromPointer( - _dispatch_data_create_map( - data.ref.pointer, - buffer_ptr, - size_ptr, - ), - retain: false, - release: true); + _dispatch_data_create_map(data.ref.pointer, buffer_ptr, size_ptr), + retain: false, + release: true, + ); } - late final _dispatch_data_create_mapPtr = _lookup< - ffi.NativeFunction< + late final _dispatch_data_create_mapPtr = + _lookup< + ffi.NativeFunction< dispatch_data_t Function( - dispatch_data_t, - ffi.Pointer>, - ffi.Pointer)>>('dispatch_data_create_map'); - late final _dispatch_data_create_map = - _dispatch_data_create_mapPtr.asFunction< - dispatch_data_t Function(dispatch_data_t, - ffi.Pointer>, ffi.Pointer)>(); + dispatch_data_t, + ffi.Pointer>, + ffi.Pointer, + ) + > + >('dispatch_data_create_map'); + late final _dispatch_data_create_map = _dispatch_data_create_mapPtr + .asFunction< + dispatch_data_t Function( + dispatch_data_t, + ffi.Pointer>, + ffi.Pointer, + ) + >(); Dartdispatch_data_t dispatch_data_create_concat( Dartdispatch_data_t data1, Dartdispatch_data_t data2, ) { return objc.NSObject.castFromPointer( - _dispatch_data_create_concat( - data1.ref.pointer, - data2.ref.pointer, - ), - retain: false, - release: true); + _dispatch_data_create_concat(data1.ref.pointer, data2.ref.pointer), + retain: false, + release: true, + ); } - late final _dispatch_data_create_concatPtr = _lookup< - ffi.NativeFunction< - dispatch_data_t Function(dispatch_data_t, - dispatch_data_t)>>('dispatch_data_create_concat'); + late final _dispatch_data_create_concatPtr = + _lookup< + ffi.NativeFunction< + dispatch_data_t Function(dispatch_data_t, dispatch_data_t) + > + >('dispatch_data_create_concat'); late final _dispatch_data_create_concat = _dispatch_data_create_concatPtr .asFunction(); @@ -25672,19 +25534,18 @@ class NativeCupertinoHttp { int length, ) { return objc.NSObject.castFromPointer( - _dispatch_data_create_subrange( - data.ref.pointer, - offset, - length, - ), - retain: false, - release: true); + _dispatch_data_create_subrange(data.ref.pointer, offset, length), + retain: false, + release: true, + ); } - late final _dispatch_data_create_subrangePtr = _lookup< - ffi.NativeFunction< - dispatch_data_t Function(dispatch_data_t, ffi.Size, - ffi.Size)>>('dispatch_data_create_subrange'); + late final _dispatch_data_create_subrangePtr = + _lookup< + ffi.NativeFunction< + dispatch_data_t Function(dispatch_data_t, ffi.Size, ffi.Size) + > + >('dispatch_data_create_subrange'); late final _dispatch_data_create_subrange = _dispatch_data_create_subrangePtr .asFunction(); @@ -25692,16 +25553,15 @@ class NativeCupertinoHttp { Dartdispatch_data_t data, Dartdispatch_data_applier_t applier, ) { - return _dispatch_data_apply( - data.ref.pointer, - applier.ref.pointer, - ); + return _dispatch_data_apply(data.ref.pointer, applier.ref.pointer); } - late final _dispatch_data_applyPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(dispatch_data_t, - dispatch_data_applier_t)>>('dispatch_data_apply'); + late final _dispatch_data_applyPtr = + _lookup< + ffi.NativeFunction< + ffi.Bool Function(dispatch_data_t, dispatch_data_applier_t) + > + >('dispatch_data_apply'); late final _dispatch_data_apply = _dispatch_data_applyPtr .asFunction(); @@ -25711,23 +25571,26 @@ class NativeCupertinoHttp { ffi.Pointer offset_ptr, ) { return objc.NSObject.castFromPointer( - _dispatch_data_copy_region( - data.ref.pointer, - location, - offset_ptr, - ), - retain: false, - release: true); + _dispatch_data_copy_region(data.ref.pointer, location, offset_ptr), + retain: false, + release: true, + ); } - late final _dispatch_data_copy_regionPtr = _lookup< - ffi.NativeFunction< - dispatch_data_t Function(dispatch_data_t, ffi.Size, - ffi.Pointer)>>('dispatch_data_copy_region'); - late final _dispatch_data_copy_region = - _dispatch_data_copy_regionPtr.asFunction< + late final _dispatch_data_copy_regionPtr = + _lookup< + ffi.NativeFunction< dispatch_data_t Function( - dispatch_data_t, int, ffi.Pointer)>(); + dispatch_data_t, + ffi.Size, + ffi.Pointer, + ) + > + >('dispatch_data_copy_region'); + late final _dispatch_data_copy_region = _dispatch_data_copy_regionPtr + .asFunction< + dispatch_data_t Function(dispatch_data_t, int, ffi.Pointer) + >(); void dispatch_read( Dartdispatch_fd_t fd, @@ -25735,21 +25598,29 @@ class NativeCupertinoHttp { Dartdispatch_queue_t queue, objc.ObjCBlock handler, ) { - return _dispatch_read( - fd, - length, - queue.ref.pointer, - handler.ref.pointer, - ); + return _dispatch_read(fd, length, queue.ref.pointer, handler.ref.pointer); } - late final _dispatch_readPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_fd_t, ffi.Size, dispatch_queue_t, - ffi.Pointer)>>('dispatch_read'); - late final _dispatch_read = _dispatch_readPtr.asFunction< - void Function( - int, int, dispatch_queue_t, ffi.Pointer)>(); + late final _dispatch_readPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_fd_t, + ffi.Size, + dispatch_queue_t, + ffi.Pointer, + ) + > + >('dispatch_read'); + late final _dispatch_read = _dispatch_readPtr + .asFunction< + void Function( + int, + int, + dispatch_queue_t, + ffi.Pointer, + ) + >(); void dispatch_write( Dartdispatch_fd_t fd, @@ -25765,13 +25636,26 @@ class NativeCupertinoHttp { ); } - late final _dispatch_writePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_fd_t, dispatch_data_t, dispatch_queue_t, - ffi.Pointer)>>('dispatch_write'); - late final _dispatch_write = _dispatch_writePtr.asFunction< - void Function(int, dispatch_data_t, dispatch_queue_t, - ffi.Pointer)>(); + late final _dispatch_writePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_fd_t, + dispatch_data_t, + dispatch_queue_t, + ffi.Pointer, + ) + > + >('dispatch_write'); + late final _dispatch_write = _dispatch_writePtr + .asFunction< + void Function( + int, + dispatch_data_t, + dispatch_queue_t, + ffi.Pointer, + ) + >(); Dartdispatch_io_t dispatch_io_create( Dartdispatch_io_type_t type, @@ -25780,26 +25664,37 @@ class NativeCupertinoHttp { objc.ObjCBlock cleanup_handler, ) { return objc.NSObject.castFromPointer( - _dispatch_io_create( - type, - fd, - queue.ref.pointer, - cleanup_handler.ref.pointer, - ), - retain: false, - release: true); + _dispatch_io_create( + type, + fd, + queue.ref.pointer, + cleanup_handler.ref.pointer, + ), + retain: false, + release: true, + ); } - late final _dispatch_io_createPtr = _lookup< - ffi.NativeFunction< + late final _dispatch_io_createPtr = + _lookup< + ffi.NativeFunction< dispatch_io_t Function( - dispatch_io_type_t, - dispatch_fd_t, - dispatch_queue_t, - ffi.Pointer)>>('dispatch_io_create'); - late final _dispatch_io_create = _dispatch_io_createPtr.asFunction< - dispatch_io_t Function( - int, int, dispatch_queue_t, ffi.Pointer)>(); + dispatch_io_type_t, + dispatch_fd_t, + dispatch_queue_t, + ffi.Pointer, + ) + > + >('dispatch_io_create'); + late final _dispatch_io_create = _dispatch_io_createPtr + .asFunction< + dispatch_io_t Function( + int, + int, + dispatch_queue_t, + ffi.Pointer, + ) + >(); Dartdispatch_io_t dispatch_io_create_with_path( Dartdispatch_io_type_t type, @@ -25810,32 +25705,43 @@ class NativeCupertinoHttp { objc.ObjCBlock cleanup_handler, ) { return objc.NSObject.castFromPointer( - _dispatch_io_create_with_path( - type, - path, - oflag, - mode, - queue.ref.pointer, - cleanup_handler.ref.pointer, - ), - retain: false, - release: true); + _dispatch_io_create_with_path( + type, + path, + oflag, + mode, + queue.ref.pointer, + cleanup_handler.ref.pointer, + ), + retain: false, + release: true, + ); } - late final _dispatch_io_create_with_pathPtr = _lookup< - ffi.NativeFunction< - dispatch_io_t Function( - dispatch_io_type_t, - ffi.Pointer, - ffi.Int, - mode_t, - dispatch_queue_t, - ffi.Pointer)>>( - 'dispatch_io_create_with_path'); - late final _dispatch_io_create_with_path = - _dispatch_io_create_with_pathPtr.asFunction< - dispatch_io_t Function(int, ffi.Pointer, int, int, - dispatch_queue_t, ffi.Pointer)>(); + late final _dispatch_io_create_with_pathPtr = + _lookup< + ffi.NativeFunction< + dispatch_io_t Function( + dispatch_io_type_t, + ffi.Pointer, + ffi.Int, + mode_t, + dispatch_queue_t, + ffi.Pointer, + ) + > + >('dispatch_io_create_with_path'); + late final _dispatch_io_create_with_path = _dispatch_io_create_with_pathPtr + .asFunction< + dispatch_io_t Function( + int, + ffi.Pointer, + int, + int, + dispatch_queue_t, + ffi.Pointer, + ) + >(); Dartdispatch_io_t dispatch_io_create_with_io( Dartdispatch_io_type_t type, @@ -25844,27 +25750,37 @@ class NativeCupertinoHttp { objc.ObjCBlock cleanup_handler, ) { return objc.NSObject.castFromPointer( - _dispatch_io_create_with_io( - type, - io.ref.pointer, - queue.ref.pointer, - cleanup_handler.ref.pointer, - ), - retain: false, - release: true); + _dispatch_io_create_with_io( + type, + io.ref.pointer, + queue.ref.pointer, + cleanup_handler.ref.pointer, + ), + retain: false, + release: true, + ); } - late final _dispatch_io_create_with_ioPtr = _lookup< - ffi.NativeFunction< + late final _dispatch_io_create_with_ioPtr = + _lookup< + ffi.NativeFunction< dispatch_io_t Function( - dispatch_io_type_t, - dispatch_io_t, - dispatch_queue_t, - ffi.Pointer)>>('dispatch_io_create_with_io'); - late final _dispatch_io_create_with_io = - _dispatch_io_create_with_ioPtr.asFunction< - dispatch_io_t Function(int, dispatch_io_t, dispatch_queue_t, - ffi.Pointer)>(); + dispatch_io_type_t, + dispatch_io_t, + dispatch_queue_t, + ffi.Pointer, + ) + > + >('dispatch_io_create_with_io'); + late final _dispatch_io_create_with_io = _dispatch_io_create_with_ioPtr + .asFunction< + dispatch_io_t Function( + int, + dispatch_io_t, + dispatch_queue_t, + ffi.Pointer, + ) + >(); void dispatch_io_read( Dartdispatch_io_t channel, @@ -25882,13 +25798,28 @@ class NativeCupertinoHttp { ); } - late final _dispatch_io_readPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_io_t, off_t, ffi.Size, dispatch_queue_t, - dispatch_io_handler_t)>>('dispatch_io_read'); - late final _dispatch_io_read = _dispatch_io_readPtr.asFunction< - void Function( - dispatch_io_t, int, int, dispatch_queue_t, dispatch_io_handler_t)>(); + late final _dispatch_io_readPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_io_t, + off_t, + ffi.Size, + dispatch_queue_t, + dispatch_io_handler_t, + ) + > + >('dispatch_io_read'); + late final _dispatch_io_read = _dispatch_io_readPtr + .asFunction< + void Function( + dispatch_io_t, + int, + int, + dispatch_queue_t, + dispatch_io_handler_t, + ) + >(); void dispatch_io_write( Dartdispatch_io_t channel, @@ -25906,91 +25837,89 @@ class NativeCupertinoHttp { ); } - late final _dispatch_io_writePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_io_t, off_t, dispatch_data_t, - dispatch_queue_t, dispatch_io_handler_t)>>('dispatch_io_write'); - late final _dispatch_io_write = _dispatch_io_writePtr.asFunction< - void Function(dispatch_io_t, int, dispatch_data_t, dispatch_queue_t, - dispatch_io_handler_t)>(); + late final _dispatch_io_writePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_io_t, + off_t, + dispatch_data_t, + dispatch_queue_t, + dispatch_io_handler_t, + ) + > + >('dispatch_io_write'); + late final _dispatch_io_write = _dispatch_io_writePtr + .asFunction< + void Function( + dispatch_io_t, + int, + dispatch_data_t, + dispatch_queue_t, + dispatch_io_handler_t, + ) + >(); void dispatch_io_close( Dartdispatch_io_t channel, Dartdispatch_io_close_flags_t flags, ) { - return _dispatch_io_close( - channel.ref.pointer, - flags, - ); + return _dispatch_io_close(channel.ref.pointer, flags); } - late final _dispatch_io_closePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - dispatch_io_t, dispatch_io_close_flags_t)>>('dispatch_io_close'); - late final _dispatch_io_close = - _dispatch_io_closePtr.asFunction(); + late final _dispatch_io_closePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_io_t, dispatch_io_close_flags_t) + > + >('dispatch_io_close'); + late final _dispatch_io_close = _dispatch_io_closePtr + .asFunction(); void dispatch_io_barrier( Dartdispatch_io_t channel, Dartdispatch_block_t barrier, ) { - return _dispatch_io_barrier( - channel.ref.pointer, - barrier.ref.pointer, - ); + return _dispatch_io_barrier(channel.ref.pointer, barrier.ref.pointer); } - late final _dispatch_io_barrierPtr = _lookup< - ffi - .NativeFunction>( - 'dispatch_io_barrier'); + late final _dispatch_io_barrierPtr = + _lookup< + ffi.NativeFunction + >('dispatch_io_barrier'); late final _dispatch_io_barrier = _dispatch_io_barrierPtr .asFunction(); - Dartdispatch_fd_t dispatch_io_get_descriptor( - Dartdispatch_io_t channel, - ) { - return _dispatch_io_get_descriptor( - channel.ref.pointer, - ); + Dartdispatch_fd_t dispatch_io_get_descriptor(Dartdispatch_io_t channel) { + return _dispatch_io_get_descriptor(channel.ref.pointer); } late final _dispatch_io_get_descriptorPtr = _lookup>( - 'dispatch_io_get_descriptor'); - late final _dispatch_io_get_descriptor = - _dispatch_io_get_descriptorPtr.asFunction(); + 'dispatch_io_get_descriptor', + ); + late final _dispatch_io_get_descriptor = _dispatch_io_get_descriptorPtr + .asFunction(); - void dispatch_io_set_high_water( - Dartdispatch_io_t channel, - int high_water, - ) { - return _dispatch_io_set_high_water( - channel.ref.pointer, - high_water, - ); + void dispatch_io_set_high_water(Dartdispatch_io_t channel, int high_water) { + return _dispatch_io_set_high_water(channel.ref.pointer, high_water); } late final _dispatch_io_set_high_waterPtr = _lookup>( - 'dispatch_io_set_high_water'); + 'dispatch_io_set_high_water', + ); late final _dispatch_io_set_high_water = _dispatch_io_set_high_waterPtr .asFunction(); - void dispatch_io_set_low_water( - Dartdispatch_io_t channel, - int low_water, - ) { - return _dispatch_io_set_low_water( - channel.ref.pointer, - low_water, - ); + void dispatch_io_set_low_water(Dartdispatch_io_t channel, int low_water) { + return _dispatch_io_set_low_water(channel.ref.pointer, low_water); } late final _dispatch_io_set_low_waterPtr = _lookup>( - 'dispatch_io_set_low_water'); + 'dispatch_io_set_low_water', + ); late final _dispatch_io_set_low_water = _dispatch_io_set_low_waterPtr .asFunction(); @@ -25999,17 +25928,19 @@ class NativeCupertinoHttp { int interval, Dartdispatch_io_interval_flags_t flags, ) { - return _dispatch_io_set_interval( - channel.ref.pointer, - interval, - flags, - ); + return _dispatch_io_set_interval(channel.ref.pointer, interval, flags); } - late final _dispatch_io_set_intervalPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_io_t, ffi.Uint64, - dispatch_io_interval_flags_t)>>('dispatch_io_set_interval'); + late final _dispatch_io_set_intervalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + dispatch_io_t, + ffi.Uint64, + dispatch_io_interval_flags_t, + ) + > + >('dispatch_io_set_interval'); late final _dispatch_io_set_interval = _dispatch_io_set_intervalPtr .asFunction(); @@ -26017,17 +25948,16 @@ class NativeCupertinoHttp { ffi.Pointer label, ) { return objc.NSObject.castFromPointer( - _dispatch_workloop_create( - label, - ), - retain: false, - release: true); + _dispatch_workloop_create(label), + retain: false, + release: true, + ); } - late final _dispatch_workloop_createPtr = _lookup< - ffi - .NativeFunction)>>( - 'dispatch_workloop_create'); + late final _dispatch_workloop_createPtr = + _lookup< + ffi.NativeFunction)> + >('dispatch_workloop_create'); late final _dispatch_workloop_create = _dispatch_workloop_createPtr .asFunction)>(); @@ -26035,17 +25965,16 @@ class NativeCupertinoHttp { ffi.Pointer label, ) { return objc.NSObject.castFromPointer( - _dispatch_workloop_create_inactive( - label, - ), - retain: false, - release: true); + _dispatch_workloop_create_inactive(label), + retain: false, + release: true, + ); } - late final _dispatch_workloop_create_inactivePtr = _lookup< - ffi - .NativeFunction)>>( - 'dispatch_workloop_create_inactive'); + late final _dispatch_workloop_create_inactivePtr = + _lookup< + ffi.NativeFunction)> + >('dispatch_workloop_create_inactive'); late final _dispatch_workloop_create_inactive = _dispatch_workloop_create_inactivePtr .asFunction)>(); @@ -26060,10 +25989,12 @@ class NativeCupertinoHttp { ); } - late final _dispatch_workloop_set_autorelease_frequencyPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_workloop_t, ffi.UnsignedLong)>>( - 'dispatch_workloop_set_autorelease_frequency'); + late final _dispatch_workloop_set_autorelease_frequencyPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_workloop_t, ffi.UnsignedLong) + > + >('dispatch_workloop_set_autorelease_frequency'); late final _dispatch_workloop_set_autorelease_frequency = _dispatch_workloop_set_autorelease_frequencyPtr .asFunction(); @@ -26078,10 +26009,12 @@ class NativeCupertinoHttp { ); } - late final _dispatch_workloop_set_os_workgroupPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(dispatch_workloop_t, - os_workgroup_t)>>('dispatch_workloop_set_os_workgroup'); + late final _dispatch_workloop_set_os_workgroupPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(dispatch_workloop_t, os_workgroup_t) + > + >('dispatch_workloop_set_os_workgroup'); late final _dispatch_workloop_set_os_workgroup = _dispatch_workloop_set_os_workgroupPtr .asFunction(); @@ -26101,7 +26034,8 @@ class NativeCupertinoHttp { late final _CFWriteStreamGetTypeIDPtr = _lookup>( - 'CFWriteStreamGetTypeID'); + 'CFWriteStreamGetTypeID', + ); late final _CFWriteStreamGetTypeID = _CFWriteStreamGetTypeIDPtr.asFunction(); @@ -26125,86 +26059,95 @@ class NativeCupertinoHttp { ); } - late final _CFReadStreamCreateWithBytesNoCopyPtr = _lookup< - ffi.NativeFunction< - CFReadStreamRef Function(CFAllocatorRef, ffi.Pointer, CFIndex, - CFAllocatorRef)>>('CFReadStreamCreateWithBytesNoCopy'); + late final _CFReadStreamCreateWithBytesNoCopyPtr = + _lookup< + ffi.NativeFunction< + CFReadStreamRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFAllocatorRef, + ) + > + >('CFReadStreamCreateWithBytesNoCopy'); late final _CFReadStreamCreateWithBytesNoCopy = _CFReadStreamCreateWithBytesNoCopyPtr.asFunction< - CFReadStreamRef Function( - CFAllocatorRef, ffi.Pointer, int, CFAllocatorRef)>(); + CFReadStreamRef Function( + CFAllocatorRef, + ffi.Pointer, + int, + CFAllocatorRef, + ) + >(); CFWriteStreamRef CFWriteStreamCreateWithBuffer( CFAllocatorRef alloc, ffi.Pointer buffer, int bufferCapacity, ) { - return _CFWriteStreamCreateWithBuffer( - alloc, - buffer, - bufferCapacity, - ); + return _CFWriteStreamCreateWithBuffer(alloc, buffer, bufferCapacity); } - late final _CFWriteStreamCreateWithBufferPtr = _lookup< - ffi.NativeFunction< - CFWriteStreamRef Function(CFAllocatorRef, ffi.Pointer, - CFIndex)>>('CFWriteStreamCreateWithBuffer'); + late final _CFWriteStreamCreateWithBufferPtr = + _lookup< + ffi.NativeFunction< + CFWriteStreamRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) + > + >('CFWriteStreamCreateWithBuffer'); late final _CFWriteStreamCreateWithBuffer = _CFWriteStreamCreateWithBufferPtr.asFunction< - CFWriteStreamRef Function(CFAllocatorRef, ffi.Pointer, int)>(); + CFWriteStreamRef Function(CFAllocatorRef, ffi.Pointer, int) + >(); CFWriteStreamRef CFWriteStreamCreateWithAllocatedBuffers( CFAllocatorRef alloc, CFAllocatorRef bufferAllocator, ) { - return _CFWriteStreamCreateWithAllocatedBuffers( - alloc, - bufferAllocator, - ); + return _CFWriteStreamCreateWithAllocatedBuffers(alloc, bufferAllocator); } - late final _CFWriteStreamCreateWithAllocatedBuffersPtr = _lookup< - ffi.NativeFunction< - CFWriteStreamRef Function(CFAllocatorRef, - CFAllocatorRef)>>('CFWriteStreamCreateWithAllocatedBuffers'); + late final _CFWriteStreamCreateWithAllocatedBuffersPtr = + _lookup< + ffi.NativeFunction< + CFWriteStreamRef Function(CFAllocatorRef, CFAllocatorRef) + > + >('CFWriteStreamCreateWithAllocatedBuffers'); late final _CFWriteStreamCreateWithAllocatedBuffers = _CFWriteStreamCreateWithAllocatedBuffersPtr.asFunction< - CFWriteStreamRef Function(CFAllocatorRef, CFAllocatorRef)>(); + CFWriteStreamRef Function(CFAllocatorRef, CFAllocatorRef) + >(); CFReadStreamRef CFReadStreamCreateWithFile( CFAllocatorRef alloc, CFURLRef fileURL, ) { - return _CFReadStreamCreateWithFile( - alloc, - fileURL, - ); + return _CFReadStreamCreateWithFile(alloc, fileURL); } - late final _CFReadStreamCreateWithFilePtr = _lookup< - ffi - .NativeFunction>( - 'CFReadStreamCreateWithFile'); - late final _CFReadStreamCreateWithFile = _CFReadStreamCreateWithFilePtr - .asFunction(); + late final _CFReadStreamCreateWithFilePtr = + _lookup< + ffi.NativeFunction + >('CFReadStreamCreateWithFile'); + late final _CFReadStreamCreateWithFile = + _CFReadStreamCreateWithFilePtr.asFunction< + CFReadStreamRef Function(CFAllocatorRef, CFURLRef) + >(); CFWriteStreamRef CFWriteStreamCreateWithFile( CFAllocatorRef alloc, CFURLRef fileURL, ) { - return _CFWriteStreamCreateWithFile( - alloc, - fileURL, - ); + return _CFWriteStreamCreateWithFile(alloc, fileURL); } - late final _CFWriteStreamCreateWithFilePtr = _lookup< - ffi - .NativeFunction>( - 'CFWriteStreamCreateWithFile'); - late final _CFWriteStreamCreateWithFile = _CFWriteStreamCreateWithFilePtr - .asFunction(); + late final _CFWriteStreamCreateWithFilePtr = + _lookup< + ffi.NativeFunction + >('CFWriteStreamCreateWithFile'); + late final _CFWriteStreamCreateWithFile = + _CFWriteStreamCreateWithFilePtr.asFunction< + CFWriteStreamRef Function(CFAllocatorRef, CFURLRef) + >(); void CFStreamCreateBoundPair( CFAllocatorRef alloc, @@ -26220,16 +26163,26 @@ class NativeCupertinoHttp { ); } - late final _CFStreamCreateBoundPairPtr = _lookup< - ffi.NativeFunction< + late final _CFStreamCreateBoundPairPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - CFAllocatorRef, - ffi.Pointer, - ffi.Pointer, - CFIndex)>>('CFStreamCreateBoundPair'); - late final _CFStreamCreateBoundPair = _CFStreamCreateBoundPairPtr.asFunction< - void Function(CFAllocatorRef, ffi.Pointer, - ffi.Pointer, int)>(); + CFAllocatorRef, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) + > + >('CFStreamCreateBoundPair'); + late final _CFStreamCreateBoundPair = + _CFStreamCreateBoundPairPtr.asFunction< + void Function( + CFAllocatorRef, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final ffi.Pointer _kCFStreamPropertyAppendToFile = _lookup('kCFStreamPropertyAppendToFile'); @@ -26238,35 +26191,40 @@ class NativeCupertinoHttp { _kCFStreamPropertyAppendToFile.value; late final ffi.Pointer - _kCFStreamPropertyFileCurrentOffset = - _lookup('kCFStreamPropertyFileCurrentOffset'); + _kCFStreamPropertyFileCurrentOffset = _lookup( + 'kCFStreamPropertyFileCurrentOffset', + ); CFStreamPropertyKey get kCFStreamPropertyFileCurrentOffset => _kCFStreamPropertyFileCurrentOffset.value; late final ffi.Pointer - _kCFStreamPropertySocketNativeHandle = - _lookup('kCFStreamPropertySocketNativeHandle'); + _kCFStreamPropertySocketNativeHandle = _lookup( + 'kCFStreamPropertySocketNativeHandle', + ); CFStreamPropertyKey get kCFStreamPropertySocketNativeHandle => _kCFStreamPropertySocketNativeHandle.value; late final ffi.Pointer - _kCFStreamPropertySocketRemoteHostName = - _lookup('kCFStreamPropertySocketRemoteHostName'); + _kCFStreamPropertySocketRemoteHostName = _lookup( + 'kCFStreamPropertySocketRemoteHostName', + ); CFStreamPropertyKey get kCFStreamPropertySocketRemoteHostName => _kCFStreamPropertySocketRemoteHostName.value; late final ffi.Pointer - _kCFStreamPropertySocketRemotePortNumber = - _lookup('kCFStreamPropertySocketRemotePortNumber'); + _kCFStreamPropertySocketRemotePortNumber = _lookup( + 'kCFStreamPropertySocketRemotePortNumber', + ); CFStreamPropertyKey get kCFStreamPropertySocketRemotePortNumber => _kCFStreamPropertySocketRemotePortNumber.value; - late final ffi.Pointer _kCFStreamErrorDomainSOCKS = - _lookup('kCFStreamErrorDomainSOCKS'); + late final ffi.Pointer _kCFStreamErrorDomainSOCKS = _lookup( + 'kCFStreamErrorDomainSOCKS', + ); int get kCFStreamErrorDomainSOCKS => _kCFStreamErrorDomainSOCKS.value; @@ -26342,8 +26300,9 @@ class NativeCupertinoHttp { set kCFStreamPropertySOCKSPassword(CFStringRef value) => _kCFStreamPropertySOCKSPassword.value = value; - late final ffi.Pointer _kCFStreamErrorDomainSSL = - _lookup('kCFStreamErrorDomainSSL'); + late final ffi.Pointer _kCFStreamErrorDomainSSL = _lookup( + 'kCFStreamErrorDomainSSL', + ); int get kCFStreamErrorDomainSSL => _kCFStreamErrorDomainSSL.value; @@ -26393,8 +26352,9 @@ class NativeCupertinoHttp { _kCFStreamSocketSecurityLevelTLSv1.value = value; late final ffi.Pointer - _kCFStreamSocketSecurityLevelNegotiatedSSL = - _lookup('kCFStreamSocketSecurityLevelNegotiatedSSL'); + _kCFStreamSocketSecurityLevelNegotiatedSSL = _lookup( + 'kCFStreamSocketSecurityLevelNegotiatedSSL', + ); CFStringRef get kCFStreamSocketSecurityLevelNegotiatedSSL => _kCFStreamSocketSecurityLevelNegotiatedSSL.value; @@ -26403,8 +26363,9 @@ class NativeCupertinoHttp { _kCFStreamSocketSecurityLevelNegotiatedSSL.value = value; late final ffi.Pointer - _kCFStreamPropertyShouldCloseNativeSocket = - _lookup('kCFStreamPropertyShouldCloseNativeSocket'); + _kCFStreamPropertyShouldCloseNativeSocket = _lookup( + 'kCFStreamPropertyShouldCloseNativeSocket', + ); CFStringRef get kCFStreamPropertyShouldCloseNativeSocket => _kCFStreamPropertyShouldCloseNativeSocket.value; @@ -26418,25 +26379,29 @@ class NativeCupertinoHttp { ffi.Pointer readStream, ffi.Pointer writeStream, ) { - return _CFStreamCreatePairWithSocket( - alloc, - sock, - readStream, - writeStream, - ); + return _CFStreamCreatePairWithSocket(alloc, sock, readStream, writeStream); } - late final _CFStreamCreatePairWithSocketPtr = _lookup< - ffi.NativeFunction< + late final _CFStreamCreatePairWithSocketPtr = + _lookup< + ffi.NativeFunction< ffi.Void Function( - CFAllocatorRef, - CFSocketNativeHandle, - ffi.Pointer, - ffi.Pointer)>>('CFStreamCreatePairWithSocket'); + CFAllocatorRef, + CFSocketNativeHandle, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFStreamCreatePairWithSocket'); late final _CFStreamCreatePairWithSocket = _CFStreamCreatePairWithSocketPtr.asFunction< - void Function(CFAllocatorRef, int, ffi.Pointer, - ffi.Pointer)>(); + void Function( + CFAllocatorRef, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); void CFStreamCreatePairWithSocketToHost( CFAllocatorRef alloc, @@ -26454,19 +26419,28 @@ class NativeCupertinoHttp { ); } - late final _CFStreamCreatePairWithSocketToHostPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFAllocatorRef, - CFStringRef, - UInt32, - ffi.Pointer, - ffi.Pointer)>>( - 'CFStreamCreatePairWithSocketToHost'); + late final _CFStreamCreatePairWithSocketToHostPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFAllocatorRef, + CFStringRef, + UInt32, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFStreamCreatePairWithSocketToHost'); late final _CFStreamCreatePairWithSocketToHost = _CFStreamCreatePairWithSocketToHostPtr.asFunction< - void Function(CFAllocatorRef, CFStringRef, int, - ffi.Pointer, ffi.Pointer)>(); + void Function( + CFAllocatorRef, + CFStringRef, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); void CFStreamCreatePairWithPeerSocketSignature( CFAllocatorRef alloc, @@ -26482,289 +26456,279 @@ class NativeCupertinoHttp { ); } - late final _CFStreamCreatePairWithPeerSocketSignaturePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFAllocatorRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - 'CFStreamCreatePairWithPeerSocketSignature'); + late final _CFStreamCreatePairWithPeerSocketSignaturePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFAllocatorRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFStreamCreatePairWithPeerSocketSignature'); late final _CFStreamCreatePairWithPeerSocketSignature = _CFStreamCreatePairWithPeerSocketSignaturePtr.asFunction< - void Function(CFAllocatorRef, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + CFAllocatorRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); - CFStreamStatus CFReadStreamGetStatus( - CFReadStreamRef stream, - ) { - return CFStreamStatus.fromValue(_CFReadStreamGetStatus( - stream, - )); + CFStreamStatus CFReadStreamGetStatus(CFReadStreamRef stream) { + return CFStreamStatus.fromValue(_CFReadStreamGetStatus(stream)); } late final _CFReadStreamGetStatusPtr = _lookup>( - 'CFReadStreamGetStatus'); + 'CFReadStreamGetStatus', + ); late final _CFReadStreamGetStatus = _CFReadStreamGetStatusPtr.asFunction(); - CFStreamStatus CFWriteStreamGetStatus( - CFWriteStreamRef stream, - ) { - return CFStreamStatus.fromValue(_CFWriteStreamGetStatus( - stream, - )); + CFStreamStatus CFWriteStreamGetStatus(CFWriteStreamRef stream) { + return CFStreamStatus.fromValue(_CFWriteStreamGetStatus(stream)); } late final _CFWriteStreamGetStatusPtr = _lookup>( - 'CFWriteStreamGetStatus'); + 'CFWriteStreamGetStatus', + ); late final _CFWriteStreamGetStatus = _CFWriteStreamGetStatusPtr.asFunction(); - CFErrorRef CFReadStreamCopyError( - CFReadStreamRef stream, - ) { - return _CFReadStreamCopyError( - stream, - ); + CFErrorRef CFReadStreamCopyError(CFReadStreamRef stream) { + return _CFReadStreamCopyError(stream); } late final _CFReadStreamCopyErrorPtr = _lookup>( - 'CFReadStreamCopyError'); - late final _CFReadStreamCopyError = _CFReadStreamCopyErrorPtr.asFunction< - CFErrorRef Function(CFReadStreamRef)>(); + 'CFReadStreamCopyError', + ); + late final _CFReadStreamCopyError = + _CFReadStreamCopyErrorPtr.asFunction< + CFErrorRef Function(CFReadStreamRef) + >(); - CFErrorRef CFWriteStreamCopyError( - CFWriteStreamRef stream, - ) { - return _CFWriteStreamCopyError( - stream, - ); + CFErrorRef CFWriteStreamCopyError(CFWriteStreamRef stream) { + return _CFWriteStreamCopyError(stream); } late final _CFWriteStreamCopyErrorPtr = _lookup>( - 'CFWriteStreamCopyError'); - late final _CFWriteStreamCopyError = _CFWriteStreamCopyErrorPtr.asFunction< - CFErrorRef Function(CFWriteStreamRef)>(); + 'CFWriteStreamCopyError', + ); + late final _CFWriteStreamCopyError = + _CFWriteStreamCopyErrorPtr.asFunction< + CFErrorRef Function(CFWriteStreamRef) + >(); - int CFReadStreamOpen( - CFReadStreamRef stream, - ) { - return _CFReadStreamOpen( - stream, - ); + int CFReadStreamOpen(CFReadStreamRef stream) { + return _CFReadStreamOpen(stream); } late final _CFReadStreamOpenPtr = _lookup>( - 'CFReadStreamOpen'); + 'CFReadStreamOpen', + ); late final _CFReadStreamOpen = _CFReadStreamOpenPtr.asFunction(); - int CFWriteStreamOpen( - CFWriteStreamRef stream, - ) { - return _CFWriteStreamOpen( - stream, - ); + int CFWriteStreamOpen(CFWriteStreamRef stream) { + return _CFWriteStreamOpen(stream); } late final _CFWriteStreamOpenPtr = _lookup>( - 'CFWriteStreamOpen'); + 'CFWriteStreamOpen', + ); late final _CFWriteStreamOpen = _CFWriteStreamOpenPtr.asFunction(); - void CFReadStreamClose( - CFReadStreamRef stream, - ) { - return _CFReadStreamClose( - stream, - ); + void CFReadStreamClose(CFReadStreamRef stream) { + return _CFReadStreamClose(stream); } late final _CFReadStreamClosePtr = _lookup>( - 'CFReadStreamClose'); + 'CFReadStreamClose', + ); late final _CFReadStreamClose = _CFReadStreamClosePtr.asFunction(); - void CFWriteStreamClose( - CFWriteStreamRef stream, - ) { - return _CFWriteStreamClose( - stream, - ); + void CFWriteStreamClose(CFWriteStreamRef stream) { + return _CFWriteStreamClose(stream); } late final _CFWriteStreamClosePtr = _lookup>( - 'CFWriteStreamClose'); + 'CFWriteStreamClose', + ); late final _CFWriteStreamClose = _CFWriteStreamClosePtr.asFunction(); - int CFReadStreamHasBytesAvailable( - CFReadStreamRef stream, - ) { - return _CFReadStreamHasBytesAvailable( - stream, - ); + int CFReadStreamHasBytesAvailable(CFReadStreamRef stream) { + return _CFReadStreamHasBytesAvailable(stream); } late final _CFReadStreamHasBytesAvailablePtr = _lookup>( - 'CFReadStreamHasBytesAvailable'); - late final _CFReadStreamHasBytesAvailable = _CFReadStreamHasBytesAvailablePtr - .asFunction(); + 'CFReadStreamHasBytesAvailable', + ); + late final _CFReadStreamHasBytesAvailable = + _CFReadStreamHasBytesAvailablePtr.asFunction< + int Function(CFReadStreamRef) + >(); int CFReadStreamRead( CFReadStreamRef stream, ffi.Pointer buffer, int bufferLength, ) { - return _CFReadStreamRead( - stream, - buffer, - bufferLength, - ); + return _CFReadStreamRead(stream, buffer, bufferLength); } - late final _CFReadStreamReadPtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFReadStreamRef, ffi.Pointer, - CFIndex)>>('CFReadStreamRead'); - late final _CFReadStreamRead = _CFReadStreamReadPtr.asFunction< - int Function(CFReadStreamRef, ffi.Pointer, int)>(); + late final _CFReadStreamReadPtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFReadStreamRef, ffi.Pointer, CFIndex) + > + >('CFReadStreamRead'); + late final _CFReadStreamRead = + _CFReadStreamReadPtr.asFunction< + int Function(CFReadStreamRef, ffi.Pointer, int) + >(); ffi.Pointer CFReadStreamGetBuffer( CFReadStreamRef stream, int maxBytesToRead, ffi.Pointer numBytesRead, ) { - return _CFReadStreamGetBuffer( - stream, - maxBytesToRead, - numBytesRead, - ); + return _CFReadStreamGetBuffer(stream, maxBytesToRead, numBytesRead); } - late final _CFReadStreamGetBufferPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CFReadStreamRef, CFIndex, - ffi.Pointer)>>('CFReadStreamGetBuffer'); - late final _CFReadStreamGetBuffer = _CFReadStreamGetBufferPtr.asFunction< - ffi.Pointer Function( - CFReadStreamRef, int, ffi.Pointer)>(); - - int CFWriteStreamCanAcceptBytes( - CFWriteStreamRef stream, - ) { - return _CFWriteStreamCanAcceptBytes( - stream, - ); + late final _CFReadStreamGetBufferPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CFReadStreamRef, + CFIndex, + ffi.Pointer, + ) + > + >('CFReadStreamGetBuffer'); + late final _CFReadStreamGetBuffer = + _CFReadStreamGetBufferPtr.asFunction< + ffi.Pointer Function(CFReadStreamRef, int, ffi.Pointer) + >(); + + int CFWriteStreamCanAcceptBytes(CFWriteStreamRef stream) { + return _CFWriteStreamCanAcceptBytes(stream); } late final _CFWriteStreamCanAcceptBytesPtr = _lookup>( - 'CFWriteStreamCanAcceptBytes'); - late final _CFWriteStreamCanAcceptBytes = _CFWriteStreamCanAcceptBytesPtr - .asFunction(); + 'CFWriteStreamCanAcceptBytes', + ); + late final _CFWriteStreamCanAcceptBytes = + _CFWriteStreamCanAcceptBytesPtr.asFunction< + int Function(CFWriteStreamRef) + >(); int CFWriteStreamWrite( CFWriteStreamRef stream, ffi.Pointer buffer, int bufferLength, ) { - return _CFWriteStreamWrite( - stream, - buffer, - bufferLength, - ); + return _CFWriteStreamWrite(stream, buffer, bufferLength); } - late final _CFWriteStreamWritePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFWriteStreamRef, ffi.Pointer, - CFIndex)>>('CFWriteStreamWrite'); - late final _CFWriteStreamWrite = _CFWriteStreamWritePtr.asFunction< - int Function(CFWriteStreamRef, ffi.Pointer, int)>(); + late final _CFWriteStreamWritePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function(CFWriteStreamRef, ffi.Pointer, CFIndex) + > + >('CFWriteStreamWrite'); + late final _CFWriteStreamWrite = + _CFWriteStreamWritePtr.asFunction< + int Function(CFWriteStreamRef, ffi.Pointer, int) + >(); CFTypeRef CFReadStreamCopyProperty( CFReadStreamRef stream, CFStreamPropertyKey propertyName, ) { - return _CFReadStreamCopyProperty( - stream, - propertyName, - ); + return _CFReadStreamCopyProperty(stream, propertyName); } - late final _CFReadStreamCopyPropertyPtr = _lookup< - ffi.NativeFunction< - CFTypeRef Function(CFReadStreamRef, - CFStreamPropertyKey)>>('CFReadStreamCopyProperty'); - late final _CFReadStreamCopyProperty = _CFReadStreamCopyPropertyPtr - .asFunction(); + late final _CFReadStreamCopyPropertyPtr = + _lookup< + ffi.NativeFunction< + CFTypeRef Function(CFReadStreamRef, CFStreamPropertyKey) + > + >('CFReadStreamCopyProperty'); + late final _CFReadStreamCopyProperty = + _CFReadStreamCopyPropertyPtr.asFunction< + CFTypeRef Function(CFReadStreamRef, CFStreamPropertyKey) + >(); CFTypeRef CFWriteStreamCopyProperty( CFWriteStreamRef stream, CFStreamPropertyKey propertyName, ) { - return _CFWriteStreamCopyProperty( - stream, - propertyName, - ); + return _CFWriteStreamCopyProperty(stream, propertyName); } - late final _CFWriteStreamCopyPropertyPtr = _lookup< - ffi.NativeFunction< - CFTypeRef Function(CFWriteStreamRef, - CFStreamPropertyKey)>>('CFWriteStreamCopyProperty'); - late final _CFWriteStreamCopyProperty = _CFWriteStreamCopyPropertyPtr - .asFunction(); + late final _CFWriteStreamCopyPropertyPtr = + _lookup< + ffi.NativeFunction< + CFTypeRef Function(CFWriteStreamRef, CFStreamPropertyKey) + > + >('CFWriteStreamCopyProperty'); + late final _CFWriteStreamCopyProperty = + _CFWriteStreamCopyPropertyPtr.asFunction< + CFTypeRef Function(CFWriteStreamRef, CFStreamPropertyKey) + >(); int CFReadStreamSetProperty( CFReadStreamRef stream, CFStreamPropertyKey propertyName, CFTypeRef propertyValue, ) { - return _CFReadStreamSetProperty( - stream, - propertyName, - propertyValue, - ); + return _CFReadStreamSetProperty(stream, propertyName, propertyValue); } - late final _CFReadStreamSetPropertyPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFReadStreamRef, CFStreamPropertyKey, - CFTypeRef)>>('CFReadStreamSetProperty'); - late final _CFReadStreamSetProperty = _CFReadStreamSetPropertyPtr.asFunction< - int Function(CFReadStreamRef, CFStreamPropertyKey, CFTypeRef)>(); + late final _CFReadStreamSetPropertyPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFReadStreamRef, CFStreamPropertyKey, CFTypeRef) + > + >('CFReadStreamSetProperty'); + late final _CFReadStreamSetProperty = + _CFReadStreamSetPropertyPtr.asFunction< + int Function(CFReadStreamRef, CFStreamPropertyKey, CFTypeRef) + >(); int CFWriteStreamSetProperty( CFWriteStreamRef stream, CFStreamPropertyKey propertyName, CFTypeRef propertyValue, ) { - return _CFWriteStreamSetProperty( - stream, - propertyName, - propertyValue, - ); + return _CFWriteStreamSetProperty(stream, propertyName, propertyValue); } - late final _CFWriteStreamSetPropertyPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFWriteStreamRef, CFStreamPropertyKey, - CFTypeRef)>>('CFWriteStreamSetProperty'); + late final _CFWriteStreamSetPropertyPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFWriteStreamRef, CFStreamPropertyKey, CFTypeRef) + > + >('CFWriteStreamSetProperty'); late final _CFWriteStreamSetProperty = _CFWriteStreamSetPropertyPtr.asFunction< - int Function(CFWriteStreamRef, CFStreamPropertyKey, CFTypeRef)>(); + int Function(CFWriteStreamRef, CFStreamPropertyKey, CFTypeRef) + >(); int CFReadStreamSetClient( CFReadStreamRef stream, @@ -26780,16 +26744,26 @@ class NativeCupertinoHttp { ); } - late final _CFReadStreamSetClientPtr = _lookup< - ffi.NativeFunction< + late final _CFReadStreamSetClientPtr = + _lookup< + ffi.NativeFunction< Boolean Function( - CFReadStreamRef, - CFOptionFlags, - CFReadStreamClientCallBack, - ffi.Pointer)>>('CFReadStreamSetClient'); - late final _CFReadStreamSetClient = _CFReadStreamSetClientPtr.asFunction< - int Function(CFReadStreamRef, int, CFReadStreamClientCallBack, - ffi.Pointer)>(); + CFReadStreamRef, + CFOptionFlags, + CFReadStreamClientCallBack, + ffi.Pointer, + ) + > + >('CFReadStreamSetClient'); + late final _CFReadStreamSetClient = + _CFReadStreamSetClientPtr.asFunction< + int Function( + CFReadStreamRef, + int, + CFReadStreamClientCallBack, + ffi.Pointer, + ) + >(); int CFWriteStreamSetClient( CFWriteStreamRef stream, @@ -26805,193 +26779,196 @@ class NativeCupertinoHttp { ); } - late final _CFWriteStreamSetClientPtr = _lookup< - ffi.NativeFunction< + late final _CFWriteStreamSetClientPtr = + _lookup< + ffi.NativeFunction< Boolean Function( - CFWriteStreamRef, - CFOptionFlags, - CFWriteStreamClientCallBack, - ffi.Pointer)>>('CFWriteStreamSetClient'); - late final _CFWriteStreamSetClient = _CFWriteStreamSetClientPtr.asFunction< - int Function(CFWriteStreamRef, int, CFWriteStreamClientCallBack, - ffi.Pointer)>(); + CFWriteStreamRef, + CFOptionFlags, + CFWriteStreamClientCallBack, + ffi.Pointer, + ) + > + >('CFWriteStreamSetClient'); + late final _CFWriteStreamSetClient = + _CFWriteStreamSetClientPtr.asFunction< + int Function( + CFWriteStreamRef, + int, + CFWriteStreamClientCallBack, + ffi.Pointer, + ) + >(); void CFReadStreamScheduleWithRunLoop( CFReadStreamRef stream, CFRunLoopRef runLoop, CFRunLoopMode runLoopMode, ) { - return _CFReadStreamScheduleWithRunLoop( - stream, - runLoop, - runLoopMode, - ); + return _CFReadStreamScheduleWithRunLoop(stream, runLoop, runLoopMode); } - late final _CFReadStreamScheduleWithRunLoopPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFReadStreamRef, CFRunLoopRef, - CFRunLoopMode)>>('CFReadStreamScheduleWithRunLoop'); + late final _CFReadStreamScheduleWithRunLoopPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFReadStreamRef, CFRunLoopRef, CFRunLoopMode) + > + >('CFReadStreamScheduleWithRunLoop'); late final _CFReadStreamScheduleWithRunLoop = _CFReadStreamScheduleWithRunLoopPtr.asFunction< - void Function(CFReadStreamRef, CFRunLoopRef, CFRunLoopMode)>(); + void Function(CFReadStreamRef, CFRunLoopRef, CFRunLoopMode) + >(); void CFWriteStreamScheduleWithRunLoop( CFWriteStreamRef stream, CFRunLoopRef runLoop, CFRunLoopMode runLoopMode, ) { - return _CFWriteStreamScheduleWithRunLoop( - stream, - runLoop, - runLoopMode, - ); + return _CFWriteStreamScheduleWithRunLoop(stream, runLoop, runLoopMode); } - late final _CFWriteStreamScheduleWithRunLoopPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFWriteStreamRef, CFRunLoopRef, - CFRunLoopMode)>>('CFWriteStreamScheduleWithRunLoop'); + late final _CFWriteStreamScheduleWithRunLoopPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFWriteStreamRef, CFRunLoopRef, CFRunLoopMode) + > + >('CFWriteStreamScheduleWithRunLoop'); late final _CFWriteStreamScheduleWithRunLoop = _CFWriteStreamScheduleWithRunLoopPtr.asFunction< - void Function(CFWriteStreamRef, CFRunLoopRef, CFRunLoopMode)>(); + void Function(CFWriteStreamRef, CFRunLoopRef, CFRunLoopMode) + >(); void CFReadStreamUnscheduleFromRunLoop( CFReadStreamRef stream, CFRunLoopRef runLoop, CFRunLoopMode runLoopMode, ) { - return _CFReadStreamUnscheduleFromRunLoop( - stream, - runLoop, - runLoopMode, - ); + return _CFReadStreamUnscheduleFromRunLoop(stream, runLoop, runLoopMode); } - late final _CFReadStreamUnscheduleFromRunLoopPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFReadStreamRef, CFRunLoopRef, - CFRunLoopMode)>>('CFReadStreamUnscheduleFromRunLoop'); + late final _CFReadStreamUnscheduleFromRunLoopPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFReadStreamRef, CFRunLoopRef, CFRunLoopMode) + > + >('CFReadStreamUnscheduleFromRunLoop'); late final _CFReadStreamUnscheduleFromRunLoop = _CFReadStreamUnscheduleFromRunLoopPtr.asFunction< - void Function(CFReadStreamRef, CFRunLoopRef, CFRunLoopMode)>(); + void Function(CFReadStreamRef, CFRunLoopRef, CFRunLoopMode) + >(); void CFWriteStreamUnscheduleFromRunLoop( CFWriteStreamRef stream, CFRunLoopRef runLoop, CFRunLoopMode runLoopMode, ) { - return _CFWriteStreamUnscheduleFromRunLoop( - stream, - runLoop, - runLoopMode, - ); + return _CFWriteStreamUnscheduleFromRunLoop(stream, runLoop, runLoopMode); } - late final _CFWriteStreamUnscheduleFromRunLoopPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFWriteStreamRef, CFRunLoopRef, - CFRunLoopMode)>>('CFWriteStreamUnscheduleFromRunLoop'); + late final _CFWriteStreamUnscheduleFromRunLoopPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFWriteStreamRef, CFRunLoopRef, CFRunLoopMode) + > + >('CFWriteStreamUnscheduleFromRunLoop'); late final _CFWriteStreamUnscheduleFromRunLoop = _CFWriteStreamUnscheduleFromRunLoopPtr.asFunction< - void Function(CFWriteStreamRef, CFRunLoopRef, CFRunLoopMode)>(); + void Function(CFWriteStreamRef, CFRunLoopRef, CFRunLoopMode) + >(); void CFReadStreamSetDispatchQueue( CFReadStreamRef stream, Dartdispatch_queue_t q, ) { - return _CFReadStreamSetDispatchQueue( - stream, - q.ref.pointer, - ); + return _CFReadStreamSetDispatchQueue(stream, q.ref.pointer); } - late final _CFReadStreamSetDispatchQueuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFReadStreamRef, - dispatch_queue_t)>>('CFReadStreamSetDispatchQueue'); - late final _CFReadStreamSetDispatchQueue = _CFReadStreamSetDispatchQueuePtr - .asFunction(); + late final _CFReadStreamSetDispatchQueuePtr = + _lookup< + ffi.NativeFunction + >('CFReadStreamSetDispatchQueue'); + late final _CFReadStreamSetDispatchQueue = + _CFReadStreamSetDispatchQueuePtr.asFunction< + void Function(CFReadStreamRef, dispatch_queue_t) + >(); void CFWriteStreamSetDispatchQueue( CFWriteStreamRef stream, Dartdispatch_queue_t q, ) { - return _CFWriteStreamSetDispatchQueue( - stream, - q.ref.pointer, - ); + return _CFWriteStreamSetDispatchQueue(stream, q.ref.pointer); } - late final _CFWriteStreamSetDispatchQueuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFWriteStreamRef, - dispatch_queue_t)>>('CFWriteStreamSetDispatchQueue'); - late final _CFWriteStreamSetDispatchQueue = _CFWriteStreamSetDispatchQueuePtr - .asFunction(); - - Dartdispatch_queue_t CFReadStreamCopyDispatchQueue( - CFReadStreamRef stream, - ) { + late final _CFWriteStreamSetDispatchQueuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFWriteStreamRef, dispatch_queue_t) + > + >('CFWriteStreamSetDispatchQueue'); + late final _CFWriteStreamSetDispatchQueue = + _CFWriteStreamSetDispatchQueuePtr.asFunction< + void Function(CFWriteStreamRef, dispatch_queue_t) + >(); + + Dartdispatch_queue_t CFReadStreamCopyDispatchQueue(CFReadStreamRef stream) { return objc.NSObject.castFromPointer( - _CFReadStreamCopyDispatchQueue( - stream, - ), - retain: true, - release: true); + _CFReadStreamCopyDispatchQueue(stream), + retain: true, + release: true, + ); } late final _CFReadStreamCopyDispatchQueuePtr = _lookup>( - 'CFReadStreamCopyDispatchQueue'); - late final _CFReadStreamCopyDispatchQueue = _CFReadStreamCopyDispatchQueuePtr - .asFunction(); + 'CFReadStreamCopyDispatchQueue', + ); + late final _CFReadStreamCopyDispatchQueue = + _CFReadStreamCopyDispatchQueuePtr.asFunction< + dispatch_queue_t Function(CFReadStreamRef) + >(); - Dartdispatch_queue_t CFWriteStreamCopyDispatchQueue( - CFWriteStreamRef stream, - ) { + Dartdispatch_queue_t CFWriteStreamCopyDispatchQueue(CFWriteStreamRef stream) { return objc.NSObject.castFromPointer( - _CFWriteStreamCopyDispatchQueue( - stream, - ), - retain: true, - release: true); + _CFWriteStreamCopyDispatchQueue(stream), + retain: true, + release: true, + ); } late final _CFWriteStreamCopyDispatchQueuePtr = _lookup>( - 'CFWriteStreamCopyDispatchQueue'); + 'CFWriteStreamCopyDispatchQueue', + ); late final _CFWriteStreamCopyDispatchQueue = _CFWriteStreamCopyDispatchQueuePtr.asFunction< - dispatch_queue_t Function(CFWriteStreamRef)>(); + dispatch_queue_t Function(CFWriteStreamRef) + >(); - CFStreamError CFReadStreamGetError( - CFReadStreamRef stream, - ) { - return _CFReadStreamGetError( - stream, - ); + CFStreamError CFReadStreamGetError(CFReadStreamRef stream) { + return _CFReadStreamGetError(stream); } late final _CFReadStreamGetErrorPtr = _lookup>( - 'CFReadStreamGetError'); - late final _CFReadStreamGetError = _CFReadStreamGetErrorPtr.asFunction< - CFStreamError Function(CFReadStreamRef)>(); + 'CFReadStreamGetError', + ); + late final _CFReadStreamGetError = + _CFReadStreamGetErrorPtr.asFunction< + CFStreamError Function(CFReadStreamRef) + >(); - CFStreamError CFWriteStreamGetError( - CFWriteStreamRef stream, - ) { - return _CFWriteStreamGetError( - stream, - ); + CFStreamError CFWriteStreamGetError(CFWriteStreamRef stream) { + return _CFWriteStreamGetError(stream); } late final _CFWriteStreamGetErrorPtr = _lookup>( - 'CFWriteStreamGetError'); - late final _CFWriteStreamGetError = _CFWriteStreamGetErrorPtr.asFunction< - CFStreamError Function(CFWriteStreamRef)>(); + 'CFWriteStreamGetError', + ); + late final _CFWriteStreamGetError = + _CFWriteStreamGetErrorPtr.asFunction< + CFStreamError Function(CFWriteStreamRef) + >(); CFPropertyListRef CFPropertyListCreateFromXMLData( CFAllocatorRef allocator, @@ -27007,31 +26984,44 @@ class NativeCupertinoHttp { ); } - late final _CFPropertyListCreateFromXMLDataPtr = _lookup< - ffi.NativeFunction< - CFPropertyListRef Function(CFAllocatorRef, CFDataRef, CFOptionFlags, - ffi.Pointer)>>('CFPropertyListCreateFromXMLData'); + late final _CFPropertyListCreateFromXMLDataPtr = + _lookup< + ffi.NativeFunction< + CFPropertyListRef Function( + CFAllocatorRef, + CFDataRef, + CFOptionFlags, + ffi.Pointer, + ) + > + >('CFPropertyListCreateFromXMLData'); late final _CFPropertyListCreateFromXMLData = _CFPropertyListCreateFromXMLDataPtr.asFunction< - CFPropertyListRef Function( - CFAllocatorRef, CFDataRef, int, ffi.Pointer)>(); + CFPropertyListRef Function( + CFAllocatorRef, + CFDataRef, + int, + ffi.Pointer, + ) + >(); CFDataRef CFPropertyListCreateXMLData( CFAllocatorRef allocator, CFPropertyListRef propertyList, ) { - return _CFPropertyListCreateXMLData( - allocator, - propertyList, - ); + return _CFPropertyListCreateXMLData(allocator, propertyList); } - late final _CFPropertyListCreateXMLDataPtr = _lookup< - ffi.NativeFunction< - CFDataRef Function(CFAllocatorRef, - CFPropertyListRef)>>('CFPropertyListCreateXMLData'); - late final _CFPropertyListCreateXMLData = _CFPropertyListCreateXMLDataPtr - .asFunction(); + late final _CFPropertyListCreateXMLDataPtr = + _lookup< + ffi.NativeFunction< + CFDataRef Function(CFAllocatorRef, CFPropertyListRef) + > + >('CFPropertyListCreateXMLData'); + late final _CFPropertyListCreateXMLData = + _CFPropertyListCreateXMLDataPtr.asFunction< + CFDataRef Function(CFAllocatorRef, CFPropertyListRef) + >(); CFPropertyListRef CFPropertyListCreateDeepCopy( CFAllocatorRef allocator, @@ -27045,29 +27035,36 @@ class NativeCupertinoHttp { ); } - late final _CFPropertyListCreateDeepCopyPtr = _lookup< - ffi.NativeFunction< - CFPropertyListRef Function(CFAllocatorRef, CFPropertyListRef, - CFOptionFlags)>>('CFPropertyListCreateDeepCopy'); + late final _CFPropertyListCreateDeepCopyPtr = + _lookup< + ffi.NativeFunction< + CFPropertyListRef Function( + CFAllocatorRef, + CFPropertyListRef, + CFOptionFlags, + ) + > + >('CFPropertyListCreateDeepCopy'); late final _CFPropertyListCreateDeepCopy = _CFPropertyListCreateDeepCopyPtr.asFunction< - CFPropertyListRef Function(CFAllocatorRef, CFPropertyListRef, int)>(); + CFPropertyListRef Function(CFAllocatorRef, CFPropertyListRef, int) + >(); DartBoolean CFPropertyListIsValid( CFPropertyListRef plist, CFPropertyListFormat format, ) { - return _CFPropertyListIsValid( - plist, - format.value, - ); + return _CFPropertyListIsValid(plist, format.value); } late final _CFPropertyListIsValidPtr = _lookup>( - 'CFPropertyListIsValid'); - late final _CFPropertyListIsValid = _CFPropertyListIsValidPtr.asFunction< - int Function(CFPropertyListRef, int)>(); + 'CFPropertyListIsValid', + ); + late final _CFPropertyListIsValid = + _CFPropertyListIsValidPtr.asFunction< + int Function(CFPropertyListRef, int) + >(); DartCFIndex CFPropertyListWriteToStream( CFPropertyListRef propertyList, @@ -27083,14 +27080,26 @@ class NativeCupertinoHttp { ); } - late final _CFPropertyListWriteToStreamPtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFPropertyListRef, CFWriteStreamRef, CFIndex, - ffi.Pointer)>>('CFPropertyListWriteToStream'); + late final _CFPropertyListWriteToStreamPtr = + _lookup< + ffi.NativeFunction< + CFIndex Function( + CFPropertyListRef, + CFWriteStreamRef, + CFIndex, + ffi.Pointer, + ) + > + >('CFPropertyListWriteToStream'); late final _CFPropertyListWriteToStream = _CFPropertyListWriteToStreamPtr.asFunction< - int Function(CFPropertyListRef, CFWriteStreamRef, int, - ffi.Pointer)>(); + int Function( + CFPropertyListRef, + CFWriteStreamRef, + int, + ffi.Pointer, + ) + >(); CFPropertyListRef CFPropertyListCreateFromStream( CFAllocatorRef allocator, @@ -27110,19 +27119,30 @@ class NativeCupertinoHttp { ); } - late final _CFPropertyListCreateFromStreamPtr = _lookup< - ffi.NativeFunction< + late final _CFPropertyListCreateFromStreamPtr = + _lookup< + ffi.NativeFunction< CFPropertyListRef Function( - CFAllocatorRef, - CFReadStreamRef, - CFIndex, - CFOptionFlags, - ffi.Pointer, - ffi.Pointer)>>('CFPropertyListCreateFromStream'); + CFAllocatorRef, + CFReadStreamRef, + CFIndex, + CFOptionFlags, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFPropertyListCreateFromStream'); late final _CFPropertyListCreateFromStream = _CFPropertyListCreateFromStreamPtr.asFunction< - CFPropertyListRef Function(CFAllocatorRef, CFReadStreamRef, int, int, - ffi.Pointer, ffi.Pointer)>(); + CFPropertyListRef Function( + CFAllocatorRef, + CFReadStreamRef, + int, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); CFPropertyListRef CFPropertyListCreateWithData( CFAllocatorRef allocator, @@ -27140,18 +27160,28 @@ class NativeCupertinoHttp { ); } - late final _CFPropertyListCreateWithDataPtr = _lookup< - ffi.NativeFunction< + late final _CFPropertyListCreateWithDataPtr = + _lookup< + ffi.NativeFunction< CFPropertyListRef Function( - CFAllocatorRef, - CFDataRef, - CFOptionFlags, - ffi.Pointer, - ffi.Pointer)>>('CFPropertyListCreateWithData'); + CFAllocatorRef, + CFDataRef, + CFOptionFlags, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFPropertyListCreateWithData'); late final _CFPropertyListCreateWithData = _CFPropertyListCreateWithDataPtr.asFunction< - CFPropertyListRef Function(CFAllocatorRef, CFDataRef, int, - ffi.Pointer, ffi.Pointer)>(); + CFPropertyListRef Function( + CFAllocatorRef, + CFDataRef, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); CFPropertyListRef CFPropertyListCreateWithStream( CFAllocatorRef allocator, @@ -27171,19 +27201,30 @@ class NativeCupertinoHttp { ); } - late final _CFPropertyListCreateWithStreamPtr = _lookup< - ffi.NativeFunction< + late final _CFPropertyListCreateWithStreamPtr = + _lookup< + ffi.NativeFunction< CFPropertyListRef Function( - CFAllocatorRef, - CFReadStreamRef, - CFIndex, - CFOptionFlags, - ffi.Pointer, - ffi.Pointer)>>('CFPropertyListCreateWithStream'); + CFAllocatorRef, + CFReadStreamRef, + CFIndex, + CFOptionFlags, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFPropertyListCreateWithStream'); late final _CFPropertyListCreateWithStream = _CFPropertyListCreateWithStreamPtr.asFunction< - CFPropertyListRef Function(CFAllocatorRef, CFReadStreamRef, int, int, - ffi.Pointer, ffi.Pointer)>(); + CFPropertyListRef Function( + CFAllocatorRef, + CFReadStreamRef, + int, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); DartCFIndex CFPropertyListWrite( CFPropertyListRef propertyList, @@ -27201,13 +27242,28 @@ class NativeCupertinoHttp { ); } - late final _CFPropertyListWritePtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFPropertyListRef, CFWriteStreamRef, CFIndex, - CFOptionFlags, ffi.Pointer)>>('CFPropertyListWrite'); - late final _CFPropertyListWrite = _CFPropertyListWritePtr.asFunction< - int Function(CFPropertyListRef, CFWriteStreamRef, int, int, - ffi.Pointer)>(); + late final _CFPropertyListWritePtr = + _lookup< + ffi.NativeFunction< + CFIndex Function( + CFPropertyListRef, + CFWriteStreamRef, + CFIndex, + CFOptionFlags, + ffi.Pointer, + ) + > + >('CFPropertyListWrite'); + late final _CFPropertyListWrite = + _CFPropertyListWritePtr.asFunction< + int Function( + CFPropertyListRef, + CFWriteStreamRef, + int, + int, + ffi.Pointer, + ) + >(); CFDataRef CFPropertyListCreateData( CFAllocatorRef allocator, @@ -27225,18 +27281,28 @@ class NativeCupertinoHttp { ); } - late final _CFPropertyListCreateDataPtr = _lookup< - ffi.NativeFunction< + late final _CFPropertyListCreateDataPtr = + _lookup< + ffi.NativeFunction< CFDataRef Function( - CFAllocatorRef, - CFPropertyListRef, - CFIndex, - CFOptionFlags, - ffi.Pointer)>>('CFPropertyListCreateData'); + CFAllocatorRef, + CFPropertyListRef, + CFIndex, + CFOptionFlags, + ffi.Pointer, + ) + > + >('CFPropertyListCreateData'); late final _CFPropertyListCreateData = _CFPropertyListCreateDataPtr.asFunction< - CFDataRef Function(CFAllocatorRef, CFPropertyListRef, int, int, - ffi.Pointer)>(); + CFDataRef Function( + CFAllocatorRef, + CFPropertyListRef, + int, + int, + ffi.Pointer, + ) + >(); late final ffi.Pointer _kCFTypeSetCallBacks = _lookup('kCFTypeSetCallBacks'); @@ -27263,83 +27329,91 @@ class NativeCupertinoHttp { int numValues, ffi.Pointer callBacks, ) { - return _CFSetCreate( - allocator, - values, - numValues, - callBacks, - ); + return _CFSetCreate(allocator, values, numValues, callBacks); } - late final _CFSetCreatePtr = _lookup< - ffi.NativeFunction< - CFSetRef Function(CFAllocatorRef, ffi.Pointer>, - CFIndex, ffi.Pointer)>>('CFSetCreate'); - late final _CFSetCreate = _CFSetCreatePtr.asFunction< - CFSetRef Function(CFAllocatorRef, ffi.Pointer>, int, - ffi.Pointer)>(); + late final _CFSetCreatePtr = + _lookup< + ffi.NativeFunction< + CFSetRef Function( + CFAllocatorRef, + ffi.Pointer>, + CFIndex, + ffi.Pointer, + ) + > + >('CFSetCreate'); + late final _CFSetCreate = + _CFSetCreatePtr.asFunction< + CFSetRef Function( + CFAllocatorRef, + ffi.Pointer>, + int, + ffi.Pointer, + ) + >(); - CFSetRef CFSetCreateCopy( - CFAllocatorRef allocator, - CFSetRef theSet, - ) { - return _CFSetCreateCopy( - allocator, - theSet, - ); + CFSetRef CFSetCreateCopy(CFAllocatorRef allocator, CFSetRef theSet) { + return _CFSetCreateCopy(allocator, theSet); } late final _CFSetCreateCopyPtr = _lookup>( - 'CFSetCreateCopy'); - late final _CFSetCreateCopy = _CFSetCreateCopyPtr.asFunction< - CFSetRef Function(CFAllocatorRef, CFSetRef)>(); + 'CFSetCreateCopy', + ); + late final _CFSetCreateCopy = + _CFSetCreateCopyPtr.asFunction< + CFSetRef Function(CFAllocatorRef, CFSetRef) + >(); CFMutableSetRef CFSetCreateMutable( CFAllocatorRef allocator, int capacity, ffi.Pointer callBacks, ) { - return _CFSetCreateMutable( - allocator, - capacity, - callBacks, - ); + return _CFSetCreateMutable(allocator, capacity, callBacks); } - late final _CFSetCreateMutablePtr = _lookup< - ffi.NativeFunction< - CFMutableSetRef Function(CFAllocatorRef, CFIndex, - ffi.Pointer)>>('CFSetCreateMutable'); - late final _CFSetCreateMutable = _CFSetCreateMutablePtr.asFunction< - CFMutableSetRef Function( - CFAllocatorRef, int, ffi.Pointer)>(); + late final _CFSetCreateMutablePtr = + _lookup< + ffi.NativeFunction< + CFMutableSetRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ) + > + >('CFSetCreateMutable'); + late final _CFSetCreateMutable = + _CFSetCreateMutablePtr.asFunction< + CFMutableSetRef Function( + CFAllocatorRef, + int, + ffi.Pointer, + ) + >(); CFMutableSetRef CFSetCreateMutableCopy( CFAllocatorRef allocator, int capacity, CFSetRef theSet, ) { - return _CFSetCreateMutableCopy( - allocator, - capacity, - theSet, - ); + return _CFSetCreateMutableCopy(allocator, capacity, theSet); } - late final _CFSetCreateMutableCopyPtr = _lookup< - ffi.NativeFunction< - CFMutableSetRef Function( - CFAllocatorRef, CFIndex, CFSetRef)>>('CFSetCreateMutableCopy'); - late final _CFSetCreateMutableCopy = _CFSetCreateMutableCopyPtr.asFunction< - CFMutableSetRef Function(CFAllocatorRef, int, CFSetRef)>(); + late final _CFSetCreateMutableCopyPtr = + _lookup< + ffi.NativeFunction< + CFMutableSetRef Function(CFAllocatorRef, CFIndex, CFSetRef) + > + >('CFSetCreateMutableCopy'); + late final _CFSetCreateMutableCopy = + _CFSetCreateMutableCopyPtr.asFunction< + CFMutableSetRef Function(CFAllocatorRef, int, CFSetRef) + >(); - int CFSetGetCount( - CFSetRef theSet, - ) { - return _CFSetGetCount( - theSet, - ); + int CFSetGetCount(CFSetRef theSet) { + return _CFSetGetCount(theSet); } late final _CFSetGetCountPtr = @@ -27347,192 +27421,186 @@ class NativeCupertinoHttp { late final _CFSetGetCount = _CFSetGetCountPtr.asFunction(); - int CFSetGetCountOfValue( - CFSetRef theSet, - ffi.Pointer value, - ) { - return _CFSetGetCountOfValue( - theSet, - value, - ); + int CFSetGetCountOfValue(CFSetRef theSet, ffi.Pointer value) { + return _CFSetGetCountOfValue(theSet, value); } - late final _CFSetGetCountOfValuePtr = _lookup< - ffi - .NativeFunction)>>( - 'CFSetGetCountOfValue'); - late final _CFSetGetCountOfValue = _CFSetGetCountOfValuePtr.asFunction< - int Function(CFSetRef, ffi.Pointer)>(); + late final _CFSetGetCountOfValuePtr = + _lookup< + ffi.NativeFunction)> + >('CFSetGetCountOfValue'); + late final _CFSetGetCountOfValue = + _CFSetGetCountOfValuePtr.asFunction< + int Function(CFSetRef, ffi.Pointer) + >(); - int CFSetContainsValue( - CFSetRef theSet, - ffi.Pointer value, - ) { - return _CFSetContainsValue( - theSet, - value, - ); + int CFSetContainsValue(CFSetRef theSet, ffi.Pointer value) { + return _CFSetContainsValue(theSet, value); } - late final _CFSetContainsValuePtr = _lookup< - ffi - .NativeFunction)>>( - 'CFSetContainsValue'); - late final _CFSetContainsValue = _CFSetContainsValuePtr.asFunction< - int Function(CFSetRef, ffi.Pointer)>(); + late final _CFSetContainsValuePtr = + _lookup< + ffi.NativeFunction)> + >('CFSetContainsValue'); + late final _CFSetContainsValue = + _CFSetContainsValuePtr.asFunction< + int Function(CFSetRef, ffi.Pointer) + >(); ffi.Pointer CFSetGetValue( CFSetRef theSet, ffi.Pointer value, ) { - return _CFSetGetValue( - theSet, - value, - ); + return _CFSetGetValue(theSet, value); } - late final _CFSetGetValuePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CFSetRef, ffi.Pointer)>>('CFSetGetValue'); - late final _CFSetGetValue = _CFSetGetValuePtr.asFunction< - ffi.Pointer Function(CFSetRef, ffi.Pointer)>(); + late final _CFSetGetValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CFSetRef, ffi.Pointer) + > + >('CFSetGetValue'); + late final _CFSetGetValue = + _CFSetGetValuePtr.asFunction< + ffi.Pointer Function(CFSetRef, ffi.Pointer) + >(); int CFSetGetValueIfPresent( CFSetRef theSet, ffi.Pointer candidate, ffi.Pointer> value, ) { - return _CFSetGetValueIfPresent( - theSet, - candidate, - value, - ); + return _CFSetGetValueIfPresent(theSet, candidate, value); } - late final _CFSetGetValueIfPresentPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFSetRef, ffi.Pointer, - ffi.Pointer>)>>('CFSetGetValueIfPresent'); - late final _CFSetGetValueIfPresent = _CFSetGetValueIfPresentPtr.asFunction< - int Function(CFSetRef, ffi.Pointer, - ffi.Pointer>)>(); + late final _CFSetGetValueIfPresentPtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFSetRef, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('CFSetGetValueIfPresent'); + late final _CFSetGetValueIfPresent = + _CFSetGetValueIfPresentPtr.asFunction< + int Function( + CFSetRef, + ffi.Pointer, + ffi.Pointer>, + ) + >(); void CFSetGetValues( CFSetRef theSet, ffi.Pointer> values, ) { - return _CFSetGetValues( - theSet, - values, - ); + return _CFSetGetValues(theSet, values); } - late final _CFSetGetValuesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFSetRef, ffi.Pointer>)>>('CFSetGetValues'); - late final _CFSetGetValues = _CFSetGetValuesPtr.asFunction< - void Function(CFSetRef, ffi.Pointer>)>(); + late final _CFSetGetValuesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFSetRef, ffi.Pointer>) + > + >('CFSetGetValues'); + late final _CFSetGetValues = + _CFSetGetValuesPtr.asFunction< + void Function(CFSetRef, ffi.Pointer>) + >(); void CFSetApplyFunction( CFSetRef theSet, CFSetApplierFunction applier, ffi.Pointer context, ) { - return _CFSetApplyFunction( - theSet, - applier, - context, - ); + return _CFSetApplyFunction(theSet, applier, context); } - late final _CFSetApplyFunctionPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFSetRef, CFSetApplierFunction, - ffi.Pointer)>>('CFSetApplyFunction'); - late final _CFSetApplyFunction = _CFSetApplyFunctionPtr.asFunction< - void Function(CFSetRef, CFSetApplierFunction, ffi.Pointer)>(); + late final _CFSetApplyFunctionPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFSetRef, + CFSetApplierFunction, + ffi.Pointer, + ) + > + >('CFSetApplyFunction'); + late final _CFSetApplyFunction = + _CFSetApplyFunctionPtr.asFunction< + void Function(CFSetRef, CFSetApplierFunction, ffi.Pointer) + >(); - void CFSetAddValue( - CFMutableSetRef theSet, - ffi.Pointer value, - ) { - return _CFSetAddValue( - theSet, - value, - ); + void CFSetAddValue(CFMutableSetRef theSet, ffi.Pointer value) { + return _CFSetAddValue(theSet, value); } - late final _CFSetAddValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableSetRef, ffi.Pointer)>>('CFSetAddValue'); - late final _CFSetAddValue = _CFSetAddValuePtr.asFunction< - void Function(CFMutableSetRef, ffi.Pointer)>(); + late final _CFSetAddValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableSetRef, ffi.Pointer) + > + >('CFSetAddValue'); + late final _CFSetAddValue = + _CFSetAddValuePtr.asFunction< + void Function(CFMutableSetRef, ffi.Pointer) + >(); - void CFSetReplaceValue( - CFMutableSetRef theSet, - ffi.Pointer value, - ) { - return _CFSetReplaceValue( - theSet, - value, - ); + void CFSetReplaceValue(CFMutableSetRef theSet, ffi.Pointer value) { + return _CFSetReplaceValue(theSet, value); } - late final _CFSetReplaceValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableSetRef, ffi.Pointer)>>('CFSetReplaceValue'); - late final _CFSetReplaceValue = _CFSetReplaceValuePtr.asFunction< - void Function(CFMutableSetRef, ffi.Pointer)>(); + late final _CFSetReplaceValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableSetRef, ffi.Pointer) + > + >('CFSetReplaceValue'); + late final _CFSetReplaceValue = + _CFSetReplaceValuePtr.asFunction< + void Function(CFMutableSetRef, ffi.Pointer) + >(); - void CFSetSetValue( - CFMutableSetRef theSet, - ffi.Pointer value, - ) { - return _CFSetSetValue( - theSet, - value, - ); + void CFSetSetValue(CFMutableSetRef theSet, ffi.Pointer value) { + return _CFSetSetValue(theSet, value); } - late final _CFSetSetValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableSetRef, ffi.Pointer)>>('CFSetSetValue'); - late final _CFSetSetValue = _CFSetSetValuePtr.asFunction< - void Function(CFMutableSetRef, ffi.Pointer)>(); + late final _CFSetSetValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableSetRef, ffi.Pointer) + > + >('CFSetSetValue'); + late final _CFSetSetValue = + _CFSetSetValuePtr.asFunction< + void Function(CFMutableSetRef, ffi.Pointer) + >(); - void CFSetRemoveValue( - CFMutableSetRef theSet, - ffi.Pointer value, - ) { - return _CFSetRemoveValue( - theSet, - value, - ); + void CFSetRemoveValue(CFMutableSetRef theSet, ffi.Pointer value) { + return _CFSetRemoveValue(theSet, value); } - late final _CFSetRemoveValuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMutableSetRef, ffi.Pointer)>>('CFSetRemoveValue'); - late final _CFSetRemoveValue = _CFSetRemoveValuePtr.asFunction< - void Function(CFMutableSetRef, ffi.Pointer)>(); + late final _CFSetRemoveValuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableSetRef, ffi.Pointer) + > + >('CFSetRemoveValue'); + late final _CFSetRemoveValue = + _CFSetRemoveValuePtr.asFunction< + void Function(CFMutableSetRef, ffi.Pointer) + >(); - void CFSetRemoveAllValues( - CFMutableSetRef theSet, - ) { - return _CFSetRemoveAllValues( - theSet, - ); + void CFSetRemoveAllValues(CFMutableSetRef theSet) { + return _CFSetRemoveAllValues(theSet); } late final _CFSetRemoveAllValuesPtr = _lookup>( - 'CFSetRemoveAllValues'); + 'CFSetRemoveAllValues', + ); late final _CFSetRemoveAllValues = _CFSetRemoveAllValuesPtr.asFunction(); @@ -27549,231 +27617,189 @@ class NativeCupertinoHttp { CFAllocatorRef allocator, ffi.Pointer context, ) { - return _CFTreeCreate( - allocator, - context, - ); + return _CFTreeCreate(allocator, context); } - late final _CFTreeCreatePtr = _lookup< - ffi.NativeFunction< - CFTreeRef Function( - CFAllocatorRef, ffi.Pointer)>>('CFTreeCreate'); - late final _CFTreeCreate = _CFTreeCreatePtr.asFunction< - CFTreeRef Function(CFAllocatorRef, ffi.Pointer)>(); + late final _CFTreeCreatePtr = + _lookup< + ffi.NativeFunction< + CFTreeRef Function(CFAllocatorRef, ffi.Pointer) + > + >('CFTreeCreate'); + late final _CFTreeCreate = + _CFTreeCreatePtr.asFunction< + CFTreeRef Function(CFAllocatorRef, ffi.Pointer) + >(); - CFTreeRef CFTreeGetParent( - CFTreeRef tree, - ) { - return _CFTreeGetParent( - tree, - ); + CFTreeRef CFTreeGetParent(CFTreeRef tree) { + return _CFTreeGetParent(tree); } late final _CFTreeGetParentPtr = _lookup>( - 'CFTreeGetParent'); + 'CFTreeGetParent', + ); late final _CFTreeGetParent = _CFTreeGetParentPtr.asFunction(); - CFTreeRef CFTreeGetNextSibling( - CFTreeRef tree, - ) { - return _CFTreeGetNextSibling( - tree, - ); + CFTreeRef CFTreeGetNextSibling(CFTreeRef tree) { + return _CFTreeGetNextSibling(tree); } late final _CFTreeGetNextSiblingPtr = _lookup>( - 'CFTreeGetNextSibling'); + 'CFTreeGetNextSibling', + ); late final _CFTreeGetNextSibling = _CFTreeGetNextSiblingPtr.asFunction(); - CFTreeRef CFTreeGetFirstChild( - CFTreeRef tree, - ) { - return _CFTreeGetFirstChild( - tree, - ); + CFTreeRef CFTreeGetFirstChild(CFTreeRef tree) { + return _CFTreeGetFirstChild(tree); } late final _CFTreeGetFirstChildPtr = _lookup>( - 'CFTreeGetFirstChild'); + 'CFTreeGetFirstChild', + ); late final _CFTreeGetFirstChild = _CFTreeGetFirstChildPtr.asFunction(); - void CFTreeGetContext( - CFTreeRef tree, - ffi.Pointer context, - ) { - return _CFTreeGetContext( - tree, - context, - ); + void CFTreeGetContext(CFTreeRef tree, ffi.Pointer context) { + return _CFTreeGetContext(tree, context); } - late final _CFTreeGetContextPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFTreeRef, ffi.Pointer)>>('CFTreeGetContext'); - late final _CFTreeGetContext = _CFTreeGetContextPtr.asFunction< - void Function(CFTreeRef, ffi.Pointer)>(); + late final _CFTreeGetContextPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFTreeRef, ffi.Pointer) + > + >('CFTreeGetContext'); + late final _CFTreeGetContext = + _CFTreeGetContextPtr.asFunction< + void Function(CFTreeRef, ffi.Pointer) + >(); - int CFTreeGetChildCount( - CFTreeRef tree, - ) { - return _CFTreeGetChildCount( - tree, - ); + int CFTreeGetChildCount(CFTreeRef tree) { + return _CFTreeGetChildCount(tree); } late final _CFTreeGetChildCountPtr = _lookup>( - 'CFTreeGetChildCount'); + 'CFTreeGetChildCount', + ); late final _CFTreeGetChildCount = _CFTreeGetChildCountPtr.asFunction(); - CFTreeRef CFTreeGetChildAtIndex( - CFTreeRef tree, - int idx, - ) { - return _CFTreeGetChildAtIndex( - tree, - idx, - ); + CFTreeRef CFTreeGetChildAtIndex(CFTreeRef tree, int idx) { + return _CFTreeGetChildAtIndex(tree, idx); } late final _CFTreeGetChildAtIndexPtr = _lookup>( - 'CFTreeGetChildAtIndex'); - late final _CFTreeGetChildAtIndex = _CFTreeGetChildAtIndexPtr.asFunction< - CFTreeRef Function(CFTreeRef, int)>(); + 'CFTreeGetChildAtIndex', + ); + late final _CFTreeGetChildAtIndex = + _CFTreeGetChildAtIndexPtr.asFunction< + CFTreeRef Function(CFTreeRef, int) + >(); - void CFTreeGetChildren( - CFTreeRef tree, - ffi.Pointer children, - ) { - return _CFTreeGetChildren( - tree, - children, - ); + void CFTreeGetChildren(CFTreeRef tree, ffi.Pointer children) { + return _CFTreeGetChildren(tree, children); } - late final _CFTreeGetChildrenPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFTreeRef, ffi.Pointer)>>('CFTreeGetChildren'); - late final _CFTreeGetChildren = _CFTreeGetChildrenPtr.asFunction< - void Function(CFTreeRef, ffi.Pointer)>(); + late final _CFTreeGetChildrenPtr = + _lookup< + ffi.NativeFunction)> + >('CFTreeGetChildren'); + late final _CFTreeGetChildren = + _CFTreeGetChildrenPtr.asFunction< + void Function(CFTreeRef, ffi.Pointer) + >(); void CFTreeApplyFunctionToChildren( CFTreeRef tree, CFTreeApplierFunction applier, ffi.Pointer context, ) { - return _CFTreeApplyFunctionToChildren( - tree, - applier, - context, - ); + return _CFTreeApplyFunctionToChildren(tree, applier, context); } - late final _CFTreeApplyFunctionToChildrenPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFTreeRef, CFTreeApplierFunction, - ffi.Pointer)>>('CFTreeApplyFunctionToChildren'); + late final _CFTreeApplyFunctionToChildrenPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFTreeRef, + CFTreeApplierFunction, + ffi.Pointer, + ) + > + >('CFTreeApplyFunctionToChildren'); late final _CFTreeApplyFunctionToChildren = _CFTreeApplyFunctionToChildrenPtr.asFunction< - void Function( - CFTreeRef, CFTreeApplierFunction, ffi.Pointer)>(); + void Function(CFTreeRef, CFTreeApplierFunction, ffi.Pointer) + >(); - CFTreeRef CFTreeFindRoot( - CFTreeRef tree, - ) { - return _CFTreeFindRoot( - tree, - ); + CFTreeRef CFTreeFindRoot(CFTreeRef tree) { + return _CFTreeFindRoot(tree); } late final _CFTreeFindRootPtr = _lookup>( - 'CFTreeFindRoot'); + 'CFTreeFindRoot', + ); late final _CFTreeFindRoot = _CFTreeFindRootPtr.asFunction(); - void CFTreeSetContext( - CFTreeRef tree, - ffi.Pointer context, - ) { - return _CFTreeSetContext( - tree, - context, - ); + void CFTreeSetContext(CFTreeRef tree, ffi.Pointer context) { + return _CFTreeSetContext(tree, context); } - late final _CFTreeSetContextPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFTreeRef, ffi.Pointer)>>('CFTreeSetContext'); - late final _CFTreeSetContext = _CFTreeSetContextPtr.asFunction< - void Function(CFTreeRef, ffi.Pointer)>(); + late final _CFTreeSetContextPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFTreeRef, ffi.Pointer) + > + >('CFTreeSetContext'); + late final _CFTreeSetContext = + _CFTreeSetContextPtr.asFunction< + void Function(CFTreeRef, ffi.Pointer) + >(); - void CFTreePrependChild( - CFTreeRef tree, - CFTreeRef newChild, - ) { - return _CFTreePrependChild( - tree, - newChild, - ); + void CFTreePrependChild(CFTreeRef tree, CFTreeRef newChild) { + return _CFTreePrependChild(tree, newChild); } late final _CFTreePrependChildPtr = _lookup>( - 'CFTreePrependChild'); + 'CFTreePrependChild', + ); late final _CFTreePrependChild = _CFTreePrependChildPtr.asFunction(); - void CFTreeAppendChild( - CFTreeRef tree, - CFTreeRef newChild, - ) { - return _CFTreeAppendChild( - tree, - newChild, - ); + void CFTreeAppendChild(CFTreeRef tree, CFTreeRef newChild) { + return _CFTreeAppendChild(tree, newChild); } late final _CFTreeAppendChildPtr = _lookup>( - 'CFTreeAppendChild'); + 'CFTreeAppendChild', + ); late final _CFTreeAppendChild = _CFTreeAppendChildPtr.asFunction(); - void CFTreeInsertSibling( - CFTreeRef tree, - CFTreeRef newSibling, - ) { - return _CFTreeInsertSibling( - tree, - newSibling, - ); + void CFTreeInsertSibling(CFTreeRef tree, CFTreeRef newSibling) { + return _CFTreeInsertSibling(tree, newSibling); } late final _CFTreeInsertSiblingPtr = _lookup>( - 'CFTreeInsertSibling'); + 'CFTreeInsertSibling', + ); late final _CFTreeInsertSibling = _CFTreeInsertSiblingPtr.asFunction(); - void CFTreeRemove( - CFTreeRef tree, - ) { - return _CFTreeRemove( - tree, - ); + void CFTreeRemove(CFTreeRef tree) { + return _CFTreeRemove(tree); } late final _CFTreeRemovePtr = @@ -27781,17 +27807,14 @@ class NativeCupertinoHttp { late final _CFTreeRemove = _CFTreeRemovePtr.asFunction(); - void CFTreeRemoveAllChildren( - CFTreeRef tree, - ) { - return _CFTreeRemoveAllChildren( - tree, - ); + void CFTreeRemoveAllChildren(CFTreeRef tree) { + return _CFTreeRemoveAllChildren(tree); } late final _CFTreeRemoveAllChildrenPtr = _lookup>( - 'CFTreeRemoveAllChildren'); + 'CFTreeRemoveAllChildren', + ); late final _CFTreeRemoveAllChildren = _CFTreeRemoveAllChildrenPtr.asFunction(); @@ -27800,19 +27823,23 @@ class NativeCupertinoHttp { CFComparatorFunction comparator, ffi.Pointer context, ) { - return _CFTreeSortChildren( - tree, - comparator, - context, - ); + return _CFTreeSortChildren(tree, comparator, context); } - late final _CFTreeSortChildrenPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFTreeRef, CFComparatorFunction, - ffi.Pointer)>>('CFTreeSortChildren'); - late final _CFTreeSortChildren = _CFTreeSortChildrenPtr.asFunction< - void Function(CFTreeRef, CFComparatorFunction, ffi.Pointer)>(); + late final _CFTreeSortChildrenPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFTreeRef, + CFComparatorFunction, + ffi.Pointer, + ) + > + >('CFTreeSortChildren'); + late final _CFTreeSortChildren = + _CFTreeSortChildrenPtr.asFunction< + void Function(CFTreeRef, CFComparatorFunction, ffi.Pointer) + >(); int CFURLCreateDataAndPropertiesFromResource( CFAllocatorRef alloc, @@ -27832,20 +27859,30 @@ class NativeCupertinoHttp { ); } - late final _CFURLCreateDataAndPropertiesFromResourcePtr = _lookup< - ffi.NativeFunction< - Boolean Function( - CFAllocatorRef, - CFURLRef, - ffi.Pointer, - ffi.Pointer, - CFArrayRef, - ffi.Pointer)>>( - 'CFURLCreateDataAndPropertiesFromResource'); + late final _CFURLCreateDataAndPropertiesFromResourcePtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFAllocatorRef, + CFURLRef, + ffi.Pointer, + ffi.Pointer, + CFArrayRef, + ffi.Pointer, + ) + > + >('CFURLCreateDataAndPropertiesFromResource'); late final _CFURLCreateDataAndPropertiesFromResource = _CFURLCreateDataAndPropertiesFromResourcePtr.asFunction< - int Function(CFAllocatorRef, CFURLRef, ffi.Pointer, - ffi.Pointer, CFArrayRef, ffi.Pointer)>(); + int Function( + CFAllocatorRef, + CFURLRef, + ffi.Pointer, + ffi.Pointer, + CFArrayRef, + ffi.Pointer, + ) + >(); int CFURLWriteDataAndPropertiesToResource( CFURLRef url, @@ -27861,30 +27898,34 @@ class NativeCupertinoHttp { ); } - late final _CFURLWriteDataAndPropertiesToResourcePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFURLRef, CFDataRef, CFDictionaryRef, - ffi.Pointer)>>('CFURLWriteDataAndPropertiesToResource'); + late final _CFURLWriteDataAndPropertiesToResourcePtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFURLRef, + CFDataRef, + CFDictionaryRef, + ffi.Pointer, + ) + > + >('CFURLWriteDataAndPropertiesToResource'); late final _CFURLWriteDataAndPropertiesToResource = _CFURLWriteDataAndPropertiesToResourcePtr.asFunction< - int Function( - CFURLRef, CFDataRef, CFDictionaryRef, ffi.Pointer)>(); + int Function(CFURLRef, CFDataRef, CFDictionaryRef, ffi.Pointer) + >(); - int CFURLDestroyResource( - CFURLRef url, - ffi.Pointer errorCode, - ) { - return _CFURLDestroyResource( - url, - errorCode, - ); + int CFURLDestroyResource(CFURLRef url, ffi.Pointer errorCode) { + return _CFURLDestroyResource(url, errorCode); } - late final _CFURLDestroyResourcePtr = _lookup< - ffi.NativeFunction)>>( - 'CFURLDestroyResource'); - late final _CFURLDestroyResource = _CFURLDestroyResourcePtr.asFunction< - int Function(CFURLRef, ffi.Pointer)>(); + late final _CFURLDestroyResourcePtr = + _lookup< + ffi.NativeFunction)> + >('CFURLDestroyResource'); + late final _CFURLDestroyResource = + _CFURLDestroyResourcePtr.asFunction< + int Function(CFURLRef, ffi.Pointer) + >(); CFTypeRef CFURLCreatePropertyFromResource( CFAllocatorRef alloc, @@ -27892,25 +27933,33 @@ class NativeCupertinoHttp { CFStringRef property, ffi.Pointer errorCode, ) { - return _CFURLCreatePropertyFromResource( - alloc, - url, - property, - errorCode, - ); + return _CFURLCreatePropertyFromResource(alloc, url, property, errorCode); } - late final _CFURLCreatePropertyFromResourcePtr = _lookup< - ffi.NativeFunction< - CFTypeRef Function(CFAllocatorRef, CFURLRef, CFStringRef, - ffi.Pointer)>>('CFURLCreatePropertyFromResource'); + late final _CFURLCreatePropertyFromResourcePtr = + _lookup< + ffi.NativeFunction< + CFTypeRef Function( + CFAllocatorRef, + CFURLRef, + CFStringRef, + ffi.Pointer, + ) + > + >('CFURLCreatePropertyFromResource'); late final _CFURLCreatePropertyFromResource = _CFURLCreatePropertyFromResourcePtr.asFunction< - CFTypeRef Function( - CFAllocatorRef, CFURLRef, CFStringRef, ffi.Pointer)>(); + CFTypeRef Function( + CFAllocatorRef, + CFURLRef, + CFStringRef, + ffi.Pointer, + ) + >(); - late final ffi.Pointer _kCFURLFileExists = - _lookup('kCFURLFileExists'); + late final ffi.Pointer _kCFURLFileExists = _lookup( + 'kCFURLFileExists', + ); CFStringRef get kCFURLFileExists => _kCFURLFileExists.value; @@ -27920,8 +27969,9 @@ class NativeCupertinoHttp { CFStringRef get kCFURLFileDirectoryContents => _kCFURLFileDirectoryContents.value; - late final ffi.Pointer _kCFURLFileLength = - _lookup('kCFURLFileLength'); + late final ffi.Pointer _kCFURLFileLength = _lookup( + 'kCFURLFileLength', + ); CFStringRef get kCFURLFileLength => _kCFURLFileLength.value; @@ -27936,8 +27986,9 @@ class NativeCupertinoHttp { CFStringRef get kCFURLFilePOSIXMode => _kCFURLFilePOSIXMode.value; - late final ffi.Pointer _kCFURLFileOwnerID = - _lookup('kCFURLFileOwnerID'); + late final ffi.Pointer _kCFURLFileOwnerID = _lookup( + 'kCFURLFileOwnerID', + ); CFStringRef get kCFURLFileOwnerID => _kCFURLFileOwnerID.value; @@ -27960,17 +28011,14 @@ class NativeCupertinoHttp { late final _CFUUIDGetTypeID = _CFUUIDGetTypeIDPtr.asFunction(); - CFUUIDRef CFUUIDCreate( - CFAllocatorRef alloc, - ) { - return _CFUUIDCreate( - alloc, - ); + CFUUIDRef CFUUIDCreate(CFAllocatorRef alloc) { + return _CFUUIDCreate(alloc); } late final _CFUUIDCreatePtr = _lookup>( - 'CFUUIDCreate'); + 'CFUUIDCreate', + ); late final _CFUUIDCreate = _CFUUIDCreatePtr.asFunction(); @@ -28014,61 +28062,78 @@ class NativeCupertinoHttp { ); } - late final _CFUUIDCreateWithBytesPtr = _lookup< - ffi.NativeFunction< + late final _CFUUIDCreateWithBytesPtr = + _lookup< + ffi.NativeFunction< CFUUIDRef Function( - CFAllocatorRef, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8)>>('CFUUIDCreateWithBytes'); - late final _CFUUIDCreateWithBytes = _CFUUIDCreateWithBytesPtr.asFunction< - CFUUIDRef Function(CFAllocatorRef, int, int, int, int, int, int, int, int, - int, int, int, int, int, int, int, int)>(); - - CFUUIDRef CFUUIDCreateFromString( - CFAllocatorRef alloc, - CFStringRef uuidStr, - ) { - return _CFUUIDCreateFromString( - alloc, - uuidStr, - ); + CFAllocatorRef, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + ) + > + >('CFUUIDCreateWithBytes'); + late final _CFUUIDCreateWithBytes = + _CFUUIDCreateWithBytesPtr.asFunction< + CFUUIDRef Function( + CFAllocatorRef, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + ) + >(); + + CFUUIDRef CFUUIDCreateFromString(CFAllocatorRef alloc, CFStringRef uuidStr) { + return _CFUUIDCreateFromString(alloc, uuidStr); } - late final _CFUUIDCreateFromStringPtr = _lookup< - ffi.NativeFunction>( - 'CFUUIDCreateFromString'); - late final _CFUUIDCreateFromString = _CFUUIDCreateFromStringPtr.asFunction< - CFUUIDRef Function(CFAllocatorRef, CFStringRef)>(); + late final _CFUUIDCreateFromStringPtr = + _lookup< + ffi.NativeFunction + >('CFUUIDCreateFromString'); + late final _CFUUIDCreateFromString = + _CFUUIDCreateFromStringPtr.asFunction< + CFUUIDRef Function(CFAllocatorRef, CFStringRef) + >(); - CFStringRef CFUUIDCreateString( - CFAllocatorRef alloc, - CFUUIDRef uuid, - ) { - return _CFUUIDCreateString( - alloc, - uuid, - ); + CFStringRef CFUUIDCreateString(CFAllocatorRef alloc, CFUUIDRef uuid) { + return _CFUUIDCreateString(alloc, uuid); } - late final _CFUUIDCreateStringPtr = _lookup< - ffi.NativeFunction>( - 'CFUUIDCreateString'); - late final _CFUUIDCreateString = _CFUUIDCreateStringPtr.asFunction< - CFStringRef Function(CFAllocatorRef, CFUUIDRef)>(); + late final _CFUUIDCreateStringPtr = + _lookup< + ffi.NativeFunction + >('CFUUIDCreateString'); + late final _CFUUIDCreateString = + _CFUUIDCreateStringPtr.asFunction< + CFStringRef Function(CFAllocatorRef, CFUUIDRef) + >(); CFUUIDRef CFUUIDGetConstantUUIDWithBytes( CFAllocatorRef alloc, @@ -28110,60 +28175,76 @@ class NativeCupertinoHttp { ); } - late final _CFUUIDGetConstantUUIDWithBytesPtr = _lookup< - ffi.NativeFunction< + late final _CFUUIDGetConstantUUIDWithBytesPtr = + _lookup< + ffi.NativeFunction< CFUUIDRef Function( - CFAllocatorRef, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8)>>('CFUUIDGetConstantUUIDWithBytes'); + CFAllocatorRef, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + ) + > + >('CFUUIDGetConstantUUIDWithBytes'); late final _CFUUIDGetConstantUUIDWithBytes = _CFUUIDGetConstantUUIDWithBytesPtr.asFunction< - CFUUIDRef Function(CFAllocatorRef, int, int, int, int, int, int, int, - int, int, int, int, int, int, int, int, int)>(); + CFUUIDRef Function( + CFAllocatorRef, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + ) + >(); - CFUUIDBytes CFUUIDGetUUIDBytes( - CFUUIDRef uuid, - ) { - return _CFUUIDGetUUIDBytes( - uuid, - ); + CFUUIDBytes CFUUIDGetUUIDBytes(CFUUIDRef uuid) { + return _CFUUIDGetUUIDBytes(uuid); } late final _CFUUIDGetUUIDBytesPtr = _lookup>( - 'CFUUIDGetUUIDBytes'); + 'CFUUIDGetUUIDBytes', + ); late final _CFUUIDGetUUIDBytes = _CFUUIDGetUUIDBytesPtr.asFunction(); - CFUUIDRef CFUUIDCreateFromUUIDBytes( - CFAllocatorRef alloc, - CFUUIDBytes bytes, - ) { - return _CFUUIDCreateFromUUIDBytes( - alloc, - bytes, - ); + CFUUIDRef CFUUIDCreateFromUUIDBytes(CFAllocatorRef alloc, CFUUIDBytes bytes) { + return _CFUUIDCreateFromUUIDBytes(alloc, bytes); } - late final _CFUUIDCreateFromUUIDBytesPtr = _lookup< - ffi.NativeFunction>( - 'CFUUIDCreateFromUUIDBytes'); - late final _CFUUIDCreateFromUUIDBytes = _CFUUIDCreateFromUUIDBytesPtr - .asFunction(); + late final _CFUUIDCreateFromUUIDBytesPtr = + _lookup< + ffi.NativeFunction + >('CFUUIDCreateFromUUIDBytes'); + late final _CFUUIDCreateFromUUIDBytes = + _CFUUIDCreateFromUUIDBytesPtr.asFunction< + CFUUIDRef Function(CFAllocatorRef, CFUUIDBytes) + >(); CFURLRef CFCopyHomeDirectoryURL() { return _CFCopyHomeDirectoryURL(); @@ -28171,7 +28252,8 @@ class NativeCupertinoHttp { late final _CFCopyHomeDirectoryURLPtr = _lookup>( - 'CFCopyHomeDirectoryURL'); + 'CFCopyHomeDirectoryURL', + ); late final _CFCopyHomeDirectoryURL = _CFCopyHomeDirectoryURLPtr.asFunction(); @@ -28202,8 +28284,9 @@ class NativeCupertinoHttp { CFStringRef get kCFBundleDevelopmentRegionKey => _kCFBundleDevelopmentRegionKey.value; - late final ffi.Pointer _kCFBundleNameKey = - _lookup('kCFBundleNameKey'); + late final ffi.Pointer _kCFBundleNameKey = _lookup( + 'kCFBundleNameKey', + ); CFStringRef get kCFBundleNameKey => _kCFBundleNameKey.value; @@ -28218,24 +28301,23 @@ class NativeCupertinoHttp { late final _CFBundleGetMainBundlePtr = _lookup>( - 'CFBundleGetMainBundle'); + 'CFBundleGetMainBundle', + ); late final _CFBundleGetMainBundle = _CFBundleGetMainBundlePtr.asFunction(); - CFBundleRef CFBundleGetBundleWithIdentifier( - CFStringRef bundleID, - ) { - return _CFBundleGetBundleWithIdentifier( - bundleID, - ); + CFBundleRef CFBundleGetBundleWithIdentifier(CFStringRef bundleID) { + return _CFBundleGetBundleWithIdentifier(bundleID); } late final _CFBundleGetBundleWithIdentifierPtr = _lookup>( - 'CFBundleGetBundleWithIdentifier'); + 'CFBundleGetBundleWithIdentifier', + ); late final _CFBundleGetBundleWithIdentifier = _CFBundleGetBundleWithIdentifierPtr.asFunction< - CFBundleRef Function(CFStringRef)>(); + CFBundleRef Function(CFStringRef) + >(); CFArrayRef CFBundleGetAllBundles() { return _CFBundleGetAllBundles(); @@ -28243,7 +28325,8 @@ class NativeCupertinoHttp { late final _CFBundleGetAllBundlesPtr = _lookup>( - 'CFBundleGetAllBundles'); + 'CFBundleGetAllBundles', + ); late final _CFBundleGetAllBundles = _CFBundleGetAllBundlesPtr.asFunction(); @@ -28256,21 +28339,18 @@ class NativeCupertinoHttp { late final _CFBundleGetTypeID = _CFBundleGetTypeIDPtr.asFunction(); - CFBundleRef CFBundleCreate( - CFAllocatorRef allocator, - CFURLRef bundleURL, - ) { - return _CFBundleCreate( - allocator, - bundleURL, - ); + CFBundleRef CFBundleCreate(CFAllocatorRef allocator, CFURLRef bundleURL) { + return _CFBundleCreate(allocator, bundleURL); } - late final _CFBundleCreatePtr = _lookup< - ffi.NativeFunction>( - 'CFBundleCreate'); - late final _CFBundleCreate = _CFBundleCreatePtr.asFunction< - CFBundleRef Function(CFAllocatorRef, CFURLRef)>(); + late final _CFBundleCreatePtr = + _lookup< + ffi.NativeFunction + >('CFBundleCreate'); + late final _CFBundleCreate = + _CFBundleCreatePtr.asFunction< + CFBundleRef Function(CFAllocatorRef, CFURLRef) + >(); CFArrayRef CFBundleCreateBundlesFromDirectory( CFAllocatorRef allocator, @@ -28284,25 +28364,25 @@ class NativeCupertinoHttp { ); } - late final _CFBundleCreateBundlesFromDirectoryPtr = _lookup< - ffi.NativeFunction< - CFArrayRef Function(CFAllocatorRef, CFURLRef, - CFStringRef)>>('CFBundleCreateBundlesFromDirectory'); + late final _CFBundleCreateBundlesFromDirectoryPtr = + _lookup< + ffi.NativeFunction< + CFArrayRef Function(CFAllocatorRef, CFURLRef, CFStringRef) + > + >('CFBundleCreateBundlesFromDirectory'); late final _CFBundleCreateBundlesFromDirectory = _CFBundleCreateBundlesFromDirectoryPtr.asFunction< - CFArrayRef Function(CFAllocatorRef, CFURLRef, CFStringRef)>(); + CFArrayRef Function(CFAllocatorRef, CFURLRef, CFStringRef) + >(); - CFURLRef CFBundleCopyBundleURL( - CFBundleRef bundle, - ) { - return _CFBundleCopyBundleURL( - bundle, - ); + CFURLRef CFBundleCopyBundleURL(CFBundleRef bundle) { + return _CFBundleCopyBundleURL(bundle); } late final _CFBundleCopyBundleURLPtr = _lookup>( - 'CFBundleCopyBundleURL'); + 'CFBundleCopyBundleURL', + ); late final _CFBundleCopyBundleURL = _CFBundleCopyBundleURLPtr.asFunction(); @@ -28310,231 +28390,211 @@ class NativeCupertinoHttp { CFBundleRef bundle, CFStringRef key, ) { - return _CFBundleGetValueForInfoDictionaryKey( - bundle, - key, - ); + return _CFBundleGetValueForInfoDictionaryKey(bundle, key); } late final _CFBundleGetValueForInfoDictionaryKeyPtr = _lookup>( - 'CFBundleGetValueForInfoDictionaryKey'); + 'CFBundleGetValueForInfoDictionaryKey', + ); late final _CFBundleGetValueForInfoDictionaryKey = _CFBundleGetValueForInfoDictionaryKeyPtr.asFunction< - CFTypeRef Function(CFBundleRef, CFStringRef)>(); + CFTypeRef Function(CFBundleRef, CFStringRef) + >(); - CFDictionaryRef CFBundleGetInfoDictionary( - CFBundleRef bundle, - ) { - return _CFBundleGetInfoDictionary( - bundle, - ); + CFDictionaryRef CFBundleGetInfoDictionary(CFBundleRef bundle) { + return _CFBundleGetInfoDictionary(bundle); } late final _CFBundleGetInfoDictionaryPtr = _lookup>( - 'CFBundleGetInfoDictionary'); - late final _CFBundleGetInfoDictionary = _CFBundleGetInfoDictionaryPtr - .asFunction(); + 'CFBundleGetInfoDictionary', + ); + late final _CFBundleGetInfoDictionary = + _CFBundleGetInfoDictionaryPtr.asFunction< + CFDictionaryRef Function(CFBundleRef) + >(); - CFDictionaryRef CFBundleGetLocalInfoDictionary( - CFBundleRef bundle, - ) { - return _CFBundleGetLocalInfoDictionary( - bundle, - ); + CFDictionaryRef CFBundleGetLocalInfoDictionary(CFBundleRef bundle) { + return _CFBundleGetLocalInfoDictionary(bundle); } late final _CFBundleGetLocalInfoDictionaryPtr = _lookup>( - 'CFBundleGetLocalInfoDictionary'); + 'CFBundleGetLocalInfoDictionary', + ); late final _CFBundleGetLocalInfoDictionary = _CFBundleGetLocalInfoDictionaryPtr.asFunction< - CFDictionaryRef Function(CFBundleRef)>(); + CFDictionaryRef Function(CFBundleRef) + >(); void CFBundleGetPackageInfo( CFBundleRef bundle, ffi.Pointer packageType, ffi.Pointer packageCreator, ) { - return _CFBundleGetPackageInfo( - bundle, - packageType, - packageCreator, - ); + return _CFBundleGetPackageInfo(bundle, packageType, packageCreator); } - late final _CFBundleGetPackageInfoPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFBundleRef, ffi.Pointer, - ffi.Pointer)>>('CFBundleGetPackageInfo'); - late final _CFBundleGetPackageInfo = _CFBundleGetPackageInfoPtr.asFunction< - void Function(CFBundleRef, ffi.Pointer, ffi.Pointer)>(); + late final _CFBundleGetPackageInfoPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFBundleRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFBundleGetPackageInfo'); + late final _CFBundleGetPackageInfo = + _CFBundleGetPackageInfoPtr.asFunction< + void Function(CFBundleRef, ffi.Pointer, ffi.Pointer) + >(); - CFStringRef CFBundleGetIdentifier( - CFBundleRef bundle, - ) { - return _CFBundleGetIdentifier( - bundle, - ); + CFStringRef CFBundleGetIdentifier(CFBundleRef bundle) { + return _CFBundleGetIdentifier(bundle); } late final _CFBundleGetIdentifierPtr = _lookup>( - 'CFBundleGetIdentifier'); + 'CFBundleGetIdentifier', + ); late final _CFBundleGetIdentifier = _CFBundleGetIdentifierPtr.asFunction(); - int CFBundleGetVersionNumber( - CFBundleRef bundle, - ) { - return _CFBundleGetVersionNumber( - bundle, - ); + int CFBundleGetVersionNumber(CFBundleRef bundle) { + return _CFBundleGetVersionNumber(bundle); } late final _CFBundleGetVersionNumberPtr = _lookup>( - 'CFBundleGetVersionNumber'); + 'CFBundleGetVersionNumber', + ); late final _CFBundleGetVersionNumber = _CFBundleGetVersionNumberPtr.asFunction(); - CFStringRef CFBundleGetDevelopmentRegion( - CFBundleRef bundle, - ) { - return _CFBundleGetDevelopmentRegion( - bundle, - ); + CFStringRef CFBundleGetDevelopmentRegion(CFBundleRef bundle) { + return _CFBundleGetDevelopmentRegion(bundle); } late final _CFBundleGetDevelopmentRegionPtr = _lookup>( - 'CFBundleGetDevelopmentRegion'); - late final _CFBundleGetDevelopmentRegion = _CFBundleGetDevelopmentRegionPtr - .asFunction(); + 'CFBundleGetDevelopmentRegion', + ); + late final _CFBundleGetDevelopmentRegion = + _CFBundleGetDevelopmentRegionPtr.asFunction< + CFStringRef Function(CFBundleRef) + >(); - CFURLRef CFBundleCopySupportFilesDirectoryURL( - CFBundleRef bundle, - ) { - return _CFBundleCopySupportFilesDirectoryURL( - bundle, - ); + CFURLRef CFBundleCopySupportFilesDirectoryURL(CFBundleRef bundle) { + return _CFBundleCopySupportFilesDirectoryURL(bundle); } late final _CFBundleCopySupportFilesDirectoryURLPtr = _lookup>( - 'CFBundleCopySupportFilesDirectoryURL'); + 'CFBundleCopySupportFilesDirectoryURL', + ); late final _CFBundleCopySupportFilesDirectoryURL = _CFBundleCopySupportFilesDirectoryURLPtr.asFunction< - CFURLRef Function(CFBundleRef)>(); + CFURLRef Function(CFBundleRef) + >(); - CFURLRef CFBundleCopyResourcesDirectoryURL( - CFBundleRef bundle, - ) { - return _CFBundleCopyResourcesDirectoryURL( - bundle, - ); + CFURLRef CFBundleCopyResourcesDirectoryURL(CFBundleRef bundle) { + return _CFBundleCopyResourcesDirectoryURL(bundle); } late final _CFBundleCopyResourcesDirectoryURLPtr = _lookup>( - 'CFBundleCopyResourcesDirectoryURL'); + 'CFBundleCopyResourcesDirectoryURL', + ); late final _CFBundleCopyResourcesDirectoryURL = _CFBundleCopyResourcesDirectoryURLPtr.asFunction< - CFURLRef Function(CFBundleRef)>(); + CFURLRef Function(CFBundleRef) + >(); - CFURLRef CFBundleCopyPrivateFrameworksURL( - CFBundleRef bundle, - ) { - return _CFBundleCopyPrivateFrameworksURL( - bundle, - ); + CFURLRef CFBundleCopyPrivateFrameworksURL(CFBundleRef bundle) { + return _CFBundleCopyPrivateFrameworksURL(bundle); } late final _CFBundleCopyPrivateFrameworksURLPtr = _lookup>( - 'CFBundleCopyPrivateFrameworksURL'); + 'CFBundleCopyPrivateFrameworksURL', + ); late final _CFBundleCopyPrivateFrameworksURL = _CFBundleCopyPrivateFrameworksURLPtr.asFunction< - CFURLRef Function(CFBundleRef)>(); + CFURLRef Function(CFBundleRef) + >(); - CFURLRef CFBundleCopySharedFrameworksURL( - CFBundleRef bundle, - ) { - return _CFBundleCopySharedFrameworksURL( - bundle, - ); + CFURLRef CFBundleCopySharedFrameworksURL(CFBundleRef bundle) { + return _CFBundleCopySharedFrameworksURL(bundle); } late final _CFBundleCopySharedFrameworksURLPtr = _lookup>( - 'CFBundleCopySharedFrameworksURL'); + 'CFBundleCopySharedFrameworksURL', + ); late final _CFBundleCopySharedFrameworksURL = _CFBundleCopySharedFrameworksURLPtr.asFunction< - CFURLRef Function(CFBundleRef)>(); + CFURLRef Function(CFBundleRef) + >(); - CFURLRef CFBundleCopySharedSupportURL( - CFBundleRef bundle, - ) { - return _CFBundleCopySharedSupportURL( - bundle, - ); + CFURLRef CFBundleCopySharedSupportURL(CFBundleRef bundle) { + return _CFBundleCopySharedSupportURL(bundle); } late final _CFBundleCopySharedSupportURLPtr = _lookup>( - 'CFBundleCopySharedSupportURL'); - late final _CFBundleCopySharedSupportURL = _CFBundleCopySharedSupportURLPtr - .asFunction(); + 'CFBundleCopySharedSupportURL', + ); + late final _CFBundleCopySharedSupportURL = + _CFBundleCopySharedSupportURLPtr.asFunction< + CFURLRef Function(CFBundleRef) + >(); - CFURLRef CFBundleCopyBuiltInPlugInsURL( - CFBundleRef bundle, - ) { - return _CFBundleCopyBuiltInPlugInsURL( - bundle, - ); + CFURLRef CFBundleCopyBuiltInPlugInsURL(CFBundleRef bundle) { + return _CFBundleCopyBuiltInPlugInsURL(bundle); } late final _CFBundleCopyBuiltInPlugInsURLPtr = _lookup>( - 'CFBundleCopyBuiltInPlugInsURL'); - late final _CFBundleCopyBuiltInPlugInsURL = _CFBundleCopyBuiltInPlugInsURLPtr - .asFunction(); + 'CFBundleCopyBuiltInPlugInsURL', + ); + late final _CFBundleCopyBuiltInPlugInsURL = + _CFBundleCopyBuiltInPlugInsURLPtr.asFunction< + CFURLRef Function(CFBundleRef) + >(); - CFDictionaryRef CFBundleCopyInfoDictionaryInDirectory( - CFURLRef bundleURL, - ) { - return _CFBundleCopyInfoDictionaryInDirectory( - bundleURL, - ); + CFDictionaryRef CFBundleCopyInfoDictionaryInDirectory(CFURLRef bundleURL) { + return _CFBundleCopyInfoDictionaryInDirectory(bundleURL); } late final _CFBundleCopyInfoDictionaryInDirectoryPtr = _lookup>( - 'CFBundleCopyInfoDictionaryInDirectory'); + 'CFBundleCopyInfoDictionaryInDirectory', + ); late final _CFBundleCopyInfoDictionaryInDirectory = _CFBundleCopyInfoDictionaryInDirectoryPtr.asFunction< - CFDictionaryRef Function(CFURLRef)>(); + CFDictionaryRef Function(CFURLRef) + >(); int CFBundleGetPackageInfoInDirectory( CFURLRef url, ffi.Pointer packageType, ffi.Pointer packageCreator, ) { - return _CFBundleGetPackageInfoInDirectory( - url, - packageType, - packageCreator, - ); + return _CFBundleGetPackageInfoInDirectory(url, packageType, packageCreator); } - late final _CFBundleGetPackageInfoInDirectoryPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFURLRef, ffi.Pointer, - ffi.Pointer)>>('CFBundleGetPackageInfoInDirectory'); + late final _CFBundleGetPackageInfoInDirectoryPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFURLRef, ffi.Pointer, ffi.Pointer) + > + >('CFBundleGetPackageInfoInDirectory'); late final _CFBundleGetPackageInfoInDirectory = _CFBundleGetPackageInfoInDirectoryPtr.asFunction< - int Function(CFURLRef, ffi.Pointer, ffi.Pointer)>(); + int Function(CFURLRef, ffi.Pointer, ffi.Pointer) + >(); CFURLRef CFBundleCopyResourceURL( CFBundleRef bundle, @@ -28550,32 +28610,35 @@ class NativeCupertinoHttp { ); } - late final _CFBundleCopyResourceURLPtr = _lookup< - ffi.NativeFunction< - CFURLRef Function(CFBundleRef, CFStringRef, CFStringRef, - CFStringRef)>>('CFBundleCopyResourceURL'); - late final _CFBundleCopyResourceURL = _CFBundleCopyResourceURLPtr.asFunction< - CFURLRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef)>(); + late final _CFBundleCopyResourceURLPtr = + _lookup< + ffi.NativeFunction< + CFURLRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) + > + >('CFBundleCopyResourceURL'); + late final _CFBundleCopyResourceURL = + _CFBundleCopyResourceURLPtr.asFunction< + CFURLRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) + >(); CFArrayRef CFBundleCopyResourceURLsOfType( CFBundleRef bundle, CFStringRef resourceType, CFStringRef subDirName, ) { - return _CFBundleCopyResourceURLsOfType( - bundle, - resourceType, - subDirName, - ); + return _CFBundleCopyResourceURLsOfType(bundle, resourceType, subDirName); } - late final _CFBundleCopyResourceURLsOfTypePtr = _lookup< - ffi.NativeFunction< - CFArrayRef Function(CFBundleRef, CFStringRef, - CFStringRef)>>('CFBundleCopyResourceURLsOfType'); + late final _CFBundleCopyResourceURLsOfTypePtr = + _lookup< + ffi.NativeFunction< + CFArrayRef Function(CFBundleRef, CFStringRef, CFStringRef) + > + >('CFBundleCopyResourceURLsOfType'); late final _CFBundleCopyResourceURLsOfType = _CFBundleCopyResourceURLsOfTypePtr.asFunction< - CFArrayRef Function(CFBundleRef, CFStringRef, CFStringRef)>(); + CFArrayRef Function(CFBundleRef, CFStringRef, CFStringRef) + >(); CFStringRef CFBundleCopyLocalizedString( CFBundleRef bundle, @@ -28583,22 +28646,24 @@ class NativeCupertinoHttp { CFStringRef value, CFStringRef tableName, ) { - return _CFBundleCopyLocalizedString( - bundle, - key, - value, - tableName, - ); + return _CFBundleCopyLocalizedString(bundle, key, value, tableName); } - late final _CFBundleCopyLocalizedStringPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFBundleRef, CFStringRef, CFStringRef, - CFStringRef)>>('CFBundleCopyLocalizedString'); + late final _CFBundleCopyLocalizedStringPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFBundleRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + > + >('CFBundleCopyLocalizedString'); late final _CFBundleCopyLocalizedString = _CFBundleCopyLocalizedStringPtr.asFunction< - CFStringRef Function( - CFBundleRef, CFStringRef, CFStringRef, CFStringRef)>(); + CFStringRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) + >(); CFStringRef CFBundleCopyLocalizedStringForLocalizations( CFBundleRef bundle, @@ -28616,18 +28681,28 @@ class NativeCupertinoHttp { ); } - late final _CFBundleCopyLocalizedStringForLocalizationsPtr = _lookup< - ffi.NativeFunction< + late final _CFBundleCopyLocalizedStringForLocalizationsPtr = + _lookup< + ffi.NativeFunction< CFStringRef Function( - CFBundleRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFArrayRef)>>('CFBundleCopyLocalizedStringForLocalizations'); + CFBundleRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFArrayRef, + ) + > + >('CFBundleCopyLocalizedStringForLocalizations'); late final _CFBundleCopyLocalizedStringForLocalizations = _CFBundleCopyLocalizedStringForLocalizationsPtr.asFunction< - CFStringRef Function(CFBundleRef, CFStringRef, CFStringRef, - CFStringRef, CFArrayRef)>(); + CFStringRef Function( + CFBundleRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFArrayRef, + ) + >(); CFURLRef CFBundleCopyResourceURLInDirectory( CFURLRef bundleURL, @@ -28643,13 +28718,16 @@ class NativeCupertinoHttp { ); } - late final _CFBundleCopyResourceURLInDirectoryPtr = _lookup< - ffi.NativeFunction< - CFURLRef Function(CFURLRef, CFStringRef, CFStringRef, - CFStringRef)>>('CFBundleCopyResourceURLInDirectory'); + late final _CFBundleCopyResourceURLInDirectoryPtr = + _lookup< + ffi.NativeFunction< + CFURLRef Function(CFURLRef, CFStringRef, CFStringRef, CFStringRef) + > + >('CFBundleCopyResourceURLInDirectory'); late final _CFBundleCopyResourceURLInDirectory = _CFBundleCopyResourceURLInDirectoryPtr.asFunction< - CFURLRef Function(CFURLRef, CFStringRef, CFStringRef, CFStringRef)>(); + CFURLRef Function(CFURLRef, CFStringRef, CFStringRef, CFStringRef) + >(); CFArrayRef CFBundleCopyResourceURLsOfTypeInDirectory( CFURLRef bundleURL, @@ -28663,60 +28741,58 @@ class NativeCupertinoHttp { ); } - late final _CFBundleCopyResourceURLsOfTypeInDirectoryPtr = _lookup< - ffi.NativeFunction< - CFArrayRef Function(CFURLRef, CFStringRef, - CFStringRef)>>('CFBundleCopyResourceURLsOfTypeInDirectory'); + late final _CFBundleCopyResourceURLsOfTypeInDirectoryPtr = + _lookup< + ffi.NativeFunction< + CFArrayRef Function(CFURLRef, CFStringRef, CFStringRef) + > + >('CFBundleCopyResourceURLsOfTypeInDirectory'); late final _CFBundleCopyResourceURLsOfTypeInDirectory = _CFBundleCopyResourceURLsOfTypeInDirectoryPtr.asFunction< - CFArrayRef Function(CFURLRef, CFStringRef, CFStringRef)>(); + CFArrayRef Function(CFURLRef, CFStringRef, CFStringRef) + >(); - CFArrayRef CFBundleCopyBundleLocalizations( - CFBundleRef bundle, - ) { - return _CFBundleCopyBundleLocalizations( - bundle, - ); + CFArrayRef CFBundleCopyBundleLocalizations(CFBundleRef bundle) { + return _CFBundleCopyBundleLocalizations(bundle); } late final _CFBundleCopyBundleLocalizationsPtr = _lookup>( - 'CFBundleCopyBundleLocalizations'); + 'CFBundleCopyBundleLocalizations', + ); late final _CFBundleCopyBundleLocalizations = _CFBundleCopyBundleLocalizationsPtr.asFunction< - CFArrayRef Function(CFBundleRef)>(); + CFArrayRef Function(CFBundleRef) + >(); - CFArrayRef CFBundleCopyPreferredLocalizationsFromArray( - CFArrayRef locArray, - ) { - return _CFBundleCopyPreferredLocalizationsFromArray( - locArray, - ); + CFArrayRef CFBundleCopyPreferredLocalizationsFromArray(CFArrayRef locArray) { + return _CFBundleCopyPreferredLocalizationsFromArray(locArray); } late final _CFBundleCopyPreferredLocalizationsFromArrayPtr = _lookup>( - 'CFBundleCopyPreferredLocalizationsFromArray'); + 'CFBundleCopyPreferredLocalizationsFromArray', + ); late final _CFBundleCopyPreferredLocalizationsFromArray = _CFBundleCopyPreferredLocalizationsFromArrayPtr.asFunction< - CFArrayRef Function(CFArrayRef)>(); + CFArrayRef Function(CFArrayRef) + >(); CFArrayRef CFBundleCopyLocalizationsForPreferences( CFArrayRef locArray, CFArrayRef prefArray, ) { - return _CFBundleCopyLocalizationsForPreferences( - locArray, - prefArray, - ); + return _CFBundleCopyLocalizationsForPreferences(locArray, prefArray); } late final _CFBundleCopyLocalizationsForPreferencesPtr = _lookup>( - 'CFBundleCopyLocalizationsForPreferences'); + 'CFBundleCopyLocalizationsForPreferences', + ); late final _CFBundleCopyLocalizationsForPreferences = _CFBundleCopyLocalizationsForPreferencesPtr.asFunction< - CFArrayRef Function(CFArrayRef, CFArrayRef)>(); + CFArrayRef Function(CFArrayRef, CFArrayRef) + >(); CFURLRef CFBundleCopyResourceURLForLocalization( CFBundleRef bundle, @@ -28734,14 +28810,28 @@ class NativeCupertinoHttp { ); } - late final _CFBundleCopyResourceURLForLocalizationPtr = _lookup< - ffi.NativeFunction< - CFURLRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef, - CFStringRef)>>('CFBundleCopyResourceURLForLocalization'); + late final _CFBundleCopyResourceURLForLocalizationPtr = + _lookup< + ffi.NativeFunction< + CFURLRef Function( + CFBundleRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + > + >('CFBundleCopyResourceURLForLocalization'); late final _CFBundleCopyResourceURLForLocalization = _CFBundleCopyResourceURLForLocalizationPtr.asFunction< - CFURLRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef, - CFStringRef)>(); + CFURLRef Function( + CFBundleRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + >(); CFArrayRef CFBundleCopyResourceURLsOfTypeForLocalization( CFBundleRef bundle, @@ -28757,163 +28847,153 @@ class NativeCupertinoHttp { ); } - late final _CFBundleCopyResourceURLsOfTypeForLocalizationPtr = _lookup< - ffi.NativeFunction< - CFArrayRef Function(CFBundleRef, CFStringRef, CFStringRef, - CFStringRef)>>('CFBundleCopyResourceURLsOfTypeForLocalization'); + late final _CFBundleCopyResourceURLsOfTypeForLocalizationPtr = + _lookup< + ffi.NativeFunction< + CFArrayRef Function( + CFBundleRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + > + >('CFBundleCopyResourceURLsOfTypeForLocalization'); late final _CFBundleCopyResourceURLsOfTypeForLocalization = _CFBundleCopyResourceURLsOfTypeForLocalizationPtr.asFunction< - CFArrayRef Function( - CFBundleRef, CFStringRef, CFStringRef, CFStringRef)>(); + CFArrayRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) + >(); - CFDictionaryRef CFBundleCopyInfoDictionaryForURL( - CFURLRef url, - ) { - return _CFBundleCopyInfoDictionaryForURL( - url, - ); + CFDictionaryRef CFBundleCopyInfoDictionaryForURL(CFURLRef url) { + return _CFBundleCopyInfoDictionaryForURL(url); } late final _CFBundleCopyInfoDictionaryForURLPtr = _lookup>( - 'CFBundleCopyInfoDictionaryForURL'); + 'CFBundleCopyInfoDictionaryForURL', + ); late final _CFBundleCopyInfoDictionaryForURL = _CFBundleCopyInfoDictionaryForURLPtr.asFunction< - CFDictionaryRef Function(CFURLRef)>(); + CFDictionaryRef Function(CFURLRef) + >(); - CFArrayRef CFBundleCopyLocalizationsForURL( - CFURLRef url, - ) { - return _CFBundleCopyLocalizationsForURL( - url, - ); + CFArrayRef CFBundleCopyLocalizationsForURL(CFURLRef url) { + return _CFBundleCopyLocalizationsForURL(url); } late final _CFBundleCopyLocalizationsForURLPtr = _lookup>( - 'CFBundleCopyLocalizationsForURL'); + 'CFBundleCopyLocalizationsForURL', + ); late final _CFBundleCopyLocalizationsForURL = _CFBundleCopyLocalizationsForURLPtr.asFunction< - CFArrayRef Function(CFURLRef)>(); + CFArrayRef Function(CFURLRef) + >(); - CFArrayRef CFBundleCopyExecutableArchitecturesForURL( - CFURLRef url, - ) { - return _CFBundleCopyExecutableArchitecturesForURL( - url, - ); + CFArrayRef CFBundleCopyExecutableArchitecturesForURL(CFURLRef url) { + return _CFBundleCopyExecutableArchitecturesForURL(url); } late final _CFBundleCopyExecutableArchitecturesForURLPtr = _lookup>( - 'CFBundleCopyExecutableArchitecturesForURL'); + 'CFBundleCopyExecutableArchitecturesForURL', + ); late final _CFBundleCopyExecutableArchitecturesForURL = _CFBundleCopyExecutableArchitecturesForURLPtr.asFunction< - CFArrayRef Function(CFURLRef)>(); + CFArrayRef Function(CFURLRef) + >(); - CFURLRef CFBundleCopyExecutableURL( - CFBundleRef bundle, - ) { - return _CFBundleCopyExecutableURL( - bundle, - ); + CFURLRef CFBundleCopyExecutableURL(CFBundleRef bundle) { + return _CFBundleCopyExecutableURL(bundle); } late final _CFBundleCopyExecutableURLPtr = _lookup>( - 'CFBundleCopyExecutableURL'); - late final _CFBundleCopyExecutableURL = _CFBundleCopyExecutableURLPtr - .asFunction(); + 'CFBundleCopyExecutableURL', + ); + late final _CFBundleCopyExecutableURL = + _CFBundleCopyExecutableURLPtr.asFunction< + CFURLRef Function(CFBundleRef) + >(); - CFArrayRef CFBundleCopyExecutableArchitectures( - CFBundleRef bundle, - ) { - return _CFBundleCopyExecutableArchitectures( - bundle, - ); + CFArrayRef CFBundleCopyExecutableArchitectures(CFBundleRef bundle) { + return _CFBundleCopyExecutableArchitectures(bundle); } late final _CFBundleCopyExecutableArchitecturesPtr = _lookup>( - 'CFBundleCopyExecutableArchitectures'); + 'CFBundleCopyExecutableArchitectures', + ); late final _CFBundleCopyExecutableArchitectures = _CFBundleCopyExecutableArchitecturesPtr.asFunction< - CFArrayRef Function(CFBundleRef)>(); + CFArrayRef Function(CFBundleRef) + >(); int CFBundlePreflightExecutable( CFBundleRef bundle, ffi.Pointer error, ) { - return _CFBundlePreflightExecutable( - bundle, - error, - ); + return _CFBundlePreflightExecutable(bundle, error); } - late final _CFBundlePreflightExecutablePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFBundleRef, - ffi.Pointer)>>('CFBundlePreflightExecutable'); - late final _CFBundlePreflightExecutable = _CFBundlePreflightExecutablePtr - .asFunction)>(); + late final _CFBundlePreflightExecutablePtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFBundleRef, ffi.Pointer) + > + >('CFBundlePreflightExecutable'); + late final _CFBundlePreflightExecutable = + _CFBundlePreflightExecutablePtr.asFunction< + int Function(CFBundleRef, ffi.Pointer) + >(); int CFBundleLoadExecutableAndReturnError( CFBundleRef bundle, ffi.Pointer error, ) { - return _CFBundleLoadExecutableAndReturnError( - bundle, - error, - ); + return _CFBundleLoadExecutableAndReturnError(bundle, error); } - late final _CFBundleLoadExecutableAndReturnErrorPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFBundleRef, ffi.Pointer)>>( - 'CFBundleLoadExecutableAndReturnError'); + late final _CFBundleLoadExecutableAndReturnErrorPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFBundleRef, ffi.Pointer) + > + >('CFBundleLoadExecutableAndReturnError'); late final _CFBundleLoadExecutableAndReturnError = _CFBundleLoadExecutableAndReturnErrorPtr.asFunction< - int Function(CFBundleRef, ffi.Pointer)>(); + int Function(CFBundleRef, ffi.Pointer) + >(); - int CFBundleLoadExecutable( - CFBundleRef bundle, - ) { - return _CFBundleLoadExecutable( - bundle, - ); + int CFBundleLoadExecutable(CFBundleRef bundle) { + return _CFBundleLoadExecutable(bundle); } late final _CFBundleLoadExecutablePtr = _lookup>( - 'CFBundleLoadExecutable'); + 'CFBundleLoadExecutable', + ); late final _CFBundleLoadExecutable = _CFBundleLoadExecutablePtr.asFunction(); - int CFBundleIsExecutableLoaded( - CFBundleRef bundle, - ) { - return _CFBundleIsExecutableLoaded( - bundle, - ); + int CFBundleIsExecutableLoaded(CFBundleRef bundle) { + return _CFBundleIsExecutableLoaded(bundle); } late final _CFBundleIsExecutableLoadedPtr = _lookup>( - 'CFBundleIsExecutableLoaded'); + 'CFBundleIsExecutableLoaded', + ); late final _CFBundleIsExecutableLoaded = _CFBundleIsExecutableLoadedPtr.asFunction(); - void CFBundleUnloadExecutable( - CFBundleRef bundle, - ) { - return _CFBundleUnloadExecutable( - bundle, - ); + void CFBundleUnloadExecutable(CFBundleRef bundle) { + return _CFBundleUnloadExecutable(bundle); } late final _CFBundleUnloadExecutablePtr = _lookup>( - 'CFBundleUnloadExecutable'); + 'CFBundleUnloadExecutable', + ); late final _CFBundleUnloadExecutable = _CFBundleUnloadExecutablePtr.asFunction(); @@ -28921,166 +29001,162 @@ class NativeCupertinoHttp { CFBundleRef bundle, CFStringRef functionName, ) { - return _CFBundleGetFunctionPointerForName( - bundle, - functionName, - ); + return _CFBundleGetFunctionPointerForName(bundle, functionName); } - late final _CFBundleGetFunctionPointerForNamePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CFBundleRef, CFStringRef)>>('CFBundleGetFunctionPointerForName'); + late final _CFBundleGetFunctionPointerForNamePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CFBundleRef, CFStringRef) + > + >('CFBundleGetFunctionPointerForName'); late final _CFBundleGetFunctionPointerForName = _CFBundleGetFunctionPointerForNamePtr.asFunction< - ffi.Pointer Function(CFBundleRef, CFStringRef)>(); + ffi.Pointer Function(CFBundleRef, CFStringRef) + >(); void CFBundleGetFunctionPointersForNames( CFBundleRef bundle, CFArrayRef functionNames, ffi.Pointer> ftbl, ) { - return _CFBundleGetFunctionPointersForNames( - bundle, - functionNames, - ftbl, - ); + return _CFBundleGetFunctionPointersForNames(bundle, functionNames, ftbl); } - late final _CFBundleGetFunctionPointersForNamesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFBundleRef, CFArrayRef, - ffi.Pointer>)>>( - 'CFBundleGetFunctionPointersForNames'); + late final _CFBundleGetFunctionPointersForNamesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFBundleRef, + CFArrayRef, + ffi.Pointer>, + ) + > + >('CFBundleGetFunctionPointersForNames'); late final _CFBundleGetFunctionPointersForNames = _CFBundleGetFunctionPointersForNamesPtr.asFunction< - void Function( - CFBundleRef, CFArrayRef, ffi.Pointer>)>(); + void Function( + CFBundleRef, + CFArrayRef, + ffi.Pointer>, + ) + >(); ffi.Pointer CFBundleGetDataPointerForName( CFBundleRef bundle, CFStringRef symbolName, ) { - return _CFBundleGetDataPointerForName( - bundle, - symbolName, - ); + return _CFBundleGetDataPointerForName(bundle, symbolName); } - late final _CFBundleGetDataPointerForNamePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CFBundleRef, CFStringRef)>>('CFBundleGetDataPointerForName'); - late final _CFBundleGetDataPointerForName = _CFBundleGetDataPointerForNamePtr - .asFunction Function(CFBundleRef, CFStringRef)>(); + late final _CFBundleGetDataPointerForNamePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CFBundleRef, CFStringRef) + > + >('CFBundleGetDataPointerForName'); + late final _CFBundleGetDataPointerForName = + _CFBundleGetDataPointerForNamePtr.asFunction< + ffi.Pointer Function(CFBundleRef, CFStringRef) + >(); void CFBundleGetDataPointersForNames( CFBundleRef bundle, CFArrayRef symbolNames, ffi.Pointer> stbl, ) { - return _CFBundleGetDataPointersForNames( - bundle, - symbolNames, - stbl, - ); + return _CFBundleGetDataPointersForNames(bundle, symbolNames, stbl); } - late final _CFBundleGetDataPointersForNamesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFBundleRef, CFArrayRef, - ffi.Pointer>)>>( - 'CFBundleGetDataPointersForNames'); + late final _CFBundleGetDataPointersForNamesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFBundleRef, + CFArrayRef, + ffi.Pointer>, + ) + > + >('CFBundleGetDataPointersForNames'); late final _CFBundleGetDataPointersForNames = _CFBundleGetDataPointersForNamesPtr.asFunction< - void Function( - CFBundleRef, CFArrayRef, ffi.Pointer>)>(); + void Function( + CFBundleRef, + CFArrayRef, + ffi.Pointer>, + ) + >(); CFURLRef CFBundleCopyAuxiliaryExecutableURL( CFBundleRef bundle, CFStringRef executableName, ) { - return _CFBundleCopyAuxiliaryExecutableURL( - bundle, - executableName, - ); + return _CFBundleCopyAuxiliaryExecutableURL(bundle, executableName); } late final _CFBundleCopyAuxiliaryExecutableURLPtr = _lookup>( - 'CFBundleCopyAuxiliaryExecutableURL'); + 'CFBundleCopyAuxiliaryExecutableURL', + ); late final _CFBundleCopyAuxiliaryExecutableURL = _CFBundleCopyAuxiliaryExecutableURLPtr.asFunction< - CFURLRef Function(CFBundleRef, CFStringRef)>(); + CFURLRef Function(CFBundleRef, CFStringRef) + >(); - int CFBundleIsExecutableLoadable( - CFBundleRef bundle, - ) { - return _CFBundleIsExecutableLoadable( - bundle, - ); + int CFBundleIsExecutableLoadable(CFBundleRef bundle) { + return _CFBundleIsExecutableLoadable(bundle); } late final _CFBundleIsExecutableLoadablePtr = _lookup>( - 'CFBundleIsExecutableLoadable'); + 'CFBundleIsExecutableLoadable', + ); late final _CFBundleIsExecutableLoadable = _CFBundleIsExecutableLoadablePtr.asFunction(); - int CFBundleIsExecutableLoadableForURL( - CFURLRef url, - ) { - return _CFBundleIsExecutableLoadableForURL( - url, - ); + int CFBundleIsExecutableLoadableForURL(CFURLRef url) { + return _CFBundleIsExecutableLoadableForURL(url); } late final _CFBundleIsExecutableLoadableForURLPtr = _lookup>( - 'CFBundleIsExecutableLoadableForURL'); + 'CFBundleIsExecutableLoadableForURL', + ); late final _CFBundleIsExecutableLoadableForURL = _CFBundleIsExecutableLoadableForURLPtr.asFunction< - int Function(CFURLRef)>(); + int Function(CFURLRef) + >(); - int CFBundleIsArchitectureLoadable( - int arch, - ) { - return _CFBundleIsArchitectureLoadable( - arch, - ); + int CFBundleIsArchitectureLoadable(int arch) { + return _CFBundleIsArchitectureLoadable(arch); } late final _CFBundleIsArchitectureLoadablePtr = _lookup>( - 'CFBundleIsArchitectureLoadable'); + 'CFBundleIsArchitectureLoadable', + ); late final _CFBundleIsArchitectureLoadable = _CFBundleIsArchitectureLoadablePtr.asFunction(); - CFPlugInRef CFBundleGetPlugIn( - CFBundleRef bundle, - ) { - return _CFBundleGetPlugIn( - bundle, - ); + CFPlugInRef CFBundleGetPlugIn(CFBundleRef bundle) { + return _CFBundleGetPlugIn(bundle); } late final _CFBundleGetPlugInPtr = _lookup>( - 'CFBundleGetPlugIn'); + 'CFBundleGetPlugIn', + ); late final _CFBundleGetPlugIn = _CFBundleGetPlugInPtr.asFunction(); - int CFBundleOpenBundleResourceMap( - CFBundleRef bundle, - ) { - return _CFBundleOpenBundleResourceMap( - bundle, - ); + int CFBundleOpenBundleResourceMap(CFBundleRef bundle) { + return _CFBundleOpenBundleResourceMap(bundle); } late final _CFBundleOpenBundleResourceMapPtr = _lookup>( - 'CFBundleOpenBundleResourceMap'); + 'CFBundleOpenBundleResourceMap', + ); late final _CFBundleOpenBundleResourceMap = _CFBundleOpenBundleResourceMapPtr.asFunction(); @@ -29089,38 +29165,40 @@ class NativeCupertinoHttp { ffi.Pointer refNum, ffi.Pointer localizedRefNum, ) { - return _CFBundleOpenBundleResourceFiles( - bundle, - refNum, - localizedRefNum, - ); + return _CFBundleOpenBundleResourceFiles(bundle, refNum, localizedRefNum); } - late final _CFBundleOpenBundleResourceFilesPtr = _lookup< - ffi.NativeFunction< - SInt32 Function(CFBundleRef, ffi.Pointer, - ffi.Pointer)>>('CFBundleOpenBundleResourceFiles'); + late final _CFBundleOpenBundleResourceFilesPtr = + _lookup< + ffi.NativeFunction< + SInt32 Function( + CFBundleRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFBundleOpenBundleResourceFiles'); late final _CFBundleOpenBundleResourceFiles = _CFBundleOpenBundleResourceFilesPtr.asFunction< - int Function(CFBundleRef, ffi.Pointer, - ffi.Pointer)>(); + int Function( + CFBundleRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); - void CFBundleCloseBundleResourceMap( - CFBundleRef bundle, - int refNum, - ) { - return _CFBundleCloseBundleResourceMap( - bundle, - refNum, - ); + void CFBundleCloseBundleResourceMap(CFBundleRef bundle, int refNum) { + return _CFBundleCloseBundleResourceMap(bundle, refNum); } - late final _CFBundleCloseBundleResourceMapPtr = _lookup< - ffi.NativeFunction>( - 'CFBundleCloseBundleResourceMap'); + late final _CFBundleCloseBundleResourceMapPtr = + _lookup< + ffi.NativeFunction + >('CFBundleCloseBundleResourceMap'); late final _CFBundleCloseBundleResourceMap = _CFBundleCloseBundleResourceMapPtr.asFunction< - void Function(CFBundleRef, int)>(); + void Function(CFBundleRef, int) + >(); int CFMessagePortGetTypeID() { return _CFMessagePortGetTypeID(); @@ -29128,7 +29206,8 @@ class NativeCupertinoHttp { late final _CFMessagePortGetTypeIDPtr = _lookup>( - 'CFMessagePortGetTypeID'); + 'CFMessagePortGetTypeID', + ); late final _CFMessagePortGetTypeID = _CFMessagePortGetTypeIDPtr.asFunction(); @@ -29148,163 +29227,158 @@ class NativeCupertinoHttp { ); } - late final _CFMessagePortCreateLocalPtr = _lookup< - ffi.NativeFunction< + late final _CFMessagePortCreateLocalPtr = + _lookup< + ffi.NativeFunction< CFMessagePortRef Function( - CFAllocatorRef, - CFStringRef, - CFMessagePortCallBack, - ffi.Pointer, - ffi.Pointer)>>('CFMessagePortCreateLocal'); + CFAllocatorRef, + CFStringRef, + CFMessagePortCallBack, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFMessagePortCreateLocal'); late final _CFMessagePortCreateLocal = _CFMessagePortCreateLocalPtr.asFunction< - CFMessagePortRef Function( - CFAllocatorRef, - CFStringRef, - CFMessagePortCallBack, - ffi.Pointer, - ffi.Pointer)>(); + CFMessagePortRef Function( + CFAllocatorRef, + CFStringRef, + CFMessagePortCallBack, + ffi.Pointer, + ffi.Pointer, + ) + >(); CFMessagePortRef CFMessagePortCreateRemote( CFAllocatorRef allocator, CFStringRef name, ) { - return _CFMessagePortCreateRemote( - allocator, - name, - ); + return _CFMessagePortCreateRemote(allocator, name); } - late final _CFMessagePortCreateRemotePtr = _lookup< - ffi.NativeFunction< - CFMessagePortRef Function( - CFAllocatorRef, CFStringRef)>>('CFMessagePortCreateRemote'); - late final _CFMessagePortCreateRemote = _CFMessagePortCreateRemotePtr - .asFunction(); + late final _CFMessagePortCreateRemotePtr = + _lookup< + ffi.NativeFunction< + CFMessagePortRef Function(CFAllocatorRef, CFStringRef) + > + >('CFMessagePortCreateRemote'); + late final _CFMessagePortCreateRemote = + _CFMessagePortCreateRemotePtr.asFunction< + CFMessagePortRef Function(CFAllocatorRef, CFStringRef) + >(); - int CFMessagePortIsRemote( - CFMessagePortRef ms, - ) { - return _CFMessagePortIsRemote( - ms, - ); + int CFMessagePortIsRemote(CFMessagePortRef ms) { + return _CFMessagePortIsRemote(ms); } late final _CFMessagePortIsRemotePtr = _lookup>( - 'CFMessagePortIsRemote'); + 'CFMessagePortIsRemote', + ); late final _CFMessagePortIsRemote = _CFMessagePortIsRemotePtr.asFunction(); - CFStringRef CFMessagePortGetName( - CFMessagePortRef ms, - ) { - return _CFMessagePortGetName( - ms, - ); + CFStringRef CFMessagePortGetName(CFMessagePortRef ms) { + return _CFMessagePortGetName(ms); } late final _CFMessagePortGetNamePtr = _lookup>( - 'CFMessagePortGetName'); - late final _CFMessagePortGetName = _CFMessagePortGetNamePtr.asFunction< - CFStringRef Function(CFMessagePortRef)>(); + 'CFMessagePortGetName', + ); + late final _CFMessagePortGetName = + _CFMessagePortGetNamePtr.asFunction< + CFStringRef Function(CFMessagePortRef) + >(); - int CFMessagePortSetName( - CFMessagePortRef ms, - CFStringRef newName, - ) { - return _CFMessagePortSetName( - ms, - newName, - ); + int CFMessagePortSetName(CFMessagePortRef ms, CFStringRef newName) { + return _CFMessagePortSetName(ms, newName); } - late final _CFMessagePortSetNamePtr = _lookup< - ffi.NativeFunction>( - 'CFMessagePortSetName'); - late final _CFMessagePortSetName = _CFMessagePortSetNamePtr.asFunction< - int Function(CFMessagePortRef, CFStringRef)>(); + late final _CFMessagePortSetNamePtr = + _lookup< + ffi.NativeFunction + >('CFMessagePortSetName'); + late final _CFMessagePortSetName = + _CFMessagePortSetNamePtr.asFunction< + int Function(CFMessagePortRef, CFStringRef) + >(); void CFMessagePortGetContext( CFMessagePortRef ms, ffi.Pointer context, ) { - return _CFMessagePortGetContext( - ms, - context, - ); + return _CFMessagePortGetContext(ms, context); } - late final _CFMessagePortGetContextPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMessagePortRef, - ffi.Pointer)>>('CFMessagePortGetContext'); - late final _CFMessagePortGetContext = _CFMessagePortGetContextPtr.asFunction< - void Function(CFMessagePortRef, ffi.Pointer)>(); + late final _CFMessagePortGetContextPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMessagePortRef, ffi.Pointer) + > + >('CFMessagePortGetContext'); + late final _CFMessagePortGetContext = + _CFMessagePortGetContextPtr.asFunction< + void Function(CFMessagePortRef, ffi.Pointer) + >(); - void CFMessagePortInvalidate( - CFMessagePortRef ms, - ) { - return _CFMessagePortInvalidate( - ms, - ); + void CFMessagePortInvalidate(CFMessagePortRef ms) { + return _CFMessagePortInvalidate(ms); } late final _CFMessagePortInvalidatePtr = _lookup>( - 'CFMessagePortInvalidate'); + 'CFMessagePortInvalidate', + ); late final _CFMessagePortInvalidate = _CFMessagePortInvalidatePtr.asFunction(); - int CFMessagePortIsValid( - CFMessagePortRef ms, - ) { - return _CFMessagePortIsValid( - ms, - ); + int CFMessagePortIsValid(CFMessagePortRef ms) { + return _CFMessagePortIsValid(ms); } late final _CFMessagePortIsValidPtr = _lookup>( - 'CFMessagePortIsValid'); + 'CFMessagePortIsValid', + ); late final _CFMessagePortIsValid = _CFMessagePortIsValidPtr.asFunction(); CFMessagePortInvalidationCallBack CFMessagePortGetInvalidationCallBack( CFMessagePortRef ms, ) { - return _CFMessagePortGetInvalidationCallBack( - ms, - ); + return _CFMessagePortGetInvalidationCallBack(ms); } - late final _CFMessagePortGetInvalidationCallBackPtr = _lookup< - ffi.NativeFunction< - CFMessagePortInvalidationCallBack Function( - CFMessagePortRef)>>('CFMessagePortGetInvalidationCallBack'); + late final _CFMessagePortGetInvalidationCallBackPtr = + _lookup< + ffi.NativeFunction< + CFMessagePortInvalidationCallBack Function(CFMessagePortRef) + > + >('CFMessagePortGetInvalidationCallBack'); late final _CFMessagePortGetInvalidationCallBack = _CFMessagePortGetInvalidationCallBackPtr.asFunction< - CFMessagePortInvalidationCallBack Function(CFMessagePortRef)>(); + CFMessagePortInvalidationCallBack Function(CFMessagePortRef) + >(); void CFMessagePortSetInvalidationCallBack( CFMessagePortRef ms, CFMessagePortInvalidationCallBack callout, ) { - return _CFMessagePortSetInvalidationCallBack( - ms, - callout, - ); + return _CFMessagePortSetInvalidationCallBack(ms, callout); } - late final _CFMessagePortSetInvalidationCallBackPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMessagePortRef, CFMessagePortInvalidationCallBack)>>( - 'CFMessagePortSetInvalidationCallBack'); + late final _CFMessagePortSetInvalidationCallBackPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMessagePortRef, CFMessagePortInvalidationCallBack) + > + >('CFMessagePortSetInvalidationCallBack'); late final _CFMessagePortSetInvalidationCallBack = _CFMessagePortSetInvalidationCallBackPtr.asFunction< - void Function(CFMessagePortRef, CFMessagePortInvalidationCallBack)>(); + void Function(CFMessagePortRef, CFMessagePortInvalidationCallBack) + >(); int CFMessagePortSendRequest( CFMessagePortRef remote, @@ -29326,57 +29400,69 @@ class NativeCupertinoHttp { ); } - late final _CFMessagePortSendRequestPtr = _lookup< - ffi.NativeFunction< + late final _CFMessagePortSendRequestPtr = + _lookup< + ffi.NativeFunction< SInt32 Function( - CFMessagePortRef, - SInt32, - CFDataRef, - CFTimeInterval, - CFTimeInterval, - CFStringRef, - ffi.Pointer)>>('CFMessagePortSendRequest'); + CFMessagePortRef, + SInt32, + CFDataRef, + CFTimeInterval, + CFTimeInterval, + CFStringRef, + ffi.Pointer, + ) + > + >('CFMessagePortSendRequest'); late final _CFMessagePortSendRequest = _CFMessagePortSendRequestPtr.asFunction< - int Function(CFMessagePortRef, int, CFDataRef, double, double, - CFStringRef, ffi.Pointer)>(); + int Function( + CFMessagePortRef, + int, + CFDataRef, + double, + double, + CFStringRef, + ffi.Pointer, + ) + >(); CFRunLoopSourceRef CFMessagePortCreateRunLoopSource( CFAllocatorRef allocator, CFMessagePortRef local, int order, ) { - return _CFMessagePortCreateRunLoopSource( - allocator, - local, - order, - ); + return _CFMessagePortCreateRunLoopSource(allocator, local, order); } - late final _CFMessagePortCreateRunLoopSourcePtr = _lookup< - ffi.NativeFunction< - CFRunLoopSourceRef Function(CFAllocatorRef, CFMessagePortRef, - CFIndex)>>('CFMessagePortCreateRunLoopSource'); + late final _CFMessagePortCreateRunLoopSourcePtr = + _lookup< + ffi.NativeFunction< + CFRunLoopSourceRef Function(CFAllocatorRef, CFMessagePortRef, CFIndex) + > + >('CFMessagePortCreateRunLoopSource'); late final _CFMessagePortCreateRunLoopSource = _CFMessagePortCreateRunLoopSourcePtr.asFunction< - CFRunLoopSourceRef Function(CFAllocatorRef, CFMessagePortRef, int)>(); + CFRunLoopSourceRef Function(CFAllocatorRef, CFMessagePortRef, int) + >(); void CFMessagePortSetDispatchQueue( CFMessagePortRef ms, Dartdispatch_queue_t queue, ) { - return _CFMessagePortSetDispatchQueue( - ms, - queue.ref.pointer, - ); + return _CFMessagePortSetDispatchQueue(ms, queue.ref.pointer); } - late final _CFMessagePortSetDispatchQueuePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMessagePortRef, - dispatch_queue_t)>>('CFMessagePortSetDispatchQueue'); - late final _CFMessagePortSetDispatchQueue = _CFMessagePortSetDispatchQueuePtr - .asFunction(); + late final _CFMessagePortSetDispatchQueuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMessagePortRef, dispatch_queue_t) + > + >('CFMessagePortSetDispatchQueue'); + late final _CFMessagePortSetDispatchQueue = + _CFMessagePortSetDispatchQueuePtr.asFunction< + void Function(CFMessagePortRef, dispatch_queue_t) + >(); late final ffi.Pointer _kCFPlugInDynamicRegistrationKey = _lookup('kCFPlugInDynamicRegistrationKey'); @@ -29401,8 +29487,9 @@ class NativeCupertinoHttp { CFStringRef get kCFPlugInFactoriesKey => _kCFPlugInFactoriesKey.value; - late final ffi.Pointer _kCFPlugInTypesKey = - _lookup('kCFPlugInTypesKey'); + late final ffi.Pointer _kCFPlugInTypesKey = _lookup( + 'kCFPlugInTypesKey', + ); CFStringRef get kCFPlugInTypesKey => _kCFPlugInTypesKey.value; @@ -29415,134 +29502,115 @@ class NativeCupertinoHttp { late final _CFPlugInGetTypeID = _CFPlugInGetTypeIDPtr.asFunction(); - CFPlugInRef CFPlugInCreate( - CFAllocatorRef allocator, - CFURLRef plugInURL, - ) { - return _CFPlugInCreate( - allocator, - plugInURL, - ); + CFPlugInRef CFPlugInCreate(CFAllocatorRef allocator, CFURLRef plugInURL) { + return _CFPlugInCreate(allocator, plugInURL); } - late final _CFPlugInCreatePtr = _lookup< - ffi.NativeFunction>( - 'CFPlugInCreate'); - late final _CFPlugInCreate = _CFPlugInCreatePtr.asFunction< - CFPlugInRef Function(CFAllocatorRef, CFURLRef)>(); + late final _CFPlugInCreatePtr = + _lookup< + ffi.NativeFunction + >('CFPlugInCreate'); + late final _CFPlugInCreate = + _CFPlugInCreatePtr.asFunction< + CFPlugInRef Function(CFAllocatorRef, CFURLRef) + >(); - CFBundleRef CFPlugInGetBundle( - CFPlugInRef plugIn, - ) { - return _CFPlugInGetBundle( - plugIn, - ); + CFBundleRef CFPlugInGetBundle(CFPlugInRef plugIn) { + return _CFPlugInGetBundle(plugIn); } late final _CFPlugInGetBundlePtr = _lookup>( - 'CFPlugInGetBundle'); + 'CFPlugInGetBundle', + ); late final _CFPlugInGetBundle = _CFPlugInGetBundlePtr.asFunction(); - void CFPlugInSetLoadOnDemand( - CFPlugInRef plugIn, - int flag, - ) { - return _CFPlugInSetLoadOnDemand( - plugIn, - flag, - ); + void CFPlugInSetLoadOnDemand(CFPlugInRef plugIn, int flag) { + return _CFPlugInSetLoadOnDemand(plugIn, flag); } late final _CFPlugInSetLoadOnDemandPtr = _lookup>( - 'CFPlugInSetLoadOnDemand'); + 'CFPlugInSetLoadOnDemand', + ); late final _CFPlugInSetLoadOnDemand = _CFPlugInSetLoadOnDemandPtr.asFunction(); - int CFPlugInIsLoadOnDemand( - CFPlugInRef plugIn, - ) { - return _CFPlugInIsLoadOnDemand( - plugIn, - ); + int CFPlugInIsLoadOnDemand(CFPlugInRef plugIn) { + return _CFPlugInIsLoadOnDemand(plugIn); } late final _CFPlugInIsLoadOnDemandPtr = _lookup>( - 'CFPlugInIsLoadOnDemand'); + 'CFPlugInIsLoadOnDemand', + ); late final _CFPlugInIsLoadOnDemand = _CFPlugInIsLoadOnDemandPtr.asFunction(); - CFArrayRef CFPlugInFindFactoriesForPlugInType( - CFUUIDRef typeUUID, - ) { - return _CFPlugInFindFactoriesForPlugInType( - typeUUID, - ); + CFArrayRef CFPlugInFindFactoriesForPlugInType(CFUUIDRef typeUUID) { + return _CFPlugInFindFactoriesForPlugInType(typeUUID); } late final _CFPlugInFindFactoriesForPlugInTypePtr = _lookup>( - 'CFPlugInFindFactoriesForPlugInType'); + 'CFPlugInFindFactoriesForPlugInType', + ); late final _CFPlugInFindFactoriesForPlugInType = _CFPlugInFindFactoriesForPlugInTypePtr.asFunction< - CFArrayRef Function(CFUUIDRef)>(); + CFArrayRef Function(CFUUIDRef) + >(); CFArrayRef CFPlugInFindFactoriesForPlugInTypeInPlugIn( CFUUIDRef typeUUID, CFPlugInRef plugIn, ) { - return _CFPlugInFindFactoriesForPlugInTypeInPlugIn( - typeUUID, - plugIn, - ); + return _CFPlugInFindFactoriesForPlugInTypeInPlugIn(typeUUID, plugIn); } late final _CFPlugInFindFactoriesForPlugInTypeInPlugInPtr = _lookup>( - 'CFPlugInFindFactoriesForPlugInTypeInPlugIn'); + 'CFPlugInFindFactoriesForPlugInTypeInPlugIn', + ); late final _CFPlugInFindFactoriesForPlugInTypeInPlugIn = _CFPlugInFindFactoriesForPlugInTypeInPlugInPtr.asFunction< - CFArrayRef Function(CFUUIDRef, CFPlugInRef)>(); + CFArrayRef Function(CFUUIDRef, CFPlugInRef) + >(); ffi.Pointer CFPlugInInstanceCreate( CFAllocatorRef allocator, CFUUIDRef factoryUUID, CFUUIDRef typeUUID, ) { - return _CFPlugInInstanceCreate( - allocator, - factoryUUID, - typeUUID, - ); + return _CFPlugInInstanceCreate(allocator, factoryUUID, typeUUID); } - late final _CFPlugInInstanceCreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef, CFUUIDRef, CFUUIDRef)>>('CFPlugInInstanceCreate'); - late final _CFPlugInInstanceCreate = _CFPlugInInstanceCreatePtr.asFunction< - ffi.Pointer Function(CFAllocatorRef, CFUUIDRef, CFUUIDRef)>(); + late final _CFPlugInInstanceCreatePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CFAllocatorRef, CFUUIDRef, CFUUIDRef) + > + >('CFPlugInInstanceCreate'); + late final _CFPlugInInstanceCreate = + _CFPlugInInstanceCreatePtr.asFunction< + ffi.Pointer Function(CFAllocatorRef, CFUUIDRef, CFUUIDRef) + >(); int CFPlugInRegisterFactoryFunction( CFUUIDRef factoryUUID, CFPlugInFactoryFunction func, ) { - return _CFPlugInRegisterFactoryFunction( - factoryUUID, - func, - ); + return _CFPlugInRegisterFactoryFunction(factoryUUID, func); } - late final _CFPlugInRegisterFactoryFunctionPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFUUIDRef, - CFPlugInFactoryFunction)>>('CFPlugInRegisterFactoryFunction'); + late final _CFPlugInRegisterFactoryFunctionPtr = + _lookup< + ffi.NativeFunction + >('CFPlugInRegisterFactoryFunction'); late final _CFPlugInRegisterFactoryFunction = _CFPlugInRegisterFactoryFunctionPtr.asFunction< - int Function(CFUUIDRef, CFPlugInFactoryFunction)>(); + int Function(CFUUIDRef, CFPlugInFactoryFunction) + >(); int CFPlugInRegisterFactoryFunctionByName( CFUUIDRef factoryUUID, @@ -29556,88 +29624,77 @@ class NativeCupertinoHttp { ); } - late final _CFPlugInRegisterFactoryFunctionByNamePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFUUIDRef, CFPlugInRef, - CFStringRef)>>('CFPlugInRegisterFactoryFunctionByName'); + late final _CFPlugInRegisterFactoryFunctionByNamePtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFUUIDRef, CFPlugInRef, CFStringRef) + > + >('CFPlugInRegisterFactoryFunctionByName'); late final _CFPlugInRegisterFactoryFunctionByName = _CFPlugInRegisterFactoryFunctionByNamePtr.asFunction< - int Function(CFUUIDRef, CFPlugInRef, CFStringRef)>(); + int Function(CFUUIDRef, CFPlugInRef, CFStringRef) + >(); - int CFPlugInUnregisterFactory( - CFUUIDRef factoryUUID, - ) { - return _CFPlugInUnregisterFactory( - factoryUUID, - ); + int CFPlugInUnregisterFactory(CFUUIDRef factoryUUID) { + return _CFPlugInUnregisterFactory(factoryUUID); } late final _CFPlugInUnregisterFactoryPtr = _lookup>( - 'CFPlugInUnregisterFactory'); + 'CFPlugInUnregisterFactory', + ); late final _CFPlugInUnregisterFactory = _CFPlugInUnregisterFactoryPtr.asFunction(); - int CFPlugInRegisterPlugInType( - CFUUIDRef factoryUUID, - CFUUIDRef typeUUID, - ) { - return _CFPlugInRegisterPlugInType( - factoryUUID, - typeUUID, - ); + int CFPlugInRegisterPlugInType(CFUUIDRef factoryUUID, CFUUIDRef typeUUID) { + return _CFPlugInRegisterPlugInType(factoryUUID, typeUUID); } late final _CFPlugInRegisterPlugInTypePtr = _lookup>( - 'CFPlugInRegisterPlugInType'); - late final _CFPlugInRegisterPlugInType = _CFPlugInRegisterPlugInTypePtr - .asFunction(); + 'CFPlugInRegisterPlugInType', + ); + late final _CFPlugInRegisterPlugInType = + _CFPlugInRegisterPlugInTypePtr.asFunction< + int Function(CFUUIDRef, CFUUIDRef) + >(); - int CFPlugInUnregisterPlugInType( - CFUUIDRef factoryUUID, - CFUUIDRef typeUUID, - ) { - return _CFPlugInUnregisterPlugInType( - factoryUUID, - typeUUID, - ); + int CFPlugInUnregisterPlugInType(CFUUIDRef factoryUUID, CFUUIDRef typeUUID) { + return _CFPlugInUnregisterPlugInType(factoryUUID, typeUUID); } late final _CFPlugInUnregisterPlugInTypePtr = _lookup>( - 'CFPlugInUnregisterPlugInType'); - late final _CFPlugInUnregisterPlugInType = _CFPlugInUnregisterPlugInTypePtr - .asFunction(); + 'CFPlugInUnregisterPlugInType', + ); + late final _CFPlugInUnregisterPlugInType = + _CFPlugInUnregisterPlugInTypePtr.asFunction< + int Function(CFUUIDRef, CFUUIDRef) + >(); - void CFPlugInAddInstanceForFactory( - CFUUIDRef factoryID, - ) { - return _CFPlugInAddInstanceForFactory( - factoryID, - ); + void CFPlugInAddInstanceForFactory(CFUUIDRef factoryID) { + return _CFPlugInAddInstanceForFactory(factoryID); } late final _CFPlugInAddInstanceForFactoryPtr = _lookup>( - 'CFPlugInAddInstanceForFactory'); + 'CFPlugInAddInstanceForFactory', + ); late final _CFPlugInAddInstanceForFactory = _CFPlugInAddInstanceForFactoryPtr.asFunction(); - void CFPlugInRemoveInstanceForFactory( - CFUUIDRef factoryID, - ) { - return _CFPlugInRemoveInstanceForFactory( - factoryID, - ); + void CFPlugInRemoveInstanceForFactory(CFUUIDRef factoryID) { + return _CFPlugInRemoveInstanceForFactory(factoryID); } late final _CFPlugInRemoveInstanceForFactoryPtr = _lookup>( - 'CFPlugInRemoveInstanceForFactory'); + 'CFPlugInRemoveInstanceForFactory', + ); late final _CFPlugInRemoveInstanceForFactory = _CFPlugInRemoveInstanceForFactoryPtr.asFunction< - void Function(CFUUIDRef)>(); + void Function(CFUUIDRef) + >(); int CFPlugInInstanceGetInterfaceFunctionTable( CFPlugInInstanceRef instance, @@ -29651,46 +29708,52 @@ class NativeCupertinoHttp { ); } - late final _CFPlugInInstanceGetInterfaceFunctionTablePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFPlugInInstanceRef, CFStringRef, - ffi.Pointer>)>>( - 'CFPlugInInstanceGetInterfaceFunctionTable'); + late final _CFPlugInInstanceGetInterfaceFunctionTablePtr = + _lookup< + ffi.NativeFunction< + Boolean Function( + CFPlugInInstanceRef, + CFStringRef, + ffi.Pointer>, + ) + > + >('CFPlugInInstanceGetInterfaceFunctionTable'); late final _CFPlugInInstanceGetInterfaceFunctionTable = _CFPlugInInstanceGetInterfaceFunctionTablePtr.asFunction< - int Function(CFPlugInInstanceRef, CFStringRef, - ffi.Pointer>)>(); + int Function( + CFPlugInInstanceRef, + CFStringRef, + ffi.Pointer>, + ) + >(); - CFStringRef CFPlugInInstanceGetFactoryName( - CFPlugInInstanceRef instance, - ) { - return _CFPlugInInstanceGetFactoryName( - instance, - ); + CFStringRef CFPlugInInstanceGetFactoryName(CFPlugInInstanceRef instance) { + return _CFPlugInInstanceGetFactoryName(instance); } late final _CFPlugInInstanceGetFactoryNamePtr = _lookup>( - 'CFPlugInInstanceGetFactoryName'); + 'CFPlugInInstanceGetFactoryName', + ); late final _CFPlugInInstanceGetFactoryName = _CFPlugInInstanceGetFactoryNamePtr.asFunction< - CFStringRef Function(CFPlugInInstanceRef)>(); + CFStringRef Function(CFPlugInInstanceRef) + >(); ffi.Pointer CFPlugInInstanceGetInstanceData( CFPlugInInstanceRef instance, ) { - return _CFPlugInInstanceGetInstanceData( - instance, - ); + return _CFPlugInInstanceGetInstanceData(instance); } - late final _CFPlugInInstanceGetInstanceDataPtr = _lookup< - ffi - .NativeFunction Function(CFPlugInInstanceRef)>>( - 'CFPlugInInstanceGetInstanceData'); + late final _CFPlugInInstanceGetInstanceDataPtr = + _lookup< + ffi.NativeFunction Function(CFPlugInInstanceRef)> + >('CFPlugInInstanceGetInstanceData'); late final _CFPlugInInstanceGetInstanceData = _CFPlugInInstanceGetInstanceDataPtr.asFunction< - ffi.Pointer Function(CFPlugInInstanceRef)>(); + ffi.Pointer Function(CFPlugInInstanceRef) + >(); int CFPlugInInstanceGetTypeID() { return _CFPlugInInstanceGetTypeID(); @@ -29698,7 +29761,8 @@ class NativeCupertinoHttp { late final _CFPlugInInstanceGetTypeIDPtr = _lookup>( - 'CFPlugInInstanceGetTypeID'); + 'CFPlugInInstanceGetTypeID', + ); late final _CFPlugInInstanceGetTypeID = _CFPlugInInstanceGetTypeIDPtr.asFunction(); @@ -29718,23 +29782,28 @@ class NativeCupertinoHttp { ); } - late final _CFPlugInInstanceCreateWithInstanceDataSizePtr = _lookup< - ffi.NativeFunction< - CFPlugInInstanceRef Function( - CFAllocatorRef, - CFIndex, - CFPlugInInstanceDeallocateInstanceDataFunction, - CFStringRef, - CFPlugInInstanceGetInterfaceFunction)>>( - 'CFPlugInInstanceCreateWithInstanceDataSize'); + late final _CFPlugInInstanceCreateWithInstanceDataSizePtr = + _lookup< + ffi.NativeFunction< + CFPlugInInstanceRef Function( + CFAllocatorRef, + CFIndex, + CFPlugInInstanceDeallocateInstanceDataFunction, + CFStringRef, + CFPlugInInstanceGetInterfaceFunction, + ) + > + >('CFPlugInInstanceCreateWithInstanceDataSize'); late final _CFPlugInInstanceCreateWithInstanceDataSize = _CFPlugInInstanceCreateWithInstanceDataSizePtr.asFunction< - CFPlugInInstanceRef Function( - CFAllocatorRef, - int, - CFPlugInInstanceDeallocateInstanceDataFunction, - CFStringRef, - CFPlugInInstanceGetInterfaceFunction)>(); + CFPlugInInstanceRef Function( + CFAllocatorRef, + int, + CFPlugInInstanceDeallocateInstanceDataFunction, + CFStringRef, + CFPlugInInstanceGetInterfaceFunction, + ) + >(); int CFMachPortGetTypeID() { return _CFMachPortGetTypeID(); @@ -29751,24 +29820,29 @@ class NativeCupertinoHttp { ffi.Pointer context, ffi.Pointer shouldFreeInfo, ) { - return _CFMachPortCreate( - allocator, - callout, - context, - shouldFreeInfo, - ); + return _CFMachPortCreate(allocator, callout, context, shouldFreeInfo); } - late final _CFMachPortCreatePtr = _lookup< - ffi.NativeFunction< + late final _CFMachPortCreatePtr = + _lookup< + ffi.NativeFunction< CFMachPortRef Function( - CFAllocatorRef, - CFMachPortCallBack, - ffi.Pointer, - ffi.Pointer)>>('CFMachPortCreate'); - late final _CFMachPortCreate = _CFMachPortCreatePtr.asFunction< - CFMachPortRef Function(CFAllocatorRef, CFMachPortCallBack, - ffi.Pointer, ffi.Pointer)>(); + CFAllocatorRef, + CFMachPortCallBack, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFMachPortCreate'); + late final _CFMachPortCreate = + _CFMachPortCreatePtr.asFunction< + CFMachPortRef Function( + CFAllocatorRef, + CFMachPortCallBack, + ffi.Pointer, + ffi.Pointer, + ) + >(); CFMachPortRef CFMachPortCreateWithPort( CFAllocatorRef allocator, @@ -29786,30 +29860,37 @@ class NativeCupertinoHttp { ); } - late final _CFMachPortCreateWithPortPtr = _lookup< - ffi.NativeFunction< + late final _CFMachPortCreateWithPortPtr = + _lookup< + ffi.NativeFunction< CFMachPortRef Function( - CFAllocatorRef, - mach_port_t, - CFMachPortCallBack, - ffi.Pointer, - ffi.Pointer)>>('CFMachPortCreateWithPort'); + CFAllocatorRef, + mach_port_t, + CFMachPortCallBack, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFMachPortCreateWithPort'); late final _CFMachPortCreateWithPort = _CFMachPortCreateWithPortPtr.asFunction< - CFMachPortRef Function(CFAllocatorRef, int, CFMachPortCallBack, - ffi.Pointer, ffi.Pointer)>(); + CFMachPortRef Function( + CFAllocatorRef, + int, + CFMachPortCallBack, + ffi.Pointer, + ffi.Pointer, + ) + >(); - int CFMachPortGetPort( - CFMachPortRef port, - ) { - return _CFMachPortGetPort( - port, - ); + int CFMachPortGetPort(CFMachPortRef port) { + return _CFMachPortGetPort(port); } late final _CFMachPortGetPortPtr = _lookup>( - 'CFMachPortGetPort'); + 'CFMachPortGetPort', + ); late final _CFMachPortGetPort = _CFMachPortGetPortPtr.asFunction(); @@ -29817,101 +29898,95 @@ class NativeCupertinoHttp { CFMachPortRef port, ffi.Pointer context, ) { - return _CFMachPortGetContext( - port, - context, - ); + return _CFMachPortGetContext(port, context); } - late final _CFMachPortGetContextPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMachPortRef, - ffi.Pointer)>>('CFMachPortGetContext'); - late final _CFMachPortGetContext = _CFMachPortGetContextPtr.asFunction< - void Function(CFMachPortRef, ffi.Pointer)>(); + late final _CFMachPortGetContextPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMachPortRef, ffi.Pointer) + > + >('CFMachPortGetContext'); + late final _CFMachPortGetContext = + _CFMachPortGetContextPtr.asFunction< + void Function(CFMachPortRef, ffi.Pointer) + >(); - void CFMachPortInvalidate( - CFMachPortRef port, - ) { - return _CFMachPortInvalidate( - port, - ); + void CFMachPortInvalidate(CFMachPortRef port) { + return _CFMachPortInvalidate(port); } late final _CFMachPortInvalidatePtr = _lookup>( - 'CFMachPortInvalidate'); + 'CFMachPortInvalidate', + ); late final _CFMachPortInvalidate = _CFMachPortInvalidatePtr.asFunction(); - int CFMachPortIsValid( - CFMachPortRef port, - ) { - return _CFMachPortIsValid( - port, - ); + int CFMachPortIsValid(CFMachPortRef port) { + return _CFMachPortIsValid(port); } late final _CFMachPortIsValidPtr = _lookup>( - 'CFMachPortIsValid'); + 'CFMachPortIsValid', + ); late final _CFMachPortIsValid = _CFMachPortIsValidPtr.asFunction(); CFMachPortInvalidationCallBack CFMachPortGetInvalidationCallBack( CFMachPortRef port, ) { - return _CFMachPortGetInvalidationCallBack( - port, - ); + return _CFMachPortGetInvalidationCallBack(port); } - late final _CFMachPortGetInvalidationCallBackPtr = _lookup< - ffi.NativeFunction< - CFMachPortInvalidationCallBack Function( - CFMachPortRef)>>('CFMachPortGetInvalidationCallBack'); + late final _CFMachPortGetInvalidationCallBackPtr = + _lookup< + ffi.NativeFunction< + CFMachPortInvalidationCallBack Function(CFMachPortRef) + > + >('CFMachPortGetInvalidationCallBack'); late final _CFMachPortGetInvalidationCallBack = _CFMachPortGetInvalidationCallBackPtr.asFunction< - CFMachPortInvalidationCallBack Function(CFMachPortRef)>(); + CFMachPortInvalidationCallBack Function(CFMachPortRef) + >(); void CFMachPortSetInvalidationCallBack( CFMachPortRef port, CFMachPortInvalidationCallBack callout, ) { - return _CFMachPortSetInvalidationCallBack( - port, - callout, - ); + return _CFMachPortSetInvalidationCallBack(port, callout); } - late final _CFMachPortSetInvalidationCallBackPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFMachPortRef, CFMachPortInvalidationCallBack)>>( - 'CFMachPortSetInvalidationCallBack'); + late final _CFMachPortSetInvalidationCallBackPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMachPortRef, CFMachPortInvalidationCallBack) + > + >('CFMachPortSetInvalidationCallBack'); late final _CFMachPortSetInvalidationCallBack = _CFMachPortSetInvalidationCallBackPtr.asFunction< - void Function(CFMachPortRef, CFMachPortInvalidationCallBack)>(); + void Function(CFMachPortRef, CFMachPortInvalidationCallBack) + >(); CFRunLoopSourceRef CFMachPortCreateRunLoopSource( CFAllocatorRef allocator, CFMachPortRef port, int order, ) { - return _CFMachPortCreateRunLoopSource( - allocator, - port, - order, - ); + return _CFMachPortCreateRunLoopSource(allocator, port, order); } - late final _CFMachPortCreateRunLoopSourcePtr = _lookup< - ffi.NativeFunction< - CFRunLoopSourceRef Function(CFAllocatorRef, CFMachPortRef, - CFIndex)>>('CFMachPortCreateRunLoopSource'); + late final _CFMachPortCreateRunLoopSourcePtr = + _lookup< + ffi.NativeFunction< + CFRunLoopSourceRef Function(CFAllocatorRef, CFMachPortRef, CFIndex) + > + >('CFMachPortCreateRunLoopSource'); late final _CFMachPortCreateRunLoopSource = _CFMachPortCreateRunLoopSourcePtr.asFunction< - CFRunLoopSourceRef Function(CFAllocatorRef, CFMachPortRef, int)>(); + CFRunLoopSourceRef Function(CFAllocatorRef, CFMachPortRef, int) + >(); int CFAttributedStringGetTypeID() { return _CFAttributedStringGetTypeID(); @@ -29919,7 +29994,8 @@ class NativeCupertinoHttp { late final _CFAttributedStringGetTypeIDPtr = _lookup>( - 'CFAttributedStringGetTypeID'); + 'CFAttributedStringGetTypeID', + ); late final _CFAttributedStringGetTypeID = _CFAttributedStringGetTypeIDPtr.asFunction(); @@ -29928,110 +30004,125 @@ class NativeCupertinoHttp { CFStringRef str, CFDictionaryRef attributes, ) { - return _CFAttributedStringCreate( - alloc, - str, - attributes, - ); + return _CFAttributedStringCreate(alloc, str, attributes); } - late final _CFAttributedStringCreatePtr = _lookup< - ffi.NativeFunction< - CFAttributedStringRef Function(CFAllocatorRef, CFStringRef, - CFDictionaryRef)>>('CFAttributedStringCreate'); + late final _CFAttributedStringCreatePtr = + _lookup< + ffi.NativeFunction< + CFAttributedStringRef Function( + CFAllocatorRef, + CFStringRef, + CFDictionaryRef, + ) + > + >('CFAttributedStringCreate'); late final _CFAttributedStringCreate = _CFAttributedStringCreatePtr.asFunction< - CFAttributedStringRef Function( - CFAllocatorRef, CFStringRef, CFDictionaryRef)>(); + CFAttributedStringRef Function( + CFAllocatorRef, + CFStringRef, + CFDictionaryRef, + ) + >(); CFAttributedStringRef CFAttributedStringCreateWithSubstring( CFAllocatorRef alloc, CFAttributedStringRef aStr, CFRange range, ) { - return _CFAttributedStringCreateWithSubstring( - alloc, - aStr, - range, - ); + return _CFAttributedStringCreateWithSubstring(alloc, aStr, range); } - late final _CFAttributedStringCreateWithSubstringPtr = _lookup< - ffi.NativeFunction< - CFAttributedStringRef Function(CFAllocatorRef, CFAttributedStringRef, - CFRange)>>('CFAttributedStringCreateWithSubstring'); + late final _CFAttributedStringCreateWithSubstringPtr = + _lookup< + ffi.NativeFunction< + CFAttributedStringRef Function( + CFAllocatorRef, + CFAttributedStringRef, + CFRange, + ) + > + >('CFAttributedStringCreateWithSubstring'); late final _CFAttributedStringCreateWithSubstring = _CFAttributedStringCreateWithSubstringPtr.asFunction< - CFAttributedStringRef Function( - CFAllocatorRef, CFAttributedStringRef, CFRange)>(); + CFAttributedStringRef Function( + CFAllocatorRef, + CFAttributedStringRef, + CFRange, + ) + >(); CFAttributedStringRef CFAttributedStringCreateCopy( CFAllocatorRef alloc, CFAttributedStringRef aStr, ) { - return _CFAttributedStringCreateCopy( - alloc, - aStr, - ); + return _CFAttributedStringCreateCopy(alloc, aStr); } - late final _CFAttributedStringCreateCopyPtr = _lookup< - ffi.NativeFunction< - CFAttributedStringRef Function(CFAllocatorRef, - CFAttributedStringRef)>>('CFAttributedStringCreateCopy'); + late final _CFAttributedStringCreateCopyPtr = + _lookup< + ffi.NativeFunction< + CFAttributedStringRef Function(CFAllocatorRef, CFAttributedStringRef) + > + >('CFAttributedStringCreateCopy'); late final _CFAttributedStringCreateCopy = _CFAttributedStringCreateCopyPtr.asFunction< - CFAttributedStringRef Function( - CFAllocatorRef, CFAttributedStringRef)>(); + CFAttributedStringRef Function(CFAllocatorRef, CFAttributedStringRef) + >(); - CFStringRef CFAttributedStringGetString( - CFAttributedStringRef aStr, - ) { - return _CFAttributedStringGetString( - aStr, - ); + CFStringRef CFAttributedStringGetString(CFAttributedStringRef aStr) { + return _CFAttributedStringGetString(aStr); } late final _CFAttributedStringGetStringPtr = _lookup>( - 'CFAttributedStringGetString'); - late final _CFAttributedStringGetString = _CFAttributedStringGetStringPtr - .asFunction(); + 'CFAttributedStringGetString', + ); + late final _CFAttributedStringGetString = + _CFAttributedStringGetStringPtr.asFunction< + CFStringRef Function(CFAttributedStringRef) + >(); - int CFAttributedStringGetLength( - CFAttributedStringRef aStr, - ) { - return _CFAttributedStringGetLength( - aStr, - ); + int CFAttributedStringGetLength(CFAttributedStringRef aStr) { + return _CFAttributedStringGetLength(aStr); } late final _CFAttributedStringGetLengthPtr = _lookup>( - 'CFAttributedStringGetLength'); - late final _CFAttributedStringGetLength = _CFAttributedStringGetLengthPtr - .asFunction(); + 'CFAttributedStringGetLength', + ); + late final _CFAttributedStringGetLength = + _CFAttributedStringGetLengthPtr.asFunction< + int Function(CFAttributedStringRef) + >(); CFDictionaryRef CFAttributedStringGetAttributes( CFAttributedStringRef aStr, int loc, ffi.Pointer effectiveRange, ) { - return _CFAttributedStringGetAttributes( - aStr, - loc, - effectiveRange, - ); + return _CFAttributedStringGetAttributes(aStr, loc, effectiveRange); } - late final _CFAttributedStringGetAttributesPtr = _lookup< - ffi.NativeFunction< - CFDictionaryRef Function(CFAttributedStringRef, CFIndex, - ffi.Pointer)>>('CFAttributedStringGetAttributes'); + late final _CFAttributedStringGetAttributesPtr = + _lookup< + ffi.NativeFunction< + CFDictionaryRef Function( + CFAttributedStringRef, + CFIndex, + ffi.Pointer, + ) + > + >('CFAttributedStringGetAttributes'); late final _CFAttributedStringGetAttributes = _CFAttributedStringGetAttributesPtr.asFunction< - CFDictionaryRef Function( - CFAttributedStringRef, int, ffi.Pointer)>(); + CFDictionaryRef Function( + CFAttributedStringRef, + int, + ffi.Pointer, + ) + >(); CFTypeRef CFAttributedStringGetAttribute( CFAttributedStringRef aStr, @@ -30039,22 +30130,29 @@ class NativeCupertinoHttp { CFStringRef attrName, ffi.Pointer effectiveRange, ) { - return _CFAttributedStringGetAttribute( - aStr, - loc, - attrName, - effectiveRange, - ); + return _CFAttributedStringGetAttribute(aStr, loc, attrName, effectiveRange); } - late final _CFAttributedStringGetAttributePtr = _lookup< - ffi.NativeFunction< - CFTypeRef Function(CFAttributedStringRef, CFIndex, CFStringRef, - ffi.Pointer)>>('CFAttributedStringGetAttribute'); + late final _CFAttributedStringGetAttributePtr = + _lookup< + ffi.NativeFunction< + CFTypeRef Function( + CFAttributedStringRef, + CFIndex, + CFStringRef, + ffi.Pointer, + ) + > + >('CFAttributedStringGetAttribute'); late final _CFAttributedStringGetAttribute = _CFAttributedStringGetAttributePtr.asFunction< - CFTypeRef Function( - CFAttributedStringRef, int, CFStringRef, ffi.Pointer)>(); + CFTypeRef Function( + CFAttributedStringRef, + int, + CFStringRef, + ffi.Pointer, + ) + >(); CFDictionaryRef CFAttributedStringGetAttributesAndLongestEffectiveRange( CFAttributedStringRef aStr, @@ -30072,14 +30170,24 @@ class NativeCupertinoHttp { late final _CFAttributedStringGetAttributesAndLongestEffectiveRangePtr = _lookup< - ffi.NativeFunction< - CFDictionaryRef Function(CFAttributedStringRef, CFIndex, - CFRange, ffi.Pointer)>>( - 'CFAttributedStringGetAttributesAndLongestEffectiveRange'); + ffi.NativeFunction< + CFDictionaryRef Function( + CFAttributedStringRef, + CFIndex, + CFRange, + ffi.Pointer, + ) + > + >('CFAttributedStringGetAttributesAndLongestEffectiveRange'); late final _CFAttributedStringGetAttributesAndLongestEffectiveRange = _CFAttributedStringGetAttributesAndLongestEffectiveRangePtr.asFunction< - CFDictionaryRef Function( - CFAttributedStringRef, int, CFRange, ffi.Pointer)>(); + CFDictionaryRef Function( + CFAttributedStringRef, + int, + CFRange, + ffi.Pointer, + ) + >(); CFTypeRef CFAttributedStringGetAttributeAndLongestEffectiveRange( CFAttributedStringRef aStr, @@ -30099,89 +30207,107 @@ class NativeCupertinoHttp { late final _CFAttributedStringGetAttributeAndLongestEffectiveRangePtr = _lookup< - ffi.NativeFunction< - CFTypeRef Function(CFAttributedStringRef, CFIndex, - CFStringRef, CFRange, ffi.Pointer)>>( - 'CFAttributedStringGetAttributeAndLongestEffectiveRange'); + ffi.NativeFunction< + CFTypeRef Function( + CFAttributedStringRef, + CFIndex, + CFStringRef, + CFRange, + ffi.Pointer, + ) + > + >('CFAttributedStringGetAttributeAndLongestEffectiveRange'); late final _CFAttributedStringGetAttributeAndLongestEffectiveRange = _CFAttributedStringGetAttributeAndLongestEffectiveRangePtr.asFunction< - CFTypeRef Function(CFAttributedStringRef, int, CFStringRef, CFRange, - ffi.Pointer)>(); + CFTypeRef Function( + CFAttributedStringRef, + int, + CFStringRef, + CFRange, + ffi.Pointer, + ) + >(); CFMutableAttributedStringRef CFAttributedStringCreateMutableCopy( CFAllocatorRef alloc, int maxLength, CFAttributedStringRef aStr, ) { - return _CFAttributedStringCreateMutableCopy( - alloc, - maxLength, - aStr, - ); + return _CFAttributedStringCreateMutableCopy(alloc, maxLength, aStr); } - late final _CFAttributedStringCreateMutableCopyPtr = _lookup< - ffi.NativeFunction< - CFMutableAttributedStringRef Function(CFAllocatorRef, CFIndex, - CFAttributedStringRef)>>('CFAttributedStringCreateMutableCopy'); + late final _CFAttributedStringCreateMutableCopyPtr = + _lookup< + ffi.NativeFunction< + CFMutableAttributedStringRef Function( + CFAllocatorRef, + CFIndex, + CFAttributedStringRef, + ) + > + >('CFAttributedStringCreateMutableCopy'); late final _CFAttributedStringCreateMutableCopy = _CFAttributedStringCreateMutableCopyPtr.asFunction< - CFMutableAttributedStringRef Function( - CFAllocatorRef, int, CFAttributedStringRef)>(); + CFMutableAttributedStringRef Function( + CFAllocatorRef, + int, + CFAttributedStringRef, + ) + >(); CFMutableAttributedStringRef CFAttributedStringCreateMutable( CFAllocatorRef alloc, int maxLength, ) { - return _CFAttributedStringCreateMutable( - alloc, - maxLength, - ); + return _CFAttributedStringCreateMutable(alloc, maxLength); } - late final _CFAttributedStringCreateMutablePtr = _lookup< - ffi.NativeFunction< - CFMutableAttributedStringRef Function( - CFAllocatorRef, CFIndex)>>('CFAttributedStringCreateMutable'); + late final _CFAttributedStringCreateMutablePtr = + _lookup< + ffi.NativeFunction< + CFMutableAttributedStringRef Function(CFAllocatorRef, CFIndex) + > + >('CFAttributedStringCreateMutable'); late final _CFAttributedStringCreateMutable = _CFAttributedStringCreateMutablePtr.asFunction< - CFMutableAttributedStringRef Function(CFAllocatorRef, int)>(); + CFMutableAttributedStringRef Function(CFAllocatorRef, int) + >(); void CFAttributedStringReplaceString( CFMutableAttributedStringRef aStr, CFRange range, CFStringRef replacement, ) { - return _CFAttributedStringReplaceString( - aStr, - range, - replacement, - ); + return _CFAttributedStringReplaceString(aStr, range, replacement); } - late final _CFAttributedStringReplaceStringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableAttributedStringRef, CFRange, - CFStringRef)>>('CFAttributedStringReplaceString'); + late final _CFAttributedStringReplaceStringPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableAttributedStringRef, CFRange, CFStringRef) + > + >('CFAttributedStringReplaceString'); late final _CFAttributedStringReplaceString = _CFAttributedStringReplaceStringPtr.asFunction< - void Function(CFMutableAttributedStringRef, CFRange, CFStringRef)>(); + void Function(CFMutableAttributedStringRef, CFRange, CFStringRef) + >(); CFMutableStringRef CFAttributedStringGetMutableString( CFMutableAttributedStringRef aStr, ) { - return _CFAttributedStringGetMutableString( - aStr, - ); + return _CFAttributedStringGetMutableString(aStr); } - late final _CFAttributedStringGetMutableStringPtr = _lookup< - ffi.NativeFunction< - CFMutableStringRef Function(CFMutableAttributedStringRef)>>( - 'CFAttributedStringGetMutableString'); + late final _CFAttributedStringGetMutableStringPtr = + _lookup< + ffi.NativeFunction< + CFMutableStringRef Function(CFMutableAttributedStringRef) + > + >('CFAttributedStringGetMutableString'); late final _CFAttributedStringGetMutableString = _CFAttributedStringGetMutableStringPtr.asFunction< - CFMutableStringRef Function(CFMutableAttributedStringRef)>(); + CFMutableStringRef Function(CFMutableAttributedStringRef) + >(); void CFAttributedStringSetAttributes( CFMutableAttributedStringRef aStr, @@ -30197,14 +30323,26 @@ class NativeCupertinoHttp { ); } - late final _CFAttributedStringSetAttributesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableAttributedStringRef, CFRange, - CFDictionaryRef, Boolean)>>('CFAttributedStringSetAttributes'); + late final _CFAttributedStringSetAttributesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFMutableAttributedStringRef, + CFRange, + CFDictionaryRef, + Boolean, + ) + > + >('CFAttributedStringSetAttributes'); late final _CFAttributedStringSetAttributes = _CFAttributedStringSetAttributesPtr.asFunction< - void Function( - CFMutableAttributedStringRef, CFRange, CFDictionaryRef, int)>(); + void Function( + CFMutableAttributedStringRef, + CFRange, + CFDictionaryRef, + int, + ) + >(); void CFAttributedStringSetAttribute( CFMutableAttributedStringRef aStr, @@ -30212,93 +30350,101 @@ class NativeCupertinoHttp { CFStringRef attrName, CFTypeRef value, ) { - return _CFAttributedStringSetAttribute( - aStr, - range, - attrName, - value, - ); + return _CFAttributedStringSetAttribute(aStr, range, attrName, value); } - late final _CFAttributedStringSetAttributePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableAttributedStringRef, CFRange, CFStringRef, - CFTypeRef)>>('CFAttributedStringSetAttribute'); + late final _CFAttributedStringSetAttributePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFMutableAttributedStringRef, + CFRange, + CFStringRef, + CFTypeRef, + ) + > + >('CFAttributedStringSetAttribute'); late final _CFAttributedStringSetAttribute = _CFAttributedStringSetAttributePtr.asFunction< - void Function( - CFMutableAttributedStringRef, CFRange, CFStringRef, CFTypeRef)>(); + void Function( + CFMutableAttributedStringRef, + CFRange, + CFStringRef, + CFTypeRef, + ) + >(); void CFAttributedStringRemoveAttribute( CFMutableAttributedStringRef aStr, CFRange range, CFStringRef attrName, ) { - return _CFAttributedStringRemoveAttribute( - aStr, - range, - attrName, - ); + return _CFAttributedStringRemoveAttribute(aStr, range, attrName); } - late final _CFAttributedStringRemoveAttributePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableAttributedStringRef, CFRange, - CFStringRef)>>('CFAttributedStringRemoveAttribute'); + late final _CFAttributedStringRemoveAttributePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFMutableAttributedStringRef, CFRange, CFStringRef) + > + >('CFAttributedStringRemoveAttribute'); late final _CFAttributedStringRemoveAttribute = _CFAttributedStringRemoveAttributePtr.asFunction< - void Function(CFMutableAttributedStringRef, CFRange, CFStringRef)>(); + void Function(CFMutableAttributedStringRef, CFRange, CFStringRef) + >(); void CFAttributedStringReplaceAttributedString( CFMutableAttributedStringRef aStr, CFRange range, CFAttributedStringRef replacement, ) { - return _CFAttributedStringReplaceAttributedString( - aStr, - range, - replacement, - ); + return _CFAttributedStringReplaceAttributedString(aStr, range, replacement); } - late final _CFAttributedStringReplaceAttributedStringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableAttributedStringRef, CFRange, - CFAttributedStringRef)>>( - 'CFAttributedStringReplaceAttributedString'); + late final _CFAttributedStringReplaceAttributedStringPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFMutableAttributedStringRef, + CFRange, + CFAttributedStringRef, + ) + > + >('CFAttributedStringReplaceAttributedString'); late final _CFAttributedStringReplaceAttributedString = _CFAttributedStringReplaceAttributedStringPtr.asFunction< - void Function( - CFMutableAttributedStringRef, CFRange, CFAttributedStringRef)>(); + void Function( + CFMutableAttributedStringRef, + CFRange, + CFAttributedStringRef, + ) + >(); - void CFAttributedStringBeginEditing( - CFMutableAttributedStringRef aStr, - ) { - return _CFAttributedStringBeginEditing( - aStr, - ); + void CFAttributedStringBeginEditing(CFMutableAttributedStringRef aStr) { + return _CFAttributedStringBeginEditing(aStr); } - late final _CFAttributedStringBeginEditingPtr = _lookup< - ffi.NativeFunction>( - 'CFAttributedStringBeginEditing'); + late final _CFAttributedStringBeginEditingPtr = + _lookup< + ffi.NativeFunction + >('CFAttributedStringBeginEditing'); late final _CFAttributedStringBeginEditing = _CFAttributedStringBeginEditingPtr.asFunction< - void Function(CFMutableAttributedStringRef)>(); + void Function(CFMutableAttributedStringRef) + >(); - void CFAttributedStringEndEditing( - CFMutableAttributedStringRef aStr, - ) { - return _CFAttributedStringEndEditing( - aStr, - ); + void CFAttributedStringEndEditing(CFMutableAttributedStringRef aStr) { + return _CFAttributedStringEndEditing(aStr); } - late final _CFAttributedStringEndEditingPtr = _lookup< - ffi.NativeFunction>( - 'CFAttributedStringEndEditing'); - late final _CFAttributedStringEndEditing = _CFAttributedStringEndEditingPtr - .asFunction(); + late final _CFAttributedStringEndEditingPtr = + _lookup< + ffi.NativeFunction + >('CFAttributedStringEndEditing'); + late final _CFAttributedStringEndEditing = + _CFAttributedStringEndEditingPtr.asFunction< + void Function(CFMutableAttributedStringRef) + >(); bool CFAttributedStringGetBidiLevelsAndResolvedDirections( CFAttributedStringRef attributedString, @@ -30316,15 +30462,28 @@ class NativeCupertinoHttp { ); } - late final _CFAttributedStringGetBidiLevelsAndResolvedDirectionsPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(CFAttributedStringRef, CFRange, ffi.Int8, - ffi.Pointer, ffi.Pointer)>>( - 'CFAttributedStringGetBidiLevelsAndResolvedDirections'); + late final _CFAttributedStringGetBidiLevelsAndResolvedDirectionsPtr = + _lookup< + ffi.NativeFunction< + ffi.Bool Function( + CFAttributedStringRef, + CFRange, + ffi.Int8, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFAttributedStringGetBidiLevelsAndResolvedDirections'); late final _CFAttributedStringGetBidiLevelsAndResolvedDirections = _CFAttributedStringGetBidiLevelsAndResolvedDirectionsPtr.asFunction< - bool Function(CFAttributedStringRef, CFRange, int, - ffi.Pointer, ffi.Pointer)>(); + bool Function( + CFAttributedStringRef, + CFRange, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); int CFURLEnumeratorGetTypeID() { return _CFURLEnumeratorGetTypeID(); @@ -30332,7 +30491,8 @@ class NativeCupertinoHttp { late final _CFURLEnumeratorGetTypeIDPtr = _lookup>( - 'CFURLEnumeratorGetTypeID'); + 'CFURLEnumeratorGetTypeID', + ); late final _CFURLEnumeratorGetTypeID = _CFURLEnumeratorGetTypeIDPtr.asFunction(); @@ -30350,14 +30510,21 @@ class NativeCupertinoHttp { ); } - late final _CFURLEnumeratorCreateForDirectoryURLPtr = _lookup< - ffi.NativeFunction< - CFURLEnumeratorRef Function(CFAllocatorRef, CFURLRef, CFOptionFlags, - CFArrayRef)>>('CFURLEnumeratorCreateForDirectoryURL'); + late final _CFURLEnumeratorCreateForDirectoryURLPtr = + _lookup< + ffi.NativeFunction< + CFURLEnumeratorRef Function( + CFAllocatorRef, + CFURLRef, + CFOptionFlags, + CFArrayRef, + ) + > + >('CFURLEnumeratorCreateForDirectoryURL'); late final _CFURLEnumeratorCreateForDirectoryURL = _CFURLEnumeratorCreateForDirectoryURLPtr.asFunction< - CFURLEnumeratorRef Function( - CFAllocatorRef, CFURLRef, int, CFArrayRef)>(); + CFURLEnumeratorRef Function(CFAllocatorRef, CFURLRef, int, CFArrayRef) + >(); CFURLEnumeratorRef CFURLEnumeratorCreateForMountedVolumes( CFAllocatorRef alloc, @@ -30371,148 +30538,137 @@ class NativeCupertinoHttp { ); } - late final _CFURLEnumeratorCreateForMountedVolumesPtr = _lookup< - ffi.NativeFunction< - CFURLEnumeratorRef Function(CFAllocatorRef, CFOptionFlags, - CFArrayRef)>>('CFURLEnumeratorCreateForMountedVolumes'); + late final _CFURLEnumeratorCreateForMountedVolumesPtr = + _lookup< + ffi.NativeFunction< + CFURLEnumeratorRef Function(CFAllocatorRef, CFOptionFlags, CFArrayRef) + > + >('CFURLEnumeratorCreateForMountedVolumes'); late final _CFURLEnumeratorCreateForMountedVolumes = _CFURLEnumeratorCreateForMountedVolumesPtr.asFunction< - CFURLEnumeratorRef Function(CFAllocatorRef, int, CFArrayRef)>(); + CFURLEnumeratorRef Function(CFAllocatorRef, int, CFArrayRef) + >(); CFURLEnumeratorResult CFURLEnumeratorGetNextURL( CFURLEnumeratorRef enumerator, ffi.Pointer url, ffi.Pointer error, ) { - return CFURLEnumeratorResult.fromValue(_CFURLEnumeratorGetNextURL( - enumerator, - url, - error, - )); + return CFURLEnumeratorResult.fromValue( + _CFURLEnumeratorGetNextURL(enumerator, url, error), + ); } - late final _CFURLEnumeratorGetNextURLPtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFURLEnumeratorRef, ffi.Pointer, - ffi.Pointer)>>('CFURLEnumeratorGetNextURL'); + late final _CFURLEnumeratorGetNextURLPtr = + _lookup< + ffi.NativeFunction< + CFIndex Function( + CFURLEnumeratorRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFURLEnumeratorGetNextURL'); late final _CFURLEnumeratorGetNextURL = _CFURLEnumeratorGetNextURLPtr.asFunction< - int Function(CFURLEnumeratorRef, ffi.Pointer, - ffi.Pointer)>(); + int Function( + CFURLEnumeratorRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); - void CFURLEnumeratorSkipDescendents( - CFURLEnumeratorRef enumerator, - ) { - return _CFURLEnumeratorSkipDescendents( - enumerator, - ); + void CFURLEnumeratorSkipDescendents(CFURLEnumeratorRef enumerator) { + return _CFURLEnumeratorSkipDescendents(enumerator); } late final _CFURLEnumeratorSkipDescendentsPtr = _lookup>( - 'CFURLEnumeratorSkipDescendents'); + 'CFURLEnumeratorSkipDescendents', + ); late final _CFURLEnumeratorSkipDescendents = _CFURLEnumeratorSkipDescendentsPtr.asFunction< - void Function(CFURLEnumeratorRef)>(); + void Function(CFURLEnumeratorRef) + >(); - int CFURLEnumeratorGetDescendentLevel( - CFURLEnumeratorRef enumerator, - ) { - return _CFURLEnumeratorGetDescendentLevel( - enumerator, - ); + int CFURLEnumeratorGetDescendentLevel(CFURLEnumeratorRef enumerator) { + return _CFURLEnumeratorGetDescendentLevel(enumerator); } late final _CFURLEnumeratorGetDescendentLevelPtr = _lookup>( - 'CFURLEnumeratorGetDescendentLevel'); + 'CFURLEnumeratorGetDescendentLevel', + ); late final _CFURLEnumeratorGetDescendentLevel = _CFURLEnumeratorGetDescendentLevelPtr.asFunction< - int Function(CFURLEnumeratorRef)>(); + int Function(CFURLEnumeratorRef) + >(); - int CFURLEnumeratorGetSourceDidChange( - CFURLEnumeratorRef enumerator, - ) { - return _CFURLEnumeratorGetSourceDidChange( - enumerator, - ); + int CFURLEnumeratorGetSourceDidChange(CFURLEnumeratorRef enumerator) { + return _CFURLEnumeratorGetSourceDidChange(enumerator); } late final _CFURLEnumeratorGetSourceDidChangePtr = _lookup>( - 'CFURLEnumeratorGetSourceDidChange'); + 'CFURLEnumeratorGetSourceDidChange', + ); late final _CFURLEnumeratorGetSourceDidChange = _CFURLEnumeratorGetSourceDidChangePtr.asFunction< - int Function(CFURLEnumeratorRef)>(); + int Function(CFURLEnumeratorRef) + >(); - acl_t acl_dup( - acl_t acl, - ) { - return _acl_dup( - acl, - ); + acl_t acl_dup(acl_t acl) { + return _acl_dup(acl); } - late final _acl_dupPtr = - _lookup>('acl_dup'); + late final _acl_dupPtr = _lookup>( + 'acl_dup', + ); late final _acl_dup = _acl_dupPtr.asFunction(); - int acl_free( - ffi.Pointer obj_p, - ) { - return _acl_free( - obj_p, - ); + int acl_free(ffi.Pointer obj_p) { + return _acl_free(obj_p); } late final _acl_freePtr = _lookup)>>( - 'acl_free'); - late final _acl_free = - _acl_freePtr.asFunction)>(); + 'acl_free', + ); + late final _acl_free = _acl_freePtr + .asFunction)>(); - acl_t acl_init( - int count, - ) { - return _acl_init( - count, - ); + acl_t acl_init(int count) { + return _acl_init(count); } late final _acl_initPtr = _lookup>('acl_init'); late final _acl_init = _acl_initPtr.asFunction(); - int acl_copy_entry( - acl_entry_t dest_d, - acl_entry_t src_d, - ) { - return _acl_copy_entry( - dest_d, - src_d, - ); + int acl_copy_entry(acl_entry_t dest_d, acl_entry_t src_d) { + return _acl_copy_entry(dest_d, src_d); } late final _acl_copy_entryPtr = _lookup>( - 'acl_copy_entry'); - late final _acl_copy_entry = - _acl_copy_entryPtr.asFunction(); + 'acl_copy_entry', + ); + late final _acl_copy_entry = _acl_copy_entryPtr + .asFunction(); int acl_create_entry( ffi.Pointer acl_p, ffi.Pointer entry_p, ) { - return _acl_create_entry( - acl_p, - entry_p, - ); + return _acl_create_entry(acl_p, entry_p); } - late final _acl_create_entryPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer)>>('acl_create_entry'); + late final _acl_create_entryPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('acl_create_entry'); late final _acl_create_entry = _acl_create_entryPtr .asFunction, ffi.Pointer)>(); @@ -30521,102 +30677,81 @@ class NativeCupertinoHttp { ffi.Pointer entry_p, int entry_index, ) { - return _acl_create_entry_np( - acl_p, - entry_p, - entry_index, - ); + return _acl_create_entry_np(acl_p, entry_p, entry_index); } - late final _acl_create_entry_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Int)>>('acl_create_entry_np'); - late final _acl_create_entry_np = _acl_create_entry_npPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _acl_create_entry_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('acl_create_entry_np'); + late final _acl_create_entry_np = _acl_create_entry_npPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); - int acl_delete_entry( - acl_t acl, - acl_entry_t entry_d, - ) { - return _acl_delete_entry( - acl, - entry_d, - ); + int acl_delete_entry(acl_t acl, acl_entry_t entry_d) { + return _acl_delete_entry(acl, entry_d); } late final _acl_delete_entryPtr = _lookup>( - 'acl_delete_entry'); - late final _acl_delete_entry = - _acl_delete_entryPtr.asFunction(); + 'acl_delete_entry', + ); + late final _acl_delete_entry = _acl_delete_entryPtr + .asFunction(); - int acl_get_entry( - acl_t acl, - int entry_id, - ffi.Pointer entry_p, - ) { - return _acl_get_entry( - acl, - entry_id, - entry_p, - ); + int acl_get_entry(acl_t acl, int entry_id, ffi.Pointer entry_p) { + return _acl_get_entry(acl, entry_id, entry_p); } - late final _acl_get_entryPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - acl_t, ffi.Int, ffi.Pointer)>>('acl_get_entry'); + late final _acl_get_entryPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(acl_t, ffi.Int, ffi.Pointer) + > + >('acl_get_entry'); late final _acl_get_entry = _acl_get_entryPtr .asFunction)>(); - int acl_valid( - acl_t acl, - ) { - return _acl_valid( - acl, - ); + int acl_valid(acl_t acl) { + return _acl_valid(acl); } late final _acl_validPtr = _lookup>('acl_valid'); late final _acl_valid = _acl_validPtr.asFunction(); - int acl_valid_fd_np( - int fd, - acl_type_t type, - acl_t acl, - ) { - return _acl_valid_fd_np( - fd, - type.value, - acl, - ); + int acl_valid_fd_np(int fd, acl_type_t type, acl_t acl) { + return _acl_valid_fd_np(fd, type.value, acl); } - late final _acl_valid_fd_npPtr = _lookup< - ffi - .NativeFunction>( - 'acl_valid_fd_np'); - late final _acl_valid_fd_np = - _acl_valid_fd_npPtr.asFunction(); + late final _acl_valid_fd_npPtr = + _lookup< + ffi.NativeFunction + >('acl_valid_fd_np'); + late final _acl_valid_fd_np = _acl_valid_fd_npPtr + .asFunction(); int acl_valid_file_np( ffi.Pointer path, acl_type_t type, acl_t acl, ) { - return _acl_valid_file_np( - path, - type.value, - acl, - ); + return _acl_valid_file_np(path, type.value, acl); } - late final _acl_valid_file_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.UnsignedInt, - acl_t)>>('acl_valid_file_np'); + late final _acl_valid_file_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.UnsignedInt, acl_t) + > + >('acl_valid_file_np'); late final _acl_valid_file_np = _acl_valid_file_npPtr .asFunction, int, acl_t)>(); @@ -30625,141 +30760,108 @@ class NativeCupertinoHttp { acl_type_t type, acl_t acl, ) { - return _acl_valid_link_np( - path, - type.value, - acl, - ); + return _acl_valid_link_np(path, type.value, acl); } - late final _acl_valid_link_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.UnsignedInt, - acl_t)>>('acl_valid_link_np'); + late final _acl_valid_link_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.UnsignedInt, acl_t) + > + >('acl_valid_link_np'); late final _acl_valid_link_np = _acl_valid_link_npPtr .asFunction, int, acl_t)>(); - int acl_add_perm( - acl_permset_t permset_d, - acl_perm_t perm, - ) { - return _acl_add_perm( - permset_d, - perm.value, - ); + int acl_add_perm(acl_permset_t permset_d, acl_perm_t perm) { + return _acl_add_perm(permset_d, perm.value); } - late final _acl_add_permPtr = _lookup< - ffi.NativeFunction>( - 'acl_add_perm'); - late final _acl_add_perm = - _acl_add_permPtr.asFunction(); + late final _acl_add_permPtr = + _lookup< + ffi.NativeFunction + >('acl_add_perm'); + late final _acl_add_perm = _acl_add_permPtr + .asFunction(); - int acl_calc_mask( - ffi.Pointer acl_p, - ) { - return _acl_calc_mask( - acl_p, - ); + int acl_calc_mask(ffi.Pointer acl_p) { + return _acl_calc_mask(acl_p); } late final _acl_calc_maskPtr = _lookup)>>( - 'acl_calc_mask'); - late final _acl_calc_mask = - _acl_calc_maskPtr.asFunction)>(); + 'acl_calc_mask', + ); + late final _acl_calc_mask = _acl_calc_maskPtr + .asFunction)>(); - int acl_clear_perms( - acl_permset_t permset_d, - ) { - return _acl_clear_perms( - permset_d, - ); + int acl_clear_perms(acl_permset_t permset_d) { + return _acl_clear_perms(permset_d); } late final _acl_clear_permsPtr = _lookup>( - 'acl_clear_perms'); - late final _acl_clear_perms = - _acl_clear_permsPtr.asFunction(); + 'acl_clear_perms', + ); + late final _acl_clear_perms = _acl_clear_permsPtr + .asFunction(); - int acl_delete_perm( - acl_permset_t permset_d, - acl_perm_t perm, - ) { - return _acl_delete_perm( - permset_d, - perm.value, - ); + int acl_delete_perm(acl_permset_t permset_d, acl_perm_t perm) { + return _acl_delete_perm(permset_d, perm.value); } - late final _acl_delete_permPtr = _lookup< - ffi.NativeFunction>( - 'acl_delete_perm'); - late final _acl_delete_perm = - _acl_delete_permPtr.asFunction(); + late final _acl_delete_permPtr = + _lookup< + ffi.NativeFunction + >('acl_delete_perm'); + late final _acl_delete_perm = _acl_delete_permPtr + .asFunction(); - int acl_get_perm_np( - acl_permset_t permset_d, - acl_perm_t perm, - ) { - return _acl_get_perm_np( - permset_d, - perm.value, - ); + int acl_get_perm_np(acl_permset_t permset_d, acl_perm_t perm) { + return _acl_get_perm_np(permset_d, perm.value); } - late final _acl_get_perm_npPtr = _lookup< - ffi.NativeFunction>( - 'acl_get_perm_np'); - late final _acl_get_perm_np = - _acl_get_perm_npPtr.asFunction(); + late final _acl_get_perm_npPtr = + _lookup< + ffi.NativeFunction + >('acl_get_perm_np'); + late final _acl_get_perm_np = _acl_get_perm_npPtr + .asFunction(); int acl_get_permset( acl_entry_t entry_d, ffi.Pointer permset_p, ) { - return _acl_get_permset( - entry_d, - permset_p, - ); + return _acl_get_permset(entry_d, permset_p); } - late final _acl_get_permsetPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - acl_entry_t, ffi.Pointer)>>('acl_get_permset'); + late final _acl_get_permsetPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(acl_entry_t, ffi.Pointer) + > + >('acl_get_permset'); late final _acl_get_permset = _acl_get_permsetPtr .asFunction)>(); - int acl_set_permset( - acl_entry_t entry_d, - acl_permset_t permset_d, - ) { - return _acl_set_permset( - entry_d, - permset_d, - ); + int acl_set_permset(acl_entry_t entry_d, acl_permset_t permset_d) { + return _acl_set_permset(entry_d, permset_d); } late final _acl_set_permsetPtr = _lookup>( - 'acl_set_permset'); + 'acl_set_permset', + ); late final _acl_set_permset = _acl_set_permsetPtr .asFunction(); - int acl_maximal_permset_mask_np( - ffi.Pointer mask_p, - ) { - return _acl_maximal_permset_mask_np( - mask_p, - ); + int acl_maximal_permset_mask_np(ffi.Pointer mask_p) { + return _acl_maximal_permset_mask_np(mask_p); } - late final _acl_maximal_permset_mask_npPtr = _lookup< - ffi - .NativeFunction)>>( - 'acl_maximal_permset_mask_np'); + late final _acl_maximal_permset_mask_npPtr = + _lookup< + ffi.NativeFunction)> + >('acl_maximal_permset_mask_np'); late final _acl_maximal_permset_mask_np = _acl_maximal_permset_mask_npPtr .asFunction)>(); @@ -30767,143 +30869,112 @@ class NativeCupertinoHttp { acl_entry_t entry_d, ffi.Pointer mask_p, ) { - return _acl_get_permset_mask_np( - entry_d, - mask_p, - ); + return _acl_get_permset_mask_np(entry_d, mask_p); } - late final _acl_get_permset_mask_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(acl_entry_t, - ffi.Pointer)>>('acl_get_permset_mask_np'); + late final _acl_get_permset_mask_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(acl_entry_t, ffi.Pointer) + > + >('acl_get_permset_mask_np'); late final _acl_get_permset_mask_np = _acl_get_permset_mask_npPtr .asFunction)>(); - int acl_set_permset_mask_np( - acl_entry_t entry_d, - int mask, - ) { - return _acl_set_permset_mask_np( - entry_d, - mask, - ); + int acl_set_permset_mask_np(acl_entry_t entry_d, int mask) { + return _acl_set_permset_mask_np(entry_d, mask); } - late final _acl_set_permset_mask_npPtr = _lookup< - ffi - .NativeFunction>( - 'acl_set_permset_mask_np'); - late final _acl_set_permset_mask_np = - _acl_set_permset_mask_npPtr.asFunction(); + late final _acl_set_permset_mask_npPtr = + _lookup< + ffi.NativeFunction + >('acl_set_permset_mask_np'); + late final _acl_set_permset_mask_np = _acl_set_permset_mask_npPtr + .asFunction(); - int acl_add_flag_np( - acl_flagset_t flagset_d, - acl_flag_t flag, - ) { - return _acl_add_flag_np( - flagset_d, - flag.value, - ); + int acl_add_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { + return _acl_add_flag_np(flagset_d, flag.value); } - late final _acl_add_flag_npPtr = _lookup< - ffi.NativeFunction>( - 'acl_add_flag_np'); - late final _acl_add_flag_np = - _acl_add_flag_npPtr.asFunction(); + late final _acl_add_flag_npPtr = + _lookup< + ffi.NativeFunction + >('acl_add_flag_np'); + late final _acl_add_flag_np = _acl_add_flag_npPtr + .asFunction(); - int acl_clear_flags_np( - acl_flagset_t flagset_d, - ) { - return _acl_clear_flags_np( - flagset_d, - ); + int acl_clear_flags_np(acl_flagset_t flagset_d) { + return _acl_clear_flags_np(flagset_d); } late final _acl_clear_flags_npPtr = _lookup>( - 'acl_clear_flags_np'); - late final _acl_clear_flags_np = - _acl_clear_flags_npPtr.asFunction(); + 'acl_clear_flags_np', + ); + late final _acl_clear_flags_np = _acl_clear_flags_npPtr + .asFunction(); - int acl_delete_flag_np( - acl_flagset_t flagset_d, - acl_flag_t flag, - ) { - return _acl_delete_flag_np( - flagset_d, - flag.value, - ); + int acl_delete_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { + return _acl_delete_flag_np(flagset_d, flag.value); } - late final _acl_delete_flag_npPtr = _lookup< - ffi.NativeFunction>( - 'acl_delete_flag_np'); - late final _acl_delete_flag_np = - _acl_delete_flag_npPtr.asFunction(); + late final _acl_delete_flag_npPtr = + _lookup< + ffi.NativeFunction + >('acl_delete_flag_np'); + late final _acl_delete_flag_np = _acl_delete_flag_npPtr + .asFunction(); - int acl_get_flag_np( - acl_flagset_t flagset_d, - acl_flag_t flag, - ) { - return _acl_get_flag_np( - flagset_d, - flag.value, - ); + int acl_get_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { + return _acl_get_flag_np(flagset_d, flag.value); } - late final _acl_get_flag_npPtr = _lookup< - ffi.NativeFunction>( - 'acl_get_flag_np'); - late final _acl_get_flag_np = - _acl_get_flag_npPtr.asFunction(); + late final _acl_get_flag_npPtr = + _lookup< + ffi.NativeFunction + >('acl_get_flag_np'); + late final _acl_get_flag_np = _acl_get_flag_npPtr + .asFunction(); int acl_get_flagset_np( ffi.Pointer obj_p, ffi.Pointer flagset_p, ) { - return _acl_get_flagset_np( - obj_p, - flagset_p, - ); + return _acl_get_flagset_np(obj_p, flagset_p); } - late final _acl_get_flagset_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer)>>('acl_get_flagset_np'); - late final _acl_get_flagset_np = _acl_get_flagset_npPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + late final _acl_get_flagset_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('acl_get_flagset_np'); + late final _acl_get_flagset_np = _acl_get_flagset_npPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); - int acl_set_flagset_np( - ffi.Pointer obj_p, - acl_flagset_t flagset_d, - ) { - return _acl_set_flagset_np( - obj_p, - flagset_d, - ); + int acl_set_flagset_np(ffi.Pointer obj_p, acl_flagset_t flagset_d) { + return _acl_set_flagset_np(obj_p, flagset_d); } - late final _acl_set_flagset_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, acl_flagset_t)>>('acl_set_flagset_np'); + late final _acl_set_flagset_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, acl_flagset_t) + > + >('acl_set_flagset_np'); late final _acl_set_flagset_np = _acl_set_flagset_npPtr .asFunction, acl_flagset_t)>(); - ffi.Pointer acl_get_qualifier( - acl_entry_t entry_d, - ) { - return _acl_get_qualifier( - entry_d, - ); + ffi.Pointer acl_get_qualifier(acl_entry_t entry_d) { + return _acl_get_qualifier(entry_d); } late final _acl_get_qualifierPtr = _lookup Function(acl_entry_t)>>( - 'acl_get_qualifier'); + 'acl_get_qualifier', + ); late final _acl_get_qualifier = _acl_get_qualifierPtr .asFunction Function(acl_entry_t)>(); @@ -30911,16 +30982,15 @@ class NativeCupertinoHttp { acl_entry_t entry_d, ffi.Pointer tag_type_p, ) { - return _acl_get_tag_type( - entry_d, - tag_type_p, - ); + return _acl_get_tag_type(entry_d, tag_type_p); } - late final _acl_get_tag_typePtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - acl_entry_t, ffi.Pointer)>>('acl_get_tag_type'); + late final _acl_get_tag_typePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(acl_entry_t, ffi.Pointer) + > + >('acl_get_tag_type'); late final _acl_get_tag_type = _acl_get_tag_typePtr .asFunction)>(); @@ -30928,161 +30998,115 @@ class NativeCupertinoHttp { acl_entry_t entry_d, ffi.Pointer tag_qualifier_p, ) { - return _acl_set_qualifier( - entry_d, - tag_qualifier_p, - ); + return _acl_set_qualifier(entry_d, tag_qualifier_p); } - late final _acl_set_qualifierPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - acl_entry_t, ffi.Pointer)>>('acl_set_qualifier'); + late final _acl_set_qualifierPtr = + _lookup< + ffi.NativeFunction)> + >('acl_set_qualifier'); late final _acl_set_qualifier = _acl_set_qualifierPtr .asFunction)>(); - int acl_set_tag_type( - acl_entry_t entry_d, - acl_tag_t tag_type, - ) { - return _acl_set_tag_type( - entry_d, - tag_type.value, - ); + int acl_set_tag_type(acl_entry_t entry_d, acl_tag_t tag_type) { + return _acl_set_tag_type(entry_d, tag_type.value); } - late final _acl_set_tag_typePtr = _lookup< - ffi.NativeFunction>( - 'acl_set_tag_type'); - late final _acl_set_tag_type = - _acl_set_tag_typePtr.asFunction(); + late final _acl_set_tag_typePtr = + _lookup< + ffi.NativeFunction + >('acl_set_tag_type'); + late final _acl_set_tag_type = _acl_set_tag_typePtr + .asFunction(); - int acl_delete_def_file( - ffi.Pointer path_p, - ) { - return _acl_delete_def_file( - path_p, - ); + int acl_delete_def_file(ffi.Pointer path_p) { + return _acl_delete_def_file(path_p); } late final _acl_delete_def_filePtr = _lookup)>>( - 'acl_delete_def_file'); - late final _acl_delete_def_file = - _acl_delete_def_filePtr.asFunction)>(); + 'acl_delete_def_file', + ); + late final _acl_delete_def_file = _acl_delete_def_filePtr + .asFunction)>(); - acl_t acl_get_fd( - int fd, - ) { - return _acl_get_fd( - fd, - ); + acl_t acl_get_fd(int fd) { + return _acl_get_fd(fd); } late final _acl_get_fdPtr = _lookup>('acl_get_fd'); late final _acl_get_fd = _acl_get_fdPtr.asFunction(); - acl_t acl_get_fd_np( - int fd, - acl_type_t type, - ) { - return _acl_get_fd_np( - fd, - type.value, - ); + acl_t acl_get_fd_np(int fd, acl_type_t type) { + return _acl_get_fd_np(fd, type.value); } late final _acl_get_fd_npPtr = _lookup>( - 'acl_get_fd_np'); - late final _acl_get_fd_np = - _acl_get_fd_npPtr.asFunction(); + 'acl_get_fd_np', + ); + late final _acl_get_fd_np = _acl_get_fd_npPtr + .asFunction(); - acl_t acl_get_file( - ffi.Pointer path_p, - acl_type_t type, - ) { - return _acl_get_file( - path_p, - type.value, - ); + acl_t acl_get_file(ffi.Pointer path_p, acl_type_t type) { + return _acl_get_file(path_p, type.value); } - late final _acl_get_filePtr = _lookup< - ffi.NativeFunction< - acl_t Function( - ffi.Pointer, ffi.UnsignedInt)>>('acl_get_file'); - late final _acl_get_file = - _acl_get_filePtr.asFunction, int)>(); + late final _acl_get_filePtr = + _lookup< + ffi.NativeFunction< + acl_t Function(ffi.Pointer, ffi.UnsignedInt) + > + >('acl_get_file'); + late final _acl_get_file = _acl_get_filePtr + .asFunction, int)>(); - acl_t acl_get_link_np( - ffi.Pointer path_p, - acl_type_t type, - ) { - return _acl_get_link_np( - path_p, - type.value, - ); + acl_t acl_get_link_np(ffi.Pointer path_p, acl_type_t type) { + return _acl_get_link_np(path_p, type.value); } - late final _acl_get_link_npPtr = _lookup< - ffi.NativeFunction< - acl_t Function( - ffi.Pointer, ffi.UnsignedInt)>>('acl_get_link_np'); + late final _acl_get_link_npPtr = + _lookup< + ffi.NativeFunction< + acl_t Function(ffi.Pointer, ffi.UnsignedInt) + > + >('acl_get_link_np'); late final _acl_get_link_np = _acl_get_link_npPtr .asFunction, int)>(); - int acl_set_fd( - int fd, - acl_t acl, - ) { - return _acl_set_fd( - fd, - acl, - ); + int acl_set_fd(int fd, acl_t acl) { + return _acl_set_fd(fd, acl); } late final _acl_set_fdPtr = _lookup>( - 'acl_set_fd'); - late final _acl_set_fd = - _acl_set_fdPtr.asFunction(); + 'acl_set_fd', + ); + late final _acl_set_fd = _acl_set_fdPtr + .asFunction(); - int acl_set_fd_np( - int fd, - acl_t acl, - acl_type_t acl_type, - ) { - return _acl_set_fd_np( - fd, - acl, - acl_type.value, - ); + int acl_set_fd_np(int fd, acl_t acl, acl_type_t acl_type) { + return _acl_set_fd_np(fd, acl, acl_type.value); } - late final _acl_set_fd_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Int, acl_t, ffi.UnsignedInt)>>('acl_set_fd_np'); - late final _acl_set_fd_np = - _acl_set_fd_npPtr.asFunction(); + late final _acl_set_fd_npPtr = + _lookup< + ffi.NativeFunction + >('acl_set_fd_np'); + late final _acl_set_fd_np = _acl_set_fd_npPtr + .asFunction(); - int acl_set_file( - ffi.Pointer path_p, - acl_type_t type, - acl_t acl, - ) { - return _acl_set_file( - path_p, - type.value, - acl, - ); + int acl_set_file(ffi.Pointer path_p, acl_type_t type, acl_t acl) { + return _acl_set_file(path_p, type.value, acl); } - late final _acl_set_filePtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.UnsignedInt, acl_t)>>('acl_set_file'); + late final _acl_set_filePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.UnsignedInt, acl_t) + > + >('acl_set_file'); late final _acl_set_file = _acl_set_filePtr .asFunction, int, acl_t)>(); @@ -31091,128 +31115,99 @@ class NativeCupertinoHttp { acl_type_t type, acl_t acl, ) { - return _acl_set_link_np( - path_p, - type.value, - acl, - ); + return _acl_set_link_np(path_p, type.value, acl); } - late final _acl_set_link_npPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.UnsignedInt, - acl_t)>>('acl_set_link_np'); + late final _acl_set_link_npPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.UnsignedInt, acl_t) + > + >('acl_set_link_np'); late final _acl_set_link_np = _acl_set_link_npPtr .asFunction, int, acl_t)>(); - int acl_copy_ext( - ffi.Pointer buf_p, - acl_t acl, - int size, - ) { - return _acl_copy_ext( - buf_p, - acl, - size, - ); + int acl_copy_ext(ffi.Pointer buf_p, acl_t acl, int size) { + return _acl_copy_ext(buf_p, acl, size); } - late final _acl_copy_extPtr = _lookup< - ffi.NativeFunction< - ssize_t Function( - ffi.Pointer, acl_t, ssize_t)>>('acl_copy_ext'); + late final _acl_copy_extPtr = + _lookup< + ffi.NativeFunction< + ssize_t Function(ffi.Pointer, acl_t, ssize_t) + > + >('acl_copy_ext'); late final _acl_copy_ext = _acl_copy_extPtr .asFunction, acl_t, int)>(); - int acl_copy_ext_native( - ffi.Pointer buf_p, - acl_t acl, - int size, - ) { - return _acl_copy_ext_native( - buf_p, - acl, - size, - ); + int acl_copy_ext_native(ffi.Pointer buf_p, acl_t acl, int size) { + return _acl_copy_ext_native(buf_p, acl, size); } - late final _acl_copy_ext_nativePtr = _lookup< - ffi.NativeFunction< - ssize_t Function( - ffi.Pointer, acl_t, ssize_t)>>('acl_copy_ext_native'); + late final _acl_copy_ext_nativePtr = + _lookup< + ffi.NativeFunction< + ssize_t Function(ffi.Pointer, acl_t, ssize_t) + > + >('acl_copy_ext_native'); late final _acl_copy_ext_native = _acl_copy_ext_nativePtr .asFunction, acl_t, int)>(); - acl_t acl_copy_int( - ffi.Pointer buf_p, - ) { - return _acl_copy_int( - buf_p, - ); + acl_t acl_copy_int(ffi.Pointer buf_p) { + return _acl_copy_int(buf_p); } late final _acl_copy_intPtr = _lookup)>>( - 'acl_copy_int'); - late final _acl_copy_int = - _acl_copy_intPtr.asFunction)>(); + 'acl_copy_int', + ); + late final _acl_copy_int = _acl_copy_intPtr + .asFunction)>(); - acl_t acl_copy_int_native( - ffi.Pointer buf_p, - ) { - return _acl_copy_int_native( - buf_p, - ); + acl_t acl_copy_int_native(ffi.Pointer buf_p) { + return _acl_copy_int_native(buf_p); } late final _acl_copy_int_nativePtr = _lookup)>>( - 'acl_copy_int_native'); + 'acl_copy_int_native', + ); late final _acl_copy_int_native = _acl_copy_int_nativePtr .asFunction)>(); - acl_t acl_from_text( - ffi.Pointer buf_p, - ) { - return _acl_from_text( - buf_p, - ); + acl_t acl_from_text(ffi.Pointer buf_p) { + return _acl_from_text(buf_p); } late final _acl_from_textPtr = _lookup)>>( - 'acl_from_text'); - late final _acl_from_text = - _acl_from_textPtr.asFunction)>(); + 'acl_from_text', + ); + late final _acl_from_text = _acl_from_textPtr + .asFunction)>(); - int acl_size( - acl_t acl, - ) { - return _acl_size( - acl, - ); + int acl_size(acl_t acl) { + return _acl_size(acl); } late final _acl_sizePtr = _lookup>('acl_size'); late final _acl_size = _acl_sizePtr.asFunction(); - ffi.Pointer acl_to_text( - acl_t acl, - ffi.Pointer len_p, - ) { - return _acl_to_text( - acl, - len_p, - ); + ffi.Pointer acl_to_text(acl_t acl, ffi.Pointer len_p) { + return _acl_to_text(acl, len_p); } - late final _acl_to_textPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - acl_t, ffi.Pointer)>>('acl_to_text'); - late final _acl_to_text = _acl_to_textPtr.asFunction< - ffi.Pointer Function(acl_t, ffi.Pointer)>(); + late final _acl_to_textPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(acl_t, ffi.Pointer) + > + >('acl_to_text'); + late final _acl_to_text = _acl_to_textPtr + .asFunction< + ffi.Pointer Function(acl_t, ffi.Pointer) + >(); int CFFileSecurityGetTypeID() { return _CFFileSecurityGetTypeID(); @@ -31220,275 +31215,268 @@ class NativeCupertinoHttp { late final _CFFileSecurityGetTypeIDPtr = _lookup>( - 'CFFileSecurityGetTypeID'); + 'CFFileSecurityGetTypeID', + ); late final _CFFileSecurityGetTypeID = _CFFileSecurityGetTypeIDPtr.asFunction(); - CFFileSecurityRef CFFileSecurityCreate( - CFAllocatorRef allocator, - ) { - return _CFFileSecurityCreate( - allocator, - ); + CFFileSecurityRef CFFileSecurityCreate(CFAllocatorRef allocator) { + return _CFFileSecurityCreate(allocator); } late final _CFFileSecurityCreatePtr = _lookup>( - 'CFFileSecurityCreate'); - late final _CFFileSecurityCreate = _CFFileSecurityCreatePtr.asFunction< - CFFileSecurityRef Function(CFAllocatorRef)>(); + 'CFFileSecurityCreate', + ); + late final _CFFileSecurityCreate = + _CFFileSecurityCreatePtr.asFunction< + CFFileSecurityRef Function(CFAllocatorRef) + >(); CFFileSecurityRef CFFileSecurityCreateCopy( CFAllocatorRef allocator, CFFileSecurityRef fileSec, ) { - return _CFFileSecurityCreateCopy( - allocator, - fileSec, - ); + return _CFFileSecurityCreateCopy(allocator, fileSec); } - late final _CFFileSecurityCreateCopyPtr = _lookup< - ffi.NativeFunction< - CFFileSecurityRef Function( - CFAllocatorRef, CFFileSecurityRef)>>('CFFileSecurityCreateCopy'); + late final _CFFileSecurityCreateCopyPtr = + _lookup< + ffi.NativeFunction< + CFFileSecurityRef Function(CFAllocatorRef, CFFileSecurityRef) + > + >('CFFileSecurityCreateCopy'); late final _CFFileSecurityCreateCopy = _CFFileSecurityCreateCopyPtr.asFunction< - CFFileSecurityRef Function(CFAllocatorRef, CFFileSecurityRef)>(); + CFFileSecurityRef Function(CFAllocatorRef, CFFileSecurityRef) + >(); int CFFileSecurityCopyOwnerUUID( CFFileSecurityRef fileSec, ffi.Pointer ownerUUID, ) { - return _CFFileSecurityCopyOwnerUUID( - fileSec, - ownerUUID, - ); + return _CFFileSecurityCopyOwnerUUID(fileSec, ownerUUID); } - late final _CFFileSecurityCopyOwnerUUIDPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFFileSecurityRef, - ffi.Pointer)>>('CFFileSecurityCopyOwnerUUID'); - late final _CFFileSecurityCopyOwnerUUID = _CFFileSecurityCopyOwnerUUIDPtr - .asFunction)>(); + late final _CFFileSecurityCopyOwnerUUIDPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFFileSecurityRef, ffi.Pointer) + > + >('CFFileSecurityCopyOwnerUUID'); + late final _CFFileSecurityCopyOwnerUUID = + _CFFileSecurityCopyOwnerUUIDPtr.asFunction< + int Function(CFFileSecurityRef, ffi.Pointer) + >(); int CFFileSecuritySetOwnerUUID( CFFileSecurityRef fileSec, CFUUIDRef ownerUUID, ) { - return _CFFileSecuritySetOwnerUUID( - fileSec, - ownerUUID, - ); + return _CFFileSecuritySetOwnerUUID(fileSec, ownerUUID); } - late final _CFFileSecuritySetOwnerUUIDPtr = _lookup< - ffi.NativeFunction>( - 'CFFileSecuritySetOwnerUUID'); - late final _CFFileSecuritySetOwnerUUID = _CFFileSecuritySetOwnerUUIDPtr - .asFunction(); + late final _CFFileSecuritySetOwnerUUIDPtr = + _lookup< + ffi.NativeFunction + >('CFFileSecuritySetOwnerUUID'); + late final _CFFileSecuritySetOwnerUUID = + _CFFileSecuritySetOwnerUUIDPtr.asFunction< + int Function(CFFileSecurityRef, CFUUIDRef) + >(); int CFFileSecurityCopyGroupUUID( CFFileSecurityRef fileSec, ffi.Pointer groupUUID, ) { - return _CFFileSecurityCopyGroupUUID( - fileSec, - groupUUID, - ); + return _CFFileSecurityCopyGroupUUID(fileSec, groupUUID); } - late final _CFFileSecurityCopyGroupUUIDPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFFileSecurityRef, - ffi.Pointer)>>('CFFileSecurityCopyGroupUUID'); - late final _CFFileSecurityCopyGroupUUID = _CFFileSecurityCopyGroupUUIDPtr - .asFunction)>(); + late final _CFFileSecurityCopyGroupUUIDPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFFileSecurityRef, ffi.Pointer) + > + >('CFFileSecurityCopyGroupUUID'); + late final _CFFileSecurityCopyGroupUUID = + _CFFileSecurityCopyGroupUUIDPtr.asFunction< + int Function(CFFileSecurityRef, ffi.Pointer) + >(); int CFFileSecuritySetGroupUUID( CFFileSecurityRef fileSec, CFUUIDRef groupUUID, ) { - return _CFFileSecuritySetGroupUUID( - fileSec, - groupUUID, - ); + return _CFFileSecuritySetGroupUUID(fileSec, groupUUID); } - late final _CFFileSecuritySetGroupUUIDPtr = _lookup< - ffi.NativeFunction>( - 'CFFileSecuritySetGroupUUID'); - late final _CFFileSecuritySetGroupUUID = _CFFileSecuritySetGroupUUIDPtr - .asFunction(); + late final _CFFileSecuritySetGroupUUIDPtr = + _lookup< + ffi.NativeFunction + >('CFFileSecuritySetGroupUUID'); + late final _CFFileSecuritySetGroupUUID = + _CFFileSecuritySetGroupUUIDPtr.asFunction< + int Function(CFFileSecurityRef, CFUUIDRef) + >(); int CFFileSecurityCopyAccessControlList( CFFileSecurityRef fileSec, ffi.Pointer accessControlList, ) { - return _CFFileSecurityCopyAccessControlList( - fileSec, - accessControlList, - ); + return _CFFileSecurityCopyAccessControlList(fileSec, accessControlList); } - late final _CFFileSecurityCopyAccessControlListPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFFileSecurityRef, - ffi.Pointer)>>('CFFileSecurityCopyAccessControlList'); + late final _CFFileSecurityCopyAccessControlListPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFFileSecurityRef, ffi.Pointer) + > + >('CFFileSecurityCopyAccessControlList'); late final _CFFileSecurityCopyAccessControlList = _CFFileSecurityCopyAccessControlListPtr.asFunction< - int Function(CFFileSecurityRef, ffi.Pointer)>(); + int Function(CFFileSecurityRef, ffi.Pointer) + >(); int CFFileSecuritySetAccessControlList( CFFileSecurityRef fileSec, acl_t accessControlList, ) { - return _CFFileSecuritySetAccessControlList( - fileSec, - accessControlList, - ); + return _CFFileSecuritySetAccessControlList(fileSec, accessControlList); } late final _CFFileSecuritySetAccessControlListPtr = _lookup>( - 'CFFileSecuritySetAccessControlList'); + 'CFFileSecuritySetAccessControlList', + ); late final _CFFileSecuritySetAccessControlList = _CFFileSecuritySetAccessControlListPtr.asFunction< - int Function(CFFileSecurityRef, acl_t)>(); + int Function(CFFileSecurityRef, acl_t) + >(); int CFFileSecurityGetOwner( CFFileSecurityRef fileSec, ffi.Pointer owner, ) { - return _CFFileSecurityGetOwner( - fileSec, - owner, - ); + return _CFFileSecurityGetOwner(fileSec, owner); } - late final _CFFileSecurityGetOwnerPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFFileSecurityRef, - ffi.Pointer)>>('CFFileSecurityGetOwner'); - late final _CFFileSecurityGetOwner = _CFFileSecurityGetOwnerPtr.asFunction< - int Function(CFFileSecurityRef, ffi.Pointer)>(); + late final _CFFileSecurityGetOwnerPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFFileSecurityRef, ffi.Pointer) + > + >('CFFileSecurityGetOwner'); + late final _CFFileSecurityGetOwner = + _CFFileSecurityGetOwnerPtr.asFunction< + int Function(CFFileSecurityRef, ffi.Pointer) + >(); - int CFFileSecuritySetOwner( - CFFileSecurityRef fileSec, - int owner, - ) { - return _CFFileSecuritySetOwner( - fileSec, - owner, - ); + int CFFileSecuritySetOwner(CFFileSecurityRef fileSec, int owner) { + return _CFFileSecuritySetOwner(fileSec, owner); } late final _CFFileSecuritySetOwnerPtr = _lookup>( - 'CFFileSecuritySetOwner'); - late final _CFFileSecuritySetOwner = _CFFileSecuritySetOwnerPtr.asFunction< - int Function(CFFileSecurityRef, int)>(); + 'CFFileSecuritySetOwner', + ); + late final _CFFileSecuritySetOwner = + _CFFileSecuritySetOwnerPtr.asFunction< + int Function(CFFileSecurityRef, int) + >(); int CFFileSecurityGetGroup( CFFileSecurityRef fileSec, ffi.Pointer group, ) { - return _CFFileSecurityGetGroup( - fileSec, - group, - ); + return _CFFileSecurityGetGroup(fileSec, group); } - late final _CFFileSecurityGetGroupPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFFileSecurityRef, - ffi.Pointer)>>('CFFileSecurityGetGroup'); - late final _CFFileSecurityGetGroup = _CFFileSecurityGetGroupPtr.asFunction< - int Function(CFFileSecurityRef, ffi.Pointer)>(); + late final _CFFileSecurityGetGroupPtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFFileSecurityRef, ffi.Pointer) + > + >('CFFileSecurityGetGroup'); + late final _CFFileSecurityGetGroup = + _CFFileSecurityGetGroupPtr.asFunction< + int Function(CFFileSecurityRef, ffi.Pointer) + >(); - int CFFileSecuritySetGroup( - CFFileSecurityRef fileSec, - int group, - ) { - return _CFFileSecuritySetGroup( - fileSec, - group, - ); + int CFFileSecuritySetGroup(CFFileSecurityRef fileSec, int group) { + return _CFFileSecuritySetGroup(fileSec, group); } late final _CFFileSecuritySetGroupPtr = _lookup>( - 'CFFileSecuritySetGroup'); - late final _CFFileSecuritySetGroup = _CFFileSecuritySetGroupPtr.asFunction< - int Function(CFFileSecurityRef, int)>(); + 'CFFileSecuritySetGroup', + ); + late final _CFFileSecuritySetGroup = + _CFFileSecuritySetGroupPtr.asFunction< + int Function(CFFileSecurityRef, int) + >(); int CFFileSecurityGetMode( CFFileSecurityRef fileSec, ffi.Pointer mode, ) { - return _CFFileSecurityGetMode( - fileSec, - mode, - ); + return _CFFileSecurityGetMode(fileSec, mode); } - late final _CFFileSecurityGetModePtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFFileSecurityRef, - ffi.Pointer)>>('CFFileSecurityGetMode'); - late final _CFFileSecurityGetMode = _CFFileSecurityGetModePtr.asFunction< - int Function(CFFileSecurityRef, ffi.Pointer)>(); + late final _CFFileSecurityGetModePtr = + _lookup< + ffi.NativeFunction< + Boolean Function(CFFileSecurityRef, ffi.Pointer) + > + >('CFFileSecurityGetMode'); + late final _CFFileSecurityGetMode = + _CFFileSecurityGetModePtr.asFunction< + int Function(CFFileSecurityRef, ffi.Pointer) + >(); - int CFFileSecuritySetMode( - CFFileSecurityRef fileSec, - int mode, - ) { - return _CFFileSecuritySetMode( - fileSec, - mode, - ); + int CFFileSecuritySetMode(CFFileSecurityRef fileSec, int mode) { + return _CFFileSecuritySetMode(fileSec, mode); } late final _CFFileSecuritySetModePtr = _lookup>( - 'CFFileSecuritySetMode'); - late final _CFFileSecuritySetMode = _CFFileSecuritySetModePtr.asFunction< - int Function(CFFileSecurityRef, int)>(); + 'CFFileSecuritySetMode', + ); + late final _CFFileSecuritySetMode = + _CFFileSecuritySetModePtr.asFunction< + int Function(CFFileSecurityRef, int) + >(); DartBoolean CFFileSecurityClearProperties( CFFileSecurityRef fileSec, CFFileSecurityClearOptions clearPropertyMask, ) { - return _CFFileSecurityClearProperties( - fileSec, - clearPropertyMask.value, - ); + return _CFFileSecurityClearProperties(fileSec, clearPropertyMask.value); } - late final _CFFileSecurityClearPropertiesPtr = _lookup< - ffi - .NativeFunction>( - 'CFFileSecurityClearProperties'); - late final _CFFileSecurityClearProperties = _CFFileSecurityClearPropertiesPtr - .asFunction(); + late final _CFFileSecurityClearPropertiesPtr = + _lookup< + ffi.NativeFunction + >('CFFileSecurityClearProperties'); + late final _CFFileSecurityClearProperties = + _CFFileSecurityClearPropertiesPtr.asFunction< + int Function(CFFileSecurityRef, int) + >(); CFStringRef CFStringTokenizerCopyBestStringLanguage( CFStringRef string, CFRange range, ) { - return _CFStringTokenizerCopyBestStringLanguage( - string, - range, - ); + return _CFStringTokenizerCopyBestStringLanguage(string, range); } late final _CFStringTokenizerCopyBestStringLanguagePtr = _lookup>( - 'CFStringTokenizerCopyBestStringLanguage'); + 'CFStringTokenizerCopyBestStringLanguage', + ); late final _CFStringTokenizerCopyBestStringLanguage = _CFStringTokenizerCopyBestStringLanguagePtr.asFunction< - CFStringRef Function(CFStringRef, CFRange)>(); + CFStringRef Function(CFStringRef, CFRange) + >(); int CFStringTokenizerGetTypeID() { return _CFStringTokenizerGetTypeID(); @@ -31496,7 +31484,8 @@ class NativeCupertinoHttp { late final _CFStringTokenizerGetTypeIDPtr = _lookup>( - 'CFStringTokenizerGetTypeID'); + 'CFStringTokenizerGetTypeID', + ); late final _CFStringTokenizerGetTypeID = _CFStringTokenizerGetTypeIDPtr.asFunction(); @@ -31507,109 +31496,120 @@ class NativeCupertinoHttp { int options, CFLocaleRef locale, ) { - return _CFStringTokenizerCreate( - alloc, - string, - range, - options, - locale, - ); + return _CFStringTokenizerCreate(alloc, string, range, options, locale); } - late final _CFStringTokenizerCreatePtr = _lookup< - ffi.NativeFunction< - CFStringTokenizerRef Function(CFAllocatorRef, CFStringRef, CFRange, - CFOptionFlags, CFLocaleRef)>>('CFStringTokenizerCreate'); - late final _CFStringTokenizerCreate = _CFStringTokenizerCreatePtr.asFunction< - CFStringTokenizerRef Function( - CFAllocatorRef, CFStringRef, CFRange, int, CFLocaleRef)>(); + late final _CFStringTokenizerCreatePtr = + _lookup< + ffi.NativeFunction< + CFStringTokenizerRef Function( + CFAllocatorRef, + CFStringRef, + CFRange, + CFOptionFlags, + CFLocaleRef, + ) + > + >('CFStringTokenizerCreate'); + late final _CFStringTokenizerCreate = + _CFStringTokenizerCreatePtr.asFunction< + CFStringTokenizerRef Function( + CFAllocatorRef, + CFStringRef, + CFRange, + int, + CFLocaleRef, + ) + >(); void CFStringTokenizerSetString( CFStringTokenizerRef tokenizer, CFStringRef string, CFRange range, ) { - return _CFStringTokenizerSetString( - tokenizer, - string, - range, - ); + return _CFStringTokenizerSetString(tokenizer, string, range); } - late final _CFStringTokenizerSetStringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFStringTokenizerRef, CFStringRef, - CFRange)>>('CFStringTokenizerSetString'); - late final _CFStringTokenizerSetString = _CFStringTokenizerSetStringPtr - .asFunction(); + late final _CFStringTokenizerSetStringPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFStringTokenizerRef, CFStringRef, CFRange) + > + >('CFStringTokenizerSetString'); + late final _CFStringTokenizerSetString = + _CFStringTokenizerSetStringPtr.asFunction< + void Function(CFStringTokenizerRef, CFStringRef, CFRange) + >(); CFStringTokenizerTokenType CFStringTokenizerGoToTokenAtIndex( CFStringTokenizerRef tokenizer, DartCFIndex index, ) { return CFStringTokenizerTokenType.fromValue( - _CFStringTokenizerGoToTokenAtIndex( - tokenizer, - index, - )); + _CFStringTokenizerGoToTokenAtIndex(tokenizer, index), + ); } - late final _CFStringTokenizerGoToTokenAtIndexPtr = _lookup< - ffi.NativeFunction< - CFOptionFlags Function(CFStringTokenizerRef, - CFIndex)>>('CFStringTokenizerGoToTokenAtIndex'); + late final _CFStringTokenizerGoToTokenAtIndexPtr = + _lookup< + ffi.NativeFunction< + CFOptionFlags Function(CFStringTokenizerRef, CFIndex) + > + >('CFStringTokenizerGoToTokenAtIndex'); late final _CFStringTokenizerGoToTokenAtIndex = _CFStringTokenizerGoToTokenAtIndexPtr.asFunction< - int Function(CFStringTokenizerRef, int)>(); + int Function(CFStringTokenizerRef, int) + >(); CFStringTokenizerTokenType CFStringTokenizerAdvanceToNextToken( CFStringTokenizerRef tokenizer, ) { return CFStringTokenizerTokenType.fromValue( - _CFStringTokenizerAdvanceToNextToken( - tokenizer, - )); + _CFStringTokenizerAdvanceToNextToken(tokenizer), + ); } late final _CFStringTokenizerAdvanceToNextTokenPtr = _lookup>( - 'CFStringTokenizerAdvanceToNextToken'); + 'CFStringTokenizerAdvanceToNextToken', + ); late final _CFStringTokenizerAdvanceToNextToken = _CFStringTokenizerAdvanceToNextTokenPtr.asFunction< - int Function(CFStringTokenizerRef)>(); + int Function(CFStringTokenizerRef) + >(); CFRange CFStringTokenizerGetCurrentTokenRange( CFStringTokenizerRef tokenizer, ) { - return _CFStringTokenizerGetCurrentTokenRange( - tokenizer, - ); + return _CFStringTokenizerGetCurrentTokenRange(tokenizer); } late final _CFStringTokenizerGetCurrentTokenRangePtr = _lookup>( - 'CFStringTokenizerGetCurrentTokenRange'); + 'CFStringTokenizerGetCurrentTokenRange', + ); late final _CFStringTokenizerGetCurrentTokenRange = _CFStringTokenizerGetCurrentTokenRangePtr.asFunction< - CFRange Function(CFStringTokenizerRef)>(); + CFRange Function(CFStringTokenizerRef) + >(); CFTypeRef CFStringTokenizerCopyCurrentTokenAttribute( CFStringTokenizerRef tokenizer, int attribute, ) { - return _CFStringTokenizerCopyCurrentTokenAttribute( - tokenizer, - attribute, - ); + return _CFStringTokenizerCopyCurrentTokenAttribute(tokenizer, attribute); } - late final _CFStringTokenizerCopyCurrentTokenAttributePtr = _lookup< - ffi.NativeFunction< - CFTypeRef Function(CFStringTokenizerRef, - CFOptionFlags)>>('CFStringTokenizerCopyCurrentTokenAttribute'); + late final _CFStringTokenizerCopyCurrentTokenAttributePtr = + _lookup< + ffi.NativeFunction< + CFTypeRef Function(CFStringTokenizerRef, CFOptionFlags) + > + >('CFStringTokenizerCopyCurrentTokenAttribute'); late final _CFStringTokenizerCopyCurrentTokenAttribute = _CFStringTokenizerCopyCurrentTokenAttributePtr.asFunction< - CFTypeRef Function(CFStringTokenizerRef, int)>(); + CFTypeRef Function(CFStringTokenizerRef, int) + >(); int CFStringTokenizerGetCurrentSubTokens( CFStringTokenizerRef tokenizer, @@ -31625,14 +31625,26 @@ class NativeCupertinoHttp { ); } - late final _CFStringTokenizerGetCurrentSubTokensPtr = _lookup< - ffi.NativeFunction< - CFIndex Function(CFStringTokenizerRef, ffi.Pointer, CFIndex, - CFMutableArrayRef)>>('CFStringTokenizerGetCurrentSubTokens'); + late final _CFStringTokenizerGetCurrentSubTokensPtr = + _lookup< + ffi.NativeFunction< + CFIndex Function( + CFStringTokenizerRef, + ffi.Pointer, + CFIndex, + CFMutableArrayRef, + ) + > + >('CFStringTokenizerGetCurrentSubTokens'); late final _CFStringTokenizerGetCurrentSubTokens = _CFStringTokenizerGetCurrentSubTokensPtr.asFunction< - int Function(CFStringTokenizerRef, ffi.Pointer, int, - CFMutableArrayRef)>(); + int Function( + CFStringTokenizerRef, + ffi.Pointer, + int, + CFMutableArrayRef, + ) + >(); int CFFileDescriptorGetTypeID() { return _CFFileDescriptorGetTypeID(); @@ -31640,7 +31652,8 @@ class NativeCupertinoHttp { late final _CFFileDescriptorGetTypeIDPtr = _lookup>( - 'CFFileDescriptorGetTypeID'); + 'CFFileDescriptorGetTypeID', + ); late final _CFFileDescriptorGetTypeID = _CFFileDescriptorGetTypeIDPtr.asFunction(); @@ -31660,138 +31673,149 @@ class NativeCupertinoHttp { ); } - late final _CFFileDescriptorCreatePtr = _lookup< - ffi.NativeFunction< + late final _CFFileDescriptorCreatePtr = + _lookup< + ffi.NativeFunction< CFFileDescriptorRef Function( - CFAllocatorRef, - CFFileDescriptorNativeDescriptor, - Boolean, - CFFileDescriptorCallBack, - ffi.Pointer)>>('CFFileDescriptorCreate'); - late final _CFFileDescriptorCreate = _CFFileDescriptorCreatePtr.asFunction< - CFFileDescriptorRef Function(CFAllocatorRef, int, int, - CFFileDescriptorCallBack, ffi.Pointer)>(); - - int CFFileDescriptorGetNativeDescriptor( - CFFileDescriptorRef f, - ) { - return _CFFileDescriptorGetNativeDescriptor( - f, - ); + CFAllocatorRef, + CFFileDescriptorNativeDescriptor, + Boolean, + CFFileDescriptorCallBack, + ffi.Pointer, + ) + > + >('CFFileDescriptorCreate'); + late final _CFFileDescriptorCreate = + _CFFileDescriptorCreatePtr.asFunction< + CFFileDescriptorRef Function( + CFAllocatorRef, + int, + int, + CFFileDescriptorCallBack, + ffi.Pointer, + ) + >(); + + int CFFileDescriptorGetNativeDescriptor(CFFileDescriptorRef f) { + return _CFFileDescriptorGetNativeDescriptor(f); } - late final _CFFileDescriptorGetNativeDescriptorPtr = _lookup< - ffi.NativeFunction< - CFFileDescriptorNativeDescriptor Function( - CFFileDescriptorRef)>>('CFFileDescriptorGetNativeDescriptor'); + late final _CFFileDescriptorGetNativeDescriptorPtr = + _lookup< + ffi.NativeFunction< + CFFileDescriptorNativeDescriptor Function(CFFileDescriptorRef) + > + >('CFFileDescriptorGetNativeDescriptor'); late final _CFFileDescriptorGetNativeDescriptor = _CFFileDescriptorGetNativeDescriptorPtr.asFunction< - int Function(CFFileDescriptorRef)>(); + int Function(CFFileDescriptorRef) + >(); void CFFileDescriptorGetContext( CFFileDescriptorRef f, ffi.Pointer context, ) { - return _CFFileDescriptorGetContext( - f, - context, - ); + return _CFFileDescriptorGetContext(f, context); } - late final _CFFileDescriptorGetContextPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFFileDescriptorRef, ffi.Pointer)>>( - 'CFFileDescriptorGetContext'); + late final _CFFileDescriptorGetContextPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFFileDescriptorRef, + ffi.Pointer, + ) + > + >('CFFileDescriptorGetContext'); late final _CFFileDescriptorGetContext = _CFFileDescriptorGetContextPtr.asFunction< - void Function( - CFFileDescriptorRef, ffi.Pointer)>(); + void Function(CFFileDescriptorRef, ffi.Pointer) + >(); void CFFileDescriptorEnableCallBacks( CFFileDescriptorRef f, int callBackTypes, ) { - return _CFFileDescriptorEnableCallBacks( - f, - callBackTypes, - ); + return _CFFileDescriptorEnableCallBacks(f, callBackTypes); } - late final _CFFileDescriptorEnableCallBacksPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFFileDescriptorRef, - CFOptionFlags)>>('CFFileDescriptorEnableCallBacks'); + late final _CFFileDescriptorEnableCallBacksPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFFileDescriptorRef, CFOptionFlags) + > + >('CFFileDescriptorEnableCallBacks'); late final _CFFileDescriptorEnableCallBacks = _CFFileDescriptorEnableCallBacksPtr.asFunction< - void Function(CFFileDescriptorRef, int)>(); + void Function(CFFileDescriptorRef, int) + >(); void CFFileDescriptorDisableCallBacks( CFFileDescriptorRef f, int callBackTypes, ) { - return _CFFileDescriptorDisableCallBacks( - f, - callBackTypes, - ); + return _CFFileDescriptorDisableCallBacks(f, callBackTypes); } - late final _CFFileDescriptorDisableCallBacksPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFFileDescriptorRef, - CFOptionFlags)>>('CFFileDescriptorDisableCallBacks'); + late final _CFFileDescriptorDisableCallBacksPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFFileDescriptorRef, CFOptionFlags) + > + >('CFFileDescriptorDisableCallBacks'); late final _CFFileDescriptorDisableCallBacks = _CFFileDescriptorDisableCallBacksPtr.asFunction< - void Function(CFFileDescriptorRef, int)>(); + void Function(CFFileDescriptorRef, int) + >(); - void CFFileDescriptorInvalidate( - CFFileDescriptorRef f, - ) { - return _CFFileDescriptorInvalidate( - f, - ); + void CFFileDescriptorInvalidate(CFFileDescriptorRef f) { + return _CFFileDescriptorInvalidate(f); } late final _CFFileDescriptorInvalidatePtr = _lookup>( - 'CFFileDescriptorInvalidate'); - late final _CFFileDescriptorInvalidate = _CFFileDescriptorInvalidatePtr - .asFunction(); + 'CFFileDescriptorInvalidate', + ); + late final _CFFileDescriptorInvalidate = + _CFFileDescriptorInvalidatePtr.asFunction< + void Function(CFFileDescriptorRef) + >(); - int CFFileDescriptorIsValid( - CFFileDescriptorRef f, - ) { - return _CFFileDescriptorIsValid( - f, - ); + int CFFileDescriptorIsValid(CFFileDescriptorRef f) { + return _CFFileDescriptorIsValid(f); } late final _CFFileDescriptorIsValidPtr = _lookup>( - 'CFFileDescriptorIsValid'); - late final _CFFileDescriptorIsValid = _CFFileDescriptorIsValidPtr.asFunction< - int Function(CFFileDescriptorRef)>(); + 'CFFileDescriptorIsValid', + ); + late final _CFFileDescriptorIsValid = + _CFFileDescriptorIsValidPtr.asFunction< + int Function(CFFileDescriptorRef) + >(); CFRunLoopSourceRef CFFileDescriptorCreateRunLoopSource( CFAllocatorRef allocator, CFFileDescriptorRef f, int order, ) { - return _CFFileDescriptorCreateRunLoopSource( - allocator, - f, - order, - ); + return _CFFileDescriptorCreateRunLoopSource(allocator, f, order); } - late final _CFFileDescriptorCreateRunLoopSourcePtr = _lookup< - ffi.NativeFunction< - CFRunLoopSourceRef Function(CFAllocatorRef, CFFileDescriptorRef, - CFIndex)>>('CFFileDescriptorCreateRunLoopSource'); + late final _CFFileDescriptorCreateRunLoopSourcePtr = + _lookup< + ffi.NativeFunction< + CFRunLoopSourceRef Function( + CFAllocatorRef, + CFFileDescriptorRef, + CFIndex, + ) + > + >('CFFileDescriptorCreateRunLoopSource'); late final _CFFileDescriptorCreateRunLoopSource = _CFFileDescriptorCreateRunLoopSourcePtr.asFunction< - CFRunLoopSourceRef Function( - CFAllocatorRef, CFFileDescriptorRef, int)>(); + CFRunLoopSourceRef Function(CFAllocatorRef, CFFileDescriptorRef, int) + >(); int CFUserNotificationGetTypeID() { return _CFUserNotificationGetTypeID(); @@ -31799,7 +31823,8 @@ class NativeCupertinoHttp { late final _CFUserNotificationGetTypeIDPtr = _lookup>( - 'CFUserNotificationGetTypeID'); + 'CFUserNotificationGetTypeID', + ); late final _CFUserNotificationGetTypeID = _CFUserNotificationGetTypeIDPtr.asFunction(); @@ -31819,18 +31844,28 @@ class NativeCupertinoHttp { ); } - late final _CFUserNotificationCreatePtr = _lookup< - ffi.NativeFunction< + late final _CFUserNotificationCreatePtr = + _lookup< + ffi.NativeFunction< CFUserNotificationRef Function( - CFAllocatorRef, - CFTimeInterval, - CFOptionFlags, - ffi.Pointer, - CFDictionaryRef)>>('CFUserNotificationCreate'); + CFAllocatorRef, + CFTimeInterval, + CFOptionFlags, + ffi.Pointer, + CFDictionaryRef, + ) + > + >('CFUserNotificationCreate'); late final _CFUserNotificationCreate = _CFUserNotificationCreatePtr.asFunction< - CFUserNotificationRef Function(CFAllocatorRef, double, int, - ffi.Pointer, CFDictionaryRef)>(); + CFUserNotificationRef Function( + CFAllocatorRef, + double, + int, + ffi.Pointer, + CFDictionaryRef, + ) + >(); int CFUserNotificationReceiveResponse( CFUserNotificationRef userNotification, @@ -31844,50 +31879,54 @@ class NativeCupertinoHttp { ); } - late final _CFUserNotificationReceiveResponsePtr = _lookup< - ffi.NativeFunction< - SInt32 Function(CFUserNotificationRef, CFTimeInterval, - ffi.Pointer)>>( - 'CFUserNotificationReceiveResponse'); + late final _CFUserNotificationReceiveResponsePtr = + _lookup< + ffi.NativeFunction< + SInt32 Function( + CFUserNotificationRef, + CFTimeInterval, + ffi.Pointer, + ) + > + >('CFUserNotificationReceiveResponse'); late final _CFUserNotificationReceiveResponse = _CFUserNotificationReceiveResponsePtr.asFunction< - int Function( - CFUserNotificationRef, double, ffi.Pointer)>(); + int Function(CFUserNotificationRef, double, ffi.Pointer) + >(); CFStringRef CFUserNotificationGetResponseValue( CFUserNotificationRef userNotification, CFStringRef key, int idx, ) { - return _CFUserNotificationGetResponseValue( - userNotification, - key, - idx, - ); + return _CFUserNotificationGetResponseValue(userNotification, key, idx); } - late final _CFUserNotificationGetResponseValuePtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFUserNotificationRef, CFStringRef, - CFIndex)>>('CFUserNotificationGetResponseValue'); + late final _CFUserNotificationGetResponseValuePtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(CFUserNotificationRef, CFStringRef, CFIndex) + > + >('CFUserNotificationGetResponseValue'); late final _CFUserNotificationGetResponseValue = _CFUserNotificationGetResponseValuePtr.asFunction< - CFStringRef Function(CFUserNotificationRef, CFStringRef, int)>(); + CFStringRef Function(CFUserNotificationRef, CFStringRef, int) + >(); CFDictionaryRef CFUserNotificationGetResponseDictionary( CFUserNotificationRef userNotification, ) { - return _CFUserNotificationGetResponseDictionary( - userNotification, - ); + return _CFUserNotificationGetResponseDictionary(userNotification); } - late final _CFUserNotificationGetResponseDictionaryPtr = _lookup< - ffi.NativeFunction>( - 'CFUserNotificationGetResponseDictionary'); + late final _CFUserNotificationGetResponseDictionaryPtr = + _lookup< + ffi.NativeFunction + >('CFUserNotificationGetResponseDictionary'); late final _CFUserNotificationGetResponseDictionary = _CFUserNotificationGetResponseDictionaryPtr.asFunction< - CFDictionaryRef Function(CFUserNotificationRef)>(); + CFDictionaryRef Function(CFUserNotificationRef) + >(); int CFUserNotificationUpdate( CFUserNotificationRef userNotification, @@ -31903,27 +31942,34 @@ class NativeCupertinoHttp { ); } - late final _CFUserNotificationUpdatePtr = _lookup< - ffi.NativeFunction< - SInt32 Function(CFUserNotificationRef, CFTimeInterval, CFOptionFlags, - CFDictionaryRef)>>('CFUserNotificationUpdate'); + late final _CFUserNotificationUpdatePtr = + _lookup< + ffi.NativeFunction< + SInt32 Function( + CFUserNotificationRef, + CFTimeInterval, + CFOptionFlags, + CFDictionaryRef, + ) + > + >('CFUserNotificationUpdate'); late final _CFUserNotificationUpdate = _CFUserNotificationUpdatePtr.asFunction< - int Function(CFUserNotificationRef, double, int, CFDictionaryRef)>(); + int Function(CFUserNotificationRef, double, int, CFDictionaryRef) + >(); - int CFUserNotificationCancel( - CFUserNotificationRef userNotification, - ) { - return _CFUserNotificationCancel( - userNotification, - ); + int CFUserNotificationCancel(CFUserNotificationRef userNotification) { + return _CFUserNotificationCancel(userNotification); } late final _CFUserNotificationCancelPtr = _lookup>( - 'CFUserNotificationCancel'); - late final _CFUserNotificationCancel = _CFUserNotificationCancelPtr - .asFunction(); + 'CFUserNotificationCancel', + ); + late final _CFUserNotificationCancel = + _CFUserNotificationCancelPtr.asFunction< + int Function(CFUserNotificationRef) + >(); CFRunLoopSourceRef CFUserNotificationCreateRunLoopSource( CFAllocatorRef allocator, @@ -31939,17 +31985,26 @@ class NativeCupertinoHttp { ); } - late final _CFUserNotificationCreateRunLoopSourcePtr = _lookup< - ffi.NativeFunction< + late final _CFUserNotificationCreateRunLoopSourcePtr = + _lookup< + ffi.NativeFunction< CFRunLoopSourceRef Function( - CFAllocatorRef, - CFUserNotificationRef, - CFUserNotificationCallBack, - CFIndex)>>('CFUserNotificationCreateRunLoopSource'); + CFAllocatorRef, + CFUserNotificationRef, + CFUserNotificationCallBack, + CFIndex, + ) + > + >('CFUserNotificationCreateRunLoopSource'); late final _CFUserNotificationCreateRunLoopSource = _CFUserNotificationCreateRunLoopSourcePtr.asFunction< - CFRunLoopSourceRef Function(CFAllocatorRef, CFUserNotificationRef, - CFUserNotificationCallBack, int)>(); + CFRunLoopSourceRef Function( + CFAllocatorRef, + CFUserNotificationRef, + CFUserNotificationCallBack, + int, + ) + >(); int CFUserNotificationDisplayNotice( double timeout, @@ -31973,21 +32028,34 @@ class NativeCupertinoHttp { ); } - late final _CFUserNotificationDisplayNoticePtr = _lookup< - ffi.NativeFunction< + late final _CFUserNotificationDisplayNoticePtr = + _lookup< + ffi.NativeFunction< SInt32 Function( - CFTimeInterval, - CFOptionFlags, - CFURLRef, - CFURLRef, - CFURLRef, - CFStringRef, - CFStringRef, - CFStringRef)>>('CFUserNotificationDisplayNotice'); + CFTimeInterval, + CFOptionFlags, + CFURLRef, + CFURLRef, + CFURLRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + > + >('CFUserNotificationDisplayNotice'); late final _CFUserNotificationDisplayNotice = _CFUserNotificationDisplayNoticePtr.asFunction< - int Function(double, int, CFURLRef, CFURLRef, CFURLRef, CFStringRef, - CFStringRef, CFStringRef)>(); + int Function( + double, + int, + CFURLRef, + CFURLRef, + CFURLRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) + >(); int CFUserNotificationDisplayAlert( double timeout, @@ -32017,34 +32085,40 @@ class NativeCupertinoHttp { ); } - late final _CFUserNotificationDisplayAlertPtr = _lookup< - ffi.NativeFunction< + late final _CFUserNotificationDisplayAlertPtr = + _lookup< + ffi.NativeFunction< SInt32 Function( - CFTimeInterval, - CFOptionFlags, - CFURLRef, - CFURLRef, - CFURLRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFStringRef, - ffi.Pointer)>>('CFUserNotificationDisplayAlert'); + CFTimeInterval, + CFOptionFlags, + CFURLRef, + CFURLRef, + CFURLRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) + > + >('CFUserNotificationDisplayAlert'); late final _CFUserNotificationDisplayAlert = _CFUserNotificationDisplayAlertPtr.asFunction< - int Function( - double, - int, - CFURLRef, - CFURLRef, - CFURLRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFStringRef, - ffi.Pointer)>(); + int Function( + double, + int, + CFURLRef, + CFURLRef, + CFURLRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) + >(); late final ffi.Pointer _kCFUserNotificationIconURLKey = _lookup('kCFUserNotificationIconURLKey'); @@ -32077,15 +32151,17 @@ class NativeCupertinoHttp { _kCFUserNotificationAlertMessageKey.value; late final ffi.Pointer - _kCFUserNotificationDefaultButtonTitleKey = - _lookup('kCFUserNotificationDefaultButtonTitleKey'); + _kCFUserNotificationDefaultButtonTitleKey = _lookup( + 'kCFUserNotificationDefaultButtonTitleKey', + ); CFStringRef get kCFUserNotificationDefaultButtonTitleKey => _kCFUserNotificationDefaultButtonTitleKey.value; late final ffi.Pointer - _kCFUserNotificationAlternateButtonTitleKey = - _lookup('kCFUserNotificationAlternateButtonTitleKey'); + _kCFUserNotificationAlternateButtonTitleKey = _lookup( + 'kCFUserNotificationAlternateButtonTitleKey', + ); CFStringRef get kCFUserNotificationAlternateButtonTitleKey => _kCFUserNotificationAlternateButtonTitleKey.value; @@ -32097,8 +32173,9 @@ class NativeCupertinoHttp { _kCFUserNotificationOtherButtonTitleKey.value; late final ffi.Pointer - _kCFUserNotificationProgressIndicatorValueKey = - _lookup('kCFUserNotificationProgressIndicatorValueKey'); + _kCFUserNotificationProgressIndicatorValueKey = _lookup( + 'kCFUserNotificationProgressIndicatorValueKey', + ); CFStringRef get kCFUserNotificationProgressIndicatorValueKey => _kCFUserNotificationProgressIndicatorValueKey.value; @@ -32170,84 +32247,88 @@ class NativeCupertinoHttp { ); } - late final _CFXMLNodeCreatePtr = _lookup< - ffi.NativeFunction< - CFXMLNodeRef Function(CFAllocatorRef, CFIndex, CFStringRef, - ffi.Pointer, CFIndex)>>('CFXMLNodeCreate'); - late final _CFXMLNodeCreate = _CFXMLNodeCreatePtr.asFunction< - CFXMLNodeRef Function( - CFAllocatorRef, int, CFStringRef, ffi.Pointer, int)>(); + late final _CFXMLNodeCreatePtr = + _lookup< + ffi.NativeFunction< + CFXMLNodeRef Function( + CFAllocatorRef, + CFIndex, + CFStringRef, + ffi.Pointer, + CFIndex, + ) + > + >('CFXMLNodeCreate'); + late final _CFXMLNodeCreate = + _CFXMLNodeCreatePtr.asFunction< + CFXMLNodeRef Function( + CFAllocatorRef, + int, + CFStringRef, + ffi.Pointer, + int, + ) + >(); CFXMLNodeRef CFXMLNodeCreateCopy( CFAllocatorRef alloc, CFXMLNodeRef origNode, ) { - return _CFXMLNodeCreateCopy( - alloc, - origNode, - ); + return _CFXMLNodeCreateCopy(alloc, origNode); } - late final _CFXMLNodeCreateCopyPtr = _lookup< - ffi - .NativeFunction>( - 'CFXMLNodeCreateCopy'); - late final _CFXMLNodeCreateCopy = _CFXMLNodeCreateCopyPtr.asFunction< - CFXMLNodeRef Function(CFAllocatorRef, CFXMLNodeRef)>(); + late final _CFXMLNodeCreateCopyPtr = + _lookup< + ffi.NativeFunction + >('CFXMLNodeCreateCopy'); + late final _CFXMLNodeCreateCopy = + _CFXMLNodeCreateCopyPtr.asFunction< + CFXMLNodeRef Function(CFAllocatorRef, CFXMLNodeRef) + >(); - CFXMLNodeTypeCode CFXMLNodeGetTypeCode( - CFXMLNodeRef node, - ) { - return CFXMLNodeTypeCode.fromValue(_CFXMLNodeGetTypeCode( - node, - )); + CFXMLNodeTypeCode CFXMLNodeGetTypeCode(CFXMLNodeRef node) { + return CFXMLNodeTypeCode.fromValue(_CFXMLNodeGetTypeCode(node)); } late final _CFXMLNodeGetTypeCodePtr = _lookup>( - 'CFXMLNodeGetTypeCode'); + 'CFXMLNodeGetTypeCode', + ); late final _CFXMLNodeGetTypeCode = _CFXMLNodeGetTypeCodePtr.asFunction(); - CFStringRef CFXMLNodeGetString( - CFXMLNodeRef node, - ) { - return _CFXMLNodeGetString( - node, - ); + CFStringRef CFXMLNodeGetString(CFXMLNodeRef node) { + return _CFXMLNodeGetString(node); } late final _CFXMLNodeGetStringPtr = _lookup>( - 'CFXMLNodeGetString'); + 'CFXMLNodeGetString', + ); late final _CFXMLNodeGetString = _CFXMLNodeGetStringPtr.asFunction(); - ffi.Pointer CFXMLNodeGetInfoPtr( - CFXMLNodeRef node, - ) { - return _CFXMLNodeGetInfoPtr( - node, - ); + ffi.Pointer CFXMLNodeGetInfoPtr(CFXMLNodeRef node) { + return _CFXMLNodeGetInfoPtr(node); } late final _CFXMLNodeGetInfoPtrPtr = _lookup Function(CFXMLNodeRef)>>( - 'CFXMLNodeGetInfoPtr'); - late final _CFXMLNodeGetInfoPtr = _CFXMLNodeGetInfoPtrPtr.asFunction< - ffi.Pointer Function(CFXMLNodeRef)>(); + 'CFXMLNodeGetInfoPtr', + ); + late final _CFXMLNodeGetInfoPtr = + _CFXMLNodeGetInfoPtrPtr.asFunction< + ffi.Pointer Function(CFXMLNodeRef) + >(); - int CFXMLNodeGetVersion( - CFXMLNodeRef node, - ) { - return _CFXMLNodeGetVersion( - node, - ); + int CFXMLNodeGetVersion(CFXMLNodeRef node) { + return _CFXMLNodeGetVersion(node); } late final _CFXMLNodeGetVersionPtr = _lookup>( - 'CFXMLNodeGetVersion'); + 'CFXMLNodeGetVersion', + ); late final _CFXMLNodeGetVersion = _CFXMLNodeGetVersionPtr.asFunction(); @@ -32255,30 +32336,26 @@ class NativeCupertinoHttp { CFAllocatorRef allocator, CFXMLNodeRef node, ) { - return _CFXMLTreeCreateWithNode( - allocator, - node, - ); + return _CFXMLTreeCreateWithNode(allocator, node); } - late final _CFXMLTreeCreateWithNodePtr = _lookup< - ffi - .NativeFunction>( - 'CFXMLTreeCreateWithNode'); - late final _CFXMLTreeCreateWithNode = _CFXMLTreeCreateWithNodePtr.asFunction< - CFXMLTreeRef Function(CFAllocatorRef, CFXMLNodeRef)>(); + late final _CFXMLTreeCreateWithNodePtr = + _lookup< + ffi.NativeFunction + >('CFXMLTreeCreateWithNode'); + late final _CFXMLTreeCreateWithNode = + _CFXMLTreeCreateWithNodePtr.asFunction< + CFXMLTreeRef Function(CFAllocatorRef, CFXMLNodeRef) + >(); - CFXMLNodeRef CFXMLTreeGetNode( - CFXMLTreeRef xmlTree, - ) { - return _CFXMLTreeGetNode( - xmlTree, - ); + CFXMLNodeRef CFXMLTreeGetNode(CFXMLTreeRef xmlTree) { + return _CFXMLTreeGetNode(xmlTree); } late final _CFXMLTreeGetNodePtr = _lookup>( - 'CFXMLTreeGetNode'); + 'CFXMLTreeGetNode', + ); late final _CFXMLTreeGetNode = _CFXMLTreeGetNodePtr.asFunction(); @@ -32311,25 +32388,32 @@ class NativeCupertinoHttp { ); } - late final _CFXMLParserCreatePtr = _lookup< - ffi.NativeFunction< + late final _CFXMLParserCreatePtr = + _lookup< + ffi.NativeFunction< CFXMLParserRef Function( - CFAllocatorRef, - CFDataRef, - CFURLRef, - CFOptionFlags, - CFIndex, - ffi.Pointer, - ffi.Pointer)>>('CFXMLParserCreate'); - late final _CFXMLParserCreate = _CFXMLParserCreatePtr.asFunction< - CFXMLParserRef Function( + CFAllocatorRef, + CFDataRef, + CFURLRef, + CFOptionFlags, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFXMLParserCreate'); + late final _CFXMLParserCreate = + _CFXMLParserCreatePtr.asFunction< + CFXMLParserRef Function( CFAllocatorRef, CFDataRef, CFURLRef, int, int, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); CFXMLParserRef CFXMLParserCreateWithDataFromURL( CFAllocatorRef allocator, @@ -32349,175 +32433,166 @@ class NativeCupertinoHttp { ); } - late final _CFXMLParserCreateWithDataFromURLPtr = _lookup< - ffi.NativeFunction< - CFXMLParserRef Function( - CFAllocatorRef, - CFURLRef, - CFOptionFlags, - CFIndex, - ffi.Pointer, - ffi.Pointer)>>( - 'CFXMLParserCreateWithDataFromURL'); + late final _CFXMLParserCreateWithDataFromURLPtr = + _lookup< + ffi.NativeFunction< + CFXMLParserRef Function( + CFAllocatorRef, + CFURLRef, + CFOptionFlags, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFXMLParserCreateWithDataFromURL'); late final _CFXMLParserCreateWithDataFromURL = _CFXMLParserCreateWithDataFromURLPtr.asFunction< - CFXMLParserRef Function( - CFAllocatorRef, - CFURLRef, - int, - int, - ffi.Pointer, - ffi.Pointer)>(); + CFXMLParserRef Function( + CFAllocatorRef, + CFURLRef, + int, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); void CFXMLParserGetContext( CFXMLParserRef parser, ffi.Pointer context, ) { - return _CFXMLParserGetContext( - parser, - context, - ); + return _CFXMLParserGetContext(parser, context); } - late final _CFXMLParserGetContextPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFXMLParserRef, - ffi.Pointer)>>('CFXMLParserGetContext'); - late final _CFXMLParserGetContext = _CFXMLParserGetContextPtr.asFunction< - void Function(CFXMLParserRef, ffi.Pointer)>(); + late final _CFXMLParserGetContextPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFXMLParserRef, ffi.Pointer) + > + >('CFXMLParserGetContext'); + late final _CFXMLParserGetContext = + _CFXMLParserGetContextPtr.asFunction< + void Function(CFXMLParserRef, ffi.Pointer) + >(); void CFXMLParserGetCallBacks( CFXMLParserRef parser, ffi.Pointer callBacks, ) { - return _CFXMLParserGetCallBacks( - parser, - callBacks, - ); + return _CFXMLParserGetCallBacks(parser, callBacks); } - late final _CFXMLParserGetCallBacksPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFXMLParserRef, - ffi.Pointer)>>('CFXMLParserGetCallBacks'); - late final _CFXMLParserGetCallBacks = _CFXMLParserGetCallBacksPtr.asFunction< - void Function(CFXMLParserRef, ffi.Pointer)>(); + late final _CFXMLParserGetCallBacksPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFXMLParserRef, ffi.Pointer) + > + >('CFXMLParserGetCallBacks'); + late final _CFXMLParserGetCallBacks = + _CFXMLParserGetCallBacksPtr.asFunction< + void Function(CFXMLParserRef, ffi.Pointer) + >(); - CFURLRef CFXMLParserGetSourceURL( - CFXMLParserRef parser, - ) { - return _CFXMLParserGetSourceURL( - parser, - ); + CFURLRef CFXMLParserGetSourceURL(CFXMLParserRef parser) { + return _CFXMLParserGetSourceURL(parser); } late final _CFXMLParserGetSourceURLPtr = _lookup>( - 'CFXMLParserGetSourceURL'); - late final _CFXMLParserGetSourceURL = _CFXMLParserGetSourceURLPtr.asFunction< - CFURLRef Function(CFXMLParserRef)>(); + 'CFXMLParserGetSourceURL', + ); + late final _CFXMLParserGetSourceURL = + _CFXMLParserGetSourceURLPtr.asFunction< + CFURLRef Function(CFXMLParserRef) + >(); - int CFXMLParserGetLocation( - CFXMLParserRef parser, - ) { - return _CFXMLParserGetLocation( - parser, - ); + int CFXMLParserGetLocation(CFXMLParserRef parser) { + return _CFXMLParserGetLocation(parser); } late final _CFXMLParserGetLocationPtr = _lookup>( - 'CFXMLParserGetLocation'); + 'CFXMLParserGetLocation', + ); late final _CFXMLParserGetLocation = _CFXMLParserGetLocationPtr.asFunction(); - int CFXMLParserGetLineNumber( - CFXMLParserRef parser, - ) { - return _CFXMLParserGetLineNumber( - parser, - ); + int CFXMLParserGetLineNumber(CFXMLParserRef parser) { + return _CFXMLParserGetLineNumber(parser); } late final _CFXMLParserGetLineNumberPtr = _lookup>( - 'CFXMLParserGetLineNumber'); + 'CFXMLParserGetLineNumber', + ); late final _CFXMLParserGetLineNumber = _CFXMLParserGetLineNumberPtr.asFunction(); - ffi.Pointer CFXMLParserGetDocument( - CFXMLParserRef parser, - ) { - return _CFXMLParserGetDocument( - parser, - ); + ffi.Pointer CFXMLParserGetDocument(CFXMLParserRef parser) { + return _CFXMLParserGetDocument(parser); } - late final _CFXMLParserGetDocumentPtr = _lookup< - ffi.NativeFunction Function(CFXMLParserRef)>>( - 'CFXMLParserGetDocument'); - late final _CFXMLParserGetDocument = _CFXMLParserGetDocumentPtr.asFunction< - ffi.Pointer Function(CFXMLParserRef)>(); + late final _CFXMLParserGetDocumentPtr = + _lookup< + ffi.NativeFunction Function(CFXMLParserRef)> + >('CFXMLParserGetDocument'); + late final _CFXMLParserGetDocument = + _CFXMLParserGetDocumentPtr.asFunction< + ffi.Pointer Function(CFXMLParserRef) + >(); - CFXMLParserStatusCode CFXMLParserGetStatusCode( - CFXMLParserRef parser, - ) { - return CFXMLParserStatusCode.fromValue(_CFXMLParserGetStatusCode( - parser, - )); + CFXMLParserStatusCode CFXMLParserGetStatusCode(CFXMLParserRef parser) { + return CFXMLParserStatusCode.fromValue(_CFXMLParserGetStatusCode(parser)); } late final _CFXMLParserGetStatusCodePtr = _lookup>( - 'CFXMLParserGetStatusCode'); + 'CFXMLParserGetStatusCode', + ); late final _CFXMLParserGetStatusCode = _CFXMLParserGetStatusCodePtr.asFunction(); - CFStringRef CFXMLParserCopyErrorDescription( - CFXMLParserRef parser, - ) { - return _CFXMLParserCopyErrorDescription( - parser, - ); + CFStringRef CFXMLParserCopyErrorDescription(CFXMLParserRef parser) { + return _CFXMLParserCopyErrorDescription(parser); } late final _CFXMLParserCopyErrorDescriptionPtr = _lookup>( - 'CFXMLParserCopyErrorDescription'); + 'CFXMLParserCopyErrorDescription', + ); late final _CFXMLParserCopyErrorDescription = _CFXMLParserCopyErrorDescriptionPtr.asFunction< - CFStringRef Function(CFXMLParserRef)>(); + CFStringRef Function(CFXMLParserRef) + >(); void CFXMLParserAbort( CFXMLParserRef parser, CFXMLParserStatusCode errorCode, CFStringRef errorDescription, ) { - return _CFXMLParserAbort( - parser, - errorCode.value, - errorDescription, - ); + return _CFXMLParserAbort(parser, errorCode.value, errorDescription); } - late final _CFXMLParserAbortPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - CFXMLParserRef, CFIndex, CFStringRef)>>('CFXMLParserAbort'); - late final _CFXMLParserAbort = _CFXMLParserAbortPtr.asFunction< - void Function(CFXMLParserRef, int, CFStringRef)>(); + late final _CFXMLParserAbortPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CFXMLParserRef, CFIndex, CFStringRef) + > + >('CFXMLParserAbort'); + late final _CFXMLParserAbort = + _CFXMLParserAbortPtr.asFunction< + void Function(CFXMLParserRef, int, CFStringRef) + >(); - int CFXMLParserParse( - CFXMLParserRef parser, - ) { - return _CFXMLParserParse( - parser, - ); + int CFXMLParserParse(CFXMLParserRef parser) { + return _CFXMLParserParse(parser); } late final _CFXMLParserParsePtr = _lookup>( - 'CFXMLParserParse'); + 'CFXMLParserParse', + ); late final _CFXMLParserParse = _CFXMLParserParsePtr.asFunction(); @@ -32537,12 +32612,22 @@ class NativeCupertinoHttp { ); } - late final _CFXMLTreeCreateFromDataPtr = _lookup< - ffi.NativeFunction< - CFXMLTreeRef Function(CFAllocatorRef, CFDataRef, CFURLRef, - CFOptionFlags, CFIndex)>>('CFXMLTreeCreateFromData'); - late final _CFXMLTreeCreateFromData = _CFXMLTreeCreateFromDataPtr.asFunction< - CFXMLTreeRef Function(CFAllocatorRef, CFDataRef, CFURLRef, int, int)>(); + late final _CFXMLTreeCreateFromDataPtr = + _lookup< + ffi.NativeFunction< + CFXMLTreeRef Function( + CFAllocatorRef, + CFDataRef, + CFURLRef, + CFOptionFlags, + CFIndex, + ) + > + >('CFXMLTreeCreateFromData'); + late final _CFXMLTreeCreateFromData = + _CFXMLTreeCreateFromDataPtr.asFunction< + CFXMLTreeRef Function(CFAllocatorRef, CFDataRef, CFURLRef, int, int) + >(); CFXMLTreeRef CFXMLTreeCreateFromDataWithError( CFAllocatorRef allocator, @@ -32562,15 +32647,30 @@ class NativeCupertinoHttp { ); } - late final _CFXMLTreeCreateFromDataWithErrorPtr = _lookup< - ffi.NativeFunction< - CFXMLTreeRef Function(CFAllocatorRef, CFDataRef, CFURLRef, - CFOptionFlags, CFIndex, ffi.Pointer)>>( - 'CFXMLTreeCreateFromDataWithError'); + late final _CFXMLTreeCreateFromDataWithErrorPtr = + _lookup< + ffi.NativeFunction< + CFXMLTreeRef Function( + CFAllocatorRef, + CFDataRef, + CFURLRef, + CFOptionFlags, + CFIndex, + ffi.Pointer, + ) + > + >('CFXMLTreeCreateFromDataWithError'); late final _CFXMLTreeCreateFromDataWithError = _CFXMLTreeCreateFromDataWithErrorPtr.asFunction< - CFXMLTreeRef Function(CFAllocatorRef, CFDataRef, CFURLRef, int, int, - ffi.Pointer)>(); + CFXMLTreeRef Function( + CFAllocatorRef, + CFDataRef, + CFURLRef, + int, + int, + ffi.Pointer, + ) + >(); CFXMLTreeRef CFXMLTreeCreateWithDataFromURL( CFAllocatorRef allocator, @@ -32586,29 +32686,37 @@ class NativeCupertinoHttp { ); } - late final _CFXMLTreeCreateWithDataFromURLPtr = _lookup< - ffi.NativeFunction< - CFXMLTreeRef Function(CFAllocatorRef, CFURLRef, CFOptionFlags, - CFIndex)>>('CFXMLTreeCreateWithDataFromURL'); + late final _CFXMLTreeCreateWithDataFromURLPtr = + _lookup< + ffi.NativeFunction< + CFXMLTreeRef Function( + CFAllocatorRef, + CFURLRef, + CFOptionFlags, + CFIndex, + ) + > + >('CFXMLTreeCreateWithDataFromURL'); late final _CFXMLTreeCreateWithDataFromURL = _CFXMLTreeCreateWithDataFromURLPtr.asFunction< - CFXMLTreeRef Function(CFAllocatorRef, CFURLRef, int, int)>(); + CFXMLTreeRef Function(CFAllocatorRef, CFURLRef, int, int) + >(); CFDataRef CFXMLTreeCreateXMLData( CFAllocatorRef allocator, CFXMLTreeRef xmlTree, ) { - return _CFXMLTreeCreateXMLData( - allocator, - xmlTree, - ); + return _CFXMLTreeCreateXMLData(allocator, xmlTree); } - late final _CFXMLTreeCreateXMLDataPtr = _lookup< - ffi.NativeFunction>( - 'CFXMLTreeCreateXMLData'); - late final _CFXMLTreeCreateXMLData = _CFXMLTreeCreateXMLDataPtr.asFunction< - CFDataRef Function(CFAllocatorRef, CFXMLTreeRef)>(); + late final _CFXMLTreeCreateXMLDataPtr = + _lookup< + ffi.NativeFunction + >('CFXMLTreeCreateXMLData'); + late final _CFXMLTreeCreateXMLData = + _CFXMLTreeCreateXMLDataPtr.asFunction< + CFDataRef Function(CFAllocatorRef, CFXMLTreeRef) + >(); CFStringRef CFXMLCreateStringByEscapingEntities( CFAllocatorRef allocator, @@ -32622,13 +32730,16 @@ class NativeCupertinoHttp { ); } - late final _CFXMLCreateStringByEscapingEntitiesPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFStringRef, - CFDictionaryRef)>>('CFXMLCreateStringByEscapingEntities'); + late final _CFXMLCreateStringByEscapingEntitiesPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) + > + >('CFXMLCreateStringByEscapingEntities'); late final _CFXMLCreateStringByEscapingEntities = _CFXMLCreateStringByEscapingEntitiesPtr.asFunction< - CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef)>(); + CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) + >(); CFStringRef CFXMLCreateStringByUnescapingEntities( CFAllocatorRef allocator, @@ -32642,13 +32753,16 @@ class NativeCupertinoHttp { ); } - late final _CFXMLCreateStringByUnescapingEntitiesPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, CFStringRef, - CFDictionaryRef)>>('CFXMLCreateStringByUnescapingEntities'); + late final _CFXMLCreateStringByUnescapingEntitiesPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) + > + >('CFXMLCreateStringByUnescapingEntities'); late final _CFXMLCreateStringByUnescapingEntities = _CFXMLCreateStringByUnescapingEntitiesPtr.asFunction< - CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef)>(); + CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) + >(); late final ffi.Pointer _kCFXMLTreeErrorDescription = _lookup('kCFXMLTreeErrorDescription'); @@ -32671,102 +32785,110 @@ class NativeCupertinoHttp { CFStringRef get kCFXMLTreeErrorStatusCode => _kCFXMLTreeErrorStatusCode.value; - late final ffi.Pointer _gGuidCssm = - _lookup('gGuidCssm'); + late final ffi.Pointer _gGuidCssm = _lookup( + 'gGuidCssm', + ); CSSM_GUID get gGuidCssm => _gGuidCssm.ref; - late final ffi.Pointer _gGuidAppleFileDL = - _lookup('gGuidAppleFileDL'); + late final ffi.Pointer _gGuidAppleFileDL = _lookup( + 'gGuidAppleFileDL', + ); CSSM_GUID get gGuidAppleFileDL => _gGuidAppleFileDL.ref; - late final ffi.Pointer _gGuidAppleCSP = - _lookup('gGuidAppleCSP'); + late final ffi.Pointer _gGuidAppleCSP = _lookup( + 'gGuidAppleCSP', + ); CSSM_GUID get gGuidAppleCSP => _gGuidAppleCSP.ref; - late final ffi.Pointer _gGuidAppleCSPDL = - _lookup('gGuidAppleCSPDL'); + late final ffi.Pointer _gGuidAppleCSPDL = _lookup( + 'gGuidAppleCSPDL', + ); CSSM_GUID get gGuidAppleCSPDL => _gGuidAppleCSPDL.ref; - late final ffi.Pointer _gGuidAppleX509CL = - _lookup('gGuidAppleX509CL'); + late final ffi.Pointer _gGuidAppleX509CL = _lookup( + 'gGuidAppleX509CL', + ); CSSM_GUID get gGuidAppleX509CL => _gGuidAppleX509CL.ref; - late final ffi.Pointer _gGuidAppleX509TP = - _lookup('gGuidAppleX509TP'); + late final ffi.Pointer _gGuidAppleX509TP = _lookup( + 'gGuidAppleX509TP', + ); CSSM_GUID get gGuidAppleX509TP => _gGuidAppleX509TP.ref; - late final ffi.Pointer _gGuidAppleLDAPDL = - _lookup('gGuidAppleLDAPDL'); + late final ffi.Pointer _gGuidAppleLDAPDL = _lookup( + 'gGuidAppleLDAPDL', + ); CSSM_GUID get gGuidAppleLDAPDL => _gGuidAppleLDAPDL.ref; - late final ffi.Pointer _gGuidAppleDotMacTP = - _lookup('gGuidAppleDotMacTP'); + late final ffi.Pointer _gGuidAppleDotMacTP = _lookup( + 'gGuidAppleDotMacTP', + ); CSSM_GUID get gGuidAppleDotMacTP => _gGuidAppleDotMacTP.ref; - late final ffi.Pointer _gGuidAppleSdCSPDL = - _lookup('gGuidAppleSdCSPDL'); + late final ffi.Pointer _gGuidAppleSdCSPDL = _lookup( + 'gGuidAppleSdCSPDL', + ); CSSM_GUID get gGuidAppleSdCSPDL => _gGuidAppleSdCSPDL.ref; - late final ffi.Pointer _gGuidAppleDotMacDL = - _lookup('gGuidAppleDotMacDL'); + late final ffi.Pointer _gGuidAppleDotMacDL = _lookup( + 'gGuidAppleDotMacDL', + ); CSSM_GUID get gGuidAppleDotMacDL => _gGuidAppleDotMacDL.ref; - void cssmPerror( - ffi.Pointer how, - int error, - ) { - return _cssmPerror( - how, - error, - ); + 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)>(); + 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, - ); + 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)>(); + 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, - ); + 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 _cssmAlgToOidPtr = + _lookup< + ffi.NativeFunction Function(CSSM_ALGORITHMS)> + >('cssmAlgToOid'); + late final _cssmAlgToOid = _cssmAlgToOidPtr + .asFunction Function(int)>(); late final ffi.Pointer _kSecPropertyTypeTitle = _lookup('kSecPropertyTypeTitle'); @@ -32845,8 +32967,9 @@ class NativeCupertinoHttp { _kSecTrustCertificateTransparency.value = value; late final ffi.Pointer - _kSecTrustCertificateTransparencyWhiteList = - _lookup('kSecTrustCertificateTransparencyWhiteList'); + _kSecTrustCertificateTransparencyWhiteList = _lookup( + 'kSecTrustCertificateTransparencyWhiteList', + ); CFStringRef get kSecTrustCertificateTransparencyWhiteList => _kSecTrustCertificateTransparencyWhiteList.value; @@ -32884,186 +33007,168 @@ class NativeCupertinoHttp { CFTypeRef policies, ffi.Pointer trust, ) { - return _SecTrustCreateWithCertificates( - certificates, - policies, - trust, - ); + return _SecTrustCreateWithCertificates(certificates, policies, trust); } - late final _SecTrustCreateWithCertificatesPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(CFTypeRef, CFTypeRef, - ffi.Pointer)>>('SecTrustCreateWithCertificates'); + late final _SecTrustCreateWithCertificatesPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(CFTypeRef, CFTypeRef, ffi.Pointer) + > + >('SecTrustCreateWithCertificates'); late final _SecTrustCreateWithCertificates = _SecTrustCreateWithCertificatesPtr.asFunction< - int Function(CFTypeRef, CFTypeRef, ffi.Pointer)>(); + int Function(CFTypeRef, CFTypeRef, ffi.Pointer) + >(); - int SecTrustSetPolicies( - SecTrustRef trust, - CFTypeRef policies, - ) { - return _SecTrustSetPolicies( - trust, - policies, - ); + int SecTrustSetPolicies(SecTrustRef trust, CFTypeRef policies) { + return _SecTrustSetPolicies(trust, policies); } late final _SecTrustSetPoliciesPtr = _lookup>( - 'SecTrustSetPolicies'); - late final _SecTrustSetPolicies = _SecTrustSetPoliciesPtr.asFunction< - int Function(SecTrustRef, CFTypeRef)>(); + 'SecTrustSetPolicies', + ); + late final _SecTrustSetPolicies = + _SecTrustSetPoliciesPtr.asFunction< + int Function(SecTrustRef, CFTypeRef) + >(); int SecTrustCopyPolicies( SecTrustRef trust, ffi.Pointer policies, ) { - return _SecTrustCopyPolicies( - trust, - policies, - ); + return _SecTrustCopyPolicies(trust, policies); } - late final _SecTrustCopyPoliciesPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SecTrustRef, ffi.Pointer)>>('SecTrustCopyPolicies'); - late final _SecTrustCopyPolicies = _SecTrustCopyPoliciesPtr.asFunction< - int Function(SecTrustRef, ffi.Pointer)>(); + late final _SecTrustCopyPoliciesPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecTrustRef, ffi.Pointer) + > + >('SecTrustCopyPolicies'); + late final _SecTrustCopyPolicies = + _SecTrustCopyPoliciesPtr.asFunction< + int Function(SecTrustRef, ffi.Pointer) + >(); - int SecTrustSetNetworkFetchAllowed( - SecTrustRef trust, - int allowFetch, - ) { - return _SecTrustSetNetworkFetchAllowed( - trust, - allowFetch, - ); + int SecTrustSetNetworkFetchAllowed(SecTrustRef trust, int allowFetch) { + return _SecTrustSetNetworkFetchAllowed(trust, allowFetch); } late final _SecTrustSetNetworkFetchAllowedPtr = _lookup>( - 'SecTrustSetNetworkFetchAllowed'); + 'SecTrustSetNetworkFetchAllowed', + ); late final _SecTrustSetNetworkFetchAllowed = _SecTrustSetNetworkFetchAllowedPtr.asFunction< - int Function(SecTrustRef, int)>(); + int Function(SecTrustRef, int) + >(); int SecTrustGetNetworkFetchAllowed( SecTrustRef trust, ffi.Pointer allowFetch, ) { - return _SecTrustGetNetworkFetchAllowed( - trust, - allowFetch, - ); + return _SecTrustGetNetworkFetchAllowed(trust, allowFetch); } - late final _SecTrustGetNetworkFetchAllowedPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecTrustRef, - ffi.Pointer)>>('SecTrustGetNetworkFetchAllowed'); + late final _SecTrustGetNetworkFetchAllowedPtr = + _lookup< + ffi.NativeFunction)> + >('SecTrustGetNetworkFetchAllowed'); late final _SecTrustGetNetworkFetchAllowed = _SecTrustGetNetworkFetchAllowedPtr.asFunction< - int Function(SecTrustRef, ffi.Pointer)>(); + int Function(SecTrustRef, ffi.Pointer) + >(); int SecTrustSetAnchorCertificates( SecTrustRef trust, CFArrayRef anchorCertificates, ) { - return _SecTrustSetAnchorCertificates( - trust, - anchorCertificates, - ); + return _SecTrustSetAnchorCertificates(trust, anchorCertificates); } late final _SecTrustSetAnchorCertificatesPtr = _lookup>( - 'SecTrustSetAnchorCertificates'); - late final _SecTrustSetAnchorCertificates = _SecTrustSetAnchorCertificatesPtr - .asFunction(); + 'SecTrustSetAnchorCertificates', + ); + late final _SecTrustSetAnchorCertificates = + _SecTrustSetAnchorCertificatesPtr.asFunction< + int Function(SecTrustRef, CFArrayRef) + >(); int SecTrustSetAnchorCertificatesOnly( SecTrustRef trust, int anchorCertificatesOnly, ) { - return _SecTrustSetAnchorCertificatesOnly( - trust, - anchorCertificatesOnly, - ); + return _SecTrustSetAnchorCertificatesOnly(trust, anchorCertificatesOnly); } late final _SecTrustSetAnchorCertificatesOnlyPtr = _lookup>( - 'SecTrustSetAnchorCertificatesOnly'); + 'SecTrustSetAnchorCertificatesOnly', + ); late final _SecTrustSetAnchorCertificatesOnly = _SecTrustSetAnchorCertificatesOnlyPtr.asFunction< - int Function(SecTrustRef, int)>(); + int Function(SecTrustRef, int) + >(); int SecTrustCopyCustomAnchorCertificates( SecTrustRef trust, ffi.Pointer anchors, ) { - return _SecTrustCopyCustomAnchorCertificates( - trust, - anchors, - ); + return _SecTrustCopyCustomAnchorCertificates(trust, anchors); } - late final _SecTrustCopyCustomAnchorCertificatesPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecTrustRef, ffi.Pointer)>>( - 'SecTrustCopyCustomAnchorCertificates'); + late final _SecTrustCopyCustomAnchorCertificatesPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecTrustRef, ffi.Pointer) + > + >('SecTrustCopyCustomAnchorCertificates'); late final _SecTrustCopyCustomAnchorCertificates = _SecTrustCopyCustomAnchorCertificatesPtr.asFunction< - int Function(SecTrustRef, ffi.Pointer)>(); + int Function(SecTrustRef, ffi.Pointer) + >(); - int SecTrustSetVerifyDate( - SecTrustRef trust, - CFDateRef verifyDate, - ) { - return _SecTrustSetVerifyDate( - trust, - verifyDate, - ); + int SecTrustSetVerifyDate(SecTrustRef trust, CFDateRef verifyDate) { + return _SecTrustSetVerifyDate(trust, verifyDate); } late final _SecTrustSetVerifyDatePtr = _lookup>( - 'SecTrustSetVerifyDate'); - late final _SecTrustSetVerifyDate = _SecTrustSetVerifyDatePtr.asFunction< - int Function(SecTrustRef, CFDateRef)>(); + 'SecTrustSetVerifyDate', + ); + late final _SecTrustSetVerifyDate = + _SecTrustSetVerifyDatePtr.asFunction< + int Function(SecTrustRef, CFDateRef) + >(); - double SecTrustGetVerifyTime( - SecTrustRef trust, - ) { - return _SecTrustGetVerifyTime( - trust, - ); + double SecTrustGetVerifyTime(SecTrustRef trust) { + return _SecTrustGetVerifyTime(trust); } late final _SecTrustGetVerifyTimePtr = _lookup>( - 'SecTrustGetVerifyTime'); + 'SecTrustGetVerifyTime', + ); late final _SecTrustGetVerifyTime = _SecTrustGetVerifyTimePtr.asFunction(); - int SecTrustEvaluate( - SecTrustRef trust, - ffi.Pointer result, - ) { - return _SecTrustEvaluate( - trust, - result, - ); + int SecTrustEvaluate(SecTrustRef trust, ffi.Pointer result) { + return _SecTrustEvaluate(trust, result); } - late final _SecTrustEvaluatePtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SecTrustRef, ffi.Pointer)>>('SecTrustEvaluate'); - late final _SecTrustEvaluate = _SecTrustEvaluatePtr.asFunction< - int Function(SecTrustRef, ffi.Pointer)>(); + late final _SecTrustEvaluatePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecTrustRef, ffi.Pointer) + > + >('SecTrustEvaluate'); + late final _SecTrustEvaluate = + _SecTrustEvaluatePtr.asFunction< + int Function(SecTrustRef, ffi.Pointer) + >(); DartSInt32 SecTrustEvaluateAsync( SecTrustRef trust, @@ -33077,29 +33182,34 @@ class NativeCupertinoHttp { ); } - late final _SecTrustEvaluateAsyncPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecTrustRef, dispatch_queue_t, - SecTrustCallback)>>('SecTrustEvaluateAsync'); - late final _SecTrustEvaluateAsync = _SecTrustEvaluateAsyncPtr.asFunction< - int Function(SecTrustRef, dispatch_queue_t, SecTrustCallback)>(); + late final _SecTrustEvaluateAsyncPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecTrustRef, dispatch_queue_t, SecTrustCallback) + > + >('SecTrustEvaluateAsync'); + late final _SecTrustEvaluateAsync = + _SecTrustEvaluateAsyncPtr.asFunction< + int Function(SecTrustRef, dispatch_queue_t, SecTrustCallback) + >(); bool SecTrustEvaluateWithError( SecTrustRef trust, ffi.Pointer error, ) { - return _SecTrustEvaluateWithError( - trust, - error, - ); + return _SecTrustEvaluateWithError(trust, error); } - late final _SecTrustEvaluateWithErrorPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(SecTrustRef, - ffi.Pointer)>>('SecTrustEvaluateWithError'); - late final _SecTrustEvaluateWithError = _SecTrustEvaluateWithErrorPtr - .asFunction)>(); + late final _SecTrustEvaluateWithErrorPtr = + _lookup< + ffi.NativeFunction< + ffi.Bool Function(SecTrustRef, ffi.Pointer) + > + >('SecTrustEvaluateWithError'); + late final _SecTrustEvaluateWithError = + _SecTrustEvaluateWithErrorPtr.asFunction< + bool Function(SecTrustRef, ffi.Pointer) + >(); DartSInt32 SecTrustEvaluateAsyncWithError( SecTrustRef trust, @@ -33113,208 +33223,186 @@ class NativeCupertinoHttp { ); } - late final _SecTrustEvaluateAsyncWithErrorPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecTrustRef, dispatch_queue_t, - SecTrustWithErrorCallback)>>('SecTrustEvaluateAsyncWithError'); + late final _SecTrustEvaluateAsyncWithErrorPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SecTrustRef, + dispatch_queue_t, + SecTrustWithErrorCallback, + ) + > + >('SecTrustEvaluateAsyncWithError'); late final _SecTrustEvaluateAsyncWithError = _SecTrustEvaluateAsyncWithErrorPtr.asFunction< - int Function( - SecTrustRef, dispatch_queue_t, SecTrustWithErrorCallback)>(); + int Function(SecTrustRef, dispatch_queue_t, SecTrustWithErrorCallback) + >(); int SecTrustGetTrustResult( SecTrustRef trust, ffi.Pointer result, ) { - return _SecTrustGetTrustResult( - trust, - result, - ); + return _SecTrustGetTrustResult(trust, result); } - late final _SecTrustGetTrustResultPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SecTrustRef, ffi.Pointer)>>('SecTrustGetTrustResult'); - late final _SecTrustGetTrustResult = _SecTrustGetTrustResultPtr.asFunction< - int Function(SecTrustRef, ffi.Pointer)>(); + late final _SecTrustGetTrustResultPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecTrustRef, ffi.Pointer) + > + >('SecTrustGetTrustResult'); + late final _SecTrustGetTrustResult = + _SecTrustGetTrustResultPtr.asFunction< + int Function(SecTrustRef, ffi.Pointer) + >(); - SecKeyRef SecTrustCopyPublicKey( - SecTrustRef trust, - ) { - return _SecTrustCopyPublicKey( - trust, - ); + SecKeyRef SecTrustCopyPublicKey(SecTrustRef trust) { + return _SecTrustCopyPublicKey(trust); } late final _SecTrustCopyPublicKeyPtr = _lookup>( - 'SecTrustCopyPublicKey'); + 'SecTrustCopyPublicKey', + ); late final _SecTrustCopyPublicKey = _SecTrustCopyPublicKeyPtr.asFunction(); - SecKeyRef SecTrustCopyKey( - SecTrustRef trust, - ) { - return _SecTrustCopyKey( - trust, - ); + SecKeyRef SecTrustCopyKey(SecTrustRef trust) { + return _SecTrustCopyKey(trust); } late final _SecTrustCopyKeyPtr = _lookup>( - 'SecTrustCopyKey'); + 'SecTrustCopyKey', + ); late final _SecTrustCopyKey = _SecTrustCopyKeyPtr.asFunction(); - int SecTrustGetCertificateCount( - SecTrustRef trust, - ) { - return _SecTrustGetCertificateCount( - trust, - ); + int SecTrustGetCertificateCount(SecTrustRef trust) { + return _SecTrustGetCertificateCount(trust); } late final _SecTrustGetCertificateCountPtr = _lookup>( - 'SecTrustGetCertificateCount'); + 'SecTrustGetCertificateCount', + ); late final _SecTrustGetCertificateCount = _SecTrustGetCertificateCountPtr.asFunction(); - SecCertificateRef SecTrustGetCertificateAtIndex( - SecTrustRef trust, - int ix, - ) { - return _SecTrustGetCertificateAtIndex( - trust, - ix, - ); + SecCertificateRef SecTrustGetCertificateAtIndex(SecTrustRef trust, int ix) { + return _SecTrustGetCertificateAtIndex(trust, ix); } - late final _SecTrustGetCertificateAtIndexPtr = _lookup< - ffi.NativeFunction>( - 'SecTrustGetCertificateAtIndex'); - late final _SecTrustGetCertificateAtIndex = _SecTrustGetCertificateAtIndexPtr - .asFunction(); + late final _SecTrustGetCertificateAtIndexPtr = + _lookup< + ffi.NativeFunction + >('SecTrustGetCertificateAtIndex'); + late final _SecTrustGetCertificateAtIndex = + _SecTrustGetCertificateAtIndexPtr.asFunction< + SecCertificateRef Function(SecTrustRef, int) + >(); - CFDataRef SecTrustCopyExceptions( - SecTrustRef trust, - ) { - return _SecTrustCopyExceptions( - trust, - ); + CFDataRef SecTrustCopyExceptions(SecTrustRef trust) { + return _SecTrustCopyExceptions(trust); } late final _SecTrustCopyExceptionsPtr = _lookup>( - 'SecTrustCopyExceptions'); + 'SecTrustCopyExceptions', + ); late final _SecTrustCopyExceptions = _SecTrustCopyExceptionsPtr.asFunction(); - bool SecTrustSetExceptions( - SecTrustRef trust, - CFDataRef exceptions, - ) { - return _SecTrustSetExceptions( - trust, - exceptions, - ); + bool SecTrustSetExceptions(SecTrustRef trust, CFDataRef exceptions) { + return _SecTrustSetExceptions(trust, exceptions); } late final _SecTrustSetExceptionsPtr = _lookup>( - 'SecTrustSetExceptions'); - late final _SecTrustSetExceptions = _SecTrustSetExceptionsPtr.asFunction< - bool Function(SecTrustRef, CFDataRef)>(); + 'SecTrustSetExceptions', + ); + late final _SecTrustSetExceptions = + _SecTrustSetExceptionsPtr.asFunction< + bool Function(SecTrustRef, CFDataRef) + >(); - CFArrayRef SecTrustCopyProperties( - SecTrustRef trust, - ) { - return _SecTrustCopyProperties( - trust, - ); + CFArrayRef SecTrustCopyProperties(SecTrustRef trust) { + return _SecTrustCopyProperties(trust); } late final _SecTrustCopyPropertiesPtr = _lookup>( - 'SecTrustCopyProperties'); + 'SecTrustCopyProperties', + ); late final _SecTrustCopyProperties = _SecTrustCopyPropertiesPtr.asFunction(); - CFDictionaryRef SecTrustCopyResult( - SecTrustRef trust, - ) { - return _SecTrustCopyResult( - trust, - ); + CFDictionaryRef SecTrustCopyResult(SecTrustRef trust) { + return _SecTrustCopyResult(trust); } late final _SecTrustCopyResultPtr = _lookup>( - 'SecTrustCopyResult'); - late final _SecTrustCopyResult = _SecTrustCopyResultPtr.asFunction< - CFDictionaryRef Function(SecTrustRef)>(); + 'SecTrustCopyResult', + ); + late final _SecTrustCopyResult = + _SecTrustCopyResultPtr.asFunction< + CFDictionaryRef Function(SecTrustRef) + >(); - int SecTrustSetOCSPResponse( - SecTrustRef trust, - CFTypeRef responseData, - ) { - return _SecTrustSetOCSPResponse( - trust, - responseData, - ); + int SecTrustSetOCSPResponse(SecTrustRef trust, CFTypeRef responseData) { + return _SecTrustSetOCSPResponse(trust, responseData); } late final _SecTrustSetOCSPResponsePtr = _lookup>( - 'SecTrustSetOCSPResponse'); - late final _SecTrustSetOCSPResponse = _SecTrustSetOCSPResponsePtr.asFunction< - int Function(SecTrustRef, CFTypeRef)>(); + 'SecTrustSetOCSPResponse', + ); + late final _SecTrustSetOCSPResponse = + _SecTrustSetOCSPResponsePtr.asFunction< + int Function(SecTrustRef, CFTypeRef) + >(); int SecTrustSetSignedCertificateTimestamps( SecTrustRef trust, CFArrayRef sctArray, ) { - return _SecTrustSetSignedCertificateTimestamps( - trust, - sctArray, - ); + return _SecTrustSetSignedCertificateTimestamps(trust, sctArray); } late final _SecTrustSetSignedCertificateTimestampsPtr = _lookup>( - 'SecTrustSetSignedCertificateTimestamps'); + 'SecTrustSetSignedCertificateTimestamps', + ); late final _SecTrustSetSignedCertificateTimestamps = _SecTrustSetSignedCertificateTimestampsPtr.asFunction< - int Function(SecTrustRef, CFArrayRef)>(); + int Function(SecTrustRef, CFArrayRef) + >(); - CFArrayRef SecTrustCopyCertificateChain( - SecTrustRef trust, - ) { - return _SecTrustCopyCertificateChain( - trust, - ); + CFArrayRef SecTrustCopyCertificateChain(SecTrustRef trust) { + return _SecTrustCopyCertificateChain(trust); } late final _SecTrustCopyCertificateChainPtr = _lookup>( - 'SecTrustCopyCertificateChain'); - late final _SecTrustCopyCertificateChain = _SecTrustCopyCertificateChainPtr - .asFunction(); + 'SecTrustCopyCertificateChain', + ); + late final _SecTrustCopyCertificateChain = + _SecTrustCopyCertificateChainPtr.asFunction< + CFArrayRef Function(SecTrustRef) + >(); DartSInt32 SecTrustSetOptions( SecTrustRef trustRef, SecTrustOptionFlags options, ) { - return _SecTrustSetOptions( - trustRef, - options.value, - ); + return _SecTrustSetOptions(trustRef, options.value); } late final _SecTrustSetOptionsPtr = _lookup>( - 'SecTrustSetOptions'); + 'SecTrustSetOptions', + ); late final _SecTrustSetOptions = _SecTrustSetOptionsPtr.asFunction(); @@ -33323,35 +33411,32 @@ class NativeCupertinoHttp { int action, CFDataRef actionData, ) { - return _SecTrustSetParameters( - trustRef, - action, - actionData, - ); + return _SecTrustSetParameters(trustRef, action, actionData); } - late final _SecTrustSetParametersPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecTrustRef, CSSM_TP_ACTION, - CFDataRef)>>('SecTrustSetParameters'); - late final _SecTrustSetParameters = _SecTrustSetParametersPtr.asFunction< - int Function(SecTrustRef, int, CFDataRef)>(); + late final _SecTrustSetParametersPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecTrustRef, CSSM_TP_ACTION, CFDataRef) + > + >('SecTrustSetParameters'); + late final _SecTrustSetParameters = + _SecTrustSetParametersPtr.asFunction< + int Function(SecTrustRef, int, CFDataRef) + >(); - int SecTrustSetKeychains( - SecTrustRef trust, - CFTypeRef keychainOrArray, - ) { - return _SecTrustSetKeychains( - trust, - keychainOrArray, - ); + int SecTrustSetKeychains(SecTrustRef trust, CFTypeRef keychainOrArray) { + return _SecTrustSetKeychains(trust, keychainOrArray); } late final _SecTrustSetKeychainsPtr = _lookup>( - 'SecTrustSetKeychains'); - late final _SecTrustSetKeychains = _SecTrustSetKeychainsPtr.asFunction< - int Function(SecTrustRef, CFTypeRef)>(); + 'SecTrustSetKeychains', + ); + late final _SecTrustSetKeychains = + _SecTrustSetKeychainsPtr.asFunction< + int Function(SecTrustRef, CFTypeRef) + >(); int SecTrustGetResult( SecTrustRef trustRef, @@ -33359,96 +33444,102 @@ class NativeCupertinoHttp { ffi.Pointer certChain, ffi.Pointer> statusChain, ) { - return _SecTrustGetResult( - trustRef, - result, - certChain, - statusChain, - ); + return _SecTrustGetResult(trustRef, result, certChain, statusChain); } - late final _SecTrustGetResultPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SecTrustRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>( - 'SecTrustGetResult'); - late final _SecTrustGetResult = _SecTrustGetResultPtr.asFunction< - int Function( + late final _SecTrustGetResultPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SecTrustRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('SecTrustGetResult'); + late final _SecTrustGetResult = + _SecTrustGetResultPtr.asFunction< + int Function( SecTrustRef, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); int SecTrustGetCssmResult( SecTrustRef trust, ffi.Pointer result, ) { - return _SecTrustGetCssmResult( - trust, - result, - ); + return _SecTrustGetCssmResult(trust, result); } - late final _SecTrustGetCssmResultPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecTrustRef, - ffi.Pointer)>>( - 'SecTrustGetCssmResult'); - late final _SecTrustGetCssmResult = _SecTrustGetCssmResultPtr.asFunction< - int Function( - SecTrustRef, ffi.Pointer)>(); + late final _SecTrustGetCssmResultPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SecTrustRef, + ffi.Pointer, + ) + > + >('SecTrustGetCssmResult'); + late final _SecTrustGetCssmResult = + _SecTrustGetCssmResultPtr.asFunction< + int Function( + SecTrustRef, + ffi.Pointer, + ) + >(); int SecTrustGetCssmResultCode( SecTrustRef trust, ffi.Pointer resultCode, ) { - return _SecTrustGetCssmResultCode( - trust, - resultCode, - ); + return _SecTrustGetCssmResultCode(trust, resultCode); } - late final _SecTrustGetCssmResultCodePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecTrustRef, - ffi.Pointer)>>('SecTrustGetCssmResultCode'); - late final _SecTrustGetCssmResultCode = _SecTrustGetCssmResultCodePtr - .asFunction)>(); + late final _SecTrustGetCssmResultCodePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecTrustRef, ffi.Pointer) + > + >('SecTrustGetCssmResultCode'); + late final _SecTrustGetCssmResultCode = + _SecTrustGetCssmResultCodePtr.asFunction< + int Function(SecTrustRef, ffi.Pointer) + >(); int SecTrustGetTPHandle( SecTrustRef trust, ffi.Pointer handle, ) { - return _SecTrustGetTPHandle( - trust, - handle, - ); + return _SecTrustGetTPHandle(trust, handle); } - late final _SecTrustGetTPHandlePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecTrustRef, - ffi.Pointer)>>('SecTrustGetTPHandle'); - late final _SecTrustGetTPHandle = _SecTrustGetTPHandlePtr.asFunction< - int Function(SecTrustRef, ffi.Pointer)>(); + late final _SecTrustGetTPHandlePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecTrustRef, ffi.Pointer) + > + >('SecTrustGetTPHandle'); + late final _SecTrustGetTPHandle = + _SecTrustGetTPHandlePtr.asFunction< + int Function(SecTrustRef, ffi.Pointer) + >(); - int SecTrustCopyAnchorCertificates( - ffi.Pointer anchors, - ) { - return _SecTrustCopyAnchorCertificates( - anchors, - ); + int SecTrustCopyAnchorCertificates(ffi.Pointer anchors) { + return _SecTrustCopyAnchorCertificates(anchors); } late final _SecTrustCopyAnchorCertificatesPtr = _lookup)>>( - 'SecTrustCopyAnchorCertificates'); + 'SecTrustCopyAnchorCertificates', + ); late final _SecTrustCopyAnchorCertificates = _SecTrustCopyAnchorCertificatesPtr.asFunction< - int Function(ffi.Pointer)>(); + int Function(ffi.Pointer) + >(); int SecCertificateGetTypeID() { return _SecCertificateGetTypeID(); @@ -33456,7 +33547,8 @@ class NativeCupertinoHttp { late final _SecCertificateGetTypeIDPtr = _lookup>( - 'SecCertificateGetTypeID'); + 'SecCertificateGetTypeID', + ); late final _SecCertificateGetTypeID = _SecCertificateGetTypeIDPtr.asFunction(); @@ -33464,209 +33556,206 @@ class NativeCupertinoHttp { CFAllocatorRef allocator, CFDataRef data, ) { - return _SecCertificateCreateWithData( - allocator, - data, - ); + return _SecCertificateCreateWithData(allocator, data); } - late final _SecCertificateCreateWithDataPtr = _lookup< - ffi.NativeFunction< - SecCertificateRef Function( - CFAllocatorRef, CFDataRef)>>('SecCertificateCreateWithData'); - late final _SecCertificateCreateWithData = _SecCertificateCreateWithDataPtr - .asFunction(); + late final _SecCertificateCreateWithDataPtr = + _lookup< + ffi.NativeFunction< + SecCertificateRef Function(CFAllocatorRef, CFDataRef) + > + >('SecCertificateCreateWithData'); + late final _SecCertificateCreateWithData = + _SecCertificateCreateWithDataPtr.asFunction< + SecCertificateRef Function(CFAllocatorRef, CFDataRef) + >(); - CFDataRef SecCertificateCopyData( - SecCertificateRef certificate, - ) { - return _SecCertificateCopyData( - certificate, - ); + CFDataRef SecCertificateCopyData(SecCertificateRef certificate) { + return _SecCertificateCopyData(certificate); } late final _SecCertificateCopyDataPtr = _lookup>( - 'SecCertificateCopyData'); - late final _SecCertificateCopyData = _SecCertificateCopyDataPtr.asFunction< - CFDataRef Function(SecCertificateRef)>(); + 'SecCertificateCopyData', + ); + late final _SecCertificateCopyData = + _SecCertificateCopyDataPtr.asFunction< + CFDataRef Function(SecCertificateRef) + >(); - CFStringRef SecCertificateCopySubjectSummary( - SecCertificateRef certificate, - ) { - return _SecCertificateCopySubjectSummary( - certificate, - ); + CFStringRef SecCertificateCopySubjectSummary(SecCertificateRef certificate) { + return _SecCertificateCopySubjectSummary(certificate); } late final _SecCertificateCopySubjectSummaryPtr = _lookup>( - 'SecCertificateCopySubjectSummary'); + 'SecCertificateCopySubjectSummary', + ); late final _SecCertificateCopySubjectSummary = _SecCertificateCopySubjectSummaryPtr.asFunction< - CFStringRef Function(SecCertificateRef)>(); + CFStringRef Function(SecCertificateRef) + >(); int SecCertificateCopyCommonName( SecCertificateRef certificate, ffi.Pointer commonName, ) { - return _SecCertificateCopyCommonName( - certificate, - commonName, - ); + return _SecCertificateCopyCommonName(certificate, commonName); } - late final _SecCertificateCopyCommonNamePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecCertificateRef, - ffi.Pointer)>>('SecCertificateCopyCommonName'); - late final _SecCertificateCopyCommonName = _SecCertificateCopyCommonNamePtr - .asFunction)>(); + late final _SecCertificateCopyCommonNamePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecCertificateRef, ffi.Pointer) + > + >('SecCertificateCopyCommonName'); + late final _SecCertificateCopyCommonName = + _SecCertificateCopyCommonNamePtr.asFunction< + int Function(SecCertificateRef, ffi.Pointer) + >(); int SecCertificateCopyEmailAddresses( SecCertificateRef certificate, ffi.Pointer emailAddresses, ) { - return _SecCertificateCopyEmailAddresses( - certificate, - emailAddresses, - ); + return _SecCertificateCopyEmailAddresses(certificate, emailAddresses); } - late final _SecCertificateCopyEmailAddressesPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecCertificateRef, - ffi.Pointer)>>('SecCertificateCopyEmailAddresses'); + late final _SecCertificateCopyEmailAddressesPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecCertificateRef, ffi.Pointer) + > + >('SecCertificateCopyEmailAddresses'); late final _SecCertificateCopyEmailAddresses = _SecCertificateCopyEmailAddressesPtr.asFunction< - int Function(SecCertificateRef, ffi.Pointer)>(); + int Function(SecCertificateRef, ffi.Pointer) + >(); CFDataRef SecCertificateCopyNormalizedIssuerSequence( SecCertificateRef certificate, ) { - return _SecCertificateCopyNormalizedIssuerSequence( - certificate, - ); + return _SecCertificateCopyNormalizedIssuerSequence(certificate); } late final _SecCertificateCopyNormalizedIssuerSequencePtr = _lookup>( - 'SecCertificateCopyNormalizedIssuerSequence'); + 'SecCertificateCopyNormalizedIssuerSequence', + ); late final _SecCertificateCopyNormalizedIssuerSequence = _SecCertificateCopyNormalizedIssuerSequencePtr.asFunction< - CFDataRef Function(SecCertificateRef)>(); + CFDataRef Function(SecCertificateRef) + >(); CFDataRef SecCertificateCopyNormalizedSubjectSequence( SecCertificateRef certificate, ) { - return _SecCertificateCopyNormalizedSubjectSequence( - certificate, - ); + return _SecCertificateCopyNormalizedSubjectSequence(certificate); } late final _SecCertificateCopyNormalizedSubjectSequencePtr = _lookup>( - 'SecCertificateCopyNormalizedSubjectSequence'); + 'SecCertificateCopyNormalizedSubjectSequence', + ); late final _SecCertificateCopyNormalizedSubjectSequence = _SecCertificateCopyNormalizedSubjectSequencePtr.asFunction< - CFDataRef Function(SecCertificateRef)>(); + CFDataRef Function(SecCertificateRef) + >(); - SecKeyRef SecCertificateCopyKey( - SecCertificateRef certificate, - ) { - return _SecCertificateCopyKey( - certificate, - ); + SecKeyRef SecCertificateCopyKey(SecCertificateRef certificate) { + return _SecCertificateCopyKey(certificate); } late final _SecCertificateCopyKeyPtr = _lookup>( - 'SecCertificateCopyKey'); - late final _SecCertificateCopyKey = _SecCertificateCopyKeyPtr.asFunction< - SecKeyRef Function(SecCertificateRef)>(); + 'SecCertificateCopyKey', + ); + late final _SecCertificateCopyKey = + _SecCertificateCopyKeyPtr.asFunction< + SecKeyRef Function(SecCertificateRef) + >(); int SecCertificateCopyPublicKey( SecCertificateRef certificate, ffi.Pointer key, ) { - return _SecCertificateCopyPublicKey( - certificate, - key, - ); + return _SecCertificateCopyPublicKey(certificate, key); } - late final _SecCertificateCopyPublicKeyPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecCertificateRef, - ffi.Pointer)>>('SecCertificateCopyPublicKey'); - late final _SecCertificateCopyPublicKey = _SecCertificateCopyPublicKeyPtr - .asFunction)>(); + late final _SecCertificateCopyPublicKeyPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecCertificateRef, ffi.Pointer) + > + >('SecCertificateCopyPublicKey'); + late final _SecCertificateCopyPublicKey = + _SecCertificateCopyPublicKeyPtr.asFunction< + int Function(SecCertificateRef, ffi.Pointer) + >(); CFDataRef SecCertificateCopySerialNumberData( SecCertificateRef certificate, ffi.Pointer error, ) { - return _SecCertificateCopySerialNumberData( - certificate, - error, - ); + return _SecCertificateCopySerialNumberData(certificate, error); } - late final _SecCertificateCopySerialNumberDataPtr = _lookup< - ffi.NativeFunction< - CFDataRef Function(SecCertificateRef, - ffi.Pointer)>>('SecCertificateCopySerialNumberData'); + late final _SecCertificateCopySerialNumberDataPtr = + _lookup< + ffi.NativeFunction< + CFDataRef Function(SecCertificateRef, ffi.Pointer) + > + >('SecCertificateCopySerialNumberData'); late final _SecCertificateCopySerialNumberData = _SecCertificateCopySerialNumberDataPtr.asFunction< - CFDataRef Function(SecCertificateRef, ffi.Pointer)>(); + CFDataRef Function(SecCertificateRef, ffi.Pointer) + >(); CFDateRef SecCertificateCopyNotValidBeforeDate( SecCertificateRef certificate, ) { - return _SecCertificateCopyNotValidBeforeDate( - certificate, - ); + return _SecCertificateCopyNotValidBeforeDate(certificate); } late final _SecCertificateCopyNotValidBeforeDatePtr = _lookup>( - 'SecCertificateCopyNotValidBeforeDate'); + 'SecCertificateCopyNotValidBeforeDate', + ); late final _SecCertificateCopyNotValidBeforeDate = _SecCertificateCopyNotValidBeforeDatePtr.asFunction< - CFDateRef Function(SecCertificateRef)>(); + CFDateRef Function(SecCertificateRef) + >(); - CFDateRef SecCertificateCopyNotValidAfterDate( - SecCertificateRef certificate, - ) { - return _SecCertificateCopyNotValidAfterDate( - certificate, - ); + CFDateRef SecCertificateCopyNotValidAfterDate(SecCertificateRef certificate) { + return _SecCertificateCopyNotValidAfterDate(certificate); } late final _SecCertificateCopyNotValidAfterDatePtr = _lookup>( - 'SecCertificateCopyNotValidAfterDate'); + 'SecCertificateCopyNotValidAfterDate', + ); late final _SecCertificateCopyNotValidAfterDate = _SecCertificateCopyNotValidAfterDatePtr.asFunction< - CFDateRef Function(SecCertificateRef)>(); + CFDateRef Function(SecCertificateRef) + >(); CFDataRef SecCertificateCopySerialNumber( SecCertificateRef certificate, ffi.Pointer error, ) { - return _SecCertificateCopySerialNumber( - certificate, - error, - ); + return _SecCertificateCopySerialNumber(certificate, error); } - late final _SecCertificateCopySerialNumberPtr = _lookup< - ffi.NativeFunction< - CFDataRef Function(SecCertificateRef, - ffi.Pointer)>>('SecCertificateCopySerialNumber'); + late final _SecCertificateCopySerialNumberPtr = + _lookup< + ffi.NativeFunction< + CFDataRef Function(SecCertificateRef, ffi.Pointer) + > + >('SecCertificateCopySerialNumber'); late final _SecCertificateCopySerialNumber = _SecCertificateCopySerialNumberPtr.asFunction< - CFDataRef Function(SecCertificateRef, ffi.Pointer)>(); + CFDataRef Function(SecCertificateRef, ffi.Pointer) + >(); int SecCertificateCreateFromData( ffi.Pointer data, @@ -33674,190 +33763,198 @@ class NativeCupertinoHttp { int encoding, ffi.Pointer certificate, ) { - return _SecCertificateCreateFromData( - data, - type, - encoding, - certificate, - ); + return _SecCertificateCreateFromData(data, type, encoding, certificate); } - late final _SecCertificateCreateFromDataPtr = _lookup< - ffi.NativeFunction< + late final _SecCertificateCreateFromDataPtr = + _lookup< + ffi.NativeFunction< OSStatus Function( - ffi.Pointer, - CSSM_CERT_TYPE, - CSSM_CERT_ENCODING, - ffi.Pointer)>>('SecCertificateCreateFromData'); + ffi.Pointer, + CSSM_CERT_TYPE, + CSSM_CERT_ENCODING, + ffi.Pointer, + ) + > + >('SecCertificateCreateFromData'); late final _SecCertificateCreateFromData = _SecCertificateCreateFromDataPtr.asFunction< - int Function(ffi.Pointer, int, int, - ffi.Pointer)>(); + int Function( + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); int SecCertificateAddToKeychain( SecCertificateRef certificate, SecKeychainRef keychain, ) { - return _SecCertificateAddToKeychain( - certificate, - keychain, - ); + return _SecCertificateAddToKeychain(certificate, keychain); } - late final _SecCertificateAddToKeychainPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecCertificateRef, - SecKeychainRef)>>('SecCertificateAddToKeychain'); - late final _SecCertificateAddToKeychain = _SecCertificateAddToKeychainPtr - .asFunction(); + late final _SecCertificateAddToKeychainPtr = + _lookup< + ffi.NativeFunction + >('SecCertificateAddToKeychain'); + late final _SecCertificateAddToKeychain = + _SecCertificateAddToKeychainPtr.asFunction< + int Function(SecCertificateRef, SecKeychainRef) + >(); - int SecCertificateGetData( - SecCertificateRef certificate, - CSSM_DATA_PTR data, - ) { - return _SecCertificateGetData( - certificate, - data, - ); + int SecCertificateGetData(SecCertificateRef certificate, CSSM_DATA_PTR data) { + return _SecCertificateGetData(certificate, data); } - late final _SecCertificateGetDataPtr = _lookup< - ffi - .NativeFunction>( - 'SecCertificateGetData'); - late final _SecCertificateGetData = _SecCertificateGetDataPtr.asFunction< - int Function(SecCertificateRef, CSSM_DATA_PTR)>(); + late final _SecCertificateGetDataPtr = + _lookup< + ffi.NativeFunction + >('SecCertificateGetData'); + late final _SecCertificateGetData = + _SecCertificateGetDataPtr.asFunction< + int Function(SecCertificateRef, CSSM_DATA_PTR) + >(); int SecCertificateGetType( SecCertificateRef certificate, ffi.Pointer certificateType, ) { - return _SecCertificateGetType( - certificate, - certificateType, - ); + return _SecCertificateGetType(certificate, certificateType); } - late final _SecCertificateGetTypePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecCertificateRef, - ffi.Pointer)>>('SecCertificateGetType'); - late final _SecCertificateGetType = _SecCertificateGetTypePtr.asFunction< - int Function(SecCertificateRef, ffi.Pointer)>(); + late final _SecCertificateGetTypePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecCertificateRef, ffi.Pointer) + > + >('SecCertificateGetType'); + late final _SecCertificateGetType = + _SecCertificateGetTypePtr.asFunction< + int Function(SecCertificateRef, ffi.Pointer) + >(); int SecCertificateGetSubject( SecCertificateRef certificate, ffi.Pointer> subject, ) { - return _SecCertificateGetSubject( - certificate, - subject, - ); + return _SecCertificateGetSubject(certificate, subject); } - late final _SecCertificateGetSubjectPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecCertificateRef, - ffi.Pointer>)>>( - 'SecCertificateGetSubject'); + late final _SecCertificateGetSubjectPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SecCertificateRef, + ffi.Pointer>, + ) + > + >('SecCertificateGetSubject'); late final _SecCertificateGetSubject = _SecCertificateGetSubjectPtr.asFunction< - int Function( - SecCertificateRef, ffi.Pointer>)>(); + int Function( + SecCertificateRef, + ffi.Pointer>, + ) + >(); int SecCertificateGetIssuer( SecCertificateRef certificate, ffi.Pointer> issuer, ) { - return _SecCertificateGetIssuer( - certificate, - issuer, - ); + return _SecCertificateGetIssuer(certificate, issuer); } - late final _SecCertificateGetIssuerPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecCertificateRef, - ffi.Pointer>)>>( - 'SecCertificateGetIssuer'); - late final _SecCertificateGetIssuer = _SecCertificateGetIssuerPtr.asFunction< - int Function( - SecCertificateRef, ffi.Pointer>)>(); + late final _SecCertificateGetIssuerPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SecCertificateRef, + ffi.Pointer>, + ) + > + >('SecCertificateGetIssuer'); + late final _SecCertificateGetIssuer = + _SecCertificateGetIssuerPtr.asFunction< + int Function( + SecCertificateRef, + ffi.Pointer>, + ) + >(); int SecCertificateGetCLHandle( SecCertificateRef certificate, ffi.Pointer clHandle, ) { - return _SecCertificateGetCLHandle( - certificate, - clHandle, - ); + return _SecCertificateGetCLHandle(certificate, clHandle); } - late final _SecCertificateGetCLHandlePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecCertificateRef, - ffi.Pointer)>>('SecCertificateGetCLHandle'); + late final _SecCertificateGetCLHandlePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecCertificateRef, ffi.Pointer) + > + >('SecCertificateGetCLHandle'); late final _SecCertificateGetCLHandle = _SecCertificateGetCLHandlePtr.asFunction< - int Function(SecCertificateRef, ffi.Pointer)>(); + int Function(SecCertificateRef, ffi.Pointer) + >(); int SecCertificateGetAlgorithmID( SecCertificateRef certificate, ffi.Pointer> algid, ) { - return _SecCertificateGetAlgorithmID( - certificate, - algid, - ); + return _SecCertificateGetAlgorithmID(certificate, algid); } - late final _SecCertificateGetAlgorithmIDPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SecCertificateRef, ffi.Pointer>)>>( - 'SecCertificateGetAlgorithmID'); + late final _SecCertificateGetAlgorithmIDPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SecCertificateRef, + ffi.Pointer>, + ) + > + >('SecCertificateGetAlgorithmID'); late final _SecCertificateGetAlgorithmID = _SecCertificateGetAlgorithmIDPtr.asFunction< - int Function( - SecCertificateRef, ffi.Pointer>)>(); + int Function(SecCertificateRef, ffi.Pointer>) + >(); int SecCertificateCopyPreference( CFStringRef name, int keyUsage, ffi.Pointer certificate, ) { - return _SecCertificateCopyPreference( - name, - keyUsage, - certificate, - ); + return _SecCertificateCopyPreference(name, keyUsage, certificate); } - late final _SecCertificateCopyPreferencePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(CFStringRef, uint32, - ffi.Pointer)>>('SecCertificateCopyPreference'); + late final _SecCertificateCopyPreferencePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(CFStringRef, uint32, ffi.Pointer) + > + >('SecCertificateCopyPreference'); late final _SecCertificateCopyPreference = _SecCertificateCopyPreferencePtr.asFunction< - int Function(CFStringRef, int, ffi.Pointer)>(); + int Function(CFStringRef, int, ffi.Pointer) + >(); SecCertificateRef SecCertificateCopyPreferred( CFStringRef name, CFArrayRef keyUsage, ) { - return _SecCertificateCopyPreferred( - name, - keyUsage, - ); + return _SecCertificateCopyPreferred(name, keyUsage); } - late final _SecCertificateCopyPreferredPtr = _lookup< - ffi - .NativeFunction>( - 'SecCertificateCopyPreferred'); - late final _SecCertificateCopyPreferred = _SecCertificateCopyPreferredPtr - .asFunction(); + late final _SecCertificateCopyPreferredPtr = + _lookup< + ffi.NativeFunction + >('SecCertificateCopyPreferred'); + late final _SecCertificateCopyPreferred = + _SecCertificateCopyPreferredPtr.asFunction< + SecCertificateRef Function(CFStringRef, CFArrayRef) + >(); int SecCertificateSetPreference( SecCertificateRef certificate, @@ -33865,40 +33962,38 @@ class NativeCupertinoHttp { int keyUsage, CFDateRef date, ) { - return _SecCertificateSetPreference( - certificate, - name, - keyUsage, - date, - ); + return _SecCertificateSetPreference(certificate, name, keyUsage, date); } - late final _SecCertificateSetPreferencePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecCertificateRef, CFStringRef, uint32, - CFDateRef)>>('SecCertificateSetPreference'); + late final _SecCertificateSetPreferencePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecCertificateRef, CFStringRef, uint32, CFDateRef) + > + >('SecCertificateSetPreference'); late final _SecCertificateSetPreference = _SecCertificateSetPreferencePtr.asFunction< - int Function(SecCertificateRef, CFStringRef, int, CFDateRef)>(); + int Function(SecCertificateRef, CFStringRef, int, CFDateRef) + >(); int SecCertificateSetPreferred( SecCertificateRef certificate, CFStringRef name, CFArrayRef keyUsage, ) { - return _SecCertificateSetPreferred( - certificate, - name, - keyUsage, - ); + return _SecCertificateSetPreferred(certificate, name, keyUsage); } - late final _SecCertificateSetPreferredPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecCertificateRef, CFStringRef, - CFArrayRef)>>('SecCertificateSetPreferred'); - late final _SecCertificateSetPreferred = _SecCertificateSetPreferredPtr - .asFunction(); + late final _SecCertificateSetPreferredPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecCertificateRef, CFStringRef, CFArrayRef) + > + >('SecCertificateSetPreferred'); + late final _SecCertificateSetPreferred = + _SecCertificateSetPreferredPtr.asFunction< + int Function(SecCertificateRef, CFStringRef, CFArrayRef) + >(); late final ffi.Pointer _kSecPropertyKeyType = _lookup('kSecPropertyKeyType'); @@ -34010,99 +34105,117 @@ class NativeCupertinoHttp { CFArrayRef keys, ffi.Pointer error, ) { - return _SecCertificateCopyValues( - certificate, - keys, - error, - ); + return _SecCertificateCopyValues(certificate, keys, error); } - late final _SecCertificateCopyValuesPtr = _lookup< - ffi.NativeFunction< - CFDictionaryRef Function(SecCertificateRef, CFArrayRef, - ffi.Pointer)>>('SecCertificateCopyValues'); + late final _SecCertificateCopyValuesPtr = + _lookup< + ffi.NativeFunction< + CFDictionaryRef Function( + SecCertificateRef, + CFArrayRef, + ffi.Pointer, + ) + > + >('SecCertificateCopyValues'); late final _SecCertificateCopyValues = _SecCertificateCopyValuesPtr.asFunction< - CFDictionaryRef Function( - SecCertificateRef, CFArrayRef, ffi.Pointer)>(); + CFDictionaryRef Function( + SecCertificateRef, + CFArrayRef, + ffi.Pointer, + ) + >(); CFStringRef SecCertificateCopyLongDescription( CFAllocatorRef alloc, SecCertificateRef certificate, ffi.Pointer error, ) { - return _SecCertificateCopyLongDescription( - alloc, - certificate, - error, - ); + return _SecCertificateCopyLongDescription(alloc, certificate, error); } - late final _SecCertificateCopyLongDescriptionPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, SecCertificateRef, - ffi.Pointer)>>('SecCertificateCopyLongDescription'); + late final _SecCertificateCopyLongDescriptionPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + SecCertificateRef, + ffi.Pointer, + ) + > + >('SecCertificateCopyLongDescription'); late final _SecCertificateCopyLongDescription = _SecCertificateCopyLongDescriptionPtr.asFunction< - CFStringRef Function( - CFAllocatorRef, SecCertificateRef, ffi.Pointer)>(); + CFStringRef Function( + CFAllocatorRef, + SecCertificateRef, + ffi.Pointer, + ) + >(); CFStringRef SecCertificateCopyShortDescription( CFAllocatorRef alloc, SecCertificateRef certificate, ffi.Pointer error, ) { - return _SecCertificateCopyShortDescription( - alloc, - certificate, - error, - ); + return _SecCertificateCopyShortDescription(alloc, certificate, error); } - late final _SecCertificateCopyShortDescriptionPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, SecCertificateRef, - ffi.Pointer)>>('SecCertificateCopyShortDescription'); + late final _SecCertificateCopyShortDescriptionPtr = + _lookup< + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + SecCertificateRef, + ffi.Pointer, + ) + > + >('SecCertificateCopyShortDescription'); late final _SecCertificateCopyShortDescription = _SecCertificateCopyShortDescriptionPtr.asFunction< - CFStringRef Function( - CFAllocatorRef, SecCertificateRef, ffi.Pointer)>(); + CFStringRef Function( + CFAllocatorRef, + SecCertificateRef, + ffi.Pointer, + ) + >(); CFDataRef SecCertificateCopyNormalizedIssuerContent( SecCertificateRef certificate, ffi.Pointer error, ) { - return _SecCertificateCopyNormalizedIssuerContent( - certificate, - error, - ); + return _SecCertificateCopyNormalizedIssuerContent(certificate, error); } - late final _SecCertificateCopyNormalizedIssuerContentPtr = _lookup< - ffi.NativeFunction< - CFDataRef Function(SecCertificateRef, ffi.Pointer)>>( - 'SecCertificateCopyNormalizedIssuerContent'); + late final _SecCertificateCopyNormalizedIssuerContentPtr = + _lookup< + ffi.NativeFunction< + CFDataRef Function(SecCertificateRef, ffi.Pointer) + > + >('SecCertificateCopyNormalizedIssuerContent'); late final _SecCertificateCopyNormalizedIssuerContent = _SecCertificateCopyNormalizedIssuerContentPtr.asFunction< - CFDataRef Function(SecCertificateRef, ffi.Pointer)>(); + CFDataRef Function(SecCertificateRef, ffi.Pointer) + >(); CFDataRef SecCertificateCopyNormalizedSubjectContent( SecCertificateRef certificate, ffi.Pointer error, ) { - return _SecCertificateCopyNormalizedSubjectContent( - certificate, - error, - ); + return _SecCertificateCopyNormalizedSubjectContent(certificate, error); } - late final _SecCertificateCopyNormalizedSubjectContentPtr = _lookup< - ffi.NativeFunction< - CFDataRef Function(SecCertificateRef, ffi.Pointer)>>( - 'SecCertificateCopyNormalizedSubjectContent'); + late final _SecCertificateCopyNormalizedSubjectContentPtr = + _lookup< + ffi.NativeFunction< + CFDataRef Function(SecCertificateRef, ffi.Pointer) + > + >('SecCertificateCopyNormalizedSubjectContent'); late final _SecCertificateCopyNormalizedSubjectContent = _SecCertificateCopyNormalizedSubjectContentPtr.asFunction< - CFDataRef Function(SecCertificateRef, ffi.Pointer)>(); + CFDataRef Function(SecCertificateRef, ffi.Pointer) + >(); int SecIdentityGetTypeID() { return _SecIdentityGetTypeID(); @@ -34125,50 +34238,56 @@ class NativeCupertinoHttp { ); } - late final _SecIdentityCreateWithCertificatePtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - CFTypeRef, SecCertificateRef, ffi.Pointer)>>( - 'SecIdentityCreateWithCertificate'); + late final _SecIdentityCreateWithCertificatePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + CFTypeRef, + SecCertificateRef, + ffi.Pointer, + ) + > + >('SecIdentityCreateWithCertificate'); late final _SecIdentityCreateWithCertificate = _SecIdentityCreateWithCertificatePtr.asFunction< - int Function( - CFTypeRef, SecCertificateRef, ffi.Pointer)>(); + int Function(CFTypeRef, SecCertificateRef, ffi.Pointer) + >(); int SecIdentityCopyCertificate( SecIdentityRef identityRef, ffi.Pointer certificateRef, ) { - return _SecIdentityCopyCertificate( - identityRef, - certificateRef, - ); + return _SecIdentityCopyCertificate(identityRef, certificateRef); } - late final _SecIdentityCopyCertificatePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecIdentityRef, - ffi.Pointer)>>('SecIdentityCopyCertificate'); + late final _SecIdentityCopyCertificatePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecIdentityRef, ffi.Pointer) + > + >('SecIdentityCopyCertificate'); late final _SecIdentityCopyCertificate = _SecIdentityCopyCertificatePtr.asFunction< - int Function(SecIdentityRef, ffi.Pointer)>(); + int Function(SecIdentityRef, ffi.Pointer) + >(); int SecIdentityCopyPrivateKey( SecIdentityRef identityRef, ffi.Pointer privateKeyRef, ) { - return _SecIdentityCopyPrivateKey( - identityRef, - privateKeyRef, - ); + return _SecIdentityCopyPrivateKey(identityRef, privateKeyRef); } - late final _SecIdentityCopyPrivateKeyPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecIdentityRef, - ffi.Pointer)>>('SecIdentityCopyPrivateKey'); - late final _SecIdentityCopyPrivateKey = _SecIdentityCopyPrivateKeyPtr - .asFunction)>(); + late final _SecIdentityCopyPrivateKeyPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecIdentityRef, ffi.Pointer) + > + >('SecIdentityCopyPrivateKey'); + late final _SecIdentityCopyPrivateKey = + _SecIdentityCopyPrivateKeyPtr.asFunction< + int Function(SecIdentityRef, ffi.Pointer) + >(); int SecIdentityCopyPreference( CFStringRef name, @@ -34176,117 +34295,121 @@ class NativeCupertinoHttp { CFArrayRef validIssuers, ffi.Pointer identity, ) { - return _SecIdentityCopyPreference( - name, - keyUsage, - validIssuers, - identity, - ); + return _SecIdentityCopyPreference(name, keyUsage, validIssuers, identity); } - late final _SecIdentityCopyPreferencePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(CFStringRef, CSSM_KEYUSE, CFArrayRef, - ffi.Pointer)>>('SecIdentityCopyPreference'); + late final _SecIdentityCopyPreferencePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + CFStringRef, + CSSM_KEYUSE, + CFArrayRef, + ffi.Pointer, + ) + > + >('SecIdentityCopyPreference'); late final _SecIdentityCopyPreference = _SecIdentityCopyPreferencePtr.asFunction< - int Function( - CFStringRef, int, CFArrayRef, ffi.Pointer)>(); + int Function(CFStringRef, int, CFArrayRef, ffi.Pointer) + >(); SecIdentityRef SecIdentityCopyPreferred( CFStringRef name, CFArrayRef keyUsage, CFArrayRef validIssuers, ) { - return _SecIdentityCopyPreferred( - name, - keyUsage, - validIssuers, - ); + return _SecIdentityCopyPreferred(name, keyUsage, validIssuers); } - late final _SecIdentityCopyPreferredPtr = _lookup< - ffi.NativeFunction< - SecIdentityRef Function(CFStringRef, CFArrayRef, - CFArrayRef)>>('SecIdentityCopyPreferred'); + late final _SecIdentityCopyPreferredPtr = + _lookup< + ffi.NativeFunction< + SecIdentityRef Function(CFStringRef, CFArrayRef, CFArrayRef) + > + >('SecIdentityCopyPreferred'); late final _SecIdentityCopyPreferred = _SecIdentityCopyPreferredPtr.asFunction< - SecIdentityRef Function(CFStringRef, CFArrayRef, CFArrayRef)>(); + SecIdentityRef Function(CFStringRef, CFArrayRef, CFArrayRef) + >(); int SecIdentitySetPreference( SecIdentityRef identity, CFStringRef name, int keyUsage, ) { - return _SecIdentitySetPreference( - identity, - name, - keyUsage, - ); + return _SecIdentitySetPreference(identity, name, keyUsage); } - late final _SecIdentitySetPreferencePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecIdentityRef, CFStringRef, - CSSM_KEYUSE)>>('SecIdentitySetPreference'); - late final _SecIdentitySetPreference = _SecIdentitySetPreferencePtr - .asFunction(); + late final _SecIdentitySetPreferencePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecIdentityRef, CFStringRef, CSSM_KEYUSE) + > + >('SecIdentitySetPreference'); + late final _SecIdentitySetPreference = + _SecIdentitySetPreferencePtr.asFunction< + int Function(SecIdentityRef, CFStringRef, int) + >(); int SecIdentitySetPreferred( SecIdentityRef identity, CFStringRef name, CFArrayRef keyUsage, ) { - return _SecIdentitySetPreferred( - identity, - name, - keyUsage, - ); + return _SecIdentitySetPreferred(identity, name, keyUsage); } - late final _SecIdentitySetPreferredPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SecIdentityRef, CFStringRef, - CFArrayRef)>>('SecIdentitySetPreferred'); - late final _SecIdentitySetPreferred = _SecIdentitySetPreferredPtr.asFunction< - int Function(SecIdentityRef, CFStringRef, CFArrayRef)>(); + late final _SecIdentitySetPreferredPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SecIdentityRef, CFStringRef, CFArrayRef) + > + >('SecIdentitySetPreferred'); + late final _SecIdentitySetPreferred = + _SecIdentitySetPreferredPtr.asFunction< + int Function(SecIdentityRef, CFStringRef, CFArrayRef) + >(); int SecIdentityCopySystemIdentity( CFStringRef domain, ffi.Pointer idRef, ffi.Pointer actualDomain, ) { - return _SecIdentityCopySystemIdentity( - domain, - idRef, - actualDomain, - ); + return _SecIdentityCopySystemIdentity(domain, idRef, actualDomain); } - late final _SecIdentityCopySystemIdentityPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(CFStringRef, ffi.Pointer, - ffi.Pointer)>>('SecIdentityCopySystemIdentity'); + late final _SecIdentityCopySystemIdentityPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('SecIdentityCopySystemIdentity'); late final _SecIdentityCopySystemIdentity = _SecIdentityCopySystemIdentityPtr.asFunction< - int Function(CFStringRef, ffi.Pointer, - ffi.Pointer)>(); + int Function( + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); - int SecIdentitySetSystemIdentity( - CFStringRef domain, - SecIdentityRef idRef, - ) { - return _SecIdentitySetSystemIdentity( - domain, - idRef, - ); + int SecIdentitySetSystemIdentity(CFStringRef domain, SecIdentityRef idRef) { + return _SecIdentitySetSystemIdentity(domain, idRef); } - late final _SecIdentitySetSystemIdentityPtr = _lookup< - ffi.NativeFunction>( - 'SecIdentitySetSystemIdentity'); - late final _SecIdentitySetSystemIdentity = _SecIdentitySetSystemIdentityPtr - .asFunction(); + late final _SecIdentitySetSystemIdentityPtr = + _lookup< + ffi.NativeFunction + >('SecIdentitySetSystemIdentity'); + late final _SecIdentitySetSystemIdentity = + _SecIdentitySetSystemIdentityPtr.asFunction< + int Function(CFStringRef, SecIdentityRef) + >(); late final ffi.Pointer _kSecIdentityDomainDefault = _lookup('kSecIdentityDomainDefault'); @@ -34305,61 +34428,48 @@ class NativeCupertinoHttp { set kSecIdentityDomainKerberosKDC(CFStringRef value) => _kSecIdentityDomainKerberosKDC.value = value; - Dartsec_trust_t? sec_trust_create( - SecTrustRef trust, - ) { - return _sec_trust_create( - trust, - ).address == - 0 + Dartsec_trust_t? sec_trust_create(SecTrustRef trust) { + return _sec_trust_create(trust).address == 0 ? null : objc.NSObject.castFromPointer( - _sec_trust_create( - trust, - ), + _sec_trust_create(trust), retain: false, - release: true); + release: true, + ); } late final _sec_trust_createPtr = _lookup>( - 'sec_trust_create'); - late final _sec_trust_create = - _sec_trust_createPtr.asFunction(); + 'sec_trust_create', + ); + late final _sec_trust_create = _sec_trust_createPtr + .asFunction(); - SecTrustRef sec_trust_copy_ref( - Dartsec_trust_t trust, - ) { - return _sec_trust_copy_ref( - trust.ref.pointer, - ); + SecTrustRef sec_trust_copy_ref(Dartsec_trust_t trust) { + return _sec_trust_copy_ref(trust.ref.pointer); } late final _sec_trust_copy_refPtr = _lookup>( - 'sec_trust_copy_ref'); - late final _sec_trust_copy_ref = - _sec_trust_copy_refPtr.asFunction(); + 'sec_trust_copy_ref', + ); + late final _sec_trust_copy_ref = _sec_trust_copy_refPtr + .asFunction(); - Dartsec_identity_t? sec_identity_create( - SecIdentityRef identity, - ) { - return _sec_identity_create( - identity, - ).address == - 0 + Dartsec_identity_t? sec_identity_create(SecIdentityRef identity) { + return _sec_identity_create(identity).address == 0 ? null : objc.NSObject.castFromPointer( - _sec_identity_create( - identity, - ), + _sec_identity_create(identity), retain: false, - release: true); + release: true, + ); } late final _sec_identity_createPtr = _lookup>( - 'sec_identity_create'); + 'sec_identity_create', + ); late final _sec_identity_create = _sec_identity_createPtr .asFunction(); @@ -34374,18 +34484,16 @@ class NativeCupertinoHttp { 0 ? null : objc.NSObject.castFromPointer( - _sec_identity_create_with_certificates( - identity, - certificates, - ), + _sec_identity_create_with_certificates(identity, certificates), retain: false, - release: true); + release: true, + ); } - late final _sec_identity_create_with_certificatesPtr = _lookup< - ffi - .NativeFunction>( - 'sec_identity_create_with_certificates'); + late final _sec_identity_create_with_certificatesPtr = + _lookup< + ffi.NativeFunction + >('sec_identity_create_with_certificates'); late final _sec_identity_create_with_certificates = _sec_identity_create_with_certificatesPtr .asFunction(); @@ -34400,95 +34508,88 @@ class NativeCupertinoHttp { ); } - late final _sec_identity_access_certificatesPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - sec_identity_t, ffi.Pointer)>>( - 'sec_identity_access_certificates'); + late final _sec_identity_access_certificatesPtr = + _lookup< + ffi.NativeFunction< + ffi.Bool Function(sec_identity_t, ffi.Pointer) + > + >('sec_identity_access_certificates'); late final _sec_identity_access_certificates = - _sec_identity_access_certificatesPtr.asFunction< - bool Function(sec_identity_t, ffi.Pointer)>(); + _sec_identity_access_certificatesPtr + .asFunction< + bool Function(sec_identity_t, ffi.Pointer) + >(); - SecIdentityRef sec_identity_copy_ref( - Dartsec_identity_t identity, - ) { - return _sec_identity_copy_ref( - identity.ref.pointer, - ); + SecIdentityRef sec_identity_copy_ref(Dartsec_identity_t identity) { + return _sec_identity_copy_ref(identity.ref.pointer); } late final _sec_identity_copy_refPtr = _lookup>( - 'sec_identity_copy_ref'); + 'sec_identity_copy_ref', + ); late final _sec_identity_copy_ref = _sec_identity_copy_refPtr .asFunction(); - CFArrayRef sec_identity_copy_certificates_ref( - Dartsec_identity_t identity, - ) { - return _sec_identity_copy_certificates_ref( - identity.ref.pointer, - ); + CFArrayRef sec_identity_copy_certificates_ref(Dartsec_identity_t identity) { + return _sec_identity_copy_certificates_ref(identity.ref.pointer); } late final _sec_identity_copy_certificates_refPtr = _lookup>( - 'sec_identity_copy_certificates_ref'); + 'sec_identity_copy_certificates_ref', + ); late final _sec_identity_copy_certificates_ref = _sec_identity_copy_certificates_refPtr .asFunction(); - Dartsec_certificate_t? sec_certificate_create( - SecCertificateRef certificate, - ) { - return _sec_certificate_create( - certificate, - ).address == - 0 + Dartsec_certificate_t? sec_certificate_create(SecCertificateRef certificate) { + return _sec_certificate_create(certificate).address == 0 ? null : objc.NSObject.castFromPointer( - _sec_certificate_create( - certificate, - ), + _sec_certificate_create(certificate), retain: false, - release: true); + release: true, + ); } - late final _sec_certificate_createPtr = _lookup< - ffi.NativeFunction>( - 'sec_certificate_create'); + late final _sec_certificate_createPtr = + _lookup< + ffi.NativeFunction + >('sec_certificate_create'); late final _sec_certificate_create = _sec_certificate_createPtr .asFunction(); SecCertificateRef sec_certificate_copy_ref( Dartsec_certificate_t certificate, ) { - return _sec_certificate_copy_ref( - certificate.ref.pointer, - ); + return _sec_certificate_copy_ref(certificate.ref.pointer); } - late final _sec_certificate_copy_refPtr = _lookup< - ffi.NativeFunction>( - 'sec_certificate_copy_ref'); + late final _sec_certificate_copy_refPtr = + _lookup< + ffi.NativeFunction + >('sec_certificate_copy_ref'); late final _sec_certificate_copy_ref = _sec_certificate_copy_refPtr .asFunction(); ffi.Pointer sec_protocol_metadata_get_negotiated_protocol( Dartsec_protocol_metadata_t metadata, ) { - return _sec_protocol_metadata_get_negotiated_protocol( - metadata.ref.pointer, - ); + return _sec_protocol_metadata_get_negotiated_protocol(metadata.ref.pointer); } - late final _sec_protocol_metadata_get_negotiated_protocolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(sec_protocol_metadata_t)>>( - 'sec_protocol_metadata_get_negotiated_protocol'); + late final _sec_protocol_metadata_get_negotiated_protocolPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(sec_protocol_metadata_t) + > + >('sec_protocol_metadata_get_negotiated_protocol'); late final _sec_protocol_metadata_get_negotiated_protocol = - _sec_protocol_metadata_get_negotiated_protocolPtr.asFunction< - ffi.Pointer Function(sec_protocol_metadata_t)>(); + _sec_protocol_metadata_get_negotiated_protocolPtr + .asFunction< + ffi.Pointer Function(sec_protocol_metadata_t) + >(); Dartdispatch_data_t? sec_protocol_metadata_copy_peer_public_key( Dartsec_protocol_metadata_t metadata, @@ -34499,34 +34600,35 @@ class NativeCupertinoHttp { 0 ? null : objc.NSObject.castFromPointer( - _sec_protocol_metadata_copy_peer_public_key( - metadata.ref.pointer, - ), + _sec_protocol_metadata_copy_peer_public_key(metadata.ref.pointer), retain: false, - release: true); + release: true, + ); } - late final _sec_protocol_metadata_copy_peer_public_keyPtr = _lookup< - ffi - .NativeFunction>( - 'sec_protocol_metadata_copy_peer_public_key'); + late final _sec_protocol_metadata_copy_peer_public_keyPtr = + _lookup< + ffi.NativeFunction + >('sec_protocol_metadata_copy_peer_public_key'); late final _sec_protocol_metadata_copy_peer_public_key = _sec_protocol_metadata_copy_peer_public_keyPtr .asFunction(); tls_protocol_version_t - sec_protocol_metadata_get_negotiated_tls_protocol_version( + sec_protocol_metadata_get_negotiated_tls_protocol_version( Dartsec_protocol_metadata_t metadata, ) { - return tls_protocol_version_t - .fromValue(_sec_protocol_metadata_get_negotiated_tls_protocol_version( - metadata.ref.pointer, - )); + return tls_protocol_version_t.fromValue( + _sec_protocol_metadata_get_negotiated_tls_protocol_version( + metadata.ref.pointer, + ), + ); } late final _sec_protocol_metadata_get_negotiated_tls_protocol_versionPtr = _lookup>( - 'sec_protocol_metadata_get_negotiated_tls_protocol_version'); + 'sec_protocol_metadata_get_negotiated_tls_protocol_version', + ); late final _sec_protocol_metadata_get_negotiated_tls_protocol_version = _sec_protocol_metadata_get_negotiated_tls_protocol_versionPtr .asFunction(); @@ -34535,16 +34637,16 @@ class NativeCupertinoHttp { Dartsec_protocol_metadata_t metadata, ) { return SSLProtocol.fromValue( - _sec_protocol_metadata_get_negotiated_protocol_version( - metadata.ref.pointer, - )); + _sec_protocol_metadata_get_negotiated_protocol_version( + metadata.ref.pointer, + ), + ); } late final _sec_protocol_metadata_get_negotiated_protocol_versionPtr = _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(sec_protocol_metadata_t)>>( - 'sec_protocol_metadata_get_negotiated_protocol_version'); + ffi.NativeFunction + >('sec_protocol_metadata_get_negotiated_protocol_version'); late final _sec_protocol_metadata_get_negotiated_protocol_version = _sec_protocol_metadata_get_negotiated_protocol_versionPtr .asFunction(); @@ -34552,15 +34654,17 @@ class NativeCupertinoHttp { tls_ciphersuite_t sec_protocol_metadata_get_negotiated_tls_ciphersuite( Dartsec_protocol_metadata_t metadata, ) { - return tls_ciphersuite_t - .fromValue(_sec_protocol_metadata_get_negotiated_tls_ciphersuite( - metadata.ref.pointer, - )); + return tls_ciphersuite_t.fromValue( + _sec_protocol_metadata_get_negotiated_tls_ciphersuite( + metadata.ref.pointer, + ), + ); } late final _sec_protocol_metadata_get_negotiated_tls_ciphersuitePtr = _lookup>( - 'sec_protocol_metadata_get_negotiated_tls_ciphersuite'); + 'sec_protocol_metadata_get_negotiated_tls_ciphersuite', + ); late final _sec_protocol_metadata_get_negotiated_tls_ciphersuite = _sec_protocol_metadata_get_negotiated_tls_ciphersuitePtr .asFunction(); @@ -34573,9 +34677,10 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_metadata_get_negotiated_ciphersuitePtr = _lookup< - ffi.NativeFunction>( - 'sec_protocol_metadata_get_negotiated_ciphersuite'); + late final _sec_protocol_metadata_get_negotiated_ciphersuitePtr = + _lookup< + ffi.NativeFunction + >('sec_protocol_metadata_get_negotiated_ciphersuite'); late final _sec_protocol_metadata_get_negotiated_ciphersuite = _sec_protocol_metadata_get_negotiated_ciphersuitePtr .asFunction(); @@ -34583,14 +34688,13 @@ class NativeCupertinoHttp { bool sec_protocol_metadata_get_early_data_accepted( Dartsec_protocol_metadata_t metadata, ) { - return _sec_protocol_metadata_get_early_data_accepted( - metadata.ref.pointer, - ); + return _sec_protocol_metadata_get_early_data_accepted(metadata.ref.pointer); } late final _sec_protocol_metadata_get_early_data_acceptedPtr = _lookup>( - 'sec_protocol_metadata_get_early_data_accepted'); + 'sec_protocol_metadata_get_early_data_accepted', + ); late final _sec_protocol_metadata_get_early_data_accepted = _sec_protocol_metadata_get_early_data_acceptedPtr .asFunction(); @@ -34605,15 +34709,23 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_metadata_access_peer_certificate_chainPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - sec_protocol_metadata_t, ffi.Pointer)>>( - 'sec_protocol_metadata_access_peer_certificate_chain'); + late final _sec_protocol_metadata_access_peer_certificate_chainPtr = + _lookup< + ffi.NativeFunction< + ffi.Bool Function( + sec_protocol_metadata_t, + ffi.Pointer, + ) + > + >('sec_protocol_metadata_access_peer_certificate_chain'); late final _sec_protocol_metadata_access_peer_certificate_chain = - _sec_protocol_metadata_access_peer_certificate_chainPtr.asFunction< - bool Function( - sec_protocol_metadata_t, ffi.Pointer)>(); + _sec_protocol_metadata_access_peer_certificate_chainPtr + .asFunction< + bool Function( + sec_protocol_metadata_t, + ffi.Pointer, + ) + >(); bool sec_protocol_metadata_access_ocsp_response( Dartsec_protocol_metadata_t metadata, @@ -34625,15 +34737,23 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_metadata_access_ocsp_responsePtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - sec_protocol_metadata_t, ffi.Pointer)>>( - 'sec_protocol_metadata_access_ocsp_response'); + late final _sec_protocol_metadata_access_ocsp_responsePtr = + _lookup< + ffi.NativeFunction< + ffi.Bool Function( + sec_protocol_metadata_t, + ffi.Pointer, + ) + > + >('sec_protocol_metadata_access_ocsp_response'); late final _sec_protocol_metadata_access_ocsp_response = - _sec_protocol_metadata_access_ocsp_responsePtr.asFunction< - bool Function( - sec_protocol_metadata_t, ffi.Pointer)>(); + _sec_protocol_metadata_access_ocsp_responsePtr + .asFunction< + bool Function( + sec_protocol_metadata_t, + ffi.Pointer, + ) + >(); bool sec_protocol_metadata_access_supported_signature_algorithms( Dartsec_protocol_metadata_t metadata, @@ -34647,15 +34767,21 @@ class NativeCupertinoHttp { late final _sec_protocol_metadata_access_supported_signature_algorithmsPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(sec_protocol_metadata_t, - ffi.Pointer)>>( - 'sec_protocol_metadata_access_supported_signature_algorithms'); + ffi.NativeFunction< + ffi.Bool Function( + sec_protocol_metadata_t, + ffi.Pointer, + ) + > + >('sec_protocol_metadata_access_supported_signature_algorithms'); late final _sec_protocol_metadata_access_supported_signature_algorithms = _sec_protocol_metadata_access_supported_signature_algorithmsPtr .asFunction< - bool Function( - sec_protocol_metadata_t, ffi.Pointer)>(); + bool Function( + sec_protocol_metadata_t, + ffi.Pointer, + ) + >(); bool sec_protocol_metadata_access_distinguished_names( Dartsec_protocol_metadata_t metadata, @@ -34667,15 +34793,23 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_metadata_access_distinguished_namesPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - sec_protocol_metadata_t, ffi.Pointer)>>( - 'sec_protocol_metadata_access_distinguished_names'); + late final _sec_protocol_metadata_access_distinguished_namesPtr = + _lookup< + ffi.NativeFunction< + ffi.Bool Function( + sec_protocol_metadata_t, + ffi.Pointer, + ) + > + >('sec_protocol_metadata_access_distinguished_names'); late final _sec_protocol_metadata_access_distinguished_names = - _sec_protocol_metadata_access_distinguished_namesPtr.asFunction< - bool Function( - sec_protocol_metadata_t, ffi.Pointer)>(); + _sec_protocol_metadata_access_distinguished_namesPtr + .asFunction< + bool Function( + sec_protocol_metadata_t, + ffi.Pointer, + ) + >(); bool sec_protocol_metadata_access_pre_shared_keys( Dartsec_protocol_metadata_t metadata, @@ -34687,31 +34821,41 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_metadata_access_pre_shared_keysPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - sec_protocol_metadata_t, ffi.Pointer)>>( - 'sec_protocol_metadata_access_pre_shared_keys'); + late final _sec_protocol_metadata_access_pre_shared_keysPtr = + _lookup< + ffi.NativeFunction< + ffi.Bool Function( + sec_protocol_metadata_t, + ffi.Pointer, + ) + > + >('sec_protocol_metadata_access_pre_shared_keys'); late final _sec_protocol_metadata_access_pre_shared_keys = - _sec_protocol_metadata_access_pre_shared_keysPtr.asFunction< - bool Function( - sec_protocol_metadata_t, ffi.Pointer)>(); + _sec_protocol_metadata_access_pre_shared_keysPtr + .asFunction< + bool Function( + sec_protocol_metadata_t, + ffi.Pointer, + ) + >(); ffi.Pointer sec_protocol_metadata_get_server_name( Dartsec_protocol_metadata_t metadata, ) { - return _sec_protocol_metadata_get_server_name( - metadata.ref.pointer, - ); + return _sec_protocol_metadata_get_server_name(metadata.ref.pointer); } - late final _sec_protocol_metadata_get_server_namePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(sec_protocol_metadata_t)>>( - 'sec_protocol_metadata_get_server_name'); + late final _sec_protocol_metadata_get_server_namePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(sec_protocol_metadata_t) + > + >('sec_protocol_metadata_get_server_name'); late final _sec_protocol_metadata_get_server_name = - _sec_protocol_metadata_get_server_namePtr.asFunction< - ffi.Pointer Function(sec_protocol_metadata_t)>(); + _sec_protocol_metadata_get_server_namePtr + .asFunction< + ffi.Pointer Function(sec_protocol_metadata_t) + >(); bool sec_protocol_metadata_peers_are_equal( Dartsec_protocol_metadata_t metadataA, @@ -34723,14 +34867,17 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_metadata_peers_are_equalPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - sec_protocol_metadata_t, sec_protocol_metadata_t)>>( - 'sec_protocol_metadata_peers_are_equal'); + late final _sec_protocol_metadata_peers_are_equalPtr = + _lookup< + ffi.NativeFunction< + ffi.Bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t) + > + >('sec_protocol_metadata_peers_are_equal'); late final _sec_protocol_metadata_peers_are_equal = - _sec_protocol_metadata_peers_are_equalPtr.asFunction< - bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t)>(); + _sec_protocol_metadata_peers_are_equalPtr + .asFunction< + bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t) + >(); bool sec_protocol_metadata_challenge_parameters_are_equal( Dartsec_protocol_metadata_t metadataA, @@ -34742,14 +34889,17 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_metadata_challenge_parameters_are_equalPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - sec_protocol_metadata_t, sec_protocol_metadata_t)>>( - 'sec_protocol_metadata_challenge_parameters_are_equal'); + late final _sec_protocol_metadata_challenge_parameters_are_equalPtr = + _lookup< + ffi.NativeFunction< + ffi.Bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t) + > + >('sec_protocol_metadata_challenge_parameters_are_equal'); late final _sec_protocol_metadata_challenge_parameters_are_equal = - _sec_protocol_metadata_challenge_parameters_are_equalPtr.asFunction< - bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t)>(); + _sec_protocol_metadata_challenge_parameters_are_equalPtr + .asFunction< + bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t) + >(); Dartdispatch_data_t? sec_protocol_metadata_create_secret( Dartsec_protocol_metadata_t metadata, @@ -34773,20 +34923,31 @@ class NativeCupertinoHttp { exporter_length, ), retain: false, - release: true); + release: true, + ); } - late final _sec_protocol_metadata_create_secretPtr = _lookup< - ffi.NativeFunction< + late final _sec_protocol_metadata_create_secretPtr = + _lookup< + ffi.NativeFunction< dispatch_data_t Function( + sec_protocol_metadata_t, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + > + >('sec_protocol_metadata_create_secret'); + late final _sec_protocol_metadata_create_secret = + _sec_protocol_metadata_create_secretPtr + .asFunction< + dispatch_data_t Function( sec_protocol_metadata_t, - ffi.Size, + int, ffi.Pointer, - ffi.Size)>>('sec_protocol_metadata_create_secret'); - late final _sec_protocol_metadata_create_secret = - _sec_protocol_metadata_create_secretPtr.asFunction< - dispatch_data_t Function( - sec_protocol_metadata_t, int, ffi.Pointer, int)>(); + int, + ) + >(); Dartdispatch_data_t? sec_protocol_metadata_create_secret_with_context( Dartsec_protocol_metadata_t metadata, @@ -34816,22 +34977,35 @@ class NativeCupertinoHttp { exporter_length, ), retain: false, - release: true); + release: true, + ); } - late final _sec_protocol_metadata_create_secret_with_contextPtr = _lookup< - ffi.NativeFunction< + late final _sec_protocol_metadata_create_secret_with_contextPtr = + _lookup< + ffi.NativeFunction< dispatch_data_t Function( + sec_protocol_metadata_t, + ffi.Size, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + > + >('sec_protocol_metadata_create_secret_with_context'); + late final _sec_protocol_metadata_create_secret_with_context = + _sec_protocol_metadata_create_secret_with_contextPtr + .asFunction< + dispatch_data_t Function( sec_protocol_metadata_t, - ffi.Size, + int, ffi.Pointer, - ffi.Size, + int, ffi.Pointer, - ffi.Size)>>('sec_protocol_metadata_create_secret_with_context'); - late final _sec_protocol_metadata_create_secret_with_context = - _sec_protocol_metadata_create_secret_with_contextPtr.asFunction< - dispatch_data_t Function(sec_protocol_metadata_t, int, - ffi.Pointer, int, ffi.Pointer, int)>(); + int, + ) + >(); bool sec_protocol_options_are_equal( Dartsec_protocol_options_t optionsA, @@ -34843,13 +35017,17 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_are_equalPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(sec_protocol_options_t, - sec_protocol_options_t)>>('sec_protocol_options_are_equal'); + late final _sec_protocol_options_are_equalPtr = + _lookup< + ffi.NativeFunction< + ffi.Bool Function(sec_protocol_options_t, sec_protocol_options_t) + > + >('sec_protocol_options_are_equal'); late final _sec_protocol_options_are_equal = - _sec_protocol_options_are_equalPtr.asFunction< - bool Function(sec_protocol_options_t, sec_protocol_options_t)>(); + _sec_protocol_options_are_equalPtr + .asFunction< + bool Function(sec_protocol_options_t, sec_protocol_options_t) + >(); void sec_protocol_options_set_local_identity( Dartsec_protocol_options_t options, @@ -34861,10 +35039,12 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_local_identityPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, - sec_identity_t)>>('sec_protocol_options_set_local_identity'); + late final _sec_protocol_options_set_local_identityPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_options_t, sec_identity_t) + > + >('sec_protocol_options_set_local_identity'); late final _sec_protocol_options_set_local_identity = _sec_protocol_options_set_local_identityPtr .asFunction(); @@ -34879,10 +35059,12 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_append_tls_ciphersuitePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, - ffi.Uint16)>>('sec_protocol_options_append_tls_ciphersuite'); + late final _sec_protocol_options_append_tls_ciphersuitePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_options_t, ffi.Uint16) + > + >('sec_protocol_options_append_tls_ciphersuite'); late final _sec_protocol_options_append_tls_ciphersuite = _sec_protocol_options_append_tls_ciphersuitePtr .asFunction(); @@ -34897,10 +35079,12 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_add_tls_ciphersuitePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, - SSLCipherSuite)>>('sec_protocol_options_add_tls_ciphersuite'); + late final _sec_protocol_options_add_tls_ciphersuitePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_options_t, SSLCipherSuite) + > + >('sec_protocol_options_add_tls_ciphersuite'); late final _sec_protocol_options_add_tls_ciphersuite = _sec_protocol_options_add_tls_ciphersuitePtr .asFunction(); @@ -34915,10 +35099,12 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_append_tls_ciphersuite_groupPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, ffi.Uint16)>>( - 'sec_protocol_options_append_tls_ciphersuite_group'); + late final _sec_protocol_options_append_tls_ciphersuite_groupPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_options_t, ffi.Uint16) + > + >('sec_protocol_options_append_tls_ciphersuite_group'); late final _sec_protocol_options_append_tls_ciphersuite_group = _sec_protocol_options_append_tls_ciphersuite_groupPtr .asFunction(); @@ -34933,10 +35119,12 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_add_tls_ciphersuite_groupPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, ffi.UnsignedInt)>>( - 'sec_protocol_options_add_tls_ciphersuite_group'); + late final _sec_protocol_options_add_tls_ciphersuite_groupPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_options_t, ffi.UnsignedInt) + > + >('sec_protocol_options_add_tls_ciphersuite_group'); late final _sec_protocol_options_add_tls_ciphersuite_group = _sec_protocol_options_add_tls_ciphersuite_groupPtr .asFunction(); @@ -34951,10 +35139,12 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_tls_min_versionPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, - ffi.UnsignedInt)>>('sec_protocol_options_set_tls_min_version'); + late final _sec_protocol_options_set_tls_min_versionPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_options_t, ffi.UnsignedInt) + > + >('sec_protocol_options_set_tls_min_version'); late final _sec_protocol_options_set_tls_min_version = _sec_protocol_options_set_tls_min_versionPtr .asFunction(); @@ -34969,36 +35159,42 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_min_tls_protocol_versionPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, ffi.Uint16)>>( - 'sec_protocol_options_set_min_tls_protocol_version'); + late final _sec_protocol_options_set_min_tls_protocol_versionPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_options_t, ffi.Uint16) + > + >('sec_protocol_options_set_min_tls_protocol_version'); late final _sec_protocol_options_set_min_tls_protocol_version = _sec_protocol_options_set_min_tls_protocol_versionPtr .asFunction(); tls_protocol_version_t - sec_protocol_options_get_default_min_tls_protocol_version() { + sec_protocol_options_get_default_min_tls_protocol_version() { return tls_protocol_version_t.fromValue( - _sec_protocol_options_get_default_min_tls_protocol_version()); + _sec_protocol_options_get_default_min_tls_protocol_version(), + ); } late final _sec_protocol_options_get_default_min_tls_protocol_versionPtr = _lookup>( - 'sec_protocol_options_get_default_min_tls_protocol_version'); + 'sec_protocol_options_get_default_min_tls_protocol_version', + ); late final _sec_protocol_options_get_default_min_tls_protocol_version = _sec_protocol_options_get_default_min_tls_protocol_versionPtr .asFunction(); tls_protocol_version_t - sec_protocol_options_get_default_min_dtls_protocol_version() { + sec_protocol_options_get_default_min_dtls_protocol_version() { return tls_protocol_version_t.fromValue( - _sec_protocol_options_get_default_min_dtls_protocol_version()); + _sec_protocol_options_get_default_min_dtls_protocol_version(), + ); } late final _sec_protocol_options_get_default_min_dtls_protocol_versionPtr = _lookup>( - 'sec_protocol_options_get_default_min_dtls_protocol_version'); + 'sec_protocol_options_get_default_min_dtls_protocol_version', + ); late final _sec_protocol_options_get_default_min_dtls_protocol_version = _sec_protocol_options_get_default_min_dtls_protocol_versionPtr .asFunction(); @@ -35013,10 +35209,12 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_tls_max_versionPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, - ffi.UnsignedInt)>>('sec_protocol_options_set_tls_max_version'); + late final _sec_protocol_options_set_tls_max_versionPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_options_t, ffi.UnsignedInt) + > + >('sec_protocol_options_set_tls_max_version'); late final _sec_protocol_options_set_tls_max_version = _sec_protocol_options_set_tls_max_versionPtr .asFunction(); @@ -35031,36 +35229,42 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_max_tls_protocol_versionPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, ffi.Uint16)>>( - 'sec_protocol_options_set_max_tls_protocol_version'); + late final _sec_protocol_options_set_max_tls_protocol_versionPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_options_t, ffi.Uint16) + > + >('sec_protocol_options_set_max_tls_protocol_version'); late final _sec_protocol_options_set_max_tls_protocol_version = _sec_protocol_options_set_max_tls_protocol_versionPtr .asFunction(); tls_protocol_version_t - sec_protocol_options_get_default_max_tls_protocol_version() { + sec_protocol_options_get_default_max_tls_protocol_version() { return tls_protocol_version_t.fromValue( - _sec_protocol_options_get_default_max_tls_protocol_version()); + _sec_protocol_options_get_default_max_tls_protocol_version(), + ); } late final _sec_protocol_options_get_default_max_tls_protocol_versionPtr = _lookup>( - 'sec_protocol_options_get_default_max_tls_protocol_version'); + 'sec_protocol_options_get_default_max_tls_protocol_version', + ); late final _sec_protocol_options_get_default_max_tls_protocol_version = _sec_protocol_options_get_default_max_tls_protocol_versionPtr .asFunction(); tls_protocol_version_t - sec_protocol_options_get_default_max_dtls_protocol_version() { + sec_protocol_options_get_default_max_dtls_protocol_version() { return tls_protocol_version_t.fromValue( - _sec_protocol_options_get_default_max_dtls_protocol_version()); + _sec_protocol_options_get_default_max_dtls_protocol_version(), + ); } late final _sec_protocol_options_get_default_max_dtls_protocol_versionPtr = _lookup>( - 'sec_protocol_options_get_default_max_dtls_protocol_version'); + 'sec_protocol_options_get_default_max_dtls_protocol_version', + ); late final _sec_protocol_options_get_default_max_dtls_protocol_version = _sec_protocol_options_get_default_max_dtls_protocol_versionPtr .asFunction(); @@ -35075,7 +35279,8 @@ class NativeCupertinoHttp { late final _sec_protocol_options_get_enable_encrypted_client_helloPtr = _lookup>( - 'sec_protocol_options_get_enable_encrypted_client_hello'); + 'sec_protocol_options_get_enable_encrypted_client_hello', + ); late final _sec_protocol_options_get_enable_encrypted_client_hello = _sec_protocol_options_get_enable_encrypted_client_helloPtr .asFunction(); @@ -35090,7 +35295,8 @@ class NativeCupertinoHttp { late final _sec_protocol_options_get_quic_use_legacy_codepointPtr = _lookup>( - 'sec_protocol_options_get_quic_use_legacy_codepoint'); + 'sec_protocol_options_get_quic_use_legacy_codepoint', + ); late final _sec_protocol_options_get_quic_use_legacy_codepoint = _sec_protocol_options_get_quic_use_legacy_codepointPtr .asFunction(); @@ -35105,14 +35311,17 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_add_tls_application_protocolPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_options_t, ffi.Pointer)>>( - 'sec_protocol_options_add_tls_application_protocol'); + late final _sec_protocol_options_add_tls_application_protocolPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_options_t, ffi.Pointer) + > + >('sec_protocol_options_add_tls_application_protocol'); late final _sec_protocol_options_add_tls_application_protocol = - _sec_protocol_options_add_tls_application_protocolPtr.asFunction< - void Function(sec_protocol_options_t, ffi.Pointer)>(); + _sec_protocol_options_add_tls_application_protocolPtr + .asFunction< + void Function(sec_protocol_options_t, ffi.Pointer) + >(); void sec_protocol_options_set_tls_server_name( Dartsec_protocol_options_t options, @@ -35124,14 +35333,17 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_tls_server_namePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_options_t, ffi.Pointer)>>( - 'sec_protocol_options_set_tls_server_name'); + late final _sec_protocol_options_set_tls_server_namePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_options_t, ffi.Pointer) + > + >('sec_protocol_options_set_tls_server_name'); late final _sec_protocol_options_set_tls_server_name = - _sec_protocol_options_set_tls_server_namePtr.asFunction< - void Function(sec_protocol_options_t, ffi.Pointer)>(); + _sec_protocol_options_set_tls_server_namePtr + .asFunction< + void Function(sec_protocol_options_t, ffi.Pointer) + >(); void sec_protocol_options_set_tls_diffie_hellman_parameters( Dartsec_protocol_options_t options, @@ -35145,9 +35357,10 @@ class NativeCupertinoHttp { late final _sec_protocol_options_set_tls_diffie_hellman_parametersPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, dispatch_data_t)>>( - 'sec_protocol_options_set_tls_diffie_hellman_parameters'); + ffi.NativeFunction< + ffi.Void Function(sec_protocol_options_t, dispatch_data_t) + > + >('sec_protocol_options_set_tls_diffie_hellman_parameters'); late final _sec_protocol_options_set_tls_diffie_hellman_parameters = _sec_protocol_options_set_tls_diffie_hellman_parametersPtr .asFunction(); @@ -35164,14 +35377,25 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_add_pre_shared_keyPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, dispatch_data_t, - dispatch_data_t)>>('sec_protocol_options_add_pre_shared_key'); + late final _sec_protocol_options_add_pre_shared_keyPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_options_t, + dispatch_data_t, + dispatch_data_t, + ) + > + >('sec_protocol_options_add_pre_shared_key'); late final _sec_protocol_options_add_pre_shared_key = - _sec_protocol_options_add_pre_shared_keyPtr.asFunction< - void Function( - sec_protocol_options_t, dispatch_data_t, dispatch_data_t)>(); + _sec_protocol_options_add_pre_shared_keyPtr + .asFunction< + void Function( + sec_protocol_options_t, + dispatch_data_t, + dispatch_data_t, + ) + >(); void sec_protocol_options_set_tls_pre_shared_key_identity_hint( Dartsec_protocol_options_t options, @@ -35185,9 +35409,10 @@ class NativeCupertinoHttp { late final _sec_protocol_options_set_tls_pre_shared_key_identity_hintPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, dispatch_data_t)>>( - 'sec_protocol_options_set_tls_pre_shared_key_identity_hint'); + ffi.NativeFunction< + ffi.Void Function(sec_protocol_options_t, dispatch_data_t) + > + >('sec_protocol_options_set_tls_pre_shared_key_identity_hint'); late final _sec_protocol_options_set_tls_pre_shared_key_identity_hint = _sec_protocol_options_set_tls_pre_shared_key_identity_hintPtr .asFunction(); @@ -35206,16 +35431,23 @@ class NativeCupertinoHttp { late final _sec_protocol_options_set_pre_shared_key_selection_blockPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_options_t, - sec_protocol_pre_shared_key_selection_t, - dispatch_queue_t)>>( - 'sec_protocol_options_set_pre_shared_key_selection_block'); + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_options_t, + sec_protocol_pre_shared_key_selection_t, + dispatch_queue_t, + ) + > + >('sec_protocol_options_set_pre_shared_key_selection_block'); late final _sec_protocol_options_set_pre_shared_key_selection_block = - _sec_protocol_options_set_pre_shared_key_selection_blockPtr.asFunction< - void Function(sec_protocol_options_t, - sec_protocol_pre_shared_key_selection_t, dispatch_queue_t)>(); + _sec_protocol_options_set_pre_shared_key_selection_blockPtr + .asFunction< + void Function( + sec_protocol_options_t, + sec_protocol_pre_shared_key_selection_t, + dispatch_queue_t, + ) + >(); void sec_protocol_options_set_tls_tickets_enabled( Dartsec_protocol_options_t options, @@ -35227,10 +35459,10 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_tls_tickets_enabledPtr = _lookup< - ffi - .NativeFunction>( - 'sec_protocol_options_set_tls_tickets_enabled'); + late final _sec_protocol_options_set_tls_tickets_enabledPtr = + _lookup< + ffi.NativeFunction + >('sec_protocol_options_set_tls_tickets_enabled'); late final _sec_protocol_options_set_tls_tickets_enabled = _sec_protocol_options_set_tls_tickets_enabledPtr .asFunction(); @@ -35245,10 +35477,10 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_tls_is_fallback_attemptPtr = _lookup< - ffi - .NativeFunction>( - 'sec_protocol_options_set_tls_is_fallback_attempt'); + late final _sec_protocol_options_set_tls_is_fallback_attemptPtr = + _lookup< + ffi.NativeFunction + >('sec_protocol_options_set_tls_is_fallback_attempt'); late final _sec_protocol_options_set_tls_is_fallback_attempt = _sec_protocol_options_set_tls_is_fallback_attemptPtr .asFunction(); @@ -35263,10 +35495,10 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_tls_resumption_enabledPtr = _lookup< - ffi - .NativeFunction>( - 'sec_protocol_options_set_tls_resumption_enabled'); + late final _sec_protocol_options_set_tls_resumption_enabledPtr = + _lookup< + ffi.NativeFunction + >('sec_protocol_options_set_tls_resumption_enabled'); late final _sec_protocol_options_set_tls_resumption_enabled = _sec_protocol_options_set_tls_resumption_enabledPtr .asFunction(); @@ -35281,10 +35513,10 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_tls_false_start_enabledPtr = _lookup< - ffi - .NativeFunction>( - 'sec_protocol_options_set_tls_false_start_enabled'); + late final _sec_protocol_options_set_tls_false_start_enabledPtr = + _lookup< + ffi.NativeFunction + >('sec_protocol_options_set_tls_false_start_enabled'); late final _sec_protocol_options_set_tls_false_start_enabled = _sec_protocol_options_set_tls_false_start_enabledPtr .asFunction(); @@ -35299,10 +35531,10 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_tls_ocsp_enabledPtr = _lookup< - ffi - .NativeFunction>( - 'sec_protocol_options_set_tls_ocsp_enabled'); + late final _sec_protocol_options_set_tls_ocsp_enabledPtr = + _lookup< + ffi.NativeFunction + >('sec_protocol_options_set_tls_ocsp_enabled'); late final _sec_protocol_options_set_tls_ocsp_enabled = _sec_protocol_options_set_tls_ocsp_enabledPtr .asFunction(); @@ -35317,10 +35549,10 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_tls_sct_enabledPtr = _lookup< - ffi - .NativeFunction>( - 'sec_protocol_options_set_tls_sct_enabled'); + late final _sec_protocol_options_set_tls_sct_enabledPtr = + _lookup< + ffi.NativeFunction + >('sec_protocol_options_set_tls_sct_enabled'); late final _sec_protocol_options_set_tls_sct_enabled = _sec_protocol_options_set_tls_sct_enabledPtr .asFunction(); @@ -35335,10 +35567,10 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_tls_renegotiation_enabledPtr = _lookup< - ffi - .NativeFunction>( - 'sec_protocol_options_set_tls_renegotiation_enabled'); + late final _sec_protocol_options_set_tls_renegotiation_enabledPtr = + _lookup< + ffi.NativeFunction + >('sec_protocol_options_set_tls_renegotiation_enabled'); late final _sec_protocol_options_set_tls_renegotiation_enabled = _sec_protocol_options_set_tls_renegotiation_enabledPtr .asFunction(); @@ -35355,9 +35587,8 @@ class NativeCupertinoHttp { late final _sec_protocol_options_set_peer_authentication_requiredPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, ffi.Bool)>>( - 'sec_protocol_options_set_peer_authentication_required'); + ffi.NativeFunction + >('sec_protocol_options_set_peer_authentication_required'); late final _sec_protocol_options_set_peer_authentication_required = _sec_protocol_options_set_peer_authentication_requiredPtr .asFunction(); @@ -35374,9 +35605,8 @@ class NativeCupertinoHttp { late final _sec_protocol_options_set_peer_authentication_optionalPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, ffi.Bool)>>( - 'sec_protocol_options_set_peer_authentication_optional'); + ffi.NativeFunction + >('sec_protocol_options_set_peer_authentication_optional'); late final _sec_protocol_options_set_peer_authentication_optional = _sec_protocol_options_set_peer_authentication_optionalPtr .asFunction(); @@ -35393,9 +35623,8 @@ class NativeCupertinoHttp { late final _sec_protocol_options_set_enable_encrypted_client_helloPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, ffi.Bool)>>( - 'sec_protocol_options_set_enable_encrypted_client_hello'); + ffi.NativeFunction + >('sec_protocol_options_set_enable_encrypted_client_hello'); late final _sec_protocol_options_set_enable_encrypted_client_hello = _sec_protocol_options_set_enable_encrypted_client_helloPtr .asFunction(); @@ -35410,10 +35639,10 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_quic_use_legacy_codepointPtr = _lookup< - ffi - .NativeFunction>( - 'sec_protocol_options_set_quic_use_legacy_codepoint'); + late final _sec_protocol_options_set_quic_use_legacy_codepointPtr = + _lookup< + ffi.NativeFunction + >('sec_protocol_options_set_quic_use_legacy_codepoint'); late final _sec_protocol_options_set_quic_use_legacy_codepoint = _sec_protocol_options_set_quic_use_legacy_codepointPtr .asFunction(); @@ -35430,14 +35659,25 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_key_update_blockPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, sec_protocol_key_update_t, - dispatch_queue_t)>>('sec_protocol_options_set_key_update_block'); + late final _sec_protocol_options_set_key_update_blockPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_options_t, + sec_protocol_key_update_t, + dispatch_queue_t, + ) + > + >('sec_protocol_options_set_key_update_block'); late final _sec_protocol_options_set_key_update_block = - _sec_protocol_options_set_key_update_blockPtr.asFunction< - void Function(sec_protocol_options_t, sec_protocol_key_update_t, - dispatch_queue_t)>(); + _sec_protocol_options_set_key_update_blockPtr + .asFunction< + void Function( + sec_protocol_options_t, + sec_protocol_key_update_t, + dispatch_queue_t, + ) + >(); void sec_protocol_options_set_challenge_block( Dartsec_protocol_options_t options, @@ -35451,14 +35691,25 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_challenge_blockPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, sec_protocol_challenge_t, - dispatch_queue_t)>>('sec_protocol_options_set_challenge_block'); + late final _sec_protocol_options_set_challenge_blockPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_options_t, + sec_protocol_challenge_t, + dispatch_queue_t, + ) + > + >('sec_protocol_options_set_challenge_block'); late final _sec_protocol_options_set_challenge_block = - _sec_protocol_options_set_challenge_blockPtr.asFunction< - void Function(sec_protocol_options_t, sec_protocol_challenge_t, - dispatch_queue_t)>(); + _sec_protocol_options_set_challenge_blockPtr + .asFunction< + void Function( + sec_protocol_options_t, + sec_protocol_challenge_t, + dispatch_queue_t, + ) + >(); void sec_protocol_options_set_verify_block( Dartsec_protocol_options_t options, @@ -35472,14 +35723,25 @@ class NativeCupertinoHttp { ); } - late final _sec_protocol_options_set_verify_blockPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_options_t, sec_protocol_verify_t, - dispatch_queue_t)>>('sec_protocol_options_set_verify_block'); + late final _sec_protocol_options_set_verify_blockPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_options_t, + sec_protocol_verify_t, + dispatch_queue_t, + ) + > + >('sec_protocol_options_set_verify_block'); late final _sec_protocol_options_set_verify_block = - _sec_protocol_options_set_verify_blockPtr.asFunction< - void Function(sec_protocol_options_t, sec_protocol_verify_t, - dispatch_queue_t)>(); + _sec_protocol_options_set_verify_blockPtr + .asFunction< + void Function( + sec_protocol_options_t, + sec_protocol_verify_t, + dispatch_queue_t, + ) + >(); late final ffi.Pointer _kSSLSessionConfig_default = _lookup('kSSLSessionConfig_default'); @@ -35600,48 +35862,47 @@ class NativeCupertinoHttp { SSLProtocolSide protocolSide, SSLConnectionType connectionType, ) { - return _SSLCreateContext( - alloc, - protocolSide.value, - connectionType.value, - ); - } - - late final _SSLCreateContextPtr = _lookup< - ffi.NativeFunction< - SSLContextRef Function(CFAllocatorRef, ffi.UnsignedInt, - ffi.UnsignedInt)>>('SSLCreateContext'); - late final _SSLCreateContext = _SSLCreateContextPtr.asFunction< - SSLContextRef Function(CFAllocatorRef, int, int)>(); - - int SSLNewContext( - int isServer, - ffi.Pointer contextPtr, - ) { - return _SSLNewContext( - isServer, - contextPtr, - ); + return _SSLCreateContext(alloc, protocolSide.value, connectionType.value); } - late final _SSLNewContextPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - Boolean, ffi.Pointer)>>('SSLNewContext'); - late final _SSLNewContext = _SSLNewContextPtr.asFunction< - int Function(int, ffi.Pointer)>(); + late final _SSLCreateContextPtr = + _lookup< + ffi.NativeFunction< + SSLContextRef Function( + CFAllocatorRef, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + >('SSLCreateContext'); + late final _SSLCreateContext = + _SSLCreateContextPtr.asFunction< + SSLContextRef Function(CFAllocatorRef, int, int) + >(); + + int SSLNewContext(int isServer, ffi.Pointer contextPtr) { + return _SSLNewContext(isServer, contextPtr); + } + + late final _SSLNewContextPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(Boolean, ffi.Pointer) + > + >('SSLNewContext'); + late final _SSLNewContext = + _SSLNewContextPtr.asFunction< + int Function(int, ffi.Pointer) + >(); - int SSLDisposeContext( - SSLContextRef context, - ) { - return _SSLDisposeContext( - context, - ); + int SSLDisposeContext(SSLContextRef context) { + return _SSLDisposeContext(context); } late final _SSLDisposeContextPtr = _lookup>( - 'SSLDisposeContext'); + 'SSLDisposeContext', + ); late final _SSLDisposeContext = _SSLDisposeContextPtr.asFunction(); @@ -35649,212 +35910,212 @@ class NativeCupertinoHttp { SSLContextRef context, ffi.Pointer state, ) { - return _SSLGetSessionState( - context, - state, - ); + return _SSLGetSessionState(context, state); } - late final _SSLGetSessionStatePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetSessionState'); - late final _SSLGetSessionState = _SSLGetSessionStatePtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + late final _SSLGetSessionStatePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetSessionState'); + late final _SSLGetSessionState = + _SSLGetSessionStatePtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); DartSInt32 SSLSetSessionOption( SSLContextRef context, SSLSessionOption option, DartBoolean value, ) { - return _SSLSetSessionOption( - context, - option.value, - value, - ); + return _SSLSetSessionOption(context, option.value, value); } - late final _SSLSetSessionOptionPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SSLContextRef, ffi.UnsignedInt, Boolean)>>('SSLSetSessionOption'); - late final _SSLSetSessionOption = _SSLSetSessionOptionPtr.asFunction< - int Function(SSLContextRef, int, int)>(); + late final _SSLSetSessionOptionPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.UnsignedInt, Boolean) + > + >('SSLSetSessionOption'); + late final _SSLSetSessionOption = + _SSLSetSessionOptionPtr.asFunction< + int Function(SSLContextRef, int, int) + >(); DartSInt32 SSLGetSessionOption( SSLContextRef context, SSLSessionOption option, ffi.Pointer value, ) { - return _SSLGetSessionOption( - context, - option.value, - value, - ); + return _SSLGetSessionOption(context, option.value, value); } - late final _SSLGetSessionOptionPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.UnsignedInt, - ffi.Pointer)>>('SSLGetSessionOption'); - late final _SSLGetSessionOption = _SSLGetSessionOptionPtr.asFunction< - int Function(SSLContextRef, int, ffi.Pointer)>(); + late final _SSLGetSessionOptionPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SSLContextRef, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('SSLGetSessionOption'); + late final _SSLGetSessionOption = + _SSLGetSessionOptionPtr.asFunction< + int Function(SSLContextRef, int, ffi.Pointer) + >(); int SSLSetIOFuncs( SSLContextRef context, SSLReadFunc readFunc, SSLWriteFunc writeFunc, ) { - return _SSLSetIOFuncs( - context, - readFunc, - writeFunc, - ); + return _SSLSetIOFuncs(context, readFunc, writeFunc); } - late final _SSLSetIOFuncsPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SSLContextRef, SSLReadFunc, SSLWriteFunc)>>('SSLSetIOFuncs'); - late final _SSLSetIOFuncs = _SSLSetIOFuncsPtr.asFunction< - int Function(SSLContextRef, SSLReadFunc, SSLWriteFunc)>(); + late final _SSLSetIOFuncsPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, SSLReadFunc, SSLWriteFunc) + > + >('SSLSetIOFuncs'); + late final _SSLSetIOFuncs = + _SSLSetIOFuncsPtr.asFunction< + int Function(SSLContextRef, SSLReadFunc, SSLWriteFunc) + >(); - int SSLSetSessionConfig( - SSLContextRef context, - CFStringRef config, - ) { - return _SSLSetSessionConfig( - context, - config, - ); + int SSLSetSessionConfig(SSLContextRef context, CFStringRef config) { + return _SSLSetSessionConfig(context, config); } - late final _SSLSetSessionConfigPtr = _lookup< - ffi.NativeFunction>( - 'SSLSetSessionConfig'); - late final _SSLSetSessionConfig = _SSLSetSessionConfigPtr.asFunction< - int Function(SSLContextRef, CFStringRef)>(); + late final _SSLSetSessionConfigPtr = + _lookup< + ffi.NativeFunction + >('SSLSetSessionConfig'); + late final _SSLSetSessionConfig = + _SSLSetSessionConfigPtr.asFunction< + int Function(SSLContextRef, CFStringRef) + >(); DartSInt32 SSLSetProtocolVersionMin( SSLContextRef context, SSLProtocol minVersion, ) { - return _SSLSetProtocolVersionMin( - context, - minVersion.value, - ); + return _SSLSetProtocolVersionMin(context, minVersion.value); } - late final _SSLSetProtocolVersionMinPtr = _lookup< - ffi - .NativeFunction>( - 'SSLSetProtocolVersionMin'); - late final _SSLSetProtocolVersionMin = _SSLSetProtocolVersionMinPtr - .asFunction(); + late final _SSLSetProtocolVersionMinPtr = + _lookup< + ffi.NativeFunction + >('SSLSetProtocolVersionMin'); + late final _SSLSetProtocolVersionMin = + _SSLSetProtocolVersionMinPtr.asFunction< + int Function(SSLContextRef, int) + >(); int SSLGetProtocolVersionMin( SSLContextRef context, ffi.Pointer minVersion, ) { - return _SSLGetProtocolVersionMin( - context, - minVersion, - ); + return _SSLGetProtocolVersionMin(context, minVersion); } - late final _SSLGetProtocolVersionMinPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetProtocolVersionMin'); - late final _SSLGetProtocolVersionMin = _SSLGetProtocolVersionMinPtr - .asFunction)>(); + late final _SSLGetProtocolVersionMinPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetProtocolVersionMin'); + late final _SSLGetProtocolVersionMin = + _SSLGetProtocolVersionMinPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); DartSInt32 SSLSetProtocolVersionMax( SSLContextRef context, SSLProtocol maxVersion, ) { - return _SSLSetProtocolVersionMax( - context, - maxVersion.value, - ); + return _SSLSetProtocolVersionMax(context, maxVersion.value); } - late final _SSLSetProtocolVersionMaxPtr = _lookup< - ffi - .NativeFunction>( - 'SSLSetProtocolVersionMax'); - late final _SSLSetProtocolVersionMax = _SSLSetProtocolVersionMaxPtr - .asFunction(); + late final _SSLSetProtocolVersionMaxPtr = + _lookup< + ffi.NativeFunction + >('SSLSetProtocolVersionMax'); + late final _SSLSetProtocolVersionMax = + _SSLSetProtocolVersionMaxPtr.asFunction< + int Function(SSLContextRef, int) + >(); int SSLGetProtocolVersionMax( SSLContextRef context, ffi.Pointer maxVersion, ) { - return _SSLGetProtocolVersionMax( - context, - maxVersion, - ); + return _SSLGetProtocolVersionMax(context, maxVersion); } - late final _SSLGetProtocolVersionMaxPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetProtocolVersionMax'); - late final _SSLGetProtocolVersionMax = _SSLGetProtocolVersionMaxPtr - .asFunction)>(); + late final _SSLGetProtocolVersionMaxPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetProtocolVersionMax'); + late final _SSLGetProtocolVersionMax = + _SSLGetProtocolVersionMaxPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); DartSInt32 SSLSetProtocolVersionEnabled( SSLContextRef context, SSLProtocol protocol, DartBoolean enable, ) { - return _SSLSetProtocolVersionEnabled( - context, - protocol.value, - enable, - ); + return _SSLSetProtocolVersionEnabled(context, protocol.value, enable); } - late final _SSLSetProtocolVersionEnabledPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.UnsignedInt, - Boolean)>>('SSLSetProtocolVersionEnabled'); - late final _SSLSetProtocolVersionEnabled = _SSLSetProtocolVersionEnabledPtr - .asFunction(); + late final _SSLSetProtocolVersionEnabledPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.UnsignedInt, Boolean) + > + >('SSLSetProtocolVersionEnabled'); + late final _SSLSetProtocolVersionEnabled = + _SSLSetProtocolVersionEnabledPtr.asFunction< + int Function(SSLContextRef, int, int) + >(); DartSInt32 SSLGetProtocolVersionEnabled( SSLContextRef context, SSLProtocol protocol, ffi.Pointer enable, ) { - return _SSLGetProtocolVersionEnabled( - context, - protocol.value, - enable, - ); - } - - late final _SSLGetProtocolVersionEnabledPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.UnsignedInt, - ffi.Pointer)>>('SSLGetProtocolVersionEnabled'); - late final _SSLGetProtocolVersionEnabled = _SSLGetProtocolVersionEnabledPtr - .asFunction)>(); - - DartSInt32 SSLSetProtocolVersion( - SSLContextRef context, - SSLProtocol version, - ) { - return _SSLSetProtocolVersion( - context, - version.value, - ); + return _SSLGetProtocolVersionEnabled(context, protocol.value, enable); } - late final _SSLSetProtocolVersionPtr = _lookup< - ffi - .NativeFunction>( - 'SSLSetProtocolVersion'); + late final _SSLGetProtocolVersionEnabledPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SSLContextRef, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('SSLGetProtocolVersionEnabled'); + late final _SSLGetProtocolVersionEnabled = + _SSLGetProtocolVersionEnabledPtr.asFunction< + int Function(SSLContextRef, int, ffi.Pointer) + >(); + + DartSInt32 SSLSetProtocolVersion(SSLContextRef context, SSLProtocol version) { + return _SSLSetProtocolVersion(context, version.value); + } + + late final _SSLSetProtocolVersionPtr = + _lookup< + ffi.NativeFunction + >('SSLSetProtocolVersion'); late final _SSLSetProtocolVersion = _SSLSetProtocolVersionPtr.asFunction(); @@ -35862,356 +36123,375 @@ class NativeCupertinoHttp { SSLContextRef context, ffi.Pointer protocol, ) { - return _SSLGetProtocolVersion( - context, - protocol, - ); + return _SSLGetProtocolVersion(context, protocol); } - late final _SSLGetProtocolVersionPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetProtocolVersion'); - late final _SSLGetProtocolVersion = _SSLGetProtocolVersionPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + late final _SSLGetProtocolVersionPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetProtocolVersion'); + late final _SSLGetProtocolVersion = + _SSLGetProtocolVersionPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); - int SSLSetCertificate( - SSLContextRef context, - CFArrayRef certRefs, - ) { - return _SSLSetCertificate( - context, - certRefs, - ); + int SSLSetCertificate(SSLContextRef context, CFArrayRef certRefs) { + return _SSLSetCertificate(context, certRefs); } late final _SSLSetCertificatePtr = _lookup>( - 'SSLSetCertificate'); - late final _SSLSetCertificate = _SSLSetCertificatePtr.asFunction< - int Function(SSLContextRef, CFArrayRef)>(); + 'SSLSetCertificate', + ); + late final _SSLSetCertificate = + _SSLSetCertificatePtr.asFunction< + int Function(SSLContextRef, CFArrayRef) + >(); - int SSLSetConnection( - SSLContextRef context, - SSLConnectionRef connection, - ) { - return _SSLSetConnection( - context, - connection, - ); + int SSLSetConnection(SSLContextRef context, SSLConnectionRef connection) { + return _SSLSetConnection(context, connection); } - late final _SSLSetConnectionPtr = _lookup< - ffi - .NativeFunction>( - 'SSLSetConnection'); - late final _SSLSetConnection = _SSLSetConnectionPtr.asFunction< - int Function(SSLContextRef, SSLConnectionRef)>(); + late final _SSLSetConnectionPtr = + _lookup< + ffi.NativeFunction + >('SSLSetConnection'); + late final _SSLSetConnection = + _SSLSetConnectionPtr.asFunction< + int Function(SSLContextRef, SSLConnectionRef) + >(); int SSLGetConnection( SSLContextRef context, ffi.Pointer connection, ) { - return _SSLGetConnection( - context, - connection, - ); + return _SSLGetConnection(context, connection); } - late final _SSLGetConnectionPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetConnection'); - late final _SSLGetConnection = _SSLGetConnectionPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + late final _SSLGetConnectionPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetConnection'); + late final _SSLGetConnection = + _SSLGetConnectionPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLSetPeerDomainName( SSLContextRef context, ffi.Pointer peerName, int peerNameLen, ) { - return _SSLSetPeerDomainName( - context, - peerName, - peerNameLen, - ); + return _SSLSetPeerDomainName(context, peerName, peerNameLen); } - late final _SSLSetPeerDomainNamePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer, - ffi.Size)>>('SSLSetPeerDomainName'); - late final _SSLSetPeerDomainName = _SSLSetPeerDomainNamePtr.asFunction< - int Function(SSLContextRef, ffi.Pointer, int)>(); + late final _SSLSetPeerDomainNamePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Size) + > + >('SSLSetPeerDomainName'); + late final _SSLSetPeerDomainName = + _SSLSetPeerDomainNamePtr.asFunction< + int Function(SSLContextRef, ffi.Pointer, int) + >(); int SSLGetPeerDomainNameLength( SSLContextRef context, ffi.Pointer peerNameLen, ) { - return _SSLGetPeerDomainNameLength( - context, - peerNameLen, - ); + return _SSLGetPeerDomainNameLength(context, peerNameLen); } - late final _SSLGetPeerDomainNameLengthPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetPeerDomainNameLength'); - late final _SSLGetPeerDomainNameLength = _SSLGetPeerDomainNameLengthPtr - .asFunction)>(); + late final _SSLGetPeerDomainNameLengthPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetPeerDomainNameLength'); + late final _SSLGetPeerDomainNameLength = + _SSLGetPeerDomainNameLengthPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLGetPeerDomainName( SSLContextRef context, ffi.Pointer peerName, ffi.Pointer peerNameLen, ) { - return _SSLGetPeerDomainName( - context, - peerName, - peerNameLen, - ); + return _SSLGetPeerDomainName(context, peerName, peerNameLen); } - late final _SSLGetPeerDomainNamePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer, - ffi.Pointer)>>('SSLGetPeerDomainName'); - late final _SSLGetPeerDomainName = _SSLGetPeerDomainNamePtr.asFunction< - int Function( - SSLContextRef, ffi.Pointer, ffi.Pointer)>(); + late final _SSLGetPeerDomainNamePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('SSLGetPeerDomainName'); + late final _SSLGetPeerDomainName = + _SSLGetPeerDomainNamePtr.asFunction< + int Function( + SSLContextRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); int SSLCopyRequestedPeerNameLength( SSLContextRef ctx, ffi.Pointer peerNameLen, ) { - return _SSLCopyRequestedPeerNameLength( - ctx, - peerNameLen, - ); + return _SSLCopyRequestedPeerNameLength(ctx, peerNameLen); } - late final _SSLCopyRequestedPeerNameLengthPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLCopyRequestedPeerNameLength'); + late final _SSLCopyRequestedPeerNameLengthPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLCopyRequestedPeerNameLength'); late final _SSLCopyRequestedPeerNameLength = _SSLCopyRequestedPeerNameLengthPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLCopyRequestedPeerName( SSLContextRef context, ffi.Pointer peerName, ffi.Pointer peerNameLen, ) { - return _SSLCopyRequestedPeerName( - context, - peerName, - peerNameLen, - ); + return _SSLCopyRequestedPeerName(context, peerName, peerNameLen); } - late final _SSLCopyRequestedPeerNamePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer, - ffi.Pointer)>>('SSLCopyRequestedPeerName'); + late final _SSLCopyRequestedPeerNamePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('SSLCopyRequestedPeerName'); late final _SSLCopyRequestedPeerName = _SSLCopyRequestedPeerNamePtr.asFunction< - int Function( - SSLContextRef, ffi.Pointer, ffi.Pointer)>(); + int Function( + SSLContextRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); int SSLSetDatagramHelloCookie( SSLContextRef dtlsContext, ffi.Pointer cookie, int cookieLen, ) { - return _SSLSetDatagramHelloCookie( - dtlsContext, - cookie, - cookieLen, - ); + return _SSLSetDatagramHelloCookie(dtlsContext, cookie, cookieLen); } - late final _SSLSetDatagramHelloCookiePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer, - ffi.Size)>>('SSLSetDatagramHelloCookie'); - late final _SSLSetDatagramHelloCookie = _SSLSetDatagramHelloCookiePtr - .asFunction, int)>(); + late final _SSLSetDatagramHelloCookiePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Size) + > + >('SSLSetDatagramHelloCookie'); + late final _SSLSetDatagramHelloCookie = + _SSLSetDatagramHelloCookiePtr.asFunction< + int Function(SSLContextRef, ffi.Pointer, int) + >(); - int SSLSetMaxDatagramRecordSize( - SSLContextRef dtlsContext, - int maxSize, - ) { - return _SSLSetMaxDatagramRecordSize( - dtlsContext, - maxSize, - ); + int SSLSetMaxDatagramRecordSize(SSLContextRef dtlsContext, int maxSize) { + return _SSLSetMaxDatagramRecordSize(dtlsContext, maxSize); } late final _SSLSetMaxDatagramRecordSizePtr = _lookup>( - 'SSLSetMaxDatagramRecordSize'); - late final _SSLSetMaxDatagramRecordSize = _SSLSetMaxDatagramRecordSizePtr - .asFunction(); + 'SSLSetMaxDatagramRecordSize', + ); + late final _SSLSetMaxDatagramRecordSize = + _SSLSetMaxDatagramRecordSizePtr.asFunction< + int Function(SSLContextRef, int) + >(); int SSLGetMaxDatagramRecordSize( SSLContextRef dtlsContext, ffi.Pointer maxSize, ) { - return _SSLGetMaxDatagramRecordSize( - dtlsContext, - maxSize, - ); + return _SSLGetMaxDatagramRecordSize(dtlsContext, maxSize); } - late final _SSLGetMaxDatagramRecordSizePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetMaxDatagramRecordSize'); - late final _SSLGetMaxDatagramRecordSize = _SSLGetMaxDatagramRecordSizePtr - .asFunction)>(); + late final _SSLGetMaxDatagramRecordSizePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetMaxDatagramRecordSize'); + late final _SSLGetMaxDatagramRecordSize = + _SSLGetMaxDatagramRecordSizePtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLGetNegotiatedProtocolVersion( SSLContextRef context, ffi.Pointer protocol, ) { - return _SSLGetNegotiatedProtocolVersion( - context, - protocol, - ); + return _SSLGetNegotiatedProtocolVersion(context, protocol); } - late final _SSLGetNegotiatedProtocolVersionPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer)>>( - 'SSLGetNegotiatedProtocolVersion'); + late final _SSLGetNegotiatedProtocolVersionPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetNegotiatedProtocolVersion'); late final _SSLGetNegotiatedProtocolVersion = _SSLGetNegotiatedProtocolVersionPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLGetNumberSupportedCiphers( SSLContextRef context, ffi.Pointer numCiphers, ) { - return _SSLGetNumberSupportedCiphers( - context, - numCiphers, - ); + return _SSLGetNumberSupportedCiphers(context, numCiphers); } - late final _SSLGetNumberSupportedCiphersPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetNumberSupportedCiphers'); - late final _SSLGetNumberSupportedCiphers = _SSLGetNumberSupportedCiphersPtr - .asFunction)>(); + late final _SSLGetNumberSupportedCiphersPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetNumberSupportedCiphers'); + late final _SSLGetNumberSupportedCiphers = + _SSLGetNumberSupportedCiphersPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLGetSupportedCiphers( SSLContextRef context, ffi.Pointer ciphers, ffi.Pointer numCiphers, ) { - return _SSLGetSupportedCiphers( - context, - ciphers, - numCiphers, - ); + return _SSLGetSupportedCiphers(context, ciphers, numCiphers); } - late final _SSLGetSupportedCiphersPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer, - ffi.Pointer)>>('SSLGetSupportedCiphers'); - late final _SSLGetSupportedCiphers = _SSLGetSupportedCiphersPtr.asFunction< - int Function( - SSLContextRef, ffi.Pointer, ffi.Pointer)>(); + late final _SSLGetSupportedCiphersPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('SSLGetSupportedCiphers'); + late final _SSLGetSupportedCiphers = + _SSLGetSupportedCiphersPtr.asFunction< + int Function( + SSLContextRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); int SSLGetNumberEnabledCiphers( SSLContextRef context, ffi.Pointer numCiphers, ) { - return _SSLGetNumberEnabledCiphers( - context, - numCiphers, - ); + return _SSLGetNumberEnabledCiphers(context, numCiphers); } - late final _SSLGetNumberEnabledCiphersPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetNumberEnabledCiphers'); - late final _SSLGetNumberEnabledCiphers = _SSLGetNumberEnabledCiphersPtr - .asFunction)>(); + late final _SSLGetNumberEnabledCiphersPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetNumberEnabledCiphers'); + late final _SSLGetNumberEnabledCiphers = + _SSLGetNumberEnabledCiphersPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLSetEnabledCiphers( SSLContextRef context, ffi.Pointer ciphers, int numCiphers, ) { - return _SSLSetEnabledCiphers( - context, - ciphers, - numCiphers, - ); + return _SSLSetEnabledCiphers(context, ciphers, numCiphers); } - late final _SSLSetEnabledCiphersPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer, - ffi.Size)>>('SSLSetEnabledCiphers'); - late final _SSLSetEnabledCiphers = _SSLSetEnabledCiphersPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer, int)>(); + late final _SSLSetEnabledCiphersPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Size, + ) + > + >('SSLSetEnabledCiphers'); + late final _SSLSetEnabledCiphers = + _SSLSetEnabledCiphersPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer, int) + >(); int SSLGetEnabledCiphers( SSLContextRef context, ffi.Pointer ciphers, ffi.Pointer numCiphers, ) { - return _SSLGetEnabledCiphers( - context, - ciphers, - numCiphers, - ); + return _SSLGetEnabledCiphers(context, ciphers, numCiphers); } - late final _SSLGetEnabledCiphersPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer, - ffi.Pointer)>>('SSLGetEnabledCiphers'); - late final _SSLGetEnabledCiphers = _SSLGetEnabledCiphersPtr.asFunction< - int Function( - SSLContextRef, ffi.Pointer, ffi.Pointer)>(); + late final _SSLGetEnabledCiphersPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Pointer, + ) + > + >('SSLGetEnabledCiphers'); + late final _SSLGetEnabledCiphers = + _SSLGetEnabledCiphersPtr.asFunction< + int Function( + SSLContextRef, + ffi.Pointer, + ffi.Pointer, + ) + >(); - int SSLSetSessionTicketsEnabled( - SSLContextRef context, - int enabled, - ) { - return _SSLSetSessionTicketsEnabled( - context, - enabled, - ); + int SSLSetSessionTicketsEnabled(SSLContextRef context, int enabled) { + return _SSLSetSessionTicketsEnabled(context, enabled); } late final _SSLSetSessionTicketsEnabledPtr = _lookup>( - 'SSLSetSessionTicketsEnabled'); - late final _SSLSetSessionTicketsEnabled = _SSLSetSessionTicketsEnabledPtr - .asFunction(); + 'SSLSetSessionTicketsEnabled', + ); + late final _SSLSetSessionTicketsEnabled = + _SSLSetSessionTicketsEnabledPtr.asFunction< + int Function(SSLContextRef, int) + >(); - int SSLSetEnableCertVerify( - SSLContextRef context, - int enableVerify, - ) { - return _SSLSetEnableCertVerify( - context, - enableVerify, - ); + int SSLSetEnableCertVerify(SSLContextRef context, int enableVerify) { + return _SSLSetEnableCertVerify(context, enableVerify); } late final _SSLSetEnableCertVerifyPtr = _lookup>( - 'SSLSetEnableCertVerify'); + 'SSLSetEnableCertVerify', + ); late final _SSLSetEnableCertVerify = _SSLSetEnableCertVerifyPtr.asFunction(); @@ -36219,344 +36499,333 @@ class NativeCupertinoHttp { SSLContextRef context, ffi.Pointer enableVerify, ) { - return _SSLGetEnableCertVerify( - context, - enableVerify, - ); + return _SSLGetEnableCertVerify(context, enableVerify); } - late final _SSLGetEnableCertVerifyPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SSLContextRef, ffi.Pointer)>>('SSLGetEnableCertVerify'); - late final _SSLGetEnableCertVerify = _SSLGetEnableCertVerifyPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + late final _SSLGetEnableCertVerifyPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetEnableCertVerify'); + late final _SSLGetEnableCertVerify = + _SSLGetEnableCertVerifyPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); - int SSLSetAllowsExpiredCerts( - SSLContextRef context, - int allowsExpired, - ) { - return _SSLSetAllowsExpiredCerts( - context, - allowsExpired, - ); + int SSLSetAllowsExpiredCerts(SSLContextRef context, int allowsExpired) { + return _SSLSetAllowsExpiredCerts(context, allowsExpired); } late final _SSLSetAllowsExpiredCertsPtr = _lookup>( - 'SSLSetAllowsExpiredCerts'); - late final _SSLSetAllowsExpiredCerts = _SSLSetAllowsExpiredCertsPtr - .asFunction(); + 'SSLSetAllowsExpiredCerts', + ); + late final _SSLSetAllowsExpiredCerts = + _SSLSetAllowsExpiredCertsPtr.asFunction< + int Function(SSLContextRef, int) + >(); int SSLGetAllowsExpiredCerts( SSLContextRef context, ffi.Pointer allowsExpired, ) { - return _SSLGetAllowsExpiredCerts( - context, - allowsExpired, - ); + return _SSLGetAllowsExpiredCerts(context, allowsExpired); } - late final _SSLGetAllowsExpiredCertsPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetAllowsExpiredCerts'); - late final _SSLGetAllowsExpiredCerts = _SSLGetAllowsExpiredCertsPtr - .asFunction)>(); + late final _SSLGetAllowsExpiredCertsPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetAllowsExpiredCerts'); + late final _SSLGetAllowsExpiredCerts = + _SSLGetAllowsExpiredCertsPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); - int SSLSetAllowsExpiredRoots( - SSLContextRef context, - int allowsExpired, - ) { - return _SSLSetAllowsExpiredRoots( - context, - allowsExpired, - ); + int SSLSetAllowsExpiredRoots(SSLContextRef context, int allowsExpired) { + return _SSLSetAllowsExpiredRoots(context, allowsExpired); } late final _SSLSetAllowsExpiredRootsPtr = _lookup>( - 'SSLSetAllowsExpiredRoots'); - late final _SSLSetAllowsExpiredRoots = _SSLSetAllowsExpiredRootsPtr - .asFunction(); + 'SSLSetAllowsExpiredRoots', + ); + late final _SSLSetAllowsExpiredRoots = + _SSLSetAllowsExpiredRootsPtr.asFunction< + int Function(SSLContextRef, int) + >(); int SSLGetAllowsExpiredRoots( SSLContextRef context, ffi.Pointer allowsExpired, ) { - return _SSLGetAllowsExpiredRoots( - context, - allowsExpired, - ); + return _SSLGetAllowsExpiredRoots(context, allowsExpired); } - late final _SSLGetAllowsExpiredRootsPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetAllowsExpiredRoots'); - late final _SSLGetAllowsExpiredRoots = _SSLGetAllowsExpiredRootsPtr - .asFunction)>(); + late final _SSLGetAllowsExpiredRootsPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetAllowsExpiredRoots'); + late final _SSLGetAllowsExpiredRoots = + _SSLGetAllowsExpiredRootsPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); - int SSLSetAllowsAnyRoot( - SSLContextRef context, - int anyRoot, - ) { - return _SSLSetAllowsAnyRoot( - context, - anyRoot, - ); + int SSLSetAllowsAnyRoot(SSLContextRef context, int anyRoot) { + return _SSLSetAllowsAnyRoot(context, anyRoot); } late final _SSLSetAllowsAnyRootPtr = _lookup>( - 'SSLSetAllowsAnyRoot'); + 'SSLSetAllowsAnyRoot', + ); late final _SSLSetAllowsAnyRoot = _SSLSetAllowsAnyRootPtr.asFunction(); - int SSLGetAllowsAnyRoot( - SSLContextRef context, - ffi.Pointer anyRoot, - ) { - return _SSLGetAllowsAnyRoot( - context, - anyRoot, - ); + int SSLGetAllowsAnyRoot(SSLContextRef context, ffi.Pointer anyRoot) { + return _SSLGetAllowsAnyRoot(context, anyRoot); } - late final _SSLGetAllowsAnyRootPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SSLContextRef, ffi.Pointer)>>('SSLGetAllowsAnyRoot'); - late final _SSLGetAllowsAnyRoot = _SSLGetAllowsAnyRootPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + late final _SSLGetAllowsAnyRootPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetAllowsAnyRoot'); + late final _SSLGetAllowsAnyRoot = + _SSLGetAllowsAnyRootPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLSetTrustedRoots( SSLContextRef context, CFArrayRef trustedRoots, int replaceExisting, ) { - return _SSLSetTrustedRoots( - context, - trustedRoots, - replaceExisting, - ); + return _SSLSetTrustedRoots(context, trustedRoots, replaceExisting); } - late final _SSLSetTrustedRootsPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SSLContextRef, CFArrayRef, Boolean)>>('SSLSetTrustedRoots'); - late final _SSLSetTrustedRoots = _SSLSetTrustedRootsPtr.asFunction< - int Function(SSLContextRef, CFArrayRef, int)>(); + late final _SSLSetTrustedRootsPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, CFArrayRef, Boolean) + > + >('SSLSetTrustedRoots'); + late final _SSLSetTrustedRoots = + _SSLSetTrustedRootsPtr.asFunction< + int Function(SSLContextRef, CFArrayRef, int) + >(); int SSLCopyTrustedRoots( SSLContextRef context, ffi.Pointer trustedRoots, ) { - return _SSLCopyTrustedRoots( - context, - trustedRoots, - ); + return _SSLCopyTrustedRoots(context, trustedRoots); } - late final _SSLCopyTrustedRootsPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SSLContextRef, ffi.Pointer)>>('SSLCopyTrustedRoots'); - late final _SSLCopyTrustedRoots = _SSLCopyTrustedRootsPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + late final _SSLCopyTrustedRootsPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLCopyTrustedRoots'); + late final _SSLCopyTrustedRoots = + _SSLCopyTrustedRootsPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLCopyPeerCertificates( SSLContextRef context, ffi.Pointer certs, ) { - return _SSLCopyPeerCertificates( - context, - certs, - ); + return _SSLCopyPeerCertificates(context, certs); } - late final _SSLCopyPeerCertificatesPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLCopyPeerCertificates'); - late final _SSLCopyPeerCertificates = _SSLCopyPeerCertificatesPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + late final _SSLCopyPeerCertificatesPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLCopyPeerCertificates'); + late final _SSLCopyPeerCertificates = + _SSLCopyPeerCertificatesPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); - int SSLCopyPeerTrust( - SSLContextRef context, - ffi.Pointer trust, - ) { - return _SSLCopyPeerTrust( - context, - trust, - ); + int SSLCopyPeerTrust(SSLContextRef context, ffi.Pointer trust) { + return _SSLCopyPeerTrust(context, trust); } - late final _SSLCopyPeerTrustPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SSLContextRef, ffi.Pointer)>>('SSLCopyPeerTrust'); - late final _SSLCopyPeerTrust = _SSLCopyPeerTrustPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + late final _SSLCopyPeerTrustPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLCopyPeerTrust'); + late final _SSLCopyPeerTrust = + _SSLCopyPeerTrustPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLSetPeerID( SSLContextRef context, ffi.Pointer peerID, int peerIDLen, ) { - return _SSLSetPeerID( - context, - peerID, - peerIDLen, - ); + return _SSLSetPeerID(context, peerID, peerIDLen); } - late final _SSLSetPeerIDPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SSLContextRef, ffi.Pointer, ffi.Size)>>('SSLSetPeerID'); - late final _SSLSetPeerID = _SSLSetPeerIDPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer, int)>(); + late final _SSLSetPeerIDPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Size) + > + >('SSLSetPeerID'); + late final _SSLSetPeerID = + _SSLSetPeerIDPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer, int) + >(); int SSLGetPeerID( SSLContextRef context, ffi.Pointer> peerID, ffi.Pointer peerIDLen, ) { - return _SSLGetPeerID( - context, - peerID, - peerIDLen, - ); + return _SSLGetPeerID(context, peerID, peerIDLen); } - late final _SSLGetPeerIDPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer>, - ffi.Pointer)>>('SSLGetPeerID'); - late final _SSLGetPeerID = _SSLGetPeerIDPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer>, - ffi.Pointer)>(); + late final _SSLGetPeerIDPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SSLContextRef, + ffi.Pointer>, + ffi.Pointer, + ) + > + >('SSLGetPeerID'); + late final _SSLGetPeerID = + _SSLGetPeerIDPtr.asFunction< + int Function( + SSLContextRef, + ffi.Pointer>, + ffi.Pointer, + ) + >(); int SSLGetNegotiatedCipher( SSLContextRef context, ffi.Pointer cipherSuite, ) { - return _SSLGetNegotiatedCipher( - context, - cipherSuite, - ); + return _SSLGetNegotiatedCipher(context, cipherSuite); } - late final _SSLGetNegotiatedCipherPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetNegotiatedCipher'); - late final _SSLGetNegotiatedCipher = _SSLGetNegotiatedCipherPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + late final _SSLGetNegotiatedCipherPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetNegotiatedCipher'); + late final _SSLGetNegotiatedCipher = + _SSLGetNegotiatedCipherPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); - int SSLSetALPNProtocols( - SSLContextRef context, - CFArrayRef protocols, - ) { - return _SSLSetALPNProtocols( - context, - protocols, - ); + int SSLSetALPNProtocols(SSLContextRef context, CFArrayRef protocols) { + return _SSLSetALPNProtocols(context, protocols); } late final _SSLSetALPNProtocolsPtr = _lookup>( - 'SSLSetALPNProtocols'); - late final _SSLSetALPNProtocols = _SSLSetALPNProtocolsPtr.asFunction< - int Function(SSLContextRef, CFArrayRef)>(); + 'SSLSetALPNProtocols', + ); + late final _SSLSetALPNProtocols = + _SSLSetALPNProtocolsPtr.asFunction< + int Function(SSLContextRef, CFArrayRef) + >(); int SSLCopyALPNProtocols( SSLContextRef context, ffi.Pointer protocols, ) { - return _SSLCopyALPNProtocols( - context, - protocols, - ); + return _SSLCopyALPNProtocols(context, protocols); } - late final _SSLCopyALPNProtocolsPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SSLContextRef, ffi.Pointer)>>('SSLCopyALPNProtocols'); - late final _SSLCopyALPNProtocols = _SSLCopyALPNProtocolsPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + late final _SSLCopyALPNProtocolsPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLCopyALPNProtocols'); + late final _SSLCopyALPNProtocols = + _SSLCopyALPNProtocolsPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); - int SSLSetOCSPResponse( - SSLContextRef context, - CFDataRef response, - ) { - return _SSLSetOCSPResponse( - context, - response, - ); + int SSLSetOCSPResponse(SSLContextRef context, CFDataRef response) { + return _SSLSetOCSPResponse(context, response); } late final _SSLSetOCSPResponsePtr = _lookup>( - 'SSLSetOCSPResponse'); - late final _SSLSetOCSPResponse = _SSLSetOCSPResponsePtr.asFunction< - int Function(SSLContextRef, CFDataRef)>(); + 'SSLSetOCSPResponse', + ); + late final _SSLSetOCSPResponse = + _SSLSetOCSPResponsePtr.asFunction< + int Function(SSLContextRef, CFDataRef) + >(); - int SSLSetEncryptionCertificate( - SSLContextRef context, - CFArrayRef certRefs, - ) { - return _SSLSetEncryptionCertificate( - context, - certRefs, - ); + int SSLSetEncryptionCertificate(SSLContextRef context, CFArrayRef certRefs) { + return _SSLSetEncryptionCertificate(context, certRefs); } late final _SSLSetEncryptionCertificatePtr = _lookup>( - 'SSLSetEncryptionCertificate'); - late final _SSLSetEncryptionCertificate = _SSLSetEncryptionCertificatePtr - .asFunction(); + 'SSLSetEncryptionCertificate', + ); + late final _SSLSetEncryptionCertificate = + _SSLSetEncryptionCertificatePtr.asFunction< + int Function(SSLContextRef, CFArrayRef) + >(); DartSInt32 SSLSetClientSideAuthenticate( SSLContextRef context, SSLAuthenticate auth, ) { - return _SSLSetClientSideAuthenticate( - context, - auth.value, - ); + return _SSLSetClientSideAuthenticate(context, auth.value); } - late final _SSLSetClientSideAuthenticatePtr = _lookup< - ffi - .NativeFunction>( - 'SSLSetClientSideAuthenticate'); - late final _SSLSetClientSideAuthenticate = _SSLSetClientSideAuthenticatePtr - .asFunction(); + late final _SSLSetClientSideAuthenticatePtr = + _lookup< + ffi.NativeFunction + >('SSLSetClientSideAuthenticate'); + late final _SSLSetClientSideAuthenticate = + _SSLSetClientSideAuthenticatePtr.asFunction< + int Function(SSLContextRef, int) + >(); int SSLAddDistinguishedName( SSLContextRef context, ffi.Pointer derDN, int derDNLen, ) { - return _SSLAddDistinguishedName( - context, - derDN, - derDNLen, - ); + return _SSLAddDistinguishedName(context, derDN, derDNLen); } - late final _SSLAddDistinguishedNamePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer, - ffi.Size)>>('SSLAddDistinguishedName'); - late final _SSLAddDistinguishedName = _SSLAddDistinguishedNamePtr.asFunction< - int Function(SSLContextRef, ffi.Pointer, int)>(); + late final _SSLAddDistinguishedNamePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Size) + > + >('SSLAddDistinguishedName'); + late final _SSLAddDistinguishedName = + _SSLAddDistinguishedNamePtr.asFunction< + int Function(SSLContextRef, ffi.Pointer, int) + >(); int SSLSetCertificateAuthorities( SSLContextRef context, @@ -36570,162 +36839,160 @@ class NativeCupertinoHttp { ); } - late final _SSLSetCertificateAuthoritiesPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, CFTypeRef, - Boolean)>>('SSLSetCertificateAuthorities'); - late final _SSLSetCertificateAuthorities = _SSLSetCertificateAuthoritiesPtr - .asFunction(); + late final _SSLSetCertificateAuthoritiesPtr = + _lookup< + ffi.NativeFunction + >('SSLSetCertificateAuthorities'); + late final _SSLSetCertificateAuthorities = + _SSLSetCertificateAuthoritiesPtr.asFunction< + int Function(SSLContextRef, CFTypeRef, int) + >(); int SSLCopyCertificateAuthorities( SSLContextRef context, ffi.Pointer certificates, ) { - return _SSLCopyCertificateAuthorities( - context, - certificates, - ); + return _SSLCopyCertificateAuthorities(context, certificates); } - late final _SSLCopyCertificateAuthoritiesPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLCopyCertificateAuthorities'); - late final _SSLCopyCertificateAuthorities = _SSLCopyCertificateAuthoritiesPtr - .asFunction)>(); + late final _SSLCopyCertificateAuthoritiesPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLCopyCertificateAuthorities'); + late final _SSLCopyCertificateAuthorities = + _SSLCopyCertificateAuthoritiesPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLCopyDistinguishedNames( SSLContextRef context, ffi.Pointer names, ) { - return _SSLCopyDistinguishedNames( - context, - names, - ); + return _SSLCopyDistinguishedNames(context, names); } - late final _SSLCopyDistinguishedNamesPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLCopyDistinguishedNames'); - late final _SSLCopyDistinguishedNames = _SSLCopyDistinguishedNamesPtr - .asFunction)>(); + late final _SSLCopyDistinguishedNamesPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLCopyDistinguishedNames'); + late final _SSLCopyDistinguishedNames = + _SSLCopyDistinguishedNamesPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLGetClientCertificateState( SSLContextRef context, ffi.Pointer clientState, ) { - return _SSLGetClientCertificateState( - context, - clientState, - ); + return _SSLGetClientCertificateState(context, clientState); } - late final _SSLGetClientCertificateStatePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetClientCertificateState'); - late final _SSLGetClientCertificateState = _SSLGetClientCertificateStatePtr - .asFunction)>(); + late final _SSLGetClientCertificateStatePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetClientCertificateState'); + late final _SSLGetClientCertificateState = + _SSLGetClientCertificateStatePtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLSetDiffieHellmanParams( SSLContextRef context, ffi.Pointer dhParams, int dhParamsLen, ) { - return _SSLSetDiffieHellmanParams( - context, - dhParams, - dhParamsLen, - ); + return _SSLSetDiffieHellmanParams(context, dhParams, dhParamsLen); } - late final _SSLSetDiffieHellmanParamsPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer, - ffi.Size)>>('SSLSetDiffieHellmanParams'); - late final _SSLSetDiffieHellmanParams = _SSLSetDiffieHellmanParamsPtr - .asFunction, int)>(); + late final _SSLSetDiffieHellmanParamsPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Size) + > + >('SSLSetDiffieHellmanParams'); + late final _SSLSetDiffieHellmanParams = + _SSLSetDiffieHellmanParamsPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer, int) + >(); int SSLGetDiffieHellmanParams( SSLContextRef context, ffi.Pointer> dhParams, ffi.Pointer dhParamsLen, ) { - return _SSLGetDiffieHellmanParams( - context, - dhParams, - dhParamsLen, - ); + return _SSLGetDiffieHellmanParams(context, dhParams, dhParamsLen); } - late final _SSLGetDiffieHellmanParamsPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer>, - ffi.Pointer)>>('SSLGetDiffieHellmanParams'); + late final _SSLGetDiffieHellmanParamsPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SSLContextRef, + ffi.Pointer>, + ffi.Pointer, + ) + > + >('SSLGetDiffieHellmanParams'); late final _SSLGetDiffieHellmanParams = _SSLGetDiffieHellmanParamsPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer>, - ffi.Pointer)>(); + int Function( + SSLContextRef, + ffi.Pointer>, + ffi.Pointer, + ) + >(); - int SSLSetRsaBlinding( - SSLContextRef context, - int blinding, - ) { - return _SSLSetRsaBlinding( - context, - blinding, - ); + int SSLSetRsaBlinding(SSLContextRef context, int blinding) { + return _SSLSetRsaBlinding(context, blinding); } late final _SSLSetRsaBlindingPtr = _lookup>( - 'SSLSetRsaBlinding'); + 'SSLSetRsaBlinding', + ); late final _SSLSetRsaBlinding = _SSLSetRsaBlindingPtr.asFunction(); - int SSLGetRsaBlinding( - SSLContextRef context, - ffi.Pointer blinding, - ) { - return _SSLGetRsaBlinding( - context, - blinding, - ); + int SSLGetRsaBlinding(SSLContextRef context, ffi.Pointer blinding) { + return _SSLGetRsaBlinding(context, blinding); } - late final _SSLGetRsaBlindingPtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SSLContextRef, ffi.Pointer)>>('SSLGetRsaBlinding'); - late final _SSLGetRsaBlinding = _SSLGetRsaBlindingPtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + late final _SSLGetRsaBlindingPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetRsaBlinding'); + late final _SSLGetRsaBlinding = + _SSLGetRsaBlindingPtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); - int SSLHandshake( - SSLContextRef context, - ) { - return _SSLHandshake( - context, - ); + int SSLHandshake(SSLContextRef context) { + return _SSLHandshake(context); } late final _SSLHandshakePtr = _lookup>( - 'SSLHandshake'); + 'SSLHandshake', + ); late final _SSLHandshake = _SSLHandshakePtr.asFunction(); - int SSLReHandshake( - SSLContextRef context, - ) { - return _SSLReHandshake( - context, - ); + int SSLReHandshake(SSLContextRef context) { + return _SSLReHandshake(context); } late final _SSLReHandshakePtr = _lookup>( - 'SSLReHandshake'); + 'SSLReHandshake', + ); late final _SSLReHandshake = _SSLReHandshakePtr.asFunction(); @@ -36735,21 +37002,29 @@ class NativeCupertinoHttp { int dataLength, ffi.Pointer processed, ) { - return _SSLWrite( - context, - data, - dataLength, - processed, - ); + return _SSLWrite(context, data, dataLength, processed); } - late final _SSLWritePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Size, - ffi.Pointer)>>('SSLWrite'); - late final _SSLWrite = _SSLWritePtr.asFunction< - int Function( - SSLContextRef, ffi.Pointer, int, ffi.Pointer)>(); + late final _SSLWritePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) + > + >('SSLWrite'); + late final _SSLWrite = + _SSLWritePtr.asFunction< + int Function( + SSLContextRef, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); int SSLRead( SSLContextRef context, @@ -36757,81 +37032,82 @@ class NativeCupertinoHttp { int dataLength, ffi.Pointer processed, ) { - return _SSLRead( - context, - data, - dataLength, - processed, - ); + return _SSLRead(context, data, dataLength, processed); } - late final _SSLReadPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Size, - ffi.Pointer)>>('SSLRead'); - late final _SSLRead = _SSLReadPtr.asFunction< - int Function( - SSLContextRef, ffi.Pointer, int, ffi.Pointer)>(); + late final _SSLReadPtr = + _lookup< + ffi.NativeFunction< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) + > + >('SSLRead'); + late final _SSLRead = + _SSLReadPtr.asFunction< + int Function( + SSLContextRef, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); int SSLGetBufferedReadSize( SSLContextRef context, ffi.Pointer bufferSize, ) { - return _SSLGetBufferedReadSize( - context, - bufferSize, - ); + return _SSLGetBufferedReadSize(context, bufferSize); } - late final _SSLGetBufferedReadSizePtr = _lookup< - ffi.NativeFunction< - OSStatus Function( - SSLContextRef, ffi.Pointer)>>('SSLGetBufferedReadSize'); - late final _SSLGetBufferedReadSize = _SSLGetBufferedReadSizePtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + late final _SSLGetBufferedReadSizePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetBufferedReadSize'); + late final _SSLGetBufferedReadSize = + _SSLGetBufferedReadSizePtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); int SSLGetDatagramWriteSize( SSLContextRef dtlsContext, ffi.Pointer bufSize, ) { - return _SSLGetDatagramWriteSize( - dtlsContext, - bufSize, - ); + return _SSLGetDatagramWriteSize(dtlsContext, bufSize); } - late final _SSLGetDatagramWriteSizePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(SSLContextRef, - ffi.Pointer)>>('SSLGetDatagramWriteSize'); - late final _SSLGetDatagramWriteSize = _SSLGetDatagramWriteSizePtr.asFunction< - int Function(SSLContextRef, ffi.Pointer)>(); + late final _SSLGetDatagramWriteSizePtr = + _lookup< + ffi.NativeFunction< + OSStatus Function(SSLContextRef, ffi.Pointer) + > + >('SSLGetDatagramWriteSize'); + late final _SSLGetDatagramWriteSize = + _SSLGetDatagramWriteSizePtr.asFunction< + int Function(SSLContextRef, ffi.Pointer) + >(); - int SSLClose( - SSLContextRef context, - ) { - return _SSLClose( - context, - ); + int SSLClose(SSLContextRef context) { + return _SSLClose(context); } late final _SSLClosePtr = _lookup>('SSLClose'); late final _SSLClose = _SSLClosePtr.asFunction(); - int SSLSetError( - SSLContextRef context, - int status, - ) { - return _SSLSetError( - context, - status, - ); + int SSLSetError(SSLContextRef context, int status) { + return _SSLSetError(context, status); } late final _SSLSetErrorPtr = _lookup>( - 'SSLSetError'); + 'SSLSetError', + ); late final _SSLSetError = _SSLSetErrorPtr.asFunction(); @@ -36861,179 +37137,187 @@ class NativeCupertinoHttp { /// Key in the userInfo dictionary of an NSError received during a failed download. late final ffi.Pointer> - _NSURLSessionDownloadTaskResumeData = - _lookup>( - 'NSURLSessionDownloadTaskResumeData'); + _NSURLSessionDownloadTaskResumeData = _lookup>( + 'NSURLSessionDownloadTaskResumeData', + ); objc.NSString get NSURLSessionDownloadTaskResumeData => - objc.NSString.castFromPointer(_NSURLSessionDownloadTaskResumeData.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLSessionDownloadTaskResumeData.value, + retain: true, + release: true, + ); set NSURLSessionDownloadTaskResumeData(objc.NSString value) { - objc.NSString.castFromPointer(_NSURLSessionDownloadTaskResumeData.value, - retain: false, release: true) - .ref - .release(); - _NSURLSessionDownloadTaskResumeData.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLSessionDownloadTaskResumeData.value, + retain: false, + release: true, + ).ref.release(); + _NSURLSessionDownloadTaskResumeData.value = value.ref + .retainAndReturnPointer(); } /// Key in the userInfo dictionary of an NSError received during a failed upload. late final ffi.Pointer> - _NSURLSessionUploadTaskResumeData = - _lookup>('NSURLSessionUploadTaskResumeData'); + _NSURLSessionUploadTaskResumeData = _lookup>( + 'NSURLSessionUploadTaskResumeData', + ); objc.NSString get NSURLSessionUploadTaskResumeData => - objc.NSString.castFromPointer(_NSURLSessionUploadTaskResumeData.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLSessionUploadTaskResumeData.value, + retain: true, + release: true, + ); set NSURLSessionUploadTaskResumeData(objc.NSString value) { - objc.NSString.castFromPointer(_NSURLSessionUploadTaskResumeData.value, - retain: false, release: true) - .ref - .release(); - _NSURLSessionUploadTaskResumeData.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLSessionUploadTaskResumeData.value, + retain: false, + release: true, + ).ref.release(); + _NSURLSessionUploadTaskResumeData.value = value.ref + .retainAndReturnPointer(); } - NSRange NSUnionRange( - NSRange range1, - NSRange range2, - ) { - return _NSUnionRange( - range1, - range2, - ); + NSRange NSUnionRange(NSRange range1, NSRange range2) { + return _NSUnionRange(range1, range2); } late final _NSUnionRangePtr = _lookup>( - 'NSUnionRange'); + 'NSUnionRange', + ); late final _NSUnionRange = _NSUnionRangePtr.asFunction(); - NSRange NSIntersectionRange( - NSRange range1, - NSRange range2, - ) { - return _NSIntersectionRange( - range1, - range2, - ); + NSRange NSIntersectionRange(NSRange range1, NSRange range2) { + return _NSIntersectionRange(range1, range2); } late final _NSIntersectionRangePtr = _lookup>( - 'NSIntersectionRange'); + 'NSIntersectionRange', + ); late final _NSIntersectionRange = _NSIntersectionRangePtr.asFunction(); - objc.NSString NSStringFromRange( - NSRange range, - ) { + objc.NSString NSStringFromRange(NSRange range) { return objc.NSString.castFromPointer( - _NSStringFromRange( - range, - ), - retain: true, - release: true); + _NSStringFromRange(range), + retain: true, + release: true, + ); } - late final _NSStringFromRangePtr = _lookup< - ffi.NativeFunction Function(NSRange)>>( - 'NSStringFromRange'); - late final _NSStringFromRange = _NSStringFromRangePtr.asFunction< - ffi.Pointer Function(NSRange)>(); + late final _NSStringFromRangePtr = + _lookup< + ffi.NativeFunction Function(NSRange)> + >('NSStringFromRange'); + late final _NSStringFromRange = + _NSStringFromRangePtr.asFunction< + ffi.Pointer Function(NSRange) + >(); - NSRange NSRangeFromString( - objc.NSString aString, - ) { - return _NSRangeFromString( - aString.ref.pointer, - ); + NSRange NSRangeFromString(objc.NSString aString) { + return _NSRangeFromString(aString.ref.pointer); } - late final _NSRangeFromStringPtr = _lookup< - ffi.NativeFunction)>>( - 'NSRangeFromString'); - late final _NSRangeFromString = _NSRangeFromStringPtr.asFunction< - NSRange Function(ffi.Pointer)>(); + late final _NSRangeFromStringPtr = + _lookup< + ffi.NativeFunction)> + >('NSRangeFromString'); + late final _NSRangeFromString = + _NSRangeFromStringPtr.asFunction< + NSRange Function(ffi.Pointer) + >(); late final ffi.Pointer> - _NSItemProviderPreferredImageSizeKey = - _lookup>( - 'NSItemProviderPreferredImageSizeKey'); + _NSItemProviderPreferredImageSizeKey = _lookup>( + 'NSItemProviderPreferredImageSizeKey', + ); objc.NSString get NSItemProviderPreferredImageSizeKey => - objc.NSString.castFromPointer(_NSItemProviderPreferredImageSizeKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSItemProviderPreferredImageSizeKey.value, + retain: true, + release: true, + ); set NSItemProviderPreferredImageSizeKey(objc.NSString value) { - objc.NSString.castFromPointer(_NSItemProviderPreferredImageSizeKey.value, - retain: false, release: true) - .ref - .release(); - _NSItemProviderPreferredImageSizeKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSItemProviderPreferredImageSizeKey.value, + retain: false, + release: true, + ).ref.release(); + _NSItemProviderPreferredImageSizeKey.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer> - _NSExtensionJavaScriptPreprocessingResultsKey = + _NSExtensionJavaScriptPreprocessingResultsKey = _lookup>( - 'NSExtensionJavaScriptPreprocessingResultsKey'); + 'NSExtensionJavaScriptPreprocessingResultsKey', + ); objc.NSString get NSExtensionJavaScriptPreprocessingResultsKey => objc.NSString.castFromPointer( - _NSExtensionJavaScriptPreprocessingResultsKey.value, - retain: true, - release: true); + _NSExtensionJavaScriptPreprocessingResultsKey.value, + retain: true, + release: true, + ); set NSExtensionJavaScriptPreprocessingResultsKey(objc.NSString value) { objc.NSString.castFromPointer( - _NSExtensionJavaScriptPreprocessingResultsKey.value, - retain: false, - release: true) - .ref - .release(); - _NSExtensionJavaScriptPreprocessingResultsKey.value = - value.ref.retainAndReturnPointer(); + _NSExtensionJavaScriptPreprocessingResultsKey.value, + retain: false, + release: true, + ).ref.release(); + _NSExtensionJavaScriptPreprocessingResultsKey.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer> - _NSExtensionJavaScriptFinalizeArgumentKey = + _NSExtensionJavaScriptFinalizeArgumentKey = _lookup>( - 'NSExtensionJavaScriptFinalizeArgumentKey'); + 'NSExtensionJavaScriptFinalizeArgumentKey', + ); objc.NSString get NSExtensionJavaScriptFinalizeArgumentKey => objc.NSString.castFromPointer( - _NSExtensionJavaScriptFinalizeArgumentKey.value, - retain: true, - release: true); + _NSExtensionJavaScriptFinalizeArgumentKey.value, + retain: true, + release: true, + ); set NSExtensionJavaScriptFinalizeArgumentKey(objc.NSString value) { objc.NSString.castFromPointer( - _NSExtensionJavaScriptFinalizeArgumentKey.value, - retain: false, - release: true) - .ref - .release(); - _NSExtensionJavaScriptFinalizeArgumentKey.value = - value.ref.retainAndReturnPointer(); + _NSExtensionJavaScriptFinalizeArgumentKey.value, + retain: false, + release: true, + ).ref.release(); + _NSExtensionJavaScriptFinalizeArgumentKey.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer> - _NSItemProviderErrorDomain = - _lookup>('NSItemProviderErrorDomain'); + _NSItemProviderErrorDomain = _lookup>( + 'NSItemProviderErrorDomain', + ); - objc.NSString get NSItemProviderErrorDomain => - objc.NSString.castFromPointer(_NSItemProviderErrorDomain.value, - retain: true, release: true); + objc.NSString get NSItemProviderErrorDomain => objc.NSString.castFromPointer( + _NSItemProviderErrorDomain.value, + retain: true, + release: true, + ); set NSItemProviderErrorDomain(objc.NSString value) { - objc.NSString.castFromPointer(_NSItemProviderErrorDomain.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSItemProviderErrorDomain.value, + retain: false, + release: true, + ).ref.release(); _NSItemProviderErrorDomain.value = value.ref.retainAndReturnPointer(); } @@ -37041,46 +37325,58 @@ class NativeCupertinoHttp { _lookup('NSStringTransformLatinToKatakana'); DartNSStringTransform get NSStringTransformLatinToKatakana => - objc.NSString.castFromPointer(_NSStringTransformLatinToKatakana.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformLatinToKatakana.value, + retain: true, + release: true, + ); set NSStringTransformLatinToKatakana(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformLatinToKatakana.value, - retain: false, release: true) - .ref - .release(); - _NSStringTransformLatinToKatakana.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSStringTransformLatinToKatakana.value, + retain: false, + release: true, + ).ref.release(); + _NSStringTransformLatinToKatakana.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer _NSStringTransformLatinToHiragana = _lookup('NSStringTransformLatinToHiragana'); DartNSStringTransform get NSStringTransformLatinToHiragana => - objc.NSString.castFromPointer(_NSStringTransformLatinToHiragana.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformLatinToHiragana.value, + retain: true, + release: true, + ); set NSStringTransformLatinToHiragana(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformLatinToHiragana.value, - retain: false, release: true) - .ref - .release(); - _NSStringTransformLatinToHiragana.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSStringTransformLatinToHiragana.value, + retain: false, + release: true, + ).ref.release(); + _NSStringTransformLatinToHiragana.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer _NSStringTransformLatinToHangul = _lookup('NSStringTransformLatinToHangul'); DartNSStringTransform get NSStringTransformLatinToHangul => - objc.NSString.castFromPointer(_NSStringTransformLatinToHangul.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformLatinToHangul.value, + retain: true, + release: true, + ); set NSStringTransformLatinToHangul(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformLatinToHangul.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSStringTransformLatinToHangul.value, + retain: false, + release: true, + ).ref.release(); _NSStringTransformLatinToHangul.value = value.ref.retainAndReturnPointer(); } @@ -37088,14 +37384,18 @@ class NativeCupertinoHttp { _lookup('NSStringTransformLatinToArabic'); DartNSStringTransform get NSStringTransformLatinToArabic => - objc.NSString.castFromPointer(_NSStringTransformLatinToArabic.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformLatinToArabic.value, + retain: true, + release: true, + ); set NSStringTransformLatinToArabic(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformLatinToArabic.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSStringTransformLatinToArabic.value, + retain: false, + release: true, + ).ref.release(); _NSStringTransformLatinToArabic.value = value.ref.retainAndReturnPointer(); } @@ -37103,14 +37403,18 @@ class NativeCupertinoHttp { _lookup('NSStringTransformLatinToHebrew'); DartNSStringTransform get NSStringTransformLatinToHebrew => - objc.NSString.castFromPointer(_NSStringTransformLatinToHebrew.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformLatinToHebrew.value, + retain: true, + release: true, + ); set NSStringTransformLatinToHebrew(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformLatinToHebrew.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSStringTransformLatinToHebrew.value, + retain: false, + release: true, + ).ref.release(); _NSStringTransformLatinToHebrew.value = value.ref.retainAndReturnPointer(); } @@ -37118,14 +37422,18 @@ class NativeCupertinoHttp { _lookup('NSStringTransformLatinToThai'); DartNSStringTransform get NSStringTransformLatinToThai => - objc.NSString.castFromPointer(_NSStringTransformLatinToThai.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformLatinToThai.value, + retain: true, + release: true, + ); set NSStringTransformLatinToThai(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformLatinToThai.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSStringTransformLatinToThai.value, + retain: false, + release: true, + ).ref.release(); _NSStringTransformLatinToThai.value = value.ref.retainAndReturnPointer(); } @@ -37133,30 +37441,38 @@ class NativeCupertinoHttp { _lookup('NSStringTransformLatinToCyrillic'); DartNSStringTransform get NSStringTransformLatinToCyrillic => - objc.NSString.castFromPointer(_NSStringTransformLatinToCyrillic.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformLatinToCyrillic.value, + retain: true, + release: true, + ); set NSStringTransformLatinToCyrillic(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformLatinToCyrillic.value, - retain: false, release: true) - .ref - .release(); - _NSStringTransformLatinToCyrillic.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSStringTransformLatinToCyrillic.value, + retain: false, + release: true, + ).ref.release(); + _NSStringTransformLatinToCyrillic.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer _NSStringTransformLatinToGreek = _lookup('NSStringTransformLatinToGreek'); DartNSStringTransform get NSStringTransformLatinToGreek => - objc.NSString.castFromPointer(_NSStringTransformLatinToGreek.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformLatinToGreek.value, + retain: true, + release: true, + ); set NSStringTransformLatinToGreek(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformLatinToGreek.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSStringTransformLatinToGreek.value, + retain: false, + release: true, + ).ref.release(); _NSStringTransformLatinToGreek.value = value.ref.retainAndReturnPointer(); } @@ -37164,14 +37480,18 @@ class NativeCupertinoHttp { _lookup('NSStringTransformToLatin'); DartNSStringTransform get NSStringTransformToLatin => - objc.NSString.castFromPointer(_NSStringTransformToLatin.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformToLatin.value, + retain: true, + release: true, + ); set NSStringTransformToLatin(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformToLatin.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSStringTransformToLatin.value, + retain: false, + release: true, + ).ref.release(); _NSStringTransformToLatin.value = value.ref.retainAndReturnPointer(); } @@ -37179,66 +37499,82 @@ class NativeCupertinoHttp { _lookup('NSStringTransformMandarinToLatin'); DartNSStringTransform get NSStringTransformMandarinToLatin => - objc.NSString.castFromPointer(_NSStringTransformMandarinToLatin.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformMandarinToLatin.value, + retain: true, + release: true, + ); set NSStringTransformMandarinToLatin(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformMandarinToLatin.value, - retain: false, release: true) - .ref - .release(); - _NSStringTransformMandarinToLatin.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSStringTransformMandarinToLatin.value, + retain: false, + release: true, + ).ref.release(); + _NSStringTransformMandarinToLatin.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSStringTransformHiraganaToKatakana = - _lookup('NSStringTransformHiraganaToKatakana'); + _NSStringTransformHiraganaToKatakana = _lookup( + 'NSStringTransformHiraganaToKatakana', + ); DartNSStringTransform get NSStringTransformHiraganaToKatakana => - objc.NSString.castFromPointer(_NSStringTransformHiraganaToKatakana.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformHiraganaToKatakana.value, + retain: true, + release: true, + ); set NSStringTransformHiraganaToKatakana(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformHiraganaToKatakana.value, - retain: false, release: true) - .ref - .release(); - _NSStringTransformHiraganaToKatakana.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSStringTransformHiraganaToKatakana.value, + retain: false, + release: true, + ).ref.release(); + _NSStringTransformHiraganaToKatakana.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSStringTransformFullwidthToHalfwidth = - _lookup('NSStringTransformFullwidthToHalfwidth'); + _NSStringTransformFullwidthToHalfwidth = _lookup( + 'NSStringTransformFullwidthToHalfwidth', + ); DartNSStringTransform get NSStringTransformFullwidthToHalfwidth => objc.NSString.castFromPointer( - _NSStringTransformFullwidthToHalfwidth.value, - retain: true, - release: true); + _NSStringTransformFullwidthToHalfwidth.value, + retain: true, + release: true, + ); set NSStringTransformFullwidthToHalfwidth(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformFullwidthToHalfwidth.value, - retain: false, release: true) - .ref - .release(); - _NSStringTransformFullwidthToHalfwidth.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSStringTransformFullwidthToHalfwidth.value, + retain: false, + release: true, + ).ref.release(); + _NSStringTransformFullwidthToHalfwidth.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer _NSStringTransformToXMLHex = _lookup('NSStringTransformToXMLHex'); DartNSStringTransform get NSStringTransformToXMLHex => - objc.NSString.castFromPointer(_NSStringTransformToXMLHex.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformToXMLHex.value, + retain: true, + release: true, + ); set NSStringTransformToXMLHex(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformToXMLHex.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSStringTransformToXMLHex.value, + retain: false, + release: true, + ).ref.release(); _NSStringTransformToXMLHex.value = value.ref.retainAndReturnPointer(); } @@ -37246,228 +37582,259 @@ class NativeCupertinoHttp { _lookup('NSStringTransformToUnicodeName'); DartNSStringTransform get NSStringTransformToUnicodeName => - objc.NSString.castFromPointer(_NSStringTransformToUnicodeName.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformToUnicodeName.value, + retain: true, + release: true, + ); set NSStringTransformToUnicodeName(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformToUnicodeName.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSStringTransformToUnicodeName.value, + retain: false, + release: true, + ).ref.release(); _NSStringTransformToUnicodeName.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer - _NSStringTransformStripCombiningMarks = - _lookup('NSStringTransformStripCombiningMarks'); + _NSStringTransformStripCombiningMarks = _lookup( + 'NSStringTransformStripCombiningMarks', + ); DartNSStringTransform get NSStringTransformStripCombiningMarks => - objc.NSString.castFromPointer(_NSStringTransformStripCombiningMarks.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformStripCombiningMarks.value, + retain: true, + release: true, + ); set NSStringTransformStripCombiningMarks(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformStripCombiningMarks.value, - retain: false, release: true) - .ref - .release(); - _NSStringTransformStripCombiningMarks.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSStringTransformStripCombiningMarks.value, + retain: false, + release: true, + ).ref.release(); + _NSStringTransformStripCombiningMarks.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer _NSStringTransformStripDiacritics = _lookup('NSStringTransformStripDiacritics'); DartNSStringTransform get NSStringTransformStripDiacritics => - objc.NSString.castFromPointer(_NSStringTransformStripDiacritics.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringTransformStripDiacritics.value, + retain: true, + release: true, + ); set NSStringTransformStripDiacritics(DartNSStringTransform value) { - objc.NSString.castFromPointer(_NSStringTransformStripDiacritics.value, - retain: false, release: true) - .ref - .release(); - _NSStringTransformStripDiacritics.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSStringTransformStripDiacritics.value, + retain: false, + release: true, + ).ref.release(); + _NSStringTransformStripDiacritics.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSStringEncodingDetectionSuggestedEncodingsKey = + _NSStringEncodingDetectionSuggestedEncodingsKey = _lookup( - 'NSStringEncodingDetectionSuggestedEncodingsKey'); + 'NSStringEncodingDetectionSuggestedEncodingsKey', + ); DartNSStringEncodingDetectionOptionsKey - get NSStringEncodingDetectionSuggestedEncodingsKey => - objc.NSString.castFromPointer( - _NSStringEncodingDetectionSuggestedEncodingsKey.value, - retain: true, - release: true); + get NSStringEncodingDetectionSuggestedEncodingsKey => + objc.NSString.castFromPointer( + _NSStringEncodingDetectionSuggestedEncodingsKey.value, + retain: true, + release: true, + ); set NSStringEncodingDetectionSuggestedEncodingsKey( - DartNSStringEncodingDetectionOptionsKey value) { + DartNSStringEncodingDetectionOptionsKey value, + ) { objc.NSString.castFromPointer( - _NSStringEncodingDetectionSuggestedEncodingsKey.value, - retain: false, - release: true) - .ref - .release(); - _NSStringEncodingDetectionSuggestedEncodingsKey.value = - value.ref.retainAndReturnPointer(); + _NSStringEncodingDetectionSuggestedEncodingsKey.value, + retain: false, + release: true, + ).ref.release(); + _NSStringEncodingDetectionSuggestedEncodingsKey.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSStringEncodingDetectionDisallowedEncodingsKey = + _NSStringEncodingDetectionDisallowedEncodingsKey = _lookup( - 'NSStringEncodingDetectionDisallowedEncodingsKey'); + 'NSStringEncodingDetectionDisallowedEncodingsKey', + ); DartNSStringEncodingDetectionOptionsKey - get NSStringEncodingDetectionDisallowedEncodingsKey => - objc.NSString.castFromPointer( - _NSStringEncodingDetectionDisallowedEncodingsKey.value, - retain: true, - release: true); + get NSStringEncodingDetectionDisallowedEncodingsKey => + objc.NSString.castFromPointer( + _NSStringEncodingDetectionDisallowedEncodingsKey.value, + retain: true, + release: true, + ); set NSStringEncodingDetectionDisallowedEncodingsKey( - DartNSStringEncodingDetectionOptionsKey value) { + DartNSStringEncodingDetectionOptionsKey value, + ) { objc.NSString.castFromPointer( - _NSStringEncodingDetectionDisallowedEncodingsKey.value, - retain: false, - release: true) - .ref - .release(); - _NSStringEncodingDetectionDisallowedEncodingsKey.value = - value.ref.retainAndReturnPointer(); + _NSStringEncodingDetectionDisallowedEncodingsKey.value, + retain: false, + release: true, + ).ref.release(); + _NSStringEncodingDetectionDisallowedEncodingsKey.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey = + _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey = _lookup( - 'NSStringEncodingDetectionUseOnlySuggestedEncodingsKey'); + 'NSStringEncodingDetectionUseOnlySuggestedEncodingsKey', + ); DartNSStringEncodingDetectionOptionsKey - get NSStringEncodingDetectionUseOnlySuggestedEncodingsKey => - objc.NSString.castFromPointer( - _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey.value, - retain: true, - release: true); + get NSStringEncodingDetectionUseOnlySuggestedEncodingsKey => + objc.NSString.castFromPointer( + _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey.value, + retain: true, + release: true, + ); set NSStringEncodingDetectionUseOnlySuggestedEncodingsKey( - DartNSStringEncodingDetectionOptionsKey value) { + DartNSStringEncodingDetectionOptionsKey value, + ) { objc.NSString.castFromPointer( - _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey.value, - retain: false, - release: true) - .ref - .release(); - _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey.value = - value.ref.retainAndReturnPointer(); + _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey.value, + retain: false, + release: true, + ).ref.release(); + _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSStringEncodingDetectionAllowLossyKey = + _NSStringEncodingDetectionAllowLossyKey = _lookup( - 'NSStringEncodingDetectionAllowLossyKey'); + 'NSStringEncodingDetectionAllowLossyKey', + ); DartNSStringEncodingDetectionOptionsKey - get NSStringEncodingDetectionAllowLossyKey => - objc.NSString.castFromPointer( - _NSStringEncodingDetectionAllowLossyKey.value, - retain: true, - release: true); + get NSStringEncodingDetectionAllowLossyKey => objc.NSString.castFromPointer( + _NSStringEncodingDetectionAllowLossyKey.value, + retain: true, + release: true, + ); set NSStringEncodingDetectionAllowLossyKey( - DartNSStringEncodingDetectionOptionsKey value) { - objc.NSString.castFromPointer(_NSStringEncodingDetectionAllowLossyKey.value, - retain: false, release: true) - .ref - .release(); - _NSStringEncodingDetectionAllowLossyKey.value = - value.ref.retainAndReturnPointer(); + DartNSStringEncodingDetectionOptionsKey value, + ) { + objc.NSString.castFromPointer( + _NSStringEncodingDetectionAllowLossyKey.value, + retain: false, + release: true, + ).ref.release(); + _NSStringEncodingDetectionAllowLossyKey.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSStringEncodingDetectionFromWindowsKey = + _NSStringEncodingDetectionFromWindowsKey = _lookup( - 'NSStringEncodingDetectionFromWindowsKey'); + 'NSStringEncodingDetectionFromWindowsKey', + ); DartNSStringEncodingDetectionOptionsKey - get NSStringEncodingDetectionFromWindowsKey => - objc.NSString.castFromPointer( - _NSStringEncodingDetectionFromWindowsKey.value, - retain: true, - release: true); + get NSStringEncodingDetectionFromWindowsKey => objc.NSString.castFromPointer( + _NSStringEncodingDetectionFromWindowsKey.value, + retain: true, + release: true, + ); set NSStringEncodingDetectionFromWindowsKey( - DartNSStringEncodingDetectionOptionsKey value) { + DartNSStringEncodingDetectionOptionsKey value, + ) { objc.NSString.castFromPointer( - _NSStringEncodingDetectionFromWindowsKey.value, - retain: false, - release: true) - .ref - .release(); - _NSStringEncodingDetectionFromWindowsKey.value = - value.ref.retainAndReturnPointer(); + _NSStringEncodingDetectionFromWindowsKey.value, + retain: false, + release: true, + ).ref.release(); + _NSStringEncodingDetectionFromWindowsKey.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSStringEncodingDetectionLossySubstitutionKey = + _NSStringEncodingDetectionLossySubstitutionKey = _lookup( - 'NSStringEncodingDetectionLossySubstitutionKey'); + 'NSStringEncodingDetectionLossySubstitutionKey', + ); DartNSStringEncodingDetectionOptionsKey - get NSStringEncodingDetectionLossySubstitutionKey => - objc.NSString.castFromPointer( - _NSStringEncodingDetectionLossySubstitutionKey.value, - retain: true, - release: true); + get NSStringEncodingDetectionLossySubstitutionKey => + objc.NSString.castFromPointer( + _NSStringEncodingDetectionLossySubstitutionKey.value, + retain: true, + release: true, + ); set NSStringEncodingDetectionLossySubstitutionKey( - DartNSStringEncodingDetectionOptionsKey value) { + DartNSStringEncodingDetectionOptionsKey value, + ) { objc.NSString.castFromPointer( - _NSStringEncodingDetectionLossySubstitutionKey.value, - retain: false, - release: true) - .ref - .release(); - _NSStringEncodingDetectionLossySubstitutionKey.value = - value.ref.retainAndReturnPointer(); + _NSStringEncodingDetectionLossySubstitutionKey.value, + retain: false, + release: true, + ).ref.release(); + _NSStringEncodingDetectionLossySubstitutionKey.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSStringEncodingDetectionLikelyLanguageKey = + _NSStringEncodingDetectionLikelyLanguageKey = _lookup( - 'NSStringEncodingDetectionLikelyLanguageKey'); + 'NSStringEncodingDetectionLikelyLanguageKey', + ); DartNSStringEncodingDetectionOptionsKey - get NSStringEncodingDetectionLikelyLanguageKey => - objc.NSString.castFromPointer( - _NSStringEncodingDetectionLikelyLanguageKey.value, - retain: true, - release: true); + get NSStringEncodingDetectionLikelyLanguageKey => + objc.NSString.castFromPointer( + _NSStringEncodingDetectionLikelyLanguageKey.value, + retain: true, + release: true, + ); set NSStringEncodingDetectionLikelyLanguageKey( - DartNSStringEncodingDetectionOptionsKey value) { + DartNSStringEncodingDetectionOptionsKey value, + ) { objc.NSString.castFromPointer( - _NSStringEncodingDetectionLikelyLanguageKey.value, - retain: false, - release: true) - .ref - .release(); - _NSStringEncodingDetectionLikelyLanguageKey.value = - value.ref.retainAndReturnPointer(); + _NSStringEncodingDetectionLikelyLanguageKey.value, + retain: false, + release: true, + ).ref.release(); + _NSStringEncodingDetectionLikelyLanguageKey.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer _NSCharacterConversionException = _lookup('NSCharacterConversionException'); DartNSExceptionName get NSCharacterConversionException => - objc.NSString.castFromPointer(_NSCharacterConversionException.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSCharacterConversionException.value, + retain: true, + release: true, + ); set NSCharacterConversionException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSCharacterConversionException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSCharacterConversionException.value, + retain: false, + release: true, + ).ref.release(); _NSCharacterConversionException.value = value.ref.retainAndReturnPointer(); } @@ -37475,120 +37842,163 @@ class NativeCupertinoHttp { _lookup('NSParseErrorException'); DartNSExceptionName get NSParseErrorException => - objc.NSString.castFromPointer(_NSParseErrorException.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSParseErrorException.value, + retain: true, + release: true, + ); set NSParseErrorException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSParseErrorException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSParseErrorException.value, + retain: false, + release: true, + ).ref.release(); _NSParseErrorException.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer> - _NSHTTPPropertyStatusCodeKey = - _lookup>('NSHTTPPropertyStatusCodeKey'); + _NSHTTPPropertyStatusCodeKey = _lookup>( + 'NSHTTPPropertyStatusCodeKey', + ); objc.NSString get NSHTTPPropertyStatusCodeKey => - objc.NSString.castFromPointer(_NSHTTPPropertyStatusCodeKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSHTTPPropertyStatusCodeKey.value, + retain: true, + release: true, + ); late final ffi.Pointer> - _NSHTTPPropertyStatusReasonKey = - _lookup>('NSHTTPPropertyStatusReasonKey'); + _NSHTTPPropertyStatusReasonKey = _lookup>( + 'NSHTTPPropertyStatusReasonKey', + ); objc.NSString get NSHTTPPropertyStatusReasonKey => - objc.NSString.castFromPointer(_NSHTTPPropertyStatusReasonKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSHTTPPropertyStatusReasonKey.value, + retain: true, + release: true, + ); late final ffi.Pointer> - _NSHTTPPropertyServerHTTPVersionKey = - _lookup>( - 'NSHTTPPropertyServerHTTPVersionKey'); + _NSHTTPPropertyServerHTTPVersionKey = _lookup>( + 'NSHTTPPropertyServerHTTPVersionKey', + ); objc.NSString get NSHTTPPropertyServerHTTPVersionKey => - objc.NSString.castFromPointer(_NSHTTPPropertyServerHTTPVersionKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSHTTPPropertyServerHTTPVersionKey.value, + retain: true, + release: true, + ); late final ffi.Pointer> - _NSHTTPPropertyRedirectionHeadersKey = - _lookup>( - 'NSHTTPPropertyRedirectionHeadersKey'); + _NSHTTPPropertyRedirectionHeadersKey = _lookup>( + 'NSHTTPPropertyRedirectionHeadersKey', + ); objc.NSString get NSHTTPPropertyRedirectionHeadersKey => - objc.NSString.castFromPointer(_NSHTTPPropertyRedirectionHeadersKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSHTTPPropertyRedirectionHeadersKey.value, + retain: true, + release: true, + ); late final ffi.Pointer> - _NSHTTPPropertyErrorPageDataKey = - _lookup>('NSHTTPPropertyErrorPageDataKey'); + _NSHTTPPropertyErrorPageDataKey = _lookup>( + 'NSHTTPPropertyErrorPageDataKey', + ); objc.NSString get NSHTTPPropertyErrorPageDataKey => - objc.NSString.castFromPointer(_NSHTTPPropertyErrorPageDataKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSHTTPPropertyErrorPageDataKey.value, + retain: true, + release: true, + ); late final ffi.Pointer> - _NSHTTPPropertyHTTPProxy = - _lookup>('NSHTTPPropertyHTTPProxy'); + _NSHTTPPropertyHTTPProxy = _lookup>( + 'NSHTTPPropertyHTTPProxy', + ); - objc.NSString get NSHTTPPropertyHTTPProxy => - objc.NSString.castFromPointer(_NSHTTPPropertyHTTPProxy.value, - retain: true, release: true); + objc.NSString get NSHTTPPropertyHTTPProxy => objc.NSString.castFromPointer( + _NSHTTPPropertyHTTPProxy.value, + retain: true, + release: true, + ); late final ffi.Pointer> - _NSFTPPropertyUserLoginKey = - _lookup>('NSFTPPropertyUserLoginKey'); + _NSFTPPropertyUserLoginKey = _lookup>( + 'NSFTPPropertyUserLoginKey', + ); - objc.NSString get NSFTPPropertyUserLoginKey => - objc.NSString.castFromPointer(_NSFTPPropertyUserLoginKey.value, - retain: true, release: true); + objc.NSString get NSFTPPropertyUserLoginKey => objc.NSString.castFromPointer( + _NSFTPPropertyUserLoginKey.value, + retain: true, + release: true, + ); late final ffi.Pointer> - _NSFTPPropertyUserPasswordKey = - _lookup>('NSFTPPropertyUserPasswordKey'); + _NSFTPPropertyUserPasswordKey = _lookup>( + 'NSFTPPropertyUserPasswordKey', + ); objc.NSString get NSFTPPropertyUserPasswordKey => - objc.NSString.castFromPointer(_NSFTPPropertyUserPasswordKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSFTPPropertyUserPasswordKey.value, + retain: true, + release: true, + ); late final ffi.Pointer> - _NSFTPPropertyActiveTransferModeKey = - _lookup>( - 'NSFTPPropertyActiveTransferModeKey'); + _NSFTPPropertyActiveTransferModeKey = _lookup>( + 'NSFTPPropertyActiveTransferModeKey', + ); objc.NSString get NSFTPPropertyActiveTransferModeKey => - objc.NSString.castFromPointer(_NSFTPPropertyActiveTransferModeKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSFTPPropertyActiveTransferModeKey.value, + retain: true, + release: true, + ); late final ffi.Pointer> - _NSFTPPropertyFileOffsetKey = - _lookup>('NSFTPPropertyFileOffsetKey'); + _NSFTPPropertyFileOffsetKey = _lookup>( + 'NSFTPPropertyFileOffsetKey', + ); - objc.NSString get NSFTPPropertyFileOffsetKey => - objc.NSString.castFromPointer(_NSFTPPropertyFileOffsetKey.value, - retain: true, release: true); + objc.NSString get NSFTPPropertyFileOffsetKey => objc.NSString.castFromPointer( + _NSFTPPropertyFileOffsetKey.value, + retain: true, + release: true, + ); late final ffi.Pointer> _NSFTPPropertyFTPProxy = _lookup>('NSFTPPropertyFTPProxy'); - objc.NSString get NSFTPPropertyFTPProxy => - objc.NSString.castFromPointer(_NSFTPPropertyFTPProxy.value, - retain: true, release: true); + objc.NSString get NSFTPPropertyFTPProxy => objc.NSString.castFromPointer( + _NSFTPPropertyFTPProxy.value, + retain: true, + release: true, + ); /// 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'); - objc.NSString get NSURLFileScheme => - objc.NSString.castFromPointer(_NSURLFileScheme.value, - retain: true, release: true); + objc.NSString get NSURLFileScheme => objc.NSString.castFromPointer( + _NSURLFileScheme.value, + retain: true, + release: true, + ); set NSURLFileScheme(objc.NSString value) { - objc.NSString.castFromPointer(_NSURLFileScheme.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileScheme.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileScheme.value = value.ref.retainAndReturnPointer(); } @@ -37597,14 +38007,18 @@ class NativeCupertinoHttp { _lookup('NSURLKeysOfUnsetValuesKey'); DartNSURLResourceKey get NSURLKeysOfUnsetValuesKey => - objc.NSString.castFromPointer(_NSURLKeysOfUnsetValuesKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLKeysOfUnsetValuesKey.value, + retain: true, + release: true, + ); set NSURLKeysOfUnsetValuesKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLKeysOfUnsetValuesKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLKeysOfUnsetValuesKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLKeysOfUnsetValuesKey.value = value.ref.retainAndReturnPointer(); } @@ -37612,15 +38026,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLNameKey = _lookup('NSURLNameKey'); - DartNSURLResourceKey get NSURLNameKey => - objc.NSString.castFromPointer(_NSURLNameKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLNameKey => objc.NSString.castFromPointer( + _NSURLNameKey.value, + retain: true, + release: true, + ); set NSURLNameKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLNameKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLNameKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLNameKey.value = value.ref.retainAndReturnPointer(); } @@ -37629,14 +38046,18 @@ class NativeCupertinoHttp { _lookup('NSURLLocalizedNameKey'); DartNSURLResourceKey get NSURLLocalizedNameKey => - objc.NSString.castFromPointer(_NSURLLocalizedNameKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLLocalizedNameKey.value, + retain: true, + release: true, + ); set NSURLLocalizedNameKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLLocalizedNameKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLLocalizedNameKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLLocalizedNameKey.value = value.ref.retainAndReturnPointer(); } @@ -37645,14 +38066,18 @@ class NativeCupertinoHttp { _lookup('NSURLIsRegularFileKey'); DartNSURLResourceKey get NSURLIsRegularFileKey => - objc.NSString.castFromPointer(_NSURLIsRegularFileKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLIsRegularFileKey.value, + retain: true, + release: true, + ); set NSURLIsRegularFileKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsRegularFileKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsRegularFileKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsRegularFileKey.value = value.ref.retainAndReturnPointer(); } @@ -37660,15 +38085,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLIsDirectoryKey = _lookup('NSURLIsDirectoryKey'); - DartNSURLResourceKey get NSURLIsDirectoryKey => - objc.NSString.castFromPointer(_NSURLIsDirectoryKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLIsDirectoryKey => objc.NSString.castFromPointer( + _NSURLIsDirectoryKey.value, + retain: true, + release: true, + ); set NSURLIsDirectoryKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsDirectoryKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsDirectoryKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsDirectoryKey.value = value.ref.retainAndReturnPointer(); } @@ -37677,14 +38105,18 @@ class NativeCupertinoHttp { _lookup('NSURLIsSymbolicLinkKey'); DartNSURLResourceKey get NSURLIsSymbolicLinkKey => - objc.NSString.castFromPointer(_NSURLIsSymbolicLinkKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLIsSymbolicLinkKey.value, + retain: true, + release: true, + ); set NSURLIsSymbolicLinkKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsSymbolicLinkKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsSymbolicLinkKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsSymbolicLinkKey.value = value.ref.retainAndReturnPointer(); } @@ -37692,15 +38124,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLIsVolumeKey = _lookup('NSURLIsVolumeKey'); - DartNSURLResourceKey get NSURLIsVolumeKey => - objc.NSString.castFromPointer(_NSURLIsVolumeKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLIsVolumeKey => objc.NSString.castFromPointer( + _NSURLIsVolumeKey.value, + retain: true, + release: true, + ); set NSURLIsVolumeKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsVolumeKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsVolumeKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsVolumeKey.value = value.ref.retainAndReturnPointer(); } @@ -37708,15 +38143,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLIsPackageKey = _lookup('NSURLIsPackageKey'); - DartNSURLResourceKey get NSURLIsPackageKey => - objc.NSString.castFromPointer(_NSURLIsPackageKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLIsPackageKey => objc.NSString.castFromPointer( + _NSURLIsPackageKey.value, + retain: true, + release: true, + ); set NSURLIsPackageKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsPackageKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsPackageKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsPackageKey.value = value.ref.retainAndReturnPointer(); } @@ -37725,14 +38163,18 @@ class NativeCupertinoHttp { _lookup('NSURLIsApplicationKey'); DartNSURLResourceKey get NSURLIsApplicationKey => - objc.NSString.castFromPointer(_NSURLIsApplicationKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLIsApplicationKey.value, + retain: true, + release: true, + ); set NSURLIsApplicationKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsApplicationKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsApplicationKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsApplicationKey.value = value.ref.retainAndReturnPointer(); } @@ -37741,14 +38183,18 @@ class NativeCupertinoHttp { _lookup('NSURLApplicationIsScriptableKey'); DartNSURLResourceKey get NSURLApplicationIsScriptableKey => - objc.NSString.castFromPointer(_NSURLApplicationIsScriptableKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLApplicationIsScriptableKey.value, + retain: true, + release: true, + ); set NSURLApplicationIsScriptableKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLApplicationIsScriptableKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLApplicationIsScriptableKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLApplicationIsScriptableKey.value = value.ref.retainAndReturnPointer(); } @@ -37757,14 +38203,18 @@ class NativeCupertinoHttp { _lookup('NSURLIsSystemImmutableKey'); DartNSURLResourceKey get NSURLIsSystemImmutableKey => - objc.NSString.castFromPointer(_NSURLIsSystemImmutableKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLIsSystemImmutableKey.value, + retain: true, + release: true, + ); set NSURLIsSystemImmutableKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsSystemImmutableKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsSystemImmutableKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsSystemImmutableKey.value = value.ref.retainAndReturnPointer(); } @@ -37773,14 +38223,18 @@ class NativeCupertinoHttp { _lookup('NSURLIsUserImmutableKey'); DartNSURLResourceKey get NSURLIsUserImmutableKey => - objc.NSString.castFromPointer(_NSURLIsUserImmutableKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLIsUserImmutableKey.value, + retain: true, + release: true, + ); set NSURLIsUserImmutableKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsUserImmutableKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsUserImmutableKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsUserImmutableKey.value = value.ref.retainAndReturnPointer(); } @@ -37788,15 +38242,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLIsHiddenKey = _lookup('NSURLIsHiddenKey'); - DartNSURLResourceKey get NSURLIsHiddenKey => - objc.NSString.castFromPointer(_NSURLIsHiddenKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLIsHiddenKey => objc.NSString.castFromPointer( + _NSURLIsHiddenKey.value, + retain: true, + release: true, + ); set NSURLIsHiddenKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsHiddenKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsHiddenKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsHiddenKey.value = value.ref.retainAndReturnPointer(); } @@ -37805,14 +38262,18 @@ class NativeCupertinoHttp { _lookup('NSURLHasHiddenExtensionKey'); DartNSURLResourceKey get NSURLHasHiddenExtensionKey => - objc.NSString.castFromPointer(_NSURLHasHiddenExtensionKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLHasHiddenExtensionKey.value, + retain: true, + release: true, + ); set NSURLHasHiddenExtensionKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLHasHiddenExtensionKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLHasHiddenExtensionKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLHasHiddenExtensionKey.value = value.ref.retainAndReturnPointer(); } @@ -37821,14 +38282,18 @@ class NativeCupertinoHttp { _lookup('NSURLCreationDateKey'); DartNSURLResourceKey get NSURLCreationDateKey => - objc.NSString.castFromPointer(_NSURLCreationDateKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLCreationDateKey.value, + retain: true, + release: true, + ); set NSURLCreationDateKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLCreationDateKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLCreationDateKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLCreationDateKey.value = value.ref.retainAndReturnPointer(); } @@ -37837,14 +38302,18 @@ class NativeCupertinoHttp { _lookup('NSURLContentAccessDateKey'); DartNSURLResourceKey get NSURLContentAccessDateKey => - objc.NSString.castFromPointer(_NSURLContentAccessDateKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLContentAccessDateKey.value, + retain: true, + release: true, + ); set NSURLContentAccessDateKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLContentAccessDateKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLContentAccessDateKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLContentAccessDateKey.value = value.ref.retainAndReturnPointer(); } @@ -37853,14 +38322,18 @@ class NativeCupertinoHttp { _lookup('NSURLContentModificationDateKey'); DartNSURLResourceKey get NSURLContentModificationDateKey => - objc.NSString.castFromPointer(_NSURLContentModificationDateKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLContentModificationDateKey.value, + retain: true, + release: true, + ); set NSURLContentModificationDateKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLContentModificationDateKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLContentModificationDateKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLContentModificationDateKey.value = value.ref.retainAndReturnPointer(); } @@ -37869,31 +38342,38 @@ class NativeCupertinoHttp { _lookup('NSURLAttributeModificationDateKey'); DartNSURLResourceKey get NSURLAttributeModificationDateKey => - objc.NSString.castFromPointer(_NSURLAttributeModificationDateKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLAttributeModificationDateKey.value, + retain: true, + release: true, + ); set NSURLAttributeModificationDateKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLAttributeModificationDateKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLAttributeModificationDateKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLAttributeModificationDateKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLAttributeModificationDateKey.value = value.ref + .retainAndReturnPointer(); } /// Number of hard links to the resource (Read-only, value type NSNumber) late final ffi.Pointer _NSURLLinkCountKey = _lookup('NSURLLinkCountKey'); - DartNSURLResourceKey get NSURLLinkCountKey => - objc.NSString.castFromPointer(_NSURLLinkCountKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLLinkCountKey => objc.NSString.castFromPointer( + _NSURLLinkCountKey.value, + retain: true, + release: true, + ); set NSURLLinkCountKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLLinkCountKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLLinkCountKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLLinkCountKey.value = value.ref.retainAndReturnPointer(); } @@ -37902,14 +38382,18 @@ class NativeCupertinoHttp { _lookup('NSURLParentDirectoryURLKey'); DartNSURLResourceKey get NSURLParentDirectoryURLKey => - objc.NSString.castFromPointer(_NSURLParentDirectoryURLKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLParentDirectoryURLKey.value, + retain: true, + release: true, + ); set NSURLParentDirectoryURLKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLParentDirectoryURLKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLParentDirectoryURLKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLParentDirectoryURLKey.value = value.ref.retainAndReturnPointer(); } @@ -37917,15 +38401,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLVolumeURLKey = _lookup('NSURLVolumeURLKey'); - DartNSURLResourceKey get NSURLVolumeURLKey => - objc.NSString.castFromPointer(_NSURLVolumeURLKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLVolumeURLKey => objc.NSString.castFromPointer( + _NSURLVolumeURLKey.value, + retain: true, + release: true, + ); set NSURLVolumeURLKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeURLKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeURLKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeURLKey.value = value.ref.retainAndReturnPointer(); } @@ -37934,14 +38421,18 @@ class NativeCupertinoHttp { _lookup('NSURLTypeIdentifierKey'); DartNSURLResourceKey get NSURLTypeIdentifierKey => - objc.NSString.castFromPointer(_NSURLTypeIdentifierKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLTypeIdentifierKey.value, + retain: true, + release: true, + ); set NSURLTypeIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLTypeIdentifierKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLTypeIdentifierKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLTypeIdentifierKey.value = value.ref.retainAndReturnPointer(); } @@ -37949,15 +38440,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLContentTypeKey = _lookup('NSURLContentTypeKey'); - DartNSURLResourceKey get NSURLContentTypeKey => - objc.NSString.castFromPointer(_NSURLContentTypeKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLContentTypeKey => objc.NSString.castFromPointer( + _NSURLContentTypeKey.value, + retain: true, + release: true, + ); set NSURLContentTypeKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLContentTypeKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLContentTypeKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLContentTypeKey.value = value.ref.retainAndReturnPointer(); } @@ -37966,31 +38460,38 @@ class NativeCupertinoHttp { _lookup('NSURLLocalizedTypeDescriptionKey'); DartNSURLResourceKey get NSURLLocalizedTypeDescriptionKey => - objc.NSString.castFromPointer(_NSURLLocalizedTypeDescriptionKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLLocalizedTypeDescriptionKey.value, + retain: true, + release: true, + ); set NSURLLocalizedTypeDescriptionKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLLocalizedTypeDescriptionKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLLocalizedTypeDescriptionKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLLocalizedTypeDescriptionKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLLocalizedTypeDescriptionKey.value = value.ref + .retainAndReturnPointer(); } /// The label number assigned to the resource (Read-write, value type NSNumber) late final ffi.Pointer _NSURLLabelNumberKey = _lookup('NSURLLabelNumberKey'); - DartNSURLResourceKey get NSURLLabelNumberKey => - objc.NSString.castFromPointer(_NSURLLabelNumberKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLLabelNumberKey => objc.NSString.castFromPointer( + _NSURLLabelNumberKey.value, + retain: true, + release: true, + ); set NSURLLabelNumberKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLLabelNumberKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLLabelNumberKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLLabelNumberKey.value = value.ref.retainAndReturnPointer(); } @@ -37998,15 +38499,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLLabelColorKey = _lookup('NSURLLabelColorKey'); - DartNSURLResourceKey get NSURLLabelColorKey => - objc.NSString.castFromPointer(_NSURLLabelColorKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLLabelColorKey => objc.NSString.castFromPointer( + _NSURLLabelColorKey.value, + retain: true, + release: true, + ); set NSURLLabelColorKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLLabelColorKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLLabelColorKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLLabelColorKey.value = value.ref.retainAndReturnPointer(); } @@ -38015,14 +38519,18 @@ class NativeCupertinoHttp { _lookup('NSURLLocalizedLabelKey'); DartNSURLResourceKey get NSURLLocalizedLabelKey => - objc.NSString.castFromPointer(_NSURLLocalizedLabelKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLLocalizedLabelKey.value, + retain: true, + release: true, + ); set NSURLLocalizedLabelKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLLocalizedLabelKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLLocalizedLabelKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLLocalizedLabelKey.value = value.ref.retainAndReturnPointer(); } @@ -38031,14 +38539,18 @@ class NativeCupertinoHttp { _lookup('NSURLEffectiveIconKey'); DartNSURLResourceKey get NSURLEffectiveIconKey => - objc.NSString.castFromPointer(_NSURLEffectiveIconKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLEffectiveIconKey.value, + retain: true, + release: true, + ); set NSURLEffectiveIconKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLEffectiveIconKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLEffectiveIconKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLEffectiveIconKey.value = value.ref.retainAndReturnPointer(); } @@ -38046,15 +38558,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLCustomIconKey = _lookup('NSURLCustomIconKey'); - DartNSURLResourceKey get NSURLCustomIconKey => - objc.NSString.castFromPointer(_NSURLCustomIconKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLCustomIconKey => objc.NSString.castFromPointer( + _NSURLCustomIconKey.value, + retain: true, + release: true, + ); set NSURLCustomIconKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLCustomIconKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLCustomIconKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLCustomIconKey.value = value.ref.retainAndReturnPointer(); } @@ -38063,14 +38578,18 @@ class NativeCupertinoHttp { _lookup('NSURLFileResourceIdentifierKey'); DartNSURLResourceKey get NSURLFileResourceIdentifierKey => - objc.NSString.castFromPointer(_NSURLFileResourceIdentifierKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileResourceIdentifierKey.value, + retain: true, + release: true, + ); set NSURLFileResourceIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLFileResourceIdentifierKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileResourceIdentifierKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileResourceIdentifierKey.value = value.ref.retainAndReturnPointer(); } @@ -38079,14 +38598,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeIdentifierKey'); DartNSURLResourceKey get NSURLVolumeIdentifierKey => - objc.NSString.castFromPointer(_NSURLVolumeIdentifierKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeIdentifierKey.value, + retain: true, + release: true, + ); set NSURLVolumeIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeIdentifierKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeIdentifierKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeIdentifierKey.value = value.ref.retainAndReturnPointer(); } @@ -38095,14 +38618,18 @@ class NativeCupertinoHttp { _lookup('NSURLPreferredIOBlockSizeKey'); DartNSURLResourceKey get NSURLPreferredIOBlockSizeKey => - objc.NSString.castFromPointer(_NSURLPreferredIOBlockSizeKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLPreferredIOBlockSizeKey.value, + retain: true, + release: true, + ); set NSURLPreferredIOBlockSizeKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLPreferredIOBlockSizeKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLPreferredIOBlockSizeKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLPreferredIOBlockSizeKey.value = value.ref.retainAndReturnPointer(); } @@ -38110,15 +38637,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLIsReadableKey = _lookup('NSURLIsReadableKey'); - DartNSURLResourceKey get NSURLIsReadableKey => - objc.NSString.castFromPointer(_NSURLIsReadableKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLIsReadableKey => objc.NSString.castFromPointer( + _NSURLIsReadableKey.value, + retain: true, + release: true, + ); set NSURLIsReadableKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsReadableKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsReadableKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsReadableKey.value = value.ref.retainAndReturnPointer(); } @@ -38126,15 +38656,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLIsWritableKey = _lookup('NSURLIsWritableKey'); - DartNSURLResourceKey get NSURLIsWritableKey => - objc.NSString.castFromPointer(_NSURLIsWritableKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLIsWritableKey => objc.NSString.castFromPointer( + _NSURLIsWritableKey.value, + retain: true, + release: true, + ); set NSURLIsWritableKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsWritableKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsWritableKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsWritableKey.value = value.ref.retainAndReturnPointer(); } @@ -38143,14 +38676,18 @@ class NativeCupertinoHttp { _lookup('NSURLIsExecutableKey'); DartNSURLResourceKey get NSURLIsExecutableKey => - objc.NSString.castFromPointer(_NSURLIsExecutableKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLIsExecutableKey.value, + retain: true, + release: true, + ); set NSURLIsExecutableKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsExecutableKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsExecutableKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsExecutableKey.value = value.ref.retainAndReturnPointer(); } @@ -38159,14 +38696,18 @@ class NativeCupertinoHttp { _lookup('NSURLFileSecurityKey'); DartNSURLResourceKey get NSURLFileSecurityKey => - objc.NSString.castFromPointer(_NSURLFileSecurityKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileSecurityKey.value, + retain: true, + release: true, + ); set NSURLFileSecurityKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLFileSecurityKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileSecurityKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileSecurityKey.value = value.ref.retainAndReturnPointer(); } @@ -38175,14 +38716,18 @@ class NativeCupertinoHttp { _lookup('NSURLIsExcludedFromBackupKey'); DartNSURLResourceKey get NSURLIsExcludedFromBackupKey => - objc.NSString.castFromPointer(_NSURLIsExcludedFromBackupKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLIsExcludedFromBackupKey.value, + retain: true, + release: true, + ); set NSURLIsExcludedFromBackupKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsExcludedFromBackupKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsExcludedFromBackupKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsExcludedFromBackupKey.value = value.ref.retainAndReturnPointer(); } @@ -38190,15 +38735,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLTagNamesKey = _lookup('NSURLTagNamesKey'); - DartNSURLResourceKey get NSURLTagNamesKey => - objc.NSString.castFromPointer(_NSURLTagNamesKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLTagNamesKey => objc.NSString.castFromPointer( + _NSURLTagNamesKey.value, + retain: true, + release: true, + ); set NSURLTagNamesKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLTagNamesKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLTagNamesKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLTagNamesKey.value = value.ref.retainAndReturnPointer(); } @@ -38206,15 +38754,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLPathKey = _lookup('NSURLPathKey'); - DartNSURLResourceKey get NSURLPathKey => - objc.NSString.castFromPointer(_NSURLPathKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLPathKey => objc.NSString.castFromPointer( + _NSURLPathKey.value, + retain: true, + release: true, + ); set NSURLPathKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLPathKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLPathKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLPathKey.value = value.ref.retainAndReturnPointer(); } @@ -38223,14 +38774,18 @@ class NativeCupertinoHttp { _lookup('NSURLCanonicalPathKey'); DartNSURLResourceKey get NSURLCanonicalPathKey => - objc.NSString.castFromPointer(_NSURLCanonicalPathKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLCanonicalPathKey.value, + retain: true, + release: true, + ); set NSURLCanonicalPathKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLCanonicalPathKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLCanonicalPathKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLCanonicalPathKey.value = value.ref.retainAndReturnPointer(); } @@ -38239,14 +38794,18 @@ class NativeCupertinoHttp { _lookup('NSURLIsMountTriggerKey'); DartNSURLResourceKey get NSURLIsMountTriggerKey => - objc.NSString.castFromPointer(_NSURLIsMountTriggerKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLIsMountTriggerKey.value, + retain: true, + release: true, + ); set NSURLIsMountTriggerKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsMountTriggerKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsMountTriggerKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsMountTriggerKey.value = value.ref.retainAndReturnPointer(); } @@ -38255,14 +38814,18 @@ class NativeCupertinoHttp { _lookup('NSURLGenerationIdentifierKey'); DartNSURLResourceKey get NSURLGenerationIdentifierKey => - objc.NSString.castFromPointer(_NSURLGenerationIdentifierKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLGenerationIdentifierKey.value, + retain: true, + release: true, + ); set NSURLGenerationIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLGenerationIdentifierKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLGenerationIdentifierKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLGenerationIdentifierKey.value = value.ref.retainAndReturnPointer(); } @@ -38271,14 +38834,18 @@ class NativeCupertinoHttp { _lookup('NSURLDocumentIdentifierKey'); DartNSURLResourceKey get NSURLDocumentIdentifierKey => - objc.NSString.castFromPointer(_NSURLDocumentIdentifierKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLDocumentIdentifierKey.value, + retain: true, + release: true, + ); set NSURLDocumentIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLDocumentIdentifierKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLDocumentIdentifierKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLDocumentIdentifierKey.value = value.ref.retainAndReturnPointer(); } @@ -38287,14 +38854,18 @@ class NativeCupertinoHttp { _lookup('NSURLAddedToDirectoryDateKey'); DartNSURLResourceKey get NSURLAddedToDirectoryDateKey => - objc.NSString.castFromPointer(_NSURLAddedToDirectoryDateKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLAddedToDirectoryDateKey.value, + retain: true, + release: true, + ); set NSURLAddedToDirectoryDateKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLAddedToDirectoryDateKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLAddedToDirectoryDateKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLAddedToDirectoryDateKey.value = value.ref.retainAndReturnPointer(); } @@ -38303,14 +38874,18 @@ class NativeCupertinoHttp { _lookup('NSURLQuarantinePropertiesKey'); DartNSURLResourceKey get NSURLQuarantinePropertiesKey => - objc.NSString.castFromPointer(_NSURLQuarantinePropertiesKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLQuarantinePropertiesKey.value, + retain: true, + release: true, + ); set NSURLQuarantinePropertiesKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLQuarantinePropertiesKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLQuarantinePropertiesKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLQuarantinePropertiesKey.value = value.ref.retainAndReturnPointer(); } @@ -38319,14 +38894,18 @@ class NativeCupertinoHttp { _lookup('NSURLFileResourceTypeKey'); DartNSURLResourceKey get NSURLFileResourceTypeKey => - objc.NSString.castFromPointer(_NSURLFileResourceTypeKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeKey.value, + retain: true, + release: true, + ); set NSURLFileResourceTypeKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLFileResourceTypeKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileResourceTypeKey.value = value.ref.retainAndReturnPointer(); } @@ -38335,14 +38914,18 @@ class NativeCupertinoHttp { _lookup('NSURLFileIdentifierKey'); DartNSURLResourceKey get NSURLFileIdentifierKey => - objc.NSString.castFromPointer(_NSURLFileIdentifierKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileIdentifierKey.value, + retain: true, + release: true, + ); set NSURLFileIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLFileIdentifierKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileIdentifierKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileIdentifierKey.value = value.ref.retainAndReturnPointer(); } @@ -38351,14 +38934,18 @@ class NativeCupertinoHttp { _lookup('NSURLFileContentIdentifierKey'); DartNSURLResourceKey get NSURLFileContentIdentifierKey => - objc.NSString.castFromPointer(_NSURLFileContentIdentifierKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileContentIdentifierKey.value, + retain: true, + release: true, + ); set NSURLFileContentIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLFileContentIdentifierKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileContentIdentifierKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileContentIdentifierKey.value = value.ref.retainAndReturnPointer(); } @@ -38367,14 +38954,18 @@ class NativeCupertinoHttp { _lookup('NSURLMayShareFileContentKey'); DartNSURLResourceKey get NSURLMayShareFileContentKey => - objc.NSString.castFromPointer(_NSURLMayShareFileContentKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLMayShareFileContentKey.value, + retain: true, + release: true, + ); set NSURLMayShareFileContentKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLMayShareFileContentKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLMayShareFileContentKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLMayShareFileContentKey.value = value.ref.retainAndReturnPointer(); } @@ -38383,31 +38974,38 @@ class NativeCupertinoHttp { _lookup('NSURLMayHaveExtendedAttributesKey'); DartNSURLResourceKey get NSURLMayHaveExtendedAttributesKey => - objc.NSString.castFromPointer(_NSURLMayHaveExtendedAttributesKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLMayHaveExtendedAttributesKey.value, + retain: true, + release: true, + ); set NSURLMayHaveExtendedAttributesKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLMayHaveExtendedAttributesKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLMayHaveExtendedAttributesKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLMayHaveExtendedAttributesKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLMayHaveExtendedAttributesKey.value = value.ref + .retainAndReturnPointer(); } /// True if the file can be deleted by the file system when asked to free space. (Read-only, value type NSNumber) late final ffi.Pointer _NSURLIsPurgeableKey = _lookup('NSURLIsPurgeableKey'); - DartNSURLResourceKey get NSURLIsPurgeableKey => - objc.NSString.castFromPointer(_NSURLIsPurgeableKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLIsPurgeableKey => objc.NSString.castFromPointer( + _NSURLIsPurgeableKey.value, + retain: true, + release: true, + ); set NSURLIsPurgeableKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsPurgeableKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsPurgeableKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsPurgeableKey.value = value.ref.retainAndReturnPointer(); } @@ -38415,131 +39013,165 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLIsSparseKey = _lookup('NSURLIsSparseKey'); - DartNSURLResourceKey get NSURLIsSparseKey => - objc.NSString.castFromPointer(_NSURLIsSparseKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLIsSparseKey => objc.NSString.castFromPointer( + _NSURLIsSparseKey.value, + retain: true, + release: true, + ); set NSURLIsSparseKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsSparseKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsSparseKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsSparseKey.value = value.ref.retainAndReturnPointer(); } /// The file system object type values returned for the NSURLFileResourceTypeKey late final ffi.Pointer - _NSURLFileResourceTypeNamedPipe = - _lookup('NSURLFileResourceTypeNamedPipe'); + _NSURLFileResourceTypeNamedPipe = _lookup( + 'NSURLFileResourceTypeNamedPipe', + ); DartNSURLFileResourceType get NSURLFileResourceTypeNamedPipe => - objc.NSString.castFromPointer(_NSURLFileResourceTypeNamedPipe.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeNamedPipe.value, + retain: true, + release: true, + ); set NSURLFileResourceTypeNamedPipe(DartNSURLFileResourceType value) { - objc.NSString.castFromPointer(_NSURLFileResourceTypeNamedPipe.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeNamedPipe.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileResourceTypeNamedPipe.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer - _NSURLFileResourceTypeCharacterSpecial = - _lookup('NSURLFileResourceTypeCharacterSpecial'); + _NSURLFileResourceTypeCharacterSpecial = _lookup( + 'NSURLFileResourceTypeCharacterSpecial', + ); DartNSURLFileResourceType get NSURLFileResourceTypeCharacterSpecial => objc.NSString.castFromPointer( - _NSURLFileResourceTypeCharacterSpecial.value, - retain: true, - release: true); + _NSURLFileResourceTypeCharacterSpecial.value, + retain: true, + release: true, + ); set NSURLFileResourceTypeCharacterSpecial(DartNSURLFileResourceType value) { - objc.NSString.castFromPointer(_NSURLFileResourceTypeCharacterSpecial.value, - retain: false, release: true) - .ref - .release(); - _NSURLFileResourceTypeCharacterSpecial.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeCharacterSpecial.value, + retain: false, + release: true, + ).ref.release(); + _NSURLFileResourceTypeCharacterSpecial.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSURLFileResourceTypeDirectory = - _lookup('NSURLFileResourceTypeDirectory'); + _NSURLFileResourceTypeDirectory = _lookup( + 'NSURLFileResourceTypeDirectory', + ); DartNSURLFileResourceType get NSURLFileResourceTypeDirectory => - objc.NSString.castFromPointer(_NSURLFileResourceTypeDirectory.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeDirectory.value, + retain: true, + release: true, + ); set NSURLFileResourceTypeDirectory(DartNSURLFileResourceType value) { - objc.NSString.castFromPointer(_NSURLFileResourceTypeDirectory.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeDirectory.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileResourceTypeDirectory.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer - _NSURLFileResourceTypeBlockSpecial = - _lookup('NSURLFileResourceTypeBlockSpecial'); + _NSURLFileResourceTypeBlockSpecial = _lookup( + 'NSURLFileResourceTypeBlockSpecial', + ); DartNSURLFileResourceType get NSURLFileResourceTypeBlockSpecial => - objc.NSString.castFromPointer(_NSURLFileResourceTypeBlockSpecial.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeBlockSpecial.value, + retain: true, + release: true, + ); set NSURLFileResourceTypeBlockSpecial(DartNSURLFileResourceType value) { - objc.NSString.castFromPointer(_NSURLFileResourceTypeBlockSpecial.value, - retain: false, release: true) - .ref - .release(); - _NSURLFileResourceTypeBlockSpecial.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeBlockSpecial.value, + retain: false, + release: true, + ).ref.release(); + _NSURLFileResourceTypeBlockSpecial.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer _NSURLFileResourceTypeRegular = _lookup('NSURLFileResourceTypeRegular'); DartNSURLFileResourceType get NSURLFileResourceTypeRegular => - objc.NSString.castFromPointer(_NSURLFileResourceTypeRegular.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeRegular.value, + retain: true, + release: true, + ); set NSURLFileResourceTypeRegular(DartNSURLFileResourceType value) { - objc.NSString.castFromPointer(_NSURLFileResourceTypeRegular.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeRegular.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileResourceTypeRegular.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer - _NSURLFileResourceTypeSymbolicLink = - _lookup('NSURLFileResourceTypeSymbolicLink'); + _NSURLFileResourceTypeSymbolicLink = _lookup( + 'NSURLFileResourceTypeSymbolicLink', + ); DartNSURLFileResourceType get NSURLFileResourceTypeSymbolicLink => - objc.NSString.castFromPointer(_NSURLFileResourceTypeSymbolicLink.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeSymbolicLink.value, + retain: true, + release: true, + ); set NSURLFileResourceTypeSymbolicLink(DartNSURLFileResourceType value) { - objc.NSString.castFromPointer(_NSURLFileResourceTypeSymbolicLink.value, - retain: false, release: true) - .ref - .release(); - _NSURLFileResourceTypeSymbolicLink.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeSymbolicLink.value, + retain: false, + release: true, + ).ref.release(); + _NSURLFileResourceTypeSymbolicLink.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer _NSURLFileResourceTypeSocket = _lookup('NSURLFileResourceTypeSocket'); DartNSURLFileResourceType get NSURLFileResourceTypeSocket => - objc.NSString.castFromPointer(_NSURLFileResourceTypeSocket.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeSocket.value, + retain: true, + release: true, + ); set NSURLFileResourceTypeSocket(DartNSURLFileResourceType value) { - objc.NSString.castFromPointer(_NSURLFileResourceTypeSocket.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeSocket.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileResourceTypeSocket.value = value.ref.retainAndReturnPointer(); } @@ -38547,14 +39179,18 @@ class NativeCupertinoHttp { _lookup('NSURLFileResourceTypeUnknown'); DartNSURLFileResourceType get NSURLFileResourceTypeUnknown => - objc.NSString.castFromPointer(_NSURLFileResourceTypeUnknown.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeUnknown.value, + retain: true, + release: true, + ); set NSURLFileResourceTypeUnknown(DartNSURLFileResourceType value) { - objc.NSString.castFromPointer(_NSURLFileResourceTypeUnknown.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileResourceTypeUnknown.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileResourceTypeUnknown.value = value.ref.retainAndReturnPointer(); } @@ -38563,14 +39199,18 @@ class NativeCupertinoHttp { _lookup('NSURLThumbnailDictionaryKey'); DartNSURLResourceKey get NSURLThumbnailDictionaryKey => - objc.NSString.castFromPointer(_NSURLThumbnailDictionaryKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLThumbnailDictionaryKey.value, + retain: true, + release: true, + ); set NSURLThumbnailDictionaryKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLThumbnailDictionaryKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLThumbnailDictionaryKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLThumbnailDictionaryKey.value = value.ref.retainAndReturnPointer(); } @@ -38578,32 +39218,40 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLThumbnailKey = _lookup('NSURLThumbnailKey'); - DartNSURLResourceKey get NSURLThumbnailKey => - objc.NSString.castFromPointer(_NSURLThumbnailKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLThumbnailKey => objc.NSString.castFromPointer( + _NSURLThumbnailKey.value, + retain: true, + release: true, + ); set NSURLThumbnailKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLThumbnailKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLThumbnailKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLThumbnailKey.value = value.ref.retainAndReturnPointer(); } /// size key for a 1024 x 1024 thumbnail image late final ffi.Pointer - _NSThumbnail1024x1024SizeKey = - _lookup('NSThumbnail1024x1024SizeKey'); + _NSThumbnail1024x1024SizeKey = _lookup( + 'NSThumbnail1024x1024SizeKey', + ); DartNSURLThumbnailDictionaryItem get NSThumbnail1024x1024SizeKey => - objc.NSString.castFromPointer(_NSThumbnail1024x1024SizeKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSThumbnail1024x1024SizeKey.value, + retain: true, + release: true, + ); set NSThumbnail1024x1024SizeKey(DartNSURLThumbnailDictionaryItem value) { - objc.NSString.castFromPointer(_NSThumbnail1024x1024SizeKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSThumbnail1024x1024SizeKey.value, + retain: false, + release: true, + ).ref.release(); _NSThumbnail1024x1024SizeKey.value = value.ref.retainAndReturnPointer(); } @@ -38611,15 +39259,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLFileSizeKey = _lookup('NSURLFileSizeKey'); - DartNSURLResourceKey get NSURLFileSizeKey => - objc.NSString.castFromPointer(_NSURLFileSizeKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLFileSizeKey => objc.NSString.castFromPointer( + _NSURLFileSizeKey.value, + retain: true, + release: true, + ); set NSURLFileSizeKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLFileSizeKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileSizeKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileSizeKey.value = value.ref.retainAndReturnPointer(); } @@ -38628,14 +39279,18 @@ class NativeCupertinoHttp { _lookup('NSURLFileAllocatedSizeKey'); DartNSURLResourceKey get NSURLFileAllocatedSizeKey => - objc.NSString.castFromPointer(_NSURLFileAllocatedSizeKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileAllocatedSizeKey.value, + retain: true, + release: true, + ); set NSURLFileAllocatedSizeKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLFileAllocatedSizeKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileAllocatedSizeKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileAllocatedSizeKey.value = value.ref.retainAndReturnPointer(); } @@ -38644,14 +39299,18 @@ class NativeCupertinoHttp { _lookup('NSURLTotalFileSizeKey'); DartNSURLResourceKey get NSURLTotalFileSizeKey => - objc.NSString.castFromPointer(_NSURLTotalFileSizeKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLTotalFileSizeKey.value, + retain: true, + release: true, + ); set NSURLTotalFileSizeKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLTotalFileSizeKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLTotalFileSizeKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLTotalFileSizeKey.value = value.ref.retainAndReturnPointer(); } @@ -38660,14 +39319,18 @@ class NativeCupertinoHttp { _lookup('NSURLTotalFileAllocatedSizeKey'); DartNSURLResourceKey get NSURLTotalFileAllocatedSizeKey => - objc.NSString.castFromPointer(_NSURLTotalFileAllocatedSizeKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLTotalFileAllocatedSizeKey.value, + retain: true, + release: true, + ); set NSURLTotalFileAllocatedSizeKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLTotalFileAllocatedSizeKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLTotalFileAllocatedSizeKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLTotalFileAllocatedSizeKey.value = value.ref.retainAndReturnPointer(); } @@ -38675,15 +39338,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLIsAliasFileKey = _lookup('NSURLIsAliasFileKey'); - DartNSURLResourceKey get NSURLIsAliasFileKey => - objc.NSString.castFromPointer(_NSURLIsAliasFileKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLIsAliasFileKey => objc.NSString.castFromPointer( + _NSURLIsAliasFileKey.value, + retain: true, + release: true, + ); set NSURLIsAliasFileKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsAliasFileKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsAliasFileKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsAliasFileKey.value = value.ref.retainAndReturnPointer(); } @@ -38692,14 +39358,18 @@ class NativeCupertinoHttp { _lookup('NSURLFileProtectionKey'); DartNSURLResourceKey get NSURLFileProtectionKey => - objc.NSString.castFromPointer(_NSURLFileProtectionKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileProtectionKey.value, + retain: true, + release: true, + ); set NSURLFileProtectionKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLFileProtectionKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileProtectionKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileProtectionKey.value = value.ref.retainAndReturnPointer(); } @@ -38708,14 +39378,18 @@ class NativeCupertinoHttp { _lookup('NSURLFileProtectionNone'); DartNSURLFileProtectionType get NSURLFileProtectionNone => - objc.NSString.castFromPointer(_NSURLFileProtectionNone.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileProtectionNone.value, + retain: true, + release: true, + ); set NSURLFileProtectionNone(DartNSURLFileProtectionType value) { - objc.NSString.castFromPointer(_NSURLFileProtectionNone.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileProtectionNone.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileProtectionNone.value = value.ref.retainAndReturnPointer(); } @@ -38724,84 +39398,95 @@ class NativeCupertinoHttp { _lookup('NSURLFileProtectionComplete'); DartNSURLFileProtectionType get NSURLFileProtectionComplete => - objc.NSString.castFromPointer(_NSURLFileProtectionComplete.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLFileProtectionComplete.value, + retain: true, + release: true, + ); set NSURLFileProtectionComplete(DartNSURLFileProtectionType value) { - objc.NSString.castFromPointer(_NSURLFileProtectionComplete.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLFileProtectionComplete.value, + retain: false, + release: true, + ).ref.release(); _NSURLFileProtectionComplete.value = value.ref.retainAndReturnPointer(); } /// The file is stored in an encrypted format on disk. Files can be created while the device is locked, but once closed, cannot be opened again until the device is unlocked. If the file is opened when unlocked, you may continue to access the file normally, even if the user locks the device. There is a small performance penalty when the file is created and opened, though not when being written to or read from. This can be mitigated by changing the file protection to NSURLFileProtectionComplete when the device is unlocked. Transient data files with this protection type should be excluded from backups using NSURLIsExcludedFromBackupKey. late final ffi.Pointer - _NSURLFileProtectionCompleteUnlessOpen = - _lookup('NSURLFileProtectionCompleteUnlessOpen'); + _NSURLFileProtectionCompleteUnlessOpen = _lookup( + 'NSURLFileProtectionCompleteUnlessOpen', + ); DartNSURLFileProtectionType get NSURLFileProtectionCompleteUnlessOpen => objc.NSString.castFromPointer( - _NSURLFileProtectionCompleteUnlessOpen.value, - retain: true, - release: true); + _NSURLFileProtectionCompleteUnlessOpen.value, + retain: true, + release: true, + ); set NSURLFileProtectionCompleteUnlessOpen(DartNSURLFileProtectionType value) { - objc.NSString.castFromPointer(_NSURLFileProtectionCompleteUnlessOpen.value, - retain: false, release: true) - .ref - .release(); - _NSURLFileProtectionCompleteUnlessOpen.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLFileProtectionCompleteUnlessOpen.value, + retain: false, + release: true, + ).ref.release(); + _NSURLFileProtectionCompleteUnlessOpen.value = value.ref + .retainAndReturnPointer(); } /// The file is stored in an encrypted format on disk and cannot be accessed until after the device has booted. After the user unlocks the device for the first time, your app can access the file and continue to access it even if the user subsequently locks the device. late final ffi.Pointer - _NSURLFileProtectionCompleteUntilFirstUserAuthentication = + _NSURLFileProtectionCompleteUntilFirstUserAuthentication = _lookup( - 'NSURLFileProtectionCompleteUntilFirstUserAuthentication'); + 'NSURLFileProtectionCompleteUntilFirstUserAuthentication', + ); DartNSURLFileProtectionType - get NSURLFileProtectionCompleteUntilFirstUserAuthentication => - objc.NSString.castFromPointer( - _NSURLFileProtectionCompleteUntilFirstUserAuthentication.value, - retain: true, - release: true); + get NSURLFileProtectionCompleteUntilFirstUserAuthentication => + objc.NSString.castFromPointer( + _NSURLFileProtectionCompleteUntilFirstUserAuthentication.value, + retain: true, + release: true, + ); set NSURLFileProtectionCompleteUntilFirstUserAuthentication( - DartNSURLFileProtectionType value) { + DartNSURLFileProtectionType value, + ) { objc.NSString.castFromPointer( - _NSURLFileProtectionCompleteUntilFirstUserAuthentication.value, - retain: false, - release: true) - .ref - .release(); - _NSURLFileProtectionCompleteUntilFirstUserAuthentication.value = - value.ref.retainAndReturnPointer(); + _NSURLFileProtectionCompleteUntilFirstUserAuthentication.value, + retain: false, + release: true, + ).ref.release(); + _NSURLFileProtectionCompleteUntilFirstUserAuthentication.value = value.ref + .retainAndReturnPointer(); } /// 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 = + _NSURLFileProtectionCompleteWhenUserInactive = _lookup( - 'NSURLFileProtectionCompleteWhenUserInactive'); + 'NSURLFileProtectionCompleteWhenUserInactive', + ); DartNSURLFileProtectionType get NSURLFileProtectionCompleteWhenUserInactive => objc.NSString.castFromPointer( - _NSURLFileProtectionCompleteWhenUserInactive.value, - retain: true, - release: true); + _NSURLFileProtectionCompleteWhenUserInactive.value, + retain: true, + release: true, + ); set NSURLFileProtectionCompleteWhenUserInactive( - DartNSURLFileProtectionType value) { + DartNSURLFileProtectionType value, + ) { objc.NSString.castFromPointer( - _NSURLFileProtectionCompleteWhenUserInactive.value, - retain: false, - release: true) - .ref - .release(); - _NSURLFileProtectionCompleteWhenUserInactive.value = - value.ref.retainAndReturnPointer(); + _NSURLFileProtectionCompleteWhenUserInactive.value, + retain: false, + release: true, + ).ref.release(); + _NSURLFileProtectionCompleteWhenUserInactive.value = value.ref + .retainAndReturnPointer(); } /// 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) @@ -38809,37 +39494,42 @@ class NativeCupertinoHttp { _lookup('NSURLDirectoryEntryCountKey'); DartNSURLResourceKey get NSURLDirectoryEntryCountKey => - objc.NSString.castFromPointer(_NSURLDirectoryEntryCountKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLDirectoryEntryCountKey.value, + retain: true, + release: true, + ); set NSURLDirectoryEntryCountKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLDirectoryEntryCountKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLDirectoryEntryCountKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLDirectoryEntryCountKey.value = value.ref.retainAndReturnPointer(); } /// The user-visible volume format (Read-only, value type NSString) late final ffi.Pointer - _NSURLVolumeLocalizedFormatDescriptionKey = - _lookup('NSURLVolumeLocalizedFormatDescriptionKey'); + _NSURLVolumeLocalizedFormatDescriptionKey = _lookup( + 'NSURLVolumeLocalizedFormatDescriptionKey', + ); DartNSURLResourceKey get NSURLVolumeLocalizedFormatDescriptionKey => objc.NSString.castFromPointer( - _NSURLVolumeLocalizedFormatDescriptionKey.value, - retain: true, - release: true); + _NSURLVolumeLocalizedFormatDescriptionKey.value, + retain: true, + release: true, + ); set NSURLVolumeLocalizedFormatDescriptionKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLVolumeLocalizedFormatDescriptionKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLVolumeLocalizedFormatDescriptionKey.value = - value.ref.retainAndReturnPointer(); + _NSURLVolumeLocalizedFormatDescriptionKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeLocalizedFormatDescriptionKey.value = value.ref + .retainAndReturnPointer(); } /// Total volume capacity in bytes (Read-only, value type NSNumber) @@ -38847,14 +39537,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeTotalCapacityKey'); DartNSURLResourceKey get NSURLVolumeTotalCapacityKey => - objc.NSString.castFromPointer(_NSURLVolumeTotalCapacityKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeTotalCapacityKey.value, + retain: true, + release: true, + ); set NSURLVolumeTotalCapacityKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeTotalCapacityKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeTotalCapacityKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeTotalCapacityKey.value = value.ref.retainAndReturnPointer(); } @@ -38863,14 +39557,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeAvailableCapacityKey'); DartNSURLResourceKey get NSURLVolumeAvailableCapacityKey => - objc.NSString.castFromPointer(_NSURLVolumeAvailableCapacityKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeAvailableCapacityKey.value, + retain: true, + release: true, + ); set NSURLVolumeAvailableCapacityKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeAvailableCapacityKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeAvailableCapacityKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeAvailableCapacityKey.value = value.ref.retainAndReturnPointer(); } @@ -38879,51 +39577,65 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeResourceCountKey'); DartNSURLResourceKey get NSURLVolumeResourceCountKey => - objc.NSString.castFromPointer(_NSURLVolumeResourceCountKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeResourceCountKey.value, + retain: true, + release: true, + ); set NSURLVolumeResourceCountKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeResourceCountKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeResourceCountKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeResourceCountKey.value = value.ref.retainAndReturnPointer(); } /// true if the volume format supports persistent object identifiers and can look up file system objects by their IDs (Read-only, value type boolean NSNumber) late final ffi.Pointer - _NSURLVolumeSupportsPersistentIDsKey = - _lookup('NSURLVolumeSupportsPersistentIDsKey'); + _NSURLVolumeSupportsPersistentIDsKey = _lookup( + 'NSURLVolumeSupportsPersistentIDsKey', + ); DartNSURLResourceKey get NSURLVolumeSupportsPersistentIDsKey => - objc.NSString.castFromPointer(_NSURLVolumeSupportsPersistentIDsKey.value, - retain: true, release: true); - + objc.NSString.castFromPointer( + _NSURLVolumeSupportsPersistentIDsKey.value, + retain: true, + release: true, + ); + set NSURLVolumeSupportsPersistentIDsKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsPersistentIDsKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLVolumeSupportsPersistentIDsKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsPersistentIDsKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsPersistentIDsKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume format supports symbolic links (Read-only, value type boolean NSNumber) late final ffi.Pointer - _NSURLVolumeSupportsSymbolicLinksKey = - _lookup('NSURLVolumeSupportsSymbolicLinksKey'); + _NSURLVolumeSupportsSymbolicLinksKey = _lookup( + 'NSURLVolumeSupportsSymbolicLinksKey', + ); DartNSURLResourceKey get NSURLVolumeSupportsSymbolicLinksKey => - objc.NSString.castFromPointer(_NSURLVolumeSupportsSymbolicLinksKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsSymbolicLinksKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsSymbolicLinksKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsSymbolicLinksKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLVolumeSupportsSymbolicLinksKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsSymbolicLinksKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsSymbolicLinksKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume format supports hard links (Read-only, value type boolean NSNumber) @@ -38931,14 +39643,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeSupportsHardLinksKey'); DartNSURLResourceKey get NSURLVolumeSupportsHardLinksKey => - objc.NSString.castFromPointer(_NSURLVolumeSupportsHardLinksKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsHardLinksKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsHardLinksKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsHardLinksKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsHardLinksKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeSupportsHardLinksKey.value = value.ref.retainAndReturnPointer(); } @@ -38947,16 +39663,20 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeSupportsJournalingKey'); DartNSURLResourceKey get NSURLVolumeSupportsJournalingKey => - objc.NSString.castFromPointer(_NSURLVolumeSupportsJournalingKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsJournalingKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsJournalingKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsJournalingKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLVolumeSupportsJournalingKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsJournalingKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsJournalingKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume is currently using a journal for speedy recovery after an unplanned restart. (Read-only, value type boolean NSNumber) @@ -38964,14 +39684,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeIsJournalingKey'); DartNSURLResourceKey get NSURLVolumeIsJournalingKey => - objc.NSString.castFromPointer(_NSURLVolumeIsJournalingKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeIsJournalingKey.value, + retain: true, + release: true, + ); set NSURLVolumeIsJournalingKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeIsJournalingKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeIsJournalingKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeIsJournalingKey.value = value.ref.retainAndReturnPointer(); } @@ -38980,16 +39704,20 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeSupportsSparseFilesKey'); DartNSURLResourceKey get NSURLVolumeSupportsSparseFilesKey => - objc.NSString.castFromPointer(_NSURLVolumeSupportsSparseFilesKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsSparseFilesKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsSparseFilesKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsSparseFilesKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLVolumeSupportsSparseFilesKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsSparseFilesKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsSparseFilesKey.value = value.ref + .retainAndReturnPointer(); } /// For security reasons, parts of a file (runs) that have never been written to must appear to contain zeroes. true if the volume keeps track of allocated but unwritten runs of a file so that it can substitute zeroes without actually writing zeroes to the media. (Read-only, value type boolean NSNumber) @@ -38997,81 +39725,88 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeSupportsZeroRunsKey'); DartNSURLResourceKey get NSURLVolumeSupportsZeroRunsKey => - objc.NSString.castFromPointer(_NSURLVolumeSupportsZeroRunsKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsZeroRunsKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsZeroRunsKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsZeroRunsKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsZeroRunsKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeSupportsZeroRunsKey.value = value.ref.retainAndReturnPointer(); } /// true if the volume format treats upper and lower case characters in file and directory names as different. Otherwise an upper case character is equivalent to a lower case character, and you can't have two names that differ solely in the case of the characters. (Read-only, value type boolean NSNumber) late final ffi.Pointer - _NSURLVolumeSupportsCaseSensitiveNamesKey = - _lookup('NSURLVolumeSupportsCaseSensitiveNamesKey'); + _NSURLVolumeSupportsCaseSensitiveNamesKey = _lookup( + 'NSURLVolumeSupportsCaseSensitiveNamesKey', + ); DartNSURLResourceKey get NSURLVolumeSupportsCaseSensitiveNamesKey => objc.NSString.castFromPointer( - _NSURLVolumeSupportsCaseSensitiveNamesKey.value, - retain: true, - release: true); + _NSURLVolumeSupportsCaseSensitiveNamesKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsCaseSensitiveNamesKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLVolumeSupportsCaseSensitiveNamesKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLVolumeSupportsCaseSensitiveNamesKey.value = - value.ref.retainAndReturnPointer(); + _NSURLVolumeSupportsCaseSensitiveNamesKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsCaseSensitiveNamesKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume format preserves the case of file and directory names. Otherwise the volume may change the case of some characters (typically making them all upper or all lower case). (Read-only, value type boolean NSNumber) late final ffi.Pointer - _NSURLVolumeSupportsCasePreservedNamesKey = - _lookup('NSURLVolumeSupportsCasePreservedNamesKey'); + _NSURLVolumeSupportsCasePreservedNamesKey = _lookup( + 'NSURLVolumeSupportsCasePreservedNamesKey', + ); DartNSURLResourceKey get NSURLVolumeSupportsCasePreservedNamesKey => objc.NSString.castFromPointer( - _NSURLVolumeSupportsCasePreservedNamesKey.value, - retain: true, - release: true); + _NSURLVolumeSupportsCasePreservedNamesKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsCasePreservedNamesKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLVolumeSupportsCasePreservedNamesKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLVolumeSupportsCasePreservedNamesKey.value = - value.ref.retainAndReturnPointer(); + _NSURLVolumeSupportsCasePreservedNamesKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsCasePreservedNamesKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume supports reliable storage of times for the root directory. (Read-only, value type boolean NSNumber) late final ffi.Pointer - _NSURLVolumeSupportsRootDirectoryDatesKey = - _lookup('NSURLVolumeSupportsRootDirectoryDatesKey'); + _NSURLVolumeSupportsRootDirectoryDatesKey = _lookup( + 'NSURLVolumeSupportsRootDirectoryDatesKey', + ); DartNSURLResourceKey get NSURLVolumeSupportsRootDirectoryDatesKey => objc.NSString.castFromPointer( - _NSURLVolumeSupportsRootDirectoryDatesKey.value, - retain: true, - release: true); + _NSURLVolumeSupportsRootDirectoryDatesKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsRootDirectoryDatesKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLVolumeSupportsRootDirectoryDatesKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLVolumeSupportsRootDirectoryDatesKey.value = - value.ref.retainAndReturnPointer(); + _NSURLVolumeSupportsRootDirectoryDatesKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsRootDirectoryDatesKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume supports returning volume size values (NSURLVolumeTotalCapacityKey and NSURLVolumeAvailableCapacityKey). (Read-only, value type boolean NSNumber) @@ -39079,16 +39814,20 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeSupportsVolumeSizesKey'); DartNSURLResourceKey get NSURLVolumeSupportsVolumeSizesKey => - objc.NSString.castFromPointer(_NSURLVolumeSupportsVolumeSizesKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsVolumeSizesKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsVolumeSizesKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsVolumeSizesKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLVolumeSupportsVolumeSizesKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsVolumeSizesKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsVolumeSizesKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume can be renamed. (Read-only, value type boolean NSNumber) @@ -39096,57 +39835,65 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeSupportsRenamingKey'); DartNSURLResourceKey get NSURLVolumeSupportsRenamingKey => - objc.NSString.castFromPointer(_NSURLVolumeSupportsRenamingKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsRenamingKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsRenamingKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsRenamingKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsRenamingKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeSupportsRenamingKey.value = value.ref.retainAndReturnPointer(); } /// true if the volume implements whole-file flock(2) style advisory locks, and the O_EXLOCK and O_SHLOCK flags of the open(2) call. (Read-only, value type boolean NSNumber) late final ffi.Pointer - _NSURLVolumeSupportsAdvisoryFileLockingKey = - _lookup('NSURLVolumeSupportsAdvisoryFileLockingKey'); + _NSURLVolumeSupportsAdvisoryFileLockingKey = _lookup( + 'NSURLVolumeSupportsAdvisoryFileLockingKey', + ); DartNSURLResourceKey get NSURLVolumeSupportsAdvisoryFileLockingKey => objc.NSString.castFromPointer( - _NSURLVolumeSupportsAdvisoryFileLockingKey.value, - retain: true, - release: true); + _NSURLVolumeSupportsAdvisoryFileLockingKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsAdvisoryFileLockingKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLVolumeSupportsAdvisoryFileLockingKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLVolumeSupportsAdvisoryFileLockingKey.value = - value.ref.retainAndReturnPointer(); + _NSURLVolumeSupportsAdvisoryFileLockingKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsAdvisoryFileLockingKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume implements extended security (ACLs). (Read-only, value type boolean NSNumber) late final ffi.Pointer - _NSURLVolumeSupportsExtendedSecurityKey = - _lookup('NSURLVolumeSupportsExtendedSecurityKey'); + _NSURLVolumeSupportsExtendedSecurityKey = _lookup( + 'NSURLVolumeSupportsExtendedSecurityKey', + ); DartNSURLResourceKey get NSURLVolumeSupportsExtendedSecurityKey => objc.NSString.castFromPointer( - _NSURLVolumeSupportsExtendedSecurityKey.value, - retain: true, - release: true); + _NSURLVolumeSupportsExtendedSecurityKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsExtendedSecurityKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsExtendedSecurityKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLVolumeSupportsExtendedSecurityKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsExtendedSecurityKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsExtendedSecurityKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume should be visible via the GUI (i.e., appear on the Desktop as a separate volume). (Read-only, value type boolean NSNumber) @@ -39154,14 +39901,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeIsBrowsableKey'); DartNSURLResourceKey get NSURLVolumeIsBrowsableKey => - objc.NSString.castFromPointer(_NSURLVolumeIsBrowsableKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeIsBrowsableKey.value, + retain: true, + release: true, + ); set NSURLVolumeIsBrowsableKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeIsBrowsableKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeIsBrowsableKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeIsBrowsableKey.value = value.ref.retainAndReturnPointer(); } @@ -39170,14 +39921,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeMaximumFileSizeKey'); DartNSURLResourceKey get NSURLVolumeMaximumFileSizeKey => - objc.NSString.castFromPointer(_NSURLVolumeMaximumFileSizeKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeMaximumFileSizeKey.value, + retain: true, + release: true, + ); set NSURLVolumeMaximumFileSizeKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeMaximumFileSizeKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeMaximumFileSizeKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeMaximumFileSizeKey.value = value.ref.retainAndReturnPointer(); } @@ -39186,14 +39941,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeIsEjectableKey'); DartNSURLResourceKey get NSURLVolumeIsEjectableKey => - objc.NSString.castFromPointer(_NSURLVolumeIsEjectableKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeIsEjectableKey.value, + retain: true, + release: true, + ); set NSURLVolumeIsEjectableKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeIsEjectableKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeIsEjectableKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeIsEjectableKey.value = value.ref.retainAndReturnPointer(); } @@ -39202,14 +39961,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeIsRemovableKey'); DartNSURLResourceKey get NSURLVolumeIsRemovableKey => - objc.NSString.castFromPointer(_NSURLVolumeIsRemovableKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeIsRemovableKey.value, + retain: true, + release: true, + ); set NSURLVolumeIsRemovableKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeIsRemovableKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeIsRemovableKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeIsRemovableKey.value = value.ref.retainAndReturnPointer(); } @@ -39218,14 +39981,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeIsInternalKey'); DartNSURLResourceKey get NSURLVolumeIsInternalKey => - objc.NSString.castFromPointer(_NSURLVolumeIsInternalKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeIsInternalKey.value, + retain: true, + release: true, + ); set NSURLVolumeIsInternalKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeIsInternalKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeIsInternalKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeIsInternalKey.value = value.ref.retainAndReturnPointer(); } @@ -39234,14 +40001,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeIsAutomountedKey'); DartNSURLResourceKey get NSURLVolumeIsAutomountedKey => - objc.NSString.castFromPointer(_NSURLVolumeIsAutomountedKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeIsAutomountedKey.value, + retain: true, + release: true, + ); set NSURLVolumeIsAutomountedKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeIsAutomountedKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeIsAutomountedKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeIsAutomountedKey.value = value.ref.retainAndReturnPointer(); } @@ -39250,14 +40021,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeIsLocalKey'); DartNSURLResourceKey get NSURLVolumeIsLocalKey => - objc.NSString.castFromPointer(_NSURLVolumeIsLocalKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeIsLocalKey.value, + retain: true, + release: true, + ); set NSURLVolumeIsLocalKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeIsLocalKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeIsLocalKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeIsLocalKey.value = value.ref.retainAndReturnPointer(); } @@ -39266,14 +40041,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeIsReadOnlyKey'); DartNSURLResourceKey get NSURLVolumeIsReadOnlyKey => - objc.NSString.castFromPointer(_NSURLVolumeIsReadOnlyKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeIsReadOnlyKey.value, + retain: true, + release: true, + ); set NSURLVolumeIsReadOnlyKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeIsReadOnlyKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeIsReadOnlyKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeIsReadOnlyKey.value = value.ref.retainAndReturnPointer(); } @@ -39282,14 +40061,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeCreationDateKey'); DartNSURLResourceKey get NSURLVolumeCreationDateKey => - objc.NSString.castFromPointer(_NSURLVolumeCreationDateKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeCreationDateKey.value, + retain: true, + release: true, + ); set NSURLVolumeCreationDateKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeCreationDateKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeCreationDateKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeCreationDateKey.value = value.ref.retainAndReturnPointer(); } @@ -39298,14 +40081,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeURLForRemountingKey'); DartNSURLResourceKey get NSURLVolumeURLForRemountingKey => - objc.NSString.castFromPointer(_NSURLVolumeURLForRemountingKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeURLForRemountingKey.value, + retain: true, + release: true, + ); set NSURLVolumeURLForRemountingKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeURLForRemountingKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeURLForRemountingKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeURLForRemountingKey.value = value.ref.retainAndReturnPointer(); } @@ -39314,14 +40101,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeUUIDStringKey'); DartNSURLResourceKey get NSURLVolumeUUIDStringKey => - objc.NSString.castFromPointer(_NSURLVolumeUUIDStringKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeUUIDStringKey.value, + retain: true, + release: true, + ); set NSURLVolumeUUIDStringKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeUUIDStringKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeUUIDStringKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeUUIDStringKey.value = value.ref.retainAndReturnPointer(); } @@ -39329,15 +40120,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLVolumeNameKey = _lookup('NSURLVolumeNameKey'); - DartNSURLResourceKey get NSURLVolumeNameKey => - objc.NSString.castFromPointer(_NSURLVolumeNameKey.value, - retain: true, release: true); + DartNSURLResourceKey get NSURLVolumeNameKey => objc.NSString.castFromPointer( + _NSURLVolumeNameKey.value, + retain: true, + release: true, + ); set NSURLVolumeNameKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeNameKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeNameKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeNameKey.value = value.ref.retainAndReturnPointer(); } @@ -39346,14 +40140,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeLocalizedNameKey'); DartNSURLResourceKey get NSURLVolumeLocalizedNameKey => - objc.NSString.castFromPointer(_NSURLVolumeLocalizedNameKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeLocalizedNameKey.value, + retain: true, + release: true, + ); set NSURLVolumeLocalizedNameKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeLocalizedNameKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeLocalizedNameKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeLocalizedNameKey.value = value.ref.retainAndReturnPointer(); } @@ -39362,14 +40160,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeIsEncryptedKey'); DartNSURLResourceKey get NSURLVolumeIsEncryptedKey => - objc.NSString.castFromPointer(_NSURLVolumeIsEncryptedKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeIsEncryptedKey.value, + retain: true, + release: true, + ); set NSURLVolumeIsEncryptedKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeIsEncryptedKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeIsEncryptedKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeIsEncryptedKey.value = value.ref.retainAndReturnPointer(); } @@ -39378,14 +40180,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeIsRootFileSystemKey'); DartNSURLResourceKey get NSURLVolumeIsRootFileSystemKey => - objc.NSString.castFromPointer(_NSURLVolumeIsRootFileSystemKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeIsRootFileSystemKey.value, + retain: true, + release: true, + ); set NSURLVolumeIsRootFileSystemKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeIsRootFileSystemKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeIsRootFileSystemKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeIsRootFileSystemKey.value = value.ref.retainAndReturnPointer(); } @@ -39394,16 +40200,20 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeSupportsCompressionKey'); DartNSURLResourceKey get NSURLVolumeSupportsCompressionKey => - objc.NSString.castFromPointer(_NSURLVolumeSupportsCompressionKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsCompressionKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsCompressionKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsCompressionKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLVolumeSupportsCompressionKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsCompressionKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsCompressionKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume supports clonefile(2) (Read-only, value type boolean NSNumber) @@ -39411,16 +40221,20 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeSupportsFileCloningKey'); DartNSURLResourceKey get NSURLVolumeSupportsFileCloningKey => - objc.NSString.castFromPointer(_NSURLVolumeSupportsFileCloningKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsFileCloningKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsFileCloningKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsFileCloningKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLVolumeSupportsFileCloningKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsFileCloningKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsFileCloningKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume supports renamex_np(2)'s RENAME_SWAP option (Read-only, value type boolean NSNumber) @@ -39428,145 +40242,164 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeSupportsSwapRenamingKey'); DartNSURLResourceKey get NSURLVolumeSupportsSwapRenamingKey => - objc.NSString.castFromPointer(_NSURLVolumeSupportsSwapRenamingKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsSwapRenamingKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsSwapRenamingKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsSwapRenamingKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLVolumeSupportsSwapRenamingKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsSwapRenamingKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsSwapRenamingKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume supports renamex_np(2)'s RENAME_EXCL option (Read-only, value type boolean NSNumber) late final ffi.Pointer - _NSURLVolumeSupportsExclusiveRenamingKey = - _lookup('NSURLVolumeSupportsExclusiveRenamingKey'); + _NSURLVolumeSupportsExclusiveRenamingKey = _lookup( + 'NSURLVolumeSupportsExclusiveRenamingKey', + ); DartNSURLResourceKey get NSURLVolumeSupportsExclusiveRenamingKey => objc.NSString.castFromPointer( - _NSURLVolumeSupportsExclusiveRenamingKey.value, - retain: true, - release: true); + _NSURLVolumeSupportsExclusiveRenamingKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsExclusiveRenamingKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLVolumeSupportsExclusiveRenamingKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLVolumeSupportsExclusiveRenamingKey.value = - value.ref.retainAndReturnPointer(); + _NSURLVolumeSupportsExclusiveRenamingKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsExclusiveRenamingKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume supports making files immutable with the NSURLIsUserImmutableKey or NSURLIsSystemImmutableKey properties (Read-only, value type boolean NSNumber) late final ffi.Pointer - _NSURLVolumeSupportsImmutableFilesKey = - _lookup('NSURLVolumeSupportsImmutableFilesKey'); + _NSURLVolumeSupportsImmutableFilesKey = _lookup( + 'NSURLVolumeSupportsImmutableFilesKey', + ); DartNSURLResourceKey get NSURLVolumeSupportsImmutableFilesKey => - objc.NSString.castFromPointer(_NSURLVolumeSupportsImmutableFilesKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsImmutableFilesKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsImmutableFilesKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsImmutableFilesKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLVolumeSupportsImmutableFilesKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsImmutableFilesKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsImmutableFilesKey.value = value.ref + .retainAndReturnPointer(); } /// true if the volume supports setting POSIX access permissions with the NSURLFileSecurityKey property (Read-only, value type boolean NSNumber) late final ffi.Pointer - _NSURLVolumeSupportsAccessPermissionsKey = - _lookup('NSURLVolumeSupportsAccessPermissionsKey'); + _NSURLVolumeSupportsAccessPermissionsKey = _lookup( + 'NSURLVolumeSupportsAccessPermissionsKey', + ); DartNSURLResourceKey get NSURLVolumeSupportsAccessPermissionsKey => objc.NSString.castFromPointer( - _NSURLVolumeSupportsAccessPermissionsKey.value, - retain: true, - release: true); + _NSURLVolumeSupportsAccessPermissionsKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsAccessPermissionsKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLVolumeSupportsAccessPermissionsKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLVolumeSupportsAccessPermissionsKey.value = - value.ref.retainAndReturnPointer(); + _NSURLVolumeSupportsAccessPermissionsKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsAccessPermissionsKey.value = value.ref + .retainAndReturnPointer(); } /// True if the volume supports the File Protection attribute (see NSURLFileProtectionKey). (Read-only, value type NSNumber) late final ffi.Pointer - _NSURLVolumeSupportsFileProtectionKey = - _lookup('NSURLVolumeSupportsFileProtectionKey'); + _NSURLVolumeSupportsFileProtectionKey = _lookup( + 'NSURLVolumeSupportsFileProtectionKey', + ); DartNSURLResourceKey get NSURLVolumeSupportsFileProtectionKey => - objc.NSString.castFromPointer(_NSURLVolumeSupportsFileProtectionKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsFileProtectionKey.value, + retain: true, + release: true, + ); set NSURLVolumeSupportsFileProtectionKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSupportsFileProtectionKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLVolumeSupportsFileProtectionKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLVolumeSupportsFileProtectionKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeSupportsFileProtectionKey.value = value.ref + .retainAndReturnPointer(); } /// (Read-only, value type NSNumber) late final ffi.Pointer - _NSURLVolumeAvailableCapacityForImportantUsageKey = - _lookup( - 'NSURLVolumeAvailableCapacityForImportantUsageKey'); + _NSURLVolumeAvailableCapacityForImportantUsageKey = _lookup( + 'NSURLVolumeAvailableCapacityForImportantUsageKey', + ); DartNSURLResourceKey get NSURLVolumeAvailableCapacityForImportantUsageKey => objc.NSString.castFromPointer( - _NSURLVolumeAvailableCapacityForImportantUsageKey.value, - retain: true, - release: true); + _NSURLVolumeAvailableCapacityForImportantUsageKey.value, + retain: true, + release: true, + ); set NSURLVolumeAvailableCapacityForImportantUsageKey( - DartNSURLResourceKey value) { + DartNSURLResourceKey value, + ) { objc.NSString.castFromPointer( - _NSURLVolumeAvailableCapacityForImportantUsageKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLVolumeAvailableCapacityForImportantUsageKey.value = - value.ref.retainAndReturnPointer(); + _NSURLVolumeAvailableCapacityForImportantUsageKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeAvailableCapacityForImportantUsageKey.value = value.ref + .retainAndReturnPointer(); } /// (Read-only, value type NSNumber) late final ffi.Pointer - _NSURLVolumeAvailableCapacityForOpportunisticUsageKey = + _NSURLVolumeAvailableCapacityForOpportunisticUsageKey = _lookup( - 'NSURLVolumeAvailableCapacityForOpportunisticUsageKey'); + 'NSURLVolumeAvailableCapacityForOpportunisticUsageKey', + ); DartNSURLResourceKey - get NSURLVolumeAvailableCapacityForOpportunisticUsageKey => - objc.NSString.castFromPointer( - _NSURLVolumeAvailableCapacityForOpportunisticUsageKey.value, - retain: true, - release: true); + get NSURLVolumeAvailableCapacityForOpportunisticUsageKey => + objc.NSString.castFromPointer( + _NSURLVolumeAvailableCapacityForOpportunisticUsageKey.value, + retain: true, + release: true, + ); set NSURLVolumeAvailableCapacityForOpportunisticUsageKey( - DartNSURLResourceKey value) { + DartNSURLResourceKey value, + ) { objc.NSString.castFromPointer( - _NSURLVolumeAvailableCapacityForOpportunisticUsageKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLVolumeAvailableCapacityForOpportunisticUsageKey.value = - value.ref.retainAndReturnPointer(); + _NSURLVolumeAvailableCapacityForOpportunisticUsageKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLVolumeAvailableCapacityForOpportunisticUsageKey.value = value.ref + .retainAndReturnPointer(); } /// The name of the file system type. (Read-only, value type NSString) @@ -39574,14 +40407,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeTypeNameKey'); DartNSURLResourceKey get NSURLVolumeTypeNameKey => - objc.NSString.castFromPointer(_NSURLVolumeTypeNameKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeTypeNameKey.value, + retain: true, + release: true, + ); set NSURLVolumeTypeNameKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeTypeNameKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeTypeNameKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeTypeNameKey.value = value.ref.retainAndReturnPointer(); } @@ -39590,14 +40427,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeSubtypeKey'); DartNSURLResourceKey get NSURLVolumeSubtypeKey => - objc.NSString.castFromPointer(_NSURLVolumeSubtypeKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeSubtypeKey.value, + retain: true, + release: true, + ); set NSURLVolumeSubtypeKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeSubtypeKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeSubtypeKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeSubtypeKey.value = value.ref.retainAndReturnPointer(); } @@ -39606,14 +40447,18 @@ class NativeCupertinoHttp { _lookup('NSURLVolumeMountFromLocationKey'); DartNSURLResourceKey get NSURLVolumeMountFromLocationKey => - objc.NSString.castFromPointer(_NSURLVolumeMountFromLocationKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLVolumeMountFromLocationKey.value, + retain: true, + release: true, + ); set NSURLVolumeMountFromLocationKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLVolumeMountFromLocationKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLVolumeMountFromLocationKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLVolumeMountFromLocationKey.value = value.ref.retainAndReturnPointer(); } @@ -39622,37 +40467,42 @@ class NativeCupertinoHttp { _lookup('NSURLIsUbiquitousItemKey'); DartNSURLResourceKey get NSURLIsUbiquitousItemKey => - objc.NSString.castFromPointer(_NSURLIsUbiquitousItemKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLIsUbiquitousItemKey.value, + retain: true, + release: true, + ); set NSURLIsUbiquitousItemKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLIsUbiquitousItemKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLIsUbiquitousItemKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLIsUbiquitousItemKey.value = value.ref.retainAndReturnPointer(); } /// true if this item has conflicts outstanding. (Read-only, value type boolean NSNumber) late final ffi.Pointer - _NSURLUbiquitousItemHasUnresolvedConflictsKey = - _lookup('NSURLUbiquitousItemHasUnresolvedConflictsKey'); + _NSURLUbiquitousItemHasUnresolvedConflictsKey = _lookup( + 'NSURLUbiquitousItemHasUnresolvedConflictsKey', + ); DartNSURLResourceKey get NSURLUbiquitousItemHasUnresolvedConflictsKey => objc.NSString.castFromPointer( - _NSURLUbiquitousItemHasUnresolvedConflictsKey.value, - retain: true, - release: true); + _NSURLUbiquitousItemHasUnresolvedConflictsKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemHasUnresolvedConflictsKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLUbiquitousItemHasUnresolvedConflictsKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousItemHasUnresolvedConflictsKey.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousItemHasUnresolvedConflictsKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemHasUnresolvedConflictsKey.value = value.ref + .retainAndReturnPointer(); } /// equivalent to NSURLUbiquitousItemDownloadingStatusKey == NSURLUbiquitousItemDownloadingStatusCurrent. Has never behaved as documented in earlier releases, hence deprecated. (Read-only, value type boolean NSNumber) @@ -39660,34 +40510,43 @@ class NativeCupertinoHttp { _lookup('NSURLUbiquitousItemIsDownloadedKey'); DartNSURLResourceKey get NSURLUbiquitousItemIsDownloadedKey => - objc.NSString.castFromPointer(_NSURLUbiquitousItemIsDownloadedKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemIsDownloadedKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemIsDownloadedKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLUbiquitousItemIsDownloadedKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLUbiquitousItemIsDownloadedKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemIsDownloadedKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemIsDownloadedKey.value = value.ref + .retainAndReturnPointer(); } /// true if data is being downloaded for this item. (Read-only, value type boolean NSNumber) late final ffi.Pointer - _NSURLUbiquitousItemIsDownloadingKey = - _lookup('NSURLUbiquitousItemIsDownloadingKey'); + _NSURLUbiquitousItemIsDownloadingKey = _lookup( + 'NSURLUbiquitousItemIsDownloadingKey', + ); DartNSURLResourceKey get NSURLUbiquitousItemIsDownloadingKey => - objc.NSString.castFromPointer(_NSURLUbiquitousItemIsDownloadingKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemIsDownloadingKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemIsDownloadingKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLUbiquitousItemIsDownloadingKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLUbiquitousItemIsDownloadingKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemIsDownloadingKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemIsDownloadingKey.value = value.ref + .retainAndReturnPointer(); } /// true if there is data present in the cloud for this item. (Read-only, value type boolean NSNumber) @@ -39695,16 +40554,20 @@ class NativeCupertinoHttp { _lookup('NSURLUbiquitousItemIsUploadedKey'); DartNSURLResourceKey get NSURLUbiquitousItemIsUploadedKey => - objc.NSString.castFromPointer(_NSURLUbiquitousItemIsUploadedKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemIsUploadedKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemIsUploadedKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLUbiquitousItemIsUploadedKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLUbiquitousItemIsUploadedKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemIsUploadedKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemIsUploadedKey.value = value.ref + .retainAndReturnPointer(); } /// true if data is being uploaded for this item. (Read-only, value type boolean NSNumber) @@ -39712,184 +40575,204 @@ class NativeCupertinoHttp { _lookup('NSURLUbiquitousItemIsUploadingKey'); DartNSURLResourceKey get NSURLUbiquitousItemIsUploadingKey => - objc.NSString.castFromPointer(_NSURLUbiquitousItemIsUploadingKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemIsUploadingKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemIsUploadingKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLUbiquitousItemIsUploadingKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLUbiquitousItemIsUploadingKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemIsUploadingKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemIsUploadingKey.value = value.ref + .retainAndReturnPointer(); } /// Use NSMetadataQuery and NSMetadataUbiquitousItemPercentDownloadedKey on NSMetadataItem instead late final ffi.Pointer - _NSURLUbiquitousItemPercentDownloadedKey = - _lookup('NSURLUbiquitousItemPercentDownloadedKey'); + _NSURLUbiquitousItemPercentDownloadedKey = _lookup( + 'NSURLUbiquitousItemPercentDownloadedKey', + ); DartNSURLResourceKey get NSURLUbiquitousItemPercentDownloadedKey => objc.NSString.castFromPointer( - _NSURLUbiquitousItemPercentDownloadedKey.value, - retain: true, - release: true); + _NSURLUbiquitousItemPercentDownloadedKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemPercentDownloadedKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLUbiquitousItemPercentDownloadedKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousItemPercentDownloadedKey.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousItemPercentDownloadedKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemPercentDownloadedKey.value = value.ref + .retainAndReturnPointer(); } /// Use NSMetadataQuery and NSMetadataUbiquitousItemPercentUploadedKey on NSMetadataItem instead late final ffi.Pointer - _NSURLUbiquitousItemPercentUploadedKey = - _lookup('NSURLUbiquitousItemPercentUploadedKey'); + _NSURLUbiquitousItemPercentUploadedKey = _lookup( + 'NSURLUbiquitousItemPercentUploadedKey', + ); DartNSURLResourceKey get NSURLUbiquitousItemPercentUploadedKey => objc.NSString.castFromPointer( - _NSURLUbiquitousItemPercentUploadedKey.value, - retain: true, - release: true); + _NSURLUbiquitousItemPercentUploadedKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemPercentUploadedKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLUbiquitousItemPercentUploadedKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLUbiquitousItemPercentUploadedKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemPercentUploadedKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemPercentUploadedKey.value = value.ref + .retainAndReturnPointer(); } /// returns the download status of this item. (Read-only, value type NSString). Possible values below. late final ffi.Pointer - _NSURLUbiquitousItemDownloadingStatusKey = - _lookup('NSURLUbiquitousItemDownloadingStatusKey'); + _NSURLUbiquitousItemDownloadingStatusKey = _lookup( + 'NSURLUbiquitousItemDownloadingStatusKey', + ); DartNSURLResourceKey get NSURLUbiquitousItemDownloadingStatusKey => objc.NSString.castFromPointer( - _NSURLUbiquitousItemDownloadingStatusKey.value, - retain: true, - release: true); + _NSURLUbiquitousItemDownloadingStatusKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemDownloadingStatusKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLUbiquitousItemDownloadingStatusKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousItemDownloadingStatusKey.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousItemDownloadingStatusKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemDownloadingStatusKey.value = value.ref + .retainAndReturnPointer(); } /// returns the error when downloading the item from iCloud failed, see the NSUbiquitousFile section in FoundationErrors.h (Read-only, value type NSError) late final ffi.Pointer - _NSURLUbiquitousItemDownloadingErrorKey = - _lookup('NSURLUbiquitousItemDownloadingErrorKey'); + _NSURLUbiquitousItemDownloadingErrorKey = _lookup( + 'NSURLUbiquitousItemDownloadingErrorKey', + ); DartNSURLResourceKey get NSURLUbiquitousItemDownloadingErrorKey => objc.NSString.castFromPointer( - _NSURLUbiquitousItemDownloadingErrorKey.value, - retain: true, - release: true); + _NSURLUbiquitousItemDownloadingErrorKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemDownloadingErrorKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLUbiquitousItemDownloadingErrorKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLUbiquitousItemDownloadingErrorKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemDownloadingErrorKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemDownloadingErrorKey.value = value.ref + .retainAndReturnPointer(); } /// returns the error when uploading the item to iCloud failed, see the NSUbiquitousFile section in FoundationErrors.h (Read-only, value type NSError) late final ffi.Pointer - _NSURLUbiquitousItemUploadingErrorKey = - _lookup('NSURLUbiquitousItemUploadingErrorKey'); + _NSURLUbiquitousItemUploadingErrorKey = _lookup( + 'NSURLUbiquitousItemUploadingErrorKey', + ); DartNSURLResourceKey get NSURLUbiquitousItemUploadingErrorKey => - objc.NSString.castFromPointer(_NSURLUbiquitousItemUploadingErrorKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemUploadingErrorKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemUploadingErrorKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLUbiquitousItemUploadingErrorKey.value, - retain: false, release: true) - .ref - .release(); - _NSURLUbiquitousItemUploadingErrorKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemUploadingErrorKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemUploadingErrorKey.value = value.ref + .retainAndReturnPointer(); } /// returns whether a download of this item has already been requested with an API like -startDownloadingUbiquitousItemAtURL:error: (Read-only, value type boolean NSNumber) late final ffi.Pointer - _NSURLUbiquitousItemDownloadRequestedKey = - _lookup('NSURLUbiquitousItemDownloadRequestedKey'); + _NSURLUbiquitousItemDownloadRequestedKey = _lookup( + 'NSURLUbiquitousItemDownloadRequestedKey', + ); DartNSURLResourceKey get NSURLUbiquitousItemDownloadRequestedKey => objc.NSString.castFromPointer( - _NSURLUbiquitousItemDownloadRequestedKey.value, - retain: true, - release: true); + _NSURLUbiquitousItemDownloadRequestedKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemDownloadRequestedKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLUbiquitousItemDownloadRequestedKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousItemDownloadRequestedKey.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousItemDownloadRequestedKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemDownloadRequestedKey.value = value.ref + .retainAndReturnPointer(); } /// returns the name of this item's container as displayed to users. late final ffi.Pointer - _NSURLUbiquitousItemContainerDisplayNameKey = - _lookup('NSURLUbiquitousItemContainerDisplayNameKey'); + _NSURLUbiquitousItemContainerDisplayNameKey = _lookup( + 'NSURLUbiquitousItemContainerDisplayNameKey', + ); DartNSURLResourceKey get NSURLUbiquitousItemContainerDisplayNameKey => objc.NSString.castFromPointer( - _NSURLUbiquitousItemContainerDisplayNameKey.value, - retain: true, - release: true); + _NSURLUbiquitousItemContainerDisplayNameKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemContainerDisplayNameKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLUbiquitousItemContainerDisplayNameKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousItemContainerDisplayNameKey.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousItemContainerDisplayNameKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemContainerDisplayNameKey.value = value.ref + .retainAndReturnPointer(); } /// true if the item is excluded from sync, which means it is locally on disk but won't be available on the server. An excluded item is no longer ubiquitous. (Read-write, value type boolean NSNumber late final ffi.Pointer - _NSURLUbiquitousItemIsExcludedFromSyncKey = - _lookup('NSURLUbiquitousItemIsExcludedFromSyncKey'); + _NSURLUbiquitousItemIsExcludedFromSyncKey = _lookup( + 'NSURLUbiquitousItemIsExcludedFromSyncKey', + ); DartNSURLResourceKey get NSURLUbiquitousItemIsExcludedFromSyncKey => objc.NSString.castFromPointer( - _NSURLUbiquitousItemIsExcludedFromSyncKey.value, - retain: true, - release: true); + _NSURLUbiquitousItemIsExcludedFromSyncKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemIsExcludedFromSyncKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLUbiquitousItemIsExcludedFromSyncKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousItemIsExcludedFromSyncKey.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousItemIsExcludedFromSyncKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemIsExcludedFromSyncKey.value = value.ref + .retainAndReturnPointer(); } /// true if the ubiquitous item is shared. (Read-only, value type boolean NSNumber) @@ -39897,309 +40780,342 @@ class NativeCupertinoHttp { _lookup('NSURLUbiquitousItemIsSharedKey'); DartNSURLResourceKey get NSURLUbiquitousItemIsSharedKey => - objc.NSString.castFromPointer(_NSURLUbiquitousItemIsSharedKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemIsSharedKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemIsSharedKey(DartNSURLResourceKey value) { - objc.NSString.castFromPointer(_NSURLUbiquitousItemIsSharedKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLUbiquitousItemIsSharedKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLUbiquitousItemIsSharedKey.value = value.ref.retainAndReturnPointer(); } /// returns the current user's role for this shared item, or nil if not shared. (Read-only, value type NSString). Possible values below. late final ffi.Pointer - _NSURLUbiquitousSharedItemCurrentUserRoleKey = - _lookup('NSURLUbiquitousSharedItemCurrentUserRoleKey'); + _NSURLUbiquitousSharedItemCurrentUserRoleKey = _lookup( + 'NSURLUbiquitousSharedItemCurrentUserRoleKey', + ); DartNSURLResourceKey get NSURLUbiquitousSharedItemCurrentUserRoleKey => objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemCurrentUserRoleKey.value, - retain: true, - release: true); + _NSURLUbiquitousSharedItemCurrentUserRoleKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousSharedItemCurrentUserRoleKey(DartNSURLResourceKey value) { objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemCurrentUserRoleKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousSharedItemCurrentUserRoleKey.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousSharedItemCurrentUserRoleKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousSharedItemCurrentUserRoleKey.value = value.ref + .retainAndReturnPointer(); } /// returns the permissions for the current user, or nil if not shared. (Read-only, value type NSString). Possible values below. late final ffi.Pointer - _NSURLUbiquitousSharedItemCurrentUserPermissionsKey = + _NSURLUbiquitousSharedItemCurrentUserPermissionsKey = _lookup( - 'NSURLUbiquitousSharedItemCurrentUserPermissionsKey'); + 'NSURLUbiquitousSharedItemCurrentUserPermissionsKey', + ); DartNSURLResourceKey get NSURLUbiquitousSharedItemCurrentUserPermissionsKey => objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemCurrentUserPermissionsKey.value, - retain: true, - release: true); + _NSURLUbiquitousSharedItemCurrentUserPermissionsKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousSharedItemCurrentUserPermissionsKey( - DartNSURLResourceKey value) { + DartNSURLResourceKey value, + ) { objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemCurrentUserPermissionsKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousSharedItemCurrentUserPermissionsKey.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousSharedItemCurrentUserPermissionsKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousSharedItemCurrentUserPermissionsKey.value = value.ref + .retainAndReturnPointer(); } /// returns a NSPersonNameComponents, or nil if the current user. (Read-only, value type NSPersonNameComponents) late final ffi.Pointer - _NSURLUbiquitousSharedItemOwnerNameComponentsKey = - _lookup( - 'NSURLUbiquitousSharedItemOwnerNameComponentsKey'); + _NSURLUbiquitousSharedItemOwnerNameComponentsKey = _lookup( + 'NSURLUbiquitousSharedItemOwnerNameComponentsKey', + ); DartNSURLResourceKey get NSURLUbiquitousSharedItemOwnerNameComponentsKey => objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemOwnerNameComponentsKey.value, - retain: true, - release: true); + _NSURLUbiquitousSharedItemOwnerNameComponentsKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousSharedItemOwnerNameComponentsKey( - DartNSURLResourceKey value) { + DartNSURLResourceKey value, + ) { objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemOwnerNameComponentsKey.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousSharedItemOwnerNameComponentsKey.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousSharedItemOwnerNameComponentsKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousSharedItemOwnerNameComponentsKey.value = value.ref + .retainAndReturnPointer(); } /// returns a NSPersonNameComponents for the most recent editor of the document, or nil if it is the current user. (Read-only, value type NSPersonNameComponents) late final ffi.Pointer - _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey = + _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey = _lookup( - 'NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey'); + 'NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey', + ); DartNSURLResourceKey - get NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey => - objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey.value, - retain: true, - release: true); + get NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey => + objc.NSString.castFromPointer( + _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey.value, + retain: true, + release: true, + ); set NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey( - DartNSURLResourceKey value) { + DartNSURLResourceKey value, + ) { objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey.value, - retain: false, - release: true) + _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey.value = value .ref - .release(); - _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey.value = - value.ref.retainAndReturnPointer(); + .retainAndReturnPointer(); } /// this item has not been downloaded yet. Use startDownloadingUbiquitousItemAtURL:error: to download it. late final ffi.Pointer - _NSURLUbiquitousItemDownloadingStatusNotDownloaded = + _NSURLUbiquitousItemDownloadingStatusNotDownloaded = _lookup( - 'NSURLUbiquitousItemDownloadingStatusNotDownloaded'); + 'NSURLUbiquitousItemDownloadingStatusNotDownloaded', + ); DartNSURLUbiquitousItemDownloadingStatus - get NSURLUbiquitousItemDownloadingStatusNotDownloaded => - objc.NSString.castFromPointer( - _NSURLUbiquitousItemDownloadingStatusNotDownloaded.value, - retain: true, - release: true); + get NSURLUbiquitousItemDownloadingStatusNotDownloaded => + objc.NSString.castFromPointer( + _NSURLUbiquitousItemDownloadingStatusNotDownloaded.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemDownloadingStatusNotDownloaded( - DartNSURLUbiquitousItemDownloadingStatus value) { + DartNSURLUbiquitousItemDownloadingStatus value, + ) { objc.NSString.castFromPointer( - _NSURLUbiquitousItemDownloadingStatusNotDownloaded.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousItemDownloadingStatusNotDownloaded.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousItemDownloadingStatusNotDownloaded.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemDownloadingStatusNotDownloaded.value = value.ref + .retainAndReturnPointer(); } /// there is a local version of this item available. The most current version will get downloaded as soon as possible. late final ffi.Pointer - _NSURLUbiquitousItemDownloadingStatusDownloaded = + _NSURLUbiquitousItemDownloadingStatusDownloaded = _lookup( - 'NSURLUbiquitousItemDownloadingStatusDownloaded'); + 'NSURLUbiquitousItemDownloadingStatusDownloaded', + ); DartNSURLUbiquitousItemDownloadingStatus - get NSURLUbiquitousItemDownloadingStatusDownloaded => - objc.NSString.castFromPointer( - _NSURLUbiquitousItemDownloadingStatusDownloaded.value, - retain: true, - release: true); + get NSURLUbiquitousItemDownloadingStatusDownloaded => + objc.NSString.castFromPointer( + _NSURLUbiquitousItemDownloadingStatusDownloaded.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemDownloadingStatusDownloaded( - DartNSURLUbiquitousItemDownloadingStatus value) { + DartNSURLUbiquitousItemDownloadingStatus value, + ) { objc.NSString.castFromPointer( - _NSURLUbiquitousItemDownloadingStatusDownloaded.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousItemDownloadingStatusDownloaded.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousItemDownloadingStatusDownloaded.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemDownloadingStatusDownloaded.value = value.ref + .retainAndReturnPointer(); } /// there is a local version of this item and it is the most up-to-date version known to this device. late final ffi.Pointer - _NSURLUbiquitousItemDownloadingStatusCurrent = + _NSURLUbiquitousItemDownloadingStatusCurrent = _lookup( - 'NSURLUbiquitousItemDownloadingStatusCurrent'); + 'NSURLUbiquitousItemDownloadingStatusCurrent', + ); DartNSURLUbiquitousItemDownloadingStatus - get NSURLUbiquitousItemDownloadingStatusCurrent => - objc.NSString.castFromPointer( - _NSURLUbiquitousItemDownloadingStatusCurrent.value, - retain: true, - release: true); + get NSURLUbiquitousItemDownloadingStatusCurrent => + objc.NSString.castFromPointer( + _NSURLUbiquitousItemDownloadingStatusCurrent.value, + retain: true, + release: true, + ); set NSURLUbiquitousItemDownloadingStatusCurrent( - DartNSURLUbiquitousItemDownloadingStatus value) { + DartNSURLUbiquitousItemDownloadingStatus value, + ) { objc.NSString.castFromPointer( - _NSURLUbiquitousItemDownloadingStatusCurrent.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousItemDownloadingStatusCurrent.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousItemDownloadingStatusCurrent.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousItemDownloadingStatusCurrent.value = value.ref + .retainAndReturnPointer(); } /// the current user is the owner of this shared item. late final ffi.Pointer - _NSURLUbiquitousSharedItemRoleOwner = - _lookup( - 'NSURLUbiquitousSharedItemRoleOwner'); + _NSURLUbiquitousSharedItemRoleOwner = _lookup( + 'NSURLUbiquitousSharedItemRoleOwner', + ); DartNSURLUbiquitousSharedItemRole get NSURLUbiquitousSharedItemRoleOwner => - objc.NSString.castFromPointer(_NSURLUbiquitousSharedItemRoleOwner.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSURLUbiquitousSharedItemRoleOwner.value, + retain: true, + release: true, + ); set NSURLUbiquitousSharedItemRoleOwner( - DartNSURLUbiquitousSharedItemRole value) { - objc.NSString.castFromPointer(_NSURLUbiquitousSharedItemRoleOwner.value, - retain: false, release: true) - .ref - .release(); - _NSURLUbiquitousSharedItemRoleOwner.value = - value.ref.retainAndReturnPointer(); + DartNSURLUbiquitousSharedItemRole value, + ) { + objc.NSString.castFromPointer( + _NSURLUbiquitousSharedItemRoleOwner.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousSharedItemRoleOwner.value = value.ref + .retainAndReturnPointer(); } /// the current user is a participant of this shared item. late final ffi.Pointer - _NSURLUbiquitousSharedItemRoleParticipant = + _NSURLUbiquitousSharedItemRoleParticipant = _lookup( - 'NSURLUbiquitousSharedItemRoleParticipant'); + 'NSURLUbiquitousSharedItemRoleParticipant', + ); DartNSURLUbiquitousSharedItemRole - get NSURLUbiquitousSharedItemRoleParticipant => - objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemRoleParticipant.value, - retain: true, - release: true); + get NSURLUbiquitousSharedItemRoleParticipant => objc.NSString.castFromPointer( + _NSURLUbiquitousSharedItemRoleParticipant.value, + retain: true, + release: true, + ); set NSURLUbiquitousSharedItemRoleParticipant( - DartNSURLUbiquitousSharedItemRole value) { + DartNSURLUbiquitousSharedItemRole value, + ) { objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemRoleParticipant.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousSharedItemRoleParticipant.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousSharedItemRoleParticipant.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousSharedItemRoleParticipant.value = value.ref + .retainAndReturnPointer(); } /// the current user is only allowed to read this item late final ffi.Pointer - _NSURLUbiquitousSharedItemPermissionsReadOnly = + _NSURLUbiquitousSharedItemPermissionsReadOnly = _lookup( - 'NSURLUbiquitousSharedItemPermissionsReadOnly'); + 'NSURLUbiquitousSharedItemPermissionsReadOnly', + ); DartNSURLUbiquitousSharedItemPermissions - get NSURLUbiquitousSharedItemPermissionsReadOnly => - objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemPermissionsReadOnly.value, - retain: true, - release: true); + get NSURLUbiquitousSharedItemPermissionsReadOnly => + objc.NSString.castFromPointer( + _NSURLUbiquitousSharedItemPermissionsReadOnly.value, + retain: true, + release: true, + ); set NSURLUbiquitousSharedItemPermissionsReadOnly( - DartNSURLUbiquitousSharedItemPermissions value) { + DartNSURLUbiquitousSharedItemPermissions value, + ) { objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemPermissionsReadOnly.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousSharedItemPermissionsReadOnly.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousSharedItemPermissionsReadOnly.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousSharedItemPermissionsReadOnly.value = value.ref + .retainAndReturnPointer(); } /// the current user is allowed to both read and write this item late final ffi.Pointer - _NSURLUbiquitousSharedItemPermissionsReadWrite = + _NSURLUbiquitousSharedItemPermissionsReadWrite = _lookup( - 'NSURLUbiquitousSharedItemPermissionsReadWrite'); + 'NSURLUbiquitousSharedItemPermissionsReadWrite', + ); DartNSURLUbiquitousSharedItemPermissions - get NSURLUbiquitousSharedItemPermissionsReadWrite => - objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemPermissionsReadWrite.value, - retain: true, - release: true); + get NSURLUbiquitousSharedItemPermissionsReadWrite => + objc.NSString.castFromPointer( + _NSURLUbiquitousSharedItemPermissionsReadWrite.value, + retain: true, + release: true, + ); set NSURLUbiquitousSharedItemPermissionsReadWrite( - DartNSURLUbiquitousSharedItemPermissions value) { + DartNSURLUbiquitousSharedItemPermissions value, + ) { objc.NSString.castFromPointer( - _NSURLUbiquitousSharedItemPermissionsReadWrite.value, - retain: false, - release: true) - .ref - .release(); - _NSURLUbiquitousSharedItemPermissionsReadWrite.value = - value.ref.retainAndReturnPointer(); + _NSURLUbiquitousSharedItemPermissionsReadWrite.value, + retain: false, + release: true, + ).ref.release(); + _NSURLUbiquitousSharedItemPermissionsReadWrite.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer _NSGenericException = _lookup('NSGenericException'); - DartNSExceptionName get NSGenericException => - objc.NSString.castFromPointer(_NSGenericException.value, - retain: true, release: true); + DartNSExceptionName get NSGenericException => objc.NSString.castFromPointer( + _NSGenericException.value, + retain: true, + release: true, + ); set NSGenericException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSGenericException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSGenericException.value, + retain: false, + release: true, + ).ref.release(); _NSGenericException.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer _NSRangeException = _lookup('NSRangeException'); - DartNSExceptionName get NSRangeException => - objc.NSString.castFromPointer(_NSRangeException.value, - retain: true, release: true); + DartNSExceptionName get NSRangeException => objc.NSString.castFromPointer( + _NSRangeException.value, + retain: true, + release: true, + ); set NSRangeException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSRangeException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSRangeException.value, + retain: false, + release: true, + ).ref.release(); _NSRangeException.value = value.ref.retainAndReturnPointer(); } @@ -40207,14 +41123,18 @@ class NativeCupertinoHttp { _lookup('NSInvalidArgumentException'); DartNSExceptionName get NSInvalidArgumentException => - objc.NSString.castFromPointer(_NSInvalidArgumentException.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSInvalidArgumentException.value, + retain: true, + release: true, + ); set NSInvalidArgumentException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSInvalidArgumentException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSInvalidArgumentException.value, + retain: false, + release: true, + ).ref.release(); _NSInvalidArgumentException.value = value.ref.retainAndReturnPointer(); } @@ -40222,30 +41142,37 @@ class NativeCupertinoHttp { _lookup('NSInternalInconsistencyException'); DartNSExceptionName get NSInternalInconsistencyException => - objc.NSString.castFromPointer(_NSInternalInconsistencyException.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSInternalInconsistencyException.value, + retain: true, + release: true, + ); set NSInternalInconsistencyException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSInternalInconsistencyException.value, - retain: false, release: true) - .ref - .release(); - _NSInternalInconsistencyException.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSInternalInconsistencyException.value, + retain: false, + release: true, + ).ref.release(); + _NSInternalInconsistencyException.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer _NSMallocException = _lookup('NSMallocException'); - DartNSExceptionName get NSMallocException => - objc.NSString.castFromPointer(_NSMallocException.value, - retain: true, release: true); + DartNSExceptionName get NSMallocException => objc.NSString.castFromPointer( + _NSMallocException.value, + retain: true, + release: true, + ); set NSMallocException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSMallocException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSMallocException.value, + retain: false, + release: true, + ).ref.release(); _NSMallocException.value = value.ref.retainAndReturnPointer(); } @@ -40253,14 +41180,18 @@ class NativeCupertinoHttp { _lookup('NSObjectInaccessibleException'); DartNSExceptionName get NSObjectInaccessibleException => - objc.NSString.castFromPointer(_NSObjectInaccessibleException.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSObjectInaccessibleException.value, + retain: true, + release: true, + ); set NSObjectInaccessibleException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSObjectInaccessibleException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSObjectInaccessibleException.value, + retain: false, + release: true, + ).ref.release(); _NSObjectInaccessibleException.value = value.ref.retainAndReturnPointer(); } @@ -40268,14 +41199,18 @@ class NativeCupertinoHttp { _lookup('NSObjectNotAvailableException'); DartNSExceptionName get NSObjectNotAvailableException => - objc.NSString.castFromPointer(_NSObjectNotAvailableException.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSObjectNotAvailableException.value, + retain: true, + release: true, + ); set NSObjectNotAvailableException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSObjectNotAvailableException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSObjectNotAvailableException.value, + retain: false, + release: true, + ).ref.release(); _NSObjectNotAvailableException.value = value.ref.retainAndReturnPointer(); } @@ -40283,14 +41218,18 @@ class NativeCupertinoHttp { _lookup('NSDestinationInvalidException'); DartNSExceptionName get NSDestinationInvalidException => - objc.NSString.castFromPointer(_NSDestinationInvalidException.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSDestinationInvalidException.value, + retain: true, + release: true, + ); set NSDestinationInvalidException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSDestinationInvalidException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSDestinationInvalidException.value, + retain: false, + release: true, + ).ref.release(); _NSDestinationInvalidException.value = value.ref.retainAndReturnPointer(); } @@ -40298,14 +41237,18 @@ class NativeCupertinoHttp { _lookup('NSPortTimeoutException'); DartNSExceptionName get NSPortTimeoutException => - objc.NSString.castFromPointer(_NSPortTimeoutException.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSPortTimeoutException.value, + retain: true, + release: true, + ); set NSPortTimeoutException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSPortTimeoutException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSPortTimeoutException.value, + retain: false, + release: true, + ).ref.release(); _NSPortTimeoutException.value = value.ref.retainAndReturnPointer(); } @@ -40313,14 +41256,18 @@ class NativeCupertinoHttp { _lookup('NSInvalidSendPortException'); DartNSExceptionName get NSInvalidSendPortException => - objc.NSString.castFromPointer(_NSInvalidSendPortException.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSInvalidSendPortException.value, + retain: true, + release: true, + ); set NSInvalidSendPortException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSInvalidSendPortException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSInvalidSendPortException.value, + retain: false, + release: true, + ).ref.release(); _NSInvalidSendPortException.value = value.ref.retainAndReturnPointer(); } @@ -40328,29 +41275,36 @@ class NativeCupertinoHttp { _lookup('NSInvalidReceivePortException'); DartNSExceptionName get NSInvalidReceivePortException => - objc.NSString.castFromPointer(_NSInvalidReceivePortException.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSInvalidReceivePortException.value, + retain: true, + release: true, + ); set NSInvalidReceivePortException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSInvalidReceivePortException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSInvalidReceivePortException.value, + retain: false, + release: true, + ).ref.release(); _NSInvalidReceivePortException.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer _NSPortSendException = _lookup('NSPortSendException'); - DartNSExceptionName get NSPortSendException => - objc.NSString.castFromPointer(_NSPortSendException.value, - retain: true, release: true); + DartNSExceptionName get NSPortSendException => objc.NSString.castFromPointer( + _NSPortSendException.value, + retain: true, + release: true, + ); set NSPortSendException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSPortSendException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSPortSendException.value, + retain: false, + release: true, + ).ref.release(); _NSPortSendException.value = value.ref.retainAndReturnPointer(); } @@ -40358,29 +41312,36 @@ class NativeCupertinoHttp { _lookup('NSPortReceiveException'); DartNSExceptionName get NSPortReceiveException => - objc.NSString.castFromPointer(_NSPortReceiveException.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSPortReceiveException.value, + retain: true, + release: true, + ); set NSPortReceiveException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSPortReceiveException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSPortReceiveException.value, + retain: false, + release: true, + ).ref.release(); _NSPortReceiveException.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer _NSOldStyleException = _lookup('NSOldStyleException'); - DartNSExceptionName get NSOldStyleException => - objc.NSString.castFromPointer(_NSOldStyleException.value, - retain: true, release: true); + DartNSExceptionName get NSOldStyleException => objc.NSString.castFromPointer( + _NSOldStyleException.value, + retain: true, + release: true, + ); set NSOldStyleException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSOldStyleException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSOldStyleException.value, + retain: false, + release: true, + ).ref.release(); _NSOldStyleException.value = value.ref.retainAndReturnPointer(); } @@ -40388,14 +41349,18 @@ class NativeCupertinoHttp { _lookup('NSInconsistentArchiveException'); DartNSExceptionName get NSInconsistentArchiveException => - objc.NSString.castFromPointer(_NSInconsistentArchiveException.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSInconsistentArchiveException.value, + retain: true, + release: true, + ); set NSInconsistentArchiveException(DartNSExceptionName value) { - objc.NSString.castFromPointer(_NSInconsistentArchiveException.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSInconsistentArchiveException.value, + retain: false, + release: true, + ).ref.release(); _NSInconsistentArchiveException.value = value.ref.retainAndReturnPointer(); } @@ -40403,88 +41368,98 @@ class NativeCupertinoHttp { return _NSGetUncaughtExceptionHandler(); } - late final _NSGetUncaughtExceptionHandlerPtr = _lookup< - ffi - .NativeFunction Function()>>( - 'NSGetUncaughtExceptionHandler'); - late final _NSGetUncaughtExceptionHandler = _NSGetUncaughtExceptionHandlerPtr - .asFunction Function()>(); + late final _NSGetUncaughtExceptionHandlerPtr = + _lookup< + ffi.NativeFunction Function()> + >('NSGetUncaughtExceptionHandler'); + late final _NSGetUncaughtExceptionHandler = + _NSGetUncaughtExceptionHandlerPtr.asFunction< + ffi.Pointer Function() + >(); void NSSetUncaughtExceptionHandler( ffi.Pointer arg0, ) { - return _NSSetUncaughtExceptionHandler( - arg0, - ); + return _NSSetUncaughtExceptionHandler(arg0); } - late final _NSSetUncaughtExceptionHandlerPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer)>>( - 'NSSetUncaughtExceptionHandler'); - late final _NSSetUncaughtExceptionHandler = _NSSetUncaughtExceptionHandlerPtr - .asFunction)>(); + late final _NSSetUncaughtExceptionHandlerPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer) + > + >('NSSetUncaughtExceptionHandler'); + late final _NSSetUncaughtExceptionHandler = + _NSSetUncaughtExceptionHandlerPtr.asFunction< + void Function(ffi.Pointer) + >(); late final ffi.Pointer> _NSAssertionHandlerKey = _lookup>('NSAssertionHandlerKey'); - objc.NSString get NSAssertionHandlerKey => - objc.NSString.castFromPointer(_NSAssertionHandlerKey.value, - retain: true, release: true); + objc.NSString get NSAssertionHandlerKey => objc.NSString.castFromPointer( + _NSAssertionHandlerKey.value, + retain: true, + release: true, + ); set NSAssertionHandlerKey(objc.NSString value) { - objc.NSString.castFromPointer(_NSAssertionHandlerKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSAssertionHandlerKey.value, + retain: false, + release: true, + ).ref.release(); _NSAssertionHandlerKey.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer - _NSInvocationOperationVoidResultException = - _lookup('NSInvocationOperationVoidResultException'); + _NSInvocationOperationVoidResultException = _lookup( + 'NSInvocationOperationVoidResultException', + ); DartNSExceptionName get NSInvocationOperationVoidResultException => objc.NSString.castFromPointer( - _NSInvocationOperationVoidResultException.value, - retain: true, - release: true); + _NSInvocationOperationVoidResultException.value, + retain: true, + release: true, + ); set NSInvocationOperationVoidResultException(DartNSExceptionName value) { objc.NSString.castFromPointer( - _NSInvocationOperationVoidResultException.value, - retain: false, - release: true) - .ref - .release(); - _NSInvocationOperationVoidResultException.value = - value.ref.retainAndReturnPointer(); + _NSInvocationOperationVoidResultException.value, + retain: false, + release: true, + ).ref.release(); + _NSInvocationOperationVoidResultException.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSInvocationOperationCancelledException = - _lookup('NSInvocationOperationCancelledException'); + _NSInvocationOperationCancelledException = _lookup( + 'NSInvocationOperationCancelledException', + ); DartNSExceptionName get NSInvocationOperationCancelledException => objc.NSString.castFromPointer( - _NSInvocationOperationCancelledException.value, - retain: true, - release: true); + _NSInvocationOperationCancelledException.value, + retain: true, + release: true, + ); set NSInvocationOperationCancelledException(DartNSExceptionName value) { objc.NSString.castFromPointer( - _NSInvocationOperationCancelledException.value, - retain: false, - release: true) - .ref - .release(); - _NSInvocationOperationCancelledException.value = - value.ref.retainAndReturnPointer(); + _NSInvocationOperationCancelledException.value, + retain: false, + release: true, + ).ref.release(); + _NSInvocationOperationCancelledException.value = value.ref + .retainAndReturnPointer(); } late final ffi.Pointer - _NSOperationQueueDefaultMaxConcurrentOperationCount = - _lookup('NSOperationQueueDefaultMaxConcurrentOperationCount'); + _NSOperationQueueDefaultMaxConcurrentOperationCount = _lookup( + 'NSOperationQueueDefaultMaxConcurrentOperationCount', + ); DartNSInteger get NSOperationQueueDefaultMaxConcurrentOperationCount => _NSOperationQueueDefaultMaxConcurrentOperationCount.value; @@ -40493,15 +41468,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSCocoaErrorDomain = _lookup('NSCocoaErrorDomain'); - DartNSErrorDomain get NSCocoaErrorDomain => - objc.NSString.castFromPointer(_NSCocoaErrorDomain.value, - retain: true, release: true); + DartNSErrorDomain get NSCocoaErrorDomain => objc.NSString.castFromPointer( + _NSCocoaErrorDomain.value, + retain: true, + release: true, + ); set NSCocoaErrorDomain(DartNSErrorDomain value) { - objc.NSString.castFromPointer(_NSCocoaErrorDomain.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSCocoaErrorDomain.value, + retain: false, + release: true, + ).ref.release(); _NSCocoaErrorDomain.value = value.ref.retainAndReturnPointer(); } @@ -40509,45 +41487,54 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSPOSIXErrorDomain = _lookup('NSPOSIXErrorDomain'); - DartNSErrorDomain get NSPOSIXErrorDomain => - objc.NSString.castFromPointer(_NSPOSIXErrorDomain.value, - retain: true, release: true); + DartNSErrorDomain get NSPOSIXErrorDomain => objc.NSString.castFromPointer( + _NSPOSIXErrorDomain.value, + retain: true, + release: true, + ); set NSPOSIXErrorDomain(DartNSErrorDomain value) { - objc.NSString.castFromPointer(_NSPOSIXErrorDomain.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSPOSIXErrorDomain.value, + retain: false, + release: true, + ).ref.release(); _NSPOSIXErrorDomain.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer _NSOSStatusErrorDomain = _lookup('NSOSStatusErrorDomain'); - DartNSErrorDomain get NSOSStatusErrorDomain => - objc.NSString.castFromPointer(_NSOSStatusErrorDomain.value, - retain: true, release: true); + DartNSErrorDomain get NSOSStatusErrorDomain => objc.NSString.castFromPointer( + _NSOSStatusErrorDomain.value, + retain: true, + release: true, + ); set NSOSStatusErrorDomain(DartNSErrorDomain value) { - objc.NSString.castFromPointer(_NSOSStatusErrorDomain.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSOSStatusErrorDomain.value, + retain: false, + release: true, + ).ref.release(); _NSOSStatusErrorDomain.value = value.ref.retainAndReturnPointer(); } late final ffi.Pointer _NSMachErrorDomain = _lookup('NSMachErrorDomain'); - DartNSErrorDomain get NSMachErrorDomain => - objc.NSString.castFromPointer(_NSMachErrorDomain.value, - retain: true, release: true); + DartNSErrorDomain get NSMachErrorDomain => objc.NSString.castFromPointer( + _NSMachErrorDomain.value, + retain: true, + release: true, + ); set NSMachErrorDomain(DartNSErrorDomain value) { - objc.NSString.castFromPointer(_NSMachErrorDomain.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSMachErrorDomain.value, + retain: false, + release: true, + ).ref.release(); _NSMachErrorDomain.value = value.ref.retainAndReturnPointer(); } @@ -40556,14 +41543,18 @@ class NativeCupertinoHttp { _lookup('NSUnderlyingErrorKey'); DartNSErrorUserInfoKey get NSUnderlyingErrorKey => - objc.NSString.castFromPointer(_NSUnderlyingErrorKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSUnderlyingErrorKey.value, + retain: true, + release: true, + ); set NSUnderlyingErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.castFromPointer(_NSUnderlyingErrorKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSUnderlyingErrorKey.value, + retain: false, + release: true, + ).ref.release(); _NSUnderlyingErrorKey.value = value.ref.retainAndReturnPointer(); } @@ -40572,14 +41563,18 @@ class NativeCupertinoHttp { _lookup('NSMultipleUnderlyingErrorsKey'); DartNSErrorUserInfoKey get NSMultipleUnderlyingErrorsKey => - objc.NSString.castFromPointer(_NSMultipleUnderlyingErrorsKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSMultipleUnderlyingErrorsKey.value, + retain: true, + release: true, + ); set NSMultipleUnderlyingErrorsKey(DartNSErrorUserInfoKey value) { - objc.NSString.castFromPointer(_NSMultipleUnderlyingErrorsKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSMultipleUnderlyingErrorsKey.value, + retain: false, + release: true, + ).ref.release(); _NSMultipleUnderlyingErrorsKey.value = value.ref.retainAndReturnPointer(); } @@ -40588,14 +41583,18 @@ class NativeCupertinoHttp { _lookup('NSLocalizedDescriptionKey'); DartNSErrorUserInfoKey get NSLocalizedDescriptionKey => - objc.NSString.castFromPointer(_NSLocalizedDescriptionKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSLocalizedDescriptionKey.value, + retain: true, + release: true, + ); set NSLocalizedDescriptionKey(DartNSErrorUserInfoKey value) { - objc.NSString.castFromPointer(_NSLocalizedDescriptionKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSLocalizedDescriptionKey.value, + retain: false, + release: true, + ).ref.release(); _NSLocalizedDescriptionKey.value = value.ref.retainAndReturnPointer(); } @@ -40604,54 +41603,66 @@ class NativeCupertinoHttp { _lookup('NSLocalizedFailureReasonErrorKey'); DartNSErrorUserInfoKey get NSLocalizedFailureReasonErrorKey => - objc.NSString.castFromPointer(_NSLocalizedFailureReasonErrorKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSLocalizedFailureReasonErrorKey.value, + retain: true, + release: true, + ); set NSLocalizedFailureReasonErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.castFromPointer(_NSLocalizedFailureReasonErrorKey.value, - retain: false, release: true) - .ref - .release(); - _NSLocalizedFailureReasonErrorKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSLocalizedFailureReasonErrorKey.value, + retain: false, + release: true, + ).ref.release(); + _NSLocalizedFailureReasonErrorKey.value = value.ref + .retainAndReturnPointer(); } /// NSString, a complete sentence (or more) describing what the user can do to fix the problem. late final ffi.Pointer - _NSLocalizedRecoverySuggestionErrorKey = - _lookup('NSLocalizedRecoverySuggestionErrorKey'); + _NSLocalizedRecoverySuggestionErrorKey = _lookup( + 'NSLocalizedRecoverySuggestionErrorKey', + ); DartNSErrorUserInfoKey get NSLocalizedRecoverySuggestionErrorKey => objc.NSString.castFromPointer( - _NSLocalizedRecoverySuggestionErrorKey.value, - retain: true, - release: true); + _NSLocalizedRecoverySuggestionErrorKey.value, + retain: true, + release: true, + ); set NSLocalizedRecoverySuggestionErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.castFromPointer(_NSLocalizedRecoverySuggestionErrorKey.value, - retain: false, release: true) - .ref - .release(); - _NSLocalizedRecoverySuggestionErrorKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSLocalizedRecoverySuggestionErrorKey.value, + retain: false, + release: true, + ).ref.release(); + _NSLocalizedRecoverySuggestionErrorKey.value = value.ref + .retainAndReturnPointer(); } /// NSArray of NSStrings corresponding to button titles. late final ffi.Pointer - _NSLocalizedRecoveryOptionsErrorKey = - _lookup('NSLocalizedRecoveryOptionsErrorKey'); + _NSLocalizedRecoveryOptionsErrorKey = _lookup( + 'NSLocalizedRecoveryOptionsErrorKey', + ); DartNSErrorUserInfoKey get NSLocalizedRecoveryOptionsErrorKey => - objc.NSString.castFromPointer(_NSLocalizedRecoveryOptionsErrorKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSLocalizedRecoveryOptionsErrorKey.value, + retain: true, + release: true, + ); set NSLocalizedRecoveryOptionsErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.castFromPointer(_NSLocalizedRecoveryOptionsErrorKey.value, - retain: false, release: true) - .ref - .release(); - _NSLocalizedRecoveryOptionsErrorKey.value = - value.ref.retainAndReturnPointer(); + objc.NSString.castFromPointer( + _NSLocalizedRecoveryOptionsErrorKey.value, + retain: false, + release: true, + ).ref.release(); + _NSLocalizedRecoveryOptionsErrorKey.value = value.ref + .retainAndReturnPointer(); } /// Instance of a subclass of NSObject that conforms to the NSErrorRecoveryAttempting informal protocol @@ -40659,14 +41670,18 @@ class NativeCupertinoHttp { _lookup('NSRecoveryAttempterErrorKey'); DartNSErrorUserInfoKey get NSRecoveryAttempterErrorKey => - objc.NSString.castFromPointer(_NSRecoveryAttempterErrorKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSRecoveryAttempterErrorKey.value, + retain: true, + release: true, + ); set NSRecoveryAttempterErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.castFromPointer(_NSRecoveryAttempterErrorKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSRecoveryAttempterErrorKey.value, + retain: false, + release: true, + ).ref.release(); _NSRecoveryAttempterErrorKey.value = value.ref.retainAndReturnPointer(); } @@ -40675,14 +41690,18 @@ class NativeCupertinoHttp { _lookup('NSHelpAnchorErrorKey'); DartNSErrorUserInfoKey get NSHelpAnchorErrorKey => - objc.NSString.castFromPointer(_NSHelpAnchorErrorKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSHelpAnchorErrorKey.value, + retain: true, + release: true, + ); set NSHelpAnchorErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.castFromPointer(_NSHelpAnchorErrorKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSHelpAnchorErrorKey.value, + retain: false, + release: true, + ).ref.release(); _NSHelpAnchorErrorKey.value = value.ref.retainAndReturnPointer(); } @@ -40691,14 +41710,18 @@ class NativeCupertinoHttp { _lookup('NSDebugDescriptionErrorKey'); DartNSErrorUserInfoKey get NSDebugDescriptionErrorKey => - objc.NSString.castFromPointer(_NSDebugDescriptionErrorKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSDebugDescriptionErrorKey.value, + retain: true, + release: true, + ); set NSDebugDescriptionErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.castFromPointer(_NSDebugDescriptionErrorKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSDebugDescriptionErrorKey.value, + retain: false, + release: true, + ).ref.release(); _NSDebugDescriptionErrorKey.value = value.ref.retainAndReturnPointer(); } @@ -40707,14 +41730,18 @@ class NativeCupertinoHttp { _lookup('NSLocalizedFailureErrorKey'); DartNSErrorUserInfoKey get NSLocalizedFailureErrorKey => - objc.NSString.castFromPointer(_NSLocalizedFailureErrorKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSLocalizedFailureErrorKey.value, + retain: true, + release: true, + ); set NSLocalizedFailureErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.castFromPointer(_NSLocalizedFailureErrorKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSLocalizedFailureErrorKey.value, + retain: false, + release: true, + ).ref.release(); _NSLocalizedFailureErrorKey.value = value.ref.retainAndReturnPointer(); } @@ -40723,14 +41750,18 @@ class NativeCupertinoHttp { _lookup('NSStringEncodingErrorKey'); DartNSErrorUserInfoKey get NSStringEncodingErrorKey => - objc.NSString.castFromPointer(_NSStringEncodingErrorKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSStringEncodingErrorKey.value, + retain: true, + release: true, + ); set NSStringEncodingErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.castFromPointer(_NSStringEncodingErrorKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSStringEncodingErrorKey.value, + retain: false, + release: true, + ).ref.release(); _NSStringEncodingErrorKey.value = value.ref.retainAndReturnPointer(); } @@ -40738,15 +41769,18 @@ class NativeCupertinoHttp { late final ffi.Pointer _NSURLErrorKey = _lookup('NSURLErrorKey'); - DartNSErrorUserInfoKey get NSURLErrorKey => - objc.NSString.castFromPointer(_NSURLErrorKey.value, - retain: true, release: true); + DartNSErrorUserInfoKey get NSURLErrorKey => objc.NSString.castFromPointer( + _NSURLErrorKey.value, + retain: true, + release: true, + ); set NSURLErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.castFromPointer(_NSURLErrorKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSURLErrorKey.value, + retain: false, + release: true, + ).ref.release(); _NSURLErrorKey.value = value.ref.retainAndReturnPointer(); } @@ -40755,97 +41789,115 @@ class NativeCupertinoHttp { _lookup('NSFilePathErrorKey'); DartNSErrorUserInfoKey get NSFilePathErrorKey => - objc.NSString.castFromPointer(_NSFilePathErrorKey.value, - retain: true, release: true); + objc.NSString.castFromPointer( + _NSFilePathErrorKey.value, + retain: true, + release: true, + ); set NSFilePathErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.castFromPointer(_NSFilePathErrorKey.value, - retain: false, release: true) - .ref - .release(); + objc.NSString.castFromPointer( + _NSFilePathErrorKey.value, + retain: false, + release: true, + ).ref.release(); _NSFilePathErrorKey.value = value.ref.retainAndReturnPointer(); } } @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_1pl9qdv( +_NativeCupertinoHttp_wrapListenerBlock_1pl9qdv( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_1pl9qdv( +_NativeCupertinoHttp_wrapBlockingBlock_1pl9qdv( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_xtuoz7( +_NativeCupertinoHttp_wrapListenerBlock_xtuoz7( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_xtuoz7( +_NativeCupertinoHttp_wrapBlockingBlock_xtuoz7( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Bool Function(ffi.Pointer, ffi.Pointer)>() + ffi.Bool Function(ffi.Pointer, ffi.Pointer) +>() external bool _NativeCupertinoHttp_protocolTrampoline_e3qsqz( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>() + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() external ffi.Pointer - _NativeCupertinoHttp_protocolTrampoline_1mbt9g9( +_NativeCupertinoHttp_protocolTrampoline_1mbt9g9( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_18v1jvf( +_NativeCupertinoHttp_wrapListenerBlock_18v1jvf( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_18v1jvf( +_NativeCupertinoHttp_wrapBlockingBlock_18v1jvf( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>() + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external void _NativeCupertinoHttp_protocolTrampoline_18v1jvf( ffi.Pointer target, ffi.Pointer arg0, @@ -40853,8 +41905,12 @@ external void _NativeCupertinoHttp_protocolTrampoline_18v1jvf( ); @ffi.Native< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>() + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external instancetype _NativeCupertinoHttp_protocolTrampoline_xr62hr( ffi.Pointer target, ffi.Pointer arg0, @@ -40862,12 +41918,14 @@ external instancetype _NativeCupertinoHttp_protocolTrampoline_xr62hr( ); @ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - NSUInteger)>() + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + NSUInteger, + ) +>() external int _NativeCupertinoHttp_protocolTrampoline_17ap02x( ffi.Pointer target, ffi.Pointer arg0, @@ -40877,353 +41935,389 @@ external int _NativeCupertinoHttp_protocolTrampoline_17ap02x( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_tg5tbv( +_NativeCupertinoHttp_wrapListenerBlock_tg5tbv( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_tg5tbv( +_NativeCupertinoHttp_wrapBlockingBlock_tg5tbv( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_1dqvvol( +_NativeCupertinoHttp_wrapListenerBlock_1dqvvol( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_1dqvvol( +_NativeCupertinoHttp_wrapBlockingBlock_1dqvvol( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_6enxqz( +_NativeCupertinoHttp_wrapListenerBlock_6enxqz( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_6enxqz( +_NativeCupertinoHttp_wrapBlockingBlock_6enxqz( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_18kzm6a( +_NativeCupertinoHttp_wrapListenerBlock_18kzm6a( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_18kzm6a( +_NativeCupertinoHttp_wrapBlockingBlock_18kzm6a( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_9o8504( +_NativeCupertinoHttp_wrapListenerBlock_9o8504( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_9o8504( +_NativeCupertinoHttp_wrapBlockingBlock_9o8504( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_og5b6y( +_NativeCupertinoHttp_wrapListenerBlock_og5b6y( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_og5b6y( +_NativeCupertinoHttp_wrapBlockingBlock_og5b6y( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_gwxhxt( +_NativeCupertinoHttp_wrapListenerBlock_gwxhxt( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_gwxhxt( +_NativeCupertinoHttp_wrapBlockingBlock_gwxhxt( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_k73ff5( +_NativeCupertinoHttp_wrapListenerBlock_k73ff5( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_k73ff5( +_NativeCupertinoHttp_wrapBlockingBlock_k73ff5( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_15f11yh( +_NativeCupertinoHttp_wrapListenerBlock_15f11yh( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_15f11yh( +_NativeCupertinoHttp_wrapBlockingBlock_15f11yh( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_pfv6jd( +_NativeCupertinoHttp_wrapListenerBlock_pfv6jd( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_pfv6jd( +_NativeCupertinoHttp_wrapBlockingBlock_pfv6jd( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_18qun1e( +_NativeCupertinoHttp_wrapListenerBlock_18qun1e( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_18qun1e( +_NativeCupertinoHttp_wrapBlockingBlock_18qun1e( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_o762yo( +_NativeCupertinoHttp_wrapListenerBlock_o762yo( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_o762yo( +_NativeCupertinoHttp_wrapBlockingBlock_o762yo( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_1s56lr9( +_NativeCupertinoHttp_wrapListenerBlock_1s56lr9( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_1s56lr9( +_NativeCupertinoHttp_wrapBlockingBlock_1s56lr9( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_r8gdi7( +_NativeCupertinoHttp_wrapListenerBlock_r8gdi7( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_r8gdi7( +_NativeCupertinoHttp_wrapBlockingBlock_r8gdi7( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_16sve1d( +_NativeCupertinoHttp_wrapListenerBlock_16sve1d( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_16sve1d( +_NativeCupertinoHttp_wrapBlockingBlock_16sve1d( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_xx612k( +_NativeCupertinoHttp_wrapListenerBlock_xx612k( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_xx612k( +_NativeCupertinoHttp_wrapBlockingBlock_xx612k( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_1otpo83( +_NativeCupertinoHttp_wrapListenerBlock_1otpo83( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_1otpo83( +_NativeCupertinoHttp_wrapBlockingBlock_1otpo83( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>() + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external void _NativeCupertinoHttp_protocolTrampoline_xx612k( ffi.Pointer target, ffi.Pointer arg0, @@ -41234,32 +42328,36 @@ external void _NativeCupertinoHttp_protocolTrampoline_xx612k( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_1tz5yf( +_NativeCupertinoHttp_wrapListenerBlock_1tz5yf( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_1tz5yf( +_NativeCupertinoHttp_wrapBlockingBlock_1tz5yf( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>() + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external void _NativeCupertinoHttp_protocolTrampoline_1tz5yf( ffi.Pointer target, ffi.Pointer arg0, @@ -41269,28 +42367,35 @@ external void _NativeCupertinoHttp_protocolTrampoline_1tz5yf( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_fjrv01( +_NativeCupertinoHttp_wrapListenerBlock_fjrv01( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_fjrv01( +_NativeCupertinoHttp_wrapBlockingBlock_fjrv01( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>() + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external void _NativeCupertinoHttp_protocolTrampoline_fjrv01( ffi.Pointer target, ffi.Pointer arg0, @@ -41299,34 +42404,38 @@ external void _NativeCupertinoHttp_protocolTrampoline_fjrv01( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_l2g8ke( +_NativeCupertinoHttp_wrapListenerBlock_l2g8ke( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_l2g8ke( +_NativeCupertinoHttp_wrapBlockingBlock_l2g8ke( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>() + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external void _NativeCupertinoHttp_protocolTrampoline_l2g8ke( ffi.Pointer target, ffi.Pointer arg0, @@ -41338,52 +42447,58 @@ external void _NativeCupertinoHttp_protocolTrampoline_l2g8ke( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_n8yd09( +_NativeCupertinoHttp_wrapListenerBlock_n8yd09( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_n8yd09( +_NativeCupertinoHttp_wrapBlockingBlock_n8yd09( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_bklti2( +_NativeCupertinoHttp_wrapListenerBlock_bklti2( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_bklti2( +_NativeCupertinoHttp_wrapBlockingBlock_bklti2( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>() + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external void _NativeCupertinoHttp_protocolTrampoline_bklti2( ffi.Pointer target, ffi.Pointer arg0, @@ -41393,33 +42508,37 @@ external void _NativeCupertinoHttp_protocolTrampoline_bklti2( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_jyim80( +_NativeCupertinoHttp_wrapListenerBlock_jyim80( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_jyim80( +_NativeCupertinoHttp_wrapBlockingBlock_jyim80( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer)>() + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) +>() external void _NativeCupertinoHttp_protocolTrampoline_jyim80( ffi.Pointer target, ffi.Pointer arg0, @@ -41430,34 +42549,38 @@ external void _NativeCupertinoHttp_protocolTrampoline_jyim80( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_h68abb( +_NativeCupertinoHttp_wrapListenerBlock_h68abb( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_h68abb( +_NativeCupertinoHttp_wrapBlockingBlock_h68abb( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>() + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) +>() external void _NativeCupertinoHttp_protocolTrampoline_h68abb( ffi.Pointer target, ffi.Pointer arg0, @@ -41469,33 +42592,37 @@ external void _NativeCupertinoHttp_protocolTrampoline_h68abb( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_ly2579( +_NativeCupertinoHttp_wrapListenerBlock_ly2579( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_ly2579( +_NativeCupertinoHttp_wrapBlockingBlock_ly2579( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64)>() + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) +>() external void _NativeCupertinoHttp_protocolTrampoline_ly2579( ffi.Pointer target, ffi.Pointer arg0, @@ -41506,33 +42633,37 @@ external void _NativeCupertinoHttp_protocolTrampoline_ly2579( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_1lx650f( +_NativeCupertinoHttp_wrapListenerBlock_1lx650f( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_1lx650f( +_NativeCupertinoHttp_wrapBlockingBlock_1lx650f( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)>() + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) +>() external void _NativeCupertinoHttp_protocolTrampoline_1lx650f( ffi.Pointer target, ffi.Pointer arg0, @@ -41543,32 +42674,36 @@ external void _NativeCupertinoHttp_protocolTrampoline_1lx650f( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_1b3bb6a( +_NativeCupertinoHttp_wrapListenerBlock_1b3bb6a( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_1b3bb6a( +_NativeCupertinoHttp_wrapBlockingBlock_1b3bb6a( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>() + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() external instancetype _NativeCupertinoHttp_protocolTrampoline_10z9f5k( ffi.Pointer target, ffi.Pointer arg0, @@ -41578,8 +42713,12 @@ external instancetype _NativeCupertinoHttp_protocolTrampoline_10z9f5k( ); @ffi.Native< - NSInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>() + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external int _NativeCupertinoHttp_protocolTrampoline_1ldqghh( ffi.Pointer target, ffi.Pointer arg0, @@ -41587,13 +42726,15 @@ external int _NativeCupertinoHttp_protocolTrampoline_1ldqghh( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>() + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external ffi.Pointer - _NativeCupertinoHttp_protocolTrampoline_1q0i84( +_NativeCupertinoHttp_protocolTrampoline_1q0i84( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, @@ -41601,27 +42742,30 @@ external ffi.Pointer ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapListenerBlock_ovsamd( +_NativeCupertinoHttp_wrapListenerBlock_ovsamd( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _NativeCupertinoHttp_wrapBlockingBlock_ovsamd( +_NativeCupertinoHttp_wrapBlockingBlock_ovsamd( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer)>() + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() external void _NativeCupertinoHttp_protocolTrampoline_ovsamd( ffi.Pointer target, ffi.Pointer arg0, @@ -41699,9 +42843,10 @@ typedef __darwin_uid_t = __uint32_t; typedef __darwin_useconds_t = __uint32_t; final class __darwin_pthread_handler_rec extends ffi.Struct { - external ffi - .Pointer)>> - __routine; + external ffi.Pointer< + ffi.NativeFunction)> + > + __routine; external ffi.Pointer __arg; @@ -41808,11 +42953,11 @@ enum idtype_t { const idtype_t(this.value); static idtype_t fromValue(int value) => switch (value) { - 0 => P_ALL, - 1 => P_PID, - 2 => P_PGID, - _ => throw ArgumentError('Unknown value for idtype_t: $value'), - }; + 0 => P_ALL, + 1 => P_PID, + 2 => P_PGID, + _ => throw ArgumentError('Unknown value for idtype_t: $value'), + }; } typedef pid_t = __darwin_pid_t; @@ -42076,7 +43221,7 @@ final class sigevent extends ffi.Struct { external sigval sigev_value; external ffi.Pointer> - sigev_notify_function; + sigev_notify_function; external ffi.Pointer sigev_notify_attributes; } @@ -42115,22 +43260,31 @@ typedef siginfo_t = __siginfo; final class __sigaction_u extends ffi.Union { external ffi.Pointer> - __sa_handler; + __sa_handler; external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int, ffi.Pointer<__siginfo>, ffi.Pointer)>> - __sa_sigaction; + ffi.NativeFunction< + ffi.Void Function(ffi.Int, ffi.Pointer<__siginfo>, ffi.Pointer) + > + > + __sa_sigaction; } final class __sigaction extends ffi.Struct { external __sigaction_u __sigaction_u$1; external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Int, - ffi.Pointer, ffi.Pointer)>> sa_tramp; + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + > + sa_tramp; @sigset_t() external int sa_mask; @@ -42155,7 +43309,7 @@ typedef sig_t = ffi.Pointer>; final class sigvec extends ffi.Struct { external ffi.Pointer> - sv_handler; + sv_handler; @ffi.Int() external int sv_mask; @@ -42930,22 +44084,22 @@ typedef dev_t = __darwin_dev_t; typedef mode_t = __darwin_mode_t; void _ObjCBlock_ffiVoid_fnPtrTrampoline( ffi.Pointer block, -) => - block.ref.target - .cast>() - .asFunction()(); -ffi.Pointer _ObjCBlock_ffiVoid_fnPtrCallable = ffi.Pointer - .fromFunction)>( - _ObjCBlock_ffiVoid_fnPtrTrampoline) - .cast(); +) => block.ref.target + .cast>() + .asFunction()(); +ffi.Pointer _ObjCBlock_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer) + >(_ObjCBlock_ffiVoid_fnPtrTrampoline) + .cast(); void _ObjCBlock_ffiVoid_closureTrampoline( ffi.Pointer block, -) => - (objc.getBlockClosure(block) as void Function())(); -ffi.Pointer _ObjCBlock_ffiVoid_closureCallable = ffi.Pointer - .fromFunction)>( - _ObjCBlock_ffiVoid_closureTrampoline) - .cast(); +) => (objc.getBlockClosure(block) as void Function())(); +ffi.Pointer _ObjCBlock_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer) + >(_ObjCBlock_ffiVoid_closureTrampoline) + .cast(); void _ObjCBlock_ffiVoid_listenerTrampoline( ffi.Pointer block, ) { @@ -42954,12 +44108,15 @@ void _ObjCBlock_ffiVoid_listenerTrampoline( } ffi.NativeCallable)> - _ObjCBlock_ffiVoid_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_listenerTrampoline) +_ObjCBlock_ffiVoid_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer) + >.listener(_ObjCBlock_ffiVoid_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_blockingTrampoline( - ffi.Pointer block, ffi.Pointer waiter) { + ffi.Pointer block, + ffi.Pointer waiter, +) { try { (objc.getBlockClosure(block) as void Function())(); } catch (e) { @@ -42970,31 +44127,40 @@ void _ObjCBlock_ffiVoid_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -43002,11 +44168,12 @@ abstract final class ObjCBlock_ffiVoid { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr) => - objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -43016,13 +44183,18 @@ abstract final class ObjCBlock_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction(void Function() fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_closureCallable, () => fn(), keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock fromFunction( + void Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_closureCallable, + () => fn(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -43033,16 +44205,22 @@ abstract final class ObjCBlock_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener(void Function() fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock listener( + void Function() fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_listenerCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive); + _ObjCBlock_ffiVoid_listenerCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1pl9qdv(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -43055,95 +44233,133 @@ abstract final class ObjCBlock_ffiVoid { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking(void Function() fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock blocking( + void Function() fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_blockingCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive); + _ObjCBlock_ffiVoid_blockingCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_blockingListenerCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive); + _ObjCBlock_ffiVoid_blockingListenerCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1pl9qdv( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_CallExtension on objc.ObjCBlock { - void call() => ref.pointer.ref.invoke + void call() => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block)>>() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block) + > + >() .asFunction)>()( ref.pointer, ); } int _ObjCBlock_ffiInt_ffiVoid_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>()(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer arg0, ffi.Pointer arg1) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer _ObjCBlock_ffiInt_ffiVoid_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiInt_ffiVoid_ffiVoid_fnPtrTrampoline, 0) + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiInt_ffiVoid_ffiVoid_fnPtrTrampoline, 0) .cast(); int _ObjCBlock_ffiInt_ffiVoid_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as int Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as int Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); ffi.Pointer _ObjCBlock_ffiInt_ffiVoid_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiInt_ffiVoid_ffiVoid_closureTrampoline, 0) + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiInt_ffiVoid_ffiVoid_closureTrampoline, 0) .cast(); /// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. abstract final class ObjCBlock_ffiInt_ffiVoid_ffiVoid { /// Returns a block that wraps the given raw block pointer. - static objc - .ObjCBlock, ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>(pointer, - retain: retain, release: release); + static objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock, ffi.Pointer)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock, ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_ffiInt_ffiVoid_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer arg0, ffi.Pointer arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_ffiInt_ffiVoid_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -43154,35 +44370,52 @@ abstract final class ObjCBlock_ffiInt_ffiVoid_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer)> fromFunction( - int Function(ffi.Pointer, ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_ffiInt_ffiVoid_ffiVoid_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, arg1), - keepIsolateAlive), - retain: false, - release: true); + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + int Function(ffi.Pointer, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_ffiInt_ffiVoid_ffiVoid_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_ffiInt_ffiVoid_ffiVoid_CallExtension on objc - .ObjCBlock, ffi.Pointer)> { - int call(ffi.Pointer arg0, ffi.Pointer arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, arg1); +extension ObjCBlock_ffiInt_ffiVoid_ffiVoid_CallExtension + on + objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > { + int call(ffi.Pointer arg0, ffi.Pointer arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); } typedef ptrdiff_t = ffi.Long; @@ -43273,73 +44506,115 @@ typedef DartNSExceptionName = objc.NSString; typedef NSRunLoopMode = ffi.Pointer; typedef DartNSRunLoopMode = objc.NSString; int _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrCallable = +_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrCallable = ffi.Pointer.fromFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrTrampoline, - 0) + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrTrampoline, + 0, + ) .cast(); -int _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as int Function(ffi.Pointer, - ffi.Pointer))(arg0, arg1); +int +_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as int Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); ffi.Pointer - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureCallable = +_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureCallable = ffi.Pointer.fromFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureTrampoline, - 0) + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureTrampoline, + 0, + ) .cast(); /// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. abstract final class ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - NSInteger Function(ffi.Pointer, - ffi.Pointer)>(pointer, - retain: retain, release: release); + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc - .ObjCBlock, ffi.Pointer)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1)>> ptr) => - objc.ObjCBlock< - NSInteger Function(ffi.Pointer, - ffi.Pointer)>( - objc.newPointerBlock( - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -43350,42 +44625,79 @@ abstract final class ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, ffi.Pointer)> - fromFunction(objc.NSComparisonResult Function(objc.ObjCObjectBase, objc.ObjCObjectBase) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(objc.ObjCObjectBase(arg0, retain: true, release: true), objc.ObjCObjectBase(arg1, retain: true, release: true)).value, - keepIsolateAlive), - retain: false, - release: true); + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.NSComparisonResult Function(objc.ObjCObjectBase, objc.ObjCObjectBase) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + objc.ObjCObjectBase(arg0, retain: true, release: true), + objc.ObjCObjectBase(arg1, retain: true, release: true), + ).value, + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. extension ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_CallExtension - on objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, ffi.Pointer)> { + on + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > { objc.NSComparisonResult call( - objc.ObjCObjectBase arg0, objc.ObjCObjectBase arg1) => - objc.NSComparisonResult.fromValue(ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction, ffi.Pointer, ffi.Pointer)>()( - ref.pointer, arg0.ref.pointer, arg1.ref.pointer)); + objc.ObjCObjectBase arg0, + objc.ObjCObjectBase arg1, + ) => objc.NSComparisonResult.fromValue( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer), + ); } typedef NSComparator = ffi.Pointer; -typedef DartNSComparator = objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, ffi.Pointer)>; +typedef DartNSComparator = + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >; typedef ptrauth_extra_data_t = ffi.UnsignedLong; typedef Dartptrauth_extra_data_t = int; typedef ptrauth_generic_signature_t = ffi.UnsignedLong; @@ -43499,8 +44811,8 @@ typedef DartProcPtrFunction = int Function(); typedef ProcPtr = ffi.Pointer>; typedef Register68kProcPtrFunction = ffi.Void Function(); typedef DartRegister68kProcPtrFunction = void Function(); -typedef Register68kProcPtr - = ffi.Pointer>; +typedef Register68kProcPtr = + ffi.Pointer>; typedef UniversalProcPtr = ProcPtr; typedef ProcHandle = ffi.Pointer; typedef UniversalProcHandle = ffi.Pointer; @@ -43684,24 +44996,27 @@ enum CFComparisonResult { const CFComparisonResult(this.value); static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => - throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; } -typedef CFComparatorFunctionFunction = CFIndex Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context); -typedef DartCFComparatorFunctionFunction = CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context); -typedef CFComparatorFunction - = ffi.Pointer>; +typedef CFComparatorFunctionFunction = + CFIndex Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef CFComparatorFunction = + ffi.Pointer>; final class CFRange extends ffi.Struct { @CFIndex() @@ -43718,52 +45033,70 @@ typedef CFNullRef = ffi.Pointer<__CFNull>; final class __CFAllocator extends ffi.Opaque {} typedef CFAllocatorRef = ffi.Pointer<__CFAllocator>; -typedef CFAllocatorRetainCallBackFunction = ffi.Pointer Function( - ffi.Pointer info); -typedef CFAllocatorRetainCallBack - = ffi.Pointer>; -typedef CFAllocatorReleaseCallBackFunction = ffi.Void Function( - ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = void Function( - ffi.Pointer info); -typedef CFAllocatorReleaseCallBack - = ffi.Pointer>; -typedef CFAllocatorCopyDescriptionCallBackFunction = CFStringRef Function( - ffi.Pointer info); -typedef CFAllocatorCopyDescriptionCallBack = 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 CFAllocatorAllocateCallBack - = 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 CFAllocatorReallocateCallBack - = ffi.Pointer>; -typedef CFAllocatorDeallocateCallBackFunction = ffi.Void Function( - ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = void Function( - ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorDeallocateCallBack - = 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 CFAllocatorPreferredSizeCallBack - = ffi.Pointer>; +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBack = + ffi.Pointer>; +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorReleaseCallBack = + ffi.Pointer>; +typedef CFAllocatorCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer info); +typedef CFAllocatorCopyDescriptionCallBack = + 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 CFAllocatorAllocateCallBack = + 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 CFAllocatorReallocateCallBack = + ffi.Pointer>; +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorDeallocateCallBack = + 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 CFAllocatorPreferredSizeCallBack = + ffi.Pointer>; final class CFAllocatorContext extends ffi.Struct { @CFIndex() @@ -43791,75 +45124,119 @@ late final _class_NSObject = objc.getClass("NSObject"); late final _sel_version = objc.registerName("version"); final _objc_msgSend_1hz7y9r = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_setVersion_ = objc.registerName("setVersion:"); final _objc_msgSend_4sp4xj = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_classForCoder = objc.registerName("classForCoder"); final _objc_msgSend_151sglz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_replacementObjectForCoder_ = - objc.registerName("replacementObjectForCoder:"); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_replacementObjectForCoder_ = objc.registerName( + "replacementObjectForCoder:", +); final _objc_msgSend_1sotr3r = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); -late final _sel_awakeAfterUsingCoder_ = - objc.registerName("awakeAfterUsingCoder:"); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_awakeAfterUsingCoder_ = objc.registerName( + "awakeAfterUsingCoder:", +); /// NSCoderMethods extension NSCoderMethods on objc.NSObject { /// version static DartNSInteger version() { - objc.checkOsVersionInternal('NSObject.version', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.version', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); return _objc_msgSend_1hz7y9r(_class_NSObject, _sel_version); } /// setVersion: static void setVersion(DartNSInteger aVersion) { - objc.checkOsVersionInternal('NSObject.setVersion:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.setVersion:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_4sp4xj(_class_NSObject, _sel_setVersion_, aVersion); } /// classForCoder objc.ObjCObjectBase get classForCoder { - objc.checkOsVersionInternal('NSObject.classForCoder', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.classForCoder', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_classForCoder); return objc.ObjCObjectBase(_ret, retain: true, release: true); } /// replacementObjectForCoder: objc.ObjCObjectBase? replacementObjectForCoder(objc.NSCoder coder) { - objc.checkOsVersionInternal('NSObject.replacementObjectForCoder:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.replacementObjectForCoder:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_replacementObjectForCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_replacementObjectForCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true); @@ -43867,10 +45244,16 @@ extension NSCoderMethods on objc.NSObject { /// awakeAfterUsingCoder: objc.ObjCObjectBase? awakeAfterUsingCoder(objc.NSCoder coder) { - objc.checkOsVersionInternal('NSObject.awakeAfterUsingCoder:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_awakeAfterUsingCoder_, coder.ref.pointer); + objc.checkOsVersionInternal( + 'NSObject.awakeAfterUsingCoder:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_awakeAfterUsingCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: false, release: true); @@ -43880,37 +45263,56 @@ extension NSCoderMethods on objc.NSObject { late final _sel_poseAsClass_ = objc.registerName("poseAsClass:"); final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// NSDeprecatedMethods extension NSDeprecatedMethods on objc.NSObject { /// poseAsClass: static void poseAsClass(objc.ObjCObjectBase aClass) { - objc.checkOsVersionInternal('NSObject.poseAsClass:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.poseAsClass:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_xtuoz7( - _class_NSObject, _sel_poseAsClass_, aClass.ref.pointer); + _class_NSObject, + _sel_poseAsClass_, + aClass.ref.pointer, + ); } } -late final _sel_autoContentAccessingProxy = - objc.registerName("autoContentAccessingProxy"); +late final _sel_autoContentAccessingProxy = objc.registerName( + "autoContentAccessingProxy", +); /// NSDiscardableContentProxy extension NSDiscardableContentProxy on objc.NSObject { /// autoContentAccessingProxy objc.ObjCObjectBase get autoContentAccessingProxy { - objc.checkOsVersionInternal('NSObject.autoContentAccessingProxy', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_autoContentAccessingProxy); + objc.checkOsVersionInternal( + 'NSObject.autoContentAccessingProxy', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_autoContentAccessingProxy, + ); return objc.ObjCObjectBase(_ret, retain: true, release: true); } } @@ -43941,12 +45343,13 @@ enum NSURLCacheStoragePolicy { const NSURLCacheStoragePolicy(this.value); static NSURLCacheStoragePolicy fromValue(int value) => switch (value) { - 0 => NSURLCacheStorageAllowed, - 1 => NSURLCacheStorageAllowedInMemoryOnly, - 2 => NSURLCacheStorageNotAllowed, - _ => throw ArgumentError( - 'Unknown value for NSURLCacheStoragePolicy: $value'), - }; + 0 => NSURLCacheStorageAllowed, + 1 => NSURLCacheStorageAllowedInMemoryOnly, + 2 => NSURLCacheStorageNotAllowed, + _ => throw ArgumentError( + 'Unknown value for NSURLCacheStoragePolicy: $value', + ), + }; } /// WARNING: NSCachedURLResponse is a stub. To generate bindings for this class, include @@ -43960,119 +45363,157 @@ enum NSURLCacheStoragePolicy { /// object. class NSCachedURLResponse extends objc.NSObject implements objc.NSSecureCoding, objc.NSCopying { - NSCachedURLResponse._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSCachedURLResponse', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + NSCachedURLResponse._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSCachedURLResponse', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); } /// Constructs a [NSCachedURLResponse] that points to the same underlying object as [other]. NSCachedURLResponse.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSCachedURLResponse] that wraps the given raw object pointer. - NSCachedURLResponse.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSCachedURLResponse.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } late final _class_NSURLCache = objc.getClass("NSURLCache"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// WARNING: NSURLSessionDataTask is a stub. To generate bindings for this class, include /// NSURLSessionDataTask in your config's objc-interfaces list. /// /// NSURLSessionDataTask class NSURLSessionDataTask extends NSURLSessionTask { - NSURLSessionDataTask._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSURLSessionDataTask._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSURLSessionDataTask] that points to the same underlying object as [other]. NSURLSessionDataTask.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionDataTask] that wraps the given raw object pointer. - NSURLSessionDataTask.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLSessionDataTask.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } -late final _sel_storeCachedResponse_forDataTask_ = - objc.registerName("storeCachedResponse:forDataTask:"); +late final _sel_storeCachedResponse_forDataTask_ = objc.registerName( + "storeCachedResponse:forDataTask:", +); final _objc_msgSend_pfv6jd = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); void _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSCachedURLResponse_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSCachedURLResponse_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSCachedURLResponse_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSCachedURLResponse_listenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSCachedURLResponse_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSCachedURLResponse_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSCachedURLResponse_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -44081,34 +45522,51 @@ void _ObjCBlock_ffiVoid_NSCachedURLResponse_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSCachedURLResponse_blockingCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSCachedURLResponse_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSCachedURLResponse_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSCachedURLResponse_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSCachedURLResponse_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSCachedURLResponse_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSCachedURLResponse_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSCachedURLResponse_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSCachedURLResponse { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -44116,17 +45574,19 @@ abstract final class ObjCBlock_ffiVoid_NSCachedURLResponse { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -44137,18 +45597,25 @@ abstract final class ObjCBlock_ffiVoid_NSCachedURLResponse { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(NSCachedURLResponse?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSCachedURLResponse_closureCallable, - (ffi.Pointer arg0) => fn(arg0.address == 0 - ? null - : NSCachedURLResponse.castFromPointer(arg0, - retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(NSCachedURLResponse?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureCallable, + (ffi.Pointer arg0) => fn( + arg0.address == 0 + ? null + : NSCachedURLResponse.castFromPointer( + arg0, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -44160,20 +45627,30 @@ abstract final class ObjCBlock_ffiVoid_NSCachedURLResponse { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(NSCachedURLResponse?) fn, - {bool keepIsolateAlive = true}) { + void Function(NSCachedURLResponse?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSCachedURLResponse_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSCachedURLResponse_listenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : NSCachedURLResponse.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + : NSCachedURLResponse.castFromPointer( + arg0, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -44187,31 +45664,50 @@ abstract final class ObjCBlock_ffiVoid_NSCachedURLResponse { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(NSCachedURLResponse?) fn, - {bool keepIsolateAlive = true}) { + void Function(NSCachedURLResponse?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSCachedURLResponse_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSCachedURLResponse_blockingCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : NSCachedURLResponse.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + : NSCachedURLResponse.castFromPointer( + arg0, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSCachedURLResponse_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSCachedURLResponse_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : NSCachedURLResponse.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + : NSCachedURLResponse.castFromPointer( + arg0, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -44219,70 +45715,98 @@ abstract final class ObjCBlock_ffiVoid_NSCachedURLResponse { extension ObjCBlock_ffiVoid_NSCachedURLResponse_CallExtension on objc.ObjCBlock { void call(NSCachedURLResponse? arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); } -late final _sel_getCachedResponseForDataTask_completionHandler_ = - objc.registerName("getCachedResponseForDataTask:completionHandler:"); +late final _sel_getCachedResponseForDataTask_completionHandler_ = objc + .registerName("getCachedResponseForDataTask:completionHandler:"); final _objc_msgSend_o762yo = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); -late final _sel_removeCachedResponseForDataTask_ = - objc.registerName("removeCachedResponseForDataTask:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_removeCachedResponseForDataTask_ = objc.registerName( + "removeCachedResponseForDataTask:", +); /// NSURLSessionTaskAdditions extension NSURLSessionTaskAdditions on NSURLCache { /// storeCachedResponse:forDataTask: - void storeCachedResponse(NSCachedURLResponse cachedResponse, - {required NSURLSessionDataTask forDataTask}) { - objc.checkOsVersionInternal('NSURLCache.storeCachedResponse:forDataTask:', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + void storeCachedResponse( + NSCachedURLResponse cachedResponse, { + required NSURLSessionDataTask forDataTask, + }) { + objc.checkOsVersionInternal( + 'NSURLCache.storeCachedResponse:forDataTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_storeCachedResponse_forDataTask_, - cachedResponse.ref.pointer, - forDataTask.ref.pointer); + this.ref.pointer, + _sel_storeCachedResponse_forDataTask_, + cachedResponse.ref.pointer, + forDataTask.ref.pointer, + ); } /// getCachedResponseForDataTask:completionHandler: - void getCachedResponseForDataTask(NSURLSessionDataTask dataTask, - {required objc.ObjCBlock - completionHandler}) { + void getCachedResponseForDataTask( + NSURLSessionDataTask dataTask, { + required objc.ObjCBlock + completionHandler, + }) { objc.checkOsVersionInternal( - 'NSURLCache.getCachedResponseForDataTask:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); + 'NSURLCache.getCachedResponseForDataTask:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); _objc_msgSend_o762yo( - this.ref.pointer, - _sel_getCachedResponseForDataTask_completionHandler_, - dataTask.ref.pointer, - completionHandler.ref.pointer); + this.ref.pointer, + _sel_getCachedResponseForDataTask_completionHandler_, + dataTask.ref.pointer, + completionHandler.ref.pointer, + ); } /// removeCachedResponseForDataTask: void removeCachedResponseForDataTask(NSURLSessionDataTask dataTask) { - objc.checkOsVersionInternal('NSURLCache.removeCachedResponseForDataTask:', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, - _sel_removeCachedResponseForDataTask_, dataTask.ref.pointer); + objc.checkOsVersionInternal( + 'NSURLCache.removeCachedResponseForDataTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeCachedResponseForDataTask_, + dataTask.ref.pointer, + ); } } @@ -44290,45 +45814,60 @@ late final _sel_sharedURLCache = objc.registerName("sharedURLCache"); late final _sel_setSharedURLCache_ = objc.registerName("setSharedURLCache:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObjectBase; -late final _sel_initWithMemoryCapacity_diskCapacity_diskPath_ = - objc.registerName("initWithMemoryCapacity:diskCapacity:diskPath:"); +late final _sel_initWithMemoryCapacity_diskCapacity_diskPath_ = objc + .registerName("initWithMemoryCapacity:diskCapacity:diskPath:"); final _objc_msgSend_1dqnse5 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer)>(); -late final _sel_initWithMemoryCapacity_diskCapacity_directoryURL_ = - objc.registerName("initWithMemoryCapacity:diskCapacity:directoryURL:"); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); +late final _sel_initWithMemoryCapacity_diskCapacity_directoryURL_ = objc + .registerName("initWithMemoryCapacity:diskCapacity:directoryURL:"); late final _class_NSURLRequest = objc.getClass("NSURLRequest"); late final _sel_HTTPMethod = objc.registerName("HTTPMethod"); late final _sel_allHTTPHeaderFields = objc.registerName("allHTTPHeaderFields"); -late final _sel_valueForHTTPHeaderField_ = - objc.registerName("valueForHTTPHeaderField:"); +late final _sel_valueForHTTPHeaderField_ = objc.registerName( + "valueForHTTPHeaderField:", +); late final _sel_HTTPBody = objc.registerName("HTTPBody"); late final _sel_HTTPBodyStream = objc.registerName("HTTPBodyStream"); -late final _sel_HTTPShouldHandleCookies = - objc.registerName("HTTPShouldHandleCookies"); +late final _sel_HTTPShouldHandleCookies = objc.registerName( + "HTTPShouldHandleCookies", +); final _objc_msgSend_91o635 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_HTTPShouldUsePipelining = - objc.registerName("HTTPShouldUsePipelining"); + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_HTTPShouldUsePipelining = objc.registerName( + "HTTPShouldUsePipelining", +); /// ! /// @category NSURLRequest(NSHTTPURLRequest) @@ -44339,8 +45878,11 @@ extension NSHTTPURLRequest on NSURLRequest { /// @abstract Returns the HTTP request method of the receiver. /// @result the HTTP request method of the receiver. objc.NSString? get HTTPMethod { - objc.checkOsVersionInternal('NSURLRequest.HTTPMethod', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPMethod', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_HTTPMethod); return _ret.address == 0 ? null @@ -44353,10 +45895,15 @@ extension NSHTTPURLRequest on NSURLRequest { /// @result a dictionary containing all the HTTP header fields of the /// receiver. objc.NSDictionary? get allHTTPHeaderFields { - objc.checkOsVersionInternal('NSURLRequest.allHTTPHeaderFields', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_allHTTPHeaderFields); + objc.checkOsVersionInternal( + 'NSURLRequest.allHTTPHeaderFields', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_allHTTPHeaderFields, + ); return _ret.address == 0 ? null : objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); @@ -44372,10 +45919,16 @@ extension NSHTTPURLRequest on NSURLRequest { /// @result the value associated with the given header field, or nil if /// there is no value associated with the given header field. objc.NSString? valueForHTTPHeaderField(objc.NSString field) { - objc.checkOsVersionInternal('NSURLRequest.valueForHTTPHeaderField:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.valueForHTTPHeaderField:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_valueForHTTPHeaderField_, field.ref.pointer); + this.ref.pointer, + _sel_valueForHTTPHeaderField_, + field.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); @@ -44387,8 +45940,11 @@ extension NSHTTPURLRequest on NSURLRequest { /// in done in an HTTP POST request. /// @result The request body data of the receiver. objc.NSData? get HTTPBody { - objc.checkOsVersionInternal('NSURLRequest.HTTPBody', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPBody', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_HTTPBody); return _ret.address == 0 ? null @@ -44406,8 +45962,11 @@ extension NSHTTPURLRequest on NSURLRequest { /// NSCoding protocol /// @result The request body stream of the receiver. objc.NSInputStream? get HTTPBodyStream { - objc.checkOsVersionInternal('NSURLRequest.HTTPBodyStream', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPBodyStream', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_HTTPBodyStream); return _ret.address == 0 ? null @@ -44421,8 +45980,11 @@ extension NSHTTPURLRequest on NSURLRequest { /// @result YES if cookies will be sent with and set for this request; /// otherwise NO. bool get HTTPShouldHandleCookies { - objc.checkOsVersionInternal('NSURLRequest.HTTPShouldHandleCookies', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPShouldHandleCookies', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_HTTPShouldHandleCookies); } @@ -44433,45 +45995,60 @@ extension NSHTTPURLRequest on NSURLRequest { /// is received. NO if the receiver should wait for the previous response /// before transmitting. bool get HTTPShouldUsePipelining { - objc.checkOsVersionInternal('NSURLRequest.HTTPShouldUsePipelining', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPShouldUsePipelining', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_HTTPShouldUsePipelining); } } late final _sel_requestWithURL_ = objc.registerName("requestWithURL:"); -late final _sel_supportsSecureCoding = - objc.registerName("supportsSecureCoding"); +late final _sel_supportsSecureCoding = objc.registerName( + "supportsSecureCoding", +); bool _ObjCBlock_bool_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_bool_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_bool_ffiVoid_fnPtrTrampoline, false) + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_fnPtrTrampoline, false) .cast(); bool _ObjCBlock_bool_ffiVoid_closureTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => + ffi.Pointer block, + ffi.Pointer arg0, +) => (objc.getBlockClosure(block) as bool Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_bool_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_bool_ffiVoid_closureTrampoline, false) + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_closureTrampoline, false) .cast(); /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_bool_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -44479,15 +46056,16 @@ abstract final class ObjCBlock_bool_ffiVoid { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_bool_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_bool_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -44498,13 +46076,17 @@ abstract final class ObjCBlock_bool_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> fromFunction( - bool Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock(_ObjCBlock_bool_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + bool Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_bool_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock)>`. @@ -44512,12 +46094,16 @@ extension ObjCBlock_bool_ffiVoid_CallExtension on objc.ObjCBlock)> { bool call(ffi.Pointer arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0); + bool Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); } /// ! @@ -44581,15 +46167,16 @@ enum NSURLRequestCachePolicy { const NSURLRequestCachePolicy(this.value); static NSURLRequestCachePolicy fromValue(int value) => switch (value) { - 0 => NSURLRequestUseProtocolCachePolicy, - 1 => NSURLRequestReloadIgnoringLocalCacheData, - 4 => NSURLRequestReloadIgnoringLocalAndRemoteCacheData, - 2 => NSURLRequestReturnCacheDataElseLoad, - 3 => NSURLRequestReturnCacheDataDontLoad, - 5 => NSURLRequestReloadRevalidatingCacheData, - _ => throw ArgumentError( - 'Unknown value for NSURLRequestCachePolicy: $value'), - }; + 0 => NSURLRequestUseProtocolCachePolicy, + 1 => NSURLRequestReloadIgnoringLocalCacheData, + 4 => NSURLRequestReloadIgnoringLocalAndRemoteCacheData, + 2 => NSURLRequestReturnCacheDataElseLoad, + 3 => NSURLRequestReturnCacheDataDontLoad, + 5 => NSURLRequestReloadRevalidatingCacheData, + _ => throw ArgumentError( + 'Unknown value for NSURLRequestCachePolicy: $value', + ), + }; @override String toString() { @@ -44601,54 +46188,79 @@ enum NSURLRequestCachePolicy { typedef NSTimeInterval = ffi.Double; typedef DartNSTimeInterval = double; -late final _sel_requestWithURL_cachePolicy_timeoutInterval_ = - objc.registerName("requestWithURL:cachePolicy:timeoutInterval:"); +late final _sel_requestWithURL_cachePolicy_timeoutInterval_ = objc.registerName( + "requestWithURL:cachePolicy:timeoutInterval:", +); final _objc_msgSend_1ajs603 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Double)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - double)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Double, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + double, + ) + >(); late final _sel_initWithURL_ = objc.registerName("initWithURL:"); -late final _sel_initWithURL_cachePolicy_timeoutInterval_ = - objc.registerName("initWithURL:cachePolicy:timeoutInterval:"); +late final _sel_initWithURL_cachePolicy_timeoutInterval_ = objc.registerName( + "initWithURL:cachePolicy:timeoutInterval:", +); late final _sel_URL = objc.registerName("URL"); late final _sel_cachePolicy = objc.registerName("cachePolicy"); final _objc_msgSend_8jm3uo = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_timeoutInterval = objc.registerName("timeoutInterval"); final _objc_msgSend_1ukqyt8 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_mainDocumentURL = objc.registerName("mainDocumentURL"); /// ! @@ -44712,35 +46324,43 @@ enum NSURLRequestNetworkServiceType { const NSURLRequestNetworkServiceType(this.value); static NSURLRequestNetworkServiceType fromValue(int value) => switch (value) { - 0 => NSURLNetworkServiceTypeDefault, - 1 => NSURLNetworkServiceTypeVoIP, - 2 => NSURLNetworkServiceTypeVideo, - 3 => NSURLNetworkServiceTypeBackground, - 4 => NSURLNetworkServiceTypeVoice, - 6 => NSURLNetworkServiceTypeResponsiveData, - 8 => NSURLNetworkServiceTypeAVStreaming, - 9 => NSURLNetworkServiceTypeResponsiveAV, - 11 => NSURLNetworkServiceTypeCallSignaling, - _ => throw ArgumentError( - 'Unknown value for NSURLRequestNetworkServiceType: $value'), - }; + 0 => NSURLNetworkServiceTypeDefault, + 1 => NSURLNetworkServiceTypeVoIP, + 2 => NSURLNetworkServiceTypeVideo, + 3 => NSURLNetworkServiceTypeBackground, + 4 => NSURLNetworkServiceTypeVoice, + 6 => NSURLNetworkServiceTypeResponsiveData, + 8 => NSURLNetworkServiceTypeAVStreaming, + 9 => NSURLNetworkServiceTypeResponsiveAV, + 11 => NSURLNetworkServiceTypeCallSignaling, + _ => throw ArgumentError( + 'Unknown value for NSURLRequestNetworkServiceType: $value', + ), + }; } late final _sel_networkServiceType = objc.registerName("networkServiceType"); final _objc_msgSend_t4uaw1 = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_allowsCellularAccess = - objc.registerName("allowsCellularAccess"); -late final _sel_allowsExpensiveNetworkAccess = - objc.registerName("allowsExpensiveNetworkAccess"); -late final _sel_allowsConstrainedNetworkAccess = - objc.registerName("allowsConstrainedNetworkAccess"); + int Function(ffi.Pointer, ffi.Pointer) + >(); +late final _sel_allowsCellularAccess = objc.registerName( + "allowsCellularAccess", +); +late final _sel_allowsExpensiveNetworkAccess = objc.registerName( + "allowsExpensiveNetworkAccess", +); +late final _sel_allowsConstrainedNetworkAccess = objc.registerName( + "allowsConstrainedNetworkAccess", +); late final _sel_assumesHTTP3Capable = objc.registerName("assumesHTTP3Capable"); /// ! @@ -44762,98 +46382,133 @@ enum NSURLRequestAttribution { const NSURLRequestAttribution(this.value); static NSURLRequestAttribution fromValue(int value) => switch (value) { - 0 => NSURLRequestAttributionDeveloper, - 1 => NSURLRequestAttributionUser, - _ => throw ArgumentError( - 'Unknown value for NSURLRequestAttribution: $value'), - }; + 0 => NSURLRequestAttributionDeveloper, + 1 => NSURLRequestAttributionUser, + _ => throw ArgumentError( + 'Unknown value for NSURLRequestAttribution: $value', + ), + }; } late final _sel_attribution = objc.registerName("attribution"); final _objc_msgSend_i3avs9 = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_requiresDNSSECValidation = - objc.registerName("requiresDNSSECValidation"); + int Function(ffi.Pointer, ffi.Pointer) + >(); +late final _sel_requiresDNSSECValidation = objc.registerName( + "requiresDNSSECValidation", +); late final _sel_allowsPersistentDNS = objc.registerName("allowsPersistentDNS"); -late final _sel_cookiePartitionIdentifier = - objc.registerName("cookiePartitionIdentifier"); +late final _sel_cookiePartitionIdentifier = objc.registerName( + "cookiePartitionIdentifier", +); late final _sel_init = objc.registerName("init"); late final _sel_new = objc.registerName("new"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_alloc = objc.registerName("alloc"); late final _sel_self = objc.registerName("self"); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) .cast(); ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); +_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. abstract final class ObjCBlock_objcObjCObject_ffiVoid { /// Returns a block that wraps the given raw block pointer. - static objc - .ObjCBlock Function(ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer)>( - pointer, - retain: retain, - release: release); + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock Function(ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -44863,97 +46518,141 @@ abstract final class ObjCBlock_objcObjCObject_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock Function(ffi.Pointer)> - fromFunction(objc.ObjCObjectBase Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, - (ffi.Pointer arg0) => - fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + objc.ObjCObjectBase Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension on objc - .ObjCBlock Function(ffi.Pointer)> { +extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { objc.ObjCObjectBase call(ffi.Pointer arg0) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0), - retain: true, - release: true); + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); } late final _sel_retain = objc.registerName("retain"); late final _sel_autorelease = objc.registerName("autorelease"); late final _sel_encodeWithCoder_ = objc.registerName("encodeWithCoder:"); void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -44962,60 +46661,80 @@ void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, objc.NSCoder)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock, objc.NSCoder)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, - objc.NSCoder)>(pointer, retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, objc.NSCoder)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock, objc.NSCoder)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock, objc.NSCoder)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock, objc.NSCoder)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, objc.NSCoder)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -45025,18 +46744,22 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSCoder)> fromFunction( - void Function(ffi.Pointer, objc.NSCoder) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, objc.NSCoder)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, objc.NSCoder.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock, objc.NSCoder)> + fromFunction( + void Function(ffi.Pointer, objc.NSCoder) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, objc.NSCoder)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + objc.NSCoder.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -45048,20 +46771,23 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock, objc.NSCoder)> - listener(void Function(ffi.Pointer, objc.NSCoder) fn, - {bool keepIsolateAlive = true}) { + listener( + void Function(ffi.Pointer, objc.NSCoder) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, - objc.NSCoder.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + objc.NSCoder.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_18v1jvf(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSCoder)>(wrapper, - retain: false, release: true); + ffi.Void Function(ffi.Pointer, objc.NSCoder) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -45075,30 +46801,37 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock, objc.NSCoder)> - blocking(void Function(ffi.Pointer, objc.NSCoder) fn, - {bool keepIsolateAlive = true}) { + blocking( + void Function(ffi.Pointer, objc.NSCoder) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, - objc.NSCoder.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + objc.NSCoder.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, - objc.NSCoder.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + objc.NSCoder.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_18v1jvf( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSCoder)>(wrapper, - retain: false, release: true); + ffi.Void Function(ffi.Pointer, objc.NSCoder) + >(wrapper, retain: false, release: true); } } @@ -45106,63 +46839,93 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { extension ObjCBlock_ffiVoid_ffiVoid_NSCoder_CallExtension on objc.ObjCBlock, objc.NSCoder)> { void call(ffi.Pointer arg0, objc.NSCoder arg1) => ref - .pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>()( - ref.pointer, arg0, arg1.ref.pointer); + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer); } late final _sel_initWithCoder_ = objc.registerName("initWithCoder:"); instancetype _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - instancetype Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - instancetype Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable = ffi.Pointer.fromFunction< - instancetype Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline) + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline) .cast(); instancetype _ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as instancetype Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as instancetype Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); ffi.Pointer _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable = ffi.Pointer.fromFunction< - instancetype Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline) + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, objc.NSCoder)>`. abstract final class ObjCBlock_instancetype_ffiVoid_NSCoder { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, objc.NSCoder)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSCoder)>(pointer, retain: retain, release: release); + objc.Retained?> Function( + ffi.Pointer, + objc.NSCoder, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSCoder, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -45170,16 +46933,35 @@ abstract final class ObjCBlock_instancetype_ffiVoid_NSCoder { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, objc.NSCoder)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1)>> ptr) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, objc.NSCoder)>( - objc.newPointerBlock( - _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.Retained?> Function( + ffi.Pointer, + objc.NSCoder, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSCoder, + ) + >( + objc.newPointerBlock( + _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -45189,68 +46971,117 @@ abstract final class ObjCBlock_instancetype_ffiVoid_NSCoder { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock?> Function(ffi.Pointer, objc.NSCoder)> fromFunction( - Dartinstancetype? Function(ffi.Pointer, objc.NSCoder) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock?> Function(ffi.Pointer, objc.NSCoder)>( - objc.newClosureBlock( - _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, objc.NSCoder.castFromPointer(arg1, retain: true, release: true)) - ?.ref - .retainAndReturnPointer() ?? - ffi.nullptr, - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSCoder, + ) + > + fromFunction( + Dartinstancetype? Function(ffi.Pointer, objc.NSCoder) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSCoder, + ) + >( + objc.newClosureBlock( + _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0, + objc.NSCoder.castFromPointer(arg1, retain: true, release: true), + )?.ref.retainAndReturnPointer() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, objc.NSCoder)>`. extension ObjCBlock_instancetype_ffiVoid_NSCoder_CallExtension - on objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, objc.NSCoder)> { - Dartinstancetype? call(ffi.Pointer arg0, objc.NSCoder arg1) => ref - .pointer.ref.invoke + on + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSCoder, + ) + > { + Dartinstancetype? call(ffi.Pointer arg0, objc.NSCoder arg1) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction, ffi.Pointer, ffi.Pointer)>() - (ref.pointer, arg0, arg1.ref.pointer) + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer) .address == 0 ? null : objc.ObjCObjectBase( ref.pointer.ref.invoke - .cast block, ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction, ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0, arg1.ref.pointer), + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer), retain: false, - release: true); + release: true, + ); } /// NSURLRequest class NSURLRequest extends objc.NSObject implements objc.NSSecureCoding, objc.NSCopying, objc.NSMutableCopying { - NSURLRequest._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSURLRequest._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSURLRequest] that points to the same underlying object as [other]. NSURLRequest.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLRequest] that wraps the given raw object pointer. - NSURLRequest.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLRequest.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURLRequest]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSURLRequest); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURLRequest, + ); } /// ! @@ -45263,10 +47094,16 @@ class NSURLRequest extends objc.NSObject /// @param URL The URL for the request. /// @result A newly-created and autoreleased NSURLRequest instance. static NSURLRequest requestWithURL(objc.NSURL URL) { - objc.checkOsVersionInternal('NSURLRequest.requestWithURL:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.requestWithURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSURLRequest, _sel_requestWithURL_, URL.ref.pointer); + _class_NSURLRequest, + _sel_requestWithURL_, + URL.ref.pointer, + ); return NSURLRequest.castFromPointer(_ret, retain: true, release: true); } @@ -45285,19 +47122,23 @@ class NSURLRequest extends objc.NSObject /// commentary for the timeoutInterval for more information on /// timeout intervals. /// @result A newly-created and autoreleased NSURLRequest instance. - static NSURLRequest requestWithURL$1(objc.NSURL URL, - {required NSURLRequestCachePolicy cachePolicy, - required DartNSTimeInterval timeoutInterval}) { + static NSURLRequest requestWithURL$1( + objc.NSURL URL, { + required NSURLRequestCachePolicy cachePolicy, + required DartNSTimeInterval timeoutInterval, + }) { objc.checkOsVersionInternal( - 'NSURLRequest.requestWithURL:cachePolicy:timeoutInterval:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0))); + 'NSURLRequest.requestWithURL:cachePolicy:timeoutInterval:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_1ajs603( - _class_NSURLRequest, - _sel_requestWithURL_cachePolicy_timeoutInterval_, - URL.ref.pointer, - cachePolicy.value, - timeoutInterval); + _class_NSURLRequest, + _sel_requestWithURL_cachePolicy_timeoutInterval_, + URL.ref.pointer, + cachePolicy.value, + timeoutInterval, + ); return NSURLRequest.castFromPointer(_ret, retain: true, release: true); } @@ -45310,10 +47151,16 @@ class NSURLRequest extends objc.NSObject /// @param URL The URL for the request. /// @result An initialized NSURLRequest. NSURLRequest initWithURL(objc.NSURL URL) { - objc.checkOsVersionInternal('NSURLRequest.initWithURL:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.initWithURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), _sel_initWithURL_, URL.ref.pointer); + this.ref.retainAndReturnPointer(), + _sel_initWithURL_, + URL.ref.pointer, + ); return NSURLRequest.castFromPointer(_ret, retain: false, release: true); } @@ -45329,19 +47176,23 @@ class NSURLRequest extends objc.NSObject /// commentary for the timeoutInterval for more information on /// timeout intervals. /// @result An initialized NSURLRequest. - NSURLRequest initWithURL$1(objc.NSURL URL, - {required NSURLRequestCachePolicy cachePolicy, - required DartNSTimeInterval timeoutInterval}) { + NSURLRequest initWithURL$1( + objc.NSURL URL, { + required NSURLRequestCachePolicy cachePolicy, + required DartNSTimeInterval timeoutInterval, + }) { objc.checkOsVersionInternal( - 'NSURLRequest.initWithURL:cachePolicy:timeoutInterval:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0))); + 'NSURLRequest.initWithURL:cachePolicy:timeoutInterval:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_1ajs603( - this.ref.retainAndReturnPointer(), - _sel_initWithURL_cachePolicy_timeoutInterval_, - URL.ref.pointer, - cachePolicy.value, - timeoutInterval); + this.ref.retainAndReturnPointer(), + _sel_initWithURL_cachePolicy_timeoutInterval_, + URL.ref.pointer, + cachePolicy.value, + timeoutInterval, + ); return NSURLRequest.castFromPointer(_ret, retain: false, release: true); } @@ -45349,8 +47200,11 @@ class NSURLRequest extends objc.NSObject /// @abstract Returns the URL of the receiver. /// @result The URL of the receiver. objc.NSURL? get URL { - objc.checkOsVersionInternal('NSURLRequest.URL', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.URL', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_URL); return _ret.address == 0 ? null @@ -45361,8 +47215,11 @@ class NSURLRequest extends objc.NSObject /// @abstract Returns the cache policy of the receiver. /// @result The cache policy of the receiver. NSURLRequestCachePolicy get cachePolicy { - objc.checkOsVersionInternal('NSURLRequest.cachePolicy', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.cachePolicy', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_8jm3uo(this.ref.pointer, _sel_cachePolicy); return NSURLRequestCachePolicy.fromValue(_ret); } @@ -45381,8 +47238,11 @@ class NSURLRequest extends objc.NSObject /// in seconds. /// @result The timeout interval of the receiver. DartNSTimeInterval get timeoutInterval { - objc.checkOsVersionInternal('NSURLRequest.timeoutInterval', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.timeoutInterval', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); return objc.useMsgSendVariants ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_timeoutInterval) : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeoutInterval); @@ -45396,8 +47256,11 @@ class NSURLRequest extends objc.NSObject /// See setMainDocumentURL: /// @result The main document URL. objc.NSURL? get mainDocumentURL { - objc.checkOsVersionInternal('NSURLRequest.mainDocumentURL', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.mainDocumentURL', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_mainDocumentURL); return _ret.address == 0 ? null @@ -45410,10 +47273,15 @@ class NSURLRequest extends objc.NSObject /// not explicitly set a networkServiceType (using the setNetworkServiceType method). /// @result The NSURLRequestNetworkServiceType associated with this request. NSURLRequestNetworkServiceType get networkServiceType { - objc.checkOsVersionInternal('NSURLRequest.networkServiceType', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = - _objc_msgSend_t4uaw1(this.ref.pointer, _sel_networkServiceType); + objc.checkOsVersionInternal( + 'NSURLRequest.networkServiceType', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_t4uaw1( + this.ref.pointer, + _sel_networkServiceType, + ); return NSURLRequestNetworkServiceType.fromValue(_ret); } @@ -45423,8 +47291,11 @@ class NSURLRequest extends objc.NSObject /// @result YES if the receiver is allowed to use the built in cellular radios to /// satisfy the request, NO otherwise. bool get allowsCellularAccess { - objc.checkOsVersionInternal('NSURLRequest.allowsCellularAccess', - iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.allowsCellularAccess', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_allowsCellularAccess); } @@ -45434,10 +47305,15 @@ class NSURLRequest extends objc.NSObject /// @result YES if the receiver is allowed to use an interface marked as expensive to /// satisfy the request, NO otherwise. bool get allowsExpensiveNetworkAccess { - objc.checkOsVersionInternal('NSURLRequest.allowsExpensiveNetworkAccess', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.allowsExpensiveNetworkAccess', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); return _objc_msgSend_91o635( - this.ref.pointer, _sel_allowsExpensiveNetworkAccess); + this.ref.pointer, + _sel_allowsExpensiveNetworkAccess, + ); } /// ! @@ -45446,10 +47322,15 @@ class NSURLRequest extends objc.NSObject /// @result YES if the receiver is allowed to use an interface marked as constrained to /// satisfy the request, NO otherwise. bool get allowsConstrainedNetworkAccess { - objc.checkOsVersionInternal('NSURLRequest.allowsConstrainedNetworkAccess', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.allowsConstrainedNetworkAccess', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); return _objc_msgSend_91o635( - this.ref.pointer, _sel_allowsConstrainedNetworkAccess); + this.ref.pointer, + _sel_allowsConstrainedNetworkAccess, + ); } /// ! @@ -45458,8 +47339,11 @@ class NSURLRequest extends objc.NSObject /// @result YES if server endpoint is known to support HTTP/3. Defaults to NO. /// The default may be YES in a future OS update. bool get assumesHTTP3Capable { - objc.checkOsVersionInternal('NSURLRequest.assumesHTTP3Capable', - iOS: (false, (14, 5, 0)), macOS: (false, (11, 3, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.assumesHTTP3Capable', + iOS: (false, (14, 5, 0)), + macOS: (false, (11, 3, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_assumesHTTP3Capable); } @@ -45469,8 +47353,11 @@ class NSURLRequest extends objc.NSObject /// have not explicitly set an attribution. /// @result The NSURLRequestAttribution associated with this request. NSURLRequestAttribution get attribution { - objc.checkOsVersionInternal('NSURLRequest.attribution', - iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.attribution', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); final _ret = _objc_msgSend_i3avs9(this.ref.pointer, _sel_attribution); return NSURLRequestAttribution.fromValue(_ret); } @@ -45480,10 +47367,15 @@ class NSURLRequest extends objc.NSObject /// @discussion YES, if the DNS lookup for this request should require DNSSEC validation, /// No otherwise. Defaults to NO. bool get requiresDNSSECValidation { - objc.checkOsVersionInternal('NSURLRequest.requiresDNSSECValidation', - iOS: (false, (16, 1, 0)), macOS: (false, (13, 0, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.requiresDNSSECValidation', + iOS: (false, (16, 1, 0)), + macOS: (false, (13, 0, 0)), + ); return _objc_msgSend_91o635( - this.ref.pointer, _sel_requiresDNSSECValidation); + this.ref.pointer, + _sel_requiresDNSSECValidation, + ); } /// ! @@ -45493,17 +47385,25 @@ class NSURLRequest extends objc.NSObject /// @discussion YES, if the DNS lookup for this request is allowed to use a persistent per-process cache, /// NO otherwise. Defaults to NO. bool get allowsPersistentDNS { - objc.checkOsVersionInternal('NSURLRequest.allowsPersistentDNS', - iOS: (false, (18, 0, 0)), macOS: (false, (15, 0, 0))); + objc.checkOsVersionInternal( + 'NSURLRequest.allowsPersistentDNS', + iOS: (false, (18, 0, 0)), + macOS: (false, (15, 0, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_allowsPersistentDNS); } /// Cookie partition identifier used for cookie storage and retrieval. objc.NSString? get cookiePartitionIdentifier { - objc.checkOsVersionInternal('NSURLRequest.cookiePartitionIdentifier', - iOS: (false, (18, 2, 0)), macOS: (false, (15, 2, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_cookiePartitionIdentifier); + objc.checkOsVersionInternal( + 'NSURLRequest.cookiePartitionIdentifier', + iOS: (false, (18, 2, 0)), + macOS: (false, (15, 2, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_cookiePartitionIdentifier, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); @@ -45511,10 +47411,15 @@ class NSURLRequest extends objc.NSObject /// init NSURLRequest init() { - objc.checkOsVersionInternal('NSURLRequest.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSURLRequest.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSURLRequest.castFromPointer(_ret, retain: false, release: true); } @@ -45526,8 +47431,11 @@ class NSURLRequest extends objc.NSObject /// allocWithZone: static NSURLRequest allocWithZone(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSURLRequest, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSURLRequest, + _sel_allocWithZone_, + zone, + ); return NSURLRequest.castFromPointer(_ret, retain: false, release: true); } @@ -45558,13 +47466,19 @@ class NSURLRequest extends objc.NSObject /// encodeWithCoder: void encodeWithCoder(objc.NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// initWithCoder: NSURLRequest? initWithCoder(objc.NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSURLRequest.castFromPointer(_ret, retain: false, release: true); @@ -45574,42 +47488,67 @@ class NSURLRequest extends objc.NSObject factory NSURLRequest() => new$(); } -late final _sel_cachedResponseForRequest_ = - objc.registerName("cachedResponseForRequest:"); -late final _sel_storeCachedResponse_forRequest_ = - objc.registerName("storeCachedResponse:forRequest:"); -late final _sel_removeCachedResponseForRequest_ = - objc.registerName("removeCachedResponseForRequest:"); -late final _sel_removeAllCachedResponses = - objc.registerName("removeAllCachedResponses"); +late final _sel_cachedResponseForRequest_ = objc.registerName( + "cachedResponseForRequest:", +); +late final _sel_storeCachedResponse_forRequest_ = objc.registerName( + "storeCachedResponse:forRequest:", +); +late final _sel_removeCachedResponseForRequest_ = objc.registerName( + "removeCachedResponseForRequest:", +); +late final _sel_removeAllCachedResponses = objc.registerName( + "removeAllCachedResponses", +); final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_removeCachedResponsesSinceDate_ = - objc.registerName("removeCachedResponsesSinceDate:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_removeCachedResponsesSinceDate_ = objc.registerName( + "removeCachedResponsesSinceDate:", +); late final _sel_memoryCapacity = objc.registerName("memoryCapacity"); final _objc_msgSend_xw2lbc = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_setMemoryCapacity_ = objc.registerName("setMemoryCapacity:"); final _objc_msgSend_1i9r4xy = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_diskCapacity = objc.registerName("diskCapacity"); late final _sel_setDiskCapacity_ = objc.registerName("setDiskCapacity:"); late final _sel_currentMemoryUsage = objc.registerName("currentMemoryUsage"); @@ -45617,26 +47556,36 @@ late final _sel_currentDiskUsage = objc.registerName("currentDiskUsage"); /// NSURLCache class NSURLCache extends objc.NSObject { - NSURLCache._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSURLCache', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + NSURLCache._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLCache', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); } /// Constructs a [NSURLCache] that points to the same underlying object as [other]. NSURLCache.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLCache] that wraps the given raw object pointer. - NSURLCache.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLCache.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURLCache]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSURLCache); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURLCache, + ); } /// ! @@ -45664,8 +47613,11 @@ class NSURLCache extends objc.NSObject { /// becoming unexpectedly unretrievable. /// @result the shared NSURLCache instance. static NSURLCache getSharedURLCache() { - objc.checkOsVersionInternal('NSURLCache.sharedURLCache', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLCache.sharedURLCache', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(_class_NSURLCache, _sel_sharedURLCache); return NSURLCache.castFromPointer(_ret, retain: true, release: true); } @@ -45695,10 +47647,16 @@ class NSURLCache extends objc.NSObject { /// becoming unexpectedly unretrievable. /// @result the shared NSURLCache instance. static void setSharedURLCache(NSURLCache value) { - objc.checkOsVersionInternal('NSURLCache.setSharedURLCache:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLCache.setSharedURLCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); _objc_msgSend_xtuoz7( - _class_NSURLCache, _sel_setSharedURLCache_, value.ref.pointer); + _class_NSURLCache, + _sel_setSharedURLCache_, + value.ref.pointer, + ); } /// ! @@ -45714,18 +47672,23 @@ class NSURLCache extends objc.NSObject { /// @param path the path on disk where the cache data is stored. /// @result an initialized NSURLCache, with the given capacity, backed /// by disk. - NSURLCache initWithMemoryCapacity(DartNSUInteger memoryCapacity, - {required DartNSUInteger diskCapacity, objc.NSString? diskPath}) { + NSURLCache initWithMemoryCapacity( + DartNSUInteger memoryCapacity, { + required DartNSUInteger diskCapacity, + objc.NSString? diskPath, + }) { objc.checkOsVersionInternal( - 'NSURLCache.initWithMemoryCapacity:diskCapacity:diskPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0))); + 'NSURLCache.initWithMemoryCapacity:diskCapacity:diskPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_1dqnse5( - this.ref.retainAndReturnPointer(), - _sel_initWithMemoryCapacity_diskCapacity_diskPath_, - memoryCapacity, - diskCapacity, - diskPath?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initWithMemoryCapacity_diskCapacity_diskPath_, + memoryCapacity, + diskCapacity, + diskPath?.ref.pointer ?? ffi.nullptr, + ); return NSURLCache.castFromPointer(_ret, retain: false, release: true); } @@ -45736,18 +47699,23 @@ class NSURLCache extends objc.NSObject { /// @param diskCapacity the capacity, measured in bytes, for the cache on disk. Or 0 to disable disk cache. /// @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$1(DartNSUInteger memoryCapacity, - {required DartNSUInteger diskCapacity, objc.NSURL? directoryURL}) { + NSURLCache initWithMemoryCapacity$1( + DartNSUInteger memoryCapacity, { + required DartNSUInteger diskCapacity, + objc.NSURL? directoryURL, + }) { objc.checkOsVersionInternal( - 'NSURLCache.initWithMemoryCapacity:diskCapacity:directoryURL:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSURLCache.initWithMemoryCapacity:diskCapacity:directoryURL:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_1dqnse5( - this.ref.retainAndReturnPointer(), - _sel_initWithMemoryCapacity_diskCapacity_directoryURL_, - memoryCapacity, - diskCapacity, - directoryURL?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initWithMemoryCapacity_diskCapacity_directoryURL_, + memoryCapacity, + diskCapacity, + directoryURL?.ref.pointer ?? ffi.nullptr, + ); return NSURLCache.castFromPointer(_ret, retain: false, release: true); } @@ -45762,14 +47730,23 @@ class NSURLCache extends objc.NSObject { /// request, or nil if there is no NSCachedURLResponse stored with the /// given request. NSCachedURLResponse? cachedResponseForRequest(NSURLRequest request) { - objc.checkOsVersionInternal('NSURLCache.cachedResponseForRequest:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLCache.cachedResponseForRequest:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_cachedResponseForRequest_, request.ref.pointer); + this.ref.pointer, + _sel_cachedResponseForRequest_, + request.ref.pointer, + ); return _ret.address == 0 ? null - : NSCachedURLResponse.castFromPointer(_ret, - retain: true, release: true); + : NSCachedURLResponse.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// ! @@ -45778,12 +47755,21 @@ class NSURLCache extends objc.NSObject { /// the given request. /// @param cachedResponse The cached response to store. /// @param request the NSURLRequest to use as a key for the storage. - void storeCachedResponse(NSCachedURLResponse cachedResponse, - {required NSURLRequest forRequest}) { - objc.checkOsVersionInternal('NSURLCache.storeCachedResponse:forRequest:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); - _objc_msgSend_pfv6jd(this.ref.pointer, _sel_storeCachedResponse_forRequest_, - cachedResponse.ref.pointer, forRequest.ref.pointer); + void storeCachedResponse( + NSCachedURLResponse cachedResponse, { + required NSURLRequest forRequest, + }) { + objc.checkOsVersionInternal( + 'NSURLCache.storeCachedResponse:forRequest:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_storeCachedResponse_forRequest_, + cachedResponse.ref.pointer, + forRequest.ref.pointer, + ); } /// ! @@ -45794,10 +47780,16 @@ class NSURLCache extends objc.NSObject { /// stored with the given request. /// @param request the NSURLRequest to use as a key for the lookup. void removeCachedResponseForRequest(NSURLRequest request) { - objc.checkOsVersionInternal('NSURLCache.removeCachedResponseForRequest:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_removeCachedResponseForRequest_, - request.ref.pointer); + objc.checkOsVersionInternal( + 'NSURLCache.removeCachedResponseForRequest:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeCachedResponseForRequest_, + request.ref.pointer, + ); } /// ! @@ -45805,8 +47797,11 @@ class NSURLCache extends objc.NSObject { /// @abstract Clears the given cache, removing all NSCachedURLResponse /// objects that it stores. void removeAllCachedResponses() { - objc.checkOsVersionInternal('NSURLCache.removeAllCachedResponses', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLCache.removeAllCachedResponses', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllCachedResponses); } @@ -45814,10 +47809,16 @@ class NSURLCache extends objc.NSObject { /// @method removeCachedResponsesSince: /// @abstract Clears the given cache of any cached responses since the provided date. void removeCachedResponsesSinceDate(objc.NSDate date) { - objc.checkOsVersionInternal('NSURLCache.removeCachedResponsesSinceDate:', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_removeCachedResponsesSinceDate_, - date.ref.pointer); + objc.checkOsVersionInternal( + 'NSURLCache.removeCachedResponsesSinceDate:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeCachedResponsesSinceDate_, + date.ref.pointer, + ); } /// ! @@ -45825,8 +47826,11 @@ class NSURLCache extends objc.NSObject { /// @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. DartNSUInteger get memoryCapacity { - objc.checkOsVersionInternal('NSURLCache.memoryCapacity', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLCache.memoryCapacity', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_memoryCapacity); } @@ -45835,8 +47839,11 @@ class NSURLCache extends objc.NSObject { /// @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(DartNSUInteger value) { - objc.checkOsVersionInternal('NSURLCache.setMemoryCapacity:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLCache.setMemoryCapacity:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_setMemoryCapacity_, value); } @@ -45844,8 +47851,11 @@ class NSURLCache extends objc.NSObject { /// @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. DartNSUInteger get diskCapacity { - objc.checkOsVersionInternal('NSURLCache.diskCapacity', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLCache.diskCapacity', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_diskCapacity); } @@ -45853,8 +47863,11 @@ class NSURLCache extends objc.NSObject { /// @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(DartNSUInteger value) { - objc.checkOsVersionInternal('NSURLCache.setDiskCapacity:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLCache.setDiskCapacity:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_setDiskCapacity_, value); } @@ -45865,8 +47878,11 @@ class NSURLCache extends objc.NSObject { /// usage of the in-memory cache. /// @result the current usage of the in-memory cache of the receiver. DartNSUInteger get currentMemoryUsage { - objc.checkOsVersionInternal('NSURLCache.currentMemoryUsage', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLCache.currentMemoryUsage', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_currentMemoryUsage); } @@ -45877,17 +47893,25 @@ class NSURLCache extends objc.NSObject { /// usage of the on-disk cache. /// @result the current usage of the on-disk cache of the receiver. DartNSUInteger get currentDiskUsage { - objc.checkOsVersionInternal('NSURLCache.currentDiskUsage', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLCache.currentDiskUsage', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_currentDiskUsage); } /// init NSURLCache init() { - objc.checkOsVersionInternal('NSURLCache.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSURLCache.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSURLCache.castFromPointer(_ret, retain: false, release: true); } @@ -45899,8 +47923,11 @@ class NSURLCache extends objc.NSObject { /// allocWithZone: static NSURLCache allocWithZone(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSURLCache, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSURLCache, + _sel_allocWithZone_, + zone, + ); return NSURLCache.castFromPointer(_ret, retain: false, release: true); } @@ -45935,120 +47962,169 @@ class NSURLCache extends objc.NSObject { typedef NSNotificationName = ffi.Pointer; typedef DartNSNotificationName = objc.NSString; late final _class_NSNotification = objc.getClass("NSNotification"); -late final _sel_notificationWithName_object_ = - objc.registerName("notificationWithName:object:"); +late final _sel_notificationWithName_object_ = objc.registerName( + "notificationWithName:object:", +); final _objc_msgSend_15qeuct = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); -late final _sel_notificationWithName_object_userInfo_ = - objc.registerName("notificationWithName:object:userInfo:"); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_notificationWithName_object_userInfo_ = objc.registerName( + "notificationWithName:object:userInfo:", +); final _objc_msgSend_11spmsz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// NSNotificationCreation extension NSNotificationCreation on objc.NSNotification { /// notificationWithName:object: - static objc.NSNotification notificationWithName(DartNSNotificationName aName, - {objc.ObjCObjectBase? object}) { + static objc.NSNotification notificationWithName( + DartNSNotificationName aName, { + objc.ObjCObjectBase? object, + }) { final _ret = _objc_msgSend_15qeuct( - _class_NSNotification, - _sel_notificationWithName_object_, - aName.ref.pointer, - object?.ref.pointer ?? ffi.nullptr); - return objc.NSNotification.castFromPointer(_ret, - retain: true, release: true); + _class_NSNotification, + _sel_notificationWithName_object_, + aName.ref.pointer, + object?.ref.pointer ?? ffi.nullptr, + ); + return objc.NSNotification.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// notificationWithName:object:userInfo: static objc.NSNotification notificationWithName$1( - DartNSNotificationName aName, - {objc.ObjCObjectBase? object, - objc.NSDictionary? userInfo}) { + DartNSNotificationName aName, { + objc.ObjCObjectBase? object, + objc.NSDictionary? userInfo, + }) { final _ret = _objc_msgSend_11spmsz( - _class_NSNotification, - _sel_notificationWithName_object_userInfo_, - aName.ref.pointer, - object?.ref.pointer ?? ffi.nullptr, - userInfo?.ref.pointer ?? ffi.nullptr); - return objc.NSNotification.castFromPointer(_ret, - retain: true, release: true); + _class_NSNotification, + _sel_notificationWithName_object_userInfo_, + aName.ref.pointer, + object?.ref.pointer ?? ffi.nullptr, + userInfo?.ref.pointer ?? ffi.nullptr, + ); + return objc.NSNotification.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// init objc.NSNotification init() { - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); - return objc.NSNotification.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return objc.NSNotification.castFromPointer( + _ret, + retain: false, + release: true, + ); } } late final _class_NSDate = objc.getClass("NSDate"); late final _sel_date = objc.registerName("date"); -late final _sel_dateWithTimeIntervalSinceNow_ = - objc.registerName("dateWithTimeIntervalSinceNow:"); +late final _sel_dateWithTimeIntervalSinceNow_ = objc.registerName( + "dateWithTimeIntervalSinceNow:", +); final _objc_msgSend_oa8mke = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Double)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, double)>(); -late final _sel_dateWithTimeIntervalSinceReferenceDate_ = - objc.registerName("dateWithTimeIntervalSinceReferenceDate:"); -late final _sel_dateWithTimeIntervalSince1970_ = - objc.registerName("dateWithTimeIntervalSince1970:"); -late final _sel_dateWithTimeInterval_sinceDate_ = - objc.registerName("dateWithTimeInterval:sinceDate:"); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +late final _sel_dateWithTimeIntervalSinceReferenceDate_ = objc.registerName( + "dateWithTimeIntervalSinceReferenceDate:", +); +late final _sel_dateWithTimeIntervalSince1970_ = objc.registerName( + "dateWithTimeIntervalSince1970:", +); +late final _sel_dateWithTimeInterval_sinceDate_ = objc.registerName( + "dateWithTimeInterval:sinceDate:", +); final _objc_msgSend_1ozwf6k = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); late final _sel_distantFuture = objc.registerName("distantFuture"); late final _sel_distantPast = objc.registerName("distantPast"); late final _sel_now = objc.registerName("now"); -late final _sel_initWithTimeIntervalSinceNow_ = - objc.registerName("initWithTimeIntervalSinceNow:"); -late final _sel_initWithTimeIntervalSince1970_ = - objc.registerName("initWithTimeIntervalSince1970:"); -late final _sel_initWithTimeInterval_sinceDate_ = - objc.registerName("initWithTimeInterval:sinceDate:"); +late final _sel_initWithTimeIntervalSinceNow_ = objc.registerName( + "initWithTimeIntervalSinceNow:", +); +late final _sel_initWithTimeIntervalSince1970_ = objc.registerName( + "initWithTimeIntervalSince1970:", +); +late final _sel_initWithTimeInterval_sinceDate_ = objc.registerName( + "initWithTimeInterval:sinceDate:", +); /// NSDateCreation extension NSDateCreation on objc.NSDate { @@ -46061,33 +48137,46 @@ extension NSDateCreation on objc.NSDate { /// dateWithTimeIntervalSinceNow: static objc.NSDate dateWithTimeIntervalSinceNow(DartNSTimeInterval secs) { final _ret = _objc_msgSend_oa8mke( - _class_NSDate, _sel_dateWithTimeIntervalSinceNow_, secs); + _class_NSDate, + _sel_dateWithTimeIntervalSinceNow_, + secs, + ); return objc.NSDate.castFromPointer(_ret, retain: true, release: true); } /// dateWithTimeIntervalSinceReferenceDate: static objc.NSDate dateWithTimeIntervalSinceReferenceDate( - DartNSTimeInterval ti) { + DartNSTimeInterval ti, + ) { final _ret = _objc_msgSend_oa8mke( - _class_NSDate, _sel_dateWithTimeIntervalSinceReferenceDate_, ti); + _class_NSDate, + _sel_dateWithTimeIntervalSinceReferenceDate_, + ti, + ); return objc.NSDate.castFromPointer(_ret, retain: true, release: true); } /// dateWithTimeIntervalSince1970: static objc.NSDate dateWithTimeIntervalSince1970(DartNSTimeInterval secs) { final _ret = _objc_msgSend_oa8mke( - _class_NSDate, _sel_dateWithTimeIntervalSince1970_, secs); + _class_NSDate, + _sel_dateWithTimeIntervalSince1970_, + secs, + ); return objc.NSDate.castFromPointer(_ret, retain: true, release: true); } /// dateWithTimeInterval:sinceDate: - static objc.NSDate dateWithTimeInterval(DartNSTimeInterval secsToBeAdded, - {required objc.NSDate sinceDate}) { + static objc.NSDate dateWithTimeInterval( + DartNSTimeInterval secsToBeAdded, { + required objc.NSDate sinceDate, + }) { final _ret = _objc_msgSend_1ozwf6k( - _class_NSDate, - _sel_dateWithTimeInterval_sinceDate_, - secsToBeAdded, - sinceDate.ref.pointer); + _class_NSDate, + _sel_dateWithTimeInterval_sinceDate_, + secsToBeAdded, + sinceDate.ref.pointer, + ); return objc.NSDate.castFromPointer(_ret, retain: true, release: true); } @@ -46105,60 +48194,86 @@ extension NSDateCreation on objc.NSDate { /// now static objc.NSDate getNow() { - objc.checkOsVersionInternal('NSDate.now', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSDate.now', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_151sglz(_class_NSDate, _sel_now); return objc.NSDate.castFromPointer(_ret, retain: true, release: true); } /// initWithTimeIntervalSinceNow: objc.NSDate initWithTimeIntervalSinceNow(DartNSTimeInterval secs) { - final _ret = _objc_msgSend_oa8mke(this.ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSinceNow_, secs); + final _ret = _objc_msgSend_oa8mke( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSinceNow_, + secs, + ); return objc.NSDate.castFromPointer(_ret, retain: false, release: true); } /// initWithTimeIntervalSince1970: objc.NSDate initWithTimeIntervalSince1970(DartNSTimeInterval secs) { - final _ret = _objc_msgSend_oa8mke(this.ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSince1970_, secs); + final _ret = _objc_msgSend_oa8mke( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSince1970_, + secs, + ); return objc.NSDate.castFromPointer(_ret, retain: false, release: true); } /// initWithTimeInterval:sinceDate: - objc.NSDate initWithTimeInterval(DartNSTimeInterval secsToBeAdded, - {required objc.NSDate sinceDate}) { + objc.NSDate initWithTimeInterval( + DartNSTimeInterval secsToBeAdded, { + required objc.NSDate sinceDate, + }) { final _ret = _objc_msgSend_1ozwf6k( - this.ref.retainAndReturnPointer(), - _sel_initWithTimeInterval_sinceDate_, - secsToBeAdded, - sinceDate.ref.pointer); + this.ref.retainAndReturnPointer(), + _sel_initWithTimeInterval_sinceDate_, + secsToBeAdded, + sinceDate.ref.pointer, + ); return objc.NSDate.castFromPointer(_ret, retain: false, release: true); } } late final _class_NSMutableURLRequest = objc.getClass("NSMutableURLRequest"); late final _sel_setHTTPMethod_ = objc.registerName("setHTTPMethod:"); -late final _sel_setAllHTTPHeaderFields_ = - objc.registerName("setAllHTTPHeaderFields:"); -late final _sel_setValue_forHTTPHeaderField_ = - objc.registerName("setValue:forHTTPHeaderField:"); -late final _sel_addValue_forHTTPHeaderField_ = - objc.registerName("addValue:forHTTPHeaderField:"); +late final _sel_setAllHTTPHeaderFields_ = objc.registerName( + "setAllHTTPHeaderFields:", +); +late final _sel_setValue_forHTTPHeaderField_ = objc.registerName( + "setValue:forHTTPHeaderField:", +); +late final _sel_addValue_forHTTPHeaderField_ = objc.registerName( + "addValue:forHTTPHeaderField:", +); late final _sel_setHTTPBody_ = objc.registerName("setHTTPBody:"); late final _sel_setHTTPBodyStream_ = objc.registerName("setHTTPBodyStream:"); -late final _sel_setHTTPShouldHandleCookies_ = - objc.registerName("setHTTPShouldHandleCookies:"); +late final _sel_setHTTPShouldHandleCookies_ = objc.registerName( + "setHTTPShouldHandleCookies:", +); final _objc_msgSend_1s56lr9 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, bool)>(); -late final _sel_setHTTPShouldUsePipelining_ = - objc.registerName("setHTTPShouldUsePipelining:"); + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +late final _sel_setHTTPShouldUsePipelining_ = objc.registerName( + "setHTTPShouldUsePipelining:", +); /// ! /// @category NSMutableURLRequest(NSMutableHTTPURLRequest) @@ -46168,8 +48283,11 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// ! /// @abstract Sets the HTTP request method of the receiver. objc.NSString get HTTPMethod { - objc.checkOsVersionInternal('NSMutableURLRequest.HTTPMethod', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPMethod', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_HTTPMethod); return objc.NSString.castFromPointer(_ret, retain: true, release: true); } @@ -46177,10 +48295,16 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// ! /// @abstract Sets the HTTP request method of the receiver. set HTTPMethod(objc.NSString value) { - objc.checkOsVersionInternal('NSMutableURLRequest.setHTTPMethod:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setHTTPMethod:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_setHTTPMethod_, value.ref.pointer); + this.ref.pointer, + _sel_setHTTPMethod_, + value.ref.pointer, + ); } /// ! @@ -46194,10 +48318,15 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// the key or value for a key-value pair answers NO when sent this /// message, the key-value pair is skipped. objc.NSDictionary? get allHTTPHeaderFields { - objc.checkOsVersionInternal('NSMutableURLRequest.allHTTPHeaderFields', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_allHTTPHeaderFields); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.allHTTPHeaderFields', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_allHTTPHeaderFields, + ); return _ret.address == 0 ? null : objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); @@ -46214,10 +48343,16 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// the key or value for a key-value pair answers NO when sent this /// message, the key-value pair is skipped. set allHTTPHeaderFields(objc.NSDictionary? value) { - objc.checkOsVersionInternal('NSMutableURLRequest.setAllHTTPHeaderFields:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setAllHTTPHeaderFields_, - value?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setAllHTTPHeaderFields:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setAllHTTPHeaderFields_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// ! @@ -46229,14 +48364,21 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// case-insensitive. /// @param value the header field value. /// @param field the header field name (case-insensitive). - void setValue(objc.NSString? value, - {required objc.NSString forHTTPHeaderField}) { + void setValue( + objc.NSString? value, { + required objc.NSString forHTTPHeaderField, + }) { objc.checkOsVersionInternal( - 'NSMutableURLRequest.setValue:forHTTPHeaderField:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0))); - _objc_msgSend_pfv6jd(this.ref.pointer, _sel_setValue_forHTTPHeaderField_, - value?.ref.pointer ?? ffi.nullptr, forHTTPHeaderField.ref.pointer); + 'NSMutableURLRequest.setValue:forHTTPHeaderField:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_setValue_forHTTPHeaderField_, + value?.ref.pointer ?? ffi.nullptr, + forHTTPHeaderField.ref.pointer, + ); } /// ! @@ -46252,14 +48394,21 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// header field names are case-insensitive. /// @param value the header field value. /// @param field the header field name (case-insensitive). - void addValue(objc.NSString value, - {required objc.NSString forHTTPHeaderField}) { + void addValue( + objc.NSString value, { + required objc.NSString forHTTPHeaderField, + }) { objc.checkOsVersionInternal( - 'NSMutableURLRequest.addValue:forHTTPHeaderField:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0))); - _objc_msgSend_pfv6jd(this.ref.pointer, _sel_addValue_forHTTPHeaderField_, - value.ref.pointer, forHTTPHeaderField.ref.pointer); + 'NSMutableURLRequest.addValue:forHTTPHeaderField:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_addValue_forHTTPHeaderField_, + value.ref.pointer, + forHTTPHeaderField.ref.pointer, + ); } /// ! @@ -46267,8 +48416,11 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// @discussion This data is sent as the message body of the request, as /// in done in an HTTP POST request. objc.NSData? get HTTPBody { - objc.checkOsVersionInternal('NSMutableURLRequest.HTTPBody', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPBody', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_HTTPBody); return _ret.address == 0 ? null @@ -46280,10 +48432,16 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// @discussion This data is sent as the message body of the request, as /// in done in an HTTP POST request. set HTTPBody(objc.NSData? value) { - objc.checkOsVersionInternal('NSMutableURLRequest.setHTTPBody:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setHTTPBody:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_setHTTPBody_, value?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_setHTTPBody_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// ! @@ -46294,8 +48452,11 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// and the body data (set by setHTTPBody:, above) are mutually exclusive /// - setting one will clear the other. objc.NSInputStream? get HTTPBodyStream { - objc.checkOsVersionInternal('NSMutableURLRequest.HTTPBodyStream', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPBodyStream', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_HTTPBodyStream); return _ret.address == 0 ? null @@ -46310,10 +48471,16 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// and the body data (set by setHTTPBody:, above) are mutually exclusive /// - setting one will clear the other. set HTTPBodyStream(objc.NSInputStream? value) { - objc.checkOsVersionInternal('NSMutableURLRequest.setHTTPBodyStream:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setHTTPBodyStream_, - value?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setHTTPBodyStream:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setHTTPBodyStream_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// ! @@ -46324,8 +48491,11 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// stored to the cookie manager by default. /// NOTE: In releases prior to 10.3, this value is ignored bool get HTTPShouldHandleCookies { - objc.checkOsVersionInternal('NSMutableURLRequest.HTTPShouldHandleCookies', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPShouldHandleCookies', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_HTTPShouldHandleCookies); } @@ -46338,11 +48508,15 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// NOTE: In releases prior to 10.3, this value is ignored set HTTPShouldHandleCookies(bool value) { objc.checkOsVersionInternal( - 'NSMutableURLRequest.setHTTPShouldHandleCookies:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0))); + 'NSMutableURLRequest.setHTTPShouldHandleCookies:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setHTTPShouldHandleCookies_, value); + this.ref.pointer, + _sel_setHTTPShouldHandleCookies_, + value, + ); } /// ! @@ -46361,8 +48535,11 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// pipelining (disconnecting, sending resources misordered, omitting part of /// a resource, etc.). bool get HTTPShouldUsePipelining { - objc.checkOsVersionInternal('NSMutableURLRequest.HTTPShouldUsePipelining', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPShouldUsePipelining', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_HTTPShouldUsePipelining); } @@ -46383,11 +48560,15 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { /// a resource, etc.). set HTTPShouldUsePipelining(bool value) { objc.checkOsVersionInternal( - 'NSMutableURLRequest.setHTTPShouldUsePipelining:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0))); + 'NSMutableURLRequest.setHTTPShouldUsePipelining:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setHTTPShouldUsePipelining_, value); + this.ref.pointer, + _sel_setHTTPShouldUsePipelining_, + value, + ); } } @@ -46395,55 +48576,99 @@ late final _sel_setURL_ = objc.registerName("setURL:"); late final _sel_setCachePolicy_ = objc.registerName("setCachePolicy:"); final _objc_msgSend_1yjxuv2 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_setTimeoutInterval_ = objc.registerName("setTimeoutInterval:"); final _objc_msgSend_hwm8nu = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Double)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, double)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); late final _sel_setMainDocumentURL_ = objc.registerName("setMainDocumentURL:"); -late final _sel_setNetworkServiceType_ = - objc.registerName("setNetworkServiceType:"); +late final _sel_setNetworkServiceType_ = objc.registerName( + "setNetworkServiceType:", +); final _objc_msgSend_1mse4s1 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); -late final _sel_setAllowsCellularAccess_ = - objc.registerName("setAllowsCellularAccess:"); -late final _sel_setAllowsExpensiveNetworkAccess_ = - objc.registerName("setAllowsExpensiveNetworkAccess:"); -late final _sel_setAllowsConstrainedNetworkAccess_ = - objc.registerName("setAllowsConstrainedNetworkAccess:"); -late final _sel_setAssumesHTTP3Capable_ = - objc.registerName("setAssumesHTTP3Capable:"); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_setAllowsCellularAccess_ = objc.registerName( + "setAllowsCellularAccess:", +); +late final _sel_setAllowsExpensiveNetworkAccess_ = objc.registerName( + "setAllowsExpensiveNetworkAccess:", +); +late final _sel_setAllowsConstrainedNetworkAccess_ = objc.registerName( + "setAllowsConstrainedNetworkAccess:", +); +late final _sel_setAssumesHTTP3Capable_ = objc.registerName( + "setAssumesHTTP3Capable:", +); late final _sel_setAttribution_ = objc.registerName("setAttribution:"); final _objc_msgSend_1nw1jep = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); -late final _sel_setRequiresDNSSECValidation_ = - objc.registerName("setRequiresDNSSECValidation:"); -late final _sel_setAllowsPersistentDNS_ = - objc.registerName("setAllowsPersistentDNS:"); -late final _sel_setCookiePartitionIdentifier_ = - objc.registerName("setCookiePartitionIdentifier:"); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_setRequiresDNSSECValidation_ = objc.registerName( + "setRequiresDNSSECValidation:", +); +late final _sel_setAllowsPersistentDNS_ = objc.registerName( + "setAllowsPersistentDNS:", +); +late final _sel_setCookiePartitionIdentifier_ = objc.registerName( + "setCookiePartitionIdentifier:", +); /// ! /// @class NSMutableURLRequest @@ -46474,33 +48699,46 @@ late final _sel_setCookiePartitionIdentifier_ = /// example. /// class NSMutableURLRequest extends NSURLRequest { - NSMutableURLRequest._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSMutableURLRequest', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + NSMutableURLRequest._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMutableURLRequest', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); } /// Constructs a [NSMutableURLRequest] that points to the same underlying object as [other]. NSMutableURLRequest.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSMutableURLRequest] that wraps the given raw object pointer. - NSMutableURLRequest.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSMutableURLRequest.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSMutableURLRequest]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSMutableURLRequest); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableURLRequest, + ); } /// ! /// @abstract The URL of the receiver. objc.NSURL? get URL { - objc.checkOsVersionInternal('NSMutableURLRequest.URL', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.URL', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_URL); return _ret.address == 0 ? null @@ -46510,17 +48748,26 @@ class NSMutableURLRequest extends NSURLRequest { /// ! /// @abstract The URL of the receiver. set URL(objc.NSURL? value) { - objc.checkOsVersionInternal('NSMutableURLRequest.setURL:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_setURL_, value?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_setURL_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// ! /// @abstract The cache policy of the receiver. NSURLRequestCachePolicy get cachePolicy { - objc.checkOsVersionInternal('NSMutableURLRequest.cachePolicy', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.cachePolicy', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_8jm3uo(this.ref.pointer, _sel_cachePolicy); return NSURLRequestCachePolicy.fromValue(_ret); } @@ -46528,8 +48775,11 @@ class NSMutableURLRequest extends NSURLRequest { /// ! /// @abstract The cache policy of the receiver. set cachePolicy(NSURLRequestCachePolicy value) { - objc.checkOsVersionInternal('NSMutableURLRequest.setCachePolicy:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setCachePolicy:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); _objc_msgSend_1yjxuv2(this.ref.pointer, _sel_setCachePolicy_, value.value); } @@ -46546,8 +48796,11 @@ class NSMutableURLRequest extends NSURLRequest { /// is considered to have timed out. This timeout interval is measured /// in seconds. DartNSTimeInterval get timeoutInterval { - objc.checkOsVersionInternal('NSMutableURLRequest.timeoutInterval', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.timeoutInterval', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); return objc.useMsgSendVariants ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_timeoutInterval) : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeoutInterval); @@ -46566,8 +48819,11 @@ class NSMutableURLRequest extends NSURLRequest { /// is considered to have timed out. This timeout interval is measured /// in seconds. set timeoutInterval(DartNSTimeInterval value) { - objc.checkOsVersionInternal('NSMutableURLRequest.setTimeoutInterval:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setTimeoutInterval:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); _objc_msgSend_hwm8nu(this.ref.pointer, _sel_setTimeoutInterval_, value); } @@ -46581,8 +48837,11 @@ class NSMutableURLRequest extends NSURLRequest { /// as a sub-resource of a user-specified URL, and possibly other things /// in the future. objc.NSURL? get mainDocumentURL { - objc.checkOsVersionInternal('NSMutableURLRequest.mainDocumentURL', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.mainDocumentURL', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_mainDocumentURL); return _ret.address == 0 ? null @@ -46599,10 +48858,16 @@ class NSMutableURLRequest extends NSURLRequest { /// as a sub-resource of a user-specified URL, and possibly other things /// in the future. set mainDocumentURL(objc.NSURL? value) { - objc.checkOsVersionInternal('NSMutableURLRequest.setMainDocumentURL:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setMainDocumentURL_, - value?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setMainDocumentURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setMainDocumentURL_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// ! @@ -46610,10 +48875,15 @@ 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. NSURLRequestNetworkServiceType get networkServiceType { - objc.checkOsVersionInternal('NSMutableURLRequest.networkServiceType', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = - _objc_msgSend_t4uaw1(this.ref.pointer, _sel_networkServiceType); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.networkServiceType', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_t4uaw1( + this.ref.pointer, + _sel_networkServiceType, + ); return NSURLRequestNetworkServiceType.fromValue(_ret); } @@ -46622,10 +48892,16 @@ 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(NSURLRequestNetworkServiceType value) { - objc.checkOsVersionInternal('NSMutableURLRequest.setNetworkServiceType:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setNetworkServiceType:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_1mse4s1( - this.ref.pointer, _sel_setNetworkServiceType_, value.value); + this.ref.pointer, + _sel_setNetworkServiceType_, + value.value, + ); } /// ! @@ -46634,8 +48910,11 @@ 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. bool get allowsCellularAccess { - objc.checkOsVersionInternal('NSMutableURLRequest.allowsCellularAccess', - iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.allowsCellularAccess', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_allowsCellularAccess); } @@ -46645,10 +48924,16 @@ 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) { - objc.checkOsVersionInternal('NSMutableURLRequest.setAllowsCellularAccess:', - iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setAllowsCellularAccess:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setAllowsCellularAccess_, value); + this.ref.pointer, + _sel_setAllowsCellularAccess_, + value, + ); } /// ! @@ -46658,11 +48943,14 @@ class NSMutableURLRequest extends NSURLRequest { /// satisfy the request, YES otherwise. bool get allowsExpensiveNetworkAccess { objc.checkOsVersionInternal( - 'NSMutableURLRequest.allowsExpensiveNetworkAccess', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSMutableURLRequest.allowsExpensiveNetworkAccess', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); return _objc_msgSend_91o635( - this.ref.pointer, _sel_allowsExpensiveNetworkAccess); + this.ref.pointer, + _sel_allowsExpensiveNetworkAccess, + ); } /// ! @@ -46672,11 +48960,15 @@ class NSMutableURLRequest extends NSURLRequest { /// satisfy the request, YES otherwise. set allowsExpensiveNetworkAccess(bool value) { objc.checkOsVersionInternal( - 'NSMutableURLRequest.setAllowsExpensiveNetworkAccess:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSMutableURLRequest.setAllowsExpensiveNetworkAccess:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setAllowsExpensiveNetworkAccess_, value); + this.ref.pointer, + _sel_setAllowsExpensiveNetworkAccess_, + value, + ); } /// ! @@ -46686,11 +48978,14 @@ class NSMutableURLRequest extends NSURLRequest { /// satisfy the request, YES otherwise. bool get allowsConstrainedNetworkAccess { objc.checkOsVersionInternal( - 'NSMutableURLRequest.allowsConstrainedNetworkAccess', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSMutableURLRequest.allowsConstrainedNetworkAccess', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); return _objc_msgSend_91o635( - this.ref.pointer, _sel_allowsConstrainedNetworkAccess); + this.ref.pointer, + _sel_allowsConstrainedNetworkAccess, + ); } /// ! @@ -46700,11 +48995,15 @@ class NSMutableURLRequest extends NSURLRequest { /// satisfy the request, YES otherwise. set allowsConstrainedNetworkAccess(bool value) { objc.checkOsVersionInternal( - 'NSMutableURLRequest.setAllowsConstrainedNetworkAccess:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSMutableURLRequest.setAllowsConstrainedNetworkAccess:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setAllowsConstrainedNetworkAccess_, value); + this.ref.pointer, + _sel_setAllowsConstrainedNetworkAccess_, + value, + ); } /// ! @@ -46713,8 +49012,11 @@ 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. bool get assumesHTTP3Capable { - objc.checkOsVersionInternal('NSMutableURLRequest.assumesHTTP3Capable', - iOS: (false, (14, 5, 0)), macOS: (false, (11, 3, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.assumesHTTP3Capable', + iOS: (false, (14, 5, 0)), + macOS: (false, (11, 3, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_assumesHTTP3Capable); } @@ -46724,10 +49026,16 @@ 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) { - objc.checkOsVersionInternal('NSMutableURLRequest.setAssumesHTTP3Capable:', - iOS: (false, (14, 5, 0)), macOS: (false, (11, 3, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setAssumesHTTP3Capable:', + iOS: (false, (14, 5, 0)), + macOS: (false, (11, 3, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setAssumesHTTP3Capable_, value); + this.ref.pointer, + _sel_setAssumesHTTP3Capable_, + value, + ); } /// ! @@ -46735,8 +49043,11 @@ class NSMutableURLRequest extends NSURLRequest { /// @discussion Set to NSURLRequestAttributionUser if the URL was specified by the /// user. Defaults to NSURLRequestAttributionDeveloper. NSURLRequestAttribution get attribution { - objc.checkOsVersionInternal('NSMutableURLRequest.attribution', - iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.attribution', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); final _ret = _objc_msgSend_i3avs9(this.ref.pointer, _sel_attribution); return NSURLRequestAttribution.fromValue(_ret); } @@ -46746,8 +49057,11 @@ class NSMutableURLRequest extends NSURLRequest { /// @discussion Set to NSURLRequestAttributionUser if the URL was specified by the /// user. Defaults to NSURLRequestAttributionDeveloper. set attribution(NSURLRequestAttribution value) { - objc.checkOsVersionInternal('NSMutableURLRequest.setAttribution:', - iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setAttribution:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); _objc_msgSend_1nw1jep(this.ref.pointer, _sel_setAttribution_, value.value); } @@ -46756,10 +49070,15 @@ class NSMutableURLRequest extends NSURLRequest { /// @discussion YES, if the DNS lookup for this request should require DNSSEC validation, /// No otherwise. Defaults to NO. bool get requiresDNSSECValidation { - objc.checkOsVersionInternal('NSMutableURLRequest.requiresDNSSECValidation', - iOS: (false, (16, 1, 0)), macOS: (false, (13, 0, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.requiresDNSSECValidation', + iOS: (false, (16, 1, 0)), + macOS: (false, (13, 0, 0)), + ); return _objc_msgSend_91o635( - this.ref.pointer, _sel_requiresDNSSECValidation); + this.ref.pointer, + _sel_requiresDNSSECValidation, + ); } /// ! @@ -46768,11 +49087,15 @@ class NSMutableURLRequest extends NSURLRequest { /// No otherwise. Defaults to NO. set requiresDNSSECValidation(bool value) { objc.checkOsVersionInternal( - 'NSMutableURLRequest.setRequiresDNSSECValidation:', - iOS: (false, (16, 1, 0)), - macOS: (false, (13, 0, 0))); + 'NSMutableURLRequest.setRequiresDNSSECValidation:', + iOS: (false, (16, 1, 0)), + macOS: (false, (13, 0, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setRequiresDNSSECValidation_, value); + this.ref.pointer, + _sel_setRequiresDNSSECValidation_, + value, + ); } /// ! @@ -46782,8 +49105,11 @@ class NSMutableURLRequest extends NSURLRequest { /// @discussion YES, if the DNS lookup for this request is allowed to use a persistent per-process cache, /// NO otherwise. Defaults to NO. bool get allowsPersistentDNS { - objc.checkOsVersionInternal('NSMutableURLRequest.allowsPersistentDNS', - iOS: (false, (18, 0, 0)), macOS: (false, (15, 0, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.allowsPersistentDNS', + iOS: (false, (18, 0, 0)), + macOS: (false, (15, 0, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_allowsPersistentDNS); } @@ -46794,18 +49120,29 @@ class NSMutableURLRequest extends NSURLRequest { /// @discussion YES, if the DNS lookup for this request is allowed to use a persistent per-process cache, /// NO otherwise. Defaults to NO. set allowsPersistentDNS(bool value) { - objc.checkOsVersionInternal('NSMutableURLRequest.setAllowsPersistentDNS:', - iOS: (false, (18, 0, 0)), macOS: (false, (15, 0, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setAllowsPersistentDNS:', + iOS: (false, (18, 0, 0)), + macOS: (false, (15, 0, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setAllowsPersistentDNS_, value); + this.ref.pointer, + _sel_setAllowsPersistentDNS_, + value, + ); } /// Cookie partition identifier used for cookie storage and retrieval. objc.NSString? get cookiePartitionIdentifier { - objc.checkOsVersionInternal('NSMutableURLRequest.cookiePartitionIdentifier', - iOS: (false, (18, 2, 0)), macOS: (false, (15, 2, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_cookiePartitionIdentifier); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.cookiePartitionIdentifier', + iOS: (false, (18, 2, 0)), + macOS: (false, (15, 2, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_cookiePartitionIdentifier, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); @@ -46814,11 +49151,15 @@ class NSMutableURLRequest extends NSURLRequest { /// Cookie partition identifier used for cookie storage and retrieval. set cookiePartitionIdentifier(objc.NSString? value) { objc.checkOsVersionInternal( - 'NSMutableURLRequest.setCookiePartitionIdentifier:', - iOS: (false, (18, 2, 0)), - macOS: (false, (15, 2, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setCookiePartitionIdentifier_, - value?.ref.pointer ?? ffi.nullptr); + 'NSMutableURLRequest.setCookiePartitionIdentifier:', + iOS: (false, (18, 2, 0)), + macOS: (false, (15, 2, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setCookiePartitionIdentifier_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// ! @@ -46831,18 +49172,29 @@ class NSMutableURLRequest extends NSURLRequest { /// @param URL The URL for the request. /// @result A newly-created and autoreleased NSURLRequest instance. static NSMutableURLRequest requestWithURL(objc.NSURL URL) { - objc.checkOsVersionInternal('NSMutableURLRequest.requestWithURL:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.requestWithURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableURLRequest, _sel_requestWithURL_, URL.ref.pointer); - return NSMutableURLRequest.castFromPointer(_ret, - retain: true, release: true); + _class_NSMutableURLRequest, + _sel_requestWithURL_, + URL.ref.pointer, + ); + return NSMutableURLRequest.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635( - _class_NSMutableURLRequest, _sel_supportsSecureCoding); + _class_NSMutableURLRequest, + _sel_supportsSecureCoding, + ); } /// ! @@ -46855,21 +49207,28 @@ class NSMutableURLRequest extends NSURLRequest { /// commentary for the timeoutInterval for more information on /// timeout intervals. /// @result A newly-created and autoreleased NSURLRequest instance. - static NSMutableURLRequest requestWithURL$1(objc.NSURL URL, - {required NSURLRequestCachePolicy cachePolicy, - required DartNSTimeInterval timeoutInterval}) { + static NSMutableURLRequest requestWithURL$1( + objc.NSURL URL, { + required NSURLRequestCachePolicy cachePolicy, + required DartNSTimeInterval timeoutInterval, + }) { objc.checkOsVersionInternal( - 'NSMutableURLRequest.requestWithURL:cachePolicy:timeoutInterval:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0))); + 'NSMutableURLRequest.requestWithURL:cachePolicy:timeoutInterval:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_1ajs603( - _class_NSMutableURLRequest, - _sel_requestWithURL_cachePolicy_timeoutInterval_, - URL.ref.pointer, - cachePolicy.value, - timeoutInterval); - return NSMutableURLRequest.castFromPointer(_ret, - retain: true, release: true); + _class_NSMutableURLRequest, + _sel_requestWithURL_cachePolicy_timeoutInterval_, + URL.ref.pointer, + cachePolicy.value, + timeoutInterval, + ); + return NSMutableURLRequest.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// ! @@ -46881,12 +49240,21 @@ class NSMutableURLRequest extends NSURLRequest { /// @param URL The URL for the request. /// @result An initialized NSURLRequest. NSMutableURLRequest initWithURL(objc.NSURL URL) { - objc.checkOsVersionInternal('NSMutableURLRequest.initWithURL:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.initWithURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), _sel_initWithURL_, URL.ref.pointer); - return NSMutableURLRequest.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithURL_, + URL.ref.pointer, + ); + return NSMutableURLRequest.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// ! @@ -46901,84 +49269,126 @@ class NSMutableURLRequest extends NSURLRequest { /// commentary for the timeoutInterval for more information on /// timeout intervals. /// @result An initialized NSURLRequest. - NSMutableURLRequest initWithURL$1(objc.NSURL URL, - {required NSURLRequestCachePolicy cachePolicy, - required DartNSTimeInterval timeoutInterval}) { + NSMutableURLRequest initWithURL$1( + objc.NSURL URL, { + required NSURLRequestCachePolicy cachePolicy, + required DartNSTimeInterval timeoutInterval, + }) { objc.checkOsVersionInternal( - 'NSMutableURLRequest.initWithURL:cachePolicy:timeoutInterval:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0))); + 'NSMutableURLRequest.initWithURL:cachePolicy:timeoutInterval:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_1ajs603( - this.ref.retainAndReturnPointer(), - _sel_initWithURL_cachePolicy_timeoutInterval_, - URL.ref.pointer, - cachePolicy.value, - timeoutInterval); - return NSMutableURLRequest.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithURL_cachePolicy_timeoutInterval_, + URL.ref.pointer, + cachePolicy.value, + timeoutInterval, + ); + return NSMutableURLRequest.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// init NSMutableURLRequest init() { - objc.checkOsVersionInternal('NSMutableURLRequest.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); - return NSMutableURLRequest.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSMutableURLRequest.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableURLRequest.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// new static NSMutableURLRequest new$() { final _ret = _objc_msgSend_151sglz(_class_NSMutableURLRequest, _sel_new); - return NSMutableURLRequest.castFromPointer(_ret, - retain: false, release: true); + return NSMutableURLRequest.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// allocWithZone: static NSMutableURLRequest allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( - _class_NSMutableURLRequest, _sel_allocWithZone_, zone); - return NSMutableURLRequest.castFromPointer(_ret, - retain: false, release: true); + _class_NSMutableURLRequest, + _sel_allocWithZone_, + zone, + ); + return NSMutableURLRequest.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// alloc static NSMutableURLRequest alloc() { final _ret = _objc_msgSend_151sglz(_class_NSMutableURLRequest, _sel_alloc); - return NSMutableURLRequest.castFromPointer(_ret, - retain: false, release: true); + return NSMutableURLRequest.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// self NSMutableURLRequest self$1() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSMutableURLRequest.castFromPointer(_ret, - retain: true, release: true); + return NSMutableURLRequest.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// retain NSMutableURLRequest retain() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSMutableURLRequest.castFromPointer(_ret, - retain: true, release: true); + return NSMutableURLRequest.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// autorelease NSMutableURLRequest autorelease() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSMutableURLRequest.castFromPointer(_ret, - retain: true, release: true); + return NSMutableURLRequest.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// initWithCoder: NSMutableURLRequest? initWithCoder(objc.NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null - : NSMutableURLRequest.castFromPointer(_ret, - retain: false, release: true); + : NSMutableURLRequest.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// Returns a new instance of NSMutableURLRequest constructed with the default `new` method. @@ -46994,12 +49404,13 @@ enum NSHTTPCookieAcceptPolicy { const NSHTTPCookieAcceptPolicy(this.value); static NSHTTPCookieAcceptPolicy fromValue(int value) => switch (value) { - 0 => NSHTTPCookieAcceptPolicyAlways, - 1 => NSHTTPCookieAcceptPolicyNever, - 2 => NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain, - _ => throw ArgumentError( - 'Unknown value for NSHTTPCookieAcceptPolicy: $value'), - }; + 0 => NSHTTPCookieAcceptPolicyAlways, + 1 => NSHTTPCookieAcceptPolicyNever, + 2 => NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain, + _ => throw ArgumentError( + 'Unknown value for NSHTTPCookieAcceptPolicy: $value', + ), + }; } /// WARNING: NSHTTPCookieStorage is a stub. To generate bindings for this class, include @@ -47007,21 +49418,28 @@ enum NSHTTPCookieAcceptPolicy { /// /// NSHTTPCookieStorage class NSHTTPCookieStorage extends objc.NSObject { - NSHTTPCookieStorage._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSHTTPCookieStorage', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + NSHTTPCookieStorage._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSHTTPCookieStorage', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); } /// Constructs a [NSHTTPCookieStorage] that points to the same underlying object as [other]. NSHTTPCookieStorage.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSHTTPCookieStorage] that wraps the given raw object pointer. - NSHTTPCookieStorage.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSHTTPCookieStorage.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } late final _class_NSHTTPCookieStorage = objc.getClass("NSHTTPCookieStorage"); @@ -47033,18 +49451,22 @@ late final _class_NSURLSessionTask = objc.getClass("NSURLSessionTask"); /// NSProgressReporting interface class NSProgressReporting extends objc.ObjCProtocolBase implements objc.NSObjectProtocol { - NSProgressReporting._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSProgressReporting._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSProgressReporting] that points to the same underlying object as [other]. NSProgressReporting.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSProgressReporting] that wraps the given raw object pointer. - NSProgressReporting.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSProgressReporting.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } late final _sel_taskIdentifier = objc.registerName("taskIdentifier"); @@ -47053,59 +49475,77 @@ late final _sel_currentRequest = objc.registerName("currentRequest"); late final _class_NSURLResponse = objc.getClass("NSURLResponse"); late final _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_ = objc.registerName( - "initWithURL:MIMEType:expectedContentLength:textEncodingName:"); + "initWithURL:MIMEType:expectedContentLength:textEncodingName:", + ); final _objc_msgSend_l9ppnx = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); late final _sel_MIMEType = objc.registerName("MIMEType"); -late final _sel_expectedContentLength = - objc.registerName("expectedContentLength"); +late final _sel_expectedContentLength = objc.registerName( + "expectedContentLength", +); final _objc_msgSend_1k101e3 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.LongLong Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.LongLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_textEncodingName = objc.registerName("textEncodingName"); late final _sel_suggestedFilename = objc.registerName("suggestedFilename"); /// NSURLResponse class NSURLResponse extends objc.NSObject implements objc.NSSecureCoding, objc.NSCopying { - NSURLResponse._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSURLResponse._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSURLResponse] that points to the same underlying object as [other]. NSURLResponse.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLResponse] that wraps the given raw object pointer. - NSURLResponse.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLResponse.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURLResponse]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSURLResponse); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURLResponse, + ); } /// ! @@ -47117,21 +49557,25 @@ class NSURLResponse extends objc.NSObject /// @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. - NSURLResponse initWithUrlAndMIMEType(objc.NSURL URL, - {objc.NSString? MIMEType, - required DartNSInteger length, - objc.NSString? name}) { + NSURLResponse initWithUrlAndMIMEType( + objc.NSURL URL, { + objc.NSString? MIMEType, + required DartNSInteger length, + objc.NSString? name, + }) { objc.checkOsVersionInternal( - 'NSURLResponse.initWithURL:MIMEType:expectedContentLength:textEncodingName:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0))); + 'NSURLResponse.initWithURL:MIMEType:expectedContentLength:textEncodingName:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_l9ppnx( - this.ref.retainAndReturnPointer(), - _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_, - URL.ref.pointer, - MIMEType?.ref.pointer ?? ffi.nullptr, - length, - name?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_, + URL.ref.pointer, + MIMEType?.ref.pointer ?? ffi.nullptr, + length, + name?.ref.pointer ?? ffi.nullptr, + ); return NSURLResponse.castFromPointer(_ret, retain: false, release: true); } @@ -47139,8 +49583,11 @@ class NSURLResponse extends objc.NSObject /// @abstract Returns the URL of the receiver. /// @result The URL of the receiver. objc.NSURL? get URL { - objc.checkOsVersionInternal('NSURLResponse.URL', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLResponse.URL', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_URL); return _ret.address == 0 ? null @@ -47157,8 +49604,11 @@ class NSURLResponse extends objc.NSObject /// be made if the origin source did not report any such information. /// @result The MIME type of the receiver. objc.NSString? get MIMEType { - objc.checkOsVersionInternal('NSURLResponse.MIMEType', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLResponse.MIMEType', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_MIMEType); return _ret.address == 0 ? null @@ -47177,8 +49627,11 @@ class NSURLResponse extends objc.NSObject /// there is no expectation that can be arrived at regarding expected /// content length. int get expectedContentLength { - objc.checkOsVersionInternal('NSURLResponse.expectedContentLength', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLResponse.expectedContentLength', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); return _objc_msgSend_1k101e3(this.ref.pointer, _sel_expectedContentLength); } @@ -47192,8 +49645,11 @@ class NSURLResponse extends objc.NSObject /// @result The name of the text encoding of the receiver, or nil if no /// text encoding was specified. objc.NSString? get textEncodingName { - objc.checkOsVersionInternal('NSURLResponse.textEncodingName', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURLResponse.textEncodingName', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_textEncodingName); return _ret.address == 0 ? null @@ -47211,10 +49667,15 @@ class NSURLResponse extends objc.NSObject /// This method always returns a valid filename. /// @result A suggested filename to use if saving the resource to disk. objc.NSString? get suggestedFilename { - objc.checkOsVersionInternal('NSURLResponse.suggestedFilename', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_suggestedFilename); + objc.checkOsVersionInternal( + 'NSURLResponse.suggestedFilename', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_suggestedFilename, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); @@ -47222,10 +49683,15 @@ class NSURLResponse extends objc.NSObject /// init NSURLResponse init() { - objc.checkOsVersionInternal('NSURLResponse.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSURLResponse.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSURLResponse.castFromPointer(_ret, retain: false, release: true); } @@ -47237,8 +49703,11 @@ class NSURLResponse extends objc.NSObject /// allocWithZone: static NSURLResponse allocWithZone(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSURLResponse, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSURLResponse, + _sel_allocWithZone_, + zone, + ); return NSURLResponse.castFromPointer(_ret, retain: false, release: true); } @@ -47269,19 +49738,27 @@ class NSURLResponse extends objc.NSObject /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635( - _class_NSURLResponse, _sel_supportsSecureCoding); + _class_NSURLResponse, + _sel_supportsSecureCoding, + ); } /// encodeWithCoder: void encodeWithCoder(objc.NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// initWithCoder: NSURLResponse? initWithCoder(objc.NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSURLResponse.castFromPointer(_ret, retain: false, release: true); @@ -47299,60 +49776,75 @@ late final _sel_response = objc.registerName("response"); /// Messages related to the operation of a specific task. interface class NSURLSessionTaskDelegate extends objc.ObjCProtocolBase implements NSURLSessionDelegate { - NSURLSessionTaskDelegate._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSURLSessionTaskDelegate._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSURLSessionTaskDelegate] that points to the same underlying object as [other]. NSURLSessionTaskDelegate.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionTaskDelegate] that wraps the given raw object pointer. - NSURLSessionTaskDelegate.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLSessionTaskDelegate.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } late final _sel_delegate = objc.registerName("delegate"); late final _sel_setDelegate_ = objc.registerName("setDelegate:"); late final _sel_progress = objc.registerName("progress"); ffi.Pointer _ObjCBlock_NSProgress_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_NSProgress_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSProgress_ffiVoid_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoid_fnPtrTrampoline) .cast(); ffi.Pointer _ObjCBlock_NSProgress_ffiVoid_closureTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_NSProgress_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSProgress_ffiVoid_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoid_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_NSProgress_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>( - pointer, - retain: retain, - release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -47360,16 +49852,21 @@ abstract final class ObjCBlock_NSProgress_ffiVoid { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_NSProgress_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_NSProgress_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -47380,16 +49877,18 @@ abstract final class ObjCBlock_NSProgress_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> - fromFunction(objc.NSProgress Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_NSProgress_ffiVoid_closureCallable, - (ffi.Pointer arg0) => - fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + fromFunction( + objc.NSProgress Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_NSProgress_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock)>`. @@ -47397,54 +49896,81 @@ extension ObjCBlock_NSProgress_ffiVoid_CallExtension on objc.ObjCBlock)> { objc.NSProgress call(ffi.Pointer arg0) => objc.NSProgress.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0), - retain: true, - release: true); + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); } late final _sel_earliestBeginDate = objc.registerName("earliestBeginDate"); -late final _sel_setEarliestBeginDate_ = - objc.registerName("setEarliestBeginDate:"); -late final _sel_countOfBytesClientExpectsToSend = - objc.registerName("countOfBytesClientExpectsToSend"); +late final _sel_setEarliestBeginDate_ = objc.registerName( + "setEarliestBeginDate:", +); +late final _sel_countOfBytesClientExpectsToSend = objc.registerName( + "countOfBytesClientExpectsToSend", +); final _objc_msgSend_pysgoz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Int64 Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Int64 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_setCountOfBytesClientExpectsToSend_ = - objc.registerName("setCountOfBytesClientExpectsToSend:"); + int Function(ffi.Pointer, ffi.Pointer) + >(); +late final _sel_setCountOfBytesClientExpectsToSend_ = objc.registerName( + "setCountOfBytesClientExpectsToSend:", +); final _objc_msgSend_17gvxvj = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Int64)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); -late final _sel_countOfBytesClientExpectsToReceive = - objc.registerName("countOfBytesClientExpectsToReceive"); -late final _sel_setCountOfBytesClientExpectsToReceive_ = - objc.registerName("setCountOfBytesClientExpectsToReceive:"); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_countOfBytesClientExpectsToReceive = objc.registerName( + "countOfBytesClientExpectsToReceive", +); +late final _sel_setCountOfBytesClientExpectsToReceive_ = objc.registerName( + "setCountOfBytesClientExpectsToReceive:", +); late final _sel_countOfBytesSent = objc.registerName("countOfBytesSent"); -late final _sel_countOfBytesReceived = - objc.registerName("countOfBytesReceived"); -late final _sel_countOfBytesExpectedToSend = - objc.registerName("countOfBytesExpectedToSend"); -late final _sel_countOfBytesExpectedToReceive = - objc.registerName("countOfBytesExpectedToReceive"); +late final _sel_countOfBytesReceived = objc.registerName( + "countOfBytesReceived", +); +late final _sel_countOfBytesExpectedToSend = objc.registerName( + "countOfBytesExpectedToSend", +); +late final _sel_countOfBytesExpectedToReceive = objc.registerName( + "countOfBytesExpectedToReceive", +); late final _sel_taskDescription = objc.registerName("taskDescription"); late final _sel_setTaskDescription_ = objc.registerName("setTaskDescription:"); late final _sel_cancel = objc.registerName("cancel"); @@ -47464,95 +49990,139 @@ enum NSURLSessionTaskState { const NSURLSessionTaskState(this.value); static NSURLSessionTaskState fromValue(int value) => switch (value) { - 0 => NSURLSessionTaskStateRunning, - 1 => NSURLSessionTaskStateSuspended, - 2 => NSURLSessionTaskStateCanceling, - 3 => NSURLSessionTaskStateCompleted, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionTaskState: $value'), - }; + 0 => NSURLSessionTaskStateRunning, + 1 => NSURLSessionTaskStateSuspended, + 2 => NSURLSessionTaskStateCanceling, + 3 => NSURLSessionTaskStateCompleted, + _ => throw ArgumentError('Unknown value for NSURLSessionTaskState: $value'), + }; } late final _sel_state = objc.registerName("state"); final _objc_msgSend_1vze0g9 = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_error = objc.registerName("error"); late final _sel_suspend = objc.registerName("suspend"); late final _sel_resume = objc.registerName("resume"); late final _sel_priority = objc.registerName("priority"); final _objc_msgSend_2cgrxl = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Float Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Float Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_setPriority_ = objc.registerName("setPriority:"); final _objc_msgSend_v5hmet = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Float)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, double)>(); -late final _sel_prefersIncrementalDelivery = - objc.registerName("prefersIncrementalDelivery"); -late final _sel_setPrefersIncrementalDelivery_ = - objc.registerName("setPrefersIncrementalDelivery:"); + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +late final _sel_prefersIncrementalDelivery = objc.registerName( + "prefersIncrementalDelivery", +); +late final _sel_setPrefersIncrementalDelivery_ = objc.registerName( + "setPrefersIncrementalDelivery:", +); /// NSURLSessionTask - a cancelable object that refers to the lifetime /// of processing a given request. class NSURLSessionTask extends objc.NSObject implements objc.NSCopying, NSProgressReporting { - NSURLSessionTask._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSURLSessionTask', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + NSURLSessionTask._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); } /// Constructs a [NSURLSessionTask] that points to the same underlying object as [other]. NSURLSessionTask.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionTask] that wraps the given raw object pointer. - NSURLSessionTask.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLSessionTask.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURLSessionTask]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSURLSessionTask); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURLSessionTask, + ); } /// an identifier for this task, assigned by and unique to the owning session DartNSUInteger get taskIdentifier { - objc.checkOsVersionInternal('NSURLSessionTask.taskIdentifier', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.taskIdentifier', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_taskIdentifier); } /// may be nil if this is a stream task NSURLRequest? get originalRequest { - objc.checkOsVersionInternal('NSURLSessionTask.originalRequest', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.originalRequest', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_originalRequest); return _ret.address == 0 ? null @@ -47561,8 +50131,11 @@ class NSURLSessionTask extends objc.NSObject /// may differ from originalRequest due to http server redirection NSURLRequest? get currentRequest { - objc.checkOsVersionInternal('NSURLSessionTask.currentRequest', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.currentRequest', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_currentRequest); return _ret.address == 0 ? null @@ -47571,8 +50144,11 @@ class NSURLSessionTask extends objc.NSObject /// may be nil if no response has been received NSURLResponse? get response { - objc.checkOsVersionInternal('NSURLSessionTask.response', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.response', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_response); return _ret.address == 0 ? null @@ -47587,13 +50163,19 @@ class NSURLSessionTask extends objc.NSObject /// Delegate is strongly referenced until the task completes, after which it is /// reset to `nil`. NSURLSessionTaskDelegate? get delegate { - objc.checkOsVersionInternal('NSURLSessionTask.delegate', - iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.delegate', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_delegate); return _ret.address == 0 ? null - : NSURLSessionTaskDelegate.castFromPointer(_ret, - retain: true, release: true); + : NSURLSessionTaskDelegate.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Sets a task-specific delegate. Methods not implemented on this delegate will @@ -47604,10 +50186,16 @@ class NSURLSessionTask extends objc.NSObject /// Delegate is strongly referenced until the task completes, after which it is /// reset to `nil`. set delegate(NSURLSessionTaskDelegate? value) { - objc.checkOsVersionInternal('NSURLSessionTask.setDelegate:', - iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.setDelegate:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_setDelegate_, value?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_setDelegate_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// progress @@ -47622,10 +50210,15 @@ class NSURLSessionTask extends objc.NSObject /// Only applies to tasks created from background NSURLSession instances; has no /// effect for tasks created from other session types. objc.NSDate? get earliestBeginDate { - objc.checkOsVersionInternal('NSURLSessionTask.earliestBeginDate', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_earliestBeginDate); + objc.checkOsVersionInternal( + 'NSURLSessionTask.earliestBeginDate', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_earliestBeginDate, + ); return _ret.address == 0 ? null : objc.NSDate.castFromPointer(_ret, retain: true, release: true); @@ -47637,10 +50230,16 @@ class NSURLSessionTask extends objc.NSObject /// Only applies to tasks created from background NSURLSession instances; has no /// effect for tasks created from other session types. set earliestBeginDate(objc.NSDate? value) { - objc.checkOsVersionInternal('NSURLSessionTask.setEarliestBeginDate:', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setEarliestBeginDate_, - value?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSURLSessionTask.setEarliestBeginDate:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setEarliestBeginDate_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// The number of bytes that the client expects (a best-guess upper-bound) will @@ -47648,11 +50247,14 @@ class NSURLSessionTask extends objc.NSObject /// policy. If unspecified, NSURLSessionTransferSizeUnknown is used. int get countOfBytesClientExpectsToSend { objc.checkOsVersionInternal( - 'NSURLSessionTask.countOfBytesClientExpectsToSend', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSURLSessionTask.countOfBytesClientExpectsToSend', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); return _objc_msgSend_pysgoz( - this.ref.pointer, _sel_countOfBytesClientExpectsToSend); + this.ref.pointer, + _sel_countOfBytesClientExpectsToSend, + ); } /// The number of bytes that the client expects (a best-guess upper-bound) will @@ -47660,70 +50262,98 @@ class NSURLSessionTask extends objc.NSObject /// policy. If unspecified, NSURLSessionTransferSizeUnknown is used. set countOfBytesClientExpectsToSend(int value) { objc.checkOsVersionInternal( - 'NSURLSessionTask.setCountOfBytesClientExpectsToSend:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSURLSessionTask.setCountOfBytesClientExpectsToSend:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); _objc_msgSend_17gvxvj( - this.ref.pointer, _sel_setCountOfBytesClientExpectsToSend_, value); + this.ref.pointer, + _sel_setCountOfBytesClientExpectsToSend_, + value, + ); } /// countOfBytesClientExpectsToReceive int get countOfBytesClientExpectsToReceive { objc.checkOsVersionInternal( - 'NSURLSessionTask.countOfBytesClientExpectsToReceive', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSURLSessionTask.countOfBytesClientExpectsToReceive', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); return _objc_msgSend_pysgoz( - this.ref.pointer, _sel_countOfBytesClientExpectsToReceive); + this.ref.pointer, + _sel_countOfBytesClientExpectsToReceive, + ); } /// setCountOfBytesClientExpectsToReceive: set countOfBytesClientExpectsToReceive(int value) { objc.checkOsVersionInternal( - 'NSURLSessionTask.setCountOfBytesClientExpectsToReceive:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSURLSessionTask.setCountOfBytesClientExpectsToReceive:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); _objc_msgSend_17gvxvj( - this.ref.pointer, _sel_setCountOfBytesClientExpectsToReceive_, value); + this.ref.pointer, + _sel_setCountOfBytesClientExpectsToReceive_, + value, + ); } /// number of body bytes already sent int get countOfBytesSent { - objc.checkOsVersionInternal('NSURLSessionTask.countOfBytesSent', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.countOfBytesSent', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); return _objc_msgSend_pysgoz(this.ref.pointer, _sel_countOfBytesSent); } /// number of body bytes already received int get countOfBytesReceived { - objc.checkOsVersionInternal('NSURLSessionTask.countOfBytesReceived', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.countOfBytesReceived', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); return _objc_msgSend_pysgoz(this.ref.pointer, _sel_countOfBytesReceived); } /// number of body bytes we expect to send, derived from the Content-Length of the HTTP request int get countOfBytesExpectedToSend { - objc.checkOsVersionInternal('NSURLSessionTask.countOfBytesExpectedToSend', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.countOfBytesExpectedToSend', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); return _objc_msgSend_pysgoz( - this.ref.pointer, _sel_countOfBytesExpectedToSend); + this.ref.pointer, + _sel_countOfBytesExpectedToSend, + ); } /// number of byte bytes we expect to receive, usually derived from the Content-Length header of an HTTP response. int get countOfBytesExpectedToReceive { objc.checkOsVersionInternal( - 'NSURLSessionTask.countOfBytesExpectedToReceive', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionTask.countOfBytesExpectedToReceive', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); return _objc_msgSend_pysgoz( - this.ref.pointer, _sel_countOfBytesExpectedToReceive); + this.ref.pointer, + _sel_countOfBytesExpectedToReceive, + ); } /// The taskDescription property is available for the developer to /// provide a descriptive label for the task. objc.NSString? get taskDescription { - objc.checkOsVersionInternal('NSURLSessionTask.taskDescription', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.taskDescription', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_taskDescription); return _ret.address == 0 ? null @@ -47733,10 +50363,16 @@ class NSURLSessionTask extends objc.NSObject /// The taskDescription property is available for the developer to /// provide a descriptive label for the task. set taskDescription(objc.NSString? value) { - objc.checkOsVersionInternal('NSURLSessionTask.setTaskDescription:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setTaskDescription_, - value?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSURLSessionTask.setTaskDescription:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setTaskDescription_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// -cancel returns immediately, but marks a task as being canceled. @@ -47745,15 +50381,21 @@ class NSURLSessionTask extends objc.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() { - objc.checkOsVersionInternal('NSURLSessionTask.cancel', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.cancel', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_cancel); } /// The current state of the task within the session. NSURLSessionTaskState get state { - objc.checkOsVersionInternal('NSURLSessionTask.state', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.state', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_1vze0g9(this.ref.pointer, _sel_state); return NSURLSessionTaskState.fromValue(_ret); } @@ -47761,8 +50403,11 @@ class NSURLSessionTask extends objc.NSObject /// The error, if any, delivered via -URLSession:task:didCompleteWithError: /// This property will be nil in the event that no error occurred. objc.NSError? get error { - objc.checkOsVersionInternal('NSURLSessionTask.error', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.error', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_error); return _ret.address == 0 ? null @@ -47777,15 +50422,21 @@ class NSURLSessionTask extends objc.NSObject /// will be disabled while a task is suspended. -suspend and -resume are /// nestable. void suspend() { - objc.checkOsVersionInternal('NSURLSessionTask.suspend', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.suspend', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_suspend); } /// resume void resume() { - objc.checkOsVersionInternal('NSURLSessionTask.resume', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.resume', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_resume); } @@ -47803,8 +50454,11 @@ class NSURLSessionTask extends objc.NSObject /// priority levels are provided: NSURLSessionTaskPriorityLow and /// NSURLSessionTaskPriorityHigh, but use is not restricted to these. double get priority { - objc.checkOsVersionInternal('NSURLSessionTask.priority', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.priority', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); return objc.useMsgSendVariants ? _objc_msgSend_2cgrxlFpret(this.ref.pointer, _sel_priority) : _objc_msgSend_2cgrxl(this.ref.pointer, _sel_priority); @@ -47824,8 +50478,11 @@ class NSURLSessionTask extends objc.NSObject /// priority levels are provided: NSURLSessionTaskPriorityLow and /// NSURLSessionTaskPriorityHigh, but use is not restricted to these. set priority(double value) { - objc.checkOsVersionInternal('NSURLSessionTask.setPriority:', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.setPriority:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); _objc_msgSend_v5hmet(this.ref.pointer, _sel_setPriority_, value); } @@ -47838,10 +50495,15 @@ class NSURLSessionTask extends objc.NSObject /// Defaults to true unless this task is created with completion-handler based /// convenience methods, or if it is a download task. bool get prefersIncrementalDelivery { - objc.checkOsVersionInternal('NSURLSessionTask.prefersIncrementalDelivery', - iOS: (false, (14, 5, 0)), macOS: (false, (11, 3, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionTask.prefersIncrementalDelivery', + iOS: (false, (14, 5, 0)), + macOS: (false, (11, 3, 0)), + ); return _objc_msgSend_91o635( - this.ref.pointer, _sel_prefersIncrementalDelivery); + this.ref.pointer, + _sel_prefersIncrementalDelivery, + ); } /// Provides a hint indicating if incremental delivery of a partial response body @@ -47854,19 +50516,28 @@ class NSURLSessionTask extends objc.NSObject /// convenience methods, or if it is a download task. set prefersIncrementalDelivery(bool value) { objc.checkOsVersionInternal( - 'NSURLSessionTask.setPrefersIncrementalDelivery:', - iOS: (false, (14, 5, 0)), - macOS: (false, (11, 3, 0))); + 'NSURLSessionTask.setPrefersIncrementalDelivery:', + iOS: (false, (14, 5, 0)), + macOS: (false, (11, 3, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setPrefersIncrementalDelivery_, value); + this.ref.pointer, + _sel_setPrefersIncrementalDelivery_, + value, + ); } /// init NSURLSessionTask init() { - objc.checkOsVersionInternal('NSURLSessionTask.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSURLSessionTask.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSURLSessionTask.castFromPointer(_ret, retain: false, release: true); } @@ -47879,7 +50550,10 @@ class NSURLSessionTask extends objc.NSObject /// allocWithZone: static NSURLSessionTask allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( - _class_NSURLSessionTask, _sel_allocWithZone_, zone); + _class_NSURLSessionTask, + _sel_allocWithZone_, + zone, + ); return NSURLSessionTask.castFromPointer(_ret, retain: false, release: true); } @@ -47911,55 +50585,71 @@ class NSURLSessionTask extends objc.NSObject factory NSURLSessionTask() => new$(); } -late final _sel_storeCookies_forTask_ = - objc.registerName("storeCookies:forTask:"); +late final _sel_storeCookies_forTask_ = objc.registerName( + "storeCookies:forTask:", +); void _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSArray_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSArray_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSArray_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSArray_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSArray_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSArray_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSArray_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSArray_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSArray_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSArray_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSArray_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -47968,33 +50658,50 @@ void _ObjCBlock_ffiVoid_NSArray_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSArray_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSArray_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSArray_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSArray_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSArray_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSArray_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSArray_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSArray_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSArray { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -48002,15 +50709,15 @@ abstract final class ObjCBlock_ffiVoid_NSArray { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSArray_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_NSArray_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -48021,18 +50728,21 @@ abstract final class ObjCBlock_ffiVoid_NSArray { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(objc.NSArray?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSArray_closureCallable, - (ffi.Pointer arg0) => fn(arg0.address == 0 - ? null - : objc.NSArray.castFromPointer(arg0, - retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(objc.NSArray?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSArray_closureCallable, + (ffi.Pointer arg0) => fn( + arg0.address == 0 + ? null + : objc.NSArray.castFromPointer(arg0, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -48044,18 +50754,25 @@ abstract final class ObjCBlock_ffiVoid_NSArray { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(objc.NSArray?) fn, - {bool keepIsolateAlive = true}) { + void Function(objc.NSArray?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSArray_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSArray_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : objc.NSArray.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : objc.NSArray.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -48069,27 +50786,39 @@ abstract final class ObjCBlock_ffiVoid_NSArray { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(objc.NSArray?) fn, - {bool keepIsolateAlive = true}) { + void Function(objc.NSArray?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSArray_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSArray_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : objc.NSArray.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : objc.NSArray.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSArray_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSArray_blockingListenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : objc.NSArray.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : objc.NSArray.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -48097,42 +50826,59 @@ abstract final class ObjCBlock_ffiVoid_NSArray { extension ObjCBlock_ffiVoid_NSArray_CallExtension on objc.ObjCBlock { void call(objc.NSArray? arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); } -late final _sel_getCookiesForTask_completionHandler_ = - objc.registerName("getCookiesForTask:completionHandler:"); +late final _sel_getCookiesForTask_completionHandler_ = objc.registerName( + "getCookiesForTask:completionHandler:", +); /// NSURLSessionTaskAdditions extension NSURLSessionTaskAdditions$1 on NSHTTPCookieStorage { /// storeCookies:forTask: void storeCookies(objc.NSArray cookies, {required NSURLSessionTask forTask}) { - objc.checkOsVersionInternal('NSHTTPCookieStorage.storeCookies:forTask:', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); - _objc_msgSend_pfv6jd(this.ref.pointer, _sel_storeCookies_forTask_, - cookies.ref.pointer, forTask.ref.pointer); + objc.checkOsVersionInternal( + 'NSHTTPCookieStorage.storeCookies:forTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_storeCookies_forTask_, + cookies.ref.pointer, + forTask.ref.pointer, + ); } /// getCookiesForTask:completionHandler: - void getCookiesForTask(NSURLSessionTask task, - {required objc.ObjCBlock - completionHandler}) { + void getCookiesForTask( + NSURLSessionTask task, { + required objc.ObjCBlock completionHandler, + }) { objc.checkOsVersionInternal( - 'NSHTTPCookieStorage.getCookiesForTask:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); + 'NSHTTPCookieStorage.getCookiesForTask:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); _objc_msgSend_o762yo( - this.ref.pointer, - _sel_getCookiesForTask_completionHandler_, - task.ref.pointer, - completionHandler.ref.pointer); + this.ref.pointer, + _sel_getCookiesForTask_completionHandler_, + task.ref.pointer, + completionHandler.ref.pointer, + ); } } @@ -48140,62 +50886,93 @@ late final _class_NSDictionary = objc.getClass("NSDictionary"); late final _sel_getObjects_andKeys_ = objc.registerName("getObjects:andKeys:"); final _objc_msgSend_hefmm1 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>(); -late final _sel_dictionaryWithContentsOfFile_ = - objc.registerName("dictionaryWithContentsOfFile:"); -late final _sel_dictionaryWithContentsOfURL_ = - objc.registerName("dictionaryWithContentsOfURL:"); -late final _sel_initWithContentsOfFile_ = - objc.registerName("initWithContentsOfFile:"); -late final _sel_initWithContentsOfURL_ = - objc.registerName("initWithContentsOfURL:"); -late final _sel_writeToFile_atomically_ = - objc.registerName("writeToFile:atomically:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); +late final _sel_dictionaryWithContentsOfFile_ = objc.registerName( + "dictionaryWithContentsOfFile:", +); +late final _sel_dictionaryWithContentsOfURL_ = objc.registerName( + "dictionaryWithContentsOfURL:", +); +late final _sel_initWithContentsOfFile_ = objc.registerName( + "initWithContentsOfFile:", +); +late final _sel_initWithContentsOfURL_ = objc.registerName( + "initWithContentsOfURL:", +); +late final _sel_writeToFile_atomically_ = objc.registerName( + "writeToFile:atomically:", +); final _objc_msgSend_1iyq28l = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool)>(); -late final _sel_writeToURL_atomically_ = - objc.registerName("writeToURL:atomically:"); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +late final _sel_writeToURL_atomically_ = objc.registerName( + "writeToURL:atomically:", +); /// NSDeprecated extension NSDeprecated on objc.NSDictionary { /// getObjects:andKeys: - void getObjects(ffi.Pointer> objects, - {required ffi.Pointer> andKeys}) { - objc.checkOsVersionInternal('NSDictionary.getObjects:andKeys:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + void getObjects( + ffi.Pointer> objects, { + required ffi.Pointer> andKeys, + }) { + objc.checkOsVersionInternal( + 'NSDictionary.getObjects:andKeys:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_hefmm1( - this.ref.pointer, _sel_getObjects_andKeys_, objects, andKeys); + this.ref.pointer, + _sel_getObjects_andKeys_, + objects, + andKeys, + ); } /// dictionaryWithContentsOfFile: static objc.NSDictionary? dictionaryWithContentsOfFile(objc.NSString path) { - objc.checkOsVersionInternal('NSDictionary.dictionaryWithContentsOfFile:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = _objc_msgSend_1sotr3r(_class_NSDictionary, - _sel_dictionaryWithContentsOfFile_, path.ref.pointer); + objc.checkOsVersionInternal( + 'NSDictionary.dictionaryWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); @@ -48203,10 +50980,16 @@ extension NSDeprecated on objc.NSDictionary { /// dictionaryWithContentsOfURL: static objc.NSDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { - objc.checkOsVersionInternal('NSDictionary.dictionaryWithContentsOfURL:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = _objc_msgSend_1sotr3r(_class_NSDictionary, - _sel_dictionaryWithContentsOfURL_, url.ref.pointer); + objc.checkOsVersionInternal( + 'NSDictionary.dictionaryWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); @@ -48214,10 +50997,16 @@ extension NSDeprecated on objc.NSDictionary { /// initWithContentsOfFile: objc.NSDictionary? initWithContentsOfFile(objc.NSString path) { - objc.checkOsVersionInternal('NSDictionary.initWithContentsOfFile:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, path.ref.pointer); + objc.checkOsVersionInternal( + 'NSDictionary.initWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSDictionary.castFromPointer(_ret, retain: false, release: true); @@ -48225,10 +51014,16 @@ extension NSDeprecated on objc.NSDictionary { /// initWithContentsOfURL: objc.NSDictionary? initWithContentsOfURL(objc.NSURL url) { - objc.checkOsVersionInternal('NSDictionary.initWithContentsOfURL:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, url.ref.pointer); + objc.checkOsVersionInternal( + 'NSDictionary.initWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSDictionary.castFromPointer(_ret, retain: false, release: true); @@ -48236,87 +51031,126 @@ extension NSDeprecated on objc.NSDictionary { /// writeToFile:atomically: bool writeToFile(objc.NSString path, {required bool atomically}) { - objc.checkOsVersionInternal('NSDictionary.writeToFile:atomically:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToFile_atomically_, - path.ref.pointer, atomically); + objc.checkOsVersionInternal( + 'NSDictionary.writeToFile:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + this.ref.pointer, + _sel_writeToFile_atomically_, + path.ref.pointer, + atomically, + ); } /// writeToURL:atomically: bool writeToURL(objc.NSURL url, {required bool atomically}) { - objc.checkOsVersionInternal('NSDictionary.writeToURL:atomically:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToURL_atomically_, - url.ref.pointer, atomically); + objc.checkOsVersionInternal( + 'NSDictionary.writeToURL:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + this.ref.pointer, + _sel_writeToURL_atomically_, + url.ref.pointer, + atomically, + ); } } late final _sel_dictionary = objc.registerName("dictionary"); -late final _sel_dictionaryWithObject_forKey_ = - objc.registerName("dictionaryWithObject:forKey:"); -late final _sel_dictionaryWithObjects_forKeys_count_ = - objc.registerName("dictionaryWithObjects:forKeys:count:"); +late final _sel_dictionaryWithObject_forKey_ = objc.registerName( + "dictionaryWithObject:forKey:", +); +late final _sel_dictionaryWithObjects_forKeys_count_ = objc.registerName( + "dictionaryWithObjects:forKeys:count:", +); final _objc_msgSend_1dydpdi = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.UnsignedLong)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int)>(); -late final _sel_dictionaryWithObjectsAndKeys_ = - objc.registerName("dictionaryWithObjectsAndKeys:"); -late final _sel_dictionaryWithDictionary_ = - objc.registerName("dictionaryWithDictionary:"); -late final _sel_dictionaryWithObjects_forKeys_ = - objc.registerName("dictionaryWithObjects:forKeys:"); -late final _sel_initWithObjectsAndKeys_ = - objc.registerName("initWithObjectsAndKeys:"); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int, + ) + >(); +late final _sel_dictionaryWithObjectsAndKeys_ = objc.registerName( + "dictionaryWithObjectsAndKeys:", +); +late final _sel_dictionaryWithDictionary_ = objc.registerName( + "dictionaryWithDictionary:", +); +late final _sel_dictionaryWithObjects_forKeys_ = objc.registerName( + "dictionaryWithObjects:forKeys:", +); +late final _sel_initWithObjectsAndKeys_ = objc.registerName( + "initWithObjectsAndKeys:", +); late final _sel_initWithDictionary_ = objc.registerName("initWithDictionary:"); -late final _sel_initWithDictionary_copyItems_ = - objc.registerName("initWithDictionary:copyItems:"); +late final _sel_initWithDictionary_copyItems_ = objc.registerName( + "initWithDictionary:copyItems:", +); final _objc_msgSend_17amj0z = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool)>(); -late final _sel_initWithObjects_forKeys_ = - objc.registerName("initWithObjects:forKeys:"); -late final _sel_initWithContentsOfURL_error_ = - objc.registerName("initWithContentsOfURL:error:"); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +late final _sel_initWithObjects_forKeys_ = objc.registerName( + "initWithObjects:forKeys:", +); +late final _sel_initWithContentsOfURL_error_ = objc.registerName( + "initWithContentsOfURL:error:", +); final _objc_msgSend_1lhpu4m = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); -late final _sel_dictionaryWithContentsOfURL_error_ = - objc.registerName("dictionaryWithContentsOfURL:error:"); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +late final _sel_dictionaryWithContentsOfURL_error_ = objc.registerName( + "dictionaryWithContentsOfURL:error:", +); /// NSDictionaryCreation extension NSDictionaryCreation on objc.NSDictionary { @@ -48327,113 +51161,172 @@ extension NSDictionaryCreation on objc.NSDictionary { } /// dictionaryWithObject:forKey: - static objc.NSDictionary dictionaryWithObject(objc.ObjCObjectBase object, - {required objc.ObjCObjectBase forKey}) { + static objc.NSDictionary dictionaryWithObject( + objc.ObjCObjectBase object, { + required objc.ObjCObjectBase forKey, + }) { final _ret = _objc_msgSend_15qeuct( - _class_NSDictionary, - _sel_dictionaryWithObject_forKey_, - object.ref.pointer, - forKey.ref.pointer); + _class_NSDictionary, + _sel_dictionaryWithObject_forKey_, + object.ref.pointer, + forKey.ref.pointer, + ); return objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); } /// dictionaryWithObjects:forKeys:count: static objc.NSDictionary dictionaryWithObjects( - ffi.Pointer> objects, - {required ffi.Pointer> forKeys, - required DartNSUInteger count}) { - final _ret = _objc_msgSend_1dydpdi(_class_NSDictionary, - _sel_dictionaryWithObjects_forKeys_count_, objects, forKeys, count); + ffi.Pointer> objects, { + required ffi.Pointer> forKeys, + required DartNSUInteger count, + }) { + final _ret = _objc_msgSend_1dydpdi( + _class_NSDictionary, + _sel_dictionaryWithObjects_forKeys_count_, + objects, + forKeys, + count, + ); return objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); } /// dictionaryWithObjectsAndKeys: static objc.NSDictionary dictionaryWithObjectsAndKeys( - objc.ObjCObjectBase firstObject) { - final _ret = _objc_msgSend_1sotr3r(_class_NSDictionary, - _sel_dictionaryWithObjectsAndKeys_, firstObject.ref.pointer); + objc.ObjCObjectBase firstObject, + ) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithObjectsAndKeys_, + firstObject.ref.pointer, + ); return objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); } /// dictionaryWithDictionary: static objc.NSDictionary dictionaryWithDictionary(objc.NSDictionary dict) { final _ret = _objc_msgSend_1sotr3r( - _class_NSDictionary, _sel_dictionaryWithDictionary_, dict.ref.pointer); + _class_NSDictionary, + _sel_dictionaryWithDictionary_, + dict.ref.pointer, + ); return objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); } /// dictionaryWithObjects:forKeys: - static objc.NSDictionary dictionaryWithObjects$1(objc.NSArray objects, - {required objc.NSArray forKeys}) { + static objc.NSDictionary dictionaryWithObjects$1( + objc.NSArray objects, { + required objc.NSArray forKeys, + }) { final _ret = _objc_msgSend_15qeuct( - _class_NSDictionary, - _sel_dictionaryWithObjects_forKeys_, - objects.ref.pointer, - forKeys.ref.pointer); + _class_NSDictionary, + _sel_dictionaryWithObjects_forKeys_, + objects.ref.pointer, + forKeys.ref.pointer, + ); return objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); } /// initWithObjectsAndKeys: objc.NSDictionary initWithObjectsAndKeys(objc.ObjCObjectBase firstObject) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithObjectsAndKeys_, firstObject.ref.pointer); - return objc.NSDictionary.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjectsAndKeys_, + firstObject.ref.pointer, + ); + return objc.NSDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithDictionary: objc.NSDictionary initWithDictionary(objc.NSDictionary otherDictionary) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_, otherDictionary.ref.pointer); - return objc.NSDictionary.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_, + otherDictionary.ref.pointer, + ); + return objc.NSDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithDictionary:copyItems: - objc.NSDictionary initWithDictionary$1(objc.NSDictionary otherDictionary, - {required bool copyItems}) { + objc.NSDictionary initWithDictionary$1( + objc.NSDictionary otherDictionary, { + required bool copyItems, + }) { final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_copyItems_, - otherDictionary.ref.pointer, - copyItems); - return objc.NSDictionary.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_copyItems_, + otherDictionary.ref.pointer, + copyItems, + ); + return objc.NSDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithObjects:forKeys: - objc.NSDictionary initWithObjects(objc.NSArray objects, - {required objc.NSArray forKeys}) { + objc.NSDictionary initWithObjects( + objc.NSArray objects, { + required objc.NSArray forKeys, + }) { final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_, - objects.ref.pointer, - forKeys.ref.pointer); - return objc.NSDictionary.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_, + objects.ref.pointer, + forKeys.ref.pointer, + ); + return objc.NSDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithContentsOfURL:error: - objc.NSDictionary? initWithContentsOfURL(objc.NSURL url, - {required ffi.Pointer> error}) { - objc.checkOsVersionInternal('NSDictionary.initWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); - final _ret = _objc_msgSend_1lhpu4m(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_error_, url.ref.pointer, error); + objc.NSDictionary? initWithContentsOfURL( + objc.NSURL url, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSDictionary.initWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1lhpu4m( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_error_, + url.ref.pointer, + error, + ); return _ret.address == 0 ? null : objc.NSDictionary.castFromPointer(_ret, retain: false, release: true); } /// dictionaryWithContentsOfURL:error: - static objc.NSDictionary? dictionaryWithContentsOfURL(objc.NSURL url, - {required ffi.Pointer> error}) { + static objc.NSDictionary? dictionaryWithContentsOfURL( + objc.NSURL url, { + required ffi.Pointer> error, + }) { objc.checkOsVersionInternal( - 'NSDictionary.dictionaryWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); - final _ret = _objc_msgSend_1lhpu4m(_class_NSDictionary, - _sel_dictionaryWithContentsOfURL_error_, url.ref.pointer, error); + 'NSDictionary.dictionaryWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1lhpu4m( + _class_NSDictionary, + _sel_dictionaryWithContentsOfURL_error_, + url.ref.pointer, + error, + ); return _ret.address == 0 ? null : objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); @@ -48441,195 +51334,282 @@ extension NSDictionaryCreation on objc.NSDictionary { } late final _class_NSMutableDictionary = objc.getClass("NSMutableDictionary"); -late final _sel_dictionaryWithCapacity_ = - objc.registerName("dictionaryWithCapacity:"); +late final _sel_dictionaryWithCapacity_ = objc.registerName( + "dictionaryWithCapacity:", +); final _objc_msgSend_14hpxwa = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); /// NSMutableDictionaryCreation extension NSMutableDictionaryCreation on objc.NSMutableDictionary { /// dictionaryWithCapacity: static objc.NSMutableDictionary dictionaryWithCapacity( - DartNSUInteger numItems) { + DartNSUInteger numItems, + ) { final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableDictionary, _sel_dictionaryWithCapacity_, numItems); - return objc.NSMutableDictionary.castFromPointer(_ret, - retain: true, release: true); + _class_NSMutableDictionary, + _sel_dictionaryWithCapacity_, + numItems, + ); + return objc.NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// dictionaryWithContentsOfFile: static objc.NSMutableDictionary? dictionaryWithContentsOfFile( - objc.NSString path) { - final _ret = _objc_msgSend_1sotr3r(_class_NSMutableDictionary, - _sel_dictionaryWithContentsOfFile_, path.ref.pointer); + objc.NSString path, + ) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null - : objc.NSMutableDictionary.castFromPointer(_ret, - retain: true, release: true); + : objc.NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// dictionaryWithContentsOfURL: static objc.NSMutableDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { - final _ret = _objc_msgSend_1sotr3r(_class_NSMutableDictionary, - _sel_dictionaryWithContentsOfURL_, url.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null - : objc.NSMutableDictionary.castFromPointer(_ret, - retain: true, release: true); + : objc.NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// initWithContentsOfFile: objc.NSMutableDictionary? initWithContentsOfFile(objc.NSString path) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, path.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null - : objc.NSMutableDictionary.castFromPointer(_ret, - retain: false, release: true); + : objc.NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithContentsOfURL: objc.NSMutableDictionary? initWithContentsOfURL(objc.NSURL url) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, url.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null - : objc.NSMutableDictionary.castFromPointer(_ret, - retain: false, release: true); + : objc.NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } } -late final _sel_sharedKeySetForKeys_ = - objc.registerName("sharedKeySetForKeys:"); +late final _sel_sharedKeySetForKeys_ = objc.registerName( + "sharedKeySetForKeys:", +); /// NSSharedKeySetDictionary extension NSSharedKeySetDictionary on objc.NSDictionary { /// sharedKeySetForKeys: static objc.ObjCObjectBase sharedKeySetForKeys(objc.NSArray keys) { - objc.checkOsVersionInternal('NSDictionary.sharedKeySetForKeys:', - iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0))); + objc.checkOsVersionInternal( + 'NSDictionary.sharedKeySetForKeys:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSDictionary, _sel_sharedKeySetForKeys_, keys.ref.pointer); + _class_NSDictionary, + _sel_sharedKeySetForKeys_, + keys.ref.pointer, + ); return objc.ObjCObjectBase(_ret, retain: true, release: true); } } -late final _sel_dictionaryWithSharedKeySet_ = - objc.registerName("dictionaryWithSharedKeySet:"); +late final _sel_dictionaryWithSharedKeySet_ = objc.registerName( + "dictionaryWithSharedKeySet:", +); /// NSSharedKeySetDictionary extension NSSharedKeySetDictionary$1 on objc.NSMutableDictionary { /// dictionaryWithSharedKeySet: static objc.NSMutableDictionary dictionaryWithSharedKeySet( - objc.ObjCObjectBase keyset) { + objc.ObjCObjectBase keyset, + ) { objc.checkOsVersionInternal( - 'NSMutableDictionary.dictionaryWithSharedKeySet:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0))); - final _ret = _objc_msgSend_1sotr3r(_class_NSMutableDictionary, - _sel_dictionaryWithSharedKeySet_, keyset.ref.pointer); - return objc.NSMutableDictionary.castFromPointer(_ret, - retain: true, release: true); + 'NSMutableDictionary.dictionaryWithSharedKeySet:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithSharedKeySet_, + keyset.ref.pointer, + ); + return objc.NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } } -late final _sel_countByEnumeratingWithState_objects_count_ = - objc.registerName("countByEnumeratingWithState:objects:count:"); +late final _sel_countByEnumeratingWithState_objects_count_ = objc.registerName( + "countByEnumeratingWithState:objects:count:", +); final _objc_msgSend_1b5ysjl = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int)>(); -int _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - NSUInteger arg3)>>() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int)>()(arg0, arg1, arg2, arg3); -ffi.Pointer - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable = - ffi.Pointer.fromFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - NSUInteger)>( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline, - 0) - .cast(); -int _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3) => - (objc.getBlockClosure(block) as int Function( + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); +int +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + NSUInteger arg3, + ) + > + >() + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - int))(arg0, arg1, arg2, arg3); + int, + ) + >()(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable = + ffi.Pointer.fromFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + NSUInteger, + ) + >( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline, + 0, + ) + .cast(); +int +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, +) => + (objc.getBlockClosure(block) + as int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ))(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable = +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable = ffi.Pointer.fromFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - NSUInteger)>( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline, - 0) + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + NSUInteger, + ) + >( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline, + 0, + ) .cast(); /// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>`. abstract final class ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>(pointer, retain: retain, release: release); + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -48637,21 +51617,41 @@ abstract final class ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObj /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer> arg2, NSUInteger arg3)>> ptr) => - objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>( - objc.newPointerBlock(_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + NSUInteger arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -48661,63 +51661,101 @@ abstract final class ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObj /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)> - fromFunction(DartNSUInteger Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, DartNSUInteger) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>( - objc.newClosureBlock( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable, - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3) => - fn(arg0, arg1, arg2, arg3), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + fromFunction( + DartNSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + DartNSUInteger, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, + ) => fn(arg0, arg1, arg2, arg3), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>`. extension ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_CallExtension - on objc.ObjCBlock< - ffi.UnsignedLong Function( + on + objc.ObjCBlock< + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.UnsignedLong)> { + ffi.UnsignedLong, + ) + > { DartNSUInteger call( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - DartNSUInteger arg3) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - NSUInteger arg3)>>() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int)>()(ref.pointer, arg0, arg1, arg2, arg3); + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + DartNSUInteger arg3, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + NSUInteger arg3, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >()(ref.pointer, arg0, arg1, arg2, arg3); } /// NSGenericFastEnumeration extension NSGenericFastEnumeration on objc.NSDictionary { /// countByEnumeratingWithState:objects:count: DartNSUInteger countByEnumeratingWithState( - ffi.Pointer state, - {required ffi.Pointer> objects, - required DartNSUInteger count}) { - return _objc_msgSend_1b5ysjl(this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, state, objects, count); + ffi.Pointer state, { + required ffi.Pointer> objects, + required DartNSUInteger count, + }) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count, + ); } } @@ -48730,67 +51768,91 @@ typedef DartNSProgressFileOperationKind = objc.NSString; typedef NSProgressUnpublishingHandler = ffi.Pointer; typedef DartNSProgressUnpublishingHandler = objc.ObjCBlock; NSProgressUnpublishingHandler - _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer arg0)>>() - .asFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer)>()(arg0); +_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer arg0, + ) + > + >() + .asFunction< + NSProgressUnpublishingHandler Function(ffi.Pointer) + >()(arg0); ffi.Pointer - _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrCallable = +_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrCallable = ffi.Pointer.fromFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrTrampoline) + NSProgressUnpublishingHandler Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrTrampoline) .cast(); NSProgressUnpublishingHandler - _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as NSProgressUnpublishingHandler Function( - ffi.Pointer))(arg0); +_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as NSProgressUnpublishingHandler Function( + ffi.Pointer, + ))(arg0); ffi.Pointer - _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureCallable = +_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureCallable = ffi.Pointer.fromFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureTrampoline) + NSProgressUnpublishingHandler Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock? Function(objc.NSProgress)>`. abstract final class ObjCBlock_NSProgressUnpublishingHandler_NSProgress { /// Returns a block that wraps the given raw block pointer. - static objc - .ObjCBlock? Function(objc.NSProgress)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - objc.ObjCBlock? Function( - objc.NSProgress)>(pointer, retain: retain, release: release); + static objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock? Function(objc.NSProgress)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock? Function(objc.NSProgress)>( - objc.newPointerBlock(_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer arg0, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + >( + objc.newPointerBlock( + _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -48800,69 +51862,114 @@ abstract final class ObjCBlock_NSProgressUnpublishingHandler_NSProgress { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock? Function(objc.NSProgress)> - fromFunction(DartNSProgressUnpublishingHandler? Function(objc.NSProgress) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock? Function(objc.NSProgress)>( - objc.newClosureBlock( - _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureCallable, - (ffi.Pointer arg0) => - fn(objc.NSProgress.castFromPointer(arg0, retain: true, release: true)) - ?.ref - .retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + > + fromFunction( + DartNSProgressUnpublishingHandler? Function(objc.NSProgress) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + >( + objc.newClosureBlock( + _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureCallable, + (ffi.Pointer arg0) => + fn( + objc.NSProgress.castFromPointer( + arg0, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock? Function(objc.NSProgress)>`. extension ObjCBlock_NSProgressUnpublishingHandler_NSProgress_CallExtension - on objc - .ObjCBlock? Function(objc.NSProgress)> { - DartNSProgressUnpublishingHandler? call(objc.NSProgress arg0) => ref.pointer.ref.invoke + on + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + > { + DartNSProgressUnpublishingHandler? call(objc.NSProgress arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction, ffi.Pointer)>() - (ref.pointer, arg0.ref.pointer) + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer) .address == 0 ? null : ObjCBlock_ffiVoid.castFromPointer( - ref.pointer.ref.invoke.cast block, ffi.Pointer arg0)>>().asFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0.ref.pointer), + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer), retain: true, - release: true); + release: true, + ); } typedef NSProgressPublishingHandler = ffi.Pointer; -typedef DartNSProgressPublishingHandler = objc - .ObjCBlock? Function(objc.NSProgress)>; -typedef CFArrayRetainCallBackFunction = ffi.Pointer Function( - CFAllocatorRef allocator, ffi.Pointer value); -typedef CFArrayRetainCallBack - = ffi.Pointer>; -typedef CFArrayReleaseCallBackFunction = ffi.Void Function( - CFAllocatorRef allocator, ffi.Pointer value); -typedef DartCFArrayReleaseCallBackFunction = void Function( - CFAllocatorRef allocator, ffi.Pointer value); -typedef CFArrayReleaseCallBack - = ffi.Pointer>; -typedef CFArrayCopyDescriptionCallBackFunction = CFStringRef Function( - ffi.Pointer value); -typedef CFArrayCopyDescriptionCallBack - = ffi.Pointer>; -typedef CFArrayEqualCallBackFunction = Boolean Function( - ffi.Pointer value1, ffi.Pointer value2); -typedef DartCFArrayEqualCallBackFunction = DartBoolean Function( - ffi.Pointer value1, ffi.Pointer value2); -typedef CFArrayEqualCallBack - = ffi.Pointer>; +typedef DartNSProgressPublishingHandler = + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + >; +typedef CFArrayRetainCallBackFunction = + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer value, + ); +typedef CFArrayRetainCallBack = + ffi.Pointer>; +typedef CFArrayReleaseCallBackFunction = + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef DartCFArrayReleaseCallBackFunction = + void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef CFArrayReleaseCallBack = + ffi.Pointer>; +typedef CFArrayCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer value); +typedef CFArrayCopyDescriptionCallBack = + ffi.Pointer>; +typedef CFArrayEqualCallBackFunction = + Boolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFArrayEqualCallBackFunction = + DartBoolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef CFArrayEqualCallBack = + ffi.Pointer>; final class CFArrayCallBacks extends ffi.Struct { @CFIndex() @@ -48877,12 +51984,15 @@ final class CFArrayCallBacks extends ffi.Struct { external CFArrayEqualCallBack equal; } -typedef CFArrayApplierFunctionFunction = ffi.Void Function( - ffi.Pointer value, ffi.Pointer context); -typedef DartCFArrayApplierFunctionFunction = void Function( - ffi.Pointer value, ffi.Pointer context); -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 CFArrayApplierFunction = + ffi.Pointer>; final class __CFArray extends ffi.Opaque {} @@ -48899,18 +52009,22 @@ typedef Dartos_block_t = objc.ObjCBlock; /// /// OS_object class OS_object extends objc.NSObject { - OS_object._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + OS_object._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [OS_object] that points to the same underlying object as [other]. OS_object.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [OS_object] that wraps the given raw object pointer. - OS_object.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + OS_object.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } typedef sec_object_t = ffi.Pointer; @@ -49037,14 +52151,27 @@ final class _RuneLocale extends ffi.Struct { external ffi.Array __encoding; external ffi.Pointer< - ffi.NativeFunction< - __darwin_rune_t Function(ffi.Pointer, __darwin_size_t, - ffi.Pointer>)>> __sgetrune; + ffi.NativeFunction< + __darwin_rune_t Function( + ffi.Pointer, + __darwin_size_t, + ffi.Pointer>, + ) + > + > + __sgetrune; external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(__darwin_rune_t, ffi.Pointer, - __darwin_size_t, ffi.Pointer>)>> __sputrune; + ffi.NativeFunction< + ffi.Int Function( + __darwin_rune_t, + ffi.Pointer, + __darwin_size_t, + ffi.Pointer>, + ) + > + > + __sputrune; @__darwin_rune_t() external int __invalid_rune; @@ -49212,23 +52339,29 @@ final class __sFILE extends ffi.Struct { external ffi.Pointer _cookie; - external ffi - .Pointer)>> - _close; + external ffi.Pointer< + ffi.NativeFunction)> + > + _close; external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>> _read; + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + > + _read; external ffi.Pointer< - ffi.NativeFunction< - fpos_t Function(ffi.Pointer, fpos_t, ffi.Int)>> _seek; + ffi.NativeFunction, fpos_t, ffi.Int)> + > + _seek; external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>> _write; + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + > + _write; external __sbuf _ub; @@ -49310,16 +52443,16 @@ enum clockid_t { const clockid_t(this.value); static clockid_t fromValue(int value) => switch (value) { - 0 => _CLOCK_REALTIME, - 6 => _CLOCK_MONOTONIC, - 4 => _CLOCK_MONOTONIC_RAW, - 5 => _CLOCK_MONOTONIC_RAW_APPROX, - 8 => _CLOCK_UPTIME_RAW, - 9 => _CLOCK_UPTIME_RAW_APPROX, - 12 => _CLOCK_PROCESS_CPUTIME_ID, - 16 => _CLOCK_THREAD_CPUTIME_ID, - _ => throw ArgumentError('Unknown value for clockid_t: $value'), - }; + 0 => _CLOCK_REALTIME, + 6 => _CLOCK_MONOTONIC, + 4 => _CLOCK_MONOTONIC_RAW, + 5 => _CLOCK_MONOTONIC_RAW_APPROX, + 8 => _CLOCK_UPTIME_RAW, + 9 => _CLOCK_UPTIME_RAW_APPROX, + 12 => _CLOCK_PROCESS_CPUTIME_ID, + 16 => _CLOCK_THREAD_CPUTIME_ID, + _ => throw ArgumentError('Unknown value for clockid_t: $value'), + }; } final class imaxdiv_t extends ffi.Struct { @@ -49330,32 +52463,41 @@ final class imaxdiv_t extends ffi.Struct { external int rem; } -typedef CFBagRetainCallBackFunction = ffi.Pointer Function( - CFAllocatorRef allocator, ffi.Pointer value); -typedef CFBagRetainCallBack - = ffi.Pointer>; -typedef CFBagReleaseCallBackFunction = ffi.Void Function( - CFAllocatorRef allocator, ffi.Pointer value); -typedef DartCFBagReleaseCallBackFunction = void Function( - CFAllocatorRef allocator, ffi.Pointer value); -typedef CFBagReleaseCallBack - = ffi.Pointer>; -typedef CFBagCopyDescriptionCallBackFunction = CFStringRef Function( - ffi.Pointer value); -typedef CFBagCopyDescriptionCallBack - = ffi.Pointer>; -typedef CFBagEqualCallBackFunction = Boolean Function( - ffi.Pointer value1, ffi.Pointer value2); -typedef DartCFBagEqualCallBackFunction = DartBoolean Function( - ffi.Pointer value1, ffi.Pointer value2); -typedef CFBagEqualCallBack - = ffi.Pointer>; -typedef CFBagHashCallBackFunction = CFHashCode Function( - ffi.Pointer value); -typedef DartCFBagHashCallBackFunction = DartCFHashCode Function( - ffi.Pointer value); -typedef CFBagHashCallBack - = ffi.Pointer>; +typedef CFBagRetainCallBackFunction = + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer value, + ); +typedef CFBagRetainCallBack = + ffi.Pointer>; +typedef CFBagReleaseCallBackFunction = + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef DartCFBagReleaseCallBackFunction = + void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef CFBagReleaseCallBack = + ffi.Pointer>; +typedef CFBagCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer value); +typedef CFBagCopyDescriptionCallBack = + ffi.Pointer>; +typedef CFBagEqualCallBackFunction = + Boolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFBagEqualCallBackFunction = + DartBoolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef CFBagEqualCallBack = + ffi.Pointer>; +typedef CFBagHashCallBackFunction = + CFHashCode Function(ffi.Pointer value); +typedef DartCFBagHashCallBackFunction = + DartCFHashCode Function(ffi.Pointer value); +typedef CFBagHashCallBack = + ffi.Pointer>; final class CFBagCallBacks extends ffi.Struct { @CFIndex() @@ -49372,12 +52514,15 @@ final class CFBagCallBacks extends ffi.Struct { external CFBagHashCallBack hash; } -typedef CFBagApplierFunctionFunction = ffi.Void Function( - ffi.Pointer value, ffi.Pointer context); -typedef DartCFBagApplierFunctionFunction = 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); +typedef CFBagApplierFunction = + ffi.Pointer>; final class __CFBag extends ffi.Opaque {} @@ -49391,16 +52536,21 @@ final class CFBinaryHeapCompareContext extends ffi.Struct { external ffi.Pointer info; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info)>> retain; + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; external ffi.Pointer< - ffi.NativeFunction info)>> - release; + ffi.NativeFunction info)> + > + release; external ffi.Pointer< - ffi.NativeFunction info)>> - copyDescription; + ffi.NativeFunction info)> + > + copyDescription; } final class CFBinaryHeapCallBacks extends ffi.Struct { @@ -49408,33 +52558,45 @@ final class CFBinaryHeapCallBacks extends ffi.Struct { external int version; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, ffi.Pointer ptr)>> retain; + ffi.NativeFunction< + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer ptr, + ) + > + > + retain; external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFAllocatorRef allocator, ffi.Pointer ptr)>> release; + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer ptr) + > + > + release; external ffi.Pointer< - ffi.NativeFunction ptr)>> - copyDescription; + ffi.NativeFunction ptr)> + > + copyDescription; external ffi.Pointer< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer ptr1, - ffi.Pointer ptr2, - ffi.Pointer context)>> compare; -} - -typedef CFBinaryHeapApplierFunctionFunction = ffi.Void Function( - ffi.Pointer val, ffi.Pointer context); -typedef DartCFBinaryHeapApplierFunctionFunction = void Function( - ffi.Pointer val, ffi.Pointer context); -typedef CFBinaryHeapApplierFunction - = ffi.Pointer>; + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer ptr1, + ffi.Pointer ptr2, + ffi.Pointer context, + ) + > + > + compare; +} + +typedef CFBinaryHeapApplierFunctionFunction = + ffi.Void Function(ffi.Pointer val, ffi.Pointer context); +typedef DartCFBinaryHeapApplierFunctionFunction = + void Function(ffi.Pointer val, ffi.Pointer context); +typedef CFBinaryHeapApplierFunction = + ffi.Pointer>; final class __CFBinaryHeap extends ffi.Opaque {} @@ -49476,32 +52638,43 @@ final class CFSwappedFloat64 extends ffi.Struct { external int v; } -typedef CFDictionaryRetainCallBackFunction = ffi.Pointer Function( - CFAllocatorRef allocator, ffi.Pointer value); -typedef CFDictionaryRetainCallBack - = ffi.Pointer>; -typedef CFDictionaryReleaseCallBackFunction = ffi.Void Function( - CFAllocatorRef allocator, ffi.Pointer value); -typedef DartCFDictionaryReleaseCallBackFunction = void Function( - CFAllocatorRef allocator, ffi.Pointer value); -typedef CFDictionaryReleaseCallBack - = ffi.Pointer>; -typedef CFDictionaryCopyDescriptionCallBackFunction = CFStringRef Function( - ffi.Pointer value); -typedef CFDictionaryCopyDescriptionCallBack = ffi - .Pointer>; -typedef CFDictionaryEqualCallBackFunction = Boolean Function( - ffi.Pointer value1, ffi.Pointer value2); -typedef DartCFDictionaryEqualCallBackFunction = DartBoolean Function( - ffi.Pointer value1, ffi.Pointer value2); -typedef CFDictionaryEqualCallBack - = ffi.Pointer>; -typedef CFDictionaryHashCallBackFunction = CFHashCode Function( - ffi.Pointer value); -typedef DartCFDictionaryHashCallBackFunction = DartCFHashCode Function( - ffi.Pointer value); -typedef CFDictionaryHashCallBack - = ffi.Pointer>; +typedef CFDictionaryRetainCallBackFunction = + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer value, + ); +typedef CFDictionaryRetainCallBack = + ffi.Pointer>; +typedef CFDictionaryReleaseCallBackFunction = + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef DartCFDictionaryReleaseCallBackFunction = + void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef CFDictionaryReleaseCallBack = + ffi.Pointer>; +typedef CFDictionaryCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer value); +typedef CFDictionaryCopyDescriptionCallBack = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CFDictionaryEqualCallBackFunction = + Boolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFDictionaryEqualCallBackFunction = + DartBoolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef CFDictionaryEqualCallBack = + ffi.Pointer>; +typedef CFDictionaryHashCallBackFunction = + CFHashCode Function(ffi.Pointer value); +typedef DartCFDictionaryHashCallBackFunction = + DartCFHashCode Function(ffi.Pointer value); +typedef CFDictionaryHashCallBack = + ffi.Pointer>; final class CFDictionaryKeyCallBacks extends ffi.Struct { @CFIndex() @@ -49531,16 +52704,20 @@ final class CFDictionaryValueCallBacks extends ffi.Struct { external CFDictionaryEqualCallBack equal; } -typedef CFDictionaryApplierFunctionFunction = ffi.Void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer context); -typedef DartCFDictionaryApplierFunctionFunction = void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer context); -typedef CFDictionaryApplierFunction - = ffi.Pointer>; +typedef CFDictionaryApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFDictionaryApplierFunctionFunction = + void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context, + ); +typedef CFDictionaryApplierFunction = + ffi.Pointer>; final class __CFDictionary extends ffi.Opaque {} @@ -49551,20 +52728,24 @@ typedef CFNotificationName = CFStringRef; final class __CFNotificationCenter extends ffi.Opaque {} typedef CFNotificationCenterRef = ffi.Pointer<__CFNotificationCenter>; -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 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 CFNotificationCallback = + ffi.Pointer>; enum CFNotificationSuspensionBehavior { CFNotificationSuspensionBehaviorDrop(1), @@ -49582,7 +52763,8 @@ enum CFNotificationSuspensionBehavior { 3 => CFNotificationSuspensionBehaviorHold, 4 => CFNotificationSuspensionBehaviorDeliverImmediately, _ => throw ArgumentError( - 'Unknown value for CFNotificationSuspensionBehavior: $value'), + 'Unknown value for CFNotificationSuspensionBehavior: $value', + ), }; } @@ -49604,14 +52786,15 @@ enum CFLocaleLanguageDirection { const CFLocaleLanguageDirection(this.value); static CFLocaleLanguageDirection fromValue(int value) => switch (value) { - 0 => kCFLocaleLanguageDirectionUnknown, - 1 => kCFLocaleLanguageDirectionLeftToRight, - 2 => kCFLocaleLanguageDirectionRightToLeft, - 3 => kCFLocaleLanguageDirectionTopToBottom, - 4 => kCFLocaleLanguageDirectionBottomToTop, - _ => throw ArgumentError( - 'Unknown value for CFLocaleLanguageDirection: $value'), - }; + 0 => kCFLocaleLanguageDirectionUnknown, + 1 => kCFLocaleLanguageDirectionLeftToRight, + 2 => kCFLocaleLanguageDirectionRightToLeft, + 3 => kCFLocaleLanguageDirectionTopToBottom, + 4 => kCFLocaleLanguageDirectionBottomToTop, + _ => throw ArgumentError( + 'Unknown value for CFLocaleLanguageDirection: $value', + ), + }; } typedef CFCalendarIdentifier = CFStringRef; @@ -49680,10 +52863,10 @@ enum CFDataSearchFlags { const CFDataSearchFlags(this.value); static CFDataSearchFlags fromValue(int value) => switch (value) { - 1 => kCFDataSearchBackwards, - 2 => kCFDataSearchAnchored, - _ => throw ArgumentError('Unknown value for CFDataSearchFlags: $value'), - }; + 1 => kCFDataSearchBackwards, + 2 => kCFDataSearchAnchored, + _ => throw ArgumentError('Unknown value for CFDataSearchFlags: $value'), + }; } final class __CFCharacterSet extends ffi.Opaque {} @@ -49712,24 +52895,25 @@ enum CFCharacterSetPredefinedSet { const CFCharacterSetPredefinedSet(this.value); static CFCharacterSetPredefinedSet fromValue(int value) => switch (value) { - 1 => kCFCharacterSetControl, - 2 => kCFCharacterSetWhitespace, - 3 => kCFCharacterSetWhitespaceAndNewline, - 4 => kCFCharacterSetDecimalDigit, - 5 => kCFCharacterSetLetter, - 6 => kCFCharacterSetLowercaseLetter, - 7 => kCFCharacterSetUppercaseLetter, - 8 => kCFCharacterSetNonBase, - 9 => kCFCharacterSetDecomposable, - 10 => kCFCharacterSetAlphaNumeric, - 11 => kCFCharacterSetPunctuation, - 13 => kCFCharacterSetCapitalizedLetter, - 14 => kCFCharacterSetSymbol, - 15 => kCFCharacterSetNewline, - 12 => kCFCharacterSetIllegal, - _ => throw ArgumentError( - 'Unknown value for CFCharacterSetPredefinedSet: $value'), - }; + 1 => kCFCharacterSetControl, + 2 => kCFCharacterSetWhitespace, + 3 => kCFCharacterSetWhitespaceAndNewline, + 4 => kCFCharacterSetDecimalDigit, + 5 => kCFCharacterSetLetter, + 6 => kCFCharacterSetLowercaseLetter, + 7 => kCFCharacterSetUppercaseLetter, + 8 => kCFCharacterSetNonBase, + 9 => kCFCharacterSetDecomposable, + 10 => kCFCharacterSetAlphaNumeric, + 11 => kCFCharacterSetPunctuation, + 13 => kCFCharacterSetCapitalizedLetter, + 14 => kCFCharacterSetSymbol, + 15 => kCFCharacterSetNewline, + 12 => kCFCharacterSetIllegal, + _ => throw ArgumentError( + 'Unknown value for CFCharacterSetPredefinedSet: $value', + ), + }; } typedef CFErrorDomain = CFStringRef; @@ -49754,18 +52938,17 @@ enum CFStringCompareFlags { const CFStringCompareFlags(this.value); static CFStringCompareFlags fromValue(int value) => switch (value) { - 1 => kCFCompareCaseInsensitive, - 4 => kCFCompareBackwards, - 8 => kCFCompareAnchored, - 16 => kCFCompareNonliteral, - 32 => kCFCompareLocalized, - 64 => kCFCompareNumerically, - 128 => kCFCompareDiacriticInsensitive, - 256 => kCFCompareWidthInsensitive, - 512 => kCFCompareForcedOrdering, - _ => - throw ArgumentError('Unknown value for CFStringCompareFlags: $value'), - }; + 1 => kCFCompareCaseInsensitive, + 4 => kCFCompareBackwards, + 8 => kCFCompareAnchored, + 16 => kCFCompareNonliteral, + 32 => kCFCompareLocalized, + 64 => kCFCompareNumerically, + 128 => kCFCompareDiacriticInsensitive, + 256 => kCFCompareWidthInsensitive, + 512 => kCFCompareForcedOrdering, + _ => throw ArgumentError('Unknown value for CFStringCompareFlags: $value'), + }; } enum CFStringNormalizationForm { @@ -49778,13 +52961,14 @@ enum CFStringNormalizationForm { const CFStringNormalizationForm(this.value); static CFStringNormalizationForm fromValue(int value) => switch (value) { - 0 => kCFStringNormalizationFormD, - 1 => kCFStringNormalizationFormKD, - 2 => kCFStringNormalizationFormC, - 3 => kCFStringNormalizationFormKC, - _ => throw ArgumentError( - 'Unknown value for CFStringNormalizationForm: $value'), - }; + 0 => kCFStringNormalizationFormD, + 1 => kCFStringNormalizationFormKD, + 2 => kCFStringNormalizationFormC, + 3 => kCFStringNormalizationFormKC, + _ => throw ArgumentError( + 'Unknown value for CFStringNormalizationForm: $value', + ), + }; } final class CFStringInlineBuffer extends ffi.Struct { @@ -49818,15 +53002,14 @@ enum CFTimeZoneNameStyle { const CFTimeZoneNameStyle(this.value); static CFTimeZoneNameStyle fromValue(int value) => switch (value) { - 0 => kCFTimeZoneNameStyleStandard, - 1 => kCFTimeZoneNameStyleShortStandard, - 2 => kCFTimeZoneNameStyleDaylightSaving, - 3 => kCFTimeZoneNameStyleShortDaylightSaving, - 4 => kCFTimeZoneNameStyleGeneric, - 5 => kCFTimeZoneNameStyleShortGeneric, - _ => - throw ArgumentError('Unknown value for CFTimeZoneNameStyle: $value'), - }; + 0 => kCFTimeZoneNameStyleStandard, + 1 => kCFTimeZoneNameStyleShortStandard, + 2 => kCFTimeZoneNameStyleDaylightSaving, + 3 => kCFTimeZoneNameStyleShortDaylightSaving, + 4 => kCFTimeZoneNameStyleGeneric, + 5 => kCFTimeZoneNameStyleShortGeneric, + _ => throw ArgumentError('Unknown value for CFTimeZoneNameStyle: $value'), + }; } final class __CFCalendar extends ffi.Opaque {} @@ -49854,23 +53037,23 @@ enum CFCalendarUnit { const CFCalendarUnit(this.value); static CFCalendarUnit fromValue(int value) => switch (value) { - 2 => kCFCalendarUnitEra, - 4 => kCFCalendarUnitYear, - 8 => kCFCalendarUnitMonth, - 16 => kCFCalendarUnitDay, - 32 => kCFCalendarUnitHour, - 64 => kCFCalendarUnitMinute, - 128 => kCFCalendarUnitSecond, - 256 => kCFCalendarUnitWeek, - 512 => kCFCalendarUnitWeekday, - 1024 => kCFCalendarUnitWeekdayOrdinal, - 2048 => kCFCalendarUnitQuarter, - 4096 => kCFCalendarUnitWeekOfMonth, - 8192 => kCFCalendarUnitWeekOfYear, - 16384 => kCFCalendarUnitYearForWeekOfYear, - 65536 => kCFCalendarUnitDayOfYear, - _ => throw ArgumentError('Unknown value for CFCalendarUnit: $value'), - }; + 2 => kCFCalendarUnitEra, + 4 => kCFCalendarUnitYear, + 8 => kCFCalendarUnitMonth, + 16 => kCFCalendarUnitDay, + 32 => kCFCalendarUnitHour, + 64 => kCFCalendarUnitMinute, + 128 => kCFCalendarUnitSecond, + 256 => kCFCalendarUnitWeek, + 512 => kCFCalendarUnitWeekday, + 1024 => kCFCalendarUnitWeekdayOrdinal, + 2048 => kCFCalendarUnitQuarter, + 4096 => kCFCalendarUnitWeekOfMonth, + 8192 => kCFCalendarUnitWeekOfYear, + 16384 => kCFCalendarUnitYearForWeekOfYear, + 65536 => kCFCalendarUnitDayOfYear, + _ => throw ArgumentError('Unknown value for CFCalendarUnit: $value'), + }; } typedef CGFloat = ffi.Double; @@ -49933,14 +53116,13 @@ enum CFDateFormatterStyle { const CFDateFormatterStyle(this.value); static CFDateFormatterStyle fromValue(int value) => switch (value) { - 0 => kCFDateFormatterNoStyle, - 1 => kCFDateFormatterShortStyle, - 2 => kCFDateFormatterMediumStyle, - 3 => kCFDateFormatterLongStyle, - 4 => kCFDateFormatterFullStyle, - _ => - throw ArgumentError('Unknown value for CFDateFormatterStyle: $value'), - }; + 0 => kCFDateFormatterNoStyle, + 1 => kCFDateFormatterShortStyle, + 2 => kCFDateFormatterMediumStyle, + 3 => kCFDateFormatterLongStyle, + 4 => kCFDateFormatterFullStyle, + _ => throw ArgumentError('Unknown value for CFDateFormatterStyle: $value'), + }; } enum CFISO8601DateFormatOptions { @@ -49963,23 +53145,24 @@ enum CFISO8601DateFormatOptions { const CFISO8601DateFormatOptions(this.value); static CFISO8601DateFormatOptions fromValue(int value) => switch (value) { - 1 => kCFISO8601DateFormatWithYear, - 2 => kCFISO8601DateFormatWithMonth, - 4 => kCFISO8601DateFormatWithWeekOfYear, - 16 => kCFISO8601DateFormatWithDay, - 32 => kCFISO8601DateFormatWithTime, - 64 => kCFISO8601DateFormatWithTimeZone, - 128 => kCFISO8601DateFormatWithSpaceBetweenDateAndTime, - 256 => kCFISO8601DateFormatWithDashSeparatorInDate, - 512 => kCFISO8601DateFormatWithColonSeparatorInTime, - 1024 => kCFISO8601DateFormatWithColonSeparatorInTimeZone, - 2048 => kCFISO8601DateFormatWithFractionalSeconds, - 275 => kCFISO8601DateFormatWithFullDate, - 1632 => kCFISO8601DateFormatWithFullTime, - 1907 => kCFISO8601DateFormatWithInternetDateTime, - _ => throw ArgumentError( - 'Unknown value for CFISO8601DateFormatOptions: $value'), - }; + 1 => kCFISO8601DateFormatWithYear, + 2 => kCFISO8601DateFormatWithMonth, + 4 => kCFISO8601DateFormatWithWeekOfYear, + 16 => kCFISO8601DateFormatWithDay, + 32 => kCFISO8601DateFormatWithTime, + 64 => kCFISO8601DateFormatWithTimeZone, + 128 => kCFISO8601DateFormatWithSpaceBetweenDateAndTime, + 256 => kCFISO8601DateFormatWithDashSeparatorInDate, + 512 => kCFISO8601DateFormatWithColonSeparatorInTime, + 1024 => kCFISO8601DateFormatWithColonSeparatorInTimeZone, + 2048 => kCFISO8601DateFormatWithFractionalSeconds, + 275 => kCFISO8601DateFormatWithFullDate, + 1632 => kCFISO8601DateFormatWithFullTime, + 1907 => kCFISO8601DateFormatWithInternetDateTime, + _ => throw ArgumentError( + 'Unknown value for CFISO8601DateFormatOptions: $value', + ), + }; } final class __CFBoolean extends ffi.Opaque {} @@ -50010,24 +53193,24 @@ enum CFNumberType { const CFNumberType(this.value); static CFNumberType fromValue(int value) => switch (value) { - 1 => kCFNumberSInt8Type, - 2 => kCFNumberSInt16Type, - 3 => kCFNumberSInt32Type, - 4 => kCFNumberSInt64Type, - 5 => kCFNumberFloat32Type, - 6 => kCFNumberFloat64Type, - 7 => kCFNumberCharType, - 8 => kCFNumberShortType, - 9 => kCFNumberIntType, - 10 => kCFNumberLongType, - 11 => kCFNumberLongLongType, - 12 => kCFNumberFloatType, - 13 => kCFNumberDoubleType, - 14 => kCFNumberCFIndexType, - 15 => kCFNumberNSIntegerType, - 16 => kCFNumberCGFloatType, - _ => throw ArgumentError('Unknown value for CFNumberType: $value'), - }; + 1 => kCFNumberSInt8Type, + 2 => kCFNumberSInt16Type, + 3 => kCFNumberSInt32Type, + 4 => kCFNumberSInt64Type, + 5 => kCFNumberFloat32Type, + 6 => kCFNumberFloat64Type, + 7 => kCFNumberCharType, + 8 => kCFNumberShortType, + 9 => kCFNumberIntType, + 10 => kCFNumberLongType, + 11 => kCFNumberLongLongType, + 12 => kCFNumberFloatType, + 13 => kCFNumberDoubleType, + 14 => kCFNumberCFIndexType, + 15 => kCFNumberNSIntegerType, + 16 => kCFNumberCGFloatType, + _ => throw ArgumentError('Unknown value for CFNumberType: $value'), + }; @override String toString() { @@ -50062,19 +53245,20 @@ enum CFNumberFormatterStyle { const CFNumberFormatterStyle(this.value); static CFNumberFormatterStyle fromValue(int value) => switch (value) { - 0 => kCFNumberFormatterNoStyle, - 1 => kCFNumberFormatterDecimalStyle, - 2 => kCFNumberFormatterCurrencyStyle, - 3 => kCFNumberFormatterPercentStyle, - 4 => kCFNumberFormatterScientificStyle, - 5 => kCFNumberFormatterSpellOutStyle, - 6 => kCFNumberFormatterOrdinalStyle, - 8 => kCFNumberFormatterCurrencyISOCodeStyle, - 9 => kCFNumberFormatterCurrencyPluralStyle, - 10 => kCFNumberFormatterCurrencyAccountingStyle, - _ => throw ArgumentError( - 'Unknown value for CFNumberFormatterStyle: $value'), - }; + 0 => kCFNumberFormatterNoStyle, + 1 => kCFNumberFormatterDecimalStyle, + 2 => kCFNumberFormatterCurrencyStyle, + 3 => kCFNumberFormatterPercentStyle, + 4 => kCFNumberFormatterScientificStyle, + 5 => kCFNumberFormatterSpellOutStyle, + 6 => kCFNumberFormatterOrdinalStyle, + 8 => kCFNumberFormatterCurrencyISOCodeStyle, + 9 => kCFNumberFormatterCurrencyPluralStyle, + 10 => kCFNumberFormatterCurrencyAccountingStyle, + _ => throw ArgumentError( + 'Unknown value for CFNumberFormatterStyle: $value', + ), + }; } enum CFURLPathStyle { @@ -50086,11 +53270,11 @@ enum CFURLPathStyle { const CFURLPathStyle(this.value); static CFURLPathStyle fromValue(int value) => switch (value) { - 0 => kCFURLPOSIXPathStyle, - 1 => kCFURLHFSPathStyle, - 2 => kCFURLWindowsPathStyle, - _ => throw ArgumentError('Unknown value for CFURLPathStyle: $value'), - }; + 0 => kCFURLPOSIXPathStyle, + 1 => kCFURLHFSPathStyle, + 2 => kCFURLWindowsPathStyle, + _ => throw ArgumentError('Unknown value for CFURLPathStyle: $value'), + }; } final class __CFURL extends ffi.Opaque {} @@ -50115,21 +53299,20 @@ enum CFURLComponentType { const CFURLComponentType(this.value); static CFURLComponentType fromValue(int value) => switch (value) { - 1 => kCFURLComponentScheme, - 2 => kCFURLComponentNetLocation, - 3 => kCFURLComponentPath, - 4 => kCFURLComponentResourceSpecifier, - 5 => kCFURLComponentUser, - 6 => kCFURLComponentPassword, - 7 => kCFURLComponentUserInfo, - 8 => kCFURLComponentHost, - 9 => kCFURLComponentPort, - 10 => kCFURLComponentParameterString, - 11 => kCFURLComponentQuery, - 12 => kCFURLComponentFragment, - _ => - throw ArgumentError('Unknown value for CFURLComponentType: $value'), - }; + 1 => kCFURLComponentScheme, + 2 => kCFURLComponentNetLocation, + 3 => kCFURLComponentPath, + 4 => kCFURLComponentResourceSpecifier, + 5 => kCFURLComponentUser, + 6 => kCFURLComponentPassword, + 7 => kCFURLComponentUserInfo, + 8 => kCFURLComponentHost, + 9 => kCFURLComponentPort, + 10 => kCFURLComponentParameterString, + 11 => kCFURLComponentQuery, + 12 => kCFURLComponentFragment, + _ => throw ArgumentError('Unknown value for CFURLComponentType: $value'), + }; } final class FSRef extends ffi.Opaque {} @@ -50146,15 +53329,16 @@ enum CFURLBookmarkCreationOptions { const CFURLBookmarkCreationOptions(this.value); static CFURLBookmarkCreationOptions fromValue(int value) => switch (value) { - 512 => kCFURLBookmarkCreationMinimalBookmarkMask, - 1024 => kCFURLBookmarkCreationSuitableForBookmarkFile, - 2048 => kCFURLBookmarkCreationWithSecurityScope, - 4096 => kCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess, - 536870912 => kCFURLBookmarkCreationWithoutImplicitSecurityScope, - 256 => kCFURLBookmarkCreationPreferFileIDResolutionMask, - _ => throw ArgumentError( - 'Unknown value for CFURLBookmarkCreationOptions: $value'), - }; + 512 => kCFURLBookmarkCreationMinimalBookmarkMask, + 1024 => kCFURLBookmarkCreationSuitableForBookmarkFile, + 2048 => kCFURLBookmarkCreationWithSecurityScope, + 4096 => kCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess, + 536870912 => kCFURLBookmarkCreationWithoutImplicitSecurityScope, + 256 => kCFURLBookmarkCreationPreferFileIDResolutionMask, + _ => throw ArgumentError( + 'Unknown value for CFURLBookmarkCreationOptions: $value', + ), + }; } enum CFURLBookmarkResolutionOptions { @@ -50172,13 +53356,14 @@ enum CFURLBookmarkResolutionOptions { const CFURLBookmarkResolutionOptions(this.value); static CFURLBookmarkResolutionOptions fromValue(int value) => switch (value) { - 256 => kCFURLBookmarkResolutionWithoutUIMask, - 512 => kCFURLBookmarkResolutionWithoutMountingMask, - 1024 => kCFURLBookmarkResolutionWithSecurityScope, - 32768 => kCFURLBookmarkResolutionWithoutImplicitStartAccessing, - _ => throw ArgumentError( - 'Unknown value for CFURLBookmarkResolutionOptions: $value'), - }; + 256 => kCFURLBookmarkResolutionWithoutUIMask, + 512 => kCFURLBookmarkResolutionWithoutMountingMask, + 1024 => kCFURLBookmarkResolutionWithSecurityScope, + 32768 => kCFURLBookmarkResolutionWithoutImplicitStartAccessing, + _ => throw ArgumentError( + 'Unknown value for CFURLBookmarkResolutionOptions: $value', + ), + }; @override String toString() { @@ -50362,13 +53547,12 @@ enum CFRunLoopRunResult { const CFRunLoopRunResult(this.value); static CFRunLoopRunResult fromValue(int value) => switch (value) { - 1 => kCFRunLoopRunFinished, - 2 => kCFRunLoopRunStopped, - 3 => kCFRunLoopRunTimedOut, - 4 => kCFRunLoopRunHandledSource, - _ => - throw ArgumentError('Unknown value for CFRunLoopRunResult: $value'), - }; + 1 => kCFRunLoopRunFinished, + 2 => kCFRunLoopRunStopped, + 3 => kCFRunLoopRunTimedOut, + 4 => kCFRunLoopRunHandledSource, + _ => throw ArgumentError('Unknown value for CFRunLoopRunResult: $value'), + }; } enum CFRunLoopActivity { @@ -50384,15 +53568,15 @@ enum CFRunLoopActivity { const CFRunLoopActivity(this.value); static CFRunLoopActivity fromValue(int value) => switch (value) { - 1 => kCFRunLoopEntry, - 2 => kCFRunLoopBeforeTimers, - 4 => kCFRunLoopBeforeSources, - 32 => kCFRunLoopBeforeWaiting, - 64 => kCFRunLoopAfterWaiting, - 128 => kCFRunLoopExit, - 268435455 => kCFRunLoopAllActivities, - _ => throw ArgumentError('Unknown value for CFRunLoopActivity: $value'), - }; + 1 => kCFRunLoopEntry, + 2 => kCFRunLoopBeforeTimers, + 4 => kCFRunLoopBeforeSources, + 32 => kCFRunLoopBeforeWaiting, + 64 => kCFRunLoopAfterWaiting, + 128 => kCFRunLoopExit, + 268435455 => kCFRunLoopAllActivities, + _ => throw ArgumentError('Unknown value for CFRunLoopActivity: $value'), + }; } final class CFRunLoopSourceContext extends ffi.Struct { @@ -50402,38 +53586,60 @@ final class CFRunLoopSourceContext extends ffi.Struct { external ffi.Pointer info; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info)>> retain; + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; external ffi.Pointer< - ffi.NativeFunction info)>> - release; + ffi.NativeFunction info)> + > + release; external ffi.Pointer< - ffi.NativeFunction info)>> - copyDescription; + ffi.NativeFunction info)> + > + copyDescription; external ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer info1, ffi.Pointer info2)>> equal; + ffi.NativeFunction< + Boolean Function(ffi.Pointer info1, ffi.Pointer info2) + > + > + equal; external ffi.Pointer< - ffi.NativeFunction info)>> hash; + ffi.NativeFunction info)> + > + hash; external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer info, CFRunLoopRef rl, - CFRunLoopMode mode)>> schedule; + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + CFRunLoopRef rl, + CFRunLoopMode mode, + ) + > + > + schedule; external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer info, CFRunLoopRef rl, - CFRunLoopMode mode)>> cancel; + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + CFRunLoopRef rl, + CFRunLoopMode mode, + ) + > + > + cancel; external ffi.Pointer< - ffi.NativeFunction info)>> - perform; + ffi.NativeFunction info)> + > + perform; } final class CFRunLoopSourceContext1 extends ffi.Struct { @@ -50443,36 +53649,50 @@ final class CFRunLoopSourceContext1 extends ffi.Struct { external ffi.Pointer info; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info)>> retain; + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; external ffi.Pointer< - ffi.NativeFunction info)>> - release; + ffi.NativeFunction info)> + > + release; external ffi.Pointer< - ffi.NativeFunction info)>> - copyDescription; + ffi.NativeFunction info)> + > + copyDescription; external ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer info1, ffi.Pointer info2)>> equal; + ffi.NativeFunction< + Boolean Function(ffi.Pointer info1, ffi.Pointer info2) + > + > + equal; external ffi.Pointer< - ffi.NativeFunction info)>> hash; + ffi.NativeFunction info)> + > + hash; external ffi.Pointer< - ffi.NativeFunction info)>> - getPort; + ffi.NativeFunction info)> + > + getPort; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer msg, - CFIndex size, - CFAllocatorRef allocator, - ffi.Pointer info)>> perform; + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer msg, + CFIndex size, + CFAllocatorRef allocator, + ffi.Pointer info, + ) + > + > + perform; } final class CFRunLoopObserverContext extends ffi.Struct { @@ -50482,87 +53702,120 @@ final class CFRunLoopObserverContext extends ffi.Struct { external ffi.Pointer info; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info)>> retain; + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; external ffi.Pointer< - ffi.NativeFunction info)>> - release; + ffi.NativeFunction info)> + > + release; external ffi.Pointer< - ffi.NativeFunction info)>> - copyDescription; + ffi.NativeFunction info)> + > + copyDescription; } -typedef CFRunLoopObserverCallBackFunction = ffi.Void Function( - CFRunLoopObserverRef observer, - CFOptionFlags activity, - ffi.Pointer info); -typedef DartCFRunLoopObserverCallBackFunction = void Function( - CFRunLoopObserverRef observer, - CFRunLoopActivity activity, - ffi.Pointer info); -typedef CFRunLoopObserverCallBack - = ffi.Pointer>; +typedef CFRunLoopObserverCallBackFunction = + ffi.Void Function( + CFRunLoopObserverRef observer, + CFOptionFlags activity, + ffi.Pointer info, + ); +typedef DartCFRunLoopObserverCallBackFunction = + void Function( + CFRunLoopObserverRef observer, + CFRunLoopActivity activity, + ffi.Pointer info, + ); +typedef CFRunLoopObserverCallBack = + ffi.Pointer>; void _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_fnPtrTrampoline( - ffi.Pointer block, - CFRunLoopObserverRef arg0, - int arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - CFRunLoopObserverRef arg0, CFOptionFlags arg1)>>() - .asFunction()(arg0, arg1); + ffi.Pointer block, + CFRunLoopObserverRef arg0, + int arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopObserverRef arg0, CFOptionFlags arg1) + > + >() + .asFunction()(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_fnPtrCallable = +_ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - CFRunLoopObserverRef, CFOptionFlags)>( - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + CFRunLoopObserverRef, + CFOptionFlags, + ) + >(_ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_fnPtrTrampoline) .cast(); void - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureTrampoline( - ffi.Pointer block, - CFRunLoopObserverRef arg0, - int arg1) => - (objc.getBlockClosure(block) as void Function( - CFRunLoopObserverRef, int))(arg0, arg1); +_ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureTrampoline( + ffi.Pointer block, + CFRunLoopObserverRef arg0, + int arg1, +) => (objc.getBlockClosure(block) as void Function(CFRunLoopObserverRef, int))( + arg0, + arg1, +); ffi.Pointer - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureCallable = +_ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - CFRunLoopObserverRef, CFOptionFlags)>( - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + CFRunLoopObserverRef, + CFOptionFlags, + ) + >(_ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureTrampoline) .cast(); void - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_listenerTrampoline( - ffi.Pointer block, - CFRunLoopObserverRef arg0, - int arg1) { +_ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_listenerTrampoline( + ffi.Pointer block, + CFRunLoopObserverRef arg0, + int arg1, +) { (objc.getBlockClosure(block) as void Function(CFRunLoopObserverRef, int))( - arg0, arg1); + arg0, + arg1, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, CFRunLoopObserverRef, - CFOptionFlags)> - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_listenerCallable = + ffi.Void Function( + ffi.Pointer, + CFRunLoopObserverRef, + CFOptionFlags, + ) +> +_ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - CFRunLoopObserverRef, CFOptionFlags)>.listener( - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + CFRunLoopObserverRef, + CFOptionFlags, + ) + >.listener( + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - CFRunLoopObserverRef arg0, - int arg1) { +_ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + CFRunLoopObserverRef arg0, + int arg1, +) { try { (objc.getBlockClosure(block) as void Function(CFRunLoopObserverRef, int))( - arg0, arg1); + arg0, + arg1, + ); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -50571,40 +53824,60 @@ void } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, CFRunLoopObserverRef, CFOptionFlags)> - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + CFRunLoopObserverRef, + CFOptionFlags, + ) +> +_ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - CFRunLoopObserverRef, - CFOptionFlags)>.isolateLocal( - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + CFRunLoopObserverRef, + CFOptionFlags, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, CFRunLoopObserverRef, CFOptionFlags)> - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + CFRunLoopObserverRef, + CFOptionFlags, + ) +> +_ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - CFRunLoopObserverRef, - CFOptionFlags)>.listener( - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + CFRunLoopObserverRef, + CFOptionFlags, + ) + >.listener( + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, CFOptionFlags)>`. abstract final class ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, - CFOptionFlags)>(pointer, retain: retain, release: release); + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -50612,16 +53885,26 @@ abstract final class ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags)> - fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock, CFOptionFlags)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopObserverRef arg0, CFOptionFlags arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -50631,19 +53914,25 @@ abstract final class ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, CFOptionFlags)> - fromFunction(void Function(CFRunLoopObserverRef, CFRunLoopActivity) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureCallable, - (CFRunLoopObserverRef arg0, int arg1) => - fn(arg0, CFRunLoopActivity.fromValue(arg1)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + fromFunction( + void Function(CFRunLoopObserverRef, CFRunLoopActivity) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureCallable, + (CFRunLoopObserverRef arg0, int arg1) => + fn(arg0, CFRunLoopActivity.fromValue(arg1)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -50655,21 +53944,25 @@ abstract final class ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags)> - listener(void Function(CFRunLoopObserverRef, CFRunLoopActivity) fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + listener( + void Function(CFRunLoopObserverRef, CFRunLoopActivity) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_listenerCallable - .nativeFunction - .cast(), - (CFRunLoopObserverRef arg0, int arg1) => - fn(arg0, CFRunLoopActivity.fromValue(arg1)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_listenerCallable + .nativeFunction + .cast(), + (CFRunLoopObserverRef arg0, int arg1) => + fn(arg0, CFRunLoopActivity.fromValue(arg1)), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_tg5tbv(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, - CFOptionFlags)>(wrapper, retain: false, release: true); + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -50683,46 +53976,67 @@ abstract final class ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags)> - blocking(void Function(CFRunLoopObserverRef, CFRunLoopActivity) fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + blocking( + void Function(CFRunLoopObserverRef, CFRunLoopActivity) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingCallable - .nativeFunction - .cast(), - (CFRunLoopObserverRef arg0, int arg1) => - fn(arg0, CFRunLoopActivity.fromValue(arg1)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingCallable + .nativeFunction + .cast(), + (CFRunLoopObserverRef arg0, int arg1) => + fn(arg0, CFRunLoopActivity.fromValue(arg1)), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingListenerCallable - .nativeFunction - .cast(), - (CFRunLoopObserverRef arg0, int arg1) => - fn(arg0, CFRunLoopActivity.fromValue(arg1)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_blockingListenerCallable + .nativeFunction + .cast(), + (CFRunLoopObserverRef arg0, int arg1) => + fn(arg0, CFRunLoopActivity.fromValue(arg1)), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_tg5tbv( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, - CFOptionFlags)>(wrapper, retain: false, release: true); + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, CFOptionFlags)>`. extension ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags)> { + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > { void call(CFRunLoopObserverRef arg0, CFRunLoopActivity arg1) => ref - .pointer.ref.invoke + .pointer + .ref + .invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - CFRunLoopObserverRef arg0, CFOptionFlags arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFRunLoopObserverRef arg0, + CFOptionFlags arg1, + ) + > + >() .asFunction< - void Function(ffi.Pointer, CFRunLoopObserverRef, - int)>()(ref.pointer, arg0, arg1.value); + void Function( + ffi.Pointer, + CFRunLoopObserverRef, + int, + ) + >()(ref.pointer, arg0, arg1.value); } final class CFRunLoopTimerContext extends ffi.Struct { @@ -50732,61 +54046,70 @@ final class CFRunLoopTimerContext extends ffi.Struct { external ffi.Pointer info; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info)>> retain; + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; external ffi.Pointer< - ffi.NativeFunction info)>> - release; + ffi.NativeFunction info)> + > + release; external ffi.Pointer< - ffi.NativeFunction info)>> - copyDescription; + ffi.NativeFunction info)> + > + copyDescription; } -typedef CFRunLoopTimerCallBackFunction = ffi.Void Function( - CFRunLoopTimerRef timer, ffi.Pointer info); -typedef DartCFRunLoopTimerCallBackFunction = void Function( - CFRunLoopTimerRef timer, ffi.Pointer info); -typedef CFRunLoopTimerCallBack - = ffi.Pointer>; +typedef CFRunLoopTimerCallBackFunction = + ffi.Void Function(CFRunLoopTimerRef timer, ffi.Pointer info); +typedef DartCFRunLoopTimerCallBackFunction = + void Function(CFRunLoopTimerRef timer, ffi.Pointer info); +typedef CFRunLoopTimerCallBack = + ffi.Pointer>; void _ObjCBlock_ffiVoid_CFRunLoopTimerRef_fnPtrTrampoline( - ffi.Pointer block, CFRunLoopTimerRef arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + CFRunLoopTimerRef arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_CFRunLoopTimerRef_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, CFRunLoopTimerRef)>( - _ObjCBlock_ffiVoid_CFRunLoopTimerRef_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, CFRunLoopTimerRef) + >(_ObjCBlock_ffiVoid_CFRunLoopTimerRef_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureTrampoline( - ffi.Pointer block, CFRunLoopTimerRef arg0) => - (objc.getBlockClosure(block) as void Function(CFRunLoopTimerRef))(arg0); + ffi.Pointer block, + CFRunLoopTimerRef arg0, +) => (objc.getBlockClosure(block) as void Function(CFRunLoopTimerRef))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, CFRunLoopTimerRef)>( - _ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureTrampoline) + ffi.Void Function(ffi.Pointer, CFRunLoopTimerRef) + >(_ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_CFRunLoopTimerRef_listenerTrampoline( - ffi.Pointer block, CFRunLoopTimerRef arg0) { + ffi.Pointer block, + CFRunLoopTimerRef arg0, +) { (objc.getBlockClosure(block) as void Function(CFRunLoopTimerRef))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, CFRunLoopTimerRef)> - _ObjCBlock_ffiVoid_CFRunLoopTimerRef_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, CFRunLoopTimerRef)>.listener( - _ObjCBlock_ffiVoid_CFRunLoopTimerRef_listenerTrampoline) + ffi.Void Function(ffi.Pointer, CFRunLoopTimerRef) +> +_ObjCBlock_ffiVoid_CFRunLoopTimerRef_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, CFRunLoopTimerRef) + >.listener(_ObjCBlock_ffiVoid_CFRunLoopTimerRef_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - CFRunLoopTimerRef arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + CFRunLoopTimerRef arg0, +) { try { (objc.getBlockClosure(block) as void Function(CFRunLoopTimerRef))(arg0); } catch (e) { @@ -50797,48 +54120,69 @@ void _ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, CFRunLoopTimerRef)> - _ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, CFRunLoopTimerRef)>.isolateLocal( - _ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + CFRunLoopTimerRef, + ) +> +_ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + CFRunLoopTimerRef, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, CFRunLoopTimerRef)> - _ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, CFRunLoopTimerRef)>.listener( - _ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + CFRunLoopTimerRef, + ) +> +_ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + CFRunLoopTimerRef, + ) + >.listener(_ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_CFRunLoopTimerRef { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>( - pointer, - retain: retain, - release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopTimer>)> fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_CFRunLoopTimerRef_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer> + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_CFRunLoopTimerRef_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -50849,15 +54193,18 @@ abstract final class ObjCBlock_ffiVoid_CFRunLoopTimerRef { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> - fromFunction(void Function(CFRunLoopTimerRef) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureCallable, - (CFRunLoopTimerRef arg0) => fn(arg0), - keepIsolateAlive), - retain: false, - release: true); + fromFunction( + void Function(CFRunLoopTimerRef) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureCallable, + (CFRunLoopTimerRef arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -50869,19 +54216,23 @@ abstract final class ObjCBlock_ffiVoid_CFRunLoopTimerRef { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> - listener(void Function(CFRunLoopTimerRef) fn, - {bool keepIsolateAlive = true}) { + listener( + void Function(CFRunLoopTimerRef) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_CFRunLoopTimerRef_listenerCallable.nativeFunction - .cast(), - (CFRunLoopTimerRef arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_CFRunLoopTimerRef_listenerCallable.nativeFunction + .cast(), + (CFRunLoopTimerRef arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1dqvvol(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -50895,27 +54246,35 @@ abstract final class ObjCBlock_ffiVoid_CFRunLoopTimerRef { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock)> - blocking(void Function(CFRunLoopTimerRef) fn, - {bool keepIsolateAlive = true}) { + blocking( + void Function(CFRunLoopTimerRef) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingCallable.nativeFunction - .cast(), - (CFRunLoopTimerRef arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingCallable.nativeFunction + .cast(), + (CFRunLoopTimerRef arg0) => fn(arg0), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingListenerCallable - .nativeFunction - .cast(), - (CFRunLoopTimerRef arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_CFRunLoopTimerRef_blockingListenerCallable + .nativeFunction + .cast(), + (CFRunLoopTimerRef arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1dqvvol( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } } @@ -50924,12 +54283,16 @@ extension ObjCBlock_ffiVoid_CFRunLoopTimerRef_CallExtension on objc.ObjCBlock)> { void call(CFRunLoopTimerRef arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - CFRunLoopTimerRef arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFRunLoopTimerRef arg0, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - CFRunLoopTimerRef)>()(ref.pointer, arg0); + void Function(ffi.Pointer, CFRunLoopTimerRef) + >()(ref.pointer, arg0); } final class __CFSocket extends ffi.Opaque {} @@ -50945,11 +54308,11 @@ enum CFSocketError { const CFSocketError(this.value); static CFSocketError fromValue(int value) => switch (value) { - 0 => kCFSocketSuccess, - -1 => kCFSocketError, - -2 => kCFSocketTimeout, - _ => throw ArgumentError('Unknown value for CFSocketError: $value'), - }; + 0 => kCFSocketSuccess, + -1 => kCFSocketError, + -2 => kCFSocketTimeout, + _ => throw ArgumentError('Unknown value for CFSocketError: $value'), + }; } final class CFSocketSignature extends ffi.Struct { @@ -50977,31 +54340,34 @@ enum CFSocketCallBackType { const CFSocketCallBackType(this.value); static CFSocketCallBackType fromValue(int value) => switch (value) { - 0 => kCFSocketNoCallBack, - 1 => kCFSocketReadCallBack, - 2 => kCFSocketAcceptCallBack, - 3 => kCFSocketDataCallBack, - 4 => kCFSocketConnectCallBack, - 8 => kCFSocketWriteCallBack, - _ => - throw ArgumentError('Unknown value for CFSocketCallBackType: $value'), - }; + 0 => kCFSocketNoCallBack, + 1 => kCFSocketReadCallBack, + 2 => kCFSocketAcceptCallBack, + 3 => kCFSocketDataCallBack, + 4 => kCFSocketConnectCallBack, + 8 => kCFSocketWriteCallBack, + _ => throw ArgumentError('Unknown value for CFSocketCallBackType: $value'), + }; } -typedef CFSocketCallBackFunction = ffi.Void Function( - CFSocketRef s, - CFOptionFlags type, - CFDataRef address, - ffi.Pointer data, - ffi.Pointer info); -typedef DartCFSocketCallBackFunction = void Function( - CFSocketRef s, - CFSocketCallBackType type, - CFDataRef address, - ffi.Pointer data, - ffi.Pointer info); -typedef CFSocketCallBack - = ffi.Pointer>; +typedef CFSocketCallBackFunction = + ffi.Void Function( + CFSocketRef s, + CFOptionFlags type, + CFDataRef address, + ffi.Pointer data, + ffi.Pointer info, + ); +typedef DartCFSocketCallBackFunction = + void Function( + CFSocketRef s, + CFSocketCallBackType type, + CFDataRef address, + ffi.Pointer data, + ffi.Pointer info, + ); +typedef CFSocketCallBack = + ffi.Pointer>; final class CFSocketContext extends ffi.Struct { @CFIndex() @@ -51010,16 +54376,21 @@ final class CFSocketContext extends ffi.Struct { external ffi.Pointer info; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info)>> retain; + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; external ffi.Pointer< - ffi.NativeFunction info)>> - release; + ffi.NativeFunction info)> + > + release; external ffi.Pointer< - ffi.NativeFunction info)>> - copyDescription; + ffi.NativeFunction info)> + > + copyDescription; } typedef CFSocketNativeHandle = ffi.Int; @@ -51237,17 +54608,16 @@ enum filesec_property_t { const filesec_property_t(this.value); static filesec_property_t fromValue(int value) => switch (value) { - 1 => FILESEC_OWNER, - 2 => FILESEC_GROUP, - 3 => FILESEC_UUID, - 4 => FILESEC_MODE, - 5 => FILESEC_ACL, - 6 => FILESEC_GRPUUID, - 100 => FILESEC_ACL_RAW, - 101 => FILESEC_ACL_ALLOCSIZE, - _ => - throw ArgumentError('Unknown value for filesec_property_t: $value'), - }; + 1 => FILESEC_OWNER, + 2 => FILESEC_GROUP, + 3 => FILESEC_UUID, + 4 => FILESEC_MODE, + 5 => FILESEC_ACL, + 6 => FILESEC_GRPUUID, + 100 => FILESEC_ACL_RAW, + 101 => FILESEC_ACL_ALLOCSIZE, + _ => throw ArgumentError('Unknown value for filesec_property_t: $value'), + }; } final class os_workgroup_attr_opaque_s extends ffi.Struct { @@ -51279,18 +54649,22 @@ final class os_workgroup_join_token_opaque_s extends ffi.Struct { /// /// OS_os_workgroup class OS_os_workgroup extends OS_object { - OS_os_workgroup._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + OS_os_workgroup._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [OS_os_workgroup] that points to the same underlying object as [other]. OS_os_workgroup.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [OS_os_workgroup] that wraps the given raw object pointer. - OS_os_workgroup.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + OS_os_workgroup.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } typedef os_workgroup_t = ffi.Pointer; @@ -51298,33 +54672,35 @@ typedef Dartos_workgroup_t = OS_os_workgroup; typedef os_workgroup_attr_s = os_workgroup_attr_opaque_s; typedef os_workgroup_attr_t = ffi.Pointer; typedef os_workgroup_join_token_s = os_workgroup_join_token_opaque_s; -typedef os_workgroup_join_token_t - = ffi.Pointer; +typedef os_workgroup_join_token_t = + ffi.Pointer; typedef os_workgroup_index = ffi.Uint32; typedef Dartos_workgroup_index = int; -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_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_working_arena_destructor_t = + ffi.Pointer< + ffi.NativeFunction + >; final class os_workgroup_max_parallel_threads_attr_s extends ffi.Opaque {} typedef os_workgroup_mpt_attr_s = os_workgroup_max_parallel_threads_attr_s; -typedef os_workgroup_mpt_attr_t - = ffi.Pointer; +typedef os_workgroup_mpt_attr_t = + ffi.Pointer; typedef os_workgroup_interval_t = ffi.Pointer; typedef Dartos_workgroup_interval_t = OS_os_workgroup; typedef os_workgroup_interval_data_s = os_workgroup_interval_data_opaque_s; -typedef os_workgroup_interval_data_t - = ffi.Pointer; +typedef os_workgroup_interval_data_t = + ffi.Pointer; typedef os_workgroup_parallel_t = ffi.Pointer; typedef Dartos_workgroup_parallel_t = OS_os_workgroup; typedef dispatch_function_tFunction = ffi.Void Function(ffi.Pointer); typedef Dartdispatch_function_tFunction = void Function(ffi.Pointer); -typedef dispatch_function_t - = ffi.Pointer>; +typedef dispatch_function_t = + ffi.Pointer>; final class time_value extends ffi.Struct { @integer_t() @@ -51371,14 +54747,14 @@ enum qos_class_t { const qos_class_t(this.value); static qos_class_t fromValue(int value) => switch (value) { - 33 => QOS_CLASS_USER_INTERACTIVE, - 25 => QOS_CLASS_USER_INITIATED, - 21 => QOS_CLASS_DEFAULT, - 17 => QOS_CLASS_UTILITY, - 9 => QOS_CLASS_BACKGROUND, - 0 => QOS_CLASS_UNSPECIFIED, - _ => throw ArgumentError('Unknown value for qos_class_t: $value'), - }; + 33 => QOS_CLASS_USER_INTERACTIVE, + 25 => QOS_CLASS_USER_INITIATED, + 21 => QOS_CLASS_DEFAULT, + 17 => QOS_CLASS_UTILITY, + 9 => QOS_CLASS_BACKGROUND, + 0 => QOS_CLASS_UNSPECIFIED, + _ => throw ArgumentError('Unknown value for qos_class_t: $value'), + }; } typedef dispatch_object_t = ffi.Pointer; @@ -51398,38 +54774,44 @@ typedef Dartdispatch_queue_main_t = objc.NSObject; typedef dispatch_queue_concurrent_t = ffi.Pointer; typedef Dartdispatch_queue_concurrent_t = objc.NSObject; void _ObjCBlock_ffiVoid_ffiSize_fnPtrTrampoline( - ffi.Pointer block, int arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + int arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_ffiSize_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Size)>(_ObjCBlock_ffiVoid_ffiSize_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Size) + >(_ObjCBlock_ffiVoid_ffiSize_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiSize_closureTrampoline( - ffi.Pointer block, int arg0) => - (objc.getBlockClosure(block) as void Function(int))(arg0); + ffi.Pointer block, + int arg0, +) => (objc.getBlockClosure(block) as void Function(int))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_ffiSize_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Size)>(_ObjCBlock_ffiVoid_ffiSize_closureTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Size) + >(_ObjCBlock_ffiVoid_ffiSize_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiSize_listenerTrampoline( - ffi.Pointer block, int arg0) { + ffi.Pointer block, + int arg0, +) { (objc.getBlockClosure(block) as void Function(int))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable, ffi.Size)> - _ObjCBlock_ffiVoid_ffiSize_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Size)>.listener(_ObjCBlock_ffiVoid_ffiSize_listenerTrampoline) +_ObjCBlock_ffiVoid_ffiSize_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Size) + >.listener(_ObjCBlock_ffiVoid_ffiSize_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_ffiSize_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, +) { try { (objc.getBlockClosure(block) as void Function(int))(arg0); } catch (e) { @@ -51440,32 +54822,50 @@ void _ObjCBlock_ffiVoid_ffiSize_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +> +_ObjCBlock_ffiVoid_ffiSize_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Size)> - _ObjCBlock_ffiVoid_ffiSize_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Size)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiSize_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiSize_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +> +_ObjCBlock_ffiVoid_ffiSize_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Size)> - _ObjCBlock_ffiVoid_ffiSize_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size)>.listener(_ObjCBlock_ffiVoid_ffiSize_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) + >.listener(_ObjCBlock_ffiVoid_ffiSize_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_ffiSize { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -51473,13 +54873,12 @@ abstract final class ObjCBlock_ffiVoid_ffiSize { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiSize_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiSize_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -51490,13 +54889,17 @@ abstract final class ObjCBlock_ffiVoid_ffiSize { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_ffiVoid_ffiSize_closureCallable, - (int arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + void Function(int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiSize_closureCallable, + (int arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -51508,16 +54911,21 @@ abstract final class ObjCBlock_ffiVoid_ffiSize { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(int) fn, - {bool keepIsolateAlive = true}) { + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiSize_listenerCallable.nativeFunction.cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiSize_listenerCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_6enxqz(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -51531,36 +54939,51 @@ abstract final class ObjCBlock_ffiVoid_ffiSize { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(int) fn, - {bool keepIsolateAlive = true}) { + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiSize_blockingCallable.nativeFunction.cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiSize_blockingCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiSize_blockingListenerCallable.nativeFunction - .cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiSize_blockingListenerCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_6enxqz( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_ffiSize_CallExtension on objc.ObjCBlock { - void call(int arg0) => ref.pointer.ref.invoke + void call(int arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, ffi.Size arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Size arg0, + ) + > + >() .asFunction, int)>()( - ref.pointer, arg0); + ref.pointer, + arg0, + ); } final class dispatch_queue_s extends ffi.Opaque {} @@ -51586,7 +55009,8 @@ enum dispatch_autorelease_frequency_t { 1 => DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM, 2 => DISPATCH_AUTORELEASE_FREQUENCY_NEVER, _ => throw ArgumentError( - 'Unknown value for dispatch_autorelease_frequency_t: $value'), + 'Unknown value for dispatch_autorelease_frequency_t: $value', + ), }; } @@ -51602,15 +55026,16 @@ enum dispatch_block_flags_t { const dispatch_block_flags_t(this.value); static dispatch_block_flags_t fromValue(int value) => switch (value) { - 1 => DISPATCH_BLOCK_BARRIER, - 2 => DISPATCH_BLOCK_DETACHED, - 4 => DISPATCH_BLOCK_ASSIGN_CURRENT, - 8 => DISPATCH_BLOCK_NO_QOS_CLASS, - 16 => DISPATCH_BLOCK_INHERIT_QOS_CLASS, - 32 => DISPATCH_BLOCK_ENFORCE_QOS_CLASS, - _ => throw ArgumentError( - 'Unknown value for dispatch_block_flags_t: $value'), - }; + 1 => DISPATCH_BLOCK_BARRIER, + 2 => DISPATCH_BLOCK_DETACHED, + 4 => DISPATCH_BLOCK_ASSIGN_CURRENT, + 8 => DISPATCH_BLOCK_NO_QOS_CLASS, + 16 => DISPATCH_BLOCK_INHERIT_QOS_CLASS, + 32 => DISPATCH_BLOCK_ENFORCE_QOS_CLASS, + _ => throw ArgumentError( + 'Unknown value for dispatch_block_flags_t: $value', + ), + }; } typedef kern_return_t = ffi.Int; @@ -51854,80 +55279,126 @@ typedef Dartdispatch_data_t = objc.NSObject; final class dispatch_data_s extends ffi.Opaque {} bool _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ffi.Pointer arg2, - int arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(dispatch_data_t arg0, ffi.Size arg1, - ffi.Pointer arg2, ffi.Size arg3)>>() - .asFunction< - bool Function(dispatch_data_t, int, ffi.Pointer, - int)>()(arg0, arg1, arg2, arg3); + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + dispatch_data_t arg0, + ffi.Size arg1, + ffi.Pointer arg2, + ffi.Size arg3, + ) + > + >() + .asFunction< + bool Function(dispatch_data_t, int, ffi.Pointer, int) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_fnPtrCallable = +_ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - dispatch_data_t, - ffi.Size, - ffi.Pointer, - ffi.Size)>( - _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_fnPtrTrampoline, - false) + ffi.Bool Function( + ffi.Pointer, + dispatch_data_t, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >( + _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_fnPtrTrampoline, + false, + ) .cast(); bool _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ffi.Pointer arg2, - int arg3) => - (objc.getBlockClosure(block) as bool Function(dispatch_data_t, int, - ffi.Pointer, int))(arg0, arg1, arg2, arg3); + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3, +) => + (objc.getBlockClosure(block) + as bool Function(dispatch_data_t, int, ffi.Pointer, int))( + arg0, + arg1, + arg2, + arg3, + ); ffi.Pointer - _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureCallable = +_ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureCallable = ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - dispatch_data_t, - ffi.Size, - ffi.Pointer, - ffi.Size)>( - _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureTrampoline, - false) + ffi.Bool Function( + ffi.Pointer, + dispatch_data_t, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >( + _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureTrampoline, + false, + ) .cast(); /// Construction methods for `objc.ObjCBlock, ffi.Size)>`. abstract final class ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, - ffi.Size)>(pointer, retain: retain, release: release); + ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc - .ObjCBlock, ffi.Size)> - fromFunctionPointer(ffi.Pointer arg2, ffi.Size arg3)>> ptr) => - objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size)>( - objc.newPointerBlock( - _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + dispatch_data_t arg0, + ffi.Size arg1, + ffi.Pointer arg2, + ffi.Size arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >( + objc.newPointerBlock( + _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -51937,103 +55408,162 @@ abstract final class ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock, ffi.Size)> - fromFunction(bool Function(Dartdispatch_data_t, int, ffi.Pointer, int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, ffi.Size)>( - objc.newClosureBlock( - _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureCallable, - (dispatch_data_t arg0, int arg1, ffi.Pointer arg2, - int arg3) => - fn(objc.NSObject.castFromPointer(arg0, retain: true, release: true), arg1, arg2, arg3), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) + > + fromFunction( + bool Function(Dartdispatch_data_t, int, ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >( + objc.newClosureBlock( + _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureCallable, + ( + dispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ) => fn( + objc.NSObject.castFromPointer(arg0, retain: true, release: true), + arg1, + arg2, + arg3, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock, ffi.Size)>`. extension ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_CallExtension - on objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size)> { - bool call(Dartdispatch_data_t arg0, int arg1, ffi.Pointer arg2, - int arg3) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - dispatch_data_t arg0, - ffi.Size arg1, - ffi.Pointer arg2, - ffi.Size arg3)>>() - .asFunction< - bool Function( - ffi.Pointer, - dispatch_data_t, - int, - ffi.Pointer, - int)>()(ref.pointer, arg0.ref.pointer, arg1, arg2, arg3); + on + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + > { + bool call( + Dartdispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + dispatch_data_t arg0, + ffi.Size arg1, + ffi.Pointer arg2, + ffi.Size arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + dispatch_data_t, + int, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0.ref.pointer, arg1, arg2, arg3); } typedef dispatch_data_applier_t = ffi.Pointer; -typedef Dartdispatch_data_applier_t = objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size)>; +typedef Dartdispatch_data_applier_t = + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >; typedef dispatch_fd_t = ffi.Int; typedef Dartdispatch_fd_t = int; void _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(dispatch_data_t arg0, ffi.Int arg1)>>() - .asFunction()(arg0, arg1); + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, +) => block.ref.target + .cast< + ffi.NativeFunction + >() + .asFunction()(arg0, arg1); ffi.Pointer _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, dispatch_data_t, ffi.Int)>( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >(_ObjCBlock_ffiVoid_dispatchdatat_ffiInt_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1) => - (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( - arg0, arg1); + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, +) => (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( + arg0, + arg1, +); ffi.Pointer _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, dispatch_data_t, ffi.Int)>( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >(_ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_listenerTrampoline( - ffi.Pointer block, dispatch_data_t arg0, int arg1) { + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, +) { (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( - arg0, arg1); + arg0, + arg1, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, dispatch_data_t, ffi.Int) +> +_ObjCBlock_ffiVoid_dispatchdatat_ffiInt_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, dispatch_data_t, ffi.Int)> - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_listenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, dispatch_data_t, - ffi.Int)>.listener( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_listenerTrampoline) + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >.listener(_ObjCBlock_ffiVoid_dispatchdatat_ffiInt_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - dispatch_data_t arg0, - int arg1) { + ffi.Pointer block, + ffi.Pointer waiter, + dispatch_data_t arg0, + int arg1, +) { try { (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( - arg0, arg1); + arg0, + arg1, + ); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -52042,50 +55572,75 @@ void _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - dispatch_data_t, - ffi.Int)> _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, dispatch_data_t, ffi.Int)>.isolateLocal( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingTrampoline) - ..keepIsolateAlive = false; + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) +> +_ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingTrampoline) + ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, dispatch_data_t, ffi.Int)> - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, dispatch_data_t, ffi.Int)>.listener( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) +> +_ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >.listener(_ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, ffi.Int)> fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -52096,17 +55651,20 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(Dartdispatch_data_t, int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureCallable, - (dispatch_data_t arg0, int arg1) => fn( - objc.NSObject.castFromPointer(arg0, retain: true, release: true), - arg1), - keepIsolateAlive), - retain: false, - release: true); + void Function(Dartdispatch_data_t, int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureCallable, + (dispatch_data_t arg0, int arg1) => fn( + objc.NSObject.castFromPointer(arg0, retain: true, release: true), + arg1, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -52118,19 +55676,25 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(Dartdispatch_data_t, int) fn, - {bool keepIsolateAlive = true}) { + void Function(Dartdispatch_data_t, int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_listenerCallable.nativeFunction - .cast(), - (dispatch_data_t arg0, int arg1) => fn( - objc.NSObject.castFromPointer(arg0, retain: false, release: true), - arg1), - keepIsolateAlive); + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_listenerCallable.nativeFunction + .cast(), + (dispatch_data_t arg0, int arg1) => fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + arg1, + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_18kzm6a(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -52144,29 +55708,40 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(Dartdispatch_data_t, int) fn, - {bool keepIsolateAlive = true}) { + void Function(Dartdispatch_data_t, int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingCallable.nativeFunction - .cast(), - (dispatch_data_t arg0, int arg1) => fn( - objc.NSObject.castFromPointer(arg0, retain: false, release: true), - arg1), - keepIsolateAlive); + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingCallable.nativeFunction + .cast(), + (dispatch_data_t arg0, int arg1) => fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + arg1, + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingListenerCallable - .nativeFunction - .cast(), - (dispatch_data_t arg0, int arg1) => fn( - objc.NSObject.castFromPointer(arg0, retain: false, release: true), - arg1), - keepIsolateAlive); + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_blockingListenerCallable + .nativeFunction + .cast(), + (dispatch_data_t arg0, int arg1) => fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + arg1, + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_18kzm6a( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -52175,66 +55750,90 @@ extension ObjCBlock_ffiVoid_dispatchdatat_ffiInt_CallExtension on objc.ObjCBlock { void call(Dartdispatch_data_t arg0, int arg1) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - dispatch_data_t arg0, ffi.Int arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + dispatch_data_t arg0, + ffi.Int arg1, + ) + > + >() .asFunction< - void Function(ffi.Pointer, dispatch_data_t, - int)>()(ref.pointer, arg0.ref.pointer, arg1); + void Function(ffi.Pointer, dispatch_data_t, int) + >()(ref.pointer, arg0.ref.pointer, arg1); } void _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(dispatch_data_t arg0, ffi.Int arg1)>>() - .asFunction()(arg0, arg1); + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, +) => block.ref.target + .cast< + ffi.NativeFunction + >() + .asFunction()(arg0, arg1); ffi.Pointer _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, dispatch_data_t, ffi.Int)>( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >(_ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1) => - (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( - arg0, arg1); + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, +) => (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( + arg0, + arg1, +); ffi.Pointer - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_closureCallable = +_ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, dispatch_data_t, ffi.Int)>( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >(_ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_listenerTrampoline( - ffi.Pointer block, dispatch_data_t arg0, int arg1) { + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, +) { (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( - arg0, arg1); + arg0, + arg1, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, dispatch_data_t, ffi.Int) +> +_ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, dispatch_data_t, ffi.Int)> - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_listenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, dispatch_data_t, - ffi.Int)>.listener( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_listenerTrampoline) + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >.listener(_ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - dispatch_data_t arg0, - int arg1) { + ffi.Pointer block, + ffi.Pointer waiter, + dispatch_data_t arg0, + int arg1, +) { try { (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( - arg0, arg1); + arg0, + arg1, + ); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -52243,48 +55842,77 @@ void _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, dispatch_data_t, ffi.Int)> - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, dispatch_data_t, ffi.Int)>.isolateLocal( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) +> +_ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, dispatch_data_t, ffi.Int)> - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, dispatch_data_t, ffi.Int)>.listener( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) +> +_ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >.listener(_ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(objc.NSObject?, ffi.Int)> fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -52294,20 +55922,24 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1 { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(Dartdispatch_data_t?, int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_closureCallable, - (dispatch_data_t arg0, int arg1) => fn( - arg0.address == 0 - ? null - : objc.NSObject.castFromPointer(arg0, retain: true, release: true), - arg1), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock + fromFunction( + void Function(Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_closureCallable, + (dispatch_data_t arg0, int arg1) => fn( + arg0.address == 0 + ? null + : objc.NSObject.castFromPointer(arg0, retain: true, release: true), + arg1, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -52319,23 +55951,27 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(Dartdispatch_data_t?, int) fn, - {bool keepIsolateAlive = true}) { + void Function(Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_listenerCallable - .nativeFunction - .cast(), - (dispatch_data_t arg0, int arg1) => fn( - arg0.address == 0 - ? null - : objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - arg1), - keepIsolateAlive); + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_listenerCallable.nativeFunction + .cast(), + (dispatch_data_t arg0, int arg1) => fn( + arg0.address == 0 + ? null + : objc.NSObject.castFromPointer(arg0, retain: false, release: true), + arg1, + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_18kzm6a(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -52349,36 +55985,44 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1 { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(Dartdispatch_data_t?, int) fn, - {bool keepIsolateAlive = true}) { + void Function(Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingCallable - .nativeFunction - .cast(), - (dispatch_data_t arg0, int arg1) => fn( - arg0.address == 0 - ? null - : objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - arg1), - keepIsolateAlive); + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingCallable.nativeFunction + .cast(), + (dispatch_data_t arg0, int arg1) => fn( + arg0.address == 0 + ? null + : objc.NSObject.castFromPointer(arg0, retain: false, release: true), + arg1, + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingListenerCallable - .nativeFunction - .cast(), - (dispatch_data_t arg0, int arg1) => fn( - arg0.address == 0 - ? null - : objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - arg1), - keepIsolateAlive); + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_blockingListenerCallable + .nativeFunction + .cast(), + (dispatch_data_t arg0, int arg1) => fn( + arg0.address == 0 + ? null + : objc.NSObject.castFromPointer(arg0, retain: false, release: true), + arg1, + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_18kzm6a( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -52387,12 +56031,17 @@ extension ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1_CallExtension on objc.ObjCBlock { void call(Dartdispatch_data_t? arg0, int arg1) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - dispatch_data_t arg0, ffi.Int arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + dispatch_data_t arg0, + ffi.Int arg1, + ) + > + >() .asFunction< - void Function(ffi.Pointer, dispatch_data_t, - int)>()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1); + void Function(ffi.Pointer, dispatch_data_t, int) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1); } typedef dispatch_io_t = ffi.Pointer; @@ -52400,38 +56049,44 @@ typedef Dartdispatch_io_t = objc.NSObject; typedef dispatch_io_type_t = ffi.UnsignedLong; typedef Dartdispatch_io_type_t = int; void _ObjCBlock_ffiVoid_ffiInt_fnPtrTrampoline( - ffi.Pointer block, int arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + int arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_ffiInt_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Int)>(_ObjCBlock_ffiVoid_ffiInt_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Int) + >(_ObjCBlock_ffiVoid_ffiInt_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiInt_closureTrampoline( - ffi.Pointer block, int arg0) => - (objc.getBlockClosure(block) as void Function(int))(arg0); + ffi.Pointer block, + int arg0, +) => (objc.getBlockClosure(block) as void Function(int))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_ffiInt_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Int)>(_ObjCBlock_ffiVoid_ffiInt_closureTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Int) + >(_ObjCBlock_ffiVoid_ffiInt_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiInt_listenerTrampoline( - ffi.Pointer block, int arg0) { + ffi.Pointer block, + int arg0, +) { (objc.getBlockClosure(block) as void Function(int))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable, ffi.Int)> - _ObjCBlock_ffiVoid_ffiInt_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Int)>.listener(_ObjCBlock_ffiVoid_ffiInt_listenerTrampoline) +_ObjCBlock_ffiVoid_ffiInt_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Int) + >.listener(_ObjCBlock_ffiVoid_ffiInt_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_ffiInt_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, +) { try { (objc.getBlockClosure(block) as void Function(int))(arg0); } catch (e) { @@ -52442,33 +56097,50 @@ void _ObjCBlock_ffiVoid_ffiInt_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +> +_ObjCBlock_ffiVoid_ffiInt_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Int)> - _ObjCBlock_ffiVoid_ffiInt_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int)>.isolateLocal(_ObjCBlock_ffiVoid_ffiInt_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiInt_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +> +_ObjCBlock_ffiVoid_ffiInt_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Int)> - _ObjCBlock_ffiVoid_ffiInt_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int)>.listener(_ObjCBlock_ffiVoid_ffiInt_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + >.listener(_ObjCBlock_ffiVoid_ffiInt_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_ffiInt { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -52476,13 +56148,12 @@ abstract final class ObjCBlock_ffiVoid_ffiInt { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiInt_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiInt_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -52493,13 +56164,17 @@ abstract final class ObjCBlock_ffiVoid_ffiInt { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_ffiVoid_ffiInt_closureCallable, - (int arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + void Function(int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiInt_closureCallable, + (int arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -52511,16 +56186,21 @@ abstract final class ObjCBlock_ffiVoid_ffiInt { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(int) fn, - {bool keepIsolateAlive = true}) { + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiInt_listenerCallable.nativeFunction.cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiInt_listenerCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_9o8504(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -52534,99 +56214,144 @@ abstract final class ObjCBlock_ffiVoid_ffiInt { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(int) fn, - {bool keepIsolateAlive = true}) { + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiInt_blockingCallable.nativeFunction.cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiInt_blockingCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiInt_blockingListenerCallable.nativeFunction - .cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiInt_blockingListenerCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_9o8504( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_ffiInt_CallExtension on objc.ObjCBlock { - void call(int arg0) => ref.pointer.ref.invoke + void call(int arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, ffi.Int arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Int arg0, + ) + > + >() .asFunction, int)>()( - ref.pointer, arg0); + ref.pointer, + arg0, + ); } void _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_fnPtrTrampoline( - ffi.Pointer block, - bool arg0, - dispatch_data_t arg1, - int arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Bool arg0, dispatch_data_t arg1, ffi.Int arg2)>>() - .asFunction()( - arg0, arg1, arg2); + ffi.Pointer block, + bool arg0, + dispatch_data_t arg1, + int arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Bool arg0, dispatch_data_t arg1, ffi.Int arg2) + > + >() + .asFunction()(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_fnPtrCallable = +_ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Bool, - dispatch_data_t, ffi.Int)>( - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Bool, + dispatch_data_t, + ffi.Int, + ) + >(_ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureTrampoline( - ffi.Pointer block, - bool arg0, - dispatch_data_t arg1, - int arg2) => - (objc.getBlockClosure(block) as void Function(bool, dispatch_data_t, int))( - arg0, arg1, arg2); + ffi.Pointer block, + bool arg0, + dispatch_data_t arg1, + int arg2, +) => (objc.getBlockClosure(block) as void Function(bool, dispatch_data_t, int))( + arg0, + arg1, + arg2, +); ffi.Pointer - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureCallable = +_ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Bool, - dispatch_data_t, ffi.Int)>( - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Bool, + dispatch_data_t, + ffi.Int, + ) + >(_ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_listenerTrampoline( - ffi.Pointer block, - bool arg0, - dispatch_data_t arg1, - int arg2) { + ffi.Pointer block, + bool arg0, + dispatch_data_t arg1, + int arg2, +) { (objc.getBlockClosure(block) as void Function(bool, dispatch_data_t, int))( - arg0, arg1, arg2); + arg0, + arg1, + arg2, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Bool, - dispatch_data_t, ffi.Int)> - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_listenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Bool, - dispatch_data_t, ffi.Int)>.listener( - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Bool, + dispatch_data_t, + ffi.Int, + ) +> +_ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Bool, + dispatch_data_t, + ffi.Int, + ) + >.listener( + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_listenerTrampoline, + ) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - bool arg0, - dispatch_data_t arg1, - int arg2) { + ffi.Pointer block, + ffi.Pointer waiter, + bool arg0, + dispatch_data_t arg1, + int arg2, +) { try { (objc.getBlockClosure(block) as void Function(bool, dispatch_data_t, int))( - arg0, arg1, arg2); + arg0, + arg1, + arg2, + ); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -52635,58 +56360,85 @@ void _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Bool, dispatch_data_t, ffi.Int)> - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - dispatch_data_t, - ffi.Int)>.isolateLocal( - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + dispatch_data_t, + ffi.Int, + ) +> +_ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + dispatch_data_t, + ffi.Int, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Bool, dispatch_data_t, ffi.Int)> - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - dispatch_data_t, - ffi.Int)>.listener( - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + dispatch_data_t, + ffi.Int, + ) +> +_ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + dispatch_data_t, + ffi.Int, + ) + >.listener( + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock( - pointer, - retain: retain, - release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Bool, objc.NSObject?, ffi.Int)> fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Bool arg0, dispatch_data_t arg1, ffi.Int arg2) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -52697,18 +56449,24 @@ abstract final class ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock - fromFunction(void Function(bool, Dartdispatch_data_t?, int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureCallable, - (bool arg0, dispatch_data_t arg1, int arg2) => fn( - arg0, - arg1.address == 0 ? null : objc.NSObject.castFromPointer(arg1, retain: true, release: true), - arg2), - keepIsolateAlive), - retain: false, - release: true); + fromFunction( + void Function(bool, Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureCallable, + (bool arg0, dispatch_data_t arg1, int arg2) => fn( + arg0, + arg1.address == 0 + ? null + : objc.NSObject.castFromPointer(arg1, retain: true, release: true), + arg2, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -52720,26 +56478,30 @@ abstract final class ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock - listener(void Function(bool, Dartdispatch_data_t?, int) fn, - {bool keepIsolateAlive = true}) { + listener( + void Function(bool, Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_listenerCallable - .nativeFunction - .cast(), - (bool arg0, dispatch_data_t arg1, int arg2) => fn( - arg0, - arg1.address == 0 - ? null - : objc.NSObject.castFromPointer(arg1, - retain: false, release: true), - arg2), - keepIsolateAlive); + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_listenerCallable + .nativeFunction + .cast(), + (bool arg0, dispatch_data_t arg1, int arg2) => fn( + arg0, + arg1.address == 0 + ? null + : objc.NSObject.castFromPointer(arg1, retain: false, release: true), + arg2, + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_og5b6y(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -52753,61 +56515,81 @@ abstract final class ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock - blocking(void Function(bool, Dartdispatch_data_t?, int) fn, - {bool keepIsolateAlive = true}) { + blocking( + void Function(bool, Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingCallable - .nativeFunction - .cast(), - (bool arg0, dispatch_data_t arg1, int arg2) => fn( - arg0, - arg1.address == 0 - ? null - : objc.NSObject.castFromPointer(arg1, - retain: false, release: true), - arg2), - keepIsolateAlive); + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingCallable + .nativeFunction + .cast(), + (bool arg0, dispatch_data_t arg1, int arg2) => fn( + arg0, + arg1.address == 0 + ? null + : objc.NSObject.castFromPointer(arg1, retain: false, release: true), + arg2, + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingListenerCallable - .nativeFunction - .cast(), - (bool arg0, dispatch_data_t arg1, int arg2) => fn( - arg0, - arg1.address == 0 - ? null - : objc.NSObject.castFromPointer(arg1, - retain: false, release: true), - arg2), - keepIsolateAlive); + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_blockingListenerCallable + .nativeFunction + .cast(), + (bool arg0, dispatch_data_t arg1, int arg2) => fn( + arg0, + arg1.address == 0 + ? null + : objc.NSObject.castFromPointer(arg1, retain: false, release: true), + arg2, + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_og5b6y( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_CallExtension on objc.ObjCBlock { - void call(bool arg0, Dartdispatch_data_t? arg1, int arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Bool arg0, dispatch_data_t arg1, ffi.Int arg2)>>() - .asFunction< - void Function(ffi.Pointer, bool, - dispatch_data_t, int)>()( - ref.pointer, arg0, arg1?.ref.pointer ?? ffi.nullptr, arg2); + void call(bool arg0, Dartdispatch_data_t? arg1, int arg2) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Bool arg0, + dispatch_data_t arg1, + ffi.Int arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + bool, + dispatch_data_t, + int, + ) + >()(ref.pointer, arg0, arg1?.ref.pointer ?? ffi.nullptr, arg2); } typedef dispatch_io_handler_t = ffi.Pointer; -typedef Dartdispatch_io_handler_t - = objc.ObjCBlock; +typedef Dartdispatch_io_handler_t = + objc.ObjCBlock; typedef dispatch_io_close_flags_t = ffi.UnsignedLong; typedef Dartdispatch_io_close_flags_t = int; typedef dispatch_io_interval_flags_t = ffi.UnsignedLong; @@ -52839,16 +56621,16 @@ enum CFStreamStatus { const CFStreamStatus(this.value); static CFStreamStatus fromValue(int value) => switch (value) { - 0 => kCFStreamStatusNotOpen, - 1 => kCFStreamStatusOpening, - 2 => kCFStreamStatusOpen, - 3 => kCFStreamStatusReading, - 4 => kCFStreamStatusWriting, - 5 => kCFStreamStatusAtEnd, - 6 => kCFStreamStatusClosed, - 7 => kCFStreamStatusError, - _ => throw ArgumentError('Unknown value for CFStreamStatus: $value'), - }; + 0 => kCFStreamStatusNotOpen, + 1 => kCFStreamStatusOpening, + 2 => kCFStreamStatusOpen, + 3 => kCFStreamStatusReading, + 4 => kCFStreamStatusWriting, + 5 => kCFStreamStatusAtEnd, + 6 => kCFStreamStatusClosed, + 7 => kCFStreamStatusError, + _ => throw ArgumentError('Unknown value for CFStreamStatus: $value'), + }; } enum CFStreamEventType { @@ -52863,14 +56645,14 @@ enum CFStreamEventType { const CFStreamEventType(this.value); static CFStreamEventType fromValue(int value) => switch (value) { - 0 => kCFStreamEventNone, - 1 => kCFStreamEventOpenCompleted, - 2 => kCFStreamEventHasBytesAvailable, - 4 => kCFStreamEventCanAcceptBytes, - 8 => kCFStreamEventErrorOccurred, - 16 => kCFStreamEventEndEncountered, - _ => throw ArgumentError('Unknown value for CFStreamEventType: $value'), - }; + 0 => kCFStreamEventNone, + 1 => kCFStreamEventOpenCompleted, + 2 => kCFStreamEventHasBytesAvailable, + 4 => kCFStreamEventCanAcceptBytes, + 8 => kCFStreamEventErrorOccurred, + 16 => kCFStreamEventEndEncountered, + _ => throw ArgumentError('Unknown value for CFStreamEventType: $value'), + }; } final class CFStreamClientContext extends ffi.Struct { @@ -52880,16 +56662,21 @@ final class CFStreamClientContext extends ffi.Struct { external ffi.Pointer info; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info)>> retain; + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; external ffi.Pointer< - ffi.NativeFunction info)>> - release; + ffi.NativeFunction info)> + > + release; external ffi.Pointer< - ffi.NativeFunction info)>> - copyDescription; + ffi.NativeFunction info)> + > + copyDescription; } final class __CFReadStream extends ffi.Opaque {} @@ -52899,26 +56686,34 @@ typedef CFReadStreamRef = ffi.Pointer<__CFReadStream>; final class __CFWriteStream extends ffi.Opaque {} typedef CFWriteStreamRef = ffi.Pointer<__CFWriteStream>; -typedef CFReadStreamClientCallBackFunction = ffi.Void Function( - CFReadStreamRef stream, - CFOptionFlags type, - ffi.Pointer clientCallBackInfo); -typedef DartCFReadStreamClientCallBackFunction = void Function( - CFReadStreamRef stream, - CFStreamEventType type, - ffi.Pointer clientCallBackInfo); -typedef CFReadStreamClientCallBack - = ffi.Pointer>; -typedef CFWriteStreamClientCallBackFunction = ffi.Void Function( - CFWriteStreamRef stream, - CFOptionFlags type, - ffi.Pointer clientCallBackInfo); -typedef DartCFWriteStreamClientCallBackFunction = void Function( - CFWriteStreamRef stream, - CFStreamEventType type, - ffi.Pointer clientCallBackInfo); -typedef CFWriteStreamClientCallBack - = ffi.Pointer>; +typedef CFReadStreamClientCallBackFunction = + ffi.Void Function( + CFReadStreamRef stream, + CFOptionFlags type, + ffi.Pointer clientCallBackInfo, + ); +typedef DartCFReadStreamClientCallBackFunction = + void Function( + CFReadStreamRef stream, + CFStreamEventType type, + ffi.Pointer clientCallBackInfo, + ); +typedef CFReadStreamClientCallBack = + ffi.Pointer>; +typedef CFWriteStreamClientCallBackFunction = + ffi.Void Function( + CFWriteStreamRef stream, + CFOptionFlags type, + ffi.Pointer clientCallBackInfo, + ); +typedef DartCFWriteStreamClientCallBackFunction = + void Function( + CFWriteStreamRef stream, + CFStreamEventType type, + ffi.Pointer clientCallBackInfo, + ); +typedef CFWriteStreamClientCallBack = + ffi.Pointer>; enum CFPropertyListFormat { kCFPropertyListOpenStepFormat(1), @@ -52929,40 +56724,48 @@ enum CFPropertyListFormat { const CFPropertyListFormat(this.value); static CFPropertyListFormat fromValue(int value) => switch (value) { - 1 => kCFPropertyListOpenStepFormat, - 100 => kCFPropertyListXMLFormat_v1_0, - 200 => kCFPropertyListBinaryFormat_v1_0, - _ => - throw ArgumentError('Unknown value for CFPropertyListFormat: $value'), - }; -} - -typedef CFSetRetainCallBackFunction = ffi.Pointer Function( - CFAllocatorRef allocator, ffi.Pointer value); -typedef CFSetRetainCallBack - = ffi.Pointer>; -typedef CFSetReleaseCallBackFunction = ffi.Void Function( - CFAllocatorRef allocator, ffi.Pointer value); -typedef DartCFSetReleaseCallBackFunction = void Function( - CFAllocatorRef allocator, ffi.Pointer value); -typedef CFSetReleaseCallBack - = ffi.Pointer>; -typedef CFSetCopyDescriptionCallBackFunction = CFStringRef Function( - ffi.Pointer value); -typedef CFSetCopyDescriptionCallBack - = ffi.Pointer>; -typedef CFSetEqualCallBackFunction = Boolean Function( - ffi.Pointer value1, ffi.Pointer value2); -typedef DartCFSetEqualCallBackFunction = DartBoolean Function( - ffi.Pointer value1, ffi.Pointer value2); -typedef CFSetEqualCallBack - = ffi.Pointer>; -typedef CFSetHashCallBackFunction = CFHashCode Function( - ffi.Pointer value); -typedef DartCFSetHashCallBackFunction = DartCFHashCode Function( - ffi.Pointer value); -typedef CFSetHashCallBack - = ffi.Pointer>; + 1 => kCFPropertyListOpenStepFormat, + 100 => kCFPropertyListXMLFormat_v1_0, + 200 => kCFPropertyListBinaryFormat_v1_0, + _ => throw ArgumentError('Unknown value for CFPropertyListFormat: $value'), + }; +} + +typedef CFSetRetainCallBackFunction = + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer value, + ); +typedef CFSetRetainCallBack = + ffi.Pointer>; +typedef CFSetReleaseCallBackFunction = + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef DartCFSetReleaseCallBackFunction = + void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef CFSetReleaseCallBack = + ffi.Pointer>; +typedef CFSetCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer value); +typedef CFSetCopyDescriptionCallBack = + ffi.Pointer>; +typedef CFSetEqualCallBackFunction = + Boolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFSetEqualCallBackFunction = + DartBoolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef CFSetEqualCallBack = + ffi.Pointer>; +typedef CFSetHashCallBackFunction = + CFHashCode Function(ffi.Pointer value); +typedef DartCFSetHashCallBackFunction = + DartCFHashCode Function(ffi.Pointer value); +typedef CFSetHashCallBack = + ffi.Pointer>; final class CFSetCallBacks extends ffi.Struct { @CFIndex() @@ -52979,31 +56782,34 @@ final class CFSetCallBacks extends ffi.Struct { external CFSetHashCallBack hash; } -typedef CFSetApplierFunctionFunction = ffi.Void Function( - ffi.Pointer value, ffi.Pointer context); -typedef DartCFSetApplierFunctionFunction = 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); +typedef CFSetApplierFunction = + ffi.Pointer>; final class __CFSet extends ffi.Opaque {} typedef CFSetRef = ffi.Pointer<__CFSet>; typedef CFMutableSetRef = ffi.Pointer<__CFSet>; -typedef CFTreeRetainCallBackFunction = ffi.Pointer Function( - ffi.Pointer info); -typedef CFTreeRetainCallBack - = ffi.Pointer>; -typedef CFTreeReleaseCallBackFunction = ffi.Void Function( - ffi.Pointer info); -typedef DartCFTreeReleaseCallBackFunction = void Function( - ffi.Pointer info); -typedef CFTreeReleaseCallBack - = ffi.Pointer>; -typedef CFTreeCopyDescriptionCallBackFunction = CFStringRef Function( - ffi.Pointer info); -typedef CFTreeCopyDescriptionCallBack - = ffi.Pointer>; +typedef CFTreeRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFTreeRetainCallBack = + ffi.Pointer>; +typedef CFTreeReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFTreeReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFTreeReleaseCallBack = + ffi.Pointer>; +typedef CFTreeCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer info); +typedef CFTreeCopyDescriptionCallBack = + ffi.Pointer>; final class CFTreeContext extends ffi.Struct { @CFIndex() @@ -53018,12 +56824,15 @@ final class CFTreeContext extends ffi.Struct { external CFTreeCopyDescriptionCallBack copyDescription; } -typedef CFTreeApplierFunctionFunction = ffi.Void Function( - ffi.Pointer value, ffi.Pointer context); -typedef DartCFTreeApplierFunctionFunction = 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); +typedef CFTreeApplierFunction = + ffi.Pointer>; final class __CFTree extends ffi.Opaque {} @@ -53105,70 +56914,90 @@ final class CFMessagePortContext extends ffi.Struct { external ffi.Pointer info; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info)>> retain; + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; external ffi.Pointer< - ffi.NativeFunction info)>> - release; + ffi.NativeFunction info)> + > + release; external ffi.Pointer< - ffi.NativeFunction info)>> - copyDescription; -} - -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 CFMessagePortCallBack - = ffi.Pointer>; -typedef CFMessagePortInvalidationCallBackFunction = ffi.Void Function( - CFMessagePortRef ms, ffi.Pointer info); -typedef DartCFMessagePortInvalidationCallBackFunction = void Function( - CFMessagePortRef ms, ffi.Pointer info); -typedef CFMessagePortInvalidationCallBack = ffi - .Pointer>; -typedef CFPlugInDynamicRegisterFunctionFunction = ffi.Void Function( - CFPlugInRef plugIn); -typedef DartCFPlugInDynamicRegisterFunctionFunction = void Function( - CFPlugInRef plugIn); -typedef CFPlugInDynamicRegisterFunction - = ffi.Pointer>; + ffi.NativeFunction info)> + > + copyDescription; +} + +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 CFMessagePortCallBack = + ffi.Pointer>; +typedef CFMessagePortInvalidationCallBackFunction = + ffi.Void Function(CFMessagePortRef ms, ffi.Pointer info); +typedef DartCFMessagePortInvalidationCallBackFunction = + void Function(CFMessagePortRef ms, ffi.Pointer info); +typedef CFMessagePortInvalidationCallBack = + ffi.Pointer>; +typedef CFPlugInDynamicRegisterFunctionFunction = + ffi.Void Function(CFPlugInRef plugIn); +typedef DartCFPlugInDynamicRegisterFunctionFunction = + void Function(CFPlugInRef plugIn); +typedef CFPlugInDynamicRegisterFunction = + ffi.Pointer>; typedef CFPlugInUnloadFunctionFunction = ffi.Void Function(CFPlugInRef plugIn); typedef DartCFPlugInUnloadFunctionFunction = void Function(CFPlugInRef plugIn); -typedef CFPlugInUnloadFunction - = ffi.Pointer>; -typedef CFPlugInFactoryFunctionFunction = ffi.Pointer Function( - CFAllocatorRef allocator, CFUUIDRef typeUUID); -typedef CFPlugInFactoryFunction - = ffi.Pointer>; +typedef CFPlugInUnloadFunction = + ffi.Pointer>; +typedef CFPlugInFactoryFunctionFunction = + ffi.Pointer Function( + CFAllocatorRef allocator, + CFUUIDRef typeUUID, + ); +typedef CFPlugInFactoryFunction = + ffi.Pointer>; final class __CFPlugInInstance extends ffi.Opaque {} typedef CFPlugInInstanceRef = ffi.Pointer<__CFPlugInInstance>; -typedef CFPlugInInstanceGetInterfaceFunctionFunction = Boolean Function( - CFPlugInInstanceRef instance, - CFStringRef interfaceName, - ffi.Pointer> ftbl); -typedef DartCFPlugInInstanceGetInterfaceFunctionFunction = DartBoolean Function( - CFPlugInInstanceRef instance, - CFStringRef interfaceName, - ffi.Pointer> ftbl); -typedef CFPlugInInstanceGetInterfaceFunction = ffi - .Pointer>; -typedef CFPlugInInstanceDeallocateInstanceDataFunctionFunction = ffi.Void - Function(ffi.Pointer instanceData); -typedef DartCFPlugInInstanceDeallocateInstanceDataFunctionFunction = void - Function(ffi.Pointer instanceData); -typedef CFPlugInInstanceDeallocateInstanceDataFunction = ffi.Pointer< - ffi.NativeFunction>; +typedef CFPlugInInstanceGetInterfaceFunctionFunction = + Boolean Function( + CFPlugInInstanceRef instance, + CFStringRef interfaceName, + ffi.Pointer> ftbl, + ); +typedef DartCFPlugInInstanceGetInterfaceFunctionFunction = + DartBoolean Function( + CFPlugInInstanceRef instance, + CFStringRef interfaceName, + ffi.Pointer> ftbl, + ); +typedef CFPlugInInstanceGetInterfaceFunction = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CFPlugInInstanceDeallocateInstanceDataFunctionFunction = + ffi.Void Function(ffi.Pointer instanceData); +typedef DartCFPlugInInstanceDeallocateInstanceDataFunctionFunction = + void Function(ffi.Pointer instanceData); +typedef CFPlugInInstanceDeallocateInstanceDataFunction = + ffi.Pointer< + ffi.NativeFunction + >; final class __CFMachPort extends ffi.Opaque {} @@ -53181,30 +57010,45 @@ final class CFMachPortContext extends ffi.Struct { external ffi.Pointer info; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info)>> retain; + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; external ffi.Pointer< - ffi.NativeFunction info)>> - release; + ffi.NativeFunction info)> + > + release; external ffi.Pointer< - ffi.NativeFunction info)>> - copyDescription; -} - -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 CFMachPortCallBack - = ffi.Pointer>; -typedef CFMachPortInvalidationCallBackFunction = ffi.Void Function( - CFMachPortRef port, ffi.Pointer info); -typedef DartCFMachPortInvalidationCallBackFunction = void Function( - CFMachPortRef port, ffi.Pointer info); -typedef CFMachPortInvalidationCallBack - = ffi.Pointer>; + ffi.NativeFunction info)> + > + copyDescription; +} + +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 CFMachPortCallBack = + ffi.Pointer>; +typedef CFMachPortInvalidationCallBackFunction = + ffi.Void Function(CFMachPortRef port, ffi.Pointer info); +typedef DartCFMachPortInvalidationCallBackFunction = + void Function(CFMachPortRef port, ffi.Pointer info); +typedef CFMachPortInvalidationCallBack = + ffi.Pointer>; final class __CFAttributedString extends ffi.Opaque {} @@ -53229,17 +57073,18 @@ enum CFURLEnumeratorOptions { const CFURLEnumeratorOptions(this.value); static CFURLEnumeratorOptions fromValue(int value) => switch (value) { - 0 => kCFURLEnumeratorDefaultBehavior, - 1 => kCFURLEnumeratorDescendRecursively, - 2 => kCFURLEnumeratorSkipInvisibles, - 4 => kCFURLEnumeratorGenerateFileReferenceURLs, - 8 => kCFURLEnumeratorSkipPackageContents, - 16 => kCFURLEnumeratorIncludeDirectoriesPreOrder, - 32 => kCFURLEnumeratorIncludeDirectoriesPostOrder, - 64 => kCFURLEnumeratorGenerateRelativePathURLs, - _ => throw ArgumentError( - 'Unknown value for CFURLEnumeratorOptions: $value'), - }; + 0 => kCFURLEnumeratorDefaultBehavior, + 1 => kCFURLEnumeratorDescendRecursively, + 2 => kCFURLEnumeratorSkipInvisibles, + 4 => kCFURLEnumeratorGenerateFileReferenceURLs, + 8 => kCFURLEnumeratorSkipPackageContents, + 16 => kCFURLEnumeratorIncludeDirectoriesPreOrder, + 32 => kCFURLEnumeratorIncludeDirectoriesPostOrder, + 64 => kCFURLEnumeratorGenerateRelativePathURLs, + _ => throw ArgumentError( + 'Unknown value for CFURLEnumeratorOptions: $value', + ), + }; } enum CFURLEnumeratorResult { @@ -53252,13 +57097,12 @@ enum CFURLEnumeratorResult { const CFURLEnumeratorResult(this.value); static CFURLEnumeratorResult fromValue(int value) => switch (value) { - 1 => kCFURLEnumeratorSuccess, - 2 => kCFURLEnumeratorEnd, - 3 => kCFURLEnumeratorError, - 4 => kCFURLEnumeratorDirectoryPostOrderSuccess, - _ => throw ArgumentError( - 'Unknown value for CFURLEnumeratorResult: $value'), - }; + 1 => kCFURLEnumeratorSuccess, + 2 => kCFURLEnumeratorEnd, + 3 => kCFURLEnumeratorError, + 4 => kCFURLEnumeratorDirectoryPostOrderSuccess, + _ => throw ArgumentError('Unknown value for CFURLEnumeratorResult: $value'), + }; } final class guid_t extends ffi.Union { @@ -53412,22 +57256,22 @@ enum acl_perm_t { const acl_perm_t(this.value); static acl_perm_t fromValue(int value) => switch (value) { - 2 => ACL_READ_DATA, - 4 => ACL_WRITE_DATA, - 8 => ACL_EXECUTE, - 16 => ACL_DELETE, - 32 => ACL_APPEND_DATA, - 64 => ACL_DELETE_CHILD, - 128 => ACL_READ_ATTRIBUTES, - 256 => ACL_WRITE_ATTRIBUTES, - 512 => ACL_READ_EXTATTRIBUTES, - 1024 => ACL_WRITE_EXTATTRIBUTES, - 2048 => ACL_READ_SECURITY, - 4096 => ACL_WRITE_SECURITY, - 8192 => ACL_CHANGE_OWNER, - 1048576 => ACL_SYNCHRONIZE, - _ => throw ArgumentError('Unknown value for acl_perm_t: $value'), - }; + 2 => ACL_READ_DATA, + 4 => ACL_WRITE_DATA, + 8 => ACL_EXECUTE, + 16 => ACL_DELETE, + 32 => ACL_APPEND_DATA, + 64 => ACL_DELETE_CHILD, + 128 => ACL_READ_ATTRIBUTES, + 256 => ACL_WRITE_ATTRIBUTES, + 512 => ACL_READ_EXTATTRIBUTES, + 1024 => ACL_WRITE_EXTATTRIBUTES, + 2048 => ACL_READ_SECURITY, + 4096 => ACL_WRITE_SECURITY, + 8192 => ACL_CHANGE_OWNER, + 1048576 => ACL_SYNCHRONIZE, + _ => throw ArgumentError('Unknown value for acl_perm_t: $value'), + }; @override String toString() { @@ -53452,11 +57296,11 @@ enum acl_tag_t { const acl_tag_t(this.value); static acl_tag_t fromValue(int value) => switch (value) { - 0 => ACL_UNDEFINED_TAG, - 1 => ACL_EXTENDED_ALLOW, - 2 => ACL_EXTENDED_DENY, - _ => throw ArgumentError('Unknown value for acl_tag_t: $value'), - }; + 0 => ACL_UNDEFINED_TAG, + 1 => ACL_EXTENDED_ALLOW, + 2 => ACL_EXTENDED_DENY, + _ => throw ArgumentError('Unknown value for acl_tag_t: $value'), + }; } enum acl_type_t { @@ -53472,15 +57316,15 @@ enum acl_type_t { const acl_type_t(this.value); static acl_type_t fromValue(int value) => switch (value) { - 256 => ACL_TYPE_EXTENDED, - 0 => ACL_TYPE_ACCESS, - 1 => ACL_TYPE_DEFAULT, - 2 => ACL_TYPE_AFS, - 3 => ACL_TYPE_CODA, - 4 => ACL_TYPE_NTFS, - 5 => ACL_TYPE_NWFS, - _ => throw ArgumentError('Unknown value for acl_type_t: $value'), - }; + 256 => ACL_TYPE_EXTENDED, + 0 => ACL_TYPE_ACCESS, + 1 => ACL_TYPE_DEFAULT, + 2 => ACL_TYPE_AFS, + 3 => ACL_TYPE_CODA, + 4 => ACL_TYPE_NTFS, + 5 => ACL_TYPE_NWFS, + _ => throw ArgumentError('Unknown value for acl_type_t: $value'), + }; } enum acl_flag_t { @@ -53496,15 +57340,15 @@ enum acl_flag_t { const acl_flag_t(this.value); static acl_flag_t fromValue(int value) => switch (value) { - 1 => ACL_FLAG_DEFER_INHERIT, - 131072 => ACL_FLAG_NO_INHERIT, - 16 => ACL_ENTRY_INHERITED, - 32 => ACL_ENTRY_FILE_INHERIT, - 64 => ACL_ENTRY_DIRECTORY_INHERIT, - 128 => ACL_ENTRY_LIMIT_INHERIT, - 256 => ACL_ENTRY_ONLY_INHERIT, - _ => throw ArgumentError('Unknown value for acl_flag_t: $value'), - }; + 1 => ACL_FLAG_DEFER_INHERIT, + 131072 => ACL_FLAG_NO_INHERIT, + 16 => ACL_ENTRY_INHERITED, + 32 => ACL_ENTRY_FILE_INHERIT, + 64 => ACL_ENTRY_DIRECTORY_INHERIT, + 128 => ACL_ENTRY_LIMIT_INHERIT, + 256 => ACL_ENTRY_ONLY_INHERIT, + _ => throw ArgumentError('Unknown value for acl_flag_t: $value'), + }; } final class _acl extends ffi.Opaque {} @@ -53537,15 +57381,16 @@ enum CFFileSecurityClearOptions { const CFFileSecurityClearOptions(this.value); static CFFileSecurityClearOptions fromValue(int value) => switch (value) { - 1 => kCFFileSecurityClearOwner, - 2 => kCFFileSecurityClearGroup, - 4 => kCFFileSecurityClearMode, - 8 => kCFFileSecurityClearOwnerUUID, - 16 => kCFFileSecurityClearGroupUUID, - 32 => kCFFileSecurityClearAccessControlList, - _ => throw ArgumentError( - 'Unknown value for CFFileSecurityClearOptions: $value'), - }; + 1 => kCFFileSecurityClearOwner, + 2 => kCFFileSecurityClearGroup, + 4 => kCFFileSecurityClearMode, + 8 => kCFFileSecurityClearOwnerUUID, + 16 => kCFFileSecurityClearGroupUUID, + 32 => kCFFileSecurityClearAccessControlList, + _ => throw ArgumentError( + 'Unknown value for CFFileSecurityClearOptions: $value', + ), + }; } final class __CFStringTokenizer extends ffi.Opaque {} @@ -53565,16 +57410,17 @@ enum CFStringTokenizerTokenType { const CFStringTokenizerTokenType(this.value); static CFStringTokenizerTokenType fromValue(int value) => switch (value) { - 0 => kCFStringTokenizerTokenNone, - 1 => kCFStringTokenizerTokenNormal, - 2 => kCFStringTokenizerTokenHasSubTokensMask, - 4 => kCFStringTokenizerTokenHasDerivedSubTokensMask, - 8 => kCFStringTokenizerTokenHasHasNumbersMask, - 16 => kCFStringTokenizerTokenHasNonLettersMask, - 32 => kCFStringTokenizerTokenIsCJWordMask, - _ => throw ArgumentError( - 'Unknown value for CFStringTokenizerTokenType: $value'), - }; + 0 => kCFStringTokenizerTokenNone, + 1 => kCFStringTokenizerTokenNormal, + 2 => kCFStringTokenizerTokenHasSubTokensMask, + 4 => kCFStringTokenizerTokenHasDerivedSubTokensMask, + 8 => kCFStringTokenizerTokenHasHasNumbersMask, + 16 => kCFStringTokenizerTokenHasNonLettersMask, + 32 => kCFStringTokenizerTokenIsCJWordMask, + _ => throw ArgumentError( + 'Unknown value for CFStringTokenizerTokenType: $value', + ), + }; } typedef CFFileDescriptorNativeDescriptor = ffi.Int; @@ -53583,16 +57429,20 @@ typedef DartCFFileDescriptorNativeDescriptor = int; final class __CFFileDescriptor extends ffi.Opaque {} typedef CFFileDescriptorRef = ffi.Pointer<__CFFileDescriptor>; -typedef CFFileDescriptorCallBackFunction = ffi.Void Function( - CFFileDescriptorRef f, - CFOptionFlags callBackTypes, - ffi.Pointer info); -typedef DartCFFileDescriptorCallBackFunction = void Function( - CFFileDescriptorRef f, - DartCFOptionFlags callBackTypes, - ffi.Pointer info); -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, + ); +typedef CFFileDescriptorCallBack = + ffi.Pointer>; final class CFFileDescriptorContext extends ffi.Struct { @CFIndex() @@ -53601,27 +57451,38 @@ final class CFFileDescriptorContext extends ffi.Struct { external ffi.Pointer info; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info)>> retain; + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; external ffi.Pointer< - ffi.NativeFunction info)>> - release; + ffi.NativeFunction info)> + > + release; external ffi.Pointer< - ffi.NativeFunction info)>> - copyDescription; + ffi.NativeFunction info)> + > + copyDescription; } final class __CFUserNotification extends ffi.Opaque {} typedef CFUserNotificationRef = ffi.Pointer<__CFUserNotification>; -typedef CFUserNotificationCallBackFunction = ffi.Void Function( - CFUserNotificationRef userNotification, CFOptionFlags responseFlags); -typedef DartCFUserNotificationCallBackFunction = void Function( - CFUserNotificationRef userNotification, DartCFOptionFlags responseFlags); -typedef CFUserNotificationCallBack - = ffi.Pointer>; +typedef CFUserNotificationCallBackFunction = + ffi.Void Function( + CFUserNotificationRef userNotification, + CFOptionFlags responseFlags, + ); +typedef DartCFUserNotificationCallBackFunction = + void Function( + CFUserNotificationRef userNotification, + DartCFOptionFlags responseFlags, + ); +typedef CFUserNotificationCallBack = + ffi.Pointer>; final class __CFXMLNode extends ffi.Opaque {} @@ -53649,23 +57510,23 @@ enum CFXMLNodeTypeCode { const CFXMLNodeTypeCode(this.value); static CFXMLNodeTypeCode fromValue(int value) => switch (value) { - 1 => kCFXMLNodeTypeDocument, - 2 => kCFXMLNodeTypeElement, - 3 => kCFXMLNodeTypeAttribute, - 4 => kCFXMLNodeTypeProcessingInstruction, - 5 => kCFXMLNodeTypeComment, - 6 => kCFXMLNodeTypeText, - 7 => kCFXMLNodeTypeCDATASection, - 8 => kCFXMLNodeTypeDocumentFragment, - 9 => kCFXMLNodeTypeEntity, - 10 => kCFXMLNodeTypeEntityReference, - 11 => kCFXMLNodeTypeDocumentType, - 12 => kCFXMLNodeTypeWhitespace, - 13 => kCFXMLNodeTypeNotation, - 14 => kCFXMLNodeTypeElementTypeDeclaration, - 15 => kCFXMLNodeTypeAttributeListDeclaration, - _ => throw ArgumentError('Unknown value for CFXMLNodeTypeCode: $value'), - }; + 1 => kCFXMLNodeTypeDocument, + 2 => kCFXMLNodeTypeElement, + 3 => kCFXMLNodeTypeAttribute, + 4 => kCFXMLNodeTypeProcessingInstruction, + 5 => kCFXMLNodeTypeComment, + 6 => kCFXMLNodeTypeText, + 7 => kCFXMLNodeTypeCDATASection, + 8 => kCFXMLNodeTypeDocumentFragment, + 9 => kCFXMLNodeTypeEntity, + 10 => kCFXMLNodeTypeEntityReference, + 11 => kCFXMLNodeTypeDocumentType, + 12 => kCFXMLNodeTypeWhitespace, + 13 => kCFXMLNodeTypeNotation, + 14 => kCFXMLNodeTypeElementTypeDeclaration, + 15 => kCFXMLNodeTypeAttributeListDeclaration, + _ => throw ArgumentError('Unknown value for CFXMLNodeTypeCode: $value'), + }; } final class CFXMLElementInfo extends ffi.Struct { @@ -53735,14 +57596,13 @@ enum CFXMLEntityTypeCode { const CFXMLEntityTypeCode(this.value); static CFXMLEntityTypeCode fromValue(int value) => switch (value) { - 0 => kCFXMLEntityTypeParameter, - 1 => kCFXMLEntityTypeParsedInternal, - 2 => kCFXMLEntityTypeParsedExternal, - 3 => kCFXMLEntityTypeUnparsed, - 4 => kCFXMLEntityTypeCharacter, - _ => - throw ArgumentError('Unknown value for CFXMLEntityTypeCode: $value'), - }; + 0 => kCFXMLEntityTypeParameter, + 1 => kCFXMLEntityTypeParsedInternal, + 2 => kCFXMLEntityTypeParsedExternal, + 3 => kCFXMLEntityTypeUnparsed, + 4 => kCFXMLEntityTypeCharacter, + _ => throw ArgumentError('Unknown value for CFXMLEntityTypeCode: $value'), + }; } final class CFXMLEntityInfo extends ffi.Struct { @@ -53795,70 +57655,92 @@ enum CFXMLParserStatusCode { const CFXMLParserStatusCode(this.value); static CFXMLParserStatusCode fromValue(int value) => switch (value) { - -2 => kCFXMLStatusParseNotBegun, - -1 => kCFXMLStatusParseInProgress, - 0 => kCFXMLStatusParseSuccessful, - 1 => kCFXMLErrorUnexpectedEOF, - 2 => kCFXMLErrorUnknownEncoding, - 3 => kCFXMLErrorEncodingConversionFailure, - 4 => kCFXMLErrorMalformedProcessingInstruction, - 5 => kCFXMLErrorMalformedDTD, - 6 => kCFXMLErrorMalformedName, - 7 => kCFXMLErrorMalformedCDSect, - 8 => kCFXMLErrorMalformedCloseTag, - 9 => kCFXMLErrorMalformedStartTag, - 10 => kCFXMLErrorMalformedDocument, - 11 => kCFXMLErrorElementlessDocument, - 12 => kCFXMLErrorMalformedComment, - 13 => kCFXMLErrorMalformedCharacterReference, - 14 => kCFXMLErrorMalformedParsedCharacterData, - 15 => kCFXMLErrorNoData, - _ => throw ArgumentError( - 'Unknown value for CFXMLParserStatusCode: $value'), - }; -} - -typedef CFXMLParserCreateXMLStructureCallBackFunction - = ffi.Pointer Function(CFXMLParserRef parser, - CFXMLNodeRef nodeDesc, ffi.Pointer info); -typedef CFXMLParserCreateXMLStructureCallBack = 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 CFXMLParserAddChildCallBack - = 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 CFXMLParserEndXMLStructureCallBack = ffi - .Pointer>; -typedef CFXMLParserResolveExternalEntityCallBackFunction = CFDataRef Function( - CFXMLParserRef parser, - ffi.Pointer extID, - ffi.Pointer info); -typedef CFXMLParserResolveExternalEntityCallBack = ffi.Pointer< - ffi.NativeFunction>; -typedef CFXMLParserHandleErrorCallBackFunction = Boolean Function( - CFXMLParserRef parser, CFIndex error, ffi.Pointer info); -typedef DartCFXMLParserHandleErrorCallBackFunction = DartBoolean Function( - CFXMLParserRef parser, - CFXMLParserStatusCode error, - ffi.Pointer info); -typedef CFXMLParserHandleErrorCallBack - = ffi.Pointer>; + -2 => kCFXMLStatusParseNotBegun, + -1 => kCFXMLStatusParseInProgress, + 0 => kCFXMLStatusParseSuccessful, + 1 => kCFXMLErrorUnexpectedEOF, + 2 => kCFXMLErrorUnknownEncoding, + 3 => kCFXMLErrorEncodingConversionFailure, + 4 => kCFXMLErrorMalformedProcessingInstruction, + 5 => kCFXMLErrorMalformedDTD, + 6 => kCFXMLErrorMalformedName, + 7 => kCFXMLErrorMalformedCDSect, + 8 => kCFXMLErrorMalformedCloseTag, + 9 => kCFXMLErrorMalformedStartTag, + 10 => kCFXMLErrorMalformedDocument, + 11 => kCFXMLErrorElementlessDocument, + 12 => kCFXMLErrorMalformedComment, + 13 => kCFXMLErrorMalformedCharacterReference, + 14 => kCFXMLErrorMalformedParsedCharacterData, + 15 => kCFXMLErrorNoData, + _ => throw ArgumentError('Unknown value for CFXMLParserStatusCode: $value'), + }; +} + +typedef CFXMLParserCreateXMLStructureCallBackFunction = + ffi.Pointer Function( + CFXMLParserRef parser, + CFXMLNodeRef nodeDesc, + ffi.Pointer info, + ); +typedef CFXMLParserCreateXMLStructureCallBack = + ffi.Pointer< + ffi.NativeFunction + >; +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 CFXMLParserAddChildCallBack = + 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 CFXMLParserEndXMLStructureCallBack = + ffi.Pointer>; +typedef CFXMLParserResolveExternalEntityCallBackFunction = + CFDataRef Function( + CFXMLParserRef parser, + ffi.Pointer extID, + ffi.Pointer info, + ); +typedef CFXMLParserResolveExternalEntityCallBack = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CFXMLParserHandleErrorCallBackFunction = + Boolean Function( + CFXMLParserRef parser, + CFIndex error, + ffi.Pointer info, + ); +typedef DartCFXMLParserHandleErrorCallBackFunction = + DartBoolean Function( + CFXMLParserRef parser, + CFXMLParserStatusCode error, + ffi.Pointer info, + ); +typedef CFXMLParserHandleErrorCallBack = + ffi.Pointer>; final class CFXMLParserCallBacks extends ffi.Struct { @CFIndex() @@ -53875,20 +57757,20 @@ final class CFXMLParserCallBacks extends ffi.Struct { external CFXMLParserHandleErrorCallBack handleError; } -typedef CFXMLParserRetainCallBackFunction = ffi.Pointer Function( - ffi.Pointer info); -typedef CFXMLParserRetainCallBack - = ffi.Pointer>; -typedef CFXMLParserReleaseCallBackFunction = ffi.Void Function( - ffi.Pointer info); -typedef DartCFXMLParserReleaseCallBackFunction = void Function( - ffi.Pointer info); -typedef CFXMLParserReleaseCallBack - = ffi.Pointer>; -typedef CFXMLParserCopyDescriptionCallBackFunction = CFStringRef Function( - ffi.Pointer info); -typedef CFXMLParserCopyDescriptionCallBack = ffi - .Pointer>; +typedef CFXMLParserRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFXMLParserRetainCallBack = + ffi.Pointer>; +typedef CFXMLParserReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFXMLParserReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFXMLParserReleaseCallBack = + ffi.Pointer>; +typedef CFXMLParserCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer info); +typedef CFXMLParserCopyDescriptionCallBack = + ffi.Pointer>; final class CFXMLParserContext extends ffi.Struct { @CFIndex() @@ -53960,13 +57842,16 @@ final class SecAsn1Template_struct extends ffi.Struct { } typedef SecAsn1Template = SecAsn1Template_struct; -typedef SecAsn1TemplateChooser = ffi.NativeFunction< - ffi.Pointer Function( +typedef SecAsn1TemplateChooser = + ffi.NativeFunction< + ffi.Pointer Function( ffi.Pointer arg, Boolean enc, ffi.Pointer buf, ffi.Size len, - ffi.Pointer dest)>; + ffi.Pointer dest, + ) + >; typedef SecAsn1TemplateChooserPtr = ffi.Pointer; typedef CSSM_HANDLE = CSSM_INTPTR; typedef CSSM_HANDLE_PTR = ffi.Pointer; @@ -54035,20 +57920,24 @@ typedef CSSM_SUBSERVICE_UID = cssm_subservice_uid; typedef CSSM_SUBSERVICE_UID_PTR = ffi.Pointer; typedef CSSM_MODULE_EVENT = uint32; typedef CSSM_MODULE_EVENT_PTR = ffi.Pointer; -typedef CSSM_API_ModuleEventHandlerFunction = CSSM_RETURN Function( - ffi.Pointer ModuleGuid, - ffi.Pointer AppNotifyCallbackCtx, - uint32 SubserviceId, - CSSM_SERVICE_TYPE ServiceType, - CSSM_MODULE_EVENT EventType); -typedef DartCSSM_API_ModuleEventHandlerFunction = Dartsint32 Function( - ffi.Pointer ModuleGuid, - ffi.Pointer AppNotifyCallbackCtx, - Dartuint32 SubserviceId, - Dartuint32 ServiceType, - Dartuint32 EventType); -typedef CSSM_API_ModuleEventHandler - = ffi.Pointer>; +typedef CSSM_API_ModuleEventHandlerFunction = + CSSM_RETURN Function( + ffi.Pointer ModuleGuid, + ffi.Pointer AppNotifyCallbackCtx, + uint32 SubserviceId, + CSSM_SERVICE_TYPE ServiceType, + CSSM_MODULE_EVENT EventType, + ); +typedef DartCSSM_API_ModuleEventHandlerFunction = + Dartsint32 Function( + ffi.Pointer ModuleGuid, + ffi.Pointer AppNotifyCallbackCtx, + Dartuint32 SubserviceId, + Dartuint32 ServiceType, + Dartuint32 EventType, + ); +typedef CSSM_API_ModuleEventHandler = + ffi.Pointer>; typedef CSSM_ATTACH_FLAGS = uint32; typedef CSSM_PRIVILEGE = uint64; typedef CSSM_USEE_TAG = CSSM_PRIVILEGE; @@ -54064,10 +57953,13 @@ final class cssm_net_address extends ffi.Struct { typedef CSSM_NET_ADDRESS = cssm_net_address; typedef CSSM_NET_ADDRESS_PTR = ffi.Pointer; typedef CSSM_NET_PROTOCOL = uint32; -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_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_CALLBACK = ffi.Pointer>; final class cssm_crypto_data extends ffi.Struct { @@ -54163,29 +58055,53 @@ final class cssm_samplegroup extends ffi.Struct { typedef CSSM_SAMPLEGROUP = cssm_samplegroup; typedef CSSM_SAMPLEGROUP_PTR = 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_MALLOCFunction = + ffi.Pointer Function( + CSSM_SIZE size, + ffi.Pointer allocref, + ); +typedef DartCSSM_MALLOCFunction = + ffi.Pointer Function( + DartCSSM_SIZE size, + ffi.Pointer allocref, + ); typedef CSSM_MALLOC = 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_FREEFunction = + ffi.Void Function( + ffi.Pointer memblock, + ffi.Pointer allocref, + ); +typedef DartCSSM_FREEFunction = + void Function( + ffi.Pointer memblock, + ffi.Pointer allocref, + ); typedef CSSM_FREE = 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_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_REALLOC = ffi.Pointer>; -typedef CSSM_CALLOCFunction = ffi.Pointer Function( - uint32 num, CSSM_SIZE size, ffi.Pointer allocref); -typedef DartCSSM_CALLOCFunction = ffi.Pointer Function( - Dartuint32 num, DartCSSM_SIZE size, ffi.Pointer allocref); +typedef CSSM_CALLOCFunction = + ffi.Pointer Function( + uint32 num, + CSSM_SIZE size, + ffi.Pointer allocref, + ); +typedef DartCSSM_CALLOCFunction = + ffi.Pointer Function( + Dartuint32 num, + DartCSSM_SIZE size, + ffi.Pointer allocref, + ); typedef CSSM_CALLOC = ffi.Pointer>; final class cssm_memory_funcs extends ffi.Struct { @@ -54204,18 +58120,22 @@ typedef CSSM_MEMORY_FUNCS = cssm_memory_funcs; typedef CSSM_MEMORY_FUNCS_PTR = ffi.Pointer; typedef CSSM_API_MEMORY_FUNCS = CSSM_MEMORY_FUNCS; typedef CSSM_API_MEMORY_FUNCS_PTR = 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_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_CHALLENGE_CALLBACK = + ffi.Pointer>; typedef CSSM_CERT_TYPE = uint32; typedef CSSM_CERT_TYPE_PTR = ffi.Pointer; typedef CSSM_CERT_ENCODING = uint32; @@ -54367,18 +58287,22 @@ final class cssm_acl_owner_prototype extends ffi.Struct { typedef CSSM_ACL_OWNER_PROTOTYPE = cssm_acl_owner_prototype; typedef CSSM_ACL_OWNER_PROTOTYPE_PTR = ffi.Pointer; -typedef CSSM_ACL_SUBJECT_CALLBACKFunction = CSSM_RETURN Function( - ffi.Pointer SubjectRequest, - CSSM_LIST_PTR SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs); -typedef DartCSSM_ACL_SUBJECT_CALLBACKFunction = Dartsint32 Function( - ffi.Pointer SubjectRequest, - CSSM_LIST_PTR SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs); -typedef CSSM_ACL_SUBJECT_CALLBACK - = ffi.Pointer>; +typedef CSSM_ACL_SUBJECT_CALLBACKFunction = + CSSM_RETURN Function( + ffi.Pointer SubjectRequest, + CSSM_LIST_PTR SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs, + ); +typedef DartCSSM_ACL_SUBJECT_CALLBACKFunction = + Dartsint32 Function( + ffi.Pointer SubjectRequest, + CSSM_LIST_PTR SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs, + ); +typedef CSSM_ACL_SUBJECT_CALLBACK = + ffi.Pointer>; final class cssm_acl_entry_input extends ffi.Struct { external CSSM_ACL_ENTRY_PROTOTYPE Prototype; @@ -54398,8 +58322,8 @@ final class cssm_resource_control_context extends ffi.Struct { } typedef CSSM_RESOURCE_CONTROL_CONTEXT = cssm_resource_control_context; -typedef CSSM_RESOURCE_CONTROL_CONTEXT_PTR - = ffi.Pointer; +typedef CSSM_RESOURCE_CONTROL_CONTEXT_PTR = + ffi.Pointer; typedef CSSM_ACL_HANDLE = CSSM_HANDLE; final class cssm_acl_entry_info extends ffi.Struct { @@ -54427,8 +58351,8 @@ typedef CSSM_ACL_EDIT = cssm_acl_edit; typedef CSSM_ACL_EDIT_PTR = ffi.Pointer; typedef CSSM_PROC_ADDRFunction = ffi.Void Function(); typedef DartCSSM_PROC_ADDRFunction = void Function(); -typedef CSSM_PROC_ADDR - = ffi.Pointer>; +typedef CSSM_PROC_ADDR = + ffi.Pointer>; typedef CSSM_PROC_ADDR_PTR = ffi.Pointer; final class cssm_func_name_addr extends ffi.Struct { @@ -54699,8 +58623,8 @@ final class cssm_csp_operational_statistics extends ffi.Struct { } typedef CSSM_CSP_OPERATIONAL_STATISTICS = cssm_csp_operational_statistics; -typedef CSSM_CSP_OPERATIONAL_STATISTICS_PTR - = ffi.Pointer; +typedef CSSM_CSP_OPERATIONAL_STATISTICS_PTR = + ffi.Pointer; final class cssm_pkcs5_pbkdf1_params extends ffi.Struct { external SecAsn1Item Passphrase; @@ -54741,16 +58665,22 @@ typedef CSSM_TP_AUTHORITY_ID = cssm_tp_authority_id; typedef CSSM_TP_AUTHORITY_ID_PTR = ffi.Pointer; typedef CSSM_TP_AUTHORITY_REQUEST_TYPE = uint32; typedef CSSM_TP_AUTHORITY_REQUEST_TYPE_PTR = 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_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_TP_VERIFICATION_RESULTS_CALLBACK = + ffi.Pointer< + ffi.NativeFunction + >; typedef CSSM_OID_PTR = ffi.Pointer; final class cssm_field extends ffi.Struct { @@ -54809,8 +58739,8 @@ final class cssm_tp_callerauth_context extends ffi.Struct { } typedef CSSM_TP_CALLERAUTH_CONTEXT = cssm_tp_callerauth_context; -typedef CSSM_TP_CALLERAUTH_CONTEXT_PTR - = ffi.Pointer; +typedef CSSM_TP_CALLERAUTH_CONTEXT_PTR = + ffi.Pointer; typedef CSSM_CRL_PARSE_FORMAT = uint32; typedef CSSM_CRL_PARSE_FORMAT_PTR = ffi.Pointer; typedef CSSM_CRL_TYPE = uint32; @@ -54927,8 +58857,8 @@ final class cssm_tp_verify_context_result extends ffi.Struct { } typedef CSSM_TP_VERIFY_CONTEXT_RESULT = cssm_tp_verify_context_result; -typedef CSSM_TP_VERIFY_CONTEXT_RESULT_PTR - = ffi.Pointer; +typedef CSSM_TP_VERIFY_CONTEXT_RESULT_PTR = + ffi.Pointer; final class cssm_tp_request_set extends ffi.Struct { @uint32() @@ -55088,8 +59018,8 @@ final class cssm_tp_certnotarize_input extends ffi.Struct { } typedef CSSM_TP_CERTNOTARIZE_INPUT = cssm_tp_certnotarize_input; -typedef CSSM_TP_CERTNOTARIZE_INPUT_PTR - = ffi.Pointer; +typedef CSSM_TP_CERTNOTARIZE_INPUT_PTR = + ffi.Pointer; typedef CSSM_TP_CERTNOTARIZE_STATUS = uint32; final class cssm_tp_certnotarize_output extends ffi.Struct { @@ -55103,8 +59033,8 @@ final class cssm_tp_certnotarize_output extends ffi.Struct { } typedef CSSM_TP_CERTNOTARIZE_OUTPUT = cssm_tp_certnotarize_output; -typedef CSSM_TP_CERTNOTARIZE_OUTPUT_PTR - = ffi.Pointer; +typedef CSSM_TP_CERTNOTARIZE_OUTPUT_PTR = + ffi.Pointer; final class cssm_tp_certreclaim_input extends ffi.Struct { @CSSM_CL_HANDLE() @@ -55133,8 +59063,8 @@ final class cssm_tp_certreclaim_output extends ffi.Struct { } typedef CSSM_TP_CERTRECLAIM_OUTPUT = cssm_tp_certreclaim_output; -typedef CSSM_TP_CERTRECLAIM_OUTPUT_PTR - = ffi.Pointer; +typedef CSSM_TP_CERTRECLAIM_OUTPUT_PTR = + ffi.Pointer; final class cssm_tp_crlissue_input extends ffi.Struct { @CSSM_CL_HANDLE() @@ -55240,8 +59170,8 @@ final class cssm_db_record_attribute_info extends ffi.Struct { } typedef CSSM_DB_RECORD_ATTRIBUTE_INFO = cssm_db_record_attribute_info; -typedef CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR - = ffi.Pointer; +typedef CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR = + ffi.Pointer; final class cssm_db_record_attribute_data extends ffi.Struct { @CSSM_DB_RECORDTYPE() @@ -55257,8 +59187,8 @@ final class cssm_db_record_attribute_data extends ffi.Struct { } typedef CSSM_DB_RECORD_ATTRIBUTE_DATA = cssm_db_record_attribute_data; -typedef CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR - = ffi.Pointer; +typedef CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR = + ffi.Pointer; final class cssm_db_parsing_module_info extends ffi.Struct { @CSSM_DB_RECORDTYPE() @@ -55268,8 +59198,8 @@ final class cssm_db_parsing_module_info extends ffi.Struct { } typedef CSSM_DB_PARSING_MODULE_INFO = cssm_db_parsing_module_info; -typedef CSSM_DB_PARSING_MODULE_INFO_PTR - = ffi.Pointer; +typedef CSSM_DB_PARSING_MODULE_INFO_PTR = + ffi.Pointer; typedef CSSM_DB_INDEX_TYPE = uint32; typedef CSSM_DB_INDEXED_DATA_LOCATION = uint32; @@ -55417,8 +59347,8 @@ final class cssm_db_schema_attribute_info extends ffi.Struct { } typedef CSSM_DB_SCHEMA_ATTRIBUTE_INFO = cssm_db_schema_attribute_info; -typedef CSSM_DB_SCHEMA_ATTRIBUTE_INFO_PTR - = ffi.Pointer; +typedef CSSM_DB_SCHEMA_ATTRIBUTE_INFO_PTR = + ffi.Pointer; final class cssm_db_schema_index_info extends ffi.Struct { @uint32() @@ -55504,8 +59434,8 @@ final class cssm_x509ext_basicConstraints extends ffi.Struct { } typedef CSSM_X509EXT_BASICCONSTRAINTS = cssm_x509ext_basicConstraints; -typedef CSSM_X509EXT_BASICCONSTRAINTS_PTR - = ffi.Pointer; +typedef CSSM_X509EXT_BASICCONSTRAINTS_PTR = + ffi.Pointer; enum extension_data_format { CSSM_X509_DATAFORMAT_ENCODED(0), @@ -55516,12 +59446,11 @@ enum extension_data_format { const extension_data_format(this.value); static extension_data_format fromValue(int value) => switch (value) { - 0 => CSSM_X509_DATAFORMAT_ENCODED, - 1 => CSSM_X509_DATAFORMAT_PARSED, - 2 => CSSM_X509_DATAFORMAT_PAIR, - _ => throw ArgumentError( - 'Unknown value for extension_data_format: $value'), - }; + 0 => CSSM_X509_DATAFORMAT_ENCODED, + 1 => CSSM_X509_DATAFORMAT_PARSED, + 2 => CSSM_X509_DATAFORMAT_PAIR, + _ => throw ArgumentError('Unknown value for extension_data_format: $value'), + }; } final class cssm_x509_extensionTagAndValue extends ffi.Struct { @@ -55532,8 +59461,8 @@ final class cssm_x509_extensionTagAndValue extends ffi.Struct { } typedef CSSM_X509EXT_TAGandVALUE = cssm_x509_extensionTagAndValue; -typedef CSSM_X509EXT_TAGandVALUE_PTR - = ffi.Pointer; +typedef CSSM_X509EXT_TAGandVALUE_PTR = + ffi.Pointer; final class cssm_x509ext_pair extends ffi.Struct { external CSSM_X509EXT_TAGandVALUE tagAndValue; @@ -55623,8 +59552,8 @@ final class cssm_x509_signed_certificate extends ffi.Struct { } typedef CSSM_X509_SIGNED_CERTIFICATE = cssm_x509_signed_certificate; -typedef CSSM_X509_SIGNED_CERTIFICATE_PTR - = ffi.Pointer; +typedef CSSM_X509_SIGNED_CERTIFICATE_PTR = + ffi.Pointer; final class cssm_x509ext_policyQualifierInfo extends ffi.Struct { external SecAsn1Oid policyQualifierId; @@ -55633,8 +59562,8 @@ final class cssm_x509ext_policyQualifierInfo extends ffi.Struct { } typedef CSSM_X509EXT_POLICYQUALIFIERINFO = cssm_x509ext_policyQualifierInfo; -typedef CSSM_X509EXT_POLICYQUALIFIERINFO_PTR - = ffi.Pointer; +typedef CSSM_X509EXT_POLICYQUALIFIERINFO_PTR = + ffi.Pointer; final class cssm_x509ext_policyQualifiers extends ffi.Struct { @uint32() @@ -55644,8 +59573,8 @@ final class cssm_x509ext_policyQualifiers extends ffi.Struct { } typedef CSSM_X509EXT_POLICYQUALIFIERS = cssm_x509ext_policyQualifiers; -typedef CSSM_X509EXT_POLICYQUALIFIERS_PTR - = ffi.Pointer; +typedef CSSM_X509EXT_POLICYQUALIFIERS_PTR = + ffi.Pointer; final class cssm_x509ext_policyInfo extends ffi.Struct { external SecAsn1Oid policyIdentifier; @@ -55665,8 +59594,8 @@ final class cssm_x509_revoked_cert_entry extends ffi.Struct { } typedef CSSM_X509_REVOKED_CERT_ENTRY = cssm_x509_revoked_cert_entry; -typedef CSSM_X509_REVOKED_CERT_ENTRY_PTR - = ffi.Pointer; +typedef CSSM_X509_REVOKED_CERT_ENTRY_PTR = + ffi.Pointer; final class cssm_x509_revoked_cert_list extends ffi.Struct { @uint32() @@ -55676,8 +59605,8 @@ final class cssm_x509_revoked_cert_list extends ffi.Struct { } typedef CSSM_X509_REVOKED_CERT_LIST = cssm_x509_revoked_cert_list; -typedef CSSM_X509_REVOKED_CERT_LIST_PTR - = ffi.Pointer; +typedef CSSM_X509_REVOKED_CERT_LIST_PTR = + ffi.Pointer; final class cssm_x509_tbs_certlist extends ffi.Struct { external SecAsn1Item version; @@ -55722,18 +59651,17 @@ enum __CE_GeneralNameType { const __CE_GeneralNameType(this.value); static __CE_GeneralNameType fromValue(int value) => switch (value) { - 0 => GNT_OtherName, - 1 => GNT_RFC822Name, - 2 => GNT_DNSName, - 3 => GNT_X400Address, - 4 => GNT_DirectoryName, - 5 => GNT_EdiPartyName, - 6 => GNT_URI, - 7 => GNT_IPAddress, - 8 => GNT_RegisteredID, - _ => - throw ArgumentError('Unknown value for __CE_GeneralNameType: $value'), - }; + 0 => GNT_OtherName, + 1 => GNT_RFC822Name, + 2 => GNT_DNSName, + 3 => GNT_X400Address, + 4 => GNT_DirectoryName, + 5 => GNT_EdiPartyName, + 6 => GNT_URI, + 7 => GNT_IPAddress, + 8 => GNT_RegisteredID, + _ => throw ArgumentError('Unknown value for __CE_GeneralNameType: $value'), + }; } final class __CE_OtherName extends ffi.Struct { @@ -55854,7 +59782,8 @@ enum __CE_CrlDistributionPointNameType { 0 => CE_CDNT_FullName, 1 => CE_CDNT_NameRelativeToCrlIssuer, _ => throw ArgumentError( - 'Unknown value for __CE_CrlDistributionPointNameType: $value'), + 'Unknown value for __CE_CrlDistributionPointNameType: $value', + ), }; } @@ -55921,7 +59850,7 @@ final class __CE_SemanticsInformation extends ffi.Struct { external ffi.Pointer semanticsIdentifier; external ffi.Pointer - nameRegistrationAuthorities; + nameRegistrationAuthorities; } typedef CE_SemanticsInformation = __CE_SemanticsInformation; @@ -56070,29 +59999,29 @@ enum __CE_DataType { const __CE_DataType(this.value); static __CE_DataType fromValue(int value) => switch (value) { - 0 => DT_AuthorityKeyID, - 1 => DT_SubjectKeyID, - 2 => DT_KeyUsage, - 3 => DT_SubjectAltName, - 4 => DT_IssuerAltName, - 5 => DT_ExtendedKeyUsage, - 6 => DT_BasicConstraints, - 7 => DT_CertPolicies, - 8 => DT_NetscapeCertType, - 9 => DT_CrlNumber, - 10 => DT_DeltaCrl, - 11 => DT_CrlReason, - 12 => DT_CrlDistributionPoints, - 13 => DT_IssuingDistributionPoint, - 14 => DT_AuthorityInfoAccess, - 15 => DT_Other, - 16 => DT_QC_Statements, - 17 => DT_NameConstraints, - 18 => DT_PolicyMappings, - 19 => DT_PolicyConstraints, - 20 => DT_InhibitAnyPolicy, - _ => throw ArgumentError('Unknown value for __CE_DataType: $value'), - }; + 0 => DT_AuthorityKeyID, + 1 => DT_SubjectKeyID, + 2 => DT_KeyUsage, + 3 => DT_SubjectAltName, + 4 => DT_IssuerAltName, + 5 => DT_ExtendedKeyUsage, + 6 => DT_BasicConstraints, + 7 => DT_CertPolicies, + 8 => DT_NetscapeCertType, + 9 => DT_CrlNumber, + 10 => DT_DeltaCrl, + 11 => DT_CrlReason, + 12 => DT_CrlDistributionPoints, + 13 => DT_IssuingDistributionPoint, + 14 => DT_AuthorityInfoAccess, + 15 => DT_Other, + 16 => DT_QC_Statements, + 17 => DT_NameConstraints, + 18 => DT_PolicyMappings, + 19 => DT_PolicyConstraints, + 20 => DT_InhibitAnyPolicy, + _ => throw ArgumentError('Unknown value for __CE_DataType: $value'), + }; } final class CE_Data extends ffi.Union { @@ -56204,8 +60133,8 @@ final class cssm_appledl_open_parameters extends ffi.Struct { } typedef CSSM_APPLEDL_OPEN_PARAMETERS = cssm_appledl_open_parameters; -typedef CSSM_APPLEDL_OPEN_PARAMETERS_PTR - = ffi.Pointer; +typedef CSSM_APPLEDL_OPEN_PARAMETERS_PTR = + ffi.Pointer; final class cssm_applecspdl_db_settings_parameters extends ffi.Struct { @uint32() @@ -56215,29 +60144,29 @@ final class cssm_applecspdl_db_settings_parameters extends ffi.Struct { external int lockOnSleep; } -typedef CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS - = cssm_applecspdl_db_settings_parameters; -typedef CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS_PTR - = ffi.Pointer; +typedef CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS = + cssm_applecspdl_db_settings_parameters; +typedef CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS_PTR = + ffi.Pointer; final class cssm_applecspdl_db_is_locked_parameters extends ffi.Struct { @uint8() external int isLocked; } -typedef CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS - = cssm_applecspdl_db_is_locked_parameters; -typedef CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS_PTR - = ffi.Pointer; +typedef CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS = + cssm_applecspdl_db_is_locked_parameters; +typedef CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS_PTR = + ffi.Pointer; final class cssm_applecspdl_db_change_password_parameters extends ffi.Struct { external ffi.Pointer accessCredentials; } -typedef CSSM_APPLECSPDL_DB_CHANGE_PASSWORD_PARAMETERS - = cssm_applecspdl_db_change_password_parameters; -typedef CSSM_APPLECSPDL_DB_CHANGE_PASSWORD_PARAMETERS_PTR - = ffi.Pointer; +typedef CSSM_APPLECSPDL_DB_CHANGE_PASSWORD_PARAMETERS = + cssm_applecspdl_db_change_password_parameters; +typedef CSSM_APPLECSPDL_DB_CHANGE_PASSWORD_PARAMETERS_PTR = + ffi.Pointer; final class CSSM_APPLE_TP_NAME_OID extends ffi.Struct { external ffi.Pointer string; @@ -56394,70 +60323,92 @@ enum SecTrustResultType { const SecTrustResultType(this.value); static SecTrustResultType fromValue(int value) => switch (value) { - 0 => kSecTrustResultInvalid, - 1 => kSecTrustResultProceed, - 2 => kSecTrustResultConfirm, - 3 => kSecTrustResultDeny, - 4 => kSecTrustResultUnspecified, - 5 => kSecTrustResultRecoverableTrustFailure, - 6 => kSecTrustResultFatalTrustFailure, - 7 => kSecTrustResultOtherError, - _ => - throw ArgumentError('Unknown value for SecTrustResultType: $value'), - }; + 0 => kSecTrustResultInvalid, + 1 => kSecTrustResultProceed, + 2 => kSecTrustResultConfirm, + 3 => kSecTrustResultDeny, + 4 => kSecTrustResultUnspecified, + 5 => kSecTrustResultRecoverableTrustFailure, + 6 => kSecTrustResultFatalTrustFailure, + 7 => kSecTrustResultOtherError, + _ => throw ArgumentError('Unknown value for SecTrustResultType: $value'), + }; } final class __SecTrust extends ffi.Opaque {} typedef SecTrustRef = ffi.Pointer<__SecTrust>; void _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_fnPtrTrampoline( - ffi.Pointer block, SecTrustRef arg0, int arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(SecTrustRef arg0, ffi.Uint32 arg1)>>() - .asFunction()(arg0, arg1); + ffi.Pointer block, + SecTrustRef arg0, + int arg1, +) => block.ref.target + .cast< + ffi.NativeFunction + >() + .asFunction()(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_fnPtrCallable = +_ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, SecTrustRef, ffi.Uint32)>( - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + SecTrustRef, + ffi.Uint32, + ) + >(_ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureTrampoline( - ffi.Pointer block, SecTrustRef arg0, int arg1) => - (objc.getBlockClosure(block) as void Function(SecTrustRef, int))( - arg0, arg1); + ffi.Pointer block, + SecTrustRef arg0, + int arg1, +) => (objc.getBlockClosure(block) as void Function(SecTrustRef, int))( + arg0, + arg1, +); ffi.Pointer - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureCallable = +_ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, SecTrustRef, ffi.Uint32)>( - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + SecTrustRef, + ffi.Uint32, + ) + >(_ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_listenerTrampoline( - ffi.Pointer block, SecTrustRef arg0, int arg1) { + ffi.Pointer block, + SecTrustRef arg0, + int arg1, +) { (objc.getBlockClosure(block) as void Function(SecTrustRef, int))(arg0, arg1); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, SecTrustRef, ffi.Uint32) +> +_ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, SecTrustRef, ffi.Uint32)> - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_listenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, SecTrustRef, - ffi.Uint32)>.listener( - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_listenerTrampoline) + ffi.Pointer, + SecTrustRef, + ffi.Uint32, + ) + >.listener( + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_listenerTrampoline, + ) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - SecTrustRef arg0, - int arg1) { + ffi.Pointer block, + ffi.Pointer waiter, + SecTrustRef arg0, + int arg1, +) { try { (objc.getBlockClosure(block) as void Function(SecTrustRef, int))( - arg0, arg1); + arg0, + arg1, + ); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -56466,49 +60417,79 @@ void _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, SecTrustRef, ffi.Uint32)> - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, SecTrustRef, ffi.Uint32)>.isolateLocal( - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + SecTrustRef, + ffi.Uint32, + ) +> +_ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + SecTrustRef, + ffi.Uint32, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, SecTrustRef, ffi.Uint32)> - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + SecTrustRef, + ffi.Uint32, + ) +> +_ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, SecTrustRef, ffi.Uint32)>.listener( - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + SecTrustRef, + ffi.Uint32, + ) + >.listener( + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, ffi.Uint32)>`. abstract final class ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock, ffi.Uint32)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, - ffi.Uint32)>(pointer, retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, ffi.Uint32)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32)> fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock, ffi.Uint32)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock, ffi.Uint32)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => objc.ObjCBlock, ffi.Uint32)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -56518,18 +60499,20 @@ abstract final class ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32)> fromFunction( - void Function(SecTrustRef, SecTrustResultType) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, ffi.Uint32)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureCallable, - (SecTrustRef arg0, int arg1) => - fn(arg0, SecTrustResultType.fromValue(arg1)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock, ffi.Uint32)> + fromFunction( + void Function(SecTrustRef, SecTrustResultType) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, ffi.Uint32)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureCallable, + (SecTrustRef arg0, int arg1) => + fn(arg0, SecTrustResultType.fromValue(arg1)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -56541,20 +60524,23 @@ abstract final class ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock, ffi.Uint32)> - listener(void Function(SecTrustRef, SecTrustResultType) fn, - {bool keepIsolateAlive = true}) { + listener( + void Function(SecTrustRef, SecTrustResultType) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_listenerCallable - .nativeFunction - .cast(), - (SecTrustRef arg0, int arg1) => - fn(arg0, SecTrustResultType.fromValue(arg1)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_listenerCallable + .nativeFunction + .cast(), + (SecTrustRef arg0, int arg1) => + fn(arg0, SecTrustResultType.fromValue(arg1)), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_gwxhxt(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32)>(wrapper, - retain: false, release: true); + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -56568,29 +60554,36 @@ abstract final class ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock, ffi.Uint32)> - blocking(void Function(SecTrustRef, SecTrustResultType) fn, - {bool keepIsolateAlive = true}) { + blocking( + void Function(SecTrustRef, SecTrustResultType) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingCallable - .nativeFunction - .cast(), - (SecTrustRef arg0, int arg1) => - fn(arg0, SecTrustResultType.fromValue(arg1)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingCallable + .nativeFunction + .cast(), + (SecTrustRef arg0, int arg1) => + fn(arg0, SecTrustResultType.fromValue(arg1)), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingListenerCallable - .nativeFunction - .cast(), - (SecTrustRef arg0, int arg1) => - fn(arg0, SecTrustResultType.fromValue(arg1)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_blockingListenerCallable + .nativeFunction + .cast(), + (SecTrustRef arg0, int arg1) => + fn(arg0, SecTrustResultType.fromValue(arg1)), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_gwxhxt( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32)>(wrapper, - retain: false, release: true); + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32) + >(wrapper, retain: false, release: true); } } @@ -56599,78 +60592,113 @@ extension ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_CallExtension on objc.ObjCBlock, ffi.Uint32)> { void call(SecTrustRef arg0, SecTrustResultType arg1) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - SecTrustRef arg0, ffi.Uint32 arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + SecTrustRef arg0, + ffi.Uint32 arg1, + ) + > + >() .asFunction< - void Function(ffi.Pointer, SecTrustRef, - int)>()(ref.pointer, arg0, arg1.value); + void Function(ffi.Pointer, SecTrustRef, int) + >()(ref.pointer, arg0, arg1.value); } typedef SecTrustCallback = ffi.Pointer; -typedef DartSecTrustCallback - = objc.ObjCBlock, ffi.Uint32)>; +typedef DartSecTrustCallback = + objc.ObjCBlock, ffi.Uint32)>; void _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_fnPtrTrampoline( - ffi.Pointer block, - SecTrustRef arg0, - bool arg1, - CFErrorRef arg2) => + ffi.Pointer block, + SecTrustRef arg0, + bool arg1, + CFErrorRef arg2, +) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - SecTrustRef arg0, ffi.Bool arg1, CFErrorRef arg2)>>() - .asFunction()( - arg0, arg1, arg2); + .cast< + ffi.NativeFunction< + ffi.Void Function(SecTrustRef arg0, ffi.Bool arg1, CFErrorRef arg2) + > + >() + .asFunction()( + arg0, + arg1, + arg2, + ); ffi.Pointer - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_fnPtrCallable = +_ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, SecTrustRef, - ffi.Bool, CFErrorRef)>( - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + SecTrustRef, + ffi.Bool, + CFErrorRef, + ) + >(_ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureTrampoline( - ffi.Pointer block, - SecTrustRef arg0, - bool arg1, - CFErrorRef arg2) => - (objc.getBlockClosure(block) as void Function( - SecTrustRef, bool, CFErrorRef))(arg0, arg1, arg2); + ffi.Pointer block, + SecTrustRef arg0, + bool arg1, + CFErrorRef arg2, +) => + (objc.getBlockClosure(block) + as void Function(SecTrustRef, bool, CFErrorRef))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureCallable = +_ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, SecTrustRef, - ffi.Bool, CFErrorRef)>( - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + SecTrustRef, + ffi.Bool, + CFErrorRef, + ) + >(_ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_listenerTrampoline( - ffi.Pointer block, - SecTrustRef arg0, - bool arg1, - CFErrorRef arg2) { + ffi.Pointer block, + SecTrustRef arg0, + bool arg1, + CFErrorRef arg2, +) { (objc.getBlockClosure(block) as void Function(SecTrustRef, bool, CFErrorRef))( - arg0, arg1, arg2); + arg0, + arg1, + arg2, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + SecTrustRef, + ffi.Bool, + CFErrorRef, + ) +> +_ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, SecTrustRef, ffi.Bool, CFErrorRef)> - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_listenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, SecTrustRef, - ffi.Bool, CFErrorRef)>.listener( - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_listenerTrampoline) + ffi.Pointer, + SecTrustRef, + ffi.Bool, + CFErrorRef, + ) + >.listener( + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_listenerTrampoline, + ) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - SecTrustRef arg0, - bool arg1, - CFErrorRef arg2) { + ffi.Pointer block, + ffi.Pointer waiter, + SecTrustRef arg0, + bool arg1, + CFErrorRef arg2, +) { try { - (objc.getBlockClosure(block) as void Function( - SecTrustRef, bool, CFErrorRef))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function(SecTrustRef, bool, CFErrorRef))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -56679,61 +60707,99 @@ void _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, SecTrustRef, ffi.Bool, CFErrorRef)> - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - SecTrustRef, - ffi.Bool, - CFErrorRef)>.isolateLocal( - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + SecTrustRef, + ffi.Bool, + CFErrorRef, + ) +> +_ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + SecTrustRef, + ffi.Bool, + CFErrorRef, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, SecTrustRef, ffi.Bool, CFErrorRef)> - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + SecTrustRef, + ffi.Bool, + CFErrorRef, + ) +> +_ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - SecTrustRef, - ffi.Bool, - CFErrorRef)>.listener( - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + SecTrustRef, + ffi.Bool, + CFErrorRef, + ) + >.listener( + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, ffi.Bool, ffi.Pointer<__CFError>)>`. abstract final class ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, - ffi.Pointer<__CFError>)>(pointer, - retain: retain, release: release); + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc - .ObjCBlock, ffi.Bool, ffi.Pointer<__CFError>)> - fromFunctionPointer(ffi.Pointer> ptr) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, - ffi.Pointer<__CFError>)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(SecTrustRef arg0, ffi.Bool arg1, CFErrorRef arg2) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -56743,18 +60809,29 @@ abstract final class ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, ffi.Bool, ffi.Pointer<__CFError>)> - fromFunction(void Function(SecTrustRef, bool, CFErrorRef) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureCallable, - (SecTrustRef arg0, bool arg1, CFErrorRef arg2) => fn(arg0, arg1, arg2), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + fromFunction( + void Function(SecTrustRef, bool, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureCallable, + (SecTrustRef arg0, bool arg1, CFErrorRef arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -56766,21 +60843,28 @@ abstract final class ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>)> listener( - void Function(SecTrustRef, bool, CFErrorRef) fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + listener( + void Function(SecTrustRef, bool, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_listenerCallable - .nativeFunction - .cast(), - (SecTrustRef arg0, bool arg1, CFErrorRef arg2) => fn(arg0, arg1, arg2), - keepIsolateAlive); + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_listenerCallable + .nativeFunction + .cast(), + (SecTrustRef arg0, bool arg1, CFErrorRef arg2) => fn(arg0, arg1, arg2), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_k73ff5(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, - ffi.Pointer<__CFError>)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -56794,52 +60878,86 @@ abstract final class ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>)> blocking( - void Function(SecTrustRef, bool, CFErrorRef) fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + blocking( + void Function(SecTrustRef, bool, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingCallable - .nativeFunction - .cast(), - (SecTrustRef arg0, bool arg1, CFErrorRef arg2) => fn(arg0, arg1, arg2), - keepIsolateAlive); + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingCallable + .nativeFunction + .cast(), + (SecTrustRef arg0, bool arg1, CFErrorRef arg2) => fn(arg0, arg1, arg2), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingListenerCallable - .nativeFunction - .cast(), - (SecTrustRef arg0, bool arg1, CFErrorRef arg2) => fn(arg0, arg1, arg2), - keepIsolateAlive); + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_blockingListenerCallable + .nativeFunction + .cast(), + (SecTrustRef arg0, bool arg1, CFErrorRef arg2) => fn(arg0, arg1, arg2), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_k73ff5( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, - ffi.Pointer<__CFError>)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, ffi.Bool, ffi.Pointer<__CFError>)>`. extension ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_CallExtension - on objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>)> { - void call(SecTrustRef arg0, bool arg1, CFErrorRef arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - SecTrustRef arg0, ffi.Bool arg1, CFErrorRef arg2)>>() - .asFunction< - void Function(ffi.Pointer, SecTrustRef, bool, - CFErrorRef)>()(ref.pointer, arg0, arg1, arg2); + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + > { + void call(SecTrustRef arg0, bool arg1, CFErrorRef arg2) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + SecTrustRef arg0, + ffi.Bool arg1, + CFErrorRef arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + SecTrustRef, + bool, + CFErrorRef, + ) + >()(ref.pointer, arg0, arg1, arg2); } typedef SecTrustWithErrorCallback = ffi.Pointer; -typedef DartSecTrustWithErrorCallback = objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>)>; +typedef DartSecTrustWithErrorCallback = + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >; enum SecTrustOptionFlags { kSecTrustOptionAllowExpired(1), @@ -56854,16 +60972,15 @@ enum SecTrustOptionFlags { const SecTrustOptionFlags(this.value); static SecTrustOptionFlags fromValue(int value) => switch (value) { - 1 => kSecTrustOptionAllowExpired, - 2 => kSecTrustOptionLeafIsCA, - 4 => kSecTrustOptionFetchIssuerFromNet, - 8 => kSecTrustOptionAllowExpiredRoot, - 16 => kSecTrustOptionRequireRevPerCert, - 32 => kSecTrustOptionUseTrustSettings, - 64 => kSecTrustOptionImplicitAnchors, - _ => - throw ArgumentError('Unknown value for SecTrustOptionFlags: $value'), - }; + 1 => kSecTrustOptionAllowExpired, + 2 => kSecTrustOptionLeafIsCA, + 4 => kSecTrustOptionFetchIssuerFromNet, + 8 => kSecTrustOptionAllowExpiredRoot, + 16 => kSecTrustOptionRequireRevPerCert, + 32 => kSecTrustOptionUseTrustSettings, + 64 => kSecTrustOptionImplicitAnchors, + _ => throw ArgumentError('Unknown value for SecTrustOptionFlags: $value'), + }; } typedef SSLCipherSuite = ffi.Uint16; @@ -56880,14 +60997,13 @@ enum SSLCiphersuiteGroup { const SSLCiphersuiteGroup(this.value); static SSLCiphersuiteGroup fromValue(int value) => switch (value) { - 0 => kSSLCiphersuiteGroupDefault, - 1 => kSSLCiphersuiteGroupCompatibility, - 2 => kSSLCiphersuiteGroupLegacy, - 3 => kSSLCiphersuiteGroupATS, - 4 => kSSLCiphersuiteGroupATSCompatibility, - _ => - throw ArgumentError('Unknown value for SSLCiphersuiteGroup: $value'), - }; + 0 => kSSLCiphersuiteGroupDefault, + 1 => kSSLCiphersuiteGroupCompatibility, + 2 => kSSLCiphersuiteGroupLegacy, + 3 => kSSLCiphersuiteGroupATS, + 4 => kSSLCiphersuiteGroupATSCompatibility, + _ => throw ArgumentError('Unknown value for SSLCiphersuiteGroup: $value'), + }; } typedef sec_trust_t = ffi.Pointer; @@ -56909,15 +61025,16 @@ enum tls_protocol_version_t { const tls_protocol_version_t(this.value); static tls_protocol_version_t fromValue(int value) => switch (value) { - 769 => tls_protocol_version_TLSv10, - 770 => tls_protocol_version_TLSv11, - 771 => tls_protocol_version_TLSv12, - 772 => tls_protocol_version_TLSv13, - -257 => tls_protocol_version_DTLSv10, - -259 => tls_protocol_version_DTLSv12, - _ => throw ArgumentError( - 'Unknown value for tls_protocol_version_t: $value'), - }; + 769 => tls_protocol_version_TLSv10, + 770 => tls_protocol_version_TLSv11, + 771 => tls_protocol_version_TLSv12, + 772 => tls_protocol_version_TLSv13, + -257 => tls_protocol_version_DTLSv10, + -259 => tls_protocol_version_DTLSv12, + _ => throw ArgumentError( + 'Unknown value for tls_protocol_version_t: $value', + ), + }; } enum tls_ciphersuite_t { @@ -56952,34 +61069,34 @@ enum tls_ciphersuite_t { const tls_ciphersuite_t(this.value); static tls_ciphersuite_t fromValue(int value) => switch (value) { - 10 => tls_ciphersuite_RSA_WITH_3DES_EDE_CBC_SHA, - 47 => tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA, - 53 => tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA, - 156 => tls_ciphersuite_RSA_WITH_AES_128_GCM_SHA256, - 157 => tls_ciphersuite_RSA_WITH_AES_256_GCM_SHA384, - 60 => tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA256, - 61 => tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA256, - -16376 => tls_ciphersuite_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, - -16375 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, - -16374 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, - -16366 => tls_ciphersuite_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, - -16365 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA, - -16364 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA, - -16349 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, - -16348 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, - -16345 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA256, - -16344 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA384, - -16341 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, - -16340 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, - -16337 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_GCM_SHA256, - -16336 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_GCM_SHA384, - -13144 => tls_ciphersuite_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, - -13143 => tls_ciphersuite_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, - 4865 => tls_ciphersuite_AES_128_GCM_SHA256, - 4866 => tls_ciphersuite_AES_256_GCM_SHA384, - 4867 => tls_ciphersuite_CHACHA20_POLY1305_SHA256, - _ => throw ArgumentError('Unknown value for tls_ciphersuite_t: $value'), - }; + 10 => tls_ciphersuite_RSA_WITH_3DES_EDE_CBC_SHA, + 47 => tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA, + 53 => tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA, + 156 => tls_ciphersuite_RSA_WITH_AES_128_GCM_SHA256, + 157 => tls_ciphersuite_RSA_WITH_AES_256_GCM_SHA384, + 60 => tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA256, + 61 => tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA256, + -16376 => tls_ciphersuite_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, + -16375 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, + -16374 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, + -16366 => tls_ciphersuite_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, + -16365 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA, + -16364 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA, + -16349 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, + -16348 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, + -16345 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA256, + -16344 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA384, + -16341 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, + -16340 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, + -16337 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_GCM_SHA256, + -16336 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_GCM_SHA384, + -13144 => tls_ciphersuite_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, + -13143 => tls_ciphersuite_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, + 4865 => tls_ciphersuite_AES_128_GCM_SHA256, + 4866 => tls_ciphersuite_AES_256_GCM_SHA384, + 4867 => tls_ciphersuite_CHACHA20_POLY1305_SHA256, + _ => throw ArgumentError('Unknown value for tls_ciphersuite_t: $value'), + }; } enum tls_ciphersuite_group_t { @@ -56993,14 +61110,15 @@ enum tls_ciphersuite_group_t { const tls_ciphersuite_group_t(this.value); static tls_ciphersuite_group_t fromValue(int value) => switch (value) { - 0 => tls_ciphersuite_group_default, - 1 => tls_ciphersuite_group_compatibility, - 2 => tls_ciphersuite_group_legacy, - 3 => tls_ciphersuite_group_ats, - 4 => tls_ciphersuite_group_ats_compatibility, - _ => throw ArgumentError( - 'Unknown value for tls_ciphersuite_group_t: $value'), - }; + 0 => tls_ciphersuite_group_default, + 1 => tls_ciphersuite_group_compatibility, + 2 => tls_ciphersuite_group_legacy, + 3 => tls_ciphersuite_group_ats, + 4 => tls_ciphersuite_group_ats_compatibility, + _ => throw ArgumentError( + 'Unknown value for tls_ciphersuite_group_t: $value', + ), + }; } enum SSLProtocol { @@ -57022,60 +61140,64 @@ enum SSLProtocol { const SSLProtocol(this.value); static SSLProtocol fromValue(int value) => switch (value) { - 0 => kSSLProtocolUnknown, - 4 => kTLSProtocol1, - 7 => kTLSProtocol11, - 8 => kTLSProtocol12, - 9 => kDTLSProtocol1, - 10 => kTLSProtocol13, - 11 => kDTLSProtocol12, - 999 => kTLSProtocolMaxSupported, - 1 => kSSLProtocol2, - 2 => kSSLProtocol3, - 3 => kSSLProtocol3Only, - 5 => kTLSProtocol1Only, - 6 => kSSLProtocolAll, - _ => throw ArgumentError('Unknown value for SSLProtocol: $value'), - }; + 0 => kSSLProtocolUnknown, + 4 => kTLSProtocol1, + 7 => kTLSProtocol11, + 8 => kTLSProtocol12, + 9 => kDTLSProtocol1, + 10 => kTLSProtocol13, + 11 => kDTLSProtocol12, + 999 => kTLSProtocolMaxSupported, + 1 => kSSLProtocol2, + 2 => kSSLProtocol3, + 3 => kSSLProtocol3Only, + 5 => kTLSProtocol1Only, + 6 => kSSLProtocolAll, + _ => throw ArgumentError('Unknown value for SSLProtocol: $value'), + }; } void _ObjCBlock_ffiVoid_seccertificatet_fnPtrTrampoline( - ffi.Pointer block, sec_certificate_t arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + sec_certificate_t arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_seccertificatet_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, sec_certificate_t)>( - _ObjCBlock_ffiVoid_seccertificatet_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, sec_certificate_t) + >(_ObjCBlock_ffiVoid_seccertificatet_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_seccertificatet_closureTrampoline( - ffi.Pointer block, sec_certificate_t arg0) => - (objc.getBlockClosure(block) as void Function(sec_certificate_t))(arg0); + ffi.Pointer block, + sec_certificate_t arg0, +) => (objc.getBlockClosure(block) as void Function(sec_certificate_t))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_seccertificatet_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, sec_certificate_t)>( - _ObjCBlock_ffiVoid_seccertificatet_closureTrampoline) + ffi.Void Function(ffi.Pointer, sec_certificate_t) + >(_ObjCBlock_ffiVoid_seccertificatet_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_seccertificatet_listenerTrampoline( - ffi.Pointer block, sec_certificate_t arg0) { + ffi.Pointer block, + sec_certificate_t arg0, +) { (objc.getBlockClosure(block) as void Function(sec_certificate_t))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, sec_certificate_t)> - _ObjCBlock_ffiVoid_seccertificatet_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, sec_certificate_t)>.listener( - _ObjCBlock_ffiVoid_seccertificatet_listenerTrampoline) + ffi.Void Function(ffi.Pointer, sec_certificate_t) +> +_ObjCBlock_ffiVoid_seccertificatet_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, sec_certificate_t) + >.listener(_ObjCBlock_ffiVoid_seccertificatet_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_seccertificatet_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - sec_certificate_t arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + sec_certificate_t arg0, +) { try { (objc.getBlockClosure(block) as void Function(sec_certificate_t))(arg0); } catch (e) { @@ -57086,32 +61208,50 @@ void _ObjCBlock_ffiVoid_seccertificatet_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, sec_certificate_t)> - _ObjCBlock_ffiVoid_seccertificatet_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, sec_certificate_t)>.isolateLocal( - _ObjCBlock_ffiVoid_seccertificatet_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_certificate_t, + ) +> +_ObjCBlock_ffiVoid_seccertificatet_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_certificate_t, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_seccertificatet_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, sec_certificate_t)> - _ObjCBlock_ffiVoid_seccertificatet_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, sec_certificate_t)>.listener( - _ObjCBlock_ffiVoid_seccertificatet_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_certificate_t, + ) +> +_ObjCBlock_ffiVoid_seccertificatet_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_certificate_t, + ) + >.listener(_ObjCBlock_ffiVoid_seccertificatet_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_seccertificatet { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -57119,14 +61259,16 @@ abstract final class ObjCBlock_ffiVoid_seccertificatet { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_seccertificatet_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_seccertificatet_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -57137,16 +61279,18 @@ abstract final class ObjCBlock_ffiVoid_seccertificatet { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(Dartsec_certificate_t) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_seccertificatet_closureCallable, - (sec_certificate_t arg0) => fn(objc.NSObject.castFromPointer(arg0, - retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(Dartsec_certificate_t) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_seccertificatet_closureCallable, + (sec_certificate_t arg0) => + fn(objc.NSObject.castFromPointer(arg0, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -57158,18 +61302,22 @@ abstract final class ObjCBlock_ffiVoid_seccertificatet { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(Dartsec_certificate_t) fn, - {bool keepIsolateAlive = true}) { + void Function(Dartsec_certificate_t) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_seccertificatet_listenerCallable.nativeFunction - .cast(), - (sec_certificate_t arg0) => fn( - objc.NSObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_seccertificatet_listenerCallable.nativeFunction.cast(), + (sec_certificate_t arg0) => + fn(objc.NSObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -57183,27 +61331,34 @@ abstract final class ObjCBlock_ffiVoid_seccertificatet { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(Dartsec_certificate_t) fn, - {bool keepIsolateAlive = true}) { + void Function(Dartsec_certificate_t) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_seccertificatet_blockingCallable.nativeFunction - .cast(), - (sec_certificate_t arg0) => fn( - objc.NSObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_seccertificatet_blockingCallable.nativeFunction.cast(), + (sec_certificate_t arg0) => + fn(objc.NSObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_seccertificatet_blockingListenerCallable - .nativeFunction - .cast(), - (sec_certificate_t arg0) => fn( - objc.NSObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_seccertificatet_blockingListenerCallable.nativeFunction + .cast(), + (sec_certificate_t arg0) => + fn(objc.NSObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -57212,50 +61367,61 @@ extension ObjCBlock_ffiVoid_seccertificatet_CallExtension on objc.ObjCBlock { void call(Dartsec_certificate_t arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - sec_certificate_t arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_certificate_t arg0, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - sec_certificate_t)>()(ref.pointer, arg0.ref.pointer); + void Function(ffi.Pointer, sec_certificate_t) + >()(ref.pointer, arg0.ref.pointer); } typedef sec_protocol_metadata_t = ffi.Pointer; typedef Dartsec_protocol_metadata_t = objc.NSObject; void _ObjCBlock_ffiVoid_Uint16_fnPtrTrampoline( - ffi.Pointer block, int arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + int arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_Uint16_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Uint16)>(_ObjCBlock_ffiVoid_Uint16_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Uint16) + >(_ObjCBlock_ffiVoid_Uint16_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_Uint16_closureTrampoline( - ffi.Pointer block, int arg0) => - (objc.getBlockClosure(block) as void Function(int))(arg0); + ffi.Pointer block, + int arg0, +) => (objc.getBlockClosure(block) as void Function(int))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_Uint16_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Uint16)>(_ObjCBlock_ffiVoid_Uint16_closureTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Uint16) + >(_ObjCBlock_ffiVoid_Uint16_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_Uint16_listenerTrampoline( - ffi.Pointer block, int arg0) { + ffi.Pointer block, + int arg0, +) { (objc.getBlockClosure(block) as void Function(int))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Uint16)> - _ObjCBlock_ffiVoid_Uint16_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Uint16)>.listener(_ObjCBlock_ffiVoid_Uint16_listenerTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Uint16) +> +_ObjCBlock_ffiVoid_Uint16_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Uint16) + >.listener(_ObjCBlock_ffiVoid_Uint16_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Uint16_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, +) { try { (objc.getBlockClosure(block) as void Function(int))(arg0); } catch (e) { @@ -57266,32 +61432,50 @@ void _ObjCBlock_ffiVoid_Uint16_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint16, + ) +> +_ObjCBlock_ffiVoid_Uint16_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Uint16)> - _ObjCBlock_ffiVoid_Uint16_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Uint16)>.isolateLocal( - _ObjCBlock_ffiVoid_Uint16_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Uint16, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_Uint16_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint16, + ) +> +_ObjCBlock_ffiVoid_Uint16_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Uint16)> - _ObjCBlock_ffiVoid_Uint16_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Uint16)>.listener(_ObjCBlock_ffiVoid_Uint16_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Uint16, + ) + >.listener(_ObjCBlock_ffiVoid_Uint16_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_Uint16 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -57299,13 +61483,12 @@ abstract final class ObjCBlock_ffiVoid_Uint16 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_Uint16_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_Uint16_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -57316,13 +61499,17 @@ abstract final class ObjCBlock_ffiVoid_Uint16 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_ffiVoid_Uint16_closureCallable, - (int arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + void Function(int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_Uint16_closureCallable, + (int arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -57334,16 +61521,21 @@ abstract final class ObjCBlock_ffiVoid_Uint16 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(int) fn, - {bool keepIsolateAlive = true}) { + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Uint16_listenerCallable.nativeFunction.cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Uint16_listenerCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_15f11yh(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -57357,95 +61549,128 @@ abstract final class ObjCBlock_ffiVoid_Uint16 { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(int) fn, - {bool keepIsolateAlive = true}) { + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Uint16_blockingCallable.nativeFunction.cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Uint16_blockingCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Uint16_blockingListenerCallable.nativeFunction - .cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Uint16_blockingListenerCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_15f11yh( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_Uint16_CallExtension on objc.ObjCBlock { - void call(int arg0) => ref.pointer.ref.invoke + void call(int arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Uint16 arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Uint16 arg0, + ) + > + >() .asFunction, int)>()( - ref.pointer, arg0); + ref.pointer, + arg0, + ); } void _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - dispatch_data_t arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - dispatch_data_t arg0, dispatch_data_t arg1)>>() - .asFunction()( - arg0, arg1); + ffi.Pointer block, + dispatch_data_t arg0, + dispatch_data_t arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(dispatch_data_t arg0, dispatch_data_t arg1) + > + >() + .asFunction()(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_fnPtrCallable = +_ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - dispatch_data_t, dispatch_data_t)>( - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) + >(_ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - dispatch_data_t arg1) => - (objc.getBlockClosure(block) as void Function( - dispatch_data_t, dispatch_data_t))(arg0, arg1); + ffi.Pointer block, + dispatch_data_t arg0, + dispatch_data_t arg1, +) => + (objc.getBlockClosure(block) + as void Function(dispatch_data_t, dispatch_data_t))(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureCallable = +_ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - dispatch_data_t, dispatch_data_t)>( - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) + >(_ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_listenerTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - dispatch_data_t arg1) { - (objc.getBlockClosure(block) as void Function( - dispatch_data_t, dispatch_data_t))(arg0, arg1); + ffi.Pointer block, + dispatch_data_t arg0, + dispatch_data_t arg1, +) { + (objc.getBlockClosure(block) + as void Function(dispatch_data_t, dispatch_data_t))(arg0, arg1); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) +> +_ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, dispatch_data_t, dispatch_data_t)> - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_listenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, dispatch_data_t, - dispatch_data_t)>.listener( - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_listenerTrampoline) + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) + >.listener( + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_listenerTrampoline, + ) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - dispatch_data_t arg0, - dispatch_data_t arg1) { + ffi.Pointer block, + ffi.Pointer waiter, + dispatch_data_t arg0, + dispatch_data_t arg1, +) { try { - (objc.getBlockClosure(block) as void Function( - dispatch_data_t, dispatch_data_t))(arg0, arg1); + (objc.getBlockClosure(block) + as void Function(dispatch_data_t, dispatch_data_t))(arg0, arg1); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -57454,56 +61679,81 @@ void _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, dispatch_data_t, dispatch_data_t)> - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - dispatch_data_t, - dispatch_data_t)>.isolateLocal( - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) +> +_ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, dispatch_data_t, dispatch_data_t)> - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) +> +_ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - dispatch_data_t, - dispatch_data_t)>.listener( - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) + >.listener( + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock( - pointer, - retain: retain, - release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject)> fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(dispatch_data_t arg0, dispatch_data_t arg1) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -57513,18 +61763,22 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureCallable, - (dispatch_data_t arg0, dispatch_data_t arg1) => fn( - objc.NSObject.castFromPointer(arg0, retain: true, release: true), - objc.NSObject.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock + fromFunction( + void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureCallable, + (dispatch_data_t arg0, dispatch_data_t arg1) => fn( + objc.NSObject.castFromPointer(arg0, retain: true, release: true), + objc.NSObject.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -57536,22 +61790,27 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock - listener(void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, - {bool keepIsolateAlive = true}) { + listener( + void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_listenerCallable - .nativeFunction - .cast(), - (dispatch_data_t arg0, dispatch_data_t arg1) => fn( - objc.NSObject.castFromPointer(arg0, retain: false, release: true), - objc.NSObject.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_listenerCallable + .nativeFunction + .cast(), + (dispatch_data_t arg0, dispatch_data_t arg1) => fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + objc.NSObject.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_pfv6jd(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -57565,89 +61824,113 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock - blocking(void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, - {bool keepIsolateAlive = true}) { + blocking( + void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingCallable - .nativeFunction - .cast(), - (dispatch_data_t arg0, dispatch_data_t arg1) => fn( - objc.NSObject.castFromPointer(arg0, retain: false, release: true), - objc.NSObject.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingCallable + .nativeFunction + .cast(), + (dispatch_data_t arg0, dispatch_data_t arg1) => fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + objc.NSObject.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingListenerCallable - .nativeFunction - .cast(), - (dispatch_data_t arg0, dispatch_data_t arg1) => fn( - objc.NSObject.castFromPointer(arg0, retain: false, release: true), - objc.NSObject.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_blockingListenerCallable + .nativeFunction + .cast(), + (dispatch_data_t arg0, dispatch_data_t arg1) => fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + objc.NSObject.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_pfv6jd( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_CallExtension on objc.ObjCBlock { - void call(Dartdispatch_data_t arg0, Dartdispatch_data_t arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - dispatch_data_t arg0, dispatch_data_t arg1)>>() - .asFunction< - void Function(ffi.Pointer, - dispatch_data_t, dispatch_data_t)>()( - ref.pointer, arg0.ref.pointer, arg1.ref.pointer); + void call(Dartdispatch_data_t arg0, Dartdispatch_data_t arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + dispatch_data_t arg0, + dispatch_data_t arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer); } typedef sec_protocol_options_t = ffi.Pointer; typedef Dartsec_protocol_options_t = objc.NSObject; void _ObjCBlock_ffiVoid_dispatchdatat_fnPtrTrampoline( - ffi.Pointer block, dispatch_data_t arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + dispatch_data_t arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_dispatchdatat_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, dispatch_data_t)>( - _ObjCBlock_ffiVoid_dispatchdatat_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, dispatch_data_t) + >(_ObjCBlock_ffiVoid_dispatchdatat_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_dispatchdatat_closureTrampoline( - ffi.Pointer block, dispatch_data_t arg0) => - (objc.getBlockClosure(block) as void Function(dispatch_data_t))(arg0); + ffi.Pointer block, + dispatch_data_t arg0, +) => (objc.getBlockClosure(block) as void Function(dispatch_data_t))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_dispatchdatat_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, dispatch_data_t)>( - _ObjCBlock_ffiVoid_dispatchdatat_closureTrampoline) + ffi.Void Function(ffi.Pointer, dispatch_data_t) + >(_ObjCBlock_ffiVoid_dispatchdatat_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_dispatchdatat_listenerTrampoline( - ffi.Pointer block, dispatch_data_t arg0) { + ffi.Pointer block, + dispatch_data_t arg0, +) { (objc.getBlockClosure(block) as void Function(dispatch_data_t))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, dispatch_data_t)> - _ObjCBlock_ffiVoid_dispatchdatat_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, dispatch_data_t)>.listener( - _ObjCBlock_ffiVoid_dispatchdatat_listenerTrampoline) + ffi.Void Function(ffi.Pointer, dispatch_data_t) +> +_ObjCBlock_ffiVoid_dispatchdatat_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, dispatch_data_t) + >.listener(_ObjCBlock_ffiVoid_dispatchdatat_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_dispatchdatat_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - dispatch_data_t arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + dispatch_data_t arg0, +) { try { (objc.getBlockClosure(block) as void Function(dispatch_data_t))(arg0); } catch (e) { @@ -57658,32 +61941,50 @@ void _ObjCBlock_ffiVoid_dispatchdatat_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, dispatch_data_t)> - _ObjCBlock_ffiVoid_dispatchdatat_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, dispatch_data_t)>.isolateLocal( - _ObjCBlock_ffiVoid_dispatchdatat_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + ) +> +_ObjCBlock_ffiVoid_dispatchdatat_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_dispatchdatat_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, dispatch_data_t)> - _ObjCBlock_ffiVoid_dispatchdatat_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, dispatch_data_t)>.listener( - _ObjCBlock_ffiVoid_dispatchdatat_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + ) +> +_ObjCBlock_ffiVoid_dispatchdatat_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_data_t, + ) + >.listener(_ObjCBlock_ffiVoid_dispatchdatat_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_dispatchdatat { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -57691,14 +61992,16 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_dispatchdatat_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_dispatchdatat_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -57709,17 +62012,21 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(Dartdispatch_data_t?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_closureCallable, - (dispatch_data_t arg0) => fn(arg0.address == 0 - ? null - : objc.NSObject.castFromPointer(arg0, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(Dartdispatch_data_t?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_dispatchdatat_closureCallable, + (dispatch_data_t arg0) => fn( + arg0.address == 0 + ? null + : objc.NSObject.castFromPointer(arg0, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -57731,19 +62038,25 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(Dartdispatch_data_t?) fn, - {bool keepIsolateAlive = true}) { + void Function(Dartdispatch_data_t?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_listenerCallable.nativeFunction.cast(), - (dispatch_data_t arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_dispatchdatat_listenerCallable.nativeFunction.cast(), + (dispatch_data_t arg0) => fn( + arg0.address == 0 ? null - : objc.NSObject.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + : objc.NSObject.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -57757,29 +62070,40 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(Dartdispatch_data_t?) fn, - {bool keepIsolateAlive = true}) { + void Function(Dartdispatch_data_t?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_blockingCallable.nativeFunction.cast(), - (dispatch_data_t arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_dispatchdatat_blockingCallable.nativeFunction.cast(), + (dispatch_data_t arg0) => fn( + arg0.address == 0 ? null - : objc.NSObject.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + : objc.NSObject.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_dispatchdatat_blockingListenerCallable.nativeFunction - .cast(), - (dispatch_data_t arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_dispatchdatat_blockingListenerCallable.nativeFunction + .cast(), + (dispatch_data_t arg0) => fn( + arg0.address == 0 ? null - : objc.NSObject.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + : objc.NSObject.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -57787,109 +62111,136 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat { extension ObjCBlock_ffiVoid_dispatchdatat_CallExtension on objc.ObjCBlock { void call(Dartdispatch_data_t? arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - dispatch_data_t arg0)>>() - .asFunction< - void Function( - ffi.Pointer, dispatch_data_t)>()( - ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + dispatch_data_t arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, dispatch_data_t) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); } -typedef sec_protocol_pre_shared_key_selection_complete_t - = ffi.Pointer; -typedef Dartsec_protocol_pre_shared_key_selection_complete_t - = objc.ObjCBlock; +typedef sec_protocol_pre_shared_key_selection_complete_t = + ffi.Pointer; +typedef Dartsec_protocol_pre_shared_key_selection_complete_t = + objc.ObjCBlock; void - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_fnPtrTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t - arg2)>>() - .asFunction< - void Function(sec_protocol_metadata_t, dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t)>()( - arg0, arg1, arg2); +_ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_fnPtrTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) + > + >() + .asFunction< + void Function( + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >()(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_fnPtrCallable = +_ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t)>( - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >( + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2) => - (objc.getBlockClosure(block) as void Function( - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t))( - arg0, arg1, arg2); +_ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, +) => + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureCallable = +_ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t)>( - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >( + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_listenerTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2) { - (objc.getBlockClosure(block) as void Function( - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t))(arg0, arg1, arg2); +_ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_listenerTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, +) { + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t)> - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_listenerCallable = + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) +> +_ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t)>.listener( - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >.listener( + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2) { +_ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, +) { try { - (objc.getBlockClosure(block) as void Function( - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -57898,52 +62249,72 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t)> - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) +> +_ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t)>.isolateLocal( - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t)> - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) +> +_ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t)>.listener( - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >.listener( + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, objc.NSObject?, objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject?, - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -57951,15 +62322,38 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secpro /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject?, - objc.ObjCBlock)> - fromFunctionPointer(ffi.Pointer> ptr) => - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject?, - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -57969,18 +62363,55 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secpro /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction(void Function(Dartsec_protocol_metadata_t, Dartdispatch_data_t?, Dartsec_protocol_pre_shared_key_selection_complete_t) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureCallable, - (sec_protocol_metadata_t arg0, dispatch_data_t arg1, sec_protocol_pre_shared_key_selection_complete_t arg2) => fn( - objc.NSObject.castFromPointer(arg0, retain: true, release: true), - arg1.address == 0 ? null : objc.NSObject.castFromPointer(arg1, retain: true, release: true), - ObjCBlock_ffiVoid_dispatchdatat.castFromPointer(arg2, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + Dartsec_protocol_metadata_t, + Dartdispatch_data_t?, + Dartsec_protocol_pre_shared_key_selection_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureCallable, + ( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) => fn( + objc.NSObject.castFromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSObject.castFromPointer( + arg1, + retain: true, + release: true, + ), + ObjCBlock_ffiVoid_dispatchdatat.castFromPointer( + arg2, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -57992,34 +62423,51 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secpro /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject?, - objc.ObjCBlock)> listener( - void Function(Dartsec_protocol_metadata_t, Dartdispatch_data_t?, - Dartsec_protocol_pre_shared_key_selection_complete_t) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + listener( + void Function( + Dartsec_protocol_metadata_t, + Dartdispatch_data_t?, + Dartsec_protocol_pre_shared_key_selection_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_listenerCallable - .nativeFunction - .cast(), - (sec_protocol_metadata_t arg0, dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2) => - fn( - objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - arg1.address == 0 - ? null - : objc.NSObject.castFromPointer(arg1, - retain: false, release: true), - ObjCBlock_ffiVoid_dispatchdatat.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_listenerCallable + .nativeFunction + .cast(), + ( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) => fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : objc.NSObject.castFromPointer(arg1, retain: false, release: true), + ObjCBlock_ffiVoid_dispatchdatat.castFromPointer( + arg2, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_18qun1e(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject?, - objc.ObjCBlock)>(wrapper, - retain: false, release: true); + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -58033,160 +62481,231 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secpro /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject?, - objc.ObjCBlock)> blocking( - void Function(Dartsec_protocol_metadata_t, Dartdispatch_data_t?, - Dartsec_protocol_pre_shared_key_selection_complete_t) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + blocking( + void Function( + Dartsec_protocol_metadata_t, + Dartdispatch_data_t?, + Dartsec_protocol_pre_shared_key_selection_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingCallable - .nativeFunction - .cast(), - (sec_protocol_metadata_t arg0, dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2) => - fn( - objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - arg1.address == 0 - ? null - : objc.NSObject.castFromPointer(arg1, - retain: false, release: true), - ObjCBlock_ffiVoid_dispatchdatat.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingCallable + .nativeFunction + .cast(), + ( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) => fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : objc.NSObject.castFromPointer(arg1, retain: false, release: true), + ObjCBlock_ffiVoid_dispatchdatat.castFromPointer( + arg2, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingListenerCallable - .nativeFunction - .cast(), - (sec_protocol_metadata_t arg0, dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2) => - fn( - objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - arg1.address == 0 - ? null - : objc.NSObject.castFromPointer(arg1, - retain: false, release: true), - ObjCBlock_ffiVoid_dispatchdatat.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_blockingListenerCallable + .nativeFunction + .cast(), + ( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) => fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : objc.NSObject.castFromPointer(arg1, retain: false, release: true), + ObjCBlock_ffiVoid_dispatchdatat.castFromPointer( + arg2, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_18qun1e( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject?, - objc.ObjCBlock)>(wrapper, - retain: false, release: true); + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock)>`. extension ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_CallExtension - on objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject?, - objc.ObjCBlock)> { - void - call(Dartsec_protocol_metadata_t arg0, Dartdispatch_data_t? arg1, - Dartsec_protocol_pre_shared_key_selection_complete_t arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t - arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t)>()( - ref.pointer, - arg0.ref.pointer, - arg1?.ref.pointer ?? ffi.nullptr, - arg2.ref.pointer); -} - -typedef sec_protocol_pre_shared_key_selection_t - = ffi.Pointer; -typedef Dartsec_protocol_pre_shared_key_selection_t = objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject?, - objc.ObjCBlock)>; + on + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > { + void call( + Dartsec_protocol_metadata_t arg0, + Dartdispatch_data_t? arg1, + Dartsec_protocol_pre_shared_key_selection_complete_t arg2, + ) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >()( + ref.pointer, + arg0.ref.pointer, + arg1?.ref.pointer ?? ffi.nullptr, + arg2.ref.pointer, + ); +} + +typedef sec_protocol_pre_shared_key_selection_t = + ffi.Pointer; +typedef Dartsec_protocol_pre_shared_key_selection_t = + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >; typedef sec_protocol_key_update_complete_t = ffi.Pointer; -typedef Dartsec_protocol_key_update_complete_t - = objc.ObjCBlock; +typedef Dartsec_protocol_key_update_complete_t = + objc.ObjCBlock; void - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_fnPtrTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1)>>() - .asFunction< - void Function(sec_protocol_metadata_t, - sec_protocol_key_update_complete_t)>()(arg0, arg1); +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_fnPtrTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) + > + >() + .asFunction< + void Function(sec_protocol_metadata_t, sec_protocol_key_update_complete_t) + >()(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_fnPtrCallable = +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t)>( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1) => - (objc.getBlockClosure(block) as void Function(sec_protocol_metadata_t, - sec_protocol_key_update_complete_t))(arg0, arg1); +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, +) => + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ))(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureCallable = +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t)>( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_listenerTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1) { - (objc.getBlockClosure(block) as void Function( - sec_protocol_metadata_t, sec_protocol_key_update_complete_t))(arg0, arg1); +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_listenerTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, +) { + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ))(arg0, arg1); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - sec_protocol_metadata_t, sec_protocol_key_update_complete_t)> - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_listenerCallable = + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) +> +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t)>.listener( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >.listener( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1) { +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, +) { try { - (objc.getBlockClosure(block) as void Function(sec_protocol_metadata_t, - sec_protocol_key_update_complete_t))(arg0, arg1); + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ))(arg0, arg1); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -58195,65 +62714,90 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t)> - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) +> +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t)>.isolateLocal( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t)> - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) +> +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t)>.listener( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >.listener( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, objc.ObjCBlock)>( - pointer, - retain: retain, - release: release); + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -58263,18 +62807,38 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdate /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction(void Function(Dartsec_protocol_metadata_t, Dartsec_protocol_key_update_complete_t) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureCallable, - (sec_protocol_metadata_t arg0, sec_protocol_key_update_complete_t arg1) => fn( - objc.NSObject.castFromPointer(arg0, retain: true, release: true), - ObjCBlock_ffiVoid.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + fromFunction( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_key_update_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureCallable, + ( + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) => fn( + objc.NSObject.castFromPointer(arg0, retain: true, release: true), + ObjCBlock_ffiVoid.castFromPointer( + arg1, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -58286,30 +62850,36 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdate /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock)> - listener( - void Function(Dartsec_protocol_metadata_t, - Dartsec_protocol_key_update_complete_t) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + listener( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_key_update_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_listenerCallable - .nativeFunction - .cast(), - (sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1) => - fn( - objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - ObjCBlock_ffiVoid.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_listenerCallable + .nativeFunction + .cast(), + (sec_protocol_metadata_t arg0, sec_protocol_key_update_complete_t arg1) => + fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + ObjCBlock_ffiVoid.castFromPointer( + arg1, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_o762yo(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, objc.ObjCBlock)>(wrapper, - retain: false, release: true); + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -58323,142 +62893,192 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock)> - blocking( - void Function(Dartsec_protocol_metadata_t, - Dartsec_protocol_key_update_complete_t) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + blocking( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_key_update_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingCallable - .nativeFunction - .cast(), - (sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1) => - fn( - objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - ObjCBlock_ffiVoid.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingCallable + .nativeFunction + .cast(), + (sec_protocol_metadata_t arg0, sec_protocol_key_update_complete_t arg1) => + fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + ObjCBlock_ffiVoid.castFromPointer( + arg1, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingListenerCallable - .nativeFunction - .cast(), - (sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1) => - fn( - objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - ObjCBlock_ffiVoid.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_blockingListenerCallable + .nativeFunction + .cast(), + (sec_protocol_metadata_t arg0, sec_protocol_key_update_complete_t arg1) => + fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + ObjCBlock_ffiVoid.castFromPointer( + arg1, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_o762yo( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, objc.ObjCBlock)>(wrapper, - retain: false, release: true); + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock)>`. extension ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_CallExtension - on objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock)> { - void call(Dartsec_protocol_metadata_t arg0, - Dartsec_protocol_key_update_complete_t arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1)>>() - .asFunction< - void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t)>()( - ref.pointer, arg0.ref.pointer, arg1.ref.pointer); + on + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > { + void call( + Dartsec_protocol_metadata_t arg0, + Dartsec_protocol_key_update_complete_t arg1, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer); } typedef sec_protocol_key_update_t = ffi.Pointer; -typedef Dartsec_protocol_key_update_t = objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock)>; +typedef Dartsec_protocol_key_update_t = + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >; typedef sec_protocol_challenge_complete_t = ffi.Pointer; -typedef Dartsec_protocol_challenge_complete_t - = objc.ObjCBlock; +typedef Dartsec_protocol_challenge_complete_t = + objc.ObjCBlock; void - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_fnPtrTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1)>>() - .asFunction< - void Function(sec_protocol_metadata_t, - sec_protocol_challenge_complete_t)>()(arg0, arg1); +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_fnPtrTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) + > + >() + .asFunction< + void Function(sec_protocol_metadata_t, sec_protocol_challenge_complete_t) + >()(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_fnPtrCallable = +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t)>( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1) => - (objc.getBlockClosure(block) as void Function(sec_protocol_metadata_t, - sec_protocol_challenge_complete_t))(arg0, arg1); +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, +) => + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ))(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureCallable = +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t)>( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_listenerTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1) { - (objc.getBlockClosure(block) as void Function( - sec_protocol_metadata_t, sec_protocol_challenge_complete_t))(arg0, arg1); +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_listenerTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, +) { + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ))(arg0, arg1); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - sec_protocol_metadata_t, sec_protocol_challenge_complete_t)> - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_listenerCallable = + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) +> +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t)>.listener( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >.listener( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1) { +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, +) { try { - (objc.getBlockClosure(block) as void Function(sec_protocol_metadata_t, - sec_protocol_challenge_complete_t))(arg0, arg1); + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ))(arg0, arg1); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -58467,67 +63087,102 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t)> - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) +> +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t)>.isolateLocal( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t)> - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) +> +_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t)>.listener( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >.listener( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, - objc.ObjCBlock)>( - pointer, - retain: retain, - release: release); + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc - .ObjCBlock)> - fromFunctionPointer(ffi.Pointer> ptr) => - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, - objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -58537,18 +63192,44 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallenge /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction(void Function(Dartsec_protocol_metadata_t, Dartsec_protocol_challenge_complete_t) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureCallable, - (sec_protocol_metadata_t arg0, sec_protocol_challenge_complete_t arg1) => fn( - objc.NSObject.castFromPointer(arg0, retain: true, release: true), - ObjCBlock_ffiVoid_dispatchdatat.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_challenge_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureCallable, + ( + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) => fn( + objc.NSObject.castFromPointer(arg0, retain: true, release: true), + ObjCBlock_ffiVoid_dispatchdatat.castFromPointer( + arg1, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -58560,31 +63241,42 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallenge /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, objc.ObjCBlock)> - listener( - void Function(Dartsec_protocol_metadata_t, - Dartsec_protocol_challenge_complete_t) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + listener( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_challenge_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_listenerCallable - .nativeFunction - .cast(), - (sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1) => - fn( - objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - ObjCBlock_ffiVoid_dispatchdatat.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_listenerCallable + .nativeFunction + .cast(), + (sec_protocol_metadata_t arg0, sec_protocol_challenge_complete_t arg1) => + fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + ObjCBlock_ffiVoid_dispatchdatat.castFromPointer( + arg1, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_o762yo(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.NSObject, - objc.ObjCBlock)>(wrapper, - retain: false, release: true); + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -58598,107 +63290,143 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallenge /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, objc.ObjCBlock)> - blocking( - void Function(Dartsec_protocol_metadata_t, - Dartsec_protocol_challenge_complete_t) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + blocking( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_challenge_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingCallable - .nativeFunction - .cast(), - (sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1) => - fn( - objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - ObjCBlock_ffiVoid_dispatchdatat.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingCallable + .nativeFunction + .cast(), + (sec_protocol_metadata_t arg0, sec_protocol_challenge_complete_t arg1) => + fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + ObjCBlock_ffiVoid_dispatchdatat.castFromPointer( + arg1, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingListenerCallable - .nativeFunction - .cast(), - (sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1) => - fn( - objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - ObjCBlock_ffiVoid_dispatchdatat.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_blockingListenerCallable + .nativeFunction + .cast(), + (sec_protocol_metadata_t arg0, sec_protocol_challenge_complete_t arg1) => + fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + ObjCBlock_ffiVoid_dispatchdatat.castFromPointer( + arg1, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_o762yo( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.NSObject, - objc.ObjCBlock)>(wrapper, - retain: false, release: true); + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock)>`. extension ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_CallExtension - on objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, objc.ObjCBlock)> { - void call(Dartsec_protocol_metadata_t arg0, - Dartsec_protocol_challenge_complete_t arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1)>>() - .asFunction< - void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t)>()( - ref.pointer, arg0.ref.pointer, arg1.ref.pointer); + on + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > { + void call( + Dartsec_protocol_metadata_t arg0, + Dartsec_protocol_challenge_complete_t arg1, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer); } typedef sec_protocol_challenge_t = ffi.Pointer; -typedef Dartsec_protocol_challenge_t = objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, objc.ObjCBlock)>; +typedef Dartsec_protocol_challenge_t = + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >; void _ObjCBlock_ffiVoid_bool_fnPtrTrampoline( - ffi.Pointer block, bool arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + bool arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_bool_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Bool)>(_ObjCBlock_ffiVoid_bool_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Bool) + >(_ObjCBlock_ffiVoid_bool_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_bool_closureTrampoline( - ffi.Pointer block, bool arg0) => - (objc.getBlockClosure(block) as void Function(bool))(arg0); + ffi.Pointer block, + bool arg0, +) => (objc.getBlockClosure(block) as void Function(bool))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_bool_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Bool)>(_ObjCBlock_ffiVoid_bool_closureTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Bool) + >(_ObjCBlock_ffiVoid_bool_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_bool_listenerTrampoline( - ffi.Pointer block, bool arg0) { + ffi.Pointer block, + bool arg0, +) { (objc.getBlockClosure(block) as void Function(bool))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable, ffi.Bool)> - _ObjCBlock_ffiVoid_bool_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Bool)>.listener(_ObjCBlock_ffiVoid_bool_listenerTrampoline) +_ObjCBlock_ffiVoid_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Bool) + >.listener(_ObjCBlock_ffiVoid_bool_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - bool arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + bool arg0, +) { try { (objc.getBlockClosure(block) as void Function(bool))(arg0); } catch (e) { @@ -58709,33 +63437,50 @@ void _ObjCBlock_ffiVoid_bool_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) +> +_ObjCBlock_ffiVoid_bool_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Bool)> - _ObjCBlock_ffiVoid_bool_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>.isolateLocal(_ObjCBlock_ffiVoid_bool_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_bool_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) +> +_ObjCBlock_ffiVoid_bool_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Bool)> - _ObjCBlock_ffiVoid_bool_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>.listener(_ObjCBlock_ffiVoid_bool_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >.listener(_ObjCBlock_ffiVoid_bool_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_bool { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -58743,13 +63488,12 @@ abstract final class ObjCBlock_ffiVoid_bool { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_bool_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_bool_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -58760,13 +63504,17 @@ abstract final class ObjCBlock_ffiVoid_bool { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(bool) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_ffiVoid_bool_closureCallable, - (bool arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + void Function(bool) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_bool_closureCallable, + (bool arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -58778,16 +63526,21 @@ abstract final class ObjCBlock_ffiVoid_bool { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(bool) fn, - {bool keepIsolateAlive = true}) { + void Function(bool) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_bool_listenerCallable.nativeFunction.cast(), - (bool arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_bool_listenerCallable.nativeFunction.cast(), + (bool arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1s56lr9(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -58801,120 +63554,169 @@ abstract final class ObjCBlock_ffiVoid_bool { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(bool) fn, - {bool keepIsolateAlive = true}) { + void Function(bool) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_bool_blockingCallable.nativeFunction.cast(), - (bool arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_bool_blockingCallable.nativeFunction.cast(), + (bool arg0) => fn(arg0), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_bool_blockingListenerCallable.nativeFunction.cast(), - (bool arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_bool_blockingListenerCallable.nativeFunction.cast(), + (bool arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1s56lr9( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_bool_CallExtension on objc.ObjCBlock { - void call(bool arg0) => ref.pointer.ref.invoke + void call(bool arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, ffi.Bool arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Bool arg0, + ) + > + >() .asFunction, bool)>()( - ref.pointer, arg0); + ref.pointer, + arg0, + ); } typedef sec_protocol_verify_complete_t = ffi.Pointer; -typedef Dartsec_protocol_verify_complete_t - = objc.ObjCBlock; +typedef Dartsec_protocol_verify_complete_t = + objc.ObjCBlock; void - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_fnPtrTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2)>>() - .asFunction< - void Function(sec_protocol_metadata_t, sec_trust_t, - sec_protocol_verify_complete_t)>()(arg0, arg1, arg2); +_ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_fnPtrTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) + > + >() + .asFunction< + void Function( + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >()(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_fnPtrCallable = +_ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t)>( - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >( + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2) => - (objc.getBlockClosure(block) as void Function(sec_protocol_metadata_t, - sec_trust_t, sec_protocol_verify_complete_t))(arg0, arg1, arg2); +_ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, +) => + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureCallable = +_ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t)>( - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >( + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_listenerTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2) { - (objc.getBlockClosure(block) as void Function(sec_protocol_metadata_t, - sec_trust_t, sec_protocol_verify_complete_t))(arg0, arg1, arg2); +_ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_listenerTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, +) { + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t)> - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_listenerCallable = + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) +> +_ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t)>.listener( - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >.listener( + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2) { +_ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, +) { try { - (objc.getBlockClosure(block) as void Function(sec_protocol_metadata_t, - sec_trust_t, sec_protocol_verify_complete_t))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -58923,52 +63725,72 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t)> - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) +> +_ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t)>.isolateLocal( - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t)> - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) +> +_ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t)>.listener( - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >.listener( + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject, - objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject, - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -58976,15 +63798,38 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotoco /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject, - objc.ObjCBlock)> - fromFunctionPointer(ffi.Pointer> ptr) => - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject, - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -58994,19 +63839,49 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotoco /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction(void Function(Dartsec_protocol_metadata_t, Dartsec_trust_t, Dartsec_protocol_verify_complete_t) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureCallable, - (sec_protocol_metadata_t arg0, sec_trust_t arg1, sec_protocol_verify_complete_t arg2) => fn( - objc.NSObject.castFromPointer(arg0, retain: true, release: true), - objc.NSObject.castFromPointer(arg1, retain: true, release: true), - ObjCBlock_ffiVoid_bool.castFromPointer(arg2, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_trust_t, + Dartsec_protocol_verify_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureCallable, + ( + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) => fn( + objc.NSObject.castFromPointer(arg0, retain: true, release: true), + objc.NSObject.castFromPointer(arg1, retain: true, release: true), + ObjCBlock_ffiVoid_bool.castFromPointer( + arg2, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -59018,32 +63893,49 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotoco /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject, - objc.ObjCBlock)> listener( - void Function(Dartsec_protocol_metadata_t, Dartsec_trust_t, - Dartsec_protocol_verify_complete_t) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + listener( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_trust_t, + Dartsec_protocol_verify_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_listenerCallable - .nativeFunction - .cast(), - (sec_protocol_metadata_t arg0, sec_trust_t arg1, - sec_protocol_verify_complete_t arg2) => - fn( - objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - objc.NSObject.castFromPointer(arg1, - retain: false, release: true), - ObjCBlock_ffiVoid_bool.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_listenerCallable + .nativeFunction + .cast(), + ( + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) => fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + objc.NSObject.castFromPointer(arg1, retain: false, release: true), + ObjCBlock_ffiVoid_bool.castFromPointer( + arg2, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_18qun1e(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject, - objc.ObjCBlock)>(wrapper, - retain: false, release: true); + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -59057,79 +63949,120 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotoco /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject, - objc.ObjCBlock)> blocking( - void Function(Dartsec_protocol_metadata_t, Dartsec_trust_t, - Dartsec_protocol_verify_complete_t) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + blocking( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_trust_t, + Dartsec_protocol_verify_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingCallable - .nativeFunction - .cast(), - (sec_protocol_metadata_t arg0, sec_trust_t arg1, - sec_protocol_verify_complete_t arg2) => - fn( - objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - objc.NSObject.castFromPointer(arg1, - retain: false, release: true), - ObjCBlock_ffiVoid_bool.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingCallable + .nativeFunction + .cast(), + ( + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) => fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + objc.NSObject.castFromPointer(arg1, retain: false, release: true), + ObjCBlock_ffiVoid_bool.castFromPointer( + arg2, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingListenerCallable - .nativeFunction - .cast(), - (sec_protocol_metadata_t arg0, sec_trust_t arg1, - sec_protocol_verify_complete_t arg2) => - fn( - objc.NSObject.castFromPointer(arg0, - retain: false, release: true), - objc.NSObject.castFromPointer(arg1, - retain: false, release: true), - ObjCBlock_ffiVoid_bool.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_blockingListenerCallable + .nativeFunction + .cast(), + ( + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) => fn( + objc.NSObject.castFromPointer(arg0, retain: false, release: true), + objc.NSObject.castFromPointer(arg1, retain: false, release: true), + ObjCBlock_ffiVoid_bool.castFromPointer( + arg2, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_18qun1e( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject, - objc.ObjCBlock)>(wrapper, - retain: false, release: true); + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock)>`. extension ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_CallExtension - on objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject, - objc.ObjCBlock)> { - void call(Dartsec_protocol_metadata_t arg0, Dartsec_trust_t arg1, - Dartsec_protocol_verify_complete_t arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t)>()( - ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2.ref.pointer); + on + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > { + void call( + Dartsec_protocol_metadata_t arg0, + Dartsec_trust_t arg1, + Dartsec_protocol_verify_complete_t arg2, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2.ref.pointer); } typedef sec_protocol_verify_t = ffi.Pointer; -typedef Dartsec_protocol_verify_t = objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.NSObject, - objc.ObjCBlock)>; +typedef Dartsec_protocol_verify_t = + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >; final class SSLContext extends ffi.Opaque {} @@ -59152,18 +64085,18 @@ enum SSLSessionOption { const SSLSessionOption(this.value); static SSLSessionOption fromValue(int value) => switch (value) { - 0 => kSSLSessionOptionBreakOnServerAuth, - 1 => kSSLSessionOptionBreakOnCertRequested, - 2 => kSSLSessionOptionBreakOnClientAuth, - 3 => kSSLSessionOptionFalseStart, - 4 => kSSLSessionOptionSendOneByteRecord, - 5 => kSSLSessionOptionAllowServerIdentityChange, - 6 => kSSLSessionOptionFallback, - 7 => kSSLSessionOptionBreakOnClientHello, - 8 => kSSLSessionOptionAllowRenegotiation, - 9 => kSSLSessionOptionEnableSessionTickets, - _ => throw ArgumentError('Unknown value for SSLSessionOption: $value'), - }; + 0 => kSSLSessionOptionBreakOnServerAuth, + 1 => kSSLSessionOptionBreakOnCertRequested, + 2 => kSSLSessionOptionBreakOnClientAuth, + 3 => kSSLSessionOptionFalseStart, + 4 => kSSLSessionOptionSendOneByteRecord, + 5 => kSSLSessionOptionAllowServerIdentityChange, + 6 => kSSLSessionOptionFallback, + 7 => kSSLSessionOptionBreakOnClientHello, + 8 => kSSLSessionOptionAllowRenegotiation, + 9 => kSSLSessionOptionEnableSessionTickets, + _ => throw ArgumentError('Unknown value for SSLSessionOption: $value'), + }; } enum SSLSessionState { @@ -59177,13 +64110,13 @@ enum SSLSessionState { const SSLSessionState(this.value); static SSLSessionState fromValue(int value) => switch (value) { - 0 => kSSLIdle, - 1 => kSSLHandshake, - 2 => kSSLConnected, - 3 => kSSLClosed, - 4 => kSSLAborted, - _ => throw ArgumentError('Unknown value for SSLSessionState: $value'), - }; + 0 => kSSLIdle, + 1 => kSSLHandshake, + 2 => kSSLConnected, + 3 => kSSLClosed, + 4 => kSSLAborted, + _ => throw ArgumentError('Unknown value for SSLSessionState: $value'), + }; } enum SSLClientCertificateState { @@ -59196,28 +64129,41 @@ enum SSLClientCertificateState { const SSLClientCertificateState(this.value); static SSLClientCertificateState fromValue(int value) => switch (value) { - 0 => kSSLClientCertNone, - 1 => kSSLClientCertRequested, - 2 => kSSLClientCertSent, - 3 => kSSLClientCertRejected, - _ => throw ArgumentError( - 'Unknown value for SSLClientCertificateState: $value'), - }; + 0 => kSSLClientCertNone, + 1 => kSSLClientCertRequested, + 2 => kSSLClientCertSent, + 3 => kSSLClientCertRejected, + _ => throw ArgumentError( + 'Unknown value for SSLClientCertificateState: $value', + ), + }; } -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 SSLReadFuncFunction = + OSStatus Function( + SSLConnectionRef connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef DartSSLReadFuncFunction = + DartSInt32 Function( + SSLConnectionRef connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); typedef SSLReadFunc = 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); +typedef SSLWriteFuncFunction = + OSStatus Function( + SSLConnectionRef connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef DartSSLWriteFuncFunction = + DartSInt32 Function( + SSLConnectionRef connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); typedef SSLWriteFunc = ffi.Pointer>; enum SSLProtocolSide { @@ -59228,10 +64174,10 @@ enum SSLProtocolSide { const SSLProtocolSide(this.value); static SSLProtocolSide fromValue(int value) => switch (value) { - 0 => kSSLServerSide, - 1 => kSSLClientSide, - _ => throw ArgumentError('Unknown value for SSLProtocolSide: $value'), - }; + 0 => kSSLServerSide, + 1 => kSSLClientSide, + _ => throw ArgumentError('Unknown value for SSLProtocolSide: $value'), + }; } enum SSLConnectionType { @@ -59242,10 +64188,10 @@ enum SSLConnectionType { const SSLConnectionType(this.value); static SSLConnectionType fromValue(int value) => switch (value) { - 0 => kSSLStreamType, - 1 => kSSLDatagramType, - _ => throw ArgumentError('Unknown value for SSLConnectionType: $value'), - }; + 0 => kSSLStreamType, + 1 => kSSLDatagramType, + _ => throw ArgumentError('Unknown value for SSLConnectionType: $value'), + }; } enum SSLAuthenticate { @@ -59257,98 +64203,119 @@ enum SSLAuthenticate { const SSLAuthenticate(this.value); static SSLAuthenticate fromValue(int value) => switch (value) { - 0 => kNeverAuthenticate, - 1 => kAlwaysAuthenticate, - 2 => kTryAuthenticate, - _ => throw ArgumentError('Unknown value for SSLAuthenticate: $value'), - }; + 0 => kNeverAuthenticate, + 1 => kAlwaysAuthenticate, + 2 => kTryAuthenticate, + _ => throw ArgumentError('Unknown value for SSLAuthenticate: $value'), + }; } late final _class_NSURLSession = objc.getClass("NSURLSession"); void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrCallable = +_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureCallable = +_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_listenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_listenerTrampoline, + ) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -59357,68 +64324,95 @@ void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError { /// Returns a block that wraps the given raw block pointer. - static objc - .ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, - objc.NSError?)>(pointer, retain: retain, release: release); + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -59428,19 +64422,50 @@ abstract final class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( - arg0.address == 0 ? null : objc.NSData.castFromPointer(arg0, retain: true, release: true), - arg1.address == 0 ? null : NSURLResponse.castFromPointer(arg1, retain: true, release: true), - arg2.address == 0 ? null : objc.NSError.castFromPointer(arg2, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + fromFunction( + void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : objc.NSData.castFromPointer( + arg0, + retain: true, + release: true, + ), + arg1.address == 0 + ? null + : NSURLResponse.castFromPointer( + arg1, + retain: true, + release: true, + ), + arg2.address == 0 + ? null + : objc.NSError.castFromPointer( + arg2, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -59451,35 +64476,39 @@ abstract final class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock - listener(void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + listener( + void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - arg0.address == 0 - ? null - : objc.NSData.castFromPointer(arg0, - retain: false, release: true), - arg1.address == 0 - ? null - : NSURLResponse.castFromPointer(arg1, - retain: false, release: true), - arg2.address == 0 - ? null - : objc.NSError.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : objc.NSData.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSURLResponse.castFromPointer(arg1, retain: false, release: true), + arg2.address == 0 + ? null + : objc.NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_r8gdi7(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, - objc.NSError?)>(wrapper, retain: false, release: true); + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -59492,102 +64521,126 @@ abstract final class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc - .ObjCBlock - blocking(void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + blocking( + void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - arg0.address == 0 - ? null - : objc.NSData.castFromPointer(arg0, - retain: false, release: true), - arg1.address == 0 - ? null - : NSURLResponse.castFromPointer(arg1, - retain: false, release: true), - arg2.address == 0 - ? null - : objc.NSError.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : objc.NSData.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSURLResponse.castFromPointer(arg1, retain: false, release: true), + arg2.address == 0 + ? null + : objc.NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - arg0.address == 0 - ? null - : objc.NSData.castFromPointer(arg0, - retain: false, release: true), - arg1.address == 0 - ? null - : NSURLResponse.castFromPointer(arg1, - retain: false, release: true), - arg2.address == 0 - ? null - : objc.NSError.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : objc.NSData.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSURLResponse.castFromPointer(arg1, retain: false, release: true), + arg2.address == 0 + ? null + : objc.NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_r8gdi7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, - objc.NSError?)>(wrapper, retain: false, release: true); + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_CallExtension on objc - .ObjCBlock { +extension ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > { void call(objc.NSData? arg0, NSURLResponse? arg1, objc.NSError? arg2) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, - arg1?.ref.pointer ?? ffi.nullptr, - arg2?.ref.pointer ?? ffi.nullptr); -} - -late final _sel_dataTaskWithRequest_completionHandler_ = - objc.registerName("dataTaskWithRequest:completionHandler:"); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1?.ref.pointer ?? ffi.nullptr, + arg2?.ref.pointer ?? ffi.nullptr, + ); +} + +late final _sel_dataTaskWithRequest_completionHandler_ = objc.registerName( + "dataTaskWithRequest:completionHandler:", +); final _objc_msgSend_r0bo0s = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); -late final _sel_dataTaskWithURL_completionHandler_ = - objc.registerName("dataTaskWithURL:completionHandler:"); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_dataTaskWithURL_completionHandler_ = objc.registerName( + "dataTaskWithURL:completionHandler:", +); /// WARNING: NSURLSessionUploadTask is a stub. To generate bindings for this class, include /// NSURLSessionUploadTask in your config's objc-interfaces list. @@ -59597,94 +64650,123 @@ late final _sel_dataTaskWithURL_completionHandler_ = /// that may be sent referencing an NSURLSessionDataTask equally apply /// to NSURLSessionUploadTasks. class NSURLSessionUploadTask extends NSURLSessionDataTask { - NSURLSessionUploadTask._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSURLSessionUploadTask', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + NSURLSessionUploadTask._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionUploadTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); } /// Constructs a [NSURLSessionUploadTask] that points to the same underlying object as [other]. NSURLSessionUploadTask.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionUploadTask] that wraps the given raw object pointer. - NSURLSessionUploadTask.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLSessionUploadTask.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } -late final _sel_uploadTaskWithRequest_fromFile_completionHandler_ = - objc.registerName("uploadTaskWithRequest:fromFile:completionHandler:"); +late final _sel_uploadTaskWithRequest_fromFile_completionHandler_ = objc + .registerName("uploadTaskWithRequest:fromFile:completionHandler:"); final _objc_msgSend_2wiv66 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); -late final _sel_uploadTaskWithRequest_fromData_completionHandler_ = - objc.registerName("uploadTaskWithRequest:fromData:completionHandler:"); -late final _sel_uploadTaskWithResumeData_completionHandler_ = - objc.registerName("uploadTaskWithResumeData:completionHandler:"); -late final _class_NSURLSessionDownloadTask = - objc.getClass("NSURLSessionDownloadTask"); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_uploadTaskWithRequest_fromData_completionHandler_ = objc + .registerName("uploadTaskWithRequest:fromData:completionHandler:"); +late final _sel_uploadTaskWithResumeData_completionHandler_ = objc.registerName( + "uploadTaskWithResumeData:completionHandler:", +); +late final _class_NSURLSessionDownloadTask = objc.getClass( + "NSURLSessionDownloadTask", +); void _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSData_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSData_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSData_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSData_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSData_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSData_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSData_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSData_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSData_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSData_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSData_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -59693,33 +64775,50 @@ void _ObjCBlock_ffiVoid_NSData_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSData_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSData_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSData_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSData_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSData_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSData_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSData { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -59727,15 +64826,15 @@ abstract final class ObjCBlock_ffiVoid_NSData { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSData_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_NSData_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -59746,18 +64845,21 @@ abstract final class ObjCBlock_ffiVoid_NSData { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(objc.NSData?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_closureCallable, - (ffi.Pointer arg0) => fn(arg0.address == 0 - ? null - : objc.NSData.castFromPointer(arg0, - retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(objc.NSData?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSData_closureCallable, + (ffi.Pointer arg0) => fn( + arg0.address == 0 + ? null + : objc.NSData.castFromPointer(arg0, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -59769,18 +64871,25 @@ abstract final class ObjCBlock_ffiVoid_NSData { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(objc.NSData?) fn, - {bool keepIsolateAlive = true}) { + void Function(objc.NSData?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSData_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : objc.NSData.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : objc.NSData.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -59794,27 +64903,39 @@ abstract final class ObjCBlock_ffiVoid_NSData { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(objc.NSData?) fn, - {bool keepIsolateAlive = true}) { + void Function(objc.NSData?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSData_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : objc.NSData.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : objc.NSData.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSData_blockingListenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : objc.NSData.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : objc.NSData.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -59822,52 +64943,76 @@ abstract final class ObjCBlock_ffiVoid_NSData { extension ObjCBlock_ffiVoid_NSData_CallExtension on objc.ObjCBlock { void call(objc.NSData? arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); } -late final _sel_cancelByProducingResumeData_ = - objc.registerName("cancelByProducingResumeData:"); +late final _sel_cancelByProducingResumeData_ = objc.registerName( + "cancelByProducingResumeData:", +); final _objc_msgSend_f167m6 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// NSURLSessionDownloadTask is a task that represents a download to /// local storage. class NSURLSessionDownloadTask extends NSURLSessionTask { - NSURLSessionDownloadTask._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSURLSessionDownloadTask', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + NSURLSessionDownloadTask._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionDownloadTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); } /// Constructs a [NSURLSessionDownloadTask] that points to the same underlying object as [other]. NSURLSessionDownloadTask.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionDownloadTask] that wraps the given raw object pointer. - NSURLSessionDownloadTask.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLSessionDownloadTask.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURLSessionDownloadTask]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSURLSessionDownloadTask); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURLSessionDownloadTask, + ); } /// Cancel the download (and calls the superclass -cancel). If @@ -59877,33 +65022,54 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { /// If resume data cannot be created, the completion handler will be /// called with nil resumeData. void cancelByProducingResumeData( - objc.ObjCBlock completionHandler) { + objc.ObjCBlock completionHandler, + ) { objc.checkOsVersionInternal( - 'NSURLSessionDownloadTask.cancelByProducingResumeData:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); - _objc_msgSend_f167m6(this.ref.pointer, _sel_cancelByProducingResumeData_, - completionHandler.ref.pointer); + 'NSURLSessionDownloadTask.cancelByProducingResumeData:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_cancelByProducingResumeData_, + completionHandler.ref.pointer, + ); } /// init NSURLSessionDownloadTask init() { - objc.checkOsVersionInternal('NSURLSessionDownloadTask.init', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); - return NSURLSessionDownloadTask.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSURLSessionDownloadTask.init', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSURLSessionDownloadTask.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// new static NSURLSessionDownloadTask new$() { - objc.checkOsVersionInternal('NSURLSessionDownloadTask.new', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - final _ret = - _objc_msgSend_151sglz(_class_NSURLSessionDownloadTask, _sel_new); - return NSURLSessionDownloadTask.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSURLSessionDownloadTask.new', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz( + _class_NSURLSessionDownloadTask, + _sel_new, + ); + return NSURLSessionDownloadTask.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// Returns a new instance of NSURLSessionDownloadTask constructed with the default `new` method. @@ -59911,89 +65077,110 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { } void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrCallable = +_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureCallable = +_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_listenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_listenerTrampoline, + ) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -60002,68 +65189,95 @@ void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError { /// Returns a block that wraps the given raw block pointer. - static objc - .ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, - objc.NSError?)>(pointer, retain: retain, release: release); + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -60073,19 +65287,46 @@ abstract final class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( - arg0.address == 0 ? null : objc.NSURL.castFromPointer(arg0, retain: true, release: true), - arg1.address == 0 ? null : NSURLResponse.castFromPointer(arg1, retain: true, release: true), - arg2.address == 0 ? null : objc.NSError.castFromPointer(arg2, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + fromFunction( + void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : objc.NSURL.castFromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : NSURLResponse.castFromPointer( + arg1, + retain: true, + release: true, + ), + arg2.address == 0 + ? null + : objc.NSError.castFromPointer( + arg2, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -60096,35 +65337,39 @@ abstract final class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock - listener(void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + listener( + void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - arg0.address == 0 - ? null - : objc.NSURL - .castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSURLResponse.castFromPointer(arg1, - retain: false, release: true), - arg2.address == 0 - ? null - : objc.NSError.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : objc.NSURL.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSURLResponse.castFromPointer(arg1, retain: false, release: true), + arg2.address == 0 + ? null + : objc.NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_r8gdi7(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, - objc.NSError?)>(wrapper, retain: false, release: true); + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -60137,90 +65382,109 @@ abstract final class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc - .ObjCBlock - blocking(void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + blocking( + void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - arg0.address == 0 - ? null - : objc.NSURL - .castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSURLResponse.castFromPointer(arg1, - retain: false, release: true), - arg2.address == 0 - ? null - : objc.NSError.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : objc.NSURL.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSURLResponse.castFromPointer(arg1, retain: false, release: true), + arg2.address == 0 + ? null + : objc.NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - arg0.address == 0 - ? null - : objc.NSURL - .castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSURLResponse.castFromPointer(arg1, - retain: false, release: true), - arg2.address == 0 - ? null - : objc.NSError.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : objc.NSURL.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSURLResponse.castFromPointer(arg1, retain: false, release: true), + arg2.address == 0 + ? null + : objc.NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_r8gdi7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, - objc.NSError?)>(wrapper, retain: false, release: true); + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_CallExtension on objc - .ObjCBlock { +extension ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > { void call(objc.NSURL? arg0, NSURLResponse? arg1, objc.NSError? arg2) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, - arg1?.ref.pointer ?? ffi.nullptr, - arg2?.ref.pointer ?? ffi.nullptr); -} - -late final _sel_downloadTaskWithRequest_completionHandler_ = - objc.registerName("downloadTaskWithRequest:completionHandler:"); -late final _sel_downloadTaskWithURL_completionHandler_ = - objc.registerName("downloadTaskWithURL:completionHandler:"); -late final _sel_downloadTaskWithResumeData_completionHandler_ = - objc.registerName("downloadTaskWithResumeData:completionHandler:"); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1?.ref.pointer ?? ffi.nullptr, + arg2?.ref.pointer ?? ffi.nullptr, + ); +} + +late final _sel_downloadTaskWithRequest_completionHandler_ = objc.registerName( + "downloadTaskWithRequest:completionHandler:", +); +late final _sel_downloadTaskWithURL_completionHandler_ = objc.registerName( + "downloadTaskWithURL:completionHandler:", +); +late final _sel_downloadTaskWithResumeData_completionHandler_ = objc + .registerName("downloadTaskWithResumeData:completionHandler:"); /// NSURLSession convenience routines deliver results to /// a completion handler block. These convenience routines @@ -60236,79 +65500,111 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { /// data. Errors will be returned in the NSURLErrorDomain, /// see . The delegate, if any, will still be /// called for authentication challenges. - NSURLSessionDataTask dataTaskWithRequest(NSURLRequest request, - {required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?)> - completionHandler}) { + NSURLSessionDataTask dataTaskWithRequest( + NSURLRequest request, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { objc.checkOsVersionInternal( - 'NSURLSession.dataTaskWithRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSession.dataTaskWithRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_dataTaskWithRequest_completionHandler_, - request.ref.pointer, - completionHandler.ref.pointer); - return NSURLSessionDataTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_dataTaskWithRequest_completionHandler_, + request.ref.pointer, + completionHandler.ref.pointer, + ); + return NSURLSessionDataTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// dataTaskWithURL:completionHandler: - NSURLSessionDataTask dataTaskWithURL(objc.NSURL url, - {required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?)> - completionHandler}) { + NSURLSessionDataTask dataTaskWithURL( + objc.NSURL url, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { objc.checkOsVersionInternal( - 'NSURLSession.dataTaskWithURL:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSession.dataTaskWithURL:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_dataTaskWithURL_completionHandler_, - url.ref.pointer, - completionHandler.ref.pointer); - return NSURLSessionDataTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_dataTaskWithURL_completionHandler_, + url.ref.pointer, + completionHandler.ref.pointer, + ); + return NSURLSessionDataTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// upload convenience method. - NSURLSessionUploadTask uploadTaskWithRequest(NSURLRequest request, - {required objc.NSURL fromFile, - required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?)> - completionHandler}) { + NSURLSessionUploadTask uploadTaskWithRequest( + NSURLRequest request, { + required objc.NSURL fromFile, + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { objc.checkOsVersionInternal( - 'NSURLSession.uploadTaskWithRequest:fromFile:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSession.uploadTaskWithRequest:fromFile:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_2wiv66( - this.ref.pointer, - _sel_uploadTaskWithRequest_fromFile_completionHandler_, - request.ref.pointer, - fromFile.ref.pointer, - completionHandler.ref.pointer); - return NSURLSessionUploadTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_uploadTaskWithRequest_fromFile_completionHandler_, + request.ref.pointer, + fromFile.ref.pointer, + completionHandler.ref.pointer, + ); + return NSURLSessionUploadTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// uploadTaskWithRequest:fromData:completionHandler: - NSURLSessionUploadTask uploadTaskWithRequest$1(NSURLRequest request, - {objc.NSData? fromData, - required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?)> - completionHandler}) { + NSURLSessionUploadTask uploadTaskWithRequest$1( + NSURLRequest request, { + objc.NSData? fromData, + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { objc.checkOsVersionInternal( - 'NSURLSession.uploadTaskWithRequest:fromData:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSession.uploadTaskWithRequest:fromData:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_2wiv66( - this.ref.pointer, - _sel_uploadTaskWithRequest_fromData_completionHandler_, - request.ref.pointer, - fromData?.ref.pointer ?? ffi.nullptr, - completionHandler.ref.pointer); - return NSURLSessionUploadTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_uploadTaskWithRequest_fromData_completionHandler_, + request.ref.pointer, + fromData?.ref.pointer ?? ffi.nullptr, + completionHandler.ref.pointer, + ); + return NSURLSessionUploadTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Creates a URLSessionUploadTask from a resume data blob. If resuming from an upload @@ -60317,252 +65613,373 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { /// - 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(objc.NSData resumeData, - {required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?)> - completionHandler}) { + NSURLSessionUploadTask uploadTaskWithResumeData( + objc.NSData resumeData, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { objc.checkOsVersionInternal( - 'NSURLSession.uploadTaskWithResumeData:completionHandler:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0))); + 'NSURLSession.uploadTaskWithResumeData:completionHandler:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_uploadTaskWithResumeData_completionHandler_, - resumeData.ref.pointer, - completionHandler.ref.pointer); - return NSURLSessionUploadTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_uploadTaskWithResumeData_completionHandler_, + resumeData.ref.pointer, + completionHandler.ref.pointer, + ); + return NSURLSessionUploadTask.castFromPointer( + _ret, + 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(NSURLRequest request, - {required objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?)> - completionHandler}) { + NSURLSessionDownloadTask downloadTaskWithRequest( + NSURLRequest request, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { objc.checkOsVersionInternal( - 'NSURLSession.downloadTaskWithRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSession.downloadTaskWithRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_downloadTaskWithRequest_completionHandler_, - request.ref.pointer, - completionHandler.ref.pointer); - return NSURLSessionDownloadTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_downloadTaskWithRequest_completionHandler_, + request.ref.pointer, + completionHandler.ref.pointer, + ); + return NSURLSessionDownloadTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// downloadTaskWithURL:completionHandler: - NSURLSessionDownloadTask downloadTaskWithURL(objc.NSURL url, - {required objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?)> - completionHandler}) { + NSURLSessionDownloadTask downloadTaskWithURL( + objc.NSURL url, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { objc.checkOsVersionInternal( - 'NSURLSession.downloadTaskWithURL:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSession.downloadTaskWithURL:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_downloadTaskWithURL_completionHandler_, - url.ref.pointer, - completionHandler.ref.pointer); - return NSURLSessionDownloadTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_downloadTaskWithURL_completionHandler_, + url.ref.pointer, + completionHandler.ref.pointer, + ); + return NSURLSessionDownloadTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// downloadTaskWithResumeData:completionHandler: - NSURLSessionDownloadTask downloadTaskWithResumeData(objc.NSData resumeData, - {required objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?)> - completionHandler}) { + NSURLSessionDownloadTask downloadTaskWithResumeData( + objc.NSData resumeData, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { objc.checkOsVersionInternal( - 'NSURLSession.downloadTaskWithResumeData:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSession.downloadTaskWithResumeData:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_downloadTaskWithResumeData_completionHandler_, - resumeData.ref.pointer, - completionHandler.ref.pointer); - return NSURLSessionDownloadTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_downloadTaskWithResumeData_completionHandler_, + resumeData.ref.pointer, + completionHandler.ref.pointer, + ); + return NSURLSessionDownloadTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } } late final _sel_sharedSession = objc.registerName("sharedSession"); -late final _class_NSURLSessionConfiguration = - objc.getClass("NSURLSessionConfiguration"); -late final _sel_backgroundSessionConfiguration_ = - objc.registerName("backgroundSessionConfiguration:"); +late final _class_NSURLSessionConfiguration = objc.getClass( + "NSURLSessionConfiguration", +); +late final _sel_backgroundSessionConfiguration_ = objc.registerName( + "backgroundSessionConfiguration:", +); /// NSURLSessionDeprecated extension NSURLSessionDeprecated on NSURLSessionConfiguration { /// backgroundSessionConfiguration: static NSURLSessionConfiguration backgroundSessionConfiguration( - objc.NSString identifier) { + objc.NSString identifier, + ) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.backgroundSessionConfiguration:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); - final _ret = _objc_msgSend_1sotr3r(_class_NSURLSessionConfiguration, - _sel_backgroundSessionConfiguration_, identifier.ref.pointer); - return NSURLSessionConfiguration.castFromPointer(_ret, - retain: true, release: true); - } -} - -late final _sel_defaultSessionConfiguration = - objc.registerName("defaultSessionConfiguration"); -late final _sel_ephemeralSessionConfiguration = - objc.registerName("ephemeralSessionConfiguration"); -late final _sel_backgroundSessionConfigurationWithIdentifier_ = - objc.registerName("backgroundSessionConfigurationWithIdentifier:"); + 'NSURLSessionConfiguration.backgroundSessionConfiguration:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSURLSessionConfiguration, + _sel_backgroundSessionConfiguration_, + identifier.ref.pointer, + ); + return NSURLSessionConfiguration.castFromPointer( + _ret, + retain: true, + release: true, + ); + } +} + +late final _sel_defaultSessionConfiguration = objc.registerName( + "defaultSessionConfiguration", +); +late final _sel_ephemeralSessionConfiguration = objc.registerName( + "ephemeralSessionConfiguration", +); +late final _sel_backgroundSessionConfigurationWithIdentifier_ = objc + .registerName("backgroundSessionConfigurationWithIdentifier:"); late final _sel_identifier = objc.registerName("identifier"); late final _sel_requestCachePolicy = objc.registerName("requestCachePolicy"); -late final _sel_setRequestCachePolicy_ = - objc.registerName("setRequestCachePolicy:"); -late final _sel_timeoutIntervalForRequest = - objc.registerName("timeoutIntervalForRequest"); -late final _sel_setTimeoutIntervalForRequest_ = - objc.registerName("setTimeoutIntervalForRequest:"); -late final _sel_timeoutIntervalForResource = - objc.registerName("timeoutIntervalForResource"); -late final _sel_setTimeoutIntervalForResource_ = - objc.registerName("setTimeoutIntervalForResource:"); -late final _sel_waitsForConnectivity = - objc.registerName("waitsForConnectivity"); -late final _sel_setWaitsForConnectivity_ = - objc.registerName("setWaitsForConnectivity:"); +late final _sel_setRequestCachePolicy_ = objc.registerName( + "setRequestCachePolicy:", +); +late final _sel_timeoutIntervalForRequest = objc.registerName( + "timeoutIntervalForRequest", +); +late final _sel_setTimeoutIntervalForRequest_ = objc.registerName( + "setTimeoutIntervalForRequest:", +); +late final _sel_timeoutIntervalForResource = objc.registerName( + "timeoutIntervalForResource", +); +late final _sel_setTimeoutIntervalForResource_ = objc.registerName( + "setTimeoutIntervalForResource:", +); +late final _sel_waitsForConnectivity = objc.registerName( + "waitsForConnectivity", +); +late final _sel_setWaitsForConnectivity_ = objc.registerName( + "setWaitsForConnectivity:", +); late final _sel_isDiscretionary = objc.registerName("isDiscretionary"); late final _sel_setDiscretionary_ = objc.registerName("setDiscretionary:"); -late final _sel_sharedContainerIdentifier = - objc.registerName("sharedContainerIdentifier"); -late final _sel_setSharedContainerIdentifier_ = - objc.registerName("setSharedContainerIdentifier:"); -late final _sel_sessionSendsLaunchEvents = - objc.registerName("sessionSendsLaunchEvents"); -late final _sel_setSessionSendsLaunchEvents_ = - objc.registerName("setSessionSendsLaunchEvents:"); -late final _sel_connectionProxyDictionary = - objc.registerName("connectionProxyDictionary"); -late final _sel_setConnectionProxyDictionary_ = - objc.registerName("setConnectionProxyDictionary:"); -late final _sel_TLSMinimumSupportedProtocol = - objc.registerName("TLSMinimumSupportedProtocol"); +late final _sel_sharedContainerIdentifier = objc.registerName( + "sharedContainerIdentifier", +); +late final _sel_setSharedContainerIdentifier_ = objc.registerName( + "setSharedContainerIdentifier:", +); +late final _sel_sessionSendsLaunchEvents = objc.registerName( + "sessionSendsLaunchEvents", +); +late final _sel_setSessionSendsLaunchEvents_ = objc.registerName( + "setSessionSendsLaunchEvents:", +); +late final _sel_connectionProxyDictionary = objc.registerName( + "connectionProxyDictionary", +); +late final _sel_setConnectionProxyDictionary_ = objc.registerName( + "setConnectionProxyDictionary:", +); +late final _sel_TLSMinimumSupportedProtocol = objc.registerName( + "TLSMinimumSupportedProtocol", +); final _objc_msgSend_cbopi9 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedInt Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_setTLSMinimumSupportedProtocol_ = - objc.registerName("setTLSMinimumSupportedProtocol:"); + int Function(ffi.Pointer, ffi.Pointer) + >(); +late final _sel_setTLSMinimumSupportedProtocol_ = objc.registerName( + "setTLSMinimumSupportedProtocol:", +); final _objc_msgSend_268k8x = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedInt)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); -late final _sel_TLSMaximumSupportedProtocol = - objc.registerName("TLSMaximumSupportedProtocol"); -late final _sel_setTLSMaximumSupportedProtocol_ = - objc.registerName("setTLSMaximumSupportedProtocol:"); -late final _sel_TLSMinimumSupportedProtocolVersion = - objc.registerName("TLSMinimumSupportedProtocolVersion"); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_TLSMaximumSupportedProtocol = objc.registerName( + "TLSMaximumSupportedProtocol", +); +late final _sel_setTLSMaximumSupportedProtocol_ = objc.registerName( + "setTLSMaximumSupportedProtocol:", +); +late final _sel_TLSMinimumSupportedProtocolVersion = objc.registerName( + "TLSMinimumSupportedProtocolVersion", +); final _objc_msgSend_9jpwfb = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Uint16 Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Uint16 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_setTLSMinimumSupportedProtocolVersion_ = - objc.registerName("setTLSMinimumSupportedProtocolVersion:"); + int Function(ffi.Pointer, ffi.Pointer) + >(); +late final _sel_setTLSMinimumSupportedProtocolVersion_ = objc.registerName( + "setTLSMinimumSupportedProtocolVersion:", +); final _objc_msgSend_1mvuct7 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Uint16)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint16, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); -late final _sel_TLSMaximumSupportedProtocolVersion = - objc.registerName("TLSMaximumSupportedProtocolVersion"); -late final _sel_setTLSMaximumSupportedProtocolVersion_ = - objc.registerName("setTLSMaximumSupportedProtocolVersion:"); -late final _sel_HTTPShouldSetCookies = - objc.registerName("HTTPShouldSetCookies"); -late final _sel_setHTTPShouldSetCookies_ = - objc.registerName("setHTTPShouldSetCookies:"); -late final _sel_HTTPCookieAcceptPolicy = - objc.registerName("HTTPCookieAcceptPolicy"); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_TLSMaximumSupportedProtocolVersion = objc.registerName( + "TLSMaximumSupportedProtocolVersion", +); +late final _sel_setTLSMaximumSupportedProtocolVersion_ = objc.registerName( + "setTLSMaximumSupportedProtocolVersion:", +); +late final _sel_HTTPShouldSetCookies = objc.registerName( + "HTTPShouldSetCookies", +); +late final _sel_setHTTPShouldSetCookies_ = objc.registerName( + "setHTTPShouldSetCookies:", +); +late final _sel_HTTPCookieAcceptPolicy = objc.registerName( + "HTTPCookieAcceptPolicy", +); final _objc_msgSend_104dkoq = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_setHTTPCookieAcceptPolicy_ = - objc.registerName("setHTTPCookieAcceptPolicy:"); + int Function(ffi.Pointer, ffi.Pointer) + >(); +late final _sel_setHTTPCookieAcceptPolicy_ = objc.registerName( + "setHTTPCookieAcceptPolicy:", +); final _objc_msgSend_3q55ys = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); -late final _sel_HTTPAdditionalHeaders = - objc.registerName("HTTPAdditionalHeaders"); -late final _sel_setHTTPAdditionalHeaders_ = - objc.registerName("setHTTPAdditionalHeaders:"); -late final _sel_HTTPMaximumConnectionsPerHost = - objc.registerName("HTTPMaximumConnectionsPerHost"); -late final _sel_setHTTPMaximumConnectionsPerHost_ = - objc.registerName("setHTTPMaximumConnectionsPerHost:"); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_HTTPAdditionalHeaders = objc.registerName( + "HTTPAdditionalHeaders", +); +late final _sel_setHTTPAdditionalHeaders_ = objc.registerName( + "setHTTPAdditionalHeaders:", +); +late final _sel_HTTPMaximumConnectionsPerHost = objc.registerName( + "HTTPMaximumConnectionsPerHost", +); +late final _sel_setHTTPMaximumConnectionsPerHost_ = objc.registerName( + "setHTTPMaximumConnectionsPerHost:", +); late final _sel_HTTPCookieStorage = objc.registerName("HTTPCookieStorage"); -late final _sel_setHTTPCookieStorage_ = - objc.registerName("setHTTPCookieStorage:"); +late final _sel_setHTTPCookieStorage_ = objc.registerName( + "setHTTPCookieStorage:", +); /// WARNING: NSURLCredentialStorage is a stub. To generate bindings for this class, include /// NSURLCredentialStorage in your config's objc-interfaces list. /// /// NSURLCredentialStorage class NSURLCredentialStorage extends objc.ObjCObjectBase { - NSURLCredentialStorage._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSURLCredentialStorage._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSURLCredentialStorage] that points to the same underlying object as [other]. NSURLCredentialStorage.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLCredentialStorage] that wraps the given raw object pointer. - NSURLCredentialStorage.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLCredentialStorage.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } -late final _sel_URLCredentialStorage = - objc.registerName("URLCredentialStorage"); -late final _sel_setURLCredentialStorage_ = - objc.registerName("setURLCredentialStorage:"); +late final _sel_URLCredentialStorage = objc.registerName( + "URLCredentialStorage", +); +late final _sel_setURLCredentialStorage_ = objc.registerName( + "setURLCredentialStorage:", +); late final _sel_URLCache = objc.registerName("URLCache"); late final _sel_setURLCache_ = objc.registerName("setURLCache:"); -late final _sel_shouldUseExtendedBackgroundIdleMode = - objc.registerName("shouldUseExtendedBackgroundIdleMode"); -late final _sel_setShouldUseExtendedBackgroundIdleMode_ = - objc.registerName("setShouldUseExtendedBackgroundIdleMode:"); +late final _sel_shouldUseExtendedBackgroundIdleMode = objc.registerName( + "shouldUseExtendedBackgroundIdleMode", +); +late final _sel_setShouldUseExtendedBackgroundIdleMode_ = objc.registerName( + "setShouldUseExtendedBackgroundIdleMode:", +); late final _sel_protocolClasses = objc.registerName("protocolClasses"); late final _sel_setProtocolClasses_ = objc.registerName("setProtocolClasses:"); @@ -60611,34 +66028,52 @@ enum NSURLSessionMultipathServiceType { 2 => NSURLSessionMultipathServiceTypeInteractive, 3 => NSURLSessionMultipathServiceTypeAggregate, _ => throw ArgumentError( - 'Unknown value for NSURLSessionMultipathServiceType: $value'), + 'Unknown value for NSURLSessionMultipathServiceType: $value', + ), }; } -late final _sel_multipathServiceType = - objc.registerName("multipathServiceType"); +late final _sel_multipathServiceType = objc.registerName( + "multipathServiceType", +); final _objc_msgSend_1wxwnc0 = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_setMultipathServiceType_ = - objc.registerName("setMultipathServiceType:"); + int Function(ffi.Pointer, ffi.Pointer) + >(); +late final _sel_setMultipathServiceType_ = objc.registerName( + "setMultipathServiceType:", +); final _objc_msgSend_1hx005a = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, NSInteger)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); -late final _sel_usesClassicLoadingMode = - objc.registerName("usesClassicLoadingMode"); -late final _sel_setUsesClassicLoadingMode_ = - objc.registerName("setUsesClassicLoadingMode:"); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_usesClassicLoadingMode = objc.registerName( + "usesClassicLoadingMode", +); +late final _sel_setUsesClassicLoadingMode_ = objc.registerName( + "setUsesClassicLoadingMode:", +); /// Configuration options for an NSURLSession. When a session is /// created, a copy of the configuration object is made - you cannot @@ -60654,71 +66089,102 @@ late final _sel_setUsesClassicLoadingMode_ = /// on behalf of a suspended application, within certain constraints. class NSURLSessionConfiguration extends objc.NSObject implements objc.NSCopying { - NSURLSessionConfiguration._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSURLSessionConfiguration', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + NSURLSessionConfiguration._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); } /// Constructs a [NSURLSessionConfiguration] that points to the same underlying object as [other]. NSURLSessionConfiguration.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionConfiguration] that wraps the given raw object pointer. - NSURLSessionConfiguration.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLSessionConfiguration.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURLSessionConfiguration]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSURLSessionConfiguration); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURLSessionConfiguration, + ); } /// defaultSessionConfiguration static NSURLSessionConfiguration getDefaultSessionConfiguration() { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.defaultSessionConfiguration', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.defaultSessionConfiguration', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz( - _class_NSURLSessionConfiguration, _sel_defaultSessionConfiguration); - return NSURLSessionConfiguration.castFromPointer(_ret, - retain: true, release: true); + _class_NSURLSessionConfiguration, + _sel_defaultSessionConfiguration, + ); + return NSURLSessionConfiguration.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// ephemeralSessionConfiguration static NSURLSessionConfiguration getEphemeralSessionConfiguration() { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.ephemeralSessionConfiguration', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.ephemeralSessionConfiguration', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz( - _class_NSURLSessionConfiguration, _sel_ephemeralSessionConfiguration); - return NSURLSessionConfiguration.castFromPointer(_ret, - retain: true, release: true); + _class_NSURLSessionConfiguration, + _sel_ephemeralSessionConfiguration, + ); + return NSURLSessionConfiguration.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// backgroundSessionConfigurationWithIdentifier: static NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier( - objc.NSString identifier) { + objc.NSString identifier, + ) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); + 'NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSURLSessionConfiguration, - _sel_backgroundSessionConfigurationWithIdentifier_, - identifier.ref.pointer); - return NSURLSessionConfiguration.castFromPointer(_ret, - retain: true, release: true); + _class_NSURLSessionConfiguration, + _sel_backgroundSessionConfigurationWithIdentifier_, + identifier.ref.pointer, + ); + return NSURLSessionConfiguration.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// identifier for the background session configuration objc.NSString? get identifier { - objc.checkOsVersionInternal('NSURLSessionConfiguration.identifier', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.identifier', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_identifier); return _ret.address == 0 ? null @@ -60727,165 +66193,227 @@ class NSURLSessionConfiguration extends objc.NSObject /// default cache policy for requests NSURLRequestCachePolicy get requestCachePolicy { - objc.checkOsVersionInternal('NSURLSessionConfiguration.requestCachePolicy', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - final _ret = - _objc_msgSend_8jm3uo(this.ref.pointer, _sel_requestCachePolicy); + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.requestCachePolicy', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_8jm3uo( + this.ref.pointer, + _sel_requestCachePolicy, + ); return NSURLRequestCachePolicy.fromValue(_ret); } /// default cache policy for requests set requestCachePolicy(NSURLRequestCachePolicy value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setRequestCachePolicy:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.setRequestCachePolicy:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_1yjxuv2( - this.ref.pointer, _sel_setRequestCachePolicy_, value.value); + this.ref.pointer, + _sel_setRequestCachePolicy_, + value.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. DartNSTimeInterval get timeoutIntervalForRequest { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.timeoutIntervalForRequest', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.timeoutIntervalForRequest', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); return objc.useMsgSendVariants ? _objc_msgSend_1ukqyt8Fpret( - this.ref.pointer, _sel_timeoutIntervalForRequest) + this.ref.pointer, + _sel_timeoutIntervalForRequest, + ) : _objc_msgSend_1ukqyt8( - this.ref.pointer, _sel_timeoutIntervalForRequest); + this.ref.pointer, + _sel_timeoutIntervalForRequest, + ); } /// 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(DartNSTimeInterval value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setTimeoutIntervalForRequest:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.setTimeoutIntervalForRequest:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_hwm8nu( - this.ref.pointer, _sel_setTimeoutIntervalForRequest_, value); + this.ref.pointer, + _sel_setTimeoutIntervalForRequest_, + value, + ); } /// default timeout for requests. This will cause a timeout if a resource is not able to be retrieved within a given timeout. DartNSTimeInterval get timeoutIntervalForResource { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.timeoutIntervalForResource', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.timeoutIntervalForResource', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); return objc.useMsgSendVariants ? _objc_msgSend_1ukqyt8Fpret( - this.ref.pointer, _sel_timeoutIntervalForResource) + this.ref.pointer, + _sel_timeoutIntervalForResource, + ) : _objc_msgSend_1ukqyt8( - this.ref.pointer, _sel_timeoutIntervalForResource); + this.ref.pointer, + _sel_timeoutIntervalForResource, + ); } /// default timeout for requests. This will cause a timeout if a resource is not able to be retrieved within a given timeout. set timeoutIntervalForResource(DartNSTimeInterval value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setTimeoutIntervalForResource:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.setTimeoutIntervalForResource:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_hwm8nu( - this.ref.pointer, _sel_setTimeoutIntervalForResource_, value); + this.ref.pointer, + _sel_setTimeoutIntervalForResource_, + value, + ); } /// type of service for requests. NSURLRequestNetworkServiceType get networkServiceType { - objc.checkOsVersionInternal('NSURLSessionConfiguration.networkServiceType', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - final _ret = - _objc_msgSend_t4uaw1(this.ref.pointer, _sel_networkServiceType); + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.networkServiceType', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_t4uaw1( + this.ref.pointer, + _sel_networkServiceType, + ); return NSURLRequestNetworkServiceType.fromValue(_ret); } /// type of service for requests. set networkServiceType(NSURLRequestNetworkServiceType value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setNetworkServiceType:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.setNetworkServiceType:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_1mse4s1( - this.ref.pointer, _sel_setNetworkServiceType_, value.value); + this.ref.pointer, + _sel_setNetworkServiceType_, + value.value, + ); } /// allow request to route over cellular. bool get allowsCellularAccess { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.allowsCellularAccess', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.allowsCellularAccess', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_allowsCellularAccess); } /// allow request to route over cellular. set allowsCellularAccess(bool value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setAllowsCellularAccess:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.setAllowsCellularAccess:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setAllowsCellularAccess_, value); + this.ref.pointer, + _sel_setAllowsCellularAccess_, + value, + ); } /// allow request to route over expensive networks. Defaults to YES. bool get allowsExpensiveNetworkAccess { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.allowsExpensiveNetworkAccess', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSURLSessionConfiguration.allowsExpensiveNetworkAccess', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); return _objc_msgSend_91o635( - this.ref.pointer, _sel_allowsExpensiveNetworkAccess); + this.ref.pointer, + _sel_allowsExpensiveNetworkAccess, + ); } /// allow request to route over expensive networks. Defaults to YES. set allowsExpensiveNetworkAccess(bool value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setAllowsExpensiveNetworkAccess:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSURLSessionConfiguration.setAllowsExpensiveNetworkAccess:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setAllowsExpensiveNetworkAccess_, value); + this.ref.pointer, + _sel_setAllowsExpensiveNetworkAccess_, + value, + ); } /// allow request to route over networks in constrained mode. Defaults to YES. bool get allowsConstrainedNetworkAccess { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.allowsConstrainedNetworkAccess', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSURLSessionConfiguration.allowsConstrainedNetworkAccess', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); return _objc_msgSend_91o635( - this.ref.pointer, _sel_allowsConstrainedNetworkAccess); + this.ref.pointer, + _sel_allowsConstrainedNetworkAccess, + ); } /// allow request to route over networks in constrained mode. Defaults to YES. set allowsConstrainedNetworkAccess(bool value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setAllowsConstrainedNetworkAccess:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSURLSessionConfiguration.setAllowsConstrainedNetworkAccess:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setAllowsConstrainedNetworkAccess_, value); + this.ref.pointer, + _sel_setAllowsConstrainedNetworkAccess_, + value, + ); } /// requires requests from the session to be made with DNSSEC validation enabled. Defaults to NO. bool get requiresDNSSECValidation { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.requiresDNSSECValidation', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0))); + 'NSURLSessionConfiguration.requiresDNSSECValidation', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); return _objc_msgSend_91o635( - this.ref.pointer, _sel_requiresDNSSECValidation); + this.ref.pointer, + _sel_requiresDNSSECValidation, + ); } /// requires requests from the session to be made with DNSSEC validation enabled. Defaults to NO. set requiresDNSSECValidation(bool value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setRequiresDNSSECValidation:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0))); + 'NSURLSessionConfiguration.setRequiresDNSSECValidation:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setRequiresDNSSECValidation_, value); + this.ref.pointer, + _sel_setRequiresDNSSECValidation_, + value, + ); } /// Causes tasks to wait for network connectivity to become available, rather @@ -60902,9 +66430,10 @@ class NSURLSessionConfiguration extends objc.NSObject /// always wait for connectivity. bool get waitsForConnectivity { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.waitsForConnectivity', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSURLSessionConfiguration.waitsForConnectivity', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_waitsForConnectivity); } @@ -60922,24 +66451,34 @@ class NSURLSessionConfiguration extends objc.NSObject /// always wait for connectivity. set waitsForConnectivity(bool value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setWaitsForConnectivity:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSURLSessionConfiguration.setWaitsForConnectivity:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setWaitsForConnectivity_, value); + this.ref.pointer, + _sel_setWaitsForConnectivity_, + value, + ); } /// allows background tasks to be scheduled at the discretion of the system for optimal performance. bool get discretionary { - objc.checkOsVersionInternal('NSURLSessionConfiguration.isDiscretionary', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 10, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.isDiscretionary', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 10, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_isDiscretionary); } /// allows background tasks to be scheduled at the discretion of the system for optimal performance. set discretionary(bool value) { - objc.checkOsVersionInternal('NSURLSessionConfiguration.setDiscretionary:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 10, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.setDiscretionary:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 10, 0)), + ); _objc_msgSend_1s56lr9(this.ref.pointer, _sel_setDiscretionary_, value); } @@ -60948,11 +66487,14 @@ class NSURLSessionConfiguration extends objc.NSObject /// all transfers in that session will fail with NSURLErrorBackgroundSessionRequiresSharedContainer. objc.NSString? get sharedContainerIdentifier { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.sharedContainerIdentifier', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_sharedContainerIdentifier); + 'NSURLSessionConfiguration.sharedContainerIdentifier', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_sharedContainerIdentifier, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); @@ -60963,11 +66505,15 @@ class NSURLSessionConfiguration extends objc.NSObject /// all transfers in that session will fail with NSURLErrorBackgroundSessionRequiresSharedContainer. set sharedContainerIdentifier(objc.NSString? value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setSharedContainerIdentifier:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setSharedContainerIdentifier_, - value?.ref.pointer ?? ffi.nullptr); + 'NSURLSessionConfiguration.setSharedContainerIdentifier:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setSharedContainerIdentifier_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// Allows the app to be resumed or launched in the background when tasks in background sessions complete @@ -60977,11 +66523,14 @@ class NSURLSessionConfiguration extends objc.NSObject /// NOTE: macOS apps based on AppKit do not support background launch. bool get sessionSendsLaunchEvents { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.sessionSendsLaunchEvents', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0))); + 'NSURLSessionConfiguration.sessionSendsLaunchEvents', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); return _objc_msgSend_91o635( - this.ref.pointer, _sel_sessionSendsLaunchEvents); + this.ref.pointer, + _sel_sessionSendsLaunchEvents, + ); } /// Allows the app to be resumed or launched in the background when tasks in background sessions complete @@ -60991,21 +66540,28 @@ class NSURLSessionConfiguration extends objc.NSObject /// NOTE: macOS apps based on AppKit do not support background launch. set sessionSendsLaunchEvents(bool value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setSessionSendsLaunchEvents:', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0))); + 'NSURLSessionConfiguration.setSessionSendsLaunchEvents:', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setSessionSendsLaunchEvents_, value); + this.ref.pointer, + _sel_setSessionSendsLaunchEvents_, + value, + ); } /// The proxy dictionary, as described by objc.NSDictionary? get connectionProxyDictionary { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.connectionProxyDictionary', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_connectionProxyDictionary); + 'NSURLSessionConfiguration.connectionProxyDictionary', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_connectionProxyDictionary, + ); return _ret.address == 0 ? null : objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); @@ -61014,165 +66570,217 @@ class NSURLSessionConfiguration extends objc.NSObject /// The proxy dictionary, as described by set connectionProxyDictionary(objc.NSDictionary? value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setConnectionProxyDictionary:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setConnectionProxyDictionary_, - value?.ref.pointer ?? ffi.nullptr); + 'NSURLSessionConfiguration.setConnectionProxyDictionary:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setConnectionProxyDictionary_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// The minimum allowable versions of the TLS protocol, from SSLProtocol get TLSMinimumSupportedProtocol { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.TLSMinimumSupportedProtocol', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.TLSMinimumSupportedProtocol', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_cbopi9( - this.ref.pointer, _sel_TLSMinimumSupportedProtocol); + this.ref.pointer, + _sel_TLSMinimumSupportedProtocol, + ); return SSLProtocol.fromValue(_ret); } /// The minimum allowable versions of the TLS protocol, from set TLSMinimumSupportedProtocol(SSLProtocol value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setTLSMinimumSupportedProtocol:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.setTLSMinimumSupportedProtocol:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_268k8x( - this.ref.pointer, _sel_setTLSMinimumSupportedProtocol_, value.value); + this.ref.pointer, + _sel_setTLSMinimumSupportedProtocol_, + value.value, + ); } /// The maximum allowable versions of the TLS protocol, from SSLProtocol get TLSMaximumSupportedProtocol { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.TLSMaximumSupportedProtocol', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.TLSMaximumSupportedProtocol', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_cbopi9( - this.ref.pointer, _sel_TLSMaximumSupportedProtocol); + this.ref.pointer, + _sel_TLSMaximumSupportedProtocol, + ); return SSLProtocol.fromValue(_ret); } /// The maximum allowable versions of the TLS protocol, from set TLSMaximumSupportedProtocol(SSLProtocol value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setTLSMaximumSupportedProtocol:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.setTLSMaximumSupportedProtocol:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_268k8x( - this.ref.pointer, _sel_setTLSMaximumSupportedProtocol_, value.value); + this.ref.pointer, + _sel_setTLSMaximumSupportedProtocol_, + value.value, + ); } /// The minimum allowable versions of the TLS protocol, from tls_protocol_version_t get TLSMinimumSupportedProtocolVersion { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.TLSMinimumSupportedProtocolVersion', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSURLSessionConfiguration.TLSMinimumSupportedProtocolVersion', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_9jpwfb( - this.ref.pointer, _sel_TLSMinimumSupportedProtocolVersion); + this.ref.pointer, + _sel_TLSMinimumSupportedProtocolVersion, + ); return tls_protocol_version_t.fromValue(_ret); } /// The minimum allowable versions of the TLS protocol, from set TLSMinimumSupportedProtocolVersion(tls_protocol_version_t value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setTLSMinimumSupportedProtocolVersion:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); - _objc_msgSend_1mvuct7(this.ref.pointer, - _sel_setTLSMinimumSupportedProtocolVersion_, value.value); + 'NSURLSessionConfiguration.setTLSMinimumSupportedProtocolVersion:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + _objc_msgSend_1mvuct7( + this.ref.pointer, + _sel_setTLSMinimumSupportedProtocolVersion_, + value.value, + ); } /// The maximum allowable versions of the TLS protocol, from tls_protocol_version_t get TLSMaximumSupportedProtocolVersion { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.TLSMaximumSupportedProtocolVersion', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSURLSessionConfiguration.TLSMaximumSupportedProtocolVersion', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_9jpwfb( - this.ref.pointer, _sel_TLSMaximumSupportedProtocolVersion); + this.ref.pointer, + _sel_TLSMaximumSupportedProtocolVersion, + ); return tls_protocol_version_t.fromValue(_ret); } /// The maximum allowable versions of the TLS protocol, from set TLSMaximumSupportedProtocolVersion(tls_protocol_version_t value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setTLSMaximumSupportedProtocolVersion:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); - _objc_msgSend_1mvuct7(this.ref.pointer, - _sel_setTLSMaximumSupportedProtocolVersion_, value.value); + 'NSURLSessionConfiguration.setTLSMaximumSupportedProtocolVersion:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + _objc_msgSend_1mvuct7( + this.ref.pointer, + _sel_setTLSMaximumSupportedProtocolVersion_, + value.value, + ); } /// Allow the use of HTTP pipelining bool get HTTPShouldUsePipelining { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.HTTPShouldUsePipelining', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.HTTPShouldUsePipelining', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_HTTPShouldUsePipelining); } /// Allow the use of HTTP pipelining set HTTPShouldUsePipelining(bool value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setHTTPShouldUsePipelining:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.setHTTPShouldUsePipelining:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setHTTPShouldUsePipelining_, value); + this.ref.pointer, + _sel_setHTTPShouldUsePipelining_, + value, + ); } /// Allow the session to set cookies on requests bool get HTTPShouldSetCookies { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.HTTPShouldSetCookies', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.HTTPShouldSetCookies', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_HTTPShouldSetCookies); } /// Allow the session to set cookies on requests set HTTPShouldSetCookies(bool value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setHTTPShouldSetCookies:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.setHTTPShouldSetCookies:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setHTTPShouldSetCookies_, value); + this.ref.pointer, + _sel_setHTTPShouldSetCookies_, + value, + ); } /// Policy for accepting cookies. This overrides the policy otherwise specified by the cookie storage. NSHTTPCookieAcceptPolicy get HTTPCookieAcceptPolicy { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.HTTPCookieAcceptPolicy', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); - final _ret = - _objc_msgSend_104dkoq(this.ref.pointer, _sel_HTTPCookieAcceptPolicy); + 'NSURLSessionConfiguration.HTTPCookieAcceptPolicy', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_104dkoq( + this.ref.pointer, + _sel_HTTPCookieAcceptPolicy, + ); return NSHTTPCookieAcceptPolicy.fromValue(_ret); } /// Policy for accepting cookies. This overrides the policy otherwise specified by the cookie storage. set HTTPCookieAcceptPolicy(NSHTTPCookieAcceptPolicy value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setHTTPCookieAcceptPolicy:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.setHTTPCookieAcceptPolicy:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_3q55ys( - this.ref.pointer, _sel_setHTTPCookieAcceptPolicy_, value.value); + this.ref.pointer, + _sel_setHTTPCookieAcceptPolicy_, + value.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. objc.NSDictionary? get HTTPAdditionalHeaders { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.HTTPAdditionalHeaders', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_HTTPAdditionalHeaders); + 'NSURLSessionConfiguration.HTTPAdditionalHeaders', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_HTTPAdditionalHeaders, + ); return _ret.address == 0 ? null : objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); @@ -61182,83 +66790,119 @@ class NSURLSessionConfiguration extends objc.NSObject /// Note that these headers are added to the request only if not already present. set HTTPAdditionalHeaders(objc.NSDictionary? value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setHTTPAdditionalHeaders:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setHTTPAdditionalHeaders_, - value?.ref.pointer ?? ffi.nullptr); + 'NSURLSessionConfiguration.setHTTPAdditionalHeaders:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setHTTPAdditionalHeaders_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// The maximum number of simultaneous persistent connections per host DartNSInteger get HTTPMaximumConnectionsPerHost { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.HTTPMaximumConnectionsPerHost', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.HTTPMaximumConnectionsPerHost', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); return _objc_msgSend_1hz7y9r( - this.ref.pointer, _sel_HTTPMaximumConnectionsPerHost); + this.ref.pointer, + _sel_HTTPMaximumConnectionsPerHost, + ); } /// The maximum number of simultaneous persistent connections per host set HTTPMaximumConnectionsPerHost(DartNSInteger value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setHTTPMaximumConnectionsPerHost:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSessionConfiguration.setHTTPMaximumConnectionsPerHost:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_4sp4xj( - this.ref.pointer, _sel_setHTTPMaximumConnectionsPerHost_, value); + this.ref.pointer, + _sel_setHTTPMaximumConnectionsPerHost_, + value, + ); } /// The cookie storage object to use, or nil to indicate that no cookies should be handled NSHTTPCookieStorage? get HTTPCookieStorage { - objc.checkOsVersionInternal('NSURLSessionConfiguration.HTTPCookieStorage', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_HTTPCookieStorage); + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.HTTPCookieStorage', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_HTTPCookieStorage, + ); return _ret.address == 0 ? null - : NSHTTPCookieStorage.castFromPointer(_ret, - retain: true, release: true); + : NSHTTPCookieStorage.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// The cookie storage object to use, or nil to indicate that no cookies should be handled set HTTPCookieStorage(NSHTTPCookieStorage? value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setHTTPCookieStorage:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setHTTPCookieStorage_, - value?.ref.pointer ?? ffi.nullptr); + 'NSURLSessionConfiguration.setHTTPCookieStorage:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setHTTPCookieStorage_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// The credential storage object, or nil to indicate that no credential storage is to be used NSURLCredentialStorage? get URLCredentialStorage { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.URLCredentialStorage', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_URLCredentialStorage); + 'NSURLSessionConfiguration.URLCredentialStorage', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_URLCredentialStorage, + ); return _ret.address == 0 ? null - : NSURLCredentialStorage.castFromPointer(_ret, - retain: true, release: true); + : NSURLCredentialStorage.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// The credential storage object, or nil to indicate that no credential storage is to be used set URLCredentialStorage(NSURLCredentialStorage? value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setURLCredentialStorage:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setURLCredentialStorage_, - value?.ref.pointer ?? ffi.nullptr); + 'NSURLSessionConfiguration.setURLCredentialStorage:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setURLCredentialStorage_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// The URL resource cache, or nil to indicate that no caching is to be performed NSURLCache? get URLCache { - objc.checkOsVersionInternal('NSURLSessionConfiguration.URLCache', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.URLCache', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_URLCache); return _ret.address == 0 ? null @@ -61267,30 +66911,43 @@ class NSURLSessionConfiguration extends objc.NSObject /// The URL resource cache, or nil to indicate that no caching is to be performed set URLCache(NSURLCache? value) { - objc.checkOsVersionInternal('NSURLSessionConfiguration.setURLCache:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.setURLCache:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_setURLCache_, value?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_setURLCache_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// shouldUseExtendedBackgroundIdleMode bool get shouldUseExtendedBackgroundIdleMode { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.shouldUseExtendedBackgroundIdleMode', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0))); + 'NSURLSessionConfiguration.shouldUseExtendedBackgroundIdleMode', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); return _objc_msgSend_91o635( - this.ref.pointer, _sel_shouldUseExtendedBackgroundIdleMode); + this.ref.pointer, + _sel_shouldUseExtendedBackgroundIdleMode, + ); } /// setShouldUseExtendedBackgroundIdleMode: set shouldUseExtendedBackgroundIdleMode(bool value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setShouldUseExtendedBackgroundIdleMode:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0))); + 'NSURLSessionConfiguration.setShouldUseExtendedBackgroundIdleMode:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setShouldUseExtendedBackgroundIdleMode_, value); + this.ref.pointer, + _sel_setShouldUseExtendedBackgroundIdleMode_, + value, + ); } /// An optional array of Class objects which subclass NSURLProtocol. @@ -61302,8 +66959,11 @@ class NSURLSessionConfiguration extends objc.NSObject /// Custom NSURLProtocol subclasses are not available to background /// sessions. objc.NSArray? get protocolClasses { - objc.checkOsVersionInternal('NSURLSessionConfiguration.protocolClasses', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.protocolClasses', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_protocolClasses); return _ret.address == 0 ? null @@ -61319,31 +66979,44 @@ class NSURLSessionConfiguration extends objc.NSObject /// Custom NSURLProtocol subclasses are not available to background /// sessions. set protocolClasses(objc.NSArray? value) { - objc.checkOsVersionInternal('NSURLSessionConfiguration.setProtocolClasses:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setProtocolClasses_, - value?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.setProtocolClasses:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setProtocolClasses_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// multipath service type to use for connections. The default is NSURLSessionMultipathServiceTypeNone NSURLSessionMultipathServiceType get multipathServiceType { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.multipathServiceType', - iOS: (false, (11, 0, 0)), - macOS: (true, null)); - final _ret = - _objc_msgSend_1wxwnc0(this.ref.pointer, _sel_multipathServiceType); + 'NSURLSessionConfiguration.multipathServiceType', + iOS: (false, (11, 0, 0)), + macOS: (true, null), + ); + final _ret = _objc_msgSend_1wxwnc0( + this.ref.pointer, + _sel_multipathServiceType, + ); return NSURLSessionMultipathServiceType.fromValue(_ret); } /// multipath service type to use for connections. The default is NSURLSessionMultipathServiceTypeNone set multipathServiceType(NSURLSessionMultipathServiceType value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setMultipathServiceType:', - iOS: (false, (11, 0, 0)), - macOS: (true, null)); + 'NSURLSessionConfiguration.setMultipathServiceType:', + iOS: (false, (11, 0, 0)), + macOS: (true, null), + ); _objc_msgSend_1hx005a( - this.ref.pointer, _sel_setMultipathServiceType_, value.value); + this.ref.pointer, + _sel_setMultipathServiceType_, + value.value, + ); } /// Uses the classic network loader. @@ -61353,9 +67026,10 @@ class NSURLSessionConfiguration extends objc.NSObject /// Defaults to YES. The default may be NO in a future OS update. bool get usesClassicLoadingMode { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.usesClassicLoadingMode', - iOS: (false, (18, 4, 0)), - macOS: (false, (15, 4, 0))); + 'NSURLSessionConfiguration.usesClassicLoadingMode', + iOS: (false, (18, 4, 0)), + macOS: (false, (15, 4, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_usesClassicLoadingMode); } @@ -61366,75 +67040,114 @@ class NSURLSessionConfiguration extends objc.NSObject /// Defaults to YES. The default may be NO in a future OS update. set usesClassicLoadingMode(bool value) { objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.setUsesClassicLoadingMode:', - iOS: (false, (18, 4, 0)), - macOS: (false, (15, 4, 0))); + 'NSURLSessionConfiguration.setUsesClassicLoadingMode:', + iOS: (false, (18, 4, 0)), + macOS: (false, (15, 4, 0)), + ); _objc_msgSend_1s56lr9( - this.ref.pointer, _sel_setUsesClassicLoadingMode_, value); + this.ref.pointer, + _sel_setUsesClassicLoadingMode_, + value, + ); } /// init NSURLSessionConfiguration init() { - objc.checkOsVersionInternal('NSURLSessionConfiguration.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); - return NSURLSessionConfiguration.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSURLSessionConfiguration.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// new static NSURLSessionConfiguration new$() { - final _ret = - _objc_msgSend_151sglz(_class_NSURLSessionConfiguration, _sel_new); - return NSURLSessionConfiguration.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_151sglz( + _class_NSURLSessionConfiguration, + _sel_new, + ); + return NSURLSessionConfiguration.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// allocWithZone: static NSURLSessionConfiguration allocWithZone( - ffi.Pointer zone) { + ffi.Pointer zone, + ) { final _ret = _objc_msgSend_1cwp428( - _class_NSURLSessionConfiguration, _sel_allocWithZone_, zone); - return NSURLSessionConfiguration.castFromPointer(_ret, - retain: false, release: true); + _class_NSURLSessionConfiguration, + _sel_allocWithZone_, + zone, + ); + return NSURLSessionConfiguration.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// alloc static NSURLSessionConfiguration alloc() { - final _ret = - _objc_msgSend_151sglz(_class_NSURLSessionConfiguration, _sel_alloc); - return NSURLSessionConfiguration.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_151sglz( + _class_NSURLSessionConfiguration, + _sel_alloc, + ); + return NSURLSessionConfiguration.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// self NSURLSessionConfiguration self$1() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSURLSessionConfiguration.castFromPointer(_ret, - retain: true, release: true); + return NSURLSessionConfiguration.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// retain NSURLSessionConfiguration retain() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSURLSessionConfiguration.castFromPointer(_ret, - retain: true, release: true); + return NSURLSessionConfiguration.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// autorelease NSURLSessionConfiguration autorelease() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSURLSessionConfiguration.castFromPointer(_ret, - retain: true, release: true); + return NSURLSessionConfiguration.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Returns a new instance of NSURLSessionConfiguration constructed with the default `new` method. factory NSURLSessionConfiguration() => new$(); } -late final _sel_sessionWithConfiguration_ = - objc.registerName("sessionWithConfiguration:"); +late final _sel_sessionWithConfiguration_ = objc.registerName( + "sessionWithConfiguration:", +); /// WARNING: NSURLSessionDelegate is a stub. To generate bindings for this class, include /// NSURLSessionDelegate in your config's objc-protocols list. @@ -61442,18 +67155,22 @@ late final _sel_sessionWithConfiguration_ = /// Messages related to the URL session as a whole interface class NSURLSessionDelegate extends objc.ObjCProtocolBase implements objc.NSObjectProtocol { - NSURLSessionDelegate._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSURLSessionDelegate._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSURLSessionDelegate] that points to the same underlying object as [other]. NSURLSessionDelegate.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionDelegate] that wraps the given raw object pointer. - NSURLSessionDelegate.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLSessionDelegate.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } late final _class_NSOperationQueue = objc.getClass("NSOperationQueue"); @@ -61464,16 +67181,22 @@ late final _sel_operationCount = objc.registerName("operationCount"); extension NSDeprecated$1 on NSOperationQueue { /// These two functions are inherently a race condition and should be avoided if possible objc.NSArray get operations { - objc.checkOsVersionInternal('NSOperationQueue.operations', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.operations', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_operations); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// operationCount DartNSUInteger get operationCount { - objc.checkOsVersionInternal('NSOperationQueue.operationCount', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.operationCount', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_operationCount); } } @@ -61483,47 +67206,63 @@ extension NSDeprecated$1 on NSOperationQueue { /// /// NSOperation class NSOperation extends objc.NSObject { - NSOperation._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSOperation', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + NSOperation._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSOperation', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); } /// Constructs a [NSOperation] that points to the same underlying object as [other]. NSOperation.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSOperation] that wraps the given raw object pointer. - NSOperation.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSOperation.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } late final _sel_addOperation_ = objc.registerName("addOperation:"); -late final _sel_addOperations_waitUntilFinished_ = - objc.registerName("addOperations:waitUntilFinished:"); +late final _sel_addOperations_waitUntilFinished_ = objc.registerName( + "addOperations:waitUntilFinished:", +); final _objc_msgSend_6p7ndb = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool)>(); -late final _sel_addOperationWithBlock_ = - objc.registerName("addOperationWithBlock:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +late final _sel_addOperationWithBlock_ = objc.registerName( + "addOperationWithBlock:", +); late final _sel_addBarrierBlock_ = objc.registerName("addBarrierBlock:"); -late final _sel_maxConcurrentOperationCount = - objc.registerName("maxConcurrentOperationCount"); -late final _sel_setMaxConcurrentOperationCount_ = - objc.registerName("setMaxConcurrentOperationCount:"); +late final _sel_maxConcurrentOperationCount = objc.registerName( + "maxConcurrentOperationCount", +); +late final _sel_setMaxConcurrentOperationCount_ = objc.registerName( + "setMaxConcurrentOperationCount:", +); late final _sel_isSuspended = objc.registerName("isSuspended"); late final _sel_setSuspended_ = objc.registerName("setSuspended:"); late final _sel_name = objc.registerName("name"); @@ -61531,49 +67270,71 @@ late final _sel_setName_ = objc.registerName("setName:"); late final _sel_qualityOfService = objc.registerName("qualityOfService"); final _objc_msgSend_oi8iq9 = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_setQualityOfService_ = - objc.registerName("setQualityOfService:"); + int Function(ffi.Pointer, ffi.Pointer) + >(); +late final _sel_setQualityOfService_ = objc.registerName( + "setQualityOfService:", +); final _objc_msgSend_n2da1l = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, NSInteger)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_underlyingQueue = objc.registerName("underlyingQueue"); late final _sel_setUnderlyingQueue_ = objc.registerName("setUnderlyingQueue:"); late final _sel_cancelAllOperations = objc.registerName("cancelAllOperations"); -late final _sel_waitUntilAllOperationsAreFinished = - objc.registerName("waitUntilAllOperationsAreFinished"); +late final _sel_waitUntilAllOperationsAreFinished = objc.registerName( + "waitUntilAllOperationsAreFinished", +); late final _sel_currentQueue = objc.registerName("currentQueue"); late final _sel_mainQueue = objc.registerName("mainQueue"); /// NSOperationQueue class NSOperationQueue extends objc.NSObject implements NSProgressReporting { - NSOperationQueue._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSOperationQueue._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSOperationQueue] that points to the same underlying object as [other]. NSOperationQueue.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSOperationQueue] that wraps the given raw object pointer. - NSOperationQueue.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSOperationQueue.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSOperationQueue]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSOperationQueue); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSOperationQueue, + ); } /// progress @@ -61584,30 +67345,41 @@ class NSOperationQueue extends objc.NSObject implements NSProgressReporting { /// addOperation: void addOperation(NSOperation op) { - objc.checkOsVersionInternal('NSOperationQueue.addOperation:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.addOperation:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_xtuoz7(this.ref.pointer, _sel_addOperation_, op.ref.pointer); } /// addOperations:waitUntilFinished: void addOperations(objc.NSArray ops, {required bool waitUntilFinished}) { objc.checkOsVersionInternal( - 'NSOperationQueue.addOperations:waitUntilFinished:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0))); + 'NSOperationQueue.addOperations:waitUntilFinished:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); _objc_msgSend_6p7ndb( - this.ref.pointer, - _sel_addOperations_waitUntilFinished_, - ops.ref.pointer, - waitUntilFinished); + this.ref.pointer, + _sel_addOperations_waitUntilFinished_, + ops.ref.pointer, + waitUntilFinished, + ); } /// addOperationWithBlock: void addOperationWithBlock(objc.ObjCBlock block) { - objc.checkOsVersionInternal('NSOperationQueue.addOperationWithBlock:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.addOperationWithBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); _objc_msgSend_f167m6( - this.ref.pointer, _sel_addOperationWithBlock_, block.ref.pointer); + this.ref.pointer, + _sel_addOperationWithBlock_, + block.ref.pointer, + ); } /// @method addBarrierBlock: @@ -61616,48 +67388,72 @@ class NSOperationQueue extends objc.NSObject implements NSProgressReporting { /// prevents any subsequent operations to be executed until the barrier has been completed. This acts similarly to the /// `dispatch_barrier_async` function. void addBarrierBlock(objc.ObjCBlock barrier) { - objc.checkOsVersionInternal('NSOperationQueue.addBarrierBlock:', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.addBarrierBlock:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); _objc_msgSend_f167m6( - this.ref.pointer, _sel_addBarrierBlock_, barrier.ref.pointer); + this.ref.pointer, + _sel_addBarrierBlock_, + barrier.ref.pointer, + ); } /// maxConcurrentOperationCount DartNSInteger get maxConcurrentOperationCount { - objc.checkOsVersionInternal('NSOperationQueue.maxConcurrentOperationCount', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.maxConcurrentOperationCount', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_1hz7y9r( - this.ref.pointer, _sel_maxConcurrentOperationCount); + this.ref.pointer, + _sel_maxConcurrentOperationCount, + ); } /// setMaxConcurrentOperationCount: set maxConcurrentOperationCount(DartNSInteger value) { objc.checkOsVersionInternal( - 'NSOperationQueue.setMaxConcurrentOperationCount:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0))); + 'NSOperationQueue.setMaxConcurrentOperationCount:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_4sp4xj( - this.ref.pointer, _sel_setMaxConcurrentOperationCount_, value); + this.ref.pointer, + _sel_setMaxConcurrentOperationCount_, + value, + ); } /// isSuspended bool get suspended { - objc.checkOsVersionInternal('NSOperationQueue.isSuspended', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.isSuspended', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_isSuspended); } /// setSuspended: set suspended(bool value) { - objc.checkOsVersionInternal('NSOperationQueue.setSuspended:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.setSuspended:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1s56lr9(this.ref.pointer, _sel_setSuspended_, value); } /// name objc.NSString? get name { - objc.checkOsVersionInternal('NSOperationQueue.name', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.name', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_name); return _ret.address == 0 ? null @@ -61666,32 +67462,50 @@ class NSOperationQueue extends objc.NSObject implements NSProgressReporting { /// setName: set name(objc.NSString? value) { - objc.checkOsVersionInternal('NSOperationQueue.setName:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.setName:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_setName_, value?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_setName_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// qualityOfService objc.NSQualityOfService get qualityOfService { - objc.checkOsVersionInternal('NSOperationQueue.qualityOfService', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.qualityOfService', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); final _ret = _objc_msgSend_oi8iq9(this.ref.pointer, _sel_qualityOfService); return objc.NSQualityOfService.fromValue(_ret); } /// setQualityOfService: set qualityOfService(objc.NSQualityOfService value) { - objc.checkOsVersionInternal('NSOperationQueue.setQualityOfService:', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.setQualityOfService:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); _objc_msgSend_n2da1l( - this.ref.pointer, _sel_setQualityOfService_, value.value); + this.ref.pointer, + _sel_setQualityOfService_, + value.value, + ); } /// actually retain Dartdispatch_queue_t? get underlyingQueue { - objc.checkOsVersionInternal('NSOperationQueue.underlyingQueue', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.underlyingQueue', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_underlyingQueue); return _ret.address == 0 ? null @@ -61700,35 +67514,52 @@ class NSOperationQueue extends objc.NSObject implements NSProgressReporting { /// actually retain set underlyingQueue(Dartdispatch_queue_t? value) { - objc.checkOsVersionInternal('NSOperationQueue.setUnderlyingQueue:', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setUnderlyingQueue_, - value?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSOperationQueue.setUnderlyingQueue:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setUnderlyingQueue_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// cancelAllOperations void cancelAllOperations() { - objc.checkOsVersionInternal('NSOperationQueue.cancelAllOperations', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.cancelAllOperations', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_cancelAllOperations); } /// waitUntilAllOperationsAreFinished void waitUntilAllOperationsAreFinished() { objc.checkOsVersionInternal( - 'NSOperationQueue.waitUntilAllOperationsAreFinished', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0))); + 'NSOperationQueue.waitUntilAllOperationsAreFinished', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1pl9qdv( - this.ref.pointer, _sel_waitUntilAllOperationsAreFinished); + this.ref.pointer, + _sel_waitUntilAllOperationsAreFinished, + ); } /// currentQueue static NSOperationQueue? getCurrentQueue() { - objc.checkOsVersionInternal('NSOperationQueue.currentQueue', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); - final _ret = - _objc_msgSend_151sglz(_class_NSOperationQueue, _sel_currentQueue); + objc.checkOsVersionInternal( + 'NSOperationQueue.currentQueue', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_151sglz( + _class_NSOperationQueue, + _sel_currentQueue, + ); return _ret.address == 0 ? null : NSOperationQueue.castFromPointer(_ret, retain: true, release: true); @@ -61736,18 +67567,26 @@ class NSOperationQueue extends objc.NSObject implements NSProgressReporting { /// mainQueue static NSOperationQueue getMainQueue() { - objc.checkOsVersionInternal('NSOperationQueue.mainQueue', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSOperationQueue.mainQueue', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_151sglz(_class_NSOperationQueue, _sel_mainQueue); return NSOperationQueue.castFromPointer(_ret, retain: true, release: true); } /// init NSOperationQueue init() { - objc.checkOsVersionInternal('NSOperationQueue.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSOperationQueue.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSOperationQueue.castFromPointer(_ret, retain: false, release: true); } @@ -61760,7 +67599,10 @@ class NSOperationQueue extends objc.NSObject implements NSProgressReporting { /// allocWithZone: static NSOperationQueue allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( - _class_NSOperationQueue, _sel_allocWithZone_, zone); + _class_NSOperationQueue, + _sel_allocWithZone_, + zone, + ); return NSOperationQueue.castFromPointer(_ret, retain: false, release: true); } @@ -61792,103 +67634,126 @@ class NSOperationQueue extends objc.NSObject implements NSProgressReporting { factory NSOperationQueue() => new$(); } -late final _sel_sessionWithConfiguration_delegate_delegateQueue_ = - objc.registerName("sessionWithConfiguration:delegate:delegateQueue:"); +late final _sel_sessionWithConfiguration_delegate_delegateQueue_ = objc + .registerName("sessionWithConfiguration:delegate:delegateQueue:"); late final _sel_delegateQueue = objc.registerName("delegateQueue"); late final _sel_configuration = objc.registerName("configuration"); late final _sel_sessionDescription = objc.registerName("sessionDescription"); -late final _sel_setSessionDescription_ = - objc.registerName("setSessionDescription:"); -late final _sel_finishTasksAndInvalidate = - objc.registerName("finishTasksAndInvalidate"); +late final _sel_setSessionDescription_ = objc.registerName( + "setSessionDescription:", +); +late final _sel_finishTasksAndInvalidate = objc.registerName( + "finishTasksAndInvalidate", +); late final _sel_invalidateAndCancel = objc.registerName("invalidateAndCancel"); -late final _sel_resetWithCompletionHandler_ = - objc.registerName("resetWithCompletionHandler:"); -late final _sel_flushWithCompletionHandler_ = - objc.registerName("flushWithCompletionHandler:"); +late final _sel_resetWithCompletionHandler_ = objc.registerName( + "resetWithCompletionHandler:", +); +late final _sel_flushWithCompletionHandler_ = objc.registerName( + "flushWithCompletionHandler:", +); void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); ffi.Pointer _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureCallable = +_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_listenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -61897,68 +67762,93 @@ void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray { /// Returns a block that wraps the given raw block pointer. - static objc - .ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(objc.NSArray, objc.NSArray, - objc.NSArray)>(pointer, retain: retain, release: release); + static objc.ObjCBlock< + ffi.Void Function(objc.NSArray, objc.NSArray, objc.NSArray) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSArray, objc.NSArray, objc.NSArray) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(objc.NSArray, objc.NSArray, objc.NSArray) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(objc.NSArray, objc.NSArray, objc.NSArray) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -61968,19 +67858,32 @@ abstract final class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSArray, objc.NSArray, objc.NSArray) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( - objc.NSArray.castFromPointer(arg0, retain: true, release: true), - objc.NSArray.castFromPointer(arg1, retain: true, release: true), - objc.NSArray.castFromPointer(arg2, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(objc.NSArray, objc.NSArray, objc.NSArray) + > + fromFunction( + void Function(objc.NSArray, objc.NSArray, objc.NSArray) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSArray, objc.NSArray, objc.NSArray) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.NSArray.castFromPointer(arg0, retain: true, release: true), + objc.NSArray.castFromPointer(arg1, retain: true, release: true), + objc.NSArray.castFromPointer(arg2, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -61991,29 +67894,32 @@ abstract final class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock - listener(void Function(objc.NSArray, objc.NSArray, objc.NSArray) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock< + ffi.Void Function(objc.NSArray, objc.NSArray, objc.NSArray) + > + listener( + void Function(objc.NSArray, objc.NSArray, objc.NSArray) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - objc.NSArray.castFromPointer(arg0, - retain: false, release: true), - objc.NSArray.castFromPointer(arg1, - retain: false, release: true), - objc.NSArray.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_listenerCallable.nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.NSArray.castFromPointer(arg0, retain: false, release: true), + objc.NSArray.castFromPointer(arg1, retain: false, release: true), + objc.NSArray.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_r8gdi7(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.NSArray, objc.NSArray, - objc.NSArray)>(wrapper, retain: false, release: true); + ffi.Void Function(objc.NSArray, objc.NSArray, objc.NSArray) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -62026,118 +67932,150 @@ abstract final class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc - .ObjCBlock - blocking(void Function(objc.NSArray, objc.NSArray, objc.NSArray) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock< + ffi.Void Function(objc.NSArray, objc.NSArray, objc.NSArray) + > + blocking( + void Function(objc.NSArray, objc.NSArray, objc.NSArray) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - objc.NSArray.castFromPointer(arg0, - retain: false, release: true), - objc.NSArray.castFromPointer(arg1, - retain: false, release: true), - objc.NSArray.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingCallable.nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.NSArray.castFromPointer(arg0, retain: false, release: true), + objc.NSArray.castFromPointer(arg1, retain: false, release: true), + objc.NSArray.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - objc.NSArray.castFromPointer(arg0, - retain: false, release: true), - objc.NSArray.castFromPointer(arg1, - retain: false, release: true), - objc.NSArray.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.NSArray.castFromPointer(arg0, retain: false, release: true), + objc.NSArray.castFromPointer(arg1, retain: false, release: true), + objc.NSArray.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_r8gdi7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.NSArray, objc.NSArray, - objc.NSArray)>(wrapper, retain: false, release: true); + ffi.Void Function(objc.NSArray, objc.NSArray, objc.NSArray) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_CallExtension on objc - .ObjCBlock { - void call(objc.NSArray arg0, objc.NSArray arg1, objc.NSArray arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2.ref.pointer); +extension ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(objc.NSArray, objc.NSArray, objc.NSArray) + > { + void call(objc.NSArray arg0, objc.NSArray arg1, objc.NSArray arg2) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2.ref.pointer); } -late final _sel_getTasksWithCompletionHandler_ = - objc.registerName("getTasksWithCompletionHandler:"); +late final _sel_getTasksWithCompletionHandler_ = objc.registerName( + "getTasksWithCompletionHandler:", +); void _ObjCBlock_ffiVoid_NSArray$1_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSArray$1_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSArray$1_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSArray$1_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSArray$1_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSArray$1_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSArray$1_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSArray$1_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSArray$1_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSArray$1_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSArray$1_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSArray$1_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSArray$1_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSArray$1_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -62146,33 +68084,50 @@ void _ObjCBlock_ffiVoid_NSArray$1_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSArray$1_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSArray$1_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSArray$1_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSArray$1_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSArray$1_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSArray$1_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSArray$1_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSArray$1_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSArray$1 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -62180,15 +68135,18 @@ abstract final class ObjCBlock_ffiVoid_NSArray$1 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSArray$1_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSArray$1_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -62199,17 +68157,18 @@ abstract final class ObjCBlock_ffiVoid_NSArray$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(objc.NSArray) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSArray$1_closureCallable, - (ffi.Pointer arg0) => fn( - objc.NSArray.castFromPointer(arg0, - retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(objc.NSArray) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSArray$1_closureCallable, + (ffi.Pointer arg0) => + fn(objc.NSArray.castFromPointer(arg0, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -62221,17 +68180,22 @@ abstract final class ObjCBlock_ffiVoid_NSArray$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(objc.NSArray) fn, - {bool keepIsolateAlive = true}) { + void Function(objc.NSArray) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSArray$1_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn( - objc.NSArray.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSArray$1_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(objc.NSArray.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -62245,25 +68209,34 @@ abstract final class ObjCBlock_ffiVoid_NSArray$1 { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(objc.NSArray) fn, - {bool keepIsolateAlive = true}) { + void Function(objc.NSArray) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSArray$1_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn( - objc.NSArray.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSArray$1_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(objc.NSArray.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSArray$1_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn( - objc.NSArray.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSArray$1_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => + fn(objc.NSArray.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -62272,33 +68245,49 @@ extension ObjCBlock_ffiVoid_NSArray$1_CallExtension on objc.ObjCBlock { void call(objc.NSArray arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0.ref.pointer); + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer); } -late final _sel_getAllTasksWithCompletionHandler_ = - objc.registerName("getAllTasksWithCompletionHandler:"); -late final _sel_dataTaskWithRequest_ = - objc.registerName("dataTaskWithRequest:"); +late final _sel_getAllTasksWithCompletionHandler_ = objc.registerName( + "getAllTasksWithCompletionHandler:", +); +late final _sel_dataTaskWithRequest_ = objc.registerName( + "dataTaskWithRequest:", +); late final _sel_dataTaskWithURL_ = objc.registerName("dataTaskWithURL:"); -late final _sel_uploadTaskWithRequest_fromFile_ = - objc.registerName("uploadTaskWithRequest:fromFile:"); -late final _sel_uploadTaskWithRequest_fromData_ = - objc.registerName("uploadTaskWithRequest:fromData:"); -late final _sel_uploadTaskWithResumeData_ = - objc.registerName("uploadTaskWithResumeData:"); -late final _sel_uploadTaskWithStreamedRequest_ = - objc.registerName("uploadTaskWithStreamedRequest:"); -late final _sel_downloadTaskWithRequest_ = - objc.registerName("downloadTaskWithRequest:"); -late final _sel_downloadTaskWithURL_ = - objc.registerName("downloadTaskWithURL:"); -late final _sel_downloadTaskWithResumeData_ = - objc.registerName("downloadTaskWithResumeData:"); +late final _sel_uploadTaskWithRequest_fromFile_ = objc.registerName( + "uploadTaskWithRequest:fromFile:", +); +late final _sel_uploadTaskWithRequest_fromData_ = objc.registerName( + "uploadTaskWithRequest:fromData:", +); +late final _sel_uploadTaskWithResumeData_ = objc.registerName( + "uploadTaskWithResumeData:", +); +late final _sel_uploadTaskWithStreamedRequest_ = objc.registerName( + "uploadTaskWithStreamedRequest:", +); +late final _sel_downloadTaskWithRequest_ = objc.registerName( + "downloadTaskWithRequest:", +); +late final _sel_downloadTaskWithURL_ = objc.registerName( + "downloadTaskWithURL:", +); +late final _sel_downloadTaskWithResumeData_ = objc.registerName( + "downloadTaskWithResumeData:", +); /// WARNING: NSURLSessionStreamTask is a stub. To generate bindings for this class, include /// NSURLSessionStreamTask in your config's objc-interfaces list. @@ -62324,65 +68313,85 @@ late final _sel_downloadTaskWithResumeData_ = /// and will receive no more messages. These streams are /// disassociated from the underlying session. class NSURLSessionStreamTask extends NSURLSessionTask { - NSURLSessionStreamTask._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSURLSessionStreamTask', - iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); + NSURLSessionStreamTask._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionStreamTask', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); } /// Constructs a [NSURLSessionStreamTask] that points to the same underlying object as [other]. NSURLSessionStreamTask.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionStreamTask] that wraps the given raw object pointer. - NSURLSessionStreamTask.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLSessionStreamTask.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } -late final _sel_streamTaskWithHostName_port_ = - objc.registerName("streamTaskWithHostName:port:"); +late final _sel_streamTaskWithHostName_port_ = objc.registerName( + "streamTaskWithHostName:port:", +); final _objc_msgSend_9slupp = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); /// WARNING: NSNetService is a stub. To generate bindings for this class, include /// NSNetService in your config's objc-interfaces list. /// /// NSNetService class NSNetService extends objc.ObjCObjectBase { - NSNetService._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSNetService._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSNetService] that points to the same underlying object as [other]. NSNetService.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSNetService] that wraps the given raw object pointer. - NSNetService.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSNetService.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } -late final _sel_streamTaskWithNetService_ = - objc.registerName("streamTaskWithNetService:"); -late final _class_NSURLSessionWebSocketTask = - objc.getClass("NSURLSessionWebSocketTask"); -late final _class_NSURLSessionWebSocketMessage = - objc.getClass("NSURLSessionWebSocketMessage"); +late final _sel_streamTaskWithNetService_ = objc.registerName( + "streamTaskWithNetService:", +); +late final _class_NSURLSessionWebSocketTask = objc.getClass( + "NSURLSessionWebSocketTask", +); +late final _class_NSURLSessionWebSocketMessage = objc.getClass( + "NSURLSessionWebSocketMessage", +); late final _sel_initWithData_ = objc.registerName("initWithData:"); late final _sel_initWithString_ = objc.registerName("initWithString:"); @@ -62398,19 +68407,24 @@ enum NSURLSessionWebSocketMessageType { 0 => NSURLSessionWebSocketMessageTypeData, 1 => NSURLSessionWebSocketMessageTypeString, _ => throw ArgumentError( - 'Unknown value for NSURLSessionWebSocketMessageType: $value'), + 'Unknown value for NSURLSessionWebSocketMessageType: $value', + ), }; } late final _sel_type = objc.registerName("type"); final _objc_msgSend_1qouven = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_data = objc.registerName("data"); late final _sel_string = objc.registerName("string"); @@ -62418,62 +68432,94 @@ late final _sel_string = objc.registerName("string"); /// and will be delivered from the receive calls. The message can be initialized with data or string. /// If initialized with data, the string property will be nil and vice versa. class NSURLSessionWebSocketMessage extends objc.NSObject { - NSURLSessionWebSocketMessage._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSURLSessionWebSocketMessage', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + NSURLSessionWebSocketMessage._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketMessage', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); } /// Constructs a [NSURLSessionWebSocketMessage] that points to the same underlying object as [other]. NSURLSessionWebSocketMessage.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionWebSocketMessage] that wraps the given raw object pointer. NSURLSessionWebSocketMessage.castFromPointer( - ffi.Pointer other, - {bool retain = false, - bool release = false}) - : this._(other, retain: retain, release: release); + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURLSessionWebSocketMessage]. static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5(obj.ref.pointer, _sel_isKindOfClass_, - _class_NSURLSessionWebSocketMessage); + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURLSessionWebSocketMessage, + ); } /// Create a message with data type NSURLSessionWebSocketMessage initWithData(objc.NSData data) { - objc.checkOsVersionInternal('NSURLSessionWebSocketMessage.initWithData:', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithData_, data.ref.pointer); - return NSURLSessionWebSocketMessage.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketMessage.initWithData:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithData_, + data.ref.pointer, + ); + return NSURLSessionWebSocketMessage.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// Create a message with string type NSURLSessionWebSocketMessage initWithString(objc.NSString string) { - objc.checkOsVersionInternal('NSURLSessionWebSocketMessage.initWithString:', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithString_, string.ref.pointer); - return NSURLSessionWebSocketMessage.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketMessage.initWithString:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithString_, + string.ref.pointer, + ); + return NSURLSessionWebSocketMessage.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// type NSURLSessionWebSocketMessageType get type { - objc.checkOsVersionInternal('NSURLSessionWebSocketMessage.type', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketMessage.type', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_1qouven(this.ref.pointer, _sel_type); return NSURLSessionWebSocketMessageType.fromValue(_ret); } /// data objc.NSData? get data { - objc.checkOsVersionInternal('NSURLSessionWebSocketMessage.data', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketMessage.data', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_data); return _ret.address == 0 ? null @@ -62482,8 +68528,11 @@ class NSURLSessionWebSocketMessage extends objc.NSObject { /// string objc.NSString? get string { - objc.checkOsVersionInternal('NSURLSessionWebSocketMessage.string', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketMessage.string', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_string); return _ret.address == 0 ? null @@ -62492,58 +68541,92 @@ class NSURLSessionWebSocketMessage extends objc.NSObject { /// init NSURLSessionWebSocketMessage init() { - objc.checkOsVersionInternal('NSURLSessionWebSocketMessage.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); - return NSURLSessionWebSocketMessage.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketMessage.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSURLSessionWebSocketMessage.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// new static NSURLSessionWebSocketMessage new$() { - final _ret = - _objc_msgSend_151sglz(_class_NSURLSessionWebSocketMessage, _sel_new); - return NSURLSessionWebSocketMessage.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_151sglz( + _class_NSURLSessionWebSocketMessage, + _sel_new, + ); + return NSURLSessionWebSocketMessage.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// allocWithZone: static NSURLSessionWebSocketMessage allocWithZone( - ffi.Pointer zone) { + ffi.Pointer zone, + ) { final _ret = _objc_msgSend_1cwp428( - _class_NSURLSessionWebSocketMessage, _sel_allocWithZone_, zone); - return NSURLSessionWebSocketMessage.castFromPointer(_ret, - retain: false, release: true); + _class_NSURLSessionWebSocketMessage, + _sel_allocWithZone_, + zone, + ); + return NSURLSessionWebSocketMessage.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// alloc static NSURLSessionWebSocketMessage alloc() { - final _ret = - _objc_msgSend_151sglz(_class_NSURLSessionWebSocketMessage, _sel_alloc); - return NSURLSessionWebSocketMessage.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_151sglz( + _class_NSURLSessionWebSocketMessage, + _sel_alloc, + ); + return NSURLSessionWebSocketMessage.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// self NSURLSessionWebSocketMessage self$1() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSURLSessionWebSocketMessage.castFromPointer(_ret, - retain: true, release: true); + return NSURLSessionWebSocketMessage.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// retain NSURLSessionWebSocketMessage retain() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSURLSessionWebSocketMessage.castFromPointer(_ret, - retain: true, release: true); + return NSURLSessionWebSocketMessage.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// autorelease NSURLSessionWebSocketMessage autorelease() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSURLSessionWebSocketMessage.castFromPointer(_ret, - retain: true, release: true); + return NSURLSessionWebSocketMessage.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Returns a new instance of NSURLSessionWebSocketMessage constructed with the default `new` method. @@ -62551,52 +68634,67 @@ class NSURLSessionWebSocketMessage extends objc.NSObject { } void _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSError_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSError_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSError_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSError_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSError_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSError_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSError_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSError_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSError_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSError_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -62605,33 +68703,50 @@ void _ObjCBlock_ffiVoid_NSError_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSError_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSError_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSError_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSError_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSError_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSError_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSError_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSError_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSError { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -62639,15 +68754,15 @@ abstract final class ObjCBlock_ffiVoid_NSError { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSError_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_NSError_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -62658,18 +68773,21 @@ abstract final class ObjCBlock_ffiVoid_NSError { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(objc.NSError?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSError_closureCallable, - (ffi.Pointer arg0) => fn(arg0.address == 0 - ? null - : objc.NSError.castFromPointer(arg0, - retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSError_closureCallable, + (ffi.Pointer arg0) => fn( + arg0.address == 0 + ? null + : objc.NSError.castFromPointer(arg0, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -62681,18 +68799,25 @@ abstract final class ObjCBlock_ffiVoid_NSError { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(objc.NSError?) fn, - {bool keepIsolateAlive = true}) { + void Function(objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSError_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSError_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : objc.NSError.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : objc.NSError.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -62706,27 +68831,39 @@ abstract final class ObjCBlock_ffiVoid_NSError { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(objc.NSError?) fn, - {bool keepIsolateAlive = true}) { + void Function(objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSError_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSError_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : objc.NSError.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : objc.NSError.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSError_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSError_blockingListenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : objc.NSError.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : objc.NSError.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -62734,82 +68871,114 @@ abstract final class ObjCBlock_ffiVoid_NSError { extension ObjCBlock_ffiVoid_NSError_CallExtension on objc.ObjCBlock { void call(objc.NSError? arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); } -late final _sel_sendMessage_completionHandler_ = - objc.registerName("sendMessage:completionHandler:"); +late final _sel_sendMessage_completionHandler_ = objc.registerName( + "sendMessage:completionHandler:", +); void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrCallable = +_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as void Function(ffi.Pointer, - ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureCallable = +_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_listenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_listenerTrampoline, + ) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { try { - (objc.getBlockClosure(block) as void Function(ffi.Pointer, - ffi.Pointer))(arg0, arg1); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -62818,62 +68987,90 @@ void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(NSURLSessionWebSocketMessage?, - objc.NSError?)>(pointer, retain: retain, release: release); + ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -62883,20 +69080,42 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSURLSessionWebSocketMessage?, objc.NSError?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0.address == 0 - ? null - : NSURLSessionWebSocketMessage.castFromPointer(arg0, retain: true, release: true), - arg1.address == 0 ? null : objc.NSError.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?) + > + fromFunction( + void Function(NSURLSessionWebSocketMessage?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + arg0.address == 0 + ? null + : NSURLSessionWebSocketMessage.castFromPointer( + arg0, + retain: true, + release: true, + ), + arg1.address == 0 + ? null + : objc.NSError.castFromPointer( + arg1, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -62908,30 +69127,40 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?)> - listener(void Function(NSURLSessionWebSocketMessage?, objc.NSError?) fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?) + > + listener( + void Function(NSURLSessionWebSocketMessage?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSURLSessionWebSocketMessage.castFromPointer(arg0, - retain: false, release: true), - arg1.address == 0 - ? null - : objc.NSError.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_listenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSURLSessionWebSocketMessage.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : objc.NSError.castFromPointer( + arg1, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_pfv6jd(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(NSURLSessionWebSocketMessage?, - objc.NSError?)>(wrapper, retain: false, release: true); + ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -62945,75 +69174,107 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?)> - blocking(void Function(NSURLSessionWebSocketMessage?, objc.NSError?) fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?) + > + blocking( + void Function(NSURLSessionWebSocketMessage?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSURLSessionWebSocketMessage.castFromPointer(arg0, - retain: false, release: true), - arg1.address == 0 - ? null - : objc.NSError.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSURLSessionWebSocketMessage.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : objc.NSError.castFromPointer( + arg1, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSURLSessionWebSocketMessage.castFromPointer(arg0, - retain: false, release: true), - arg1.address == 0 - ? null - : objc.NSError.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSURLSessionWebSocketMessage.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : objc.NSError.castFromPointer( + arg1, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_pfv6jd( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(NSURLSessionWebSocketMessage?, - objc.NSError?)>(wrapper, retain: false, release: true); + ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_CallExtension - on objc.ObjCBlock< - ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?)> { + on + objc.ObjCBlock< + ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?) + > { void call(NSURLSessionWebSocketMessage? arg0, objc.NSError? arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, arg1?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1?.ref.pointer ?? ffi.nullptr, + ); } -late final _sel_receiveMessageWithCompletionHandler_ = - objc.registerName("receiveMessageWithCompletionHandler:"); -late final _sel_sendPingWithPongReceiveHandler_ = - objc.registerName("sendPingWithPongReceiveHandler:"); +late final _sel_receiveMessageWithCompletionHandler_ = objc.registerName( + "receiveMessageWithCompletionHandler:", +); +late final _sel_sendPingWithPongReceiveHandler_ = objc.registerName( + "sendPingWithPongReceiveHandler:", +); /// The WebSocket close codes follow the close codes given in the RFC sealed class NSURLSessionWebSocketCloseCode { @@ -63032,34 +69293,45 @@ sealed class NSURLSessionWebSocketCloseCode { static const NSURLSessionWebSocketCloseCodeTLSHandshakeFailure = 1015; } -late final _sel_cancelWithCloseCode_reason_ = - objc.registerName("cancelWithCloseCode:reason:"); +late final _sel_cancelWithCloseCode_reason_ = objc.registerName( + "cancelWithCloseCode:reason:", +); final _objc_msgSend_tqzk0b = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); late final _sel_maximumMessageSize = objc.registerName("maximumMessageSize"); -late final _sel_setMaximumMessageSize_ = - objc.registerName("setMaximumMessageSize:"); +late final _sel_setMaximumMessageSize_ = objc.registerName( + "setMaximumMessageSize:", +); late final _sel_closeCode = objc.registerName("closeCode"); final _objc_msgSend_1rhk8uh = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_closeReason = objc.registerName("closeReason"); /// A WebSocket task can be created with a ws or wss url. A client can also provide @@ -63071,58 +69343,78 @@ late final _sel_closeReason = objc.registerName("closeReason"); /// support for cookies and will store cookies to the cookie storage on the session and will attach cookies to /// outgoing HTTP handshake requests. class NSURLSessionWebSocketTask extends NSURLSessionTask { - NSURLSessionWebSocketTask._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSURLSessionWebSocketTask', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + NSURLSessionWebSocketTask._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketTask', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); } /// Constructs a [NSURLSessionWebSocketTask] that points to the same underlying object as [other]. NSURLSessionWebSocketTask.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionWebSocketTask] that wraps the given raw object pointer. - NSURLSessionWebSocketTask.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLSessionWebSocketTask.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURLSessionWebSocketTask]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSURLSessionWebSocketTask); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURLSessionWebSocketTask, + ); } /// Sends a WebSocket message. If an error occurs, any outstanding work will also fail. /// 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(NSURLSessionWebSocketMessage message, - {required objc.ObjCBlock - completionHandler}) { + void sendMessage( + NSURLSessionWebSocketMessage message, { + required objc.ObjCBlock completionHandler, + }) { objc.checkOsVersionInternal( - 'NSURLSessionWebSocketTask.sendMessage:completionHandler:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); - _objc_msgSend_o762yo(this.ref.pointer, _sel_sendMessage_completionHandler_, - message.ref.pointer, completionHandler.ref.pointer); + 'NSURLSessionWebSocketTask.sendMessage:completionHandler:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + _objc_msgSend_o762yo( + this.ref.pointer, + _sel_sendMessage_completionHandler_, + message.ref.pointer, + completionHandler.ref.pointer, + ); } /// 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( - objc.ObjCBlock< - ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?)> - completionHandler) { + objc.ObjCBlock< + ffi.Void Function(NSURLSessionWebSocketMessage?, objc.NSError?) + > + completionHandler, + ) { objc.checkOsVersionInternal( - 'NSURLSessionWebSocketTask.receiveMessageWithCompletionHandler:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSURLSessionWebSocketTask.receiveMessageWithCompletionHandler:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); _objc_msgSend_f167m6( - this.ref.pointer, - _sel_receiveMessageWithCompletionHandler_, - completionHandler.ref.pointer); + this.ref.pointer, + _sel_receiveMessageWithCompletionHandler_, + completionHandler.ref.pointer, + ); } /// Sends a ping frame from the client side. The pongReceiveHandler is invoked when the client @@ -63130,53 +69422,73 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { /// 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( - objc.ObjCBlock pongReceiveHandler) { + objc.ObjCBlock pongReceiveHandler, + ) { objc.checkOsVersionInternal( - 'NSURLSessionWebSocketTask.sendPingWithPongReceiveHandler:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); - _objc_msgSend_f167m6(this.ref.pointer, _sel_sendPingWithPongReceiveHandler_, - pongReceiveHandler.ref.pointer); + 'NSURLSessionWebSocketTask.sendPingWithPongReceiveHandler:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_sendPingWithPongReceiveHandler_, + pongReceiveHandler.ref.pointer, + ); } /// 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(DartNSInteger closeCode, {objc.NSData? reason}) { objc.checkOsVersionInternal( - 'NSURLSessionWebSocketTask.cancelWithCloseCode:reason:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); - _objc_msgSend_tqzk0b(this.ref.pointer, _sel_cancelWithCloseCode_reason_, - closeCode, reason?.ref.pointer ?? ffi.nullptr); + 'NSURLSessionWebSocketTask.cancelWithCloseCode:reason:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + _objc_msgSend_tqzk0b( + this.ref.pointer, + _sel_cancelWithCloseCode_reason_, + closeCode, + reason?.ref.pointer ?? 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 DartNSInteger get maximumMessageSize { - objc.checkOsVersionInternal('NSURLSessionWebSocketTask.maximumMessageSize', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketTask.maximumMessageSize', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_maximumMessageSize); } /// 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(DartNSInteger value) { objc.checkOsVersionInternal( - 'NSURLSessionWebSocketTask.setMaximumMessageSize:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSURLSessionWebSocketTask.setMaximumMessageSize:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); _objc_msgSend_4sp4xj(this.ref.pointer, _sel_setMaximumMessageSize_, 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 DartNSInteger get closeCode { - objc.checkOsVersionInternal('NSURLSessionWebSocketTask.closeCode', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketTask.closeCode', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); return _objc_msgSend_1rhk8uh(this.ref.pointer, _sel_closeCode); } /// 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 objc.NSData? get closeReason { - objc.checkOsVersionInternal('NSURLSessionWebSocketTask.closeReason', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketTask.closeReason', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_closeReason); return _ret.address == 0 ? null @@ -63185,34 +69497,53 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { /// init NSURLSessionWebSocketTask init() { - objc.checkOsVersionInternal('NSURLSessionWebSocketTask.init', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); - return NSURLSessionWebSocketTask.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketTask.init', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSURLSessionWebSocketTask.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// new static NSURLSessionWebSocketTask new$() { - objc.checkOsVersionInternal('NSURLSessionWebSocketTask.new', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - final _ret = - _objc_msgSend_151sglz(_class_NSURLSessionWebSocketTask, _sel_new); - return NSURLSessionWebSocketTask.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketTask.new', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz( + _class_NSURLSessionWebSocketTask, + _sel_new, + ); + return NSURLSessionWebSocketTask.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// Returns a new instance of NSURLSessionWebSocketTask constructed with the default `new` method. factory NSURLSessionWebSocketTask() => new$(); } -late final _sel_webSocketTaskWithURL_ = - objc.registerName("webSocketTaskWithURL:"); -late final _sel_webSocketTaskWithURL_protocols_ = - objc.registerName("webSocketTaskWithURL:protocols:"); -late final _sel_webSocketTaskWithRequest_ = - objc.registerName("webSocketTaskWithRequest:"); +late final _sel_webSocketTaskWithURL_ = objc.registerName( + "webSocketTaskWithURL:", +); +late final _sel_webSocketTaskWithURL_protocols_ = objc.registerName( + "webSocketTaskWithURL:protocols:", +); +late final _sel_webSocketTaskWithRequest_ = objc.registerName( + "webSocketTaskWithRequest:", +); /// NSURLSession is a replacement API for NSURLConnection. It provides /// options that affect the policy of, and various aspects of the @@ -63274,33 +69605,46 @@ late final _sel_webSocketTaskWithRequest_ = /// and once the WebSocket handshake is successful, the client can read and write /// messages that will be framed using the WebSocket protocol by the framework. class NSURLSession extends objc.NSObject { - NSURLSession._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSURLSession', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + NSURLSession._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSession', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); } /// Constructs a [NSURLSession] that points to the same underlying object as [other]. NSURLSession.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSession] that wraps the given raw object pointer. - NSURLSession.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLSession.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURLSession]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSURLSession); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURLSession, + ); } /// The shared session uses the currently set global NSURLCache, /// NSHTTPCookieStorage and NSURLCredentialStorage objects. static NSURLSession getSharedSession() { - objc.checkOsVersionInternal('NSURLSession.sharedSession', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSession.sharedSession', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz(_class_NSURLSession, _sel_sharedSession); return NSURLSession.castFromPointer(_ret, retain: true, release: true); } @@ -63311,67 +69655,97 @@ class NSURLSession extends objc.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( - NSURLSessionConfiguration configuration) { - objc.checkOsVersionInternal('NSURLSession.sessionWithConfiguration:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - final _ret = _objc_msgSend_1sotr3r(_class_NSURLSession, - _sel_sessionWithConfiguration_, configuration.ref.pointer); + NSURLSessionConfiguration configuration, + ) { + objc.checkOsVersionInternal( + 'NSURLSession.sessionWithConfiguration:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSURLSession, + _sel_sessionWithConfiguration_, + configuration.ref.pointer, + ); return NSURLSession.castFromPointer(_ret, retain: true, release: true); } /// sessionWithConfiguration:delegate:delegateQueue: static NSURLSession sessionWithConfiguration$1( - NSURLSessionConfiguration configuration, - {NSURLSessionDelegate? delegate, - NSOperationQueue? delegateQueue}) { + NSURLSessionConfiguration configuration, { + NSURLSessionDelegate? delegate, + NSOperationQueue? delegateQueue, + }) { objc.checkOsVersionInternal( - 'NSURLSession.sessionWithConfiguration:delegate:delegateQueue:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURLSession.sessionWithConfiguration:delegate:delegateQueue:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_11spmsz( - _class_NSURLSession, - _sel_sessionWithConfiguration_delegate_delegateQueue_, - configuration.ref.pointer, - delegate?.ref.pointer ?? ffi.nullptr, - delegateQueue?.ref.pointer ?? ffi.nullptr); + _class_NSURLSession, + _sel_sessionWithConfiguration_delegate_delegateQueue_, + configuration.ref.pointer, + delegate?.ref.pointer ?? ffi.nullptr, + delegateQueue?.ref.pointer ?? ffi.nullptr, + ); return NSURLSession.castFromPointer(_ret, retain: true, release: true); } /// delegateQueue NSOperationQueue get delegateQueue { - objc.checkOsVersionInternal('NSURLSession.delegateQueue', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSession.delegateQueue', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_delegateQueue); return NSOperationQueue.castFromPointer(_ret, retain: true, release: true); } /// delegate NSURLSessionDelegate? get delegate { - objc.checkOsVersionInternal('NSURLSession.delegate', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSession.delegate', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_delegate); return _ret.address == 0 ? null - : NSURLSessionDelegate.castFromPointer(_ret, - retain: true, release: true); + : NSURLSessionDelegate.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// configuration NSURLSessionConfiguration get configuration { - objc.checkOsVersionInternal('NSURLSession.configuration', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSession.configuration', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_configuration); - return NSURLSessionConfiguration.castFromPointer(_ret, - retain: true, release: true); + return NSURLSessionConfiguration.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// The sessionDescription property is available for the developer to /// provide a descriptive label for the session. objc.NSString? get sessionDescription { - objc.checkOsVersionInternal('NSURLSession.sessionDescription', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_sessionDescription); + objc.checkOsVersionInternal( + 'NSURLSession.sessionDescription', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_sessionDescription, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); @@ -63380,10 +69754,16 @@ class NSURLSession extends objc.NSObject { /// The sessionDescription property is available for the developer to /// provide a descriptive label for the session. set sessionDescription(objc.NSString? value) { - objc.checkOsVersionInternal('NSURLSession.setSessionDescription:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setSessionDescription_, - value?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSURLSession.setSessionDescription:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setSessionDescription_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// -finishTasksAndInvalidate returns immediately and existing tasks will be allowed @@ -63398,8 +69778,11 @@ class NSURLSession extends objc.NSObject { /// session with the same identifier until URLSession:didBecomeInvalidWithError: has /// been issued. void finishTasksAndInvalidate() { - objc.checkOsVersionInternal('NSURLSession.finishTasksAndInvalidate', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSession.finishTasksAndInvalidate', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_finishTasksAndInvalidate); } @@ -63408,97 +69791,161 @@ class NSURLSession extends objc.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() { - objc.checkOsVersionInternal('NSURLSession.invalidateAndCancel', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSession.invalidateAndCancel', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_invalidateAndCancel); } /// empty all cookies, cache and credential stores, removes disk files, issues -flushWithCompletionHandler:. Invokes completionHandler() on the delegate queue. void resetWithCompletionHandler( - objc.ObjCBlock completionHandler) { - objc.checkOsVersionInternal('NSURLSession.resetWithCompletionHandler:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - _objc_msgSend_f167m6(this.ref.pointer, _sel_resetWithCompletionHandler_, - completionHandler.ref.pointer); + objc.ObjCBlock completionHandler, + ) { + objc.checkOsVersionInternal( + 'NSURLSession.resetWithCompletionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_resetWithCompletionHandler_, + completionHandler.ref.pointer, + ); } /// flush storage to disk and clear transient network caches. Invokes completionHandler() on the delegate queue. void flushWithCompletionHandler( - objc.ObjCBlock completionHandler) { - objc.checkOsVersionInternal('NSURLSession.flushWithCompletionHandler:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - _objc_msgSend_f167m6(this.ref.pointer, _sel_flushWithCompletionHandler_, - completionHandler.ref.pointer); + objc.ObjCBlock completionHandler, + ) { + objc.checkOsVersionInternal( + 'NSURLSession.flushWithCompletionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_flushWithCompletionHandler_, + completionHandler.ref.pointer, + ); } /// invokes completionHandler with outstanding data, upload and download tasks. void getTasksWithCompletionHandler( - objc.ObjCBlock< - ffi.Void Function(objc.NSArray, objc.NSArray, objc.NSArray)> - completionHandler) { - objc.checkOsVersionInternal('NSURLSession.getTasksWithCompletionHandler:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - _objc_msgSend_f167m6(this.ref.pointer, _sel_getTasksWithCompletionHandler_, - completionHandler.ref.pointer); + objc.ObjCBlock + completionHandler, + ) { + objc.checkOsVersionInternal( + 'NSURLSession.getTasksWithCompletionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_getTasksWithCompletionHandler_, + completionHandler.ref.pointer, + ); } /// invokes completionHandler with all outstanding tasks. void getAllTasksWithCompletionHandler( - objc.ObjCBlock completionHandler) { + objc.ObjCBlock completionHandler, + ) { objc.checkOsVersionInternal( - 'NSURLSession.getAllTasksWithCompletionHandler:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0))); - _objc_msgSend_f167m6(this.ref.pointer, - _sel_getAllTasksWithCompletionHandler_, completionHandler.ref.pointer); + 'NSURLSession.getAllTasksWithCompletionHandler:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_getAllTasksWithCompletionHandler_, + completionHandler.ref.pointer, + ); } /// Creates a data task with the given request. The request may have a body stream. NSURLSessionDataTask dataTaskWithRequest(NSURLRequest request) { - objc.checkOsVersionInternal('NSURLSession.dataTaskWithRequest:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSession.dataTaskWithRequest:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_dataTaskWithRequest_, request.ref.pointer); - return NSURLSessionDataTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_dataTaskWithRequest_, + request.ref.pointer, + ); + return NSURLSessionDataTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Creates a data task to retrieve the contents of the given URL. NSURLSessionDataTask dataTaskWithURL(objc.NSURL url) { - objc.checkOsVersionInternal('NSURLSession.dataTaskWithURL:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSession.dataTaskWithURL:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_dataTaskWithURL_, url.ref.pointer); - return NSURLSessionDataTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_dataTaskWithURL_, + url.ref.pointer, + ); + return NSURLSessionDataTask.castFromPointer( + _ret, + 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(NSURLRequest request, - {required objc.NSURL fromFile}) { - objc.checkOsVersionInternal('NSURLSession.uploadTaskWithRequest:fromFile:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + NSURLSessionUploadTask uploadTaskWithRequest( + NSURLRequest request, { + required objc.NSURL fromFile, + }) { + objc.checkOsVersionInternal( + 'NSURLSession.uploadTaskWithRequest:fromFile:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_15qeuct( - this.ref.pointer, - _sel_uploadTaskWithRequest_fromFile_, - request.ref.pointer, - fromFile.ref.pointer); - return NSURLSessionUploadTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_uploadTaskWithRequest_fromFile_, + request.ref.pointer, + fromFile.ref.pointer, + ); + return NSURLSessionUploadTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Creates an upload task with the given request. The body of the request is provided from the bodyData. - NSURLSessionUploadTask uploadTaskWithRequest$1(NSURLRequest request, - {required objc.NSData fromData}) { - objc.checkOsVersionInternal('NSURLSession.uploadTaskWithRequest:fromData:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + NSURLSessionUploadTask uploadTaskWithRequest$1( + NSURLRequest request, { + required objc.NSData fromData, + }) { + objc.checkOsVersionInternal( + 'NSURLSession.uploadTaskWithRequest:fromData:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_15qeuct( - this.ref.pointer, - _sel_uploadTaskWithRequest_fromData_, - request.ref.pointer, - fromData.ref.pointer); - return NSURLSessionUploadTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_uploadTaskWithRequest_fromData_, + request.ref.pointer, + fromData.ref.pointer, + ); + return NSURLSessionUploadTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Creates an upload task from a resume data blob. Requires the server to support the latest resumable uploads @@ -63510,120 +69957,218 @@ class NSURLSession extends objc.NSObject { /// - 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(objc.NSData resumeData) { - objc.checkOsVersionInternal('NSURLSession.uploadTaskWithResumeData:', - iOS: (false, (17, 0, 0)), macOS: (false, (14, 0, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_uploadTaskWithResumeData_, resumeData.ref.pointer); - return NSURLSessionUploadTask.castFromPointer(_ret, - retain: true, release: true); + objc.checkOsVersionInternal( + 'NSURLSession.uploadTaskWithResumeData:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_uploadTaskWithResumeData_, + resumeData.ref.pointer, + ); + return NSURLSessionUploadTask.castFromPointer( + _ret, + 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) { - objc.checkOsVersionInternal('NSURLSession.uploadTaskWithStreamedRequest:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_uploadTaskWithStreamedRequest_, request.ref.pointer); - return NSURLSessionUploadTask.castFromPointer(_ret, - retain: true, release: true); + objc.checkOsVersionInternal( + 'NSURLSession.uploadTaskWithStreamedRequest:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_uploadTaskWithStreamedRequest_, + request.ref.pointer, + ); + return NSURLSessionUploadTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Creates a download task with the given request. NSURLSessionDownloadTask downloadTaskWithRequest(NSURLRequest request) { - objc.checkOsVersionInternal('NSURLSession.downloadTaskWithRequest:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSession.downloadTaskWithRequest:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_downloadTaskWithRequest_, request.ref.pointer); - return NSURLSessionDownloadTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_downloadTaskWithRequest_, + request.ref.pointer, + ); + return NSURLSessionDownloadTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Creates a download task to download the contents of the given URL. NSURLSessionDownloadTask downloadTaskWithURL(objc.NSURL url) { - objc.checkOsVersionInternal('NSURLSession.downloadTaskWithURL:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURLSession.downloadTaskWithURL:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_downloadTaskWithURL_, url.ref.pointer); - return NSURLSessionDownloadTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_downloadTaskWithURL_, + url.ref.pointer, + ); + return NSURLSessionDownloadTask.castFromPointer( + _ret, + 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(objc.NSData resumeData) { - objc.checkOsVersionInternal('NSURLSession.downloadTaskWithResumeData:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_downloadTaskWithResumeData_, resumeData.ref.pointer); - return NSURLSessionDownloadTask.castFromPointer(_ret, - retain: true, release: true); + objc.checkOsVersionInternal( + 'NSURLSession.downloadTaskWithResumeData:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_downloadTaskWithResumeData_, + resumeData.ref.pointer, + ); + return NSURLSessionDownloadTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Creates a bidirectional stream task to a given host and port. - NSURLSessionStreamTask streamTaskWithHostName(objc.NSString hostname, - {required DartNSInteger port}) { - objc.checkOsVersionInternal('NSURLSession.streamTaskWithHostName:port:', - iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); - final _ret = _objc_msgSend_9slupp(this.ref.pointer, - _sel_streamTaskWithHostName_port_, hostname.ref.pointer, port); - return NSURLSessionStreamTask.castFromPointer(_ret, - retain: true, release: true); + NSURLSessionStreamTask streamTaskWithHostName( + objc.NSString hostname, { + required DartNSInteger port, + }) { + objc.checkOsVersionInternal( + 'NSURLSession.streamTaskWithHostName:port:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_9slupp( + this.ref.pointer, + _sel_streamTaskWithHostName_port_, + hostname.ref.pointer, + port, + ); + return NSURLSessionStreamTask.castFromPointer( + _ret, + 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) { - objc.checkOsVersionInternal('NSURLSession.streamTaskWithNetService:', - iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); + objc.checkOsVersionInternal( + 'NSURLSession.streamTaskWithNetService:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_streamTaskWithNetService_, service.ref.pointer); - return NSURLSessionStreamTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_streamTaskWithNetService_, + service.ref.pointer, + ); + return NSURLSessionStreamTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Creates a WebSocket task given the url. The given url must have a ws or wss scheme. NSURLSessionWebSocketTask webSocketTaskWithURL(objc.NSURL url) { - objc.checkOsVersionInternal('NSURLSession.webSocketTaskWithURL:', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSURLSession.webSocketTaskWithURL:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_webSocketTaskWithURL_, url.ref.pointer); - return NSURLSessionWebSocketTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_webSocketTaskWithURL_, + url.ref.pointer, + ); + return NSURLSessionWebSocketTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Creates a WebSocket task given the url and an array of protocols. The protocols will be used in the WebSocket handshake to /// 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$1(objc.NSURL url, - {required objc.NSArray protocols}) { - objc.checkOsVersionInternal('NSURLSession.webSocketTaskWithURL:protocols:', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + NSURLSessionWebSocketTask webSocketTaskWithURL$1( + objc.NSURL url, { + required objc.NSArray protocols, + }) { + objc.checkOsVersionInternal( + 'NSURLSession.webSocketTaskWithURL:protocols:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_15qeuct( - this.ref.pointer, - _sel_webSocketTaskWithURL_protocols_, - url.ref.pointer, - protocols.ref.pointer); - return NSURLSessionWebSocketTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_webSocketTaskWithURL_protocols_, + url.ref.pointer, + protocols.ref.pointer, + ); + return NSURLSessionWebSocketTask.castFromPointer( + _ret, + 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) { - objc.checkOsVersionInternal('NSURLSession.webSocketTaskWithRequest:', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSURLSession.webSocketTaskWithRequest:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_webSocketTaskWithRequest_, request.ref.pointer); - return NSURLSessionWebSocketTask.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_webSocketTaskWithRequest_, + request.ref.pointer, + ); + return NSURLSessionWebSocketTask.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// init NSURLSession init() { - objc.checkOsVersionInternal('NSURLSession.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSURLSession.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSURLSession.castFromPointer(_ret, retain: false, release: true); } @@ -63635,8 +70180,11 @@ class NSURLSession extends objc.NSObject { /// allocWithZone: static NSURLSession allocWithZone(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSURLSession, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSURLSession, + _sel_allocWithZone_, + zone, + ); return NSURLSession.castFromPointer(_ret, retain: false, release: true); } @@ -63688,7 +70236,8 @@ enum NSURLSessionDelayedRequestDisposition { 1 => NSURLSessionDelayedRequestUseNewRequest, 2 => NSURLSessionDelayedRequestCancel, _ => throw ArgumentError( - 'Unknown value for NSURLSessionDelayedRequestDisposition: $value'), + 'Unknown value for NSURLSessionDelayedRequestDisposition: $value', + ), }; } @@ -63715,7 +70264,8 @@ enum NSURLSessionAuthChallengeDisposition { 2 => NSURLSessionAuthChallengeCancelAuthenticationChallenge, 3 => NSURLSessionAuthChallengeRejectProtectionSpace, _ => throw ArgumentError( - 'Unknown value for NSURLSessionAuthChallengeDisposition: $value'), + 'Unknown value for NSURLSessionAuthChallengeDisposition: $value', + ), }; } @@ -63742,61 +70292,77 @@ enum NSURLSessionResponseDisposition { 2 => NSURLSessionResponseBecomeDownload, 3 => NSURLSessionResponseBecomeStream, _ => throw ArgumentError( - 'Unknown value for NSURLSessionResponseDisposition: $value'), + 'Unknown value for NSURLSessionResponseDisposition: $value', + ), }; } -late final _protocol_NSURLSessionDataDelegate = - objc.getProtocol("NSURLSessionDataDelegate"); +late final _protocol_NSURLSessionDataDelegate = objc.getProtocol( + "NSURLSessionDataDelegate", +); late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); final _objc_msgSend_e3qsqz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); void _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_fnPtrTrampoline( - ffi.Pointer block, int arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + int arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_fnPtrCallable = +_ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger)>( - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, NSInteger) + >(_ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_closureTrampoline( - ffi.Pointer block, int arg0) => - (objc.getBlockClosure(block) as void Function(int))(arg0); + ffi.Pointer block, + int arg0, +) => (objc.getBlockClosure(block) as void Function(int))(arg0); ffi.Pointer - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_closureCallable = +_ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger)>( - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_closureTrampoline) + ffi.Void Function(ffi.Pointer, NSInteger) + >(_ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_listenerTrampoline( - ffi.Pointer block, int arg0) { + ffi.Pointer block, + int arg0, +) { (objc.getBlockClosure(block) as void Function(int))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, NSInteger)> - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_listenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, NSInteger)>.listener( - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_listenerTrampoline) + ffi.Void Function(ffi.Pointer, NSInteger) +> +_ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, NSInteger) + >.listener( + _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_listenerTrampoline, + ) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, +) { try { (objc.getBlockClosure(block) as void Function(int))(arg0); } catch (e) { @@ -63807,33 +70373,54 @@ void _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ) +> +_ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, NSInteger)> - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, NSInteger)>.isolateLocal( - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + NSInteger, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, ffi.Pointer, NSInteger)> - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ) +> +_ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, NSInteger)>.listener( - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ) + >.listener( + _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSURLSessionResponseDisposition { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -63841,14 +70428,15 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionResponseDisposition { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -63859,15 +70447,17 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionResponseDisposition { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(NSURLSessionResponseDisposition) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_closureCallable, - (int arg0) => fn(NSURLSessionResponseDisposition.fromValue(arg0)), - keepIsolateAlive), - retain: false, - release: true); + void Function(NSURLSessionResponseDisposition) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_closureCallable, + (int arg0) => fn(NSURLSessionResponseDisposition.fromValue(arg0)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -63879,18 +70469,23 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionResponseDisposition { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(NSURLSessionResponseDisposition) fn, - {bool keepIsolateAlive = true}) { + void Function(NSURLSessionResponseDisposition) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_listenerCallable - .nativeFunction - .cast(), - (int arg0) => fn(NSURLSessionResponseDisposition.fromValue(arg0)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_listenerCallable + .nativeFunction + .cast(), + (int arg0) => fn(NSURLSessionResponseDisposition.fromValue(arg0)), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_16sve1d(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -63904,104 +70499,142 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionResponseDisposition { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(NSURLSessionResponseDisposition) fn, - {bool keepIsolateAlive = true}) { + void Function(NSURLSessionResponseDisposition) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingCallable - .nativeFunction - .cast(), - (int arg0) => fn(NSURLSessionResponseDisposition.fromValue(arg0)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingCallable + .nativeFunction + .cast(), + (int arg0) => fn(NSURLSessionResponseDisposition.fromValue(arg0)), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingListenerCallable - .nativeFunction - .cast(), - (int arg0) => fn(NSURLSessionResponseDisposition.fromValue(arg0)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_blockingListenerCallable + .nativeFunction + .cast(), + (int arg0) => fn(NSURLSessionResponseDisposition.fromValue(arg0)), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_16sve1d( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_NSURLSessionResponseDisposition_CallExtension on objc.ObjCBlock { - void call(NSURLSessionResponseDisposition arg0) => ref.pointer.ref.invoke + void call(NSURLSessionResponseDisposition arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, NSInteger arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSInteger arg0, + ) + > + >() .asFunction, int)>()( - ref.pointer, arg0.value); + ref.pointer, + arg0.value, + ); } late final _sel_URLSession_dataTask_didReceiveResponse_completionHandler_ = objc .registerName("URLSession:dataTask:didReceiveResponse:completionHandler:"); void - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(NSInteger arg0, - ffi.Pointer arg1)>>() - .asFunction)>()( - arg0, arg1); +_ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(NSInteger arg0, ffi.Pointer arg1) + > + >() + .asFunction)>()(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_fnPtrCallable = +_ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as void Function( - int, ffi.Pointer))(arg0, arg1); +_ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(int, ffi.Pointer))(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_closureCallable = +_ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_listenerTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1) { - (objc.getBlockClosure(block) as void Function( - int, ffi.Pointer))(arg0, arg1); +_ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_listenerTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(int, ffi.Pointer))(arg0, arg1); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, NSInteger, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_listenerCallable = + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, NSInteger, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0, - ffi.Pointer arg1) { +_ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, + ffi.Pointer arg1, +) { try { - (objc.getBlockClosure(block) as void Function( - int, ffi.Pointer))(arg0, arg1); + (objc.getBlockClosure(block) + as void Function(int, ffi.Pointer))(arg0, arg1); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -64010,54 +70643,81 @@ void } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, NSInteger, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, NSInteger, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLRequest?)> fromFunctionPointer( - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(NSInteger arg0, ffi.Pointer arg1) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -64068,19 +70728,23 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSU /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock - fromFunction(void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_closureCallable, - (int arg0, ffi.Pointer arg1) => fn( - NSURLSessionDelayedRequestDisposition.fromValue(arg0), - arg1.address == 0 - ? null - : NSURLRequest.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + fromFunction( + void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_closureCallable, + (int arg0, ffi.Pointer arg1) => fn( + NSURLSessionDelayedRequestDisposition.fromValue(arg0), + arg1.address == 0 + ? null + : NSURLRequest.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -64092,23 +70756,28 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSU /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, - {bool keepIsolateAlive = true}) { + void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_listenerCallable - .nativeFunction - .cast(), - (int arg0, ffi.Pointer arg1) => fn( - NSURLSessionDelayedRequestDisposition.fromValue(arg0), - arg1.address == 0 - ? null - : NSURLRequest.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_listenerCallable + .nativeFunction + .cast(), + (int arg0, ffi.Pointer arg1) => fn( + NSURLSessionDelayedRequestDisposition.fromValue(arg0), + arg1.address == 0 + ? null + : NSURLRequest.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1otpo83(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -64122,36 +70791,45 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSU /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, - {bool keepIsolateAlive = true}) { + void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingCallable - .nativeFunction - .cast(), - (int arg0, ffi.Pointer arg1) => fn( - NSURLSessionDelayedRequestDisposition.fromValue(arg0), - arg1.address == 0 - ? null - : NSURLRequest.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingCallable + .nativeFunction + .cast(), + (int arg0, ffi.Pointer arg1) => fn( + NSURLSessionDelayedRequestDisposition.fromValue(arg0), + arg1.address == 0 + ? null + : NSURLRequest.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingListenerCallable - .nativeFunction - .cast(), - (int arg0, ffi.Pointer arg1) => fn( - NSURLSessionDelayedRequestDisposition.fromValue(arg0), - arg1.address == 0 - ? null - : NSURLRequest.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_blockingListenerCallable + .nativeFunction + .cast(), + (int arg0, ffi.Pointer arg1) => fn( + NSURLSessionDelayedRequestDisposition.fromValue(arg0), + arg1.address == 0 + ? null + : NSURLRequest.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1otpo83( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -64160,131 +70838,163 @@ extension ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest_C on objc.ObjCBlock { void call(NSURLSessionDelayedRequestDisposition arg0, NSURLRequest? arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - NSInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer, int, - ffi.Pointer)>()( - ref.pointer, arg0.value, arg1?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSInteger arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0.value, arg1?.ref.pointer ?? ffi.nullptr); } void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - arg0, arg1, arg2, arg3, arg4); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_closureTrampoline) + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_listenerTrampoline) - ..keepIsolateAlive = false; + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_closureTrampoline, + ) + .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) { - try { - (objc.getBlockClosure(block) as void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) { + (objc.getBlockClosure(block) + as void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -64293,67 +71003,84 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock)>(pointer, retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -64361,22 +71088,44 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function( + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionDataTask, NSURLResponse, - objc.ObjCBlock)> fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, ffi.Pointer arg4)>> ptr) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -64386,20 +71135,63 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, ffi.Pointer arg4) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.castFromPointer(arg2, retain: true, release: true), - NSURLResponse.castFromPointer(arg3, retain: true, release: true), - ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.castFromPointer(arg4, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: true, + release: true, + ), + NSURLResponse.castFromPointer(arg3, retain: true, release: true), + ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.castFromPointer( + arg4, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -64411,46 +71203,63 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock)> listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionDataTask, - NSURLResponse, objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - NSURLResponse.castFromPointer(arg3, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLSessionResponseDisposition - .castFromPointer(arg4, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + NSURLResponse.castFromPointer(arg3, retain: false, release: true), + ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xx612k(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock)>(wrapper, - retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -64464,167 +71273,227 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock)> blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionDataTask, - NSURLResponse, objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - NSURLResponse.castFromPointer(arg3, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLSessionResponseDisposition - .castFromPointer(arg4, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + NSURLResponse.castFromPointer(arg3, retain: false, release: true), + ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - NSURLResponse.castFromPointer(arg3, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLSessionResponseDisposition - .castFromPointer(arg4, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + NSURLResponse.castFromPointer(arg3, retain: false, release: true), + ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xx612k( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock)>(wrapper, - retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition_CallExtension - on objc.ObjCBlock< - ffi.Void Function( + on + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionDataTask, NSURLResponse, - objc.ObjCBlock)> { + objc.ObjCBlock, + ) + > { void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLResponse arg3, - objc.ObjCBlock arg4) => + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLResponse arg3, + objc.ObjCBlock arg4, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, - arg0, - arg1.ref.pointer, - arg2.ref.pointer, - arg3.ref.pointer, - arg4.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + arg4.ref.pointer, + ); } -late final _sel_URLSession_dataTask_didBecomeDownloadTask_ = - objc.registerName("URLSession:dataTask:didBecomeDownloadTask:"); +late final _sel_URLSession_dataTask_didBecomeDownloadTask_ = objc.registerName( + "URLSession:dataTask:didBecomeDownloadTask:", +); late final _class_NSHTTPURLResponse = objc.getClass("NSHTTPURLResponse"); -late final _sel_initWithURL_statusCode_HTTPVersion_headerFields_ = - objc.registerName("initWithURL:statusCode:HTTPVersion:headerFields:"); +late final _sel_initWithURL_statusCode_HTTPVersion_headerFields_ = objc + .registerName("initWithURL:statusCode:HTTPVersion:headerFields:"); final _objc_msgSend_xw7l5 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_statusCode = objc.registerName("statusCode"); late final _sel_allHeaderFields = objc.registerName("allHeaderFields"); -late final _sel_localizedStringForStatusCode_ = - objc.registerName("localizedStringForStatusCode:"); +late final _sel_localizedStringForStatusCode_ = objc.registerName( + "localizedStringForStatusCode:", +); final _objc_msgSend_qugqlf = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); /// NSHTTPURLResponse class NSHTTPURLResponse extends NSURLResponse { - NSHTTPURLResponse._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSHTTPURLResponse._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSHTTPURLResponse] that points to the same underlying object as [other]. NSHTTPURLResponse.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSHTTPURLResponse] that wraps the given raw object pointer. - NSHTTPURLResponse.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSHTTPURLResponse.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSHTTPURLResponse]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSHTTPURLResponse); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSHTTPURLResponse, + ); } /// ! @@ -64636,21 +71505,25 @@ 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? initWithURLAndStatusCode(objc.NSURL url, - {required DartNSInteger statusCode, - objc.NSString? HTTPVersion, - objc.NSDictionary? headerFields}) { + NSHTTPURLResponse? initWithURLAndStatusCode( + objc.NSURL url, { + required DartNSInteger statusCode, + objc.NSString? HTTPVersion, + objc.NSDictionary? headerFields, + }) { objc.checkOsVersionInternal( - 'NSHTTPURLResponse.initWithURL:statusCode:HTTPVersion:headerFields:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); + 'NSHTTPURLResponse.initWithURL:statusCode:HTTPVersion:headerFields:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_xw7l5( - this.ref.retainAndReturnPointer(), - _sel_initWithURL_statusCode_HTTPVersion_headerFields_, - url.ref.pointer, - statusCode, - HTTPVersion?.ref.pointer ?? ffi.nullptr, - headerFields?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initWithURL_statusCode_HTTPVersion_headerFields_, + url.ref.pointer, + statusCode, + HTTPVersion?.ref.pointer ?? ffi.nullptr, + headerFields?.ref.pointer ?? ffi.nullptr, + ); return _ret.address == 0 ? null : NSHTTPURLResponse.castFromPointer(_ret, retain: false, release: true); @@ -64660,8 +71533,11 @@ class NSHTTPURLResponse extends NSURLResponse { /// @abstract Returns the HTTP status code of the receiver. /// @result The HTTP status code of the receiver. DartNSInteger get statusCode { - objc.checkOsVersionInternal('NSHTTPURLResponse.statusCode', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSHTTPURLResponse.statusCode', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_statusCode); } @@ -64675,8 +71551,11 @@ class NSHTTPURLResponse extends NSURLResponse { /// @result A dictionary containing all the HTTP header fields of the /// receiver. objc.NSDictionary get allHeaderFields { - objc.checkOsVersionInternal('NSHTTPURLResponse.allHeaderFields', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSHTTPURLResponse.allHeaderFields', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allHeaderFields); return objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); } @@ -64691,10 +71570,16 @@ class NSHTTPURLResponse extends NSURLResponse { /// @result the value associated with the given header field, or nil if /// there is no value associated with the given header field. objc.NSString? valueForHTTPHeaderField(objc.NSString field) { - objc.checkOsVersionInternal('NSHTTPURLResponse.valueForHTTPHeaderField:', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSHTTPURLResponse.valueForHTTPHeaderField:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_valueForHTTPHeaderField_, field.ref.pointer); + this.ref.pointer, + _sel_valueForHTTPHeaderField_, + field.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); @@ -64707,13 +71592,18 @@ 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 objc.NSString localizedStringForStatusCode( - DartNSInteger statusCode$1) { + DartNSInteger statusCode$1, + ) { objc.checkOsVersionInternal( - 'NSHTTPURLResponse.localizedStringForStatusCode:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0))); - final _ret = _objc_msgSend_qugqlf(_class_NSHTTPURLResponse, - _sel_localizedStringForStatusCode_, statusCode$1); + 'NSHTTPURLResponse.localizedStringForStatusCode:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final _ret = _objc_msgSend_qugqlf( + _class_NSHTTPURLResponse, + _sel_localizedStringForStatusCode_, + statusCode$1, + ); return objc.NSString.castFromPointer(_ret, retain: true, release: true); } @@ -64726,55 +71616,82 @@ class NSHTTPURLResponse extends NSURLResponse { /// @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. - NSHTTPURLResponse initWithUrlAndMIMEType(objc.NSURL URL, - {objc.NSString? MIMEType, - required DartNSInteger length, - objc.NSString? name}) { + NSHTTPURLResponse initWithUrlAndMIMEType( + objc.NSURL URL, { + objc.NSString? MIMEType, + required DartNSInteger length, + objc.NSString? name, + }) { objc.checkOsVersionInternal( - 'NSHTTPURLResponse.initWithURL:MIMEType:expectedContentLength:textEncodingName:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0))); + 'NSHTTPURLResponse.initWithURL:MIMEType:expectedContentLength:textEncodingName:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_l9ppnx( - this.ref.retainAndReturnPointer(), - _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_, - URL.ref.pointer, - MIMEType?.ref.pointer ?? ffi.nullptr, - length, - name?.ref.pointer ?? ffi.nullptr); - return NSHTTPURLResponse.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_, + URL.ref.pointer, + MIMEType?.ref.pointer ?? ffi.nullptr, + length, + name?.ref.pointer ?? ffi.nullptr, + ); + return NSHTTPURLResponse.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// init NSHTTPURLResponse init() { - objc.checkOsVersionInternal('NSHTTPURLResponse.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); - return NSHTTPURLResponse.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSHTTPURLResponse.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSHTTPURLResponse.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// new static NSHTTPURLResponse new$() { final _ret = _objc_msgSend_151sglz(_class_NSHTTPURLResponse, _sel_new); - return NSHTTPURLResponse.castFromPointer(_ret, - retain: false, release: true); + return NSHTTPURLResponse.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// allocWithZone: static NSHTTPURLResponse allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( - _class_NSHTTPURLResponse, _sel_allocWithZone_, zone); - return NSHTTPURLResponse.castFromPointer(_ret, - retain: false, release: true); + _class_NSHTTPURLResponse, + _sel_allocWithZone_, + zone, + ); + return NSHTTPURLResponse.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// alloc static NSHTTPURLResponse alloc() { final _ret = _objc_msgSend_151sglz(_class_NSHTTPURLResponse, _sel_alloc); - return NSHTTPURLResponse.castFromPointer(_ret, - retain: false, release: true); + return NSHTTPURLResponse.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// self @@ -64798,13 +71715,18 @@ class NSHTTPURLResponse extends NSURLResponse { /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635( - _class_NSHTTPURLResponse, _sel_supportsSecureCoding); + _class_NSHTTPURLResponse, + _sel_supportsSecureCoding, + ); } /// initWithCoder: NSHTTPURLResponse? initWithCoder(objc.NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSHTTPURLResponse.castFromPointer(_ret, retain: false, release: true); @@ -64815,106 +71737,131 @@ class NSHTTPURLResponse extends NSURLResponse { } void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_closureCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_listenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -64923,56 +71870,78 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionDownloadTask)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionDownloadTask)>(pointer, - retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -64980,17 +71949,43 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionDownloadTask)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3)>> ptr) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionDownloadTask)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_fnPtrCallable, ptr.cast()), - retain: false, - release: true); - - /// Creates a block from a Dart function. + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread @@ -64998,20 +71993,58 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.castFromPointer(arg2, retain: true, release: true), - NSURLSessionDownloadTask.castFromPointer(arg3, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: true, + release: true, + ), + NSURLSessionDownloadTask.castFromPointer( + arg3, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -65023,37 +72056,58 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionDownloadTask)> listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionDataTask, - NSURLSessionDownloadTask) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - NSURLSessionDownloadTask.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + NSURLSessionDownloadTask.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1tz5yf(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -65067,188 +72121,266 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionDownloadTask)> blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionDataTask, - NSURLSessionDownloadTask) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - NSURLSessionDownloadTask.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + NSURLSessionDownloadTask.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - NSURLSessionDownloadTask.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + NSURLSessionDownloadTask.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1tz5yf( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionDownloadTask)> { - void call(ffi.Pointer arg0, NSURLSession arg1, - NSURLSessionDataTask arg2, NSURLSessionDownloadTask arg3) => + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionDownloadTask arg3, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, - arg1.ref.pointer, arg2.ref.pointer, arg3.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + ); } -late final _sel_URLSession_dataTask_didBecomeStreamTask_ = - objc.registerName("URLSession:dataTask:didBecomeStreamTask:"); +late final _sel_URLSession_dataTask_didBecomeStreamTask_ = objc.registerName( + "URLSession:dataTask:didBecomeStreamTask:", +); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_closureCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_listenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -65257,56 +72389,78 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionStreamTask)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionStreamTask)>(pointer, - retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -65314,15 +72468,41 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionStreamTask)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3)>> ptr) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionStreamTask)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -65332,20 +72512,58 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.castFromPointer(arg2, retain: true, release: true), - NSURLSessionStreamTask.castFromPointer(arg3, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: true, + release: true, + ), + NSURLSessionStreamTask.castFromPointer( + arg3, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -65357,37 +72575,58 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionStreamTask)> listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionDataTask, - NSURLSessionStreamTask) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - NSURLSessionStreamTask.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + NSURLSessionStreamTask.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1tz5yf(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -65401,188 +72640,266 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionStreamTask)> blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionDataTask, - NSURLSessionStreamTask) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - NSURLSessionStreamTask.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + NSURLSessionStreamTask.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - NSURLSessionStreamTask.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + NSURLSessionStreamTask.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1tz5yf( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, NSURLSessionStreamTask)> { - void call(ffi.Pointer arg0, NSURLSession arg1, - NSURLSessionDataTask arg2, NSURLSessionStreamTask arg3) => + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionStreamTask arg3, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, - arg1.ref.pointer, arg2.ref.pointer, arg3.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + ); } -late final _sel_URLSession_dataTask_didReceiveData_ = - objc.registerName("URLSession:dataTask:didReceiveData:"); +late final _sel_URLSession_dataTask_didReceiveData_ = objc.registerName( + "URLSession:dataTask:didReceiveData:", +); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_closureCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_listenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -65591,74 +72908,120 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, objc.NSData)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, objc.NSData)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData)>(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, objc.NSData)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3)>> ptr) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, objc.NSData)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -65668,19 +73031,54 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, objc.NSData)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionDataTask, objc.NSData) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, objc.NSData)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.castFromPointer(arg2, retain: true, release: true), - objc.NSData.castFromPointer(arg3, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: true, + release: true, + ), + objc.NSData.castFromPointer(arg3, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -65692,37 +73090,54 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, objc.NSData)> listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionDataTask, - objc.NSData) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - objc.NSData.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + objc.NSData.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1tz5yf(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -65736,202 +73151,270 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, objc.NSData)> blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionDataTask, - objc.NSData) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - objc.NSData.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + objc.NSData.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - objc.NSData.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + objc.NSData.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1tz5yf( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, objc.NSData)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDataTask, objc.NSData)> { - void call(ffi.Pointer arg0, NSURLSession arg1, - NSURLSessionDataTask arg2, objc.NSData arg3) => + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + objc.NSData arg3, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, - arg1.ref.pointer, arg2.ref.pointer, arg3.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + ); } late final _sel_URLSession_dataTask_willCacheResponse_completionHandler_ = objc .registerName("URLSession:dataTask:willCacheResponse:completionHandler:"); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - arg0, arg1, arg2, arg3, arg4); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_closureTrampoline) + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_listenerTrampoline) - ..keepIsolateAlive = false; + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_closureTrampoline, + ) + .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) { - try { - (objc.getBlockClosure(block) as void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) { + (objc.getBlockClosure(block) + as void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -65940,67 +73423,84 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock)>(pointer, retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -66008,22 +73508,44 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function( + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, - objc.ObjCBlock)> fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, ffi.Pointer arg4)>> ptr) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -66033,20 +73555,67 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, objc.ObjCBlock)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, objc.ObjCBlock) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, ffi.Pointer arg4) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.castFromPointer(arg2, retain: true, release: true), - NSCachedURLResponse.castFromPointer(arg3, retain: true, release: true), - ObjCBlock_ffiVoid_NSCachedURLResponse.castFromPointer(arg4, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: true, + release: true, + ), + NSCachedURLResponse.castFromPointer( + arg3, + retain: true, + release: true, + ), + ObjCBlock_ffiVoid_NSCachedURLResponse.castFromPointer( + arg4, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -66058,52 +73627,63 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock)> listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - NSCachedURLResponse.castFromPointer(arg3, - retain: false, release: true), - ObjCBlock_ffiVoid_NSCachedURLResponse.castFromPointer(arg4, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + NSCachedURLResponse.castFromPointer(arg3, retain: false, release: true), + ObjCBlock_ffiVoid_NSCachedURLResponse.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xx612k(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -66117,204 +73697,259 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock)> blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - NSCachedURLResponse.castFromPointer(arg3, - retain: false, release: true), - ObjCBlock_ffiVoid_NSCachedURLResponse.castFromPointer(arg4, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + NSCachedURLResponse.castFromPointer(arg3, retain: false, release: true), + ObjCBlock_ffiVoid_NSCachedURLResponse.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDataTask.castFromPointer(arg2, - retain: false, release: true), - NSCachedURLResponse.castFromPointer(arg3, - retain: false, release: true), - ObjCBlock_ffiVoid_NSCachedURLResponse.castFromPointer(arg4, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDataTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + NSCachedURLResponse.castFromPointer(arg3, retain: false, release: true), + ObjCBlock_ffiVoid_NSCachedURLResponse.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xx612k( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, objc.ObjCBlock)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse_CallExtension - on objc.ObjCBlock< - ffi.Void Function( + on + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, - objc.ObjCBlock)> { + objc.ObjCBlock, + ) + > { void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSCachedURLResponse arg3, - objc.ObjCBlock arg4) => + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSCachedURLResponse arg3, + objc.ObjCBlock arg4, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, - arg0, - arg1.ref.pointer, - arg2.ref.pointer, - arg3.ref.pointer, - arg4.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + arg4.ref.pointer, + ); } -late final _sel_URLSession_didCreateTask_ = - objc.registerName("URLSession:didCreateTask:"); +late final _sel_URLSession_didCreateTask_ = objc.registerName( + "URLSession:didCreateTask:", +); void _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_closureCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_closureTrampoline) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_listenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -66323,69 +73958,95 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask { + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, NSURLSession, NSURLSessionTask)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask)>(pointer, retain: retain, release: release); + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock, NSURLSession, NSURLSessionTask)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) => - objc.ObjCBlock, NSURLSession, NSURLSessionTask)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -66395,19 +74056,32 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionTask)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionTask)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionTask.castFromPointer(arg2, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + fromFunction( + void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -66419,28 +74093,32 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, NSURLSession, NSURLSessionTask)> listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + listener( + void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_fjrv01(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask)>(wrapper, retain: false, release: true); + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -66454,188 +74132,233 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, NSURLSession, NSURLSessionTask)> blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + blocking( + void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_fjrv01( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask)>(wrapper, retain: false, release: true); + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_CallExtension - on objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, NSURLSession, NSURLSessionTask)> { - void call(ffi.Pointer arg0, NSURLSession arg1, - NSURLSessionTask arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer); + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer); } late final _sel_URLSession_task_willBeginDelayedRequest_completionHandler_ = objc.registerName( - "URLSession:task:willBeginDelayedRequest:completionHandler:"); + "URLSession:task:willBeginDelayedRequest:completionHandler:", + ); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - arg0, arg1, arg2, arg3, arg4); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_closureTrampoline) + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_listenerTrampoline) - ..keepIsolateAlive = false; + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_closureTrampoline, + ) + .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) { - try { - (objc.getBlockClosure(block) as void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) { + (objc.getBlockClosure(block) + as void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -66644,67 +74367,84 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock)>(pointer, retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -66712,22 +74452,44 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function( + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)> fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, ffi.Pointer arg4)>> ptr) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -66737,20 +74499,59 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, ffi.Pointer arg4) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), - NSURLRequest.castFromPointer(arg3, retain: true, release: true), - ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.castFromPointer(arg4, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), + NSURLRequest.castFromPointer(arg3, retain: true, release: true), + ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.castFromPointer( + arg4, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -66762,53 +74563,59 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock)> - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSURLRequest.castFromPointer(arg3, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest - .castFromPointer(arg4, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSURLRequest.castFromPointer(arg3, retain: false, release: true), + ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xx612k(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -66822,168 +74629,206 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock)> - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSURLRequest.castFromPointer(arg3, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest - .castFromPointer(arg4, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSURLRequest.castFromPointer(arg3, retain: false, release: true), + ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSURLRequest.castFromPointer(arg3, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest - .castFromPointer(arg4, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSURLRequest.castFromPointer(arg3, retain: false, release: true), + ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xx612k( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest_CallExtension - on objc.ObjCBlock< - ffi.Void Function( + on + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)> { + objc.ObjCBlock, + ) + > { void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock arg4) => + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock arg4, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, - arg0, - arg1.ref.pointer, - arg2.ref.pointer, - arg3.ref.pointer, - arg4.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + arg4.ref.pointer, + ); } -late final _sel_URLSession_taskIsWaitingForConnectivity_ = - objc.registerName("URLSession:taskIsWaitingForConnectivity:"); +late final _sel_URLSession_taskIsWaitingForConnectivity_ = objc.registerName( + "URLSession:taskIsWaitingForConnectivity:", +); void _ObjCBlock_ffiVoid_NSURLRequest_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSURLRequest_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSURLRequest_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURLRequest_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSURLRequest_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSURLRequest_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSURLRequest_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURLRequest_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSURLRequest_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURLRequest_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURLRequest_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSURLRequest_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSURLRequest_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSURLRequest_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -66992,34 +74837,50 @@ void _ObjCBlock_ffiVoid_NSURLRequest_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURLRequest_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSURLRequest_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURLRequest_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSURLRequest_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURLRequest_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSURLRequest_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURLRequest_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSURLRequest_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSURLRequest { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -67027,15 +74888,18 @@ abstract final class ObjCBlock_ffiVoid_NSURLRequest { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSURLRequest_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSURLRequest_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -67046,18 +74910,21 @@ abstract final class ObjCBlock_ffiVoid_NSURLRequest { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(NSURLRequest?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLRequest_closureCallable, - (ffi.Pointer arg0) => fn(arg0.address == 0 - ? null - : NSURLRequest.castFromPointer(arg0, - retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURLRequest_closureCallable, + (ffi.Pointer arg0) => fn( + arg0.address == 0 + ? null + : NSURLRequest.castFromPointer(arg0, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -67069,18 +74936,25 @@ abstract final class ObjCBlock_ffiVoid_NSURLRequest { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(NSURLRequest?) fn, - {bool keepIsolateAlive = true}) { + void Function(NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLRequest_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSURLRequest_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : NSURLRequest.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : NSURLRequest.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -67094,27 +74968,40 @@ abstract final class ObjCBlock_ffiVoid_NSURLRequest { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(NSURLRequest?) fn, - {bool keepIsolateAlive = true}) { + void Function(NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLRequest_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSURLRequest_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : NSURLRequest.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : NSURLRequest.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLRequest_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSURLRequest_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : NSURLRequest.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : NSURLRequest.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -67122,223 +75009,270 @@ abstract final class ObjCBlock_ffiVoid_NSURLRequest { extension ObjCBlock_ffiVoid_NSURLRequest_CallExtension on objc.ObjCBlock { void call(NSURLRequest? arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); } late final _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = objc.registerName( - "URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:"); + "URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:", + ); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - arg0, arg1, arg2, arg3, arg4, arg5); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))( - arg0, arg1, arg2, arg3, arg4, arg5); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_closureCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_closureTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4, arg5); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_listenerTrampoline) - ..keepIsolateAlive = false; + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_closureTrampoline, + ) + .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5) { - try { - (objc.getBlockClosure(block) as void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +) { + (objc.getBlockClosure(block) + as void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4, arg5); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_listenerTrampoline, + ) ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingListenerCallable = + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock)>(pointer, retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -67346,24 +75280,47 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSH /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function( + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, - objc.ObjCBlock)> fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, ffi.Pointer arg4, ffi.Pointer arg5)>> ptr) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -67373,21 +75330,68 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSH /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, objc.ObjCBlock)> fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, objc.ObjCBlock) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, ffi.Pointer arg4, ffi.Pointer arg5) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), - NSHTTPURLResponse.castFromPointer(arg3, retain: true, release: true), - NSURLRequest.castFromPointer(arg4, retain: true, release: true), - ObjCBlock_ffiVoid_NSURLRequest.castFromPointer(arg5, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), + NSHTTPURLResponse.castFromPointer( + arg3, + retain: true, + release: true, + ), + NSURLRequest.castFromPointer(arg4, retain: true, release: true), + ObjCBlock_ffiVoid_NSURLRequest.castFromPointer( + arg5, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -67399,56 +75403,64 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSH /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock)> listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSHTTPURLResponse.castFromPointer(arg3, - retain: false, release: true), - NSURLRequest.castFromPointer(arg4, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLRequest.castFromPointer(arg5, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSHTTPURLResponse.castFromPointer(arg3, retain: false, release: true), + NSURLRequest.castFromPointer(arg4, retain: false, release: true), + ObjCBlock_ffiVoid_NSURLRequest.castFromPointer( + arg5, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_l2g8ke(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock)>(wrapper, - retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -67462,128 +75474,151 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSH /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock)> blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSHTTPURLResponse.castFromPointer(arg3, - retain: false, release: true), - NSURLRequest.castFromPointer(arg4, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLRequest.castFromPointer(arg5, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSHTTPURLResponse.castFromPointer(arg3, retain: false, release: true), + NSURLRequest.castFromPointer(arg4, retain: false, release: true), + ObjCBlock_ffiVoid_NSURLRequest.castFromPointer( + arg5, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSHTTPURLResponse.castFromPointer(arg3, - retain: false, release: true), - NSURLRequest.castFromPointer(arg4, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLRequest.castFromPointer(arg5, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSHTTPURLResponse.castFromPointer(arg3, retain: false, release: true), + NSURLRequest.castFromPointer(arg4, retain: false, release: true), + ObjCBlock_ffiVoid_NSURLRequest.castFromPointer( + arg5, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_l2g8ke( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock)>(wrapper, - retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, objc.ObjCBlock)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest_CallExtension - on objc.ObjCBlock< - ffi.Void Function( + on + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, - objc.ObjCBlock)> { + objc.ObjCBlock, + ) + > { void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5) => + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, - arg0, - arg1.ref.pointer, - arg2.ref.pointer, - arg3.ref.pointer, - arg4.ref.pointer, - arg5.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + arg4.ref.pointer, + arg5.ref.pointer, + ); } /// WARNING: NSURLAuthenticationChallenge is a stub. To generate bindings for this class, include @@ -67591,20 +75626,22 @@ extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLRespo /// /// NSURLAuthenticationChallenge class NSURLAuthenticationChallenge extends objc.ObjCObjectBase { - NSURLAuthenticationChallenge._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSURLAuthenticationChallenge._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSURLAuthenticationChallenge] that points to the same underlying object as [other]. NSURLAuthenticationChallenge.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLAuthenticationChallenge] that wraps the given raw object pointer. NSURLAuthenticationChallenge.castFromPointer( - ffi.Pointer other, - {bool retain = false, - bool release = false}) - : this._(other, retain: retain, release: release); + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } /// WARNING: NSURLCredential is a stub. To generate bindings for this class, include @@ -67612,81 +75649,107 @@ class NSURLAuthenticationChallenge extends objc.ObjCObjectBase { /// /// NSURLCredential class NSURLCredential extends objc.ObjCObjectBase { - NSURLCredential._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSURLCredential._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSURLCredential] that points to the same underlying object as [other]. NSURLCredential.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLCredential] that wraps the given raw object pointer. - NSURLCredential.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLCredential.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } void - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(NSInteger arg0, - ffi.Pointer arg1)>>() - .asFunction)>()( - arg0, arg1); +_ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(NSInteger arg0, ffi.Pointer arg1) + > + >() + .asFunction)>()(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_fnPtrCallable = +_ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as void Function( - int, ffi.Pointer))(arg0, arg1); +_ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(int, ffi.Pointer))(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_closureCallable = +_ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_listenerTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1) { - (objc.getBlockClosure(block) as void Function( - int, ffi.Pointer))(arg0, arg1); +_ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_listenerTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(int, ffi.Pointer))(arg0, arg1); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, NSInteger, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_listenerCallable = + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, NSInteger, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0, - ffi.Pointer arg1) { +_ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, + ffi.Pointer arg1, +) { try { - (objc.getBlockClosure(block) as void Function( - int, ffi.Pointer))(arg0, arg1); + (objc.getBlockClosure(block) + as void Function(int, ffi.Pointer))(arg0, arg1); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -67695,56 +75758,81 @@ void } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, NSInteger, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, NSInteger, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock( - pointer, - retain: retain, - release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> fromFunctionPointer( - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(NSInteger arg0, ffi.Pointer arg1) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -67755,19 +75843,27 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSUR /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock - fromFunction(void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_closureCallable, - (int arg0, ffi.Pointer arg1) => fn( - NSURLSessionAuthChallengeDisposition.fromValue(arg0), - arg1.address == 0 - ? null - : NSURLCredential.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + fromFunction( + void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_closureCallable, + (int arg0, ffi.Pointer arg1) => fn( + NSURLSessionAuthChallengeDisposition.fromValue(arg0), + arg1.address == 0 + ? null + : NSURLCredential.castFromPointer( + arg1, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -67779,27 +75875,33 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSUR /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock - listener( - void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) - fn, - {bool keepIsolateAlive = true}) { + listener( + void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_listenerCallable - .nativeFunction - .cast(), - (int arg0, ffi.Pointer arg1) => fn( - NSURLSessionAuthChallengeDisposition.fromValue(arg0), - arg1.address == 0 - ? null - : NSURLCredential.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_listenerCallable + .nativeFunction + .cast(), + (int arg0, ffi.Pointer arg1) => fn( + NSURLSessionAuthChallengeDisposition.fromValue(arg0), + arg1.address == 0 + ? null + : NSURLCredential.castFromPointer( + arg1, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_n8yd09(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -67813,40 +75915,54 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSUR /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock - blocking( - void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) - fn, - {bool keepIsolateAlive = true}) { + blocking( + void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingCallable - .nativeFunction - .cast(), - (int arg0, ffi.Pointer arg1) => fn( - NSURLSessionAuthChallengeDisposition.fromValue(arg0), - arg1.address == 0 - ? null - : NSURLCredential.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingCallable + .nativeFunction + .cast(), + (int arg0, ffi.Pointer arg1) => fn( + NSURLSessionAuthChallengeDisposition.fromValue(arg0), + arg1.address == 0 + ? null + : NSURLCredential.castFromPointer( + arg1, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingListenerCallable - .nativeFunction - .cast(), - (int arg0, ffi.Pointer arg1) => fn( - NSURLSessionAuthChallengeDisposition.fromValue(arg0), - arg1.address == 0 - ? null - : NSURLCredential.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential_blockingListenerCallable + .nativeFunction + .cast(), + (int arg0, ffi.Pointer arg1) => fn( + NSURLSessionAuthChallengeDisposition.fromValue(arg0), + arg1.address == 0 + ? null + : NSURLCredential.castFromPointer( + arg1, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_n8yd09( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } } @@ -67855,133 +75971,165 @@ extension ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential on objc.ObjCBlock { void call(NSURLSessionAuthChallengeDisposition arg0, NSURLCredential? arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - NSInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer, int, - ffi.Pointer)>()( - ref.pointer, arg0.value, arg1?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSInteger arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0.value, arg1?.ref.pointer ?? ffi.nullptr); } -late final _sel_URLSession_task_didReceiveChallenge_completionHandler_ = - objc.registerName("URLSession:task:didReceiveChallenge:completionHandler:"); +late final _sel_URLSession_task_didReceiveChallenge_completionHandler_ = objc + .registerName("URLSession:task:didReceiveChallenge:completionHandler:"); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - arg0, arg1, arg2, arg3, arg4); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureTrampoline) + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerTrampoline) - ..keepIsolateAlive = false; + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureTrampoline, + ) + .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) { - try { - (objc.getBlockClosure(block) as void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) { + (objc.getBlockClosure(block) + as void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -67990,67 +76138,84 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)>(pointer, retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -68058,22 +76223,44 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function( + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, - objc.ObjCBlock)> fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, ffi.Pointer arg4)>> ptr) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -68083,20 +76270,63 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, ffi.Pointer arg4) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), - NSURLAuthenticationChallenge.castFromPointer(arg3, retain: true, release: true), - ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.castFromPointer(arg4, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), + NSURLAuthenticationChallenge.castFromPointer( + arg3, + retain: true, + release: true, + ), + ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.castFromPointer( + arg4, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -68108,52 +76338,63 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)>)> listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSURLAuthenticationChallenge.castFromPointer(arg3, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential - .castFromPointer(arg4, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSURLAuthenticationChallenge.castFromPointer( + arg3, + retain: false, + release: true, + ), + ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xx612k(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)>)>(wrapper, - retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -68167,161 +76408,211 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)>)> blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSURLAuthenticationChallenge.castFromPointer(arg3, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential - .castFromPointer(arg4, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSURLAuthenticationChallenge.castFromPointer( + arg3, + retain: false, + release: true, + ), + ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSURLAuthenticationChallenge.castFromPointer(arg3, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential - .castFromPointer(arg4, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSURLAuthenticationChallenge.castFromPointer( + arg3, + retain: false, + release: true, + ), + ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xx612k( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)>)>(wrapper, - retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_CallExtension - on objc.ObjCBlock< - ffi.Void Function( + on + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, - objc.ObjCBlock)> { + objc.ObjCBlock, + ) + > { void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4) => + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock arg4, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3.ref.pointer, arg4.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + arg4.ref.pointer, + ); } void _ObjCBlock_ffiVoid_NSInputStream_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSInputStream_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSInputStream_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSInputStream_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSInputStream_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSInputStream_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSInputStream_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSInputStream_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSInputStream_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSInputStream_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSInputStream_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSInputStream_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSInputStream_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSInputStream_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -68330,50 +76621,70 @@ void _ObjCBlock_ffiVoid_NSInputStream_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSInputStream_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSInputStream_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSInputStream_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSInputStream_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSInputStream_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSInputStream_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSInputStream_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSInputStream_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSInputStream { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSInputStream_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSInputStream_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -68384,17 +76695,25 @@ abstract final class ObjCBlock_ffiVoid_NSInputStream { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(objc.NSInputStream?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSInputStream_closureCallable, - (ffi.Pointer arg0) => fn(arg0.address == 0 - ? null - : objc.NSInputStream.castFromPointer(arg0, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(objc.NSInputStream?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSInputStream_closureCallable, + (ffi.Pointer arg0) => fn( + arg0.address == 0 + ? null + : objc.NSInputStream.castFromPointer( + arg0, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -68406,19 +76725,29 @@ abstract final class ObjCBlock_ffiVoid_NSInputStream { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(objc.NSInputStream?) fn, - {bool keepIsolateAlive = true}) { + void Function(objc.NSInputStream?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSInputStream_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSInputStream_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : objc.NSInputStream.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + : objc.NSInputStream.castFromPointer( + arg0, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -68432,29 +76761,48 @@ abstract final class ObjCBlock_ffiVoid_NSInputStream { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(objc.NSInputStream?) fn, - {bool keepIsolateAlive = true}) { + void Function(objc.NSInputStream?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSInputStream_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSInputStream_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : objc.NSInputStream.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + : objc.NSInputStream.castFromPointer( + arg0, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSInputStream_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_NSInputStream_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : objc.NSInputStream.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + : objc.NSInputStream.castFromPointer( + arg0, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -68462,119 +76810,151 @@ abstract final class ObjCBlock_ffiVoid_NSInputStream { extension ObjCBlock_ffiVoid_NSInputStream_CallExtension on objc.ObjCBlock { void call(objc.NSInputStream? arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); } -late final _sel_URLSession_task_needNewBodyStream_ = - objc.registerName("URLSession:task:needNewBodyStream:"); +late final _sel_URLSession_task_needNewBodyStream_ = objc.registerName( + "URLSession:task:needNewBodyStream:", +); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_closureCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_listenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -68583,80 +76963,120 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.ObjCBlock)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3)>> ptr) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -68666,19 +77086,54 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffi /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.ObjCBlock)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, objc.ObjCBlock) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), - ObjCBlock_ffiVoid_NSInputStream.castFromPointer(arg3, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), + ObjCBlock_ffiVoid_NSInputStream.castFromPointer( + arg3, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -68690,40 +77145,54 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffi /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - objc.ObjCBlock)> listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - ObjCBlock_ffiVoid_NSInputStream.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + ObjCBlock_ffiVoid_NSInputStream.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_bklti2(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -68737,209 +77206,272 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffi /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - objc.ObjCBlock)> blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - ObjCBlock_ffiVoid_NSInputStream.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + ObjCBlock_ffiVoid_NSInputStream.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - ObjCBlock_ffiVoid_NSInputStream.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + ObjCBlock_ffiVoid_NSInputStream.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_bklti2( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.ObjCBlock)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - objc.ObjCBlock)> { + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > { void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3) => + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, - arg1.ref.pointer, arg2.ref.pointer, arg3.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + ); } late final _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = objc.registerName( - "URLSession:task:needNewBodyStreamFromOffset:completionHandler:"); + "URLSession:task:needNewBodyStreamFromOffset:completionHandler:", + ); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Pointer arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>()( - arg0, arg1, arg2, arg3, arg4); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_closureTrampoline) + ffi.Int64, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int64, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_listenerTrampoline) - ..keepIsolateAlive = false; + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_closureTrampoline, + ) + .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) { - try { - (objc.getBlockClosure(block) as void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, +) { + (objc.getBlockClosure(block) + as void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -68948,87 +77480,129 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock)>(pointer, retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, objc.ObjCBlock)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Int64 arg3, ffi.Pointer arg4)>> ptr) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -69038,20 +77612,59 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, objc.ObjCBlock)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, int, objc.ObjCBlock) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, int arg3, ffi.Pointer arg4) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), - arg3, - ObjCBlock_ffiVoid_NSInputStream.castFromPointer(arg4, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), + arg3, + ObjCBlock_ffiVoid_NSInputStream.castFromPointer( + arg4, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -69063,47 +77676,59 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock)> listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - ObjCBlock_ffiVoid_NSInputStream.castFromPointer(arg4, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + arg3, + ObjCBlock_ffiVoid_NSInputStream.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_jyim80(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -69117,237 +77742,297 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock)> blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - ObjCBlock_ffiVoid_NSInputStream.castFromPointer(arg4, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + arg3, + ObjCBlock_ffiVoid_NSInputStream.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - ObjCBlock_ffiVoid_NSInputStream.castFromPointer(arg4, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + arg3, + ObjCBlock_ffiVoid_NSInputStream.castFromPointer( + arg4, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_jyim80( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, objc.ObjCBlock)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream_CallExtension - on objc.ObjCBlock< - ffi.Void Function( + on + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionTask, ffi.Int64, - objc.ObjCBlock)> { + objc.ObjCBlock, + ) + > { void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4) => + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Pointer arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>()(ref.pointer, arg0, - arg1.ref.pointer, arg2.ref.pointer, arg3, arg4.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3, + arg4.ref.pointer, + ); } late final _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = objc.registerName( - "URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:"); + "URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:", + ); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int)>()(arg0, arg1, arg2, arg3, arg4, arg5); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - int, - int))(arg0, arg1, arg2, arg3, arg4, arg5); -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_closureTrampoline) + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int))(arg0, arg1, arg2, arg3, arg4, arg5); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4, arg5); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int64, ffi.Int64, - ffi.Int64)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_listenerTrampoline) - ..keepIsolateAlive = false; + ffi.Int64, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_closureTrampoline, + ) + .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) { - try { - (objc.getBlockClosure(block) as void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, +) { + (objc.getBlockClosure(block) + as void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, - int))(arg0, arg1, arg2, arg3, arg4, arg5); + int, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4, arg5); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -69356,68 +78041,90 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64)>(pointer, retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -69425,19 +78132,47 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function( + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, - ffi.Int64)> fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Int64 arg3, ffi.Int64 arg4, ffi.Int64 arg5)>> ptr) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Int64, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -69447,23 +78182,60 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, int, int, int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_closureCallable, - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) => - fn(arg0, NSURLSession.castFromPointer(arg1, retain: true, release: true), NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), arg3, arg4, arg5), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), + arg3, + arg4, + arg5, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -69475,42 +78247,60 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - ffi.Int64, ffi.Int64, ffi.Int64)> listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, int, - int, int) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - arg4, - arg5), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + arg3, + arg4, + arg5, + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_h68abb(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -69524,200 +78314,273 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - ffi.Int64, ffi.Int64, ffi.Int64)> blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, int, - int, int) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - arg4, - arg5), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + arg3, + arg4, + arg5, + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - arg4, - arg5), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + arg3, + arg4, + arg5, + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_h68abb( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_CallExtension + on + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, - ffi.Int64)>(wrapper, retain: false, release: true); - } + ffi.Int64, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3, + arg4, + arg5, + ); } -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - ffi.Int64, ffi.Int64, ffi.Int64)> { - void call(ffi.Pointer arg0, NSURLSession arg1, - NSURLSessionTask arg2, int arg3, int arg4, int arg5) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int)>()(ref.pointer, arg0, arg1.ref.pointer, - arg2.ref.pointer, arg3, arg4, arg5); -} - -late final _sel_URLSession_task_didReceiveInformationalResponse_ = - objc.registerName("URLSession:task:didReceiveInformationalResponse:"); +late final _sel_URLSession_task_didReceiveInformationalResponse_ = objc + .registerName("URLSession:task:didReceiveInformationalResponse:"); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_closureTrampoline) + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_listenerTrampoline) - ..keepIsolateAlive = false; + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_closureTrampoline, + ) + .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { - try { - (objc.getBlockClosure(block) as void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { + (objc.getBlockClosure(block) + as void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -69726,73 +78589,120 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask, NSHTTPURLResponse)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask, NSHTTPURLResponse)>(pointer, - retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc - .ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3)>> ptr) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask, NSHTTPURLResponse)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -69802,20 +78712,54 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSH /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, NSHTTPURLResponse) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), - NSHTTPURLResponse.castFromPointer(arg3, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), + NSHTTPURLResponse.castFromPointer( + arg3, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -69827,34 +78771,50 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSH /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSHTTPURLResponse)> listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSHTTPURLResponse) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSHTTPURLResponse.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSHTTPURLResponse.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1tz5yf(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSHTTPURLResponse)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -69868,80 +78828,119 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSH /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSHTTPURLResponse)> blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSHTTPURLResponse) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSHTTPURLResponse.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSHTTPURLResponse.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSHTTPURLResponse.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSHTTPURLResponse.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1tz5yf( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSHTTPURLResponse)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSHTTPURLResponse)> { - void call(ffi.Pointer arg0, NSURLSession arg1, - NSURLSessionTask arg2, NSHTTPURLResponse arg3) => + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, - arg1.ref.pointer, arg2.ref.pointer, arg3.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + ); } /// WARNING: NSURLSessionTaskMetrics is a stub. To generate bindings for this class, include @@ -69949,126 +78948,159 @@ extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLRespo /// /// NSURLSessionTaskMetrics class NSURLSessionTaskMetrics extends objc.NSObject { - NSURLSessionTaskMetrics._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSURLSessionTaskMetrics', - iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0))); + NSURLSessionTaskMetrics._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionTaskMetrics', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); } /// Constructs a [NSURLSessionTaskMetrics] that points to the same underlying object as [other]. NSURLSessionTaskMetrics.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionTaskMetrics] that wraps the given raw object pointer. - NSURLSessionTaskMetrics.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLSessionTaskMetrics.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } -late final _sel_URLSession_task_didFinishCollectingMetrics_ = - objc.registerName("URLSession:task:didFinishCollectingMetrics:"); +late final _sel_URLSession_task_didFinishCollectingMetrics_ = objc.registerName( + "URLSession:task:didFinishCollectingMetrics:", +); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_closureCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_listenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -70077,56 +79109,78 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask, NSURLSessionTaskMetrics)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask, NSURLSessionTaskMetrics)>(pointer, - retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -70134,15 +79188,41 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask, NSURLSessionTaskMetrics)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3)>> ptr) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask, NSURLSessionTaskMetrics)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -70152,20 +79232,54 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), - NSURLSessionTaskMetrics.castFromPointer(arg3, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), + NSURLSessionTaskMetrics.castFromPointer( + arg3, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -70177,34 +79291,54 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSURLSessionTaskMetrics)> listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSURLSessionTaskMetrics) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSURLSessionTaskMetrics.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSURLSessionTaskMetrics.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1tz5yf(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSURLSessionTaskMetrics)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -70218,185 +79352,258 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSURLSessionTaskMetrics)> blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSURLSessionTaskMetrics) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSURLSessionTaskMetrics.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSURLSessionTaskMetrics.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - NSURLSessionTaskMetrics.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + NSURLSessionTaskMetrics.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1tz5yf( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSURLSessionTaskMetrics)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - NSURLSessionTaskMetrics)> { - void call(ffi.Pointer arg0, NSURLSession arg1, - NSURLSessionTask arg2, NSURLSessionTaskMetrics arg3) => + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, - arg1.ref.pointer, arg2.ref.pointer, arg3.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + ); } -late final _sel_URLSession_task_didCompleteWithError_ = - objc.registerName("URLSession:task:didCompleteWithError:"); +late final _sel_URLSession_task_didCompleteWithError_ = objc.registerName( + "URLSession:task:didCompleteWithError:", +); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_closureCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -70405,58 +79612,78 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.NSError?)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask, objc.NSError?)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?)>(pointer, retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -70464,15 +79691,41 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSE /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask, objc.NSError?)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3)>> ptr) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionTask, objc.NSError?)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -70482,19 +79735,56 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSE /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.NSError?)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, objc.NSError?) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.NSError?)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), - arg3.address == 0 ? null : objc.NSError.castFromPointer(arg3, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSError.castFromPointer( + arg3, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -70506,36 +79796,52 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSE /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - objc.NSError?)> listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - objc.NSError?) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - arg3.address == 0 - ? null - : objc.NSError.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + arg3.address == 0 + ? null + : objc.NSError.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1tz5yf(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - objc.NSError?)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -70549,170 +79855,233 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSE /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - objc.NSError?)> blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - objc.NSError?) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - arg3.address == 0 - ? null - : objc.NSError.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + arg3.address == 0 + ? null + : objc.NSError.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionTask.castFromPointer(arg2, - retain: false, release: true), - arg3.address == 0 - ? null - : objc.NSError.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionTask.castFromPointer(arg2, retain: false, release: true), + arg3.address == 0 + ? null + : objc.NSError.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1tz5yf( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - objc.NSError?)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.NSError?)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask, - objc.NSError?)> { - void call(ffi.Pointer arg0, NSURLSession arg1, - NSURLSessionTask arg2, objc.NSError? arg3) => + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, - arg1.ref.pointer, arg2.ref.pointer, arg3?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3?.ref.pointer ?? ffi.nullptr, + ); } -late final _sel_URLSession_didBecomeInvalidWithError_ = - objc.registerName("URLSession:didBecomeInvalidWithError:"); +late final _sel_URLSession_didBecomeInvalidWithError_ = objc.registerName( + "URLSession:didBecomeInvalidWithError:", +); void _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_closureCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_listenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_listenerTrampoline, + ) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -70721,67 +80090,95 @@ void _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, objc.NSError?)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - objc.NSError?)>(pointer, retain: retain, release: release); + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc - .ObjCBlock, NSURLSession, objc.NSError?)> - fromFunctionPointer( - ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>> - ptr) => - objc.ObjCBlock, NSURLSession, objc.NSError?)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -70791,19 +80188,38 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, objc.NSError?)> fromFunction( - void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, objc.NSError?)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - arg2.address == 0 ? null : objc.NSError.castFromPointer(arg2, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + fromFunction( + void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.NSError.castFromPointer( + arg2, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -70815,30 +80231,34 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?)> - listener( - void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + listener( + void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - arg2.address == 0 - ? null - : objc.NSError.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + arg2.address == 0 + ? null + : objc.NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_fjrv01(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - objc.NSError?)>(wrapper, retain: false, release: true); + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -70852,176 +80272,224 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?)> - blocking( - void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + blocking( + void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - arg2.address == 0 - ? null - : objc.NSError.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + arg2.address == 0 + ? null + : objc.NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - arg2.address == 0 - ? null - : objc.NSError.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + arg2.address == 0 + ? null + : objc.NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_fjrv01( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - objc.NSError?)>(wrapper, retain: false, release: true); + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, objc.NSError?)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?)> { + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > { void call( - ffi.Pointer arg0, NSURLSession arg1, objc.NSError? arg2) => + ffi.Pointer arg0, + NSURLSession arg1, + objc.NSError? arg2, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, - arg1.ref.pointer, arg2?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2?.ref.pointer ?? ffi.nullptr, + ); } -late final _sel_URLSession_didReceiveChallenge_completionHandler_ = - objc.registerName("URLSession:didReceiveChallenge:completionHandler:"); +late final _sel_URLSession_didReceiveChallenge_completionHandler_ = objc + .registerName("URLSession:didReceiveChallenge:completionHandler:"); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -71030,61 +80498,78 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -71092,18 +80577,41 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationC /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3)>> ptr) => - objc.ObjCBlock, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -71113,19 +80621,58 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationC /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLAuthenticationChallenge.castFromPointer(arg2, retain: true, release: true), - ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.castFromPointer(arg3, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLAuthenticationChallenge.castFromPointer( + arg2, + retain: true, + release: true, + ), + ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.castFromPointer( + arg3, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -71137,46 +80684,58 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationC /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)>)> listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLAuthenticationChallenge.castFromPointer(arg2, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential - .castFromPointer(arg3, retain: false, release: true)), - keepIsolateAlive); - final wrapper = _NativeCupertinoHttp_wrapListenerBlock_bklti2(raw); - objc.objectRelease(raw.cast()); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLAuthenticationChallenge.castFromPointer( + arg2, + retain: false, + release: true, + ), + ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); + final wrapper = _NativeCupertinoHttp_wrapListenerBlock_bklti2(raw); + objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)>)>(wrapper, - retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -71190,159 +80749,224 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationC /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)>)> blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLAuthenticationChallenge.castFromPointer(arg2, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential - .castFromPointer(arg3, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLAuthenticationChallenge.castFromPointer( + arg2, + retain: false, + release: true, + ), + ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLAuthenticationChallenge.castFromPointer(arg2, - retain: false, release: true), - ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential - .castFromPointer(arg3, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLAuthenticationChallenge.castFromPointer( + arg2, + retain: false, + release: true, + ), + ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.castFromPointer( + arg3, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_bklti2( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)>)>(wrapper, - retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential_CallExtension - on objc.ObjCBlock< - ffi.Void Function( + on + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLAuthenticationChallenge, - objc.ObjCBlock)> { + objc.ObjCBlock, + ) + > { void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3) => + ffi.Pointer arg0, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock arg3, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + ); } -late final _sel_URLSessionDidFinishEventsForBackgroundURLSession_ = - objc.registerName("URLSessionDidFinishEventsForBackgroundURLSession:"); +late final _sel_URLSessionDidFinishEventsForBackgroundURLSession_ = objc + .registerName("URLSessionDidFinishEventsForBackgroundURLSession:"); void _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_listenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -71351,45 +80975,55 @@ void _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock, NSURLSession)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, - NSURLSession)>(pointer, retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSURLSession)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -71397,16 +81031,24 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock, NSURLSession)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock, NSURLSession)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSURLSession)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -71416,18 +81058,22 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession)> fromFunction( - void Function(ffi.Pointer, NSURLSession) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, NSURLSession.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock, NSURLSession)> + fromFunction( + void Function(ffi.Pointer, NSURLSession) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSURLSession)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -71439,20 +81085,24 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock, NSURLSession)> - listener(void Function(ffi.Pointer, NSURLSession) fn, - {bool keepIsolateAlive = true}) { + listener( + void Function(ffi.Pointer, NSURLSession) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_listenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_18v1jvf(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession)>(wrapper, - retain: false, release: true); + ffi.Void Function(ffi.Pointer, NSURLSession) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -71466,30 +81116,39 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock, NSURLSession)> - blocking(void Function(ffi.Pointer, NSURLSession) fn, - {bool keepIsolateAlive = true}) { + blocking( + void Function(ffi.Pointer, NSURLSession) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_18v1jvf( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession)>(wrapper, - retain: false, release: true); + ffi.Void Function(ffi.Pointer, NSURLSession) + >(wrapper, retain: false, release: true); } } @@ -71497,40 +81156,55 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession { extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_CallExtension on objc.ObjCBlock, NSURLSession)> { void call(ffi.Pointer arg0, NSURLSession arg1) => ref - .pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>()( - ref.pointer, arg0, arg1.ref.pointer); + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer); } /// Messages related to the operation of a task that delivers data /// directly to the delegate. interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase implements NSURLSessionTaskDelegate { - NSURLSessionDataDelegate._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSURLSessionDataDelegate._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSURLSessionDataDelegate] that points to the same underlying object as [other]. NSURLSessionDataDelegate.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionDataDelegate] that wraps the given raw object pointer. - NSURLSessionDataDelegate.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLSessionDataDelegate.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURLSessionDataDelegate]. static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz(obj.ref.pointer, _sel_conformsToProtocol_, - _protocol_NSURLSessionDataDelegate); + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionDataDelegate, + ); } /// Returns the [objc.Protocol] object for this protocol. @@ -71542,184 +81216,354 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDataDelegate implement( - {void Function(NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, - objc.ObjCBlock)? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.ObjCBlock)? URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { - final builder = - objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDataDelegate'); + static NSURLSessionDataDelegate implement({ + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDataDelegate', + ); + NSURLSessionDataDelegate + .URLSession_dataTask_didReceiveResponse_completionHandler_.implement( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); NSURLSessionDataDelegate - .URLSession_dataTask_didReceiveResponse_completionHandler_ - .implement( - builder, URLSession_dataTask_didReceiveResponse_completionHandler_); - NSURLSessionDataDelegate.URLSession_dataTask_didBecomeDownloadTask_ - .implement(builder, URLSession_dataTask_didBecomeDownloadTask_); + .URLSession_dataTask_didBecomeDownloadTask_.implement( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); NSURLSessionDataDelegate.URLSession_dataTask_didBecomeStreamTask_.implement( - builder, URLSession_dataTask_didBecomeStreamTask_); + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); NSURLSessionDataDelegate.URLSession_dataTask_didReceiveData_.implement( - builder, URLSession_dataTask_didReceiveData_); + builder, + URLSession_dataTask_didReceiveData_, + ); NSURLSessionDataDelegate - .URLSession_dataTask_willCacheResponse_completionHandler_ - .implement( - builder, URLSession_dataTask_willCacheResponse_completionHandler_); + .URLSession_dataTask_willCacheResponse_completionHandler_.implement( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); NSURLSessionDataDelegate.URLSession_didCreateTask_.implement( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); NSURLSessionDataDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implement(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); NSURLSessionDataDelegate.URLSession_taskIsWaitingForConnectivity_.implement( - builder, URLSession_taskIsWaitingForConnectivity_); + builder, + URLSession_taskIsWaitingForConnectivity_, + ); NSURLSessionDataDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implement(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); NSURLSessionDataDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implement( - builder, URLSession_task_didReceiveChallenge_completionHandler_); + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); NSURLSessionDataDelegate.URLSession_task_needNewBodyStream_.implement( - builder, URLSession_task_needNewBodyStream_); + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); NSURLSessionDataDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implement(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); NSURLSessionDataDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implement(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); - NSURLSessionDataDelegate.URLSession_task_didReceiveInformationalResponse_ - .implement(builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionDataDelegate.URLSession_task_didFinishCollectingMetrics_ - .implement(builder, URLSession_task_didFinishCollectingMetrics_); + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionDataDelegate.URLSession_task_didCompleteWithError_.implement( - builder, URLSession_task_didCompleteWithError_); + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionDataDelegate.URLSession_didBecomeInvalidWithError_.implement( - builder, URLSession_didBecomeInvalidWithError_); - NSURLSessionDataDelegate.URLSession_didReceiveChallenge_completionHandler_ - .implement(builder, URLSession_didReceiveChallenge_completionHandler_); - NSURLSessionDataDelegate.URLSessionDidFinishEventsForBackgroundURLSession_ - .implement(builder, URLSessionDidFinishEventsForBackgroundURLSession_); + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); return NSURLSessionDataDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing /// [objc.ObjCProtocolBuilder]. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder(objc.ObjCProtocolBuilder builder, - {void Function(NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, - objc.ObjCBlock)? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.ObjCBlock)? URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { NSURLSessionDataDelegate - .URLSession_dataTask_didReceiveResponse_completionHandler_ - .implement( - builder, URLSession_dataTask_didReceiveResponse_completionHandler_); - NSURLSessionDataDelegate.URLSession_dataTask_didBecomeDownloadTask_ - .implement(builder, URLSession_dataTask_didBecomeDownloadTask_); + .URLSession_dataTask_didReceiveResponse_completionHandler_.implement( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_dataTask_didBecomeDownloadTask_.implement( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); NSURLSessionDataDelegate.URLSession_dataTask_didBecomeStreamTask_.implement( - builder, URLSession_dataTask_didBecomeStreamTask_); + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); NSURLSessionDataDelegate.URLSession_dataTask_didReceiveData_.implement( - builder, URLSession_dataTask_didReceiveData_); + builder, + URLSession_dataTask_didReceiveData_, + ); NSURLSessionDataDelegate - .URLSession_dataTask_willCacheResponse_completionHandler_ - .implement( - builder, URLSession_dataTask_willCacheResponse_completionHandler_); + .URLSession_dataTask_willCacheResponse_completionHandler_.implement( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); NSURLSessionDataDelegate.URLSession_didCreateTask_.implement( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); NSURLSessionDataDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implement(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); NSURLSessionDataDelegate.URLSession_taskIsWaitingForConnectivity_.implement( - builder, URLSession_taskIsWaitingForConnectivity_); + builder, + URLSession_taskIsWaitingForConnectivity_, + ); NSURLSessionDataDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implement(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); NSURLSessionDataDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implement( - builder, URLSession_task_didReceiveChallenge_completionHandler_); + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); NSURLSessionDataDelegate.URLSession_task_needNewBodyStream_.implement( - builder, URLSession_task_needNewBodyStream_); + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); NSURLSessionDataDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implement(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); NSURLSessionDataDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implement(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); - NSURLSessionDataDelegate.URLSession_task_didReceiveInformationalResponse_ - .implement(builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionDataDelegate.URLSession_task_didFinishCollectingMetrics_ - .implement(builder, URLSession_task_didFinishCollectingMetrics_); + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionDataDelegate.URLSession_task_didCompleteWithError_.implement( - builder, URLSession_task_didCompleteWithError_); + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionDataDelegate.URLSession_didBecomeInvalidWithError_.implement( - builder, URLSession_didBecomeInvalidWithError_); - NSURLSessionDataDelegate.URLSession_didReceiveChallenge_completionHandler_ - .implement(builder, URLSession_didReceiveChallenge_completionHandler_); - NSURLSessionDataDelegate.URLSessionDidFinishEventsForBackgroundURLSession_ - .implement(builder, URLSessionDidFinishEventsForBackgroundURLSession_); + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); } @@ -71729,100 +81573,186 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDataDelegate implementAsListener( - {void Function(NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, - objc.ObjCBlock)? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.ObjCBlock)? URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { - final builder = - objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDataDelegate'); + static NSURLSessionDataDelegate implementAsListener({ + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDataDelegate', + ); + NSURLSessionDataDelegate + .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsListener( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_dataTask_didBecomeDownloadTask_.implementAsListener( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate + .URLSession_dataTask_didBecomeStreamTask_.implementAsListener( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); NSURLSessionDataDelegate - .URLSession_dataTask_didReceiveResponse_completionHandler_ - .implementAsListener( - builder, URLSession_dataTask_didReceiveResponse_completionHandler_); - NSURLSessionDataDelegate.URLSession_dataTask_didBecomeDownloadTask_ - .implementAsListener( - builder, URLSession_dataTask_didBecomeDownloadTask_); - NSURLSessionDataDelegate.URLSession_dataTask_didBecomeStreamTask_ - .implementAsListener(builder, URLSession_dataTask_didBecomeStreamTask_); - NSURLSessionDataDelegate.URLSession_dataTask_didReceiveData_ - .implementAsListener(builder, URLSession_dataTask_didReceiveData_); + .URLSession_dataTask_didReceiveData_.implementAsListener( + builder, + URLSession_dataTask_didReceiveData_, + ); NSURLSessionDataDelegate - .URLSession_dataTask_willCacheResponse_completionHandler_ - .implementAsListener( - builder, URLSession_dataTask_willCacheResponse_completionHandler_); + .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsListener( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); NSURLSessionDataDelegate.URLSession_didCreateTask_.implementAsListener( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); NSURLSessionDataDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implementAsListener(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionDataDelegate.URLSession_taskIsWaitingForConnectivity_ - .implementAsListener(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionDataDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implementAsListener(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionDataDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implementAsListener( - builder, URLSession_task_didReceiveChallenge_completionHandler_); - NSURLSessionDataDelegate.URLSession_task_needNewBodyStream_ - .implementAsListener(builder, URLSession_task_needNewBodyStream_); + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionDataDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implementAsListener(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionDataDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implementAsListener(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); - NSURLSessionDataDelegate.URLSession_task_didReceiveInformationalResponse_ - .implementAsListener( - builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionDataDelegate.URLSession_task_didFinishCollectingMetrics_ - .implementAsListener( - builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionDataDelegate.URLSession_task_didCompleteWithError_ - .implementAsListener(builder, URLSession_task_didCompleteWithError_); - NSURLSessionDataDelegate.URLSession_didBecomeInvalidWithError_ - .implementAsListener(builder, URLSession_didBecomeInvalidWithError_); - NSURLSessionDataDelegate.URLSession_didReceiveChallenge_completionHandler_ - .implementAsListener( - builder, URLSession_didReceiveChallenge_completionHandler_); - NSURLSessionDataDelegate.URLSessionDidFinishEventsForBackgroundURLSession_ - .implementAsListener( - builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); return NSURLSessionDataDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing @@ -71830,94 +81760,180 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener(objc.ObjCProtocolBuilder builder, - {void Function(NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, - objc.ObjCBlock)? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.ObjCBlock)? URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDataDelegate + .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsListener( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_dataTask_didBecomeDownloadTask_.implementAsListener( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate + .URLSession_dataTask_didBecomeStreamTask_.implementAsListener( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); NSURLSessionDataDelegate - .URLSession_dataTask_didReceiveResponse_completionHandler_ - .implementAsListener( - builder, URLSession_dataTask_didReceiveResponse_completionHandler_); - NSURLSessionDataDelegate.URLSession_dataTask_didBecomeDownloadTask_ - .implementAsListener( - builder, URLSession_dataTask_didBecomeDownloadTask_); - NSURLSessionDataDelegate.URLSession_dataTask_didBecomeStreamTask_ - .implementAsListener(builder, URLSession_dataTask_didBecomeStreamTask_); - NSURLSessionDataDelegate.URLSession_dataTask_didReceiveData_ - .implementAsListener(builder, URLSession_dataTask_didReceiveData_); + .URLSession_dataTask_didReceiveData_.implementAsListener( + builder, + URLSession_dataTask_didReceiveData_, + ); NSURLSessionDataDelegate - .URLSession_dataTask_willCacheResponse_completionHandler_ - .implementAsListener( - builder, URLSession_dataTask_willCacheResponse_completionHandler_); + .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsListener( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); NSURLSessionDataDelegate.URLSession_didCreateTask_.implementAsListener( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); NSURLSessionDataDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implementAsListener(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionDataDelegate.URLSession_taskIsWaitingForConnectivity_ - .implementAsListener(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionDataDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implementAsListener(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionDataDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implementAsListener( - builder, URLSession_task_didReceiveChallenge_completionHandler_); - NSURLSessionDataDelegate.URLSession_task_needNewBodyStream_ - .implementAsListener(builder, URLSession_task_needNewBodyStream_); + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionDataDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implementAsListener(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionDataDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implementAsListener(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); - NSURLSessionDataDelegate.URLSession_task_didReceiveInformationalResponse_ - .implementAsListener( - builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionDataDelegate.URLSession_task_didFinishCollectingMetrics_ - .implementAsListener( - builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionDataDelegate.URLSession_task_didCompleteWithError_ - .implementAsListener(builder, URLSession_task_didCompleteWithError_); - NSURLSessionDataDelegate.URLSession_didBecomeInvalidWithError_ - .implementAsListener(builder, URLSession_didBecomeInvalidWithError_); - NSURLSessionDataDelegate.URLSession_didReceiveChallenge_completionHandler_ - .implementAsListener( - builder, URLSession_didReceiveChallenge_completionHandler_); - NSURLSessionDataDelegate.URLSessionDidFinishEventsForBackgroundURLSession_ - .implementAsListener( - builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); } @@ -71927,100 +81943,186 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDataDelegate implementAsBlocking( - {void Function(NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, - objc.ObjCBlock)? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.ObjCBlock)? URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { - final builder = - objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDataDelegate'); + static NSURLSessionDataDelegate implementAsBlocking({ + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDataDelegate', + ); + NSURLSessionDataDelegate + .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsBlocking( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_dataTask_didBecomeDownloadTask_.implementAsBlocking( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); NSURLSessionDataDelegate - .URLSession_dataTask_didReceiveResponse_completionHandler_ - .implementAsBlocking( - builder, URLSession_dataTask_didReceiveResponse_completionHandler_); - NSURLSessionDataDelegate.URLSession_dataTask_didBecomeDownloadTask_ - .implementAsBlocking( - builder, URLSession_dataTask_didBecomeDownloadTask_); - NSURLSessionDataDelegate.URLSession_dataTask_didBecomeStreamTask_ - .implementAsBlocking(builder, URLSession_dataTask_didBecomeStreamTask_); - NSURLSessionDataDelegate.URLSession_dataTask_didReceiveData_ - .implementAsBlocking(builder, URLSession_dataTask_didReceiveData_); + .URLSession_dataTask_didBecomeStreamTask_.implementAsBlocking( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate + .URLSession_dataTask_didReceiveData_.implementAsBlocking( + builder, + URLSession_dataTask_didReceiveData_, + ); NSURLSessionDataDelegate - .URLSession_dataTask_willCacheResponse_completionHandler_ - .implementAsBlocking( - builder, URLSession_dataTask_willCacheResponse_completionHandler_); + .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsBlocking( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); NSURLSessionDataDelegate.URLSession_didCreateTask_.implementAsBlocking( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); NSURLSessionDataDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionDataDelegate.URLSession_taskIsWaitingForConnectivity_ - .implementAsBlocking(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionDataDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionDataDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implementAsBlocking( - builder, URLSession_task_didReceiveChallenge_completionHandler_); - NSURLSessionDataDelegate.URLSession_task_needNewBodyStream_ - .implementAsBlocking(builder, URLSession_task_needNewBodyStream_); + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionDataDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionDataDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implementAsBlocking(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); - NSURLSessionDataDelegate.URLSession_task_didReceiveInformationalResponse_ - .implementAsBlocking( - builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionDataDelegate.URLSession_task_didFinishCollectingMetrics_ - .implementAsBlocking( - builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionDataDelegate.URLSession_task_didCompleteWithError_ - .implementAsBlocking(builder, URLSession_task_didCompleteWithError_); - NSURLSessionDataDelegate.URLSession_didBecomeInvalidWithError_ - .implementAsBlocking(builder, URLSession_didBecomeInvalidWithError_); - NSURLSessionDataDelegate.URLSession_didReceiveChallenge_completionHandler_ - .implementAsBlocking( - builder, URLSession_didReceiveChallenge_completionHandler_); - NSURLSessionDataDelegate.URLSessionDidFinishEventsForBackgroundURLSession_ - .implementAsBlocking( - builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); return NSURLSessionDataDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing @@ -72028,94 +82130,180 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// listeners will be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking(objc.ObjCProtocolBuilder builder, - {void Function(NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, - objc.ObjCBlock)? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.ObjCBlock)? URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDataDelegate + .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsBlocking( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_dataTask_didBecomeDownloadTask_.implementAsBlocking( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); NSURLSessionDataDelegate - .URLSession_dataTask_didReceiveResponse_completionHandler_ - .implementAsBlocking( - builder, URLSession_dataTask_didReceiveResponse_completionHandler_); - NSURLSessionDataDelegate.URLSession_dataTask_didBecomeDownloadTask_ - .implementAsBlocking( - builder, URLSession_dataTask_didBecomeDownloadTask_); - NSURLSessionDataDelegate.URLSession_dataTask_didBecomeStreamTask_ - .implementAsBlocking(builder, URLSession_dataTask_didBecomeStreamTask_); - NSURLSessionDataDelegate.URLSession_dataTask_didReceiveData_ - .implementAsBlocking(builder, URLSession_dataTask_didReceiveData_); + .URLSession_dataTask_didBecomeStreamTask_.implementAsBlocking( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate + .URLSession_dataTask_didReceiveData_.implementAsBlocking( + builder, + URLSession_dataTask_didReceiveData_, + ); NSURLSessionDataDelegate - .URLSession_dataTask_willCacheResponse_completionHandler_ - .implementAsBlocking( - builder, URLSession_dataTask_willCacheResponse_completionHandler_); + .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsBlocking( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); NSURLSessionDataDelegate.URLSession_didCreateTask_.implementAsBlocking( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); NSURLSessionDataDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionDataDelegate.URLSession_taskIsWaitingForConnectivity_ - .implementAsBlocking(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionDataDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionDataDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implementAsBlocking( - builder, URLSession_task_didReceiveChallenge_completionHandler_); - NSURLSessionDataDelegate.URLSession_task_needNewBodyStream_ - .implementAsBlocking(builder, URLSession_task_needNewBodyStream_); + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionDataDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionDataDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implementAsBlocking(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); - NSURLSessionDataDelegate.URLSession_task_didReceiveInformationalResponse_ - .implementAsBlocking( - builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionDataDelegate.URLSession_task_didFinishCollectingMetrics_ - .implementAsBlocking( - builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionDataDelegate.URLSession_task_didCompleteWithError_ - .implementAsBlocking(builder, URLSession_task_didCompleteWithError_); - NSURLSessionDataDelegate.URLSession_didBecomeInvalidWithError_ - .implementAsBlocking(builder, URLSession_didBecomeInvalidWithError_); - NSURLSessionDataDelegate.URLSession_didReceiveChallenge_completionHandler_ - .implementAsBlocking( - builder, URLSession_didReceiveChallenge_completionHandler_); - NSURLSessionDataDelegate.URLSessionDidFinishEventsForBackgroundURLSession_ - .implementAsBlocking( - builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); } @@ -72128,102 +82316,169 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// This method will not be called for background upload tasks (which cannot be converted to download tasks). static final URLSession_dataTask_didReceiveResponse_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDataTask, NSURLResponse, - objc.ObjCBlock)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionDataTask, NSURLResponse, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLResponse arg3, - objc.ObjCBlock arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionDataTask, NSURLResponse, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLResponse arg3, - objc.ObjCBlock arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionDataTask, NSURLResponse, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLResponse arg3, - objc.ObjCBlock arg4) => - func(arg1, arg2, arg3, arg4)), - ); + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); /// Notification that a data task has become a download task. No /// future messages will be sent to the data task. static final URLSession_dataTask_didBecomeDownloadTask_ = objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didBecomeDownloadTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didBecomeDownloadTask_, + isRequired: false, + isInstanceMethod: true, + ), + ( void Function( - NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didBecomeDownloadTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didBecomeDownloadTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDataTask arg2, NSURLSessionDownloadTask arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDataTask arg2, NSURLSessionDownloadTask arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDataTask arg2, NSURLSessionDownloadTask arg3) => - func(arg1, arg2, arg3)), - ); + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionDownloadTask arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionDownloadTask arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionDownloadTask arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Notification that a data task has become a bidirectional stream /// task. No future messages will be sent to the data task. The newly @@ -72241,86 +82496,137 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// connections per host. static final URLSession_dataTask_didBecomeStreamTask_ = objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didBecomeStreamTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didBecomeStreamTask_, + isRequired: false, + isInstanceMethod: true, + ), + ( void Function( - NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didBecomeStreamTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didBecomeStreamTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDataTask arg2, NSURLSessionStreamTask arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDataTask arg2, NSURLSessionStreamTask arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDataTask arg2, NSURLSessionStreamTask arg3) => - func(arg1, arg2, arg3)), - ); + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionStreamTask arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionStreamTask arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionStreamTask arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Sent when data is available for the delegate to consume. As the /// data may be discontiguous, you should use /// [NSData enumerateByteRangesUsingBlock:] to access it. static final URLSession_dataTask_didReceiveData_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didReceiveData_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didReceiveData_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDataTask arg2, objc.NSData arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDataTask arg2, objc.NSData arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDataTask arg2, objc.NSData arg3) => - func(arg1, arg2, arg3)), - ); + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didReceiveData_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didReceiveData_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + objc.NSData arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + objc.NSData arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + objc.NSData arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Invoke the completion routine with a valid NSCachedURLResponse to /// allow the resulting data to be cached, or pass nil to prevent @@ -72329,103 +82635,144 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// message to receive the resource data. static final URLSession_dataTask_willCacheResponse_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, - objc.ObjCBlock)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_willCacheResponse_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_willCacheResponse_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSCachedURLResponse arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSCachedURLResponse arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSCachedURLResponse arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - ); + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_willCacheResponse_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_willCacheResponse_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSCachedURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSCachedURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSCachedURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); /// Notification that a task has been created. This method is the first message /// a task sends, providing a place to configure the task before it is resumed. /// /// This delegate callback is *NOT* dispatched to the delegate queue. It is /// invoked synchronously before the task creation method returns. - static final URLSession_didCreateTask_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didCreateTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didCreateTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - ); - + static final URLSession_didCreateTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didCreateTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didCreateTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + /// Sent when the system is ready to begin work for a task with a delayed start /// time set (using the earliestBeginDate property). The completionHandler must /// be invoked in order for loading to proceed. The disposition provided to the @@ -72448,61 +82795,92 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// NSURLErrorCancelled. static final URLSession_task_willBeginDelayedRequest_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - ); + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); /// Sent when a task cannot start the network loading process because the current /// network connectivity is not available or sufficient for the task's request. @@ -72515,40 +82893,52 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// the waitForConnectivity property is ignored by those sessions. static final URLSession_taskIsWaitingForConnectivity_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - ); + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); /// An HTTP request is attempting to perform a redirection to a different /// URL. You must invoke the completion routine to allow the @@ -72560,62 +82950,97 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// For tasks in background sessions, redirections will always be followed and this method will not be called. static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_l2g8ke) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - ); + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_l2g8ke) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); /// The task has received a request specific authentication challenge. /// If this delegate is not implemented, the session specific authentication challenge @@ -72623,124 +83048,173 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// disposition. static final URLSession_task_didReceiveChallenge_completionHandler_ = objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg4) => - func(arg1, arg2, arg3, arg4)), - ); + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); /// Sent if a task requires a new, unopened body stream. This may be /// necessary when authentication has failed for any request that /// involves a body stream. static final URLSession_task_needNewBodyStream_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock - arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock - arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock - arg3) => - func(arg1, arg2, arg3)), - ); + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Tells the delegate if a task requires a new body stream starting from the given offset. This may be /// necessary when resuming a failed upload task. @@ -72751,260 +83225,382 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// - Parameter completionHandler: A completion handler that your delegate method should call with the new body stream. static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_jyim80) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - ); + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_jyim80) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); /// Sent periodically to notify the delegate of upload progress. This /// information is also available as properties of the task. static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, int, int)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ffi.Native.addressOf< - ffi.NativeFunction< + void Function(NSURLSession, NSURLSessionTask, int, int, int) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ffi.Native.addressOf< + ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>>(_NativeCupertinoHttp_protocolTrampoline_h68abb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, int arg3, int arg4, int arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, int arg3, int arg4, int arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, int arg3, int arg4, int arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - ); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); /// Sent for each informational response received except 101 switching protocols. static final URLSession_task_didReceiveInformationalResponse_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSHTTPURLResponse arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSHTTPURLResponse arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSHTTPURLResponse arg3) => - func(arg1, arg2, arg3)), - ); + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Sent when complete statistics information has been collected for the task. static final URLSession_task_didFinishCollectingMetrics_ = objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSURLSessionTaskMetrics arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSURLSessionTaskMetrics arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSURLSessionTaskMetrics arg3) => - func(arg1, arg2, arg3)), - ); + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Sent as the last message related to a specific task. Error may be /// nil, which implies that no error occurred and this task is complete. static final URLSession_task_didCompleteWithError_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didCompleteWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didCompleteWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, objc.NSError? arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, objc.NSError? arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, objc.NSError? arg3) => - func(arg1, arg2, arg3)), - ); + void Function(NSURLSession, NSURLSessionTask, objc.NSError?) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didCompleteWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didCompleteWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// The last message a session receives. A session will only become /// invalid because of a systemic error or when it has been /// explicitly invalidated, in which case the error parameter will be nil. - static final URLSession_didBecomeInvalidWithError_ = objc - .ObjCProtocolListenableMethod( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - (ffi.Pointer _, NSURLSession arg1, objc.NSError? arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - (ffi.Pointer _, NSURLSession arg1, objc.NSError? arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - (ffi.Pointer _, NSURLSession arg1, objc.NSError? arg2) => - func(arg1, arg2)), - ); + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); /// If implemented, when a connection level authentication challenge /// has occurred, this delegate will be given the opportunity to @@ -73016,60 +83612,84 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// interaction. static final URLSession_didReceiveChallenge_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLAuthenticationChallenge, - objc.ObjCBlock)>( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg3) => - func(arg1, arg2, arg3)), - ); + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// If an application has received an /// -application:handleEventsForBackgroundURLSession:completionHandler: @@ -73080,137 +83700,170 @@ interface class NSURLSessionDataDelegate extends objc.ObjCProtocolBase /// result in invoking the completion handler. static final URLSessionDidFinishEventsForBackgroundURLSession_ = objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionDataDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1)), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1)), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1)), - ); + _protocol_NSURLSessionDataDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); } -late final _protocol_NSURLSessionDownloadDelegate = - objc.getProtocol("NSURLSessionDownloadDelegate"); -late final _sel_URLSession_downloadTask_didFinishDownloadingToURL_ = - objc.registerName("URLSession:downloadTask:didFinishDownloadingToURL:"); +late final _protocol_NSURLSessionDownloadDelegate = objc.getProtocol( + "NSURLSessionDownloadDelegate", +); +late final _sel_URLSession_downloadTask_didFinishDownloadingToURL_ = objc + .registerName("URLSession:downloadTask:didFinishDownloadingToURL:"); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_closureCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_listenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -73219,58 +83872,78 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, objc.NSURL)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, objc.NSURL)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL)>(pointer, retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -73278,15 +83951,41 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, objc.NSURL)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3)>> ptr) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, objc.NSURL)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -73296,20 +83995,54 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, objc.NSURL)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionDownloadTask, objc.NSURL) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, objc.NSURL)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionDownloadTask.castFromPointer(arg2, retain: true, release: true), - objc.NSURL.castFromPointer(arg3, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionDownloadTask.castFromPointer( + arg2, + retain: true, + release: true, + ), + objc.NSURL.castFromPointer(arg3, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -73321,36 +84054,54 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, objc.NSURL)> listener( - void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, objc.NSURL) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDownloadTask.castFromPointer(arg2, - retain: false, release: true), - objc.NSURL.castFromPointer(arg3, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDownloadTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + objc.NSURL.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1tz5yf(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -73364,213 +84115,285 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, objc.NSURL)> blocking( - void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, objc.NSURL) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDownloadTask.castFromPointer(arg2, - retain: false, release: true), - objc.NSURL.castFromPointer(arg3, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDownloadTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + objc.NSURL.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDownloadTask.castFromPointer(arg2, - retain: false, release: true), - objc.NSURL.castFromPointer(arg3, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDownloadTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + objc.NSURL.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1tz5yf( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, objc.NSURL)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, objc.NSURL)> { - void call(ffi.Pointer arg0, NSURLSession arg1, - NSURLSessionDownloadTask arg2, objc.NSURL arg3) => + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + objc.NSURL arg3, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, - arg1.ref.pointer, arg2.ref.pointer, arg3.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + ); } late final _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ = objc.registerName( - "URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:"); + "URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:", + ); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int)>()(arg0, arg1, arg2, arg3, arg4, arg5); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - int, - int))(arg0, arg1, arg2, arg3, arg4, arg5); -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_closureTrampoline) + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int))(arg0, arg1, arg2, arg3, arg4, arg5); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4, arg5); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int64, ffi.Int64, - ffi.Int64)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_listenerTrampoline) - ..keepIsolateAlive = false; + ffi.Int64, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_closureTrampoline, + ) + .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) { - try { - (objc.getBlockClosure(block) as void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, +) { + (objc.getBlockClosure(block) + as void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, - int))(arg0, arg1, arg2, arg3, arg4, arg5); + int, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4, arg5); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -73579,68 +84402,90 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64)>(pointer, retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -73648,19 +84493,47 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function( + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( ffi.Pointer, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, - ffi.Int64)> fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Int64 arg3, ffi.Int64 arg4, ffi.Int64 arg5)>> ptr) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Int64, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -73670,23 +84543,64 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionDownloadTask, int, int, int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_closureCallable, - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) => - fn(arg0, NSURLSession.castFromPointer(arg1, retain: true, release: true), NSURLSessionDownloadTask.castFromPointer(arg2, retain: true, release: true), arg3, arg4, arg5), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionDownloadTask.castFromPointer( + arg2, + retain: true, + release: true, + ), + arg3, + arg4, + arg5, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -73698,42 +84612,64 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)> listener( - void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, int, int, int) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDownloadTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - arg4, - arg5), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDownloadTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + arg3, + arg4, + arg5, + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_h68abb(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -73747,214 +84683,296 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)> blocking( - void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, int, int, int) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDownloadTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - arg4, - arg5), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDownloadTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + arg3, + arg4, + arg5, + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDownloadTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - arg4, - arg5), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDownloadTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + arg3, + arg4, + arg5, + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_h68abb( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)> { - void call(ffi.Pointer arg0, NSURLSession arg1, - NSURLSessionDownloadTask arg2, int arg3, int arg4, int arg5) => + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + int arg5, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int)>()(ref.pointer, arg0, arg1.ref.pointer, - arg2.ref.pointer, arg3, arg4, arg5); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3, + arg4, + arg5, + ); } late final _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ = objc.registerName( - "URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:"); + "URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:", + ); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int)>()(arg0, arg1, arg2, arg3, arg4); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >()(arg0, arg1, arg2, arg3, arg4); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - int))(arg0, arg1, arg2, arg3, arg4); -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_closureTrampoline) + ffi.Int64, + ffi.Int64, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int))(arg0, arg1, arg2, arg3, arg4); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int64, - ffi.Int64)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_listenerTrampoline) - ..keepIsolateAlive = false; + ffi.Int64, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_closureTrampoline, + ) + .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4) { - try { - (objc.getBlockClosure(block) as void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, +) { + (objc.getBlockClosure(block) + as void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, - int))(arg0, arg1, arg2, arg3, arg4); + int, + ))(arg0, arg1, arg2, arg3, arg4); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -73963,63 +84981,84 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64)>(pointer, retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -74027,15 +85066,44 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Int64 arg3, ffi.Int64 arg4)>> ptr) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -74045,22 +85113,59 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionDownloadTask, int, int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_closureCallable, - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4) => - fn(arg0, NSURLSession.castFromPointer(arg1, retain: true, release: true), NSURLSessionDownloadTask.castFromPointer(arg2, retain: true, release: true), arg3, arg4), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionDownloadTask.castFromPointer( + arg2, + retain: true, + release: true, + ), + arg3, + arg4, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -74072,36 +85177,59 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)> listener( - void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, int, int) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2, int arg3, int arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDownloadTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - arg4), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDownloadTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + arg3, + arg4, + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_ly2579(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -74115,301 +85243,483 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)> blocking( - void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, int, int) - fn, - {bool keepIsolateAlive = true}) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2, int arg3, int arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDownloadTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - arg4), - keepIsolateAlive); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDownloadTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + arg3, + arg4, + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2, int arg3, int arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionDownloadTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - arg4), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionDownloadTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + arg3, + arg4, + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_ly2579( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)> { - void call(ffi.Pointer arg0, NSURLSession arg1, - NSURLSessionDownloadTask arg2, int arg3, int arg4) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int)>()( - ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3, arg4); + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3, arg4); } /// Messages related to the operation of a task that writes data to a /// file and notifies the delegate upon completion. interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase implements NSURLSessionTaskDelegate { - NSURLSessionDownloadDelegate._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSURLSessionDownloadDelegate._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSURLSessionDownloadDelegate] that points to the same underlying object as [other]. NSURLSessionDownloadDelegate.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionDownloadDelegate] that wraps the given raw object pointer. NSURLSessionDownloadDelegate.castFromPointer( - ffi.Pointer other, - {bool retain = false, - bool release = false}) - : this._(other, retain: retain, release: release); + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURLSessionDownloadDelegate]. static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz(obj.ref.pointer, _sel_conformsToProtocol_, - _protocol_NSURLSessionDownloadDelegate); + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionDownloadDelegate, + ); } /// Returns the [objc.Protocol] object for this protocol. static objc.Protocol get $protocol => objc.Protocol.castFromPointer( - _protocol_NSURLSessionDownloadDelegate.cast()); + _protocol_NSURLSessionDownloadDelegate.cast(), + ); /// Builds an object that implements the NSURLSessionDownloadDelegate protocol. To implement /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDownloadDelegate implement( - {required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock)? - URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { - final builder = - objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDownloadDelegate'); + static NSURLSessionDownloadDelegate implement({ + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDownloadDelegate', + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didFinishDownloadingToURL_ - .implement(builder, URLSession_downloadTask_didFinishDownloadingToURL_); + .URLSession_downloadTask_didFinishDownloadingToURL_.implement( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ - .implement(builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_); + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implement( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ - .implement(builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_); + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implement( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); NSURLSessionDownloadDelegate.URLSession_didCreateTask_.implement( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); NSURLSessionDownloadDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implement(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionDownloadDelegate.URLSession_taskIsWaitingForConnectivity_ - .implement(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); NSURLSessionDownloadDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implement(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implement( - builder, URLSession_task_didReceiveChallenge_completionHandler_); + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); NSURLSessionDownloadDelegate.URLSession_task_needNewBodyStream_.implement( - builder, URLSession_task_needNewBodyStream_); + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implement(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implement(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didReceiveInformationalResponse_ - .implement(builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionDownloadDelegate.URLSession_task_didFinishCollectingMetrics_ - .implement(builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionDownloadDelegate.URLSession_task_didCompleteWithError_ - .implement(builder, URLSession_task_didCompleteWithError_); - NSURLSessionDownloadDelegate.URLSession_didBecomeInvalidWithError_ - .implement(builder, URLSession_didBecomeInvalidWithError_); + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionDownloadDelegate - .URLSession_didReceiveChallenge_completionHandler_ - .implement(builder, URLSession_didReceiveChallenge_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSessionDidFinishEventsForBackgroundURLSession_ - .implement(builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); return NSURLSessionDownloadDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing /// [objc.ObjCProtocolBuilder]. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder(objc.ObjCProtocolBuilder builder, - {required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock)? - URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { NSURLSessionDownloadDelegate - .URLSession_downloadTask_didFinishDownloadingToURL_ - .implement(builder, URLSession_downloadTask_didFinishDownloadingToURL_); + .URLSession_downloadTask_didFinishDownloadingToURL_.implement( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ - .implement(builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_); + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implement( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ - .implement(builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_); + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implement( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); NSURLSessionDownloadDelegate.URLSession_didCreateTask_.implement( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); NSURLSessionDownloadDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implement(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionDownloadDelegate.URLSession_taskIsWaitingForConnectivity_ - .implement(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); NSURLSessionDownloadDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implement(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implement( - builder, URLSession_task_didReceiveChallenge_completionHandler_); + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); NSURLSessionDownloadDelegate.URLSession_task_needNewBodyStream_.implement( - builder, URLSession_task_needNewBodyStream_); + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implement(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implement(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didReceiveInformationalResponse_ - .implement(builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionDownloadDelegate.URLSession_task_didFinishCollectingMetrics_ - .implement(builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionDownloadDelegate.URLSession_task_didCompleteWithError_ - .implement(builder, URLSession_task_didCompleteWithError_); - NSURLSessionDownloadDelegate.URLSession_didBecomeInvalidWithError_ - .implement(builder, URLSession_didBecomeInvalidWithError_); + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionDownloadDelegate - .URLSession_didReceiveChallenge_completionHandler_ - .implement(builder, URLSession_didReceiveChallenge_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSessionDidFinishEventsForBackgroundURLSession_ - .implement(builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); } @@ -74419,102 +85729,162 @@ interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDownloadDelegate implementAsListener( - {required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock)? - URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { - final builder = - objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDownloadDelegate'); + static NSURLSessionDownloadDelegate implementAsListener({ + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDownloadDelegate', + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didFinishDownloadingToURL_ - .implementAsListener( - builder, URLSession_downloadTask_didFinishDownloadingToURL_); + .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsListener( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ - .implementAsListener(builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_); + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsListener( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ - .implementAsListener(builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_); + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsListener( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); NSURLSessionDownloadDelegate.URLSession_didCreateTask_.implementAsListener( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implementAsListener(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionDownloadDelegate.URLSession_taskIsWaitingForConnectivity_ - .implementAsListener(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implementAsListener(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implementAsListener( - builder, URLSession_task_didReceiveChallenge_completionHandler_); - NSURLSessionDownloadDelegate.URLSession_task_needNewBodyStream_ - .implementAsListener(builder, URLSession_task_needNewBodyStream_); + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); NSURLSessionDownloadDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implementAsListener(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implementAsListener(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didReceiveInformationalResponse_ - .implementAsListener( - builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionDownloadDelegate.URLSession_task_didFinishCollectingMetrics_ - .implementAsListener( - builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionDownloadDelegate.URLSession_task_didCompleteWithError_ - .implementAsListener(builder, URLSession_task_didCompleteWithError_); - NSURLSessionDownloadDelegate.URLSession_didBecomeInvalidWithError_ - .implementAsListener(builder, URLSession_didBecomeInvalidWithError_); + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionDownloadDelegate - .URLSession_didReceiveChallenge_completionHandler_ - .implementAsListener( - builder, URLSession_didReceiveChallenge_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSessionDidFinishEventsForBackgroundURLSession_ - .implementAsListener( - builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); return NSURLSessionDownloadDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing @@ -74522,97 +85892,156 @@ interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase /// be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener(objc.ObjCProtocolBuilder builder, - {required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock)? - URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { NSURLSessionDownloadDelegate - .URLSession_downloadTask_didFinishDownloadingToURL_ - .implementAsListener( - builder, URLSession_downloadTask_didFinishDownloadingToURL_); + .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsListener( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ - .implementAsListener(builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_); + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsListener( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ - .implementAsListener(builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_); + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsListener( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); NSURLSessionDownloadDelegate.URLSession_didCreateTask_.implementAsListener( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); NSURLSessionDownloadDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implementAsListener(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionDownloadDelegate.URLSession_taskIsWaitingForConnectivity_ - .implementAsListener(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implementAsListener(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implementAsListener( - builder, URLSession_task_didReceiveChallenge_completionHandler_); - NSURLSessionDownloadDelegate.URLSession_task_needNewBodyStream_ - .implementAsListener(builder, URLSession_task_needNewBodyStream_); + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); NSURLSessionDownloadDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implementAsListener(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implementAsListener(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didReceiveInformationalResponse_ - .implementAsListener( - builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionDownloadDelegate.URLSession_task_didFinishCollectingMetrics_ - .implementAsListener( - builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionDownloadDelegate.URLSession_task_didCompleteWithError_ - .implementAsListener(builder, URLSession_task_didCompleteWithError_); - NSURLSessionDownloadDelegate.URLSession_didBecomeInvalidWithError_ - .implementAsListener(builder, URLSession_didBecomeInvalidWithError_); + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionDownloadDelegate - .URLSession_didReceiveChallenge_completionHandler_ - .implementAsListener( - builder, URLSession_didReceiveChallenge_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSessionDidFinishEventsForBackgroundURLSession_ - .implementAsListener( - builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); } @@ -74622,102 +86051,162 @@ interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDownloadDelegate implementAsBlocking( - {required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock)? - URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { - final builder = - objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDownloadDelegate'); + static NSURLSessionDownloadDelegate implementAsBlocking({ + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDownloadDelegate', + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didFinishDownloadingToURL_ - .implementAsBlocking( - builder, URLSession_downloadTask_didFinishDownloadingToURL_); + .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsBlocking( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ - .implementAsBlocking(builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_); + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsBlocking( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ - .implementAsBlocking(builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_); + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsBlocking( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); NSURLSessionDownloadDelegate.URLSession_didCreateTask_.implementAsBlocking( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionDownloadDelegate.URLSession_taskIsWaitingForConnectivity_ - .implementAsBlocking(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implementAsBlocking( - builder, URLSession_task_didReceiveChallenge_completionHandler_); - NSURLSessionDownloadDelegate.URLSession_task_needNewBodyStream_ - .implementAsBlocking(builder, URLSession_task_needNewBodyStream_); + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); NSURLSessionDownloadDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implementAsBlocking(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didReceiveInformationalResponse_ - .implementAsBlocking( - builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionDownloadDelegate.URLSession_task_didFinishCollectingMetrics_ - .implementAsBlocking( - builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionDownloadDelegate.URLSession_task_didCompleteWithError_ - .implementAsBlocking(builder, URLSession_task_didCompleteWithError_); - NSURLSessionDownloadDelegate.URLSession_didBecomeInvalidWithError_ - .implementAsBlocking(builder, URLSession_didBecomeInvalidWithError_); + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionDownloadDelegate - .URLSession_didReceiveChallenge_completionHandler_ - .implementAsBlocking( - builder, URLSession_didReceiveChallenge_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSessionDidFinishEventsForBackgroundURLSession_ - .implementAsBlocking( - builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); return NSURLSessionDownloadDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing @@ -74725,97 +86214,156 @@ interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase /// listeners will be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking(objc.ObjCProtocolBuilder builder, - {required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock)? - URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { NSURLSessionDownloadDelegate - .URLSession_downloadTask_didFinishDownloadingToURL_ - .implementAsBlocking( - builder, URLSession_downloadTask_didFinishDownloadingToURL_); + .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsBlocking( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ - .implementAsBlocking(builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_); + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsBlocking( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); NSURLSessionDownloadDelegate - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ - .implementAsBlocking(builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_); + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsBlocking( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); NSURLSessionDownloadDelegate.URLSession_didCreateTask_.implementAsBlocking( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); NSURLSessionDownloadDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionDownloadDelegate.URLSession_taskIsWaitingForConnectivity_ - .implementAsBlocking(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implementAsBlocking( - builder, URLSession_task_didReceiveChallenge_completionHandler_); - NSURLSessionDownloadDelegate.URLSession_task_needNewBodyStream_ - .implementAsBlocking(builder, URLSession_task_needNewBodyStream_); + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); NSURLSessionDownloadDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implementAsBlocking(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionDownloadDelegate - .URLSession_task_didReceiveInformationalResponse_ - .implementAsBlocking( - builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionDownloadDelegate.URLSession_task_didFinishCollectingMetrics_ - .implementAsBlocking( - builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionDownloadDelegate.URLSession_task_didCompleteWithError_ - .implementAsBlocking(builder, URLSession_task_didCompleteWithError_); - NSURLSessionDownloadDelegate.URLSession_didBecomeInvalidWithError_ - .implementAsBlocking(builder, URLSession_didBecomeInvalidWithError_); + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionDownloadDelegate - .URLSession_didReceiveChallenge_completionHandler_ - .implementAsBlocking( - builder, URLSession_didReceiveChallenge_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionDownloadDelegate - .URLSessionDidFinishEventsForBackgroundURLSession_ - .implementAsBlocking( - builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); } @@ -74825,96 +86373,136 @@ interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase /// still be called. static final URLSession_downloadTask_didFinishDownloadingToURL_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didFinishDownloadingToURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didFinishDownloadingToURL_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDownloadTask arg2, objc.NSURL arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDownloadTask arg2, objc.NSURL arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDownloadTask arg2, objc.NSURL arg3) => - func(arg1, arg2, arg3)), - ); + void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didFinishDownloadingToURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didFinishDownloadingToURL_, + isRequired: true, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Sent periodically to notify the delegate of download progress. static final URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ffi.Native.addressOf< - ffi.NativeFunction< + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ffi.Native.addressOf< + ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>>(_NativeCupertinoHttp_protocolTrampoline_h68abb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64 - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - int arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64 - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - int arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64 - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - int arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - ); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); /// Sent when a download has been resumed. If a download failed with an /// error, the -userInfo dictionary of the error will contain an @@ -74922,82 +86510,120 @@ interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase /// data. static final URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ffi.Native.addressOf< - ffi.NativeFunction< + void Function(NSURLSession, NSURLSessionDownloadTask, int, int) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ffi.Native.addressOf< + ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64)>>(_NativeCupertinoHttp_protocolTrampoline_ly2579) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64 - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDownloadTask arg2, int arg3, int arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64 - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDownloadTask arg2, int arg3, int arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64 - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionDownloadTask arg2, int arg3, int arg4) => - func(arg1, arg2, arg3, arg4)), - ); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_ly2579) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); /// Notification that a task has been created. This method is the first message /// a task sends, providing a place to configure the task before it is resumed. /// /// This delegate callback is *NOT* dispatched to the delegate queue. It is /// invoked synchronously before the task creation method returns. - static final URLSession_didCreateTask_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didCreateTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didCreateTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - ); + static final URLSession_didCreateTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didCreateTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didCreateTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); /// Sent when the system is ready to begin work for a task with a delayed start /// time set (using the earliestBeginDate property). The completionHandler must @@ -75021,61 +86647,92 @@ interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase /// NSURLErrorCancelled. static final URLSession_task_willBeginDelayedRequest_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - ); + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); /// Sent when a task cannot start the network loading process because the current /// network connectivity is not available or sufficient for the task's request. @@ -75088,40 +86745,52 @@ interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase /// the waitForConnectivity property is ignored by those sessions. static final URLSession_taskIsWaitingForConnectivity_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - ); + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); /// An HTTP request is attempting to perform a redirection to a different /// URL. You must invoke the completion routine to allow the @@ -75133,62 +86802,97 @@ interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase /// For tasks in background sessions, redirections will always be followed and this method will not be called. static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_l2g8ke) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - ); + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_l2g8ke) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); /// The task has received a request specific authentication challenge. /// If this delegate is not implemented, the session specific authentication challenge @@ -75196,124 +86900,173 @@ interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase /// disposition. static final URLSession_task_didReceiveChallenge_completionHandler_ = objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg4) => - func(arg1, arg2, arg3, arg4)), - ); + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); /// Sent if a task requires a new, unopened body stream. This may be /// necessary when authentication has failed for any request that /// involves a body stream. static final URLSession_task_needNewBodyStream_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock - arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock - arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock - arg3) => - func(arg1, arg2, arg3)), - ); + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Tells the delegate if a task requires a new body stream starting from the given offset. This may be /// necessary when resuming a failed upload task. @@ -75324,260 +87077,382 @@ interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase /// - Parameter completionHandler: A completion handler that your delegate method should call with the new body stream. static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_jyim80) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - ); + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_jyim80) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); /// Sent periodically to notify the delegate of upload progress. This /// information is also available as properties of the task. static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, int, int)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ffi.Native.addressOf< - ffi.NativeFunction< + void Function(NSURLSession, NSURLSessionTask, int, int, int) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ffi.Native.addressOf< + ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>>(_NativeCupertinoHttp_protocolTrampoline_h68abb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, int arg3, int arg4, int arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, int arg3, int arg4, int arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, int arg3, int arg4, int arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - ); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); /// Sent for each informational response received except 101 switching protocols. static final URLSession_task_didReceiveInformationalResponse_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSHTTPURLResponse arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSHTTPURLResponse arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSHTTPURLResponse arg3) => - func(arg1, arg2, arg3)), - ); + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Sent when complete statistics information has been collected for the task. static final URLSession_task_didFinishCollectingMetrics_ = objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSURLSessionTaskMetrics arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSURLSessionTaskMetrics arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSURLSessionTaskMetrics arg3) => - func(arg1, arg2, arg3)), - ); + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Sent as the last message related to a specific task. Error may be /// nil, which implies that no error occurred and this task is complete. static final URLSession_task_didCompleteWithError_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didCompleteWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didCompleteWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, objc.NSError? arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, objc.NSError? arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, objc.NSError? arg3) => - func(arg1, arg2, arg3)), - ); + void Function(NSURLSession, NSURLSessionTask, objc.NSError?) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didCompleteWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didCompleteWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// The last message a session receives. A session will only become /// invalid because of a systemic error or when it has been /// explicitly invalidated, in which case the error parameter will be nil. - static final URLSession_didBecomeInvalidWithError_ = objc - .ObjCProtocolListenableMethod( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - (ffi.Pointer _, NSURLSession arg1, objc.NSError? arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - (ffi.Pointer _, NSURLSession arg1, objc.NSError? arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - (ffi.Pointer _, NSURLSession arg1, objc.NSError? arg2) => - func(arg1, arg2)), - ); + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); /// If implemented, when a connection level authentication challenge /// has occurred, this delegate will be given the opportunity to @@ -75589,60 +87464,84 @@ interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase /// interaction. static final URLSession_didReceiveChallenge_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLAuthenticationChallenge, - objc.ObjCBlock)>( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg3) => - func(arg1, arg2, arg3)), - ); + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// If an application has received an /// -application:handleEventsForBackgroundURLSession:completionHandler: @@ -75653,137 +87552,170 @@ interface class NSURLSessionDownloadDelegate extends objc.ObjCProtocolBase /// result in invoking the completion handler. static final URLSessionDidFinishEventsForBackgroundURLSession_ = objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1)), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1)), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1)), - ); + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); } -late final _protocol_NSURLSessionWebSocketDelegate = - objc.getProtocol("NSURLSessionWebSocketDelegate"); -late final _sel_URLSession_webSocketTask_didOpenWithProtocol_ = - objc.registerName("URLSession:webSocketTask:didOpenWithProtocol:"); +late final _protocol_NSURLSessionWebSocketDelegate = objc.getProtocol( + "NSURLSessionWebSocketDelegate", +); +late final _sel_URLSession_webSocketTask_didOpenWithProtocol_ = objc + .registerName("URLSession:webSocketTask:didOpenWithProtocol:"); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_closureCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_listenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) { +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -75792,58 +87724,78 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, objc.NSString?)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?)>(pointer, retain: retain, release: release); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -75851,15 +87803,41 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocke /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, objc.NSString?)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3)>> ptr) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, objc.NSString?)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -75869,20 +87847,60 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocke /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionWebSocketTask.castFromPointer(arg2, retain: true, release: true), - arg3.address == 0 ? null : objc.NSString.castFromPointer(arg3, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionWebSocketTask.castFromPointer( + arg2, + retain: true, + release: true, + ), + arg3.address == 0 + ? null + : objc.NSString.castFromPointer( + arg3, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -75894,39 +87912,56 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocke /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, objc.NSString?)> listener( - void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, objc.NSString?) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionWebSocketTask.castFromPointer(arg2, - retain: false, release: true), - arg3.address == 0 - ? null - : objc.NSString.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionWebSocketTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + arg3.address == 0 + ? null + : objc.NSString.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1tz5yf(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -75940,206 +87975,274 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocke /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, objc.NSString?)> blocking( - void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, objc.NSString?) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionWebSocketTask.castFromPointer(arg2, - retain: false, release: true), - arg3.address == 0 - ? null - : objc.NSString.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionWebSocketTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + arg3.address == 0 + ? null + : objc.NSString.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionWebSocketTask.castFromPointer(arg2, - retain: false, release: true), - arg3.address == 0 - ? null - : objc.NSString.castFromPointer(arg3, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionWebSocketTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + arg3.address == 0 + ? null + : objc.NSString.castFromPointer(arg3, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1tz5yf( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, objc.NSString?)> { - void call(ffi.Pointer arg0, NSURLSession arg1, - NSURLSessionWebSocketTask arg2, objc.NSString? arg3) => + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + objc.NSString? arg3, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, - arg1.ref.pointer, arg2.ref.pointer, arg3?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3?.ref.pointer ?? ffi.nullptr, + ); } -late final _sel_URLSession_webSocketTask_didCloseWithCode_reason_ = - objc.registerName("URLSession:webSocketTask:didCloseWithCode:reason:"); +late final _sel_URLSession_webSocketTask_didCloseWithCode_reason_ = objc + .registerName("URLSession:webSocketTask:didCloseWithCode:reason:"); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSInteger arg3, - ffi.Pointer arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>()( - arg0, arg1, arg2, arg3, arg4); +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSInteger arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_closureTrampoline) + NSInteger, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_fnPtrTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, NSInteger, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_listenerTrampoline) - ..keepIsolateAlive = false; + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_closureTrampoline, + ) + .cast(); void - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) { - try { - (objc.getBlockClosure(block) as void Function( +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, +) { + (objc.getBlockClosure(block) + as void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, - ffi.Pointer))(arg0, arg1, arg2, arg3, arg4); + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -76148,63 +88251,84 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, NSInteger, objc.NSData?)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, NSInteger, objc.NSData?)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?)>(pointer, retain: retain, release: release); + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -76212,15 +88336,44 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocke /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, NSInteger, objc.NSData?)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, NSInteger arg3, ffi.Pointer arg4)>> ptr) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, NSInteger, objc.NSData?)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSInteger arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -76230,20 +88383,65 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocke /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, NSInteger, objc.NSData?)> - fromFunction(void Function(ffi.Pointer, NSURLSession, NSURLSessionWebSocketTask, DartNSInteger, objc.NSData?) fn, {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, NSInteger, objc.NSData?)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, int arg3, ffi.Pointer arg4) => fn( - arg0, - NSURLSession.castFromPointer(arg1, retain: true, release: true), - NSURLSessionWebSocketTask.castFromPointer(arg2, retain: true, release: true), - arg3, - arg4.address == 0 ? null : objc.NSData.castFromPointer(arg4, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + DartNSInteger, + objc.NSData?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: true, release: true), + NSURLSessionWebSocketTask.castFromPointer( + arg2, + retain: true, + release: true, + ), + arg3, + arg4.address == 0 + ? null + : objc.NSData.castFromPointer( + arg4, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -76255,42 +88453,61 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocke /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, NSInteger, objc.NSData?)> listener( - void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, DartNSInteger, objc.NSData?) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + DartNSInteger, + objc.NSData?, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionWebSocketTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - arg4.address == 0 - ? null - : objc.NSData.castFromPointer(arg4, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionWebSocketTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + arg3, + arg4.address == 0 + ? null + : objc.NSData.castFromPointer(arg4, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1lx650f(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -76304,305 +88521,490 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocke /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, NSInteger, objc.NSData?)> blocking( - void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, DartNSInteger, objc.NSData?) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + DartNSInteger, + objc.NSData?, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionWebSocketTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - arg4.address == 0 - ? null - : objc.NSData.castFromPointer(arg4, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionWebSocketTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + arg3, + arg4.address == 0 + ? null + : objc.NSData.castFromPointer(arg4, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4) => - fn( - arg0, - NSURLSession.castFromPointer(arg1, - retain: false, release: true), - NSURLSessionWebSocketTask.castFromPointer(arg2, - retain: false, release: true), - arg3, - arg4.address == 0 - ? null - : objc.NSData.castFromPointer(arg4, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSURLSession.castFromPointer(arg1, retain: false, release: true), + NSURLSessionWebSocketTask.castFromPointer( + arg2, + retain: false, + release: true, + ), + arg3, + arg4.address == 0 + ? null + : objc.NSData.castFromPointer(arg4, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1lx650f( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?)>(wrapper, retain: false, release: true); + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, NSInteger, objc.NSData?)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, - NSURLSessionWebSocketTask, NSInteger, objc.NSData?)> { + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > { void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - DartNSInteger arg3, - objc.NSData? arg4) => + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + DartNSInteger arg3, + objc.NSData? arg4, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSInteger arg3, - ffi.Pointer arg4)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>()( - ref.pointer, - arg0, - arg1.ref.pointer, - arg2.ref.pointer, - arg3, - arg4?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSInteger arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3, + arg4?.ref.pointer ?? ffi.nullptr, + ); } /// NSURLSessionWebSocketDelegate interface class NSURLSessionWebSocketDelegate extends objc.ObjCProtocolBase implements NSURLSessionTaskDelegate { - NSURLSessionWebSocketDelegate._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSURLSessionWebSocketDelegate._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSURLSessionWebSocketDelegate] that points to the same underlying object as [other]. NSURLSessionWebSocketDelegate.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLSessionWebSocketDelegate] that wraps the given raw object pointer. NSURLSessionWebSocketDelegate.castFromPointer( - ffi.Pointer other, - {bool retain = false, - bool release = false}) - : this._(other, retain: retain, release: release); + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURLSessionWebSocketDelegate]. static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz(obj.ref.pointer, _sel_conformsToProtocol_, - _protocol_NSURLSessionWebSocketDelegate); + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionWebSocketDelegate, + ); } /// Returns the [objc.Protocol] object for this protocol. static objc.Protocol get $protocol => objc.Protocol.castFromPointer( - _protocol_NSURLSessionWebSocketDelegate.cast()); + _protocol_NSURLSessionWebSocketDelegate.cast(), + ); /// Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionWebSocketDelegate implement( - {void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession, NSURLSessionWebSocketTask, DartNSInteger, objc.NSData?)? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function( - NSURLSession, NSURLSessionTask, objc.ObjCBlock)? - URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { - final builder = - objc.ObjCProtocolBuilder(debugName: 'NSURLSessionWebSocketDelegate'); - NSURLSessionWebSocketDelegate.URLSession_webSocketTask_didOpenWithProtocol_ - .implement(builder, URLSession_webSocketTask_didOpenWithProtocol_); + static NSURLSessionWebSocketDelegate implement({ + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + DartNSInteger, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionWebSocketDelegate', + ); + NSURLSessionWebSocketDelegate + .URLSession_webSocketTask_didOpenWithProtocol_.implement( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); NSURLSessionWebSocketDelegate - .URLSession_webSocketTask_didCloseWithCode_reason_ - .implement(builder, URLSession_webSocketTask_didCloseWithCode_reason_); + .URLSession_webSocketTask_didCloseWithCode_reason_.implement( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); NSURLSessionWebSocketDelegate.URLSession_didCreateTask_.implement( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implement(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionWebSocketDelegate.URLSession_taskIsWaitingForConnectivity_ - .implement(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implement(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implement( - builder, URLSession_task_didReceiveChallenge_completionHandler_); + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); NSURLSessionWebSocketDelegate.URLSession_task_needNewBodyStream_.implement( - builder, URLSession_task_needNewBodyStream_); + builder, + URLSession_task_needNewBodyStream_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implement(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implement(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didReceiveInformationalResponse_ - .implement(builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionWebSocketDelegate.URLSession_task_didFinishCollectingMetrics_ - .implement(builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionWebSocketDelegate.URLSession_task_didCompleteWithError_ - .implement(builder, URLSession_task_didCompleteWithError_); - NSURLSessionWebSocketDelegate.URLSession_didBecomeInvalidWithError_ - .implement(builder, URLSession_didBecomeInvalidWithError_); + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionWebSocketDelegate - .URLSession_didReceiveChallenge_completionHandler_ - .implement(builder, URLSession_didReceiveChallenge_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSessionDidFinishEventsForBackgroundURLSession_ - .implement(builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); return NSURLSessionWebSocketDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing /// [objc.ObjCProtocolBuilder]. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder(objc.ObjCProtocolBuilder builder, - {void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession, NSURLSessionWebSocketTask, DartNSInteger, objc.NSData?)? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function( - NSURLSession, NSURLSessionTask, objc.ObjCBlock)? - URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { - NSURLSessionWebSocketDelegate.URLSession_webSocketTask_didOpenWithProtocol_ - .implement(builder, URLSession_webSocketTask_didOpenWithProtocol_); + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + DartNSInteger, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionWebSocketDelegate + .URLSession_webSocketTask_didOpenWithProtocol_.implement( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); NSURLSessionWebSocketDelegate - .URLSession_webSocketTask_didCloseWithCode_reason_ - .implement(builder, URLSession_webSocketTask_didCloseWithCode_reason_); + .URLSession_webSocketTask_didCloseWithCode_reason_.implement( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); NSURLSessionWebSocketDelegate.URLSession_didCreateTask_.implement( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implement(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionWebSocketDelegate.URLSession_taskIsWaitingForConnectivity_ - .implement(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implement(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implement( - builder, URLSession_task_didReceiveChallenge_completionHandler_); + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); NSURLSessionWebSocketDelegate.URLSession_task_needNewBodyStream_.implement( - builder, URLSession_task_needNewBodyStream_); + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implement(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implement(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didReceiveInformationalResponse_ - .implement(builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionWebSocketDelegate.URLSession_task_didFinishCollectingMetrics_ - .implement(builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionWebSocketDelegate.URLSession_task_didCompleteWithError_ - .implement(builder, URLSession_task_didCompleteWithError_); - NSURLSessionWebSocketDelegate.URLSession_didBecomeInvalidWithError_ - .implement(builder, URLSession_didBecomeInvalidWithError_); + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionWebSocketDelegate - .URLSession_didReceiveChallenge_completionHandler_ - .implement(builder, URLSession_didReceiveChallenge_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSessionDidFinishEventsForBackgroundURLSession_ - .implement(builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); } @@ -76612,95 +89014,160 @@ interface class NSURLSessionWebSocketDelegate extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionWebSocketDelegate implementAsListener( - {void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession, NSURLSessionWebSocketTask, DartNSInteger, objc.NSData?)? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function( - NSURLSession, NSURLSessionTask, objc.ObjCBlock)? - URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { - final builder = - objc.ObjCProtocolBuilder(debugName: 'NSURLSessionWebSocketDelegate'); - NSURLSessionWebSocketDelegate.URLSession_webSocketTask_didOpenWithProtocol_ - .implementAsListener( - builder, URLSession_webSocketTask_didOpenWithProtocol_); + static NSURLSessionWebSocketDelegate implementAsListener({ + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + DartNSInteger, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionWebSocketDelegate', + ); NSURLSessionWebSocketDelegate - .URLSession_webSocketTask_didCloseWithCode_reason_ - .implementAsListener( - builder, URLSession_webSocketTask_didCloseWithCode_reason_); + .URLSession_webSocketTask_didOpenWithProtocol_.implementAsListener( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate + .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsListener( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); NSURLSessionWebSocketDelegate.URLSession_didCreateTask_.implementAsListener( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implementAsListener(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionWebSocketDelegate.URLSession_taskIsWaitingForConnectivity_ - .implementAsListener(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implementAsListener(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implementAsListener( - builder, URLSession_task_didReceiveChallenge_completionHandler_); - NSURLSessionWebSocketDelegate.URLSession_task_needNewBodyStream_ - .implementAsListener(builder, URLSession_task_needNewBodyStream_); + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implementAsListener(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implementAsListener(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didReceiveInformationalResponse_ - .implementAsListener( - builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionWebSocketDelegate.URLSession_task_didFinishCollectingMetrics_ - .implementAsListener( - builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionWebSocketDelegate.URLSession_task_didCompleteWithError_ - .implementAsListener(builder, URLSession_task_didCompleteWithError_); - NSURLSessionWebSocketDelegate.URLSession_didBecomeInvalidWithError_ - .implementAsListener(builder, URLSession_didBecomeInvalidWithError_); + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionWebSocketDelegate - .URLSession_didReceiveChallenge_completionHandler_ - .implementAsListener( - builder, URLSession_didReceiveChallenge_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSessionDidFinishEventsForBackgroundURLSession_ - .implementAsListener( - builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); return NSURLSessionWebSocketDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing @@ -76708,90 +89175,154 @@ interface class NSURLSessionWebSocketDelegate extends objc.ObjCProtocolBase /// be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener(objc.ObjCProtocolBuilder builder, - {void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession, NSURLSessionWebSocketTask, DartNSInteger, objc.NSData?)? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function( - NSURLSession, NSURLSessionTask, objc.ObjCBlock)? - URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { - NSURLSessionWebSocketDelegate.URLSession_webSocketTask_didOpenWithProtocol_ - .implementAsListener( - builder, URLSession_webSocketTask_didOpenWithProtocol_); + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + DartNSInteger, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionWebSocketDelegate + .URLSession_webSocketTask_didOpenWithProtocol_.implementAsListener( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); NSURLSessionWebSocketDelegate - .URLSession_webSocketTask_didCloseWithCode_reason_ - .implementAsListener( - builder, URLSession_webSocketTask_didCloseWithCode_reason_); + .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsListener( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); NSURLSessionWebSocketDelegate.URLSession_didCreateTask_.implementAsListener( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implementAsListener(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionWebSocketDelegate.URLSession_taskIsWaitingForConnectivity_ - .implementAsListener(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implementAsListener(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implementAsListener( - builder, URLSession_task_didReceiveChallenge_completionHandler_); - NSURLSessionWebSocketDelegate.URLSession_task_needNewBodyStream_ - .implementAsListener(builder, URLSession_task_needNewBodyStream_); + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implementAsListener(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implementAsListener(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didReceiveInformationalResponse_ - .implementAsListener( - builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionWebSocketDelegate.URLSession_task_didFinishCollectingMetrics_ - .implementAsListener( - builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionWebSocketDelegate.URLSession_task_didCompleteWithError_ - .implementAsListener(builder, URLSession_task_didCompleteWithError_); - NSURLSessionWebSocketDelegate.URLSession_didBecomeInvalidWithError_ - .implementAsListener(builder, URLSession_didBecomeInvalidWithError_); + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionWebSocketDelegate - .URLSession_didReceiveChallenge_completionHandler_ - .implementAsListener( - builder, URLSession_didReceiveChallenge_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSessionDidFinishEventsForBackgroundURLSession_ - .implementAsListener( - builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); } @@ -76801,95 +89332,160 @@ interface class NSURLSessionWebSocketDelegate extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionWebSocketDelegate implementAsBlocking( - {void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession, NSURLSessionWebSocketTask, DartNSInteger, objc.NSData?)? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function( - NSURLSession, NSURLSessionTask, objc.ObjCBlock)? - URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { - final builder = - objc.ObjCProtocolBuilder(debugName: 'NSURLSessionWebSocketDelegate'); - NSURLSessionWebSocketDelegate.URLSession_webSocketTask_didOpenWithProtocol_ - .implementAsBlocking( - builder, URLSession_webSocketTask_didOpenWithProtocol_); + static NSURLSessionWebSocketDelegate implementAsBlocking({ + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + DartNSInteger, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionWebSocketDelegate', + ); NSURLSessionWebSocketDelegate - .URLSession_webSocketTask_didCloseWithCode_reason_ - .implementAsBlocking( - builder, URLSession_webSocketTask_didCloseWithCode_reason_); + .URLSession_webSocketTask_didOpenWithProtocol_.implementAsBlocking( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate + .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsBlocking( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); NSURLSessionWebSocketDelegate.URLSession_didCreateTask_.implementAsBlocking( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionWebSocketDelegate.URLSession_taskIsWaitingForConnectivity_ - .implementAsBlocking(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implementAsBlocking( - builder, URLSession_task_didReceiveChallenge_completionHandler_); - NSURLSessionWebSocketDelegate.URLSession_task_needNewBodyStream_ - .implementAsBlocking(builder, URLSession_task_needNewBodyStream_); + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implementAsBlocking(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didReceiveInformationalResponse_ - .implementAsBlocking( - builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionWebSocketDelegate.URLSession_task_didFinishCollectingMetrics_ - .implementAsBlocking( - builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionWebSocketDelegate.URLSession_task_didCompleteWithError_ - .implementAsBlocking(builder, URLSession_task_didCompleteWithError_); - NSURLSessionWebSocketDelegate.URLSession_didBecomeInvalidWithError_ - .implementAsBlocking(builder, URLSession_didBecomeInvalidWithError_); + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionWebSocketDelegate - .URLSession_didReceiveChallenge_completionHandler_ - .implementAsBlocking( - builder, URLSession_didReceiveChallenge_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSessionDidFinishEventsForBackgroundURLSession_ - .implementAsBlocking( - builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); return NSURLSessionWebSocketDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing @@ -76897,90 +89493,154 @@ interface class NSURLSessionWebSocketDelegate extends objc.ObjCProtocolBase /// listeners will be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking(objc.ObjCProtocolBuilder builder, - {void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession, NSURLSessionWebSocketTask, DartNSInteger, objc.NSData?)? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function( - NSURLSession, NSURLSessionTask, objc.ObjCBlock)? - URLSession_task_needNewBodyStream_, - void Function(NSURLSession, NSURLSessionTask, int, objc.ObjCBlock)? URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? URLSession_task_didFinishCollectingMetrics_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? URLSession_task_didCompleteWithError_, - void Function(NSURLSession, objc.NSError?)? URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)? URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true}) { - NSURLSessionWebSocketDelegate.URLSession_webSocketTask_didOpenWithProtocol_ - .implementAsBlocking( - builder, URLSession_webSocketTask_didOpenWithProtocol_); + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + DartNSInteger, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionWebSocketDelegate + .URLSession_webSocketTask_didOpenWithProtocol_.implementAsBlocking( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); NSURLSessionWebSocketDelegate - .URLSession_webSocketTask_didCloseWithCode_reason_ - .implementAsBlocking( - builder, URLSession_webSocketTask_didCloseWithCode_reason_); + .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsBlocking( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); NSURLSessionWebSocketDelegate.URLSession_didCreateTask_.implementAsBlocking( - builder, URLSession_didCreateTask_); + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_willBeginDelayedRequest_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_willBeginDelayedRequest_completionHandler_); - NSURLSessionWebSocketDelegate.URLSession_taskIsWaitingForConnectivity_ - .implementAsBlocking(builder, URLSession_taskIsWaitingForConnectivity_); + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_); + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didReceiveChallenge_completionHandler_ - .implementAsBlocking( - builder, URLSession_task_didReceiveChallenge_completionHandler_); - NSURLSessionWebSocketDelegate.URLSession_task_needNewBodyStream_ - .implementAsBlocking(builder, URLSession_task_needNewBodyStream_); + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_ - .implementAsBlocking(builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_); + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ - .implementAsBlocking(builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_); + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); NSURLSessionWebSocketDelegate - .URLSession_task_didReceiveInformationalResponse_ - .implementAsBlocking( - builder, URLSession_task_didReceiveInformationalResponse_); - NSURLSessionWebSocketDelegate.URLSession_task_didFinishCollectingMetrics_ - .implementAsBlocking( - builder, URLSession_task_didFinishCollectingMetrics_); - NSURLSessionWebSocketDelegate.URLSession_task_didCompleteWithError_ - .implementAsBlocking(builder, URLSession_task_didCompleteWithError_); - NSURLSessionWebSocketDelegate.URLSession_didBecomeInvalidWithError_ - .implementAsBlocking(builder, URLSession_didBecomeInvalidWithError_); + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); NSURLSessionWebSocketDelegate - .URLSession_didReceiveChallenge_completionHandler_ - .implementAsBlocking( - builder, URLSession_didReceiveChallenge_completionHandler_); + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); NSURLSessionWebSocketDelegate - .URLSessionDidFinishEventsForBackgroundURLSession_ - .implementAsBlocking( - builder, URLSessionDidFinishEventsForBackgroundURLSession_); + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); builder.addProtocol($protocol); } @@ -76988,144 +89648,208 @@ interface class NSURLSessionWebSocketDelegate extends objc.ObjCProtocolBase /// It will also provide the protocol that is picked in the handshake. If the handshake fails, this delegate will not be invoked. static final URLSession_webSocketTask_didOpenWithProtocol_ = objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_webSocketTask_didOpenWithProtocol_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_webSocketTask_didOpenWithProtocol_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionWebSocketTask arg2, objc.NSString? arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionWebSocketTask arg2, objc.NSString? arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionWebSocketTask arg2, objc.NSString? arg3) => - func(arg1, arg2, arg3)), - ); + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_webSocketTask_didOpenWithProtocol_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_webSocketTask_didOpenWithProtocol_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Indicates that the WebSocket has received a close frame from the server endpoint. /// The close code and the close reason may be provided by the delegate if the server elects to send /// this information in the close frame static final URLSession_webSocketTask_didCloseWithCode_reason_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionWebSocketTask, DartNSInteger, - objc.NSData?)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_webSocketTask_didCloseWithCode_reason_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1lx650f) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_webSocketTask_didCloseWithCode_reason_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionWebSocketTask, DartNSInteger, - objc.NSData?) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - DartNSInteger arg3, - objc.NSData? arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionWebSocketTask, DartNSInteger, - objc.NSData?) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - DartNSInteger arg3, - objc.NSData? arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionWebSocketTask, DartNSInteger, - objc.NSData?) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - DartNSInteger arg3, - objc.NSData? arg4) => - func(arg1, arg2, arg3, arg4)), - ); + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + DartNSInteger, + objc.NSData?, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_webSocketTask_didCloseWithCode_reason_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1lx650f) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_webSocketTask_didCloseWithCode_reason_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + DartNSInteger, + objc.NSData?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + DartNSInteger arg3, + objc.NSData? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + DartNSInteger, + objc.NSData?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + DartNSInteger arg3, + objc.NSData? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + DartNSInteger, + objc.NSData?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + DartNSInteger arg3, + objc.NSData? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); /// Notification that a task has been created. This method is the first message /// a task sends, providing a place to configure the task before it is resumed. /// /// This delegate callback is *NOT* dispatched to the delegate queue. It is /// invoked synchronously before the task creation method returns. - static final URLSession_didCreateTask_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didCreateTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didCreateTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - ); + static final URLSession_didCreateTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didCreateTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didCreateTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); /// Sent when the system is ready to begin work for a task with a delayed start /// time set (using the earliestBeginDate property). The completionHandler must @@ -77149,61 +89873,92 @@ interface class NSURLSessionWebSocketDelegate extends objc.ObjCProtocolBase /// NSURLErrorCancelled. static final URLSession_task_willBeginDelayedRequest_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, NSURLRequest, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - ); + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); /// Sent when a task cannot start the network loading process because the current /// network connectivity is not available or sufficient for the task's request. @@ -77216,40 +89971,52 @@ interface class NSURLSessionWebSocketDelegate extends objc.ObjCProtocolBase /// the waitForConnectivity property is ignored by those sessions. static final URLSession_taskIsWaitingForConnectivity_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - (ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2) => - func(arg1, arg2)), - ); + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); /// An HTTP request is attempting to perform a redirection to a different /// URL. You must invoke the completion routine to allow the @@ -77261,62 +90028,97 @@ interface class NSURLSessionWebSocketDelegate extends objc.ObjCProtocolBase /// For tasks in background sessions, redirections will always be followed and this method will not be called. static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_l2g8ke) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse, - NSURLRequest, objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - ); + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_l2g8ke) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); /// The task has received a request specific authentication challenge. /// If this delegate is not implemented, the session specific authentication challenge @@ -77324,124 +90126,173 @@ interface class NSURLSessionWebSocketDelegate extends objc.ObjCProtocolBase /// disposition. static final URLSession_task_didReceiveChallenge_completionHandler_ = objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// Sent if a task requires a new, unopened body stream. This may be + /// necessary when authentication has failed for any request that + /// involves a body stream. + static final URLSession_task_needNewBodyStream_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg4) => - func(arg1, arg2, arg3, arg4)), - ); - - /// Sent if a task requires a new, unopened body stream. This may be - /// necessary when authentication has failed for any request that - /// involves a body stream. - static final URLSession_task_needNewBodyStream_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock - arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock - arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock - arg3) => - func(arg1, arg2, arg3)), - ); + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Tells the delegate if a task requires a new body stream starting from the given offset. This may be /// necessary when resuming a failed upload task. @@ -77452,260 +90303,382 @@ interface class NSURLSessionWebSocketDelegate extends objc.ObjCProtocolBase /// - Parameter completionHandler: A completion handler that your delegate method should call with the new body stream. static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_jyim80) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - (void Function(NSURLSession, NSURLSessionTask, int, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock - arg4) => - func(arg1, arg2, arg3, arg4)), - ); + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_jyim80) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); /// Sent periodically to notify the delegate of upload progress. This /// information is also available as properties of the task. static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, int, int)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ffi.Native.addressOf< - ffi.NativeFunction< + void Function(NSURLSession, NSURLSessionTask, int, int, int) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ffi.Native.addressOf< + ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64)>>(_NativeCupertinoHttp_protocolTrampoline_h68abb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, int arg3, int arg4, int arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, int arg3, int arg4, int arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, int arg3, int arg4, int arg5) => - func(arg1, arg2, arg3, arg4, arg5)), - ); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); /// Sent for each informational response received except 101 switching protocols. static final URLSession_task_didReceiveInformationalResponse_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSHTTPURLResponse arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSHTTPURLResponse arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSHTTPURLResponse arg3) => - func(arg1, arg2, arg3)), - ); + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Sent when complete statistics information has been collected for the task. static final URLSession_task_didFinishCollectingMetrics_ = objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSURLSessionTaskMetrics arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSURLSessionTaskMetrics arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, NSURLSessionTaskMetrics arg3) => - func(arg1, arg2, arg3)), - ); + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// Sent as the last message related to a specific task. Error may be /// nil, which implies that no error occurred and this task is complete. static final URLSession_task_didCompleteWithError_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didCompleteWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didCompleteWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError - .fromFunction((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, objc.NSError? arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError - .listener((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, objc.NSError? arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError - .blocking((ffi.Pointer _, NSURLSession arg1, - NSURLSessionTask arg2, objc.NSError? arg3) => - func(arg1, arg2, arg3)), - ); + void Function(NSURLSession, NSURLSessionTask, objc.NSError?) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didCompleteWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didCompleteWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// The last message a session receives. A session will only become /// invalid because of a systemic error or when it has been /// explicitly invalidated, in which case the error parameter will be nil. - static final URLSession_didBecomeInvalidWithError_ = objc - .ObjCProtocolListenableMethod( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - (ffi.Pointer _, NSURLSession arg1, objc.NSError? arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - (ffi.Pointer _, NSURLSession arg1, objc.NSError? arg2) => - func(arg1, arg2)), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - (ffi.Pointer _, NSURLSession arg1, objc.NSError? arg2) => - func(arg1, arg2)), - ); + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); /// If implemented, when a connection level authentication challenge /// has occurred, this delegate will be given the opportunity to @@ -77717,60 +90690,84 @@ interface class NSURLSessionWebSocketDelegate extends objc.ObjCProtocolBase /// interaction. static final URLSession_didReceiveChallenge_completionHandler_ = objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLAuthenticationChallenge, - objc.ObjCBlock)>( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .fromFunction((ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .listener((ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg3) => - func(arg1, arg2, arg3)), - (void Function(NSURLSession, NSURLAuthenticationChallenge, - objc.ObjCBlock) - func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential - .blocking((ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock< - ffi.Void Function(NSInteger, NSURLCredential?)> - arg3) => - func(arg1, arg2, arg3)), - ); + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// If an application has received an /// -application:handleEventsForBackgroundURLSession:completionHandler: @@ -77781,110 +90778,159 @@ interface class NSURLSessionWebSocketDelegate extends objc.ObjCProtocolBase /// result in invoking the completion handler. static final URLSessionDidFinishEventsForBackgroundURLSession_ = objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>( - _NativeCupertinoHttp_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1)), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1)), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1)), - ); + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_NativeCupertinoHttp_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); } typedef unichar = ffi.UnsignedShort; typedef Dartunichar = int; late final _class_NSValue = objc.getClass("NSValue"); -late final _sel_valueWithBytes_objCType_ = - objc.registerName("valueWithBytes:objCType:"); +late final _sel_valueWithBytes_objCType_ = objc.registerName( + "valueWithBytes:objCType:", +); final _objc_msgSend_e9mncn = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_value_withObjCType_ = objc.registerName("value:withObjCType:"); /// NSValueCreation extension NSValueCreation on objc.NSValue { /// valueWithBytes:objCType: - static objc.NSValue valueWithBytes(ffi.Pointer value, - {required ffi.Pointer objCType}) { + static objc.NSValue valueWithBytes( + ffi.Pointer value, { + required ffi.Pointer objCType, + }) { final _ret = _objc_msgSend_e9mncn( - _class_NSValue, _sel_valueWithBytes_objCType_, value, objCType); + _class_NSValue, + _sel_valueWithBytes_objCType_, + value, + objCType, + ); return objc.NSValue.castFromPointer(_ret, retain: true, release: true); } /// value:withObjCType: - static objc.NSValue value(ffi.Pointer value$1, - {required ffi.Pointer withObjCType}) { + static objc.NSValue value( + ffi.Pointer value$1, { + required ffi.Pointer withObjCType, + }) { final _ret = _objc_msgSend_e9mncn( - _class_NSValue, _sel_value_withObjCType_, value$1, withObjCType); + _class_NSValue, + _sel_value_withObjCType_, + value$1, + withObjCType, + ); return objc.NSValue.castFromPointer(_ret, retain: true, release: true); } } -late final _sel_valueWithNonretainedObject_ = - objc.registerName("valueWithNonretainedObject:"); -late final _sel_nonretainedObjectValue = - objc.registerName("nonretainedObjectValue"); +late final _sel_valueWithNonretainedObject_ = objc.registerName( + "valueWithNonretainedObject:", +); +late final _sel_nonretainedObjectValue = objc.registerName( + "nonretainedObjectValue", +); late final _sel_valueWithPointer_ = objc.registerName("valueWithPointer:"); final _objc_msgSend_1mbt9g9 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_pointerValue = objc.registerName("pointerValue"); final _objc_msgSend_6ex6p5 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_isEqualToValue_ = objc.registerName("isEqualToValue:"); /// NSValueExtensionMethods extension NSValueExtensionMethods on objc.NSValue { /// valueWithNonretainedObject: static objc.NSValue valueWithNonretainedObject( - objc.ObjCObjectBase? anObject) { - final _ret = _objc_msgSend_1sotr3r(_class_NSValue, - _sel_valueWithNonretainedObject_, anObject?.ref.pointer ?? ffi.nullptr); + objc.ObjCObjectBase? anObject, + ) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSValue, + _sel_valueWithNonretainedObject_, + anObject?.ref.pointer ?? ffi.nullptr, + ); return objc.NSValue.castFromPointer(_ret, retain: true, release: true); } /// nonretainedObjectValue objc.ObjCObjectBase? get nonretainedObjectValue { - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_nonretainedObjectValue); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_nonretainedObjectValue, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true); @@ -77893,7 +90939,10 @@ extension NSValueExtensionMethods on objc.NSValue { /// valueWithPointer: static objc.NSValue valueWithPointer(ffi.Pointer pointer$1) { final _ret = _objc_msgSend_1mbt9g9( - _class_NSValue, _sel_valueWithPointer_, pointer$1); + _class_NSValue, + _sel_valueWithPointer_, + pointer$1, + ); return objc.NSValue.castFromPointer(_ret, retain: true, release: true); } @@ -77905,26 +90954,41 @@ extension NSValueExtensionMethods on objc.NSValue { /// isEqualToValue: bool isEqualToValue(objc.NSValue value) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isEqualToValue_, value.ref.pointer); + this.ref.pointer, + _sel_isEqualToValue_, + value.ref.pointer, + ); } } late final _sel_getValue_ = objc.registerName("getValue:"); final _objc_msgSend_ovsamd = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// NSDeprecated extension NSDeprecated$2 on objc.NSValue { /// getValue: void getValue(ffi.Pointer value) { - objc.checkOsVersionInternal('NSValue.getValue:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSValue.getValue:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_ovsamd(this.ref.pointer, _sel_getValue_, value); } } @@ -77934,38 +90998,64 @@ typedef NSRangePointer = ffi.Pointer; late final _sel_valueWithRange_ = objc.registerName("valueWithRange:"); final _objc_msgSend_1k1o1s7 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, objc.NSRange)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, objc.NSRange)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + >(); late final _sel_rangeValue = objc.registerName("rangeValue"); final _objc_msgSend_1u11dbb = objc.msgSendPointer .cast< - ffi.NativeFunction< - objc.NSRange Function(ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< objc.NSRange Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1u11dbbStret = objc.msgSendStretPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// NSValueRangeExtensions extension NSValueRangeExtensions on objc.NSValue { /// valueWithRange: static objc.NSValue valueWithRange(NSRange range) { - final _ret = - _objc_msgSend_1k1o1s7(_class_NSValue, _sel_valueWithRange_, range); + final _ret = _objc_msgSend_1k1o1s7( + _class_NSValue, + _sel_valueWithRange_, + range, + ); return objc.NSValue.castFromPointer(_ret, retain: true, release: true); } @@ -77976,8 +91066,9 @@ extension NSValueRangeExtensions on objc.NSValue { ? _objc_msgSend_1u11dbbStret(_ptr, this.ref.pointer, _sel_rangeValue) : _ptr.ref = _objc_msgSend_1u11dbb(this.ref.pointer, _sel_rangeValue); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } } @@ -77985,30 +91076,38 @@ extension NSValueRangeExtensions on objc.NSValue { late final _class_NSArray = objc.getClass("NSArray"); late final _sel_array = objc.registerName("array"); late final _sel_arrayWithObject_ = objc.registerName("arrayWithObject:"); -late final _sel_arrayWithObjects_count_ = - objc.registerName("arrayWithObjects:count:"); +late final _sel_arrayWithObjects_count_ = objc.registerName( + "arrayWithObjects:count:", +); final _objc_msgSend_zmbtbd = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); late final _sel_arrayWithObjects_ = objc.registerName("arrayWithObjects:"); late final _sel_arrayWithArray_ = objc.registerName("arrayWithArray:"); late final _sel_initWithObjects_ = objc.registerName("initWithObjects:"); late final _sel_initWithArray_ = objc.registerName("initWithArray:"); -late final _sel_initWithArray_copyItems_ = - objc.registerName("initWithArray:copyItems:"); -late final _sel_arrayWithContentsOfURL_error_ = - objc.registerName("arrayWithContentsOfURL:error:"); +late final _sel_initWithArray_copyItems_ = objc.registerName( + "initWithArray:copyItems:", +); +late final _sel_arrayWithContentsOfURL_error_ = objc.registerName( + "arrayWithContentsOfURL:error:", +); /// NSArrayCreation extension NSArrayCreation on objc.NSArray { @@ -78021,74 +91120,118 @@ extension NSArrayCreation on objc.NSArray { /// arrayWithObject: static objc.NSArray arrayWithObject(objc.ObjCObjectBase anObject) { final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, _sel_arrayWithObject_, anObject.ref.pointer); + _class_NSArray, + _sel_arrayWithObject_, + anObject.ref.pointer, + ); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// arrayWithObjects:count: static objc.NSArray arrayWithObjects( - ffi.Pointer> objects, - {required DartNSUInteger count}) { + ffi.Pointer> objects, { + required DartNSUInteger count, + }) { final _ret = _objc_msgSend_zmbtbd( - _class_NSArray, _sel_arrayWithObjects_count_, objects, count); + _class_NSArray, + _sel_arrayWithObjects_count_, + objects, + count, + ); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// arrayWithObjects: static objc.NSArray arrayWithObjects$1(objc.ObjCObjectBase firstObj) { final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, _sel_arrayWithObjects_, firstObj.ref.pointer); + _class_NSArray, + _sel_arrayWithObjects_, + firstObj.ref.pointer, + ); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// arrayWithArray: static objc.NSArray arrayWithArray(objc.NSArray array$1) { final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, _sel_arrayWithArray_, array$1.ref.pointer); + _class_NSArray, + _sel_arrayWithArray_, + array$1.ref.pointer, + ); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// initWithObjects: objc.NSArray initWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, firstObj.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); return objc.NSArray.castFromPointer(_ret, retain: false, release: true); } /// initWithArray: objc.NSArray initWithArray(objc.NSArray array$1) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithArray_, array$1.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array$1.ref.pointer, + ); return objc.NSArray.castFromPointer(_ret, retain: false, release: true); } /// initWithArray:copyItems: - objc.NSArray initWithArray$1(objc.NSArray array$1, - {required bool copyItems}) { - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, array$1.ref.pointer, copyItems); + objc.NSArray initWithArray$1( + objc.NSArray array$1, { + required bool copyItems, + }) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + array$1.ref.pointer, + copyItems, + ); return objc.NSArray.castFromPointer(_ret, retain: false, release: true); } /// initWithContentsOfURL:error: - objc.NSArray? initWithContentsOfURL(objc.NSURL url, - {required ffi.Pointer> error}) { - objc.checkOsVersionInternal('NSArray.initWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); - final _ret = _objc_msgSend_1lhpu4m(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_error_, url.ref.pointer, error); + objc.NSArray? initWithContentsOfURL( + objc.NSURL url, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSArray.initWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1lhpu4m( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_error_, + url.ref.pointer, + error, + ); return _ret.address == 0 ? null : objc.NSArray.castFromPointer(_ret, retain: false, release: true); } /// arrayWithContentsOfURL:error: - static objc.NSArray? arrayWithContentsOfURL(objc.NSURL url, - {required ffi.Pointer> error}) { - objc.checkOsVersionInternal('NSArray.arrayWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); - final _ret = _objc_msgSend_1lhpu4m(_class_NSArray, - _sel_arrayWithContentsOfURL_error_, url.ref.pointer, error); + static objc.NSArray? arrayWithContentsOfURL( + objc.NSURL url, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSArray.arrayWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1lhpu4m( + _class_NSArray, + _sel_arrayWithContentsOfURL_error_, + url.ref.pointer, + error, + ); return _ret.address == 0 ? null : objc.NSArray.castFromPointer(_ret, retain: true, release: true); @@ -78096,73 +91239,111 @@ extension NSArrayCreation on objc.NSArray { } bool _ObjCBlock_bool_objcObjCObject_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer - _ObjCBlock_bool_objcObjCObject_objcObjCObject_fnPtrCallable = +_ObjCBlock_bool_objcObjCObject_objcObjCObject_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_bool_objcObjCObject_objcObjCObject_fnPtrTrampoline, - false) + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_objcObjCObject_objcObjCObject_fnPtrTrampoline, false) .cast(); bool _ObjCBlock_bool_objcObjCObject_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as bool Function(ffi.Pointer, - ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); ffi.Pointer - _ObjCBlock_bool_objcObjCObject_objcObjCObject_closureCallable = +_ObjCBlock_bool_objcObjCObject_objcObjCObject_closureCallable = ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_bool_objcObjCObject_objcObjCObject_closureTrampoline, - false) + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_bool_objcObjCObject_objcObjCObject_closureTrampoline, + false, + ) .cast(); /// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. abstract final class ObjCBlock_bool_objcObjCObject_objcObjCObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer)>(pointer, - retain: retain, release: release); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc - .ObjCBlock, ffi.Pointer)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1)>> ptr) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer)>( - objc.newPointerBlock( - _ObjCBlock_bool_objcObjCObject_objcObjCObject_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_bool_objcObjCObject_objcObjCObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -78172,136 +91353,210 @@ abstract final class ObjCBlock_bool_objcObjCObject_objcObjCObject { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, ffi.Pointer)> - fromFunction(bool Function(objc.ObjCObjectBase, objc.ObjCObjectBase) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_bool_objcObjCObject_objcObjCObject_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - objc.ObjCObjectBase(arg0, retain: true, release: true), - objc.ObjCObjectBase(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + bool Function(objc.ObjCObjectBase, objc.ObjCObjectBase) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_bool_objcObjCObject_objcObjCObject_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + objc.ObjCObjectBase(arg0, retain: true, release: true), + objc.ObjCObjectBase(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. extension ObjCBlock_bool_objcObjCObject_objcObjCObject_CallExtension - on objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)> { - bool call(objc.ObjCObjectBase arg0, objc.ObjCObjectBase arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0.ref.pointer, arg1.ref.pointer); + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call(objc.ObjCObjectBase arg0, objc.ObjCObjectBase arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer); } -late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_ = - objc.registerName("differenceFromArray:withOptions:usingEquivalenceTest:"); +late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_ = objc + .registerName("differenceFromArray:withOptions:usingEquivalenceTest:"); final _objc_msgSend_1415lvo = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); -late final _sel_differenceFromArray_withOptions_ = - objc.registerName("differenceFromArray:withOptions:"); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +late final _sel_differenceFromArray_withOptions_ = objc.registerName( + "differenceFromArray:withOptions:", +); final _objc_msgSend_1wtpmu7 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); -late final _sel_differenceFromArray_ = - objc.registerName("differenceFromArray:"); -late final _sel_arrayByApplyingDifference_ = - objc.registerName("arrayByApplyingDifference:"); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_differenceFromArray_ = objc.registerName( + "differenceFromArray:", +); +late final _sel_arrayByApplyingDifference_ = objc.registerName( + "arrayByApplyingDifference:", +); /// NSArrayDiffing extension NSArrayDiffing on objc.NSArray { /// differenceFromArray:withOptions:usingEquivalenceTest: - objc.NSOrderedCollectionDifference differenceFromArray(objc.NSArray other, - {required objc.NSOrderedCollectionDifferenceCalculationOptions - withOptions, - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)> - usingEquivalenceTest}) { + objc.NSOrderedCollectionDifference differenceFromArray( + objc.NSArray other, { + required objc.NSOrderedCollectionDifferenceCalculationOptions withOptions, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingEquivalenceTest, + }) { objc.checkOsVersionInternal( - 'NSArray.differenceFromArray:withOptions:usingEquivalenceTest:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + 'NSArray.differenceFromArray:withOptions:usingEquivalenceTest:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_1415lvo( - this.ref.pointer, - _sel_differenceFromArray_withOptions_usingEquivalenceTest_, - other.ref.pointer, - withOptions.value, - usingEquivalenceTest.ref.pointer); - return objc.NSOrderedCollectionDifference.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_differenceFromArray_withOptions_usingEquivalenceTest_, + other.ref.pointer, + withOptions.value, + usingEquivalenceTest.ref.pointer, + ); + return objc.NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// differenceFromArray:withOptions: - objc.NSOrderedCollectionDifference differenceFromArray$1(objc.NSArray other, - {required objc.NSOrderedCollectionDifferenceCalculationOptions - withOptions}) { - objc.checkOsVersionInternal('NSArray.differenceFromArray:withOptions:', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.NSOrderedCollectionDifference differenceFromArray$1( + objc.NSArray other, { + required objc.NSOrderedCollectionDifferenceCalculationOptions withOptions, + }) { + objc.checkOsVersionInternal( + 'NSArray.differenceFromArray:withOptions:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_1wtpmu7( - this.ref.pointer, - _sel_differenceFromArray_withOptions_, - other.ref.pointer, - withOptions.value); - return objc.NSOrderedCollectionDifference.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_differenceFromArray_withOptions_, + other.ref.pointer, + withOptions.value, + ); + return objc.NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// differenceFromArray: objc.NSOrderedCollectionDifference differenceFromArray$2(objc.NSArray other) { - objc.checkOsVersionInternal('NSArray.differenceFromArray:', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSArray.differenceFromArray:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_differenceFromArray_, other.ref.pointer); - return objc.NSOrderedCollectionDifference.castFromPointer(_ret, - retain: true, release: true); + this.ref.pointer, + _sel_differenceFromArray_, + other.ref.pointer, + ); + return objc.NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// arrayByApplyingDifference: objc.NSArray? arrayByApplyingDifference( - objc.NSOrderedCollectionDifference difference) { - objc.checkOsVersionInternal('NSArray.arrayByApplyingDifference:', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_arrayByApplyingDifference_, difference.ref.pointer); + objc.NSOrderedCollectionDifference difference, + ) { + objc.checkOsVersionInternal( + 'NSArray.arrayByApplyingDifference:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_arrayByApplyingDifference_, + difference.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSArray.castFromPointer(_ret, retain: true, release: true); @@ -78311,36 +91566,52 @@ extension NSArrayDiffing on objc.NSArray { late final _sel_getObjects_ = objc.registerName("getObjects:"); final _objc_msgSend_1dau4w = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); -late final _sel_arrayWithContentsOfFile_ = - objc.registerName("arrayWithContentsOfFile:"); -late final _sel_arrayWithContentsOfURL_ = - objc.registerName("arrayWithContentsOfURL:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +late final _sel_arrayWithContentsOfFile_ = objc.registerName( + "arrayWithContentsOfFile:", +); +late final _sel_arrayWithContentsOfURL_ = objc.registerName( + "arrayWithContentsOfURL:", +); /// NSDeprecated extension NSDeprecated$3 on objc.NSArray { /// getObjects: void getObjects(ffi.Pointer> objects) { - objc.checkOsVersionInternal('NSArray.getObjects:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSArray.getObjects:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_1dau4w(this.ref.pointer, _sel_getObjects_, objects); } /// arrayWithContentsOfFile: static objc.NSArray? arrayWithContentsOfFile(objc.NSString path) { - objc.checkOsVersionInternal('NSArray.arrayWithContentsOfFile:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSArray.arrayWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, _sel_arrayWithContentsOfFile_, path.ref.pointer); + _class_NSArray, + _sel_arrayWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSArray.castFromPointer(_ret, retain: true, release: true); @@ -78348,10 +91619,16 @@ extension NSDeprecated$3 on objc.NSArray { /// arrayWithContentsOfURL: static objc.NSArray? arrayWithContentsOfURL(objc.NSURL url) { - objc.checkOsVersionInternal('NSArray.arrayWithContentsOfURL:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSArray.arrayWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, _sel_arrayWithContentsOfURL_, url.ref.pointer); + _class_NSArray, + _sel_arrayWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSArray.castFromPointer(_ret, retain: true, release: true); @@ -78359,10 +91636,16 @@ extension NSDeprecated$3 on objc.NSArray { /// initWithContentsOfFile: objc.NSArray? initWithContentsOfFile(objc.NSString path) { - objc.checkOsVersionInternal('NSArray.initWithContentsOfFile:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, path.ref.pointer); + objc.checkOsVersionInternal( + 'NSArray.initWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSArray.castFromPointer(_ret, retain: false, release: true); @@ -78370,10 +91653,16 @@ extension NSDeprecated$3 on objc.NSArray { /// initWithContentsOfURL: objc.NSArray? initWithContentsOfURL(objc.NSURL url) { - objc.checkOsVersionInternal('NSArray.initWithContentsOfURL:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, url.ref.pointer); + objc.checkOsVersionInternal( + 'NSArray.initWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSArray.castFromPointer(_ret, retain: false, release: true); @@ -78381,18 +91670,32 @@ extension NSDeprecated$3 on objc.NSArray { /// writeToFile:atomically: bool writeToFile(objc.NSString path, {required bool atomically}) { - objc.checkOsVersionInternal('NSArray.writeToFile:atomically:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToFile_atomically_, - path.ref.pointer, atomically); + objc.checkOsVersionInternal( + 'NSArray.writeToFile:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + this.ref.pointer, + _sel_writeToFile_atomically_, + path.ref.pointer, + atomically, + ); } /// writeToURL:atomically: bool writeToURL(objc.NSURL url, {required bool atomically}) { - objc.checkOsVersionInternal('NSArray.writeToURL:atomically:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToURL_atomically_, - url.ref.pointer, atomically); + objc.checkOsVersionInternal( + 'NSArray.writeToURL:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + this.ref.pointer, + _sel_writeToURL_atomically_, + url.ref.pointer, + atomically, + ); } } @@ -78404,49 +91707,79 @@ extension NSMutableArrayCreation on objc.NSMutableArray { /// arrayWithCapacity: static objc.NSMutableArray arrayWithCapacity(DartNSUInteger numItems) { final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableArray, _sel_arrayWithCapacity_, numItems); - return objc.NSMutableArray.castFromPointer(_ret, - retain: true, release: true); + _class_NSMutableArray, + _sel_arrayWithCapacity_, + numItems, + ); + return objc.NSMutableArray.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// arrayWithContentsOfFile: static objc.NSMutableArray? arrayWithContentsOfFile(objc.NSString path) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, _sel_arrayWithContentsOfFile_, path.ref.pointer); + _class_NSMutableArray, + _sel_arrayWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null - : objc.NSMutableArray.castFromPointer(_ret, - retain: true, release: true); + : objc.NSMutableArray.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// arrayWithContentsOfURL: static objc.NSMutableArray? arrayWithContentsOfURL(objc.NSURL url) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, _sel_arrayWithContentsOfURL_, url.ref.pointer); + _class_NSMutableArray, + _sel_arrayWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null - : objc.NSMutableArray.castFromPointer(_ret, - retain: true, release: true); + : objc.NSMutableArray.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// initWithContentsOfFile: objc.NSMutableArray? initWithContentsOfFile(objc.NSString path) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, path.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null - : objc.NSMutableArray.castFromPointer(_ret, - retain: false, release: true); + : objc.NSMutableArray.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithContentsOfURL: objc.NSMutableArray? initWithContentsOfURL(objc.NSURL url) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, url.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null - : objc.NSMutableArray.castFromPointer(_ret, - retain: false, release: true); + : objc.NSMutableArray.castFromPointer( + _ret, + retain: false, + release: true, + ); } } @@ -78456,77 +91789,106 @@ late final _sel_applyDifference_ = objc.registerName("applyDifference:"); extension NSMutableArrayDiffing on objc.NSMutableArray { /// applyDifference: void applyDifference(objc.NSOrderedCollectionDifference difference) { - objc.checkOsVersionInternal('NSMutableArray.applyDifference:', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSMutableArray.applyDifference:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_applyDifference_, difference.ref.pointer); + this.ref.pointer, + _sel_applyDifference_, + difference.ref.pointer, + ); } } void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable = +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as void Function(ffi.Pointer, - ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable = +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { try { - (objc.getBlockClosure(block) as void Function(ffi.Pointer, - ffi.Pointer))(arg0, arg1); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -78535,62 +91897,88 @@ void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock?, objc.NSError)>`. abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { /// Returns a block that wraps the given raw block pointer. - static objc - .ObjCBlock?, objc.NSError)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, - objc.NSError)>(pointer, retain: retain, release: release); + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock?, objc.NSError)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock?, objc.NSError)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -78600,20 +91988,36 @@ abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock?, objc.NSError)> fromFunction( - void Function(objc.NSSecureCoding?, objc.NSError) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock?, objc.NSError)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0.address == 0 - ? null - : objc.NSSecureCoding.castFromPointer(arg0, retain: true, release: true), - objc.NSError.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + fromFunction( + void Function(objc.NSSecureCoding?, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + arg0.address == 0 + ? null + : objc.NSSecureCoding.castFromPointer( + arg0, + retain: true, + release: true, + ), + objc.NSError.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -78624,29 +92028,35 @@ abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock?, objc.NSError)> - listener(void Function(objc.NSSecureCoding?, objc.NSError) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + listener( + void Function(objc.NSSecureCoding?, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : objc.NSSecureCoding.castFromPointer(arg0, - retain: false, release: true), - objc.NSError.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : objc.NSSecureCoding.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_pfv6jd(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, - objc.NSError)>(wrapper, retain: false, release: true); + ffi.Void Function(ffi.Pointer?, objc.NSError) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -78659,158 +92069,206 @@ abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc - .ObjCBlock?, objc.NSError)> - blocking(void Function(objc.NSSecureCoding?, objc.NSError) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + blocking( + void Function(objc.NSSecureCoding?, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : objc.NSSecureCoding.castFromPointer(arg0, - retain: false, release: true), - objc.NSError.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : objc.NSSecureCoding.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : objc.NSSecureCoding.castFromPointer(arg0, - retain: false, release: true), - objc.NSError.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : objc.NSSecureCoding.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_pfv6jd( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, - objc.NSError)>(wrapper, retain: false, release: true); + ffi.Void Function(ffi.Pointer?, objc.NSError) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock?, objc.NSError)>`. -extension ObjCBlock_ffiVoid_idNSSecureCoding_NSError_CallExtension on objc - .ObjCBlock?, objc.NSError)> { - void call(objc.NSSecureCoding? arg0, objc.NSError arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1.ref.pointer); +extension ObjCBlock_ffiVoid_idNSSecureCoding_NSError_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > { + void call(objc.NSSecureCoding? arg0, objc.NSError arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1.ref.pointer); } typedef NSItemProviderCompletionHandler = ffi.Pointer; -typedef DartNSItemProviderCompletionHandler = objc - .ObjCBlock?, objc.NSError)>; +typedef DartNSItemProviderCompletionHandler = + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >; void - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline( - ffi.Pointer block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2); +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline( + ffi.Pointer block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable = +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline( - ffi.Pointer block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, NSItemProviderCompletionHandler, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline( + ffi.Pointer block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable = +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline( - ffi.Pointer block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - (objc.getBlockClosure(block) as void Function( - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline( + ffi.Pointer block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable = + ffi.Void Function( + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { try { - (objc.getBlockClosure(block) as void Function( - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function( + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -78819,55 +92277,76 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock?, objc.NSError)>, ffi.Pointer, objc.NSDictionary)>`. abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError)>, - ffi.Pointer, - objc.NSDictionary)> - castFromPointer(ffi.Pointer pointer, {bool retain = false, bool release = false}) => + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, objc.NSError)>, - ffi.Pointer, - objc.NSDictionary)>(pointer, retain: retain, release: release); + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -78875,17 +92354,42 @@ abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCO /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError)>, - ffi.Pointer, - objc.NSDictionary)> - fromFunctionPointer(ffi.Pointer arg1, ffi.Pointer arg2)>> ptr) => + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, objc.NSError)>, - ffi.Pointer, - objc.NSDictionary)>(objc.newPointerBlock(_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable, ptr.cast()), retain: false, release: true); + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -78895,19 +92399,57 @@ abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCO /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock?, objc.NSError)>, ffi.Pointer, objc.NSDictionary)> - fromFunction(void Function(DartNSItemProviderCompletionHandler, objc.ObjCObjectBase, objc.NSDictionary) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock?, objc.NSError)>, ffi.Pointer, objc.NSDictionary)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable, - (NSItemProviderCompletionHandler arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer(arg0, retain: true, release: true), - objc.ObjCObjectBase(arg1, retain: true, release: true), - objc.NSDictionary.castFromPointer(arg2, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + fromFunction( + void Function( + DartNSItemProviderCompletionHandler, + objc.ObjCObjectBase, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable, + ( + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: true, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: true, release: true), + objc.NSDictionary.castFromPointer( + arg2, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -78919,37 +92461,53 @@ abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCO /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError)>, - ffi.Pointer, - objc.NSDictionary)> listener( - void Function(DartNSItemProviderCompletionHandler, objc.ObjCObjectBase, - objc.NSDictionary) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + listener( + void Function( + DartNSItemProviderCompletionHandler, + objc.ObjCObjectBase, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable - .nativeFunction - .cast(), - (NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer(arg0, - retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - objc.NSDictionary.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable + .nativeFunction + .cast(), + ( + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: false, release: true), + objc.NSDictionary.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_1b3bb6a(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError)>, - ffi.Pointer, - objc.NSDictionary)>(wrapper, retain: false, release: true); + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -78963,140 +92521,203 @@ abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCO /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError)>, - ffi.Pointer, - objc.NSDictionary)> blocking( - void Function(DartNSItemProviderCompletionHandler, objc.ObjCObjectBase, - objc.NSDictionary) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + blocking( + void Function( + DartNSItemProviderCompletionHandler, + objc.ObjCObjectBase, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable - .nativeFunction - .cast(), - (NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer(arg0, - retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - objc.NSDictionary.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable + .nativeFunction + .cast(), + ( + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: false, release: true), + objc.NSDictionary.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable - .nativeFunction - .cast(), - (NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer(arg0, - retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - objc.NSDictionary.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable + .nativeFunction + .cast(), + ( + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: false, release: true), + objc.NSDictionary.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_1b3bb6a( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError)>, - ffi.Pointer, - objc.NSDictionary)>(wrapper, retain: false, release: true); + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock?, objc.NSError)>, ffi.Pointer, objc.NSDictionary)>`. extension ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_CallExtension - on objc.ObjCBlock< - ffi.Void Function( + on + objc.ObjCBlock< + ffi.Void Function( objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError)>, + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, ffi.Pointer, - objc.NSDictionary)> { - void call(DartNSItemProviderCompletionHandler arg0, objc.ObjCObjectBase arg1, - objc.NSDictionary arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2.ref.pointer); + objc.NSDictionary, + ) + > { + void call( + DartNSItemProviderCompletionHandler arg0, + objc.ObjCObjectBase arg1, + objc.NSDictionary arg2, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2.ref.pointer); } typedef NSItemProviderLoadHandler = ffi.Pointer; -typedef DartNSItemProviderLoadHandler = objc.ObjCBlock< - ffi.Void Function( +typedef DartNSItemProviderLoadHandler = + objc.ObjCBlock< + ffi.Void Function( objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError)>, + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, ffi.Pointer, - objc.NSDictionary)>; + objc.NSDictionary, + ) + >; late final _class_NSItemProvider = objc.getClass("NSItemProvider"); late final _sel_previewImageHandler = objc.registerName("previewImageHandler"); final _objc_msgSend_uwvaik = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_setPreviewImageHandler_ = - objc.registerName("setPreviewImageHandler:"); -late final _sel_loadPreviewImageWithOptions_completionHandler_ = - objc.registerName("loadPreviewImageWithOptions:completionHandler:"); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_setPreviewImageHandler_ = objc.registerName( + "setPreviewImageHandler:", +); +late final _sel_loadPreviewImageWithOptions_completionHandler_ = objc + .registerName("loadPreviewImageWithOptions:completionHandler:"); /// NSPreviewSupport extension NSPreviewSupport on objc.NSItemProvider { /// previewImageHandler DartNSItemProviderLoadHandler? get previewImageHandler { - objc.checkOsVersionInternal('NSItemProvider.previewImageHandler', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); - final _ret = - _objc_msgSend_uwvaik(this.ref.pointer, _sel_previewImageHandler); + objc.checkOsVersionInternal( + 'NSItemProvider.previewImageHandler', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final _ret = _objc_msgSend_uwvaik( + this.ref.pointer, + _sel_previewImageHandler, + ); return _ret.address == 0 ? null - : ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary - .castFromPointer(_ret, retain: true, release: true); + : ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// setPreviewImageHandler: set previewImageHandler(DartNSItemProviderLoadHandler? value) { - objc.checkOsVersionInternal('NSItemProvider.setPreviewImageHandler:', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); - _objc_msgSend_f167m6(this.ref.pointer, _sel_setPreviewImageHandler_, - value?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSItemProvider.setPreviewImageHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_setPreviewImageHandler_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// loadPreviewImageWithOptions:completionHandler: - void loadPreviewImageWithOptions(objc.NSDictionary options, - {required DartNSItemProviderCompletionHandler completionHandler}) { + void loadPreviewImageWithOptions( + objc.NSDictionary options, { + required DartNSItemProviderCompletionHandler completionHandler, + }) { objc.checkOsVersionInternal( - 'NSItemProvider.loadPreviewImageWithOptions:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); + 'NSItemProvider.loadPreviewImageWithOptions:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); _objc_msgSend_o762yo( - this.ref.pointer, - _sel_loadPreviewImageWithOptions_completionHandler_, - options.ref.pointer, - completionHandler.ref.pointer); + this.ref.pointer, + _sel_loadPreviewImageWithOptions_completionHandler_, + options.ref.pointer, + completionHandler.ref.pointer, + ); } } @@ -79108,84 +92729,108 @@ typedef DartNSStringEncodingDetectionOptionsKey = objc.NSString; late final _class_NSString = objc.getClass("NSString"); late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_ = objc.registerName( - "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"); + "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:", + ); final _objc_msgSend_1q2ox4r = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + >(); /// NSStringEncodingDetection extension NSStringEncodingDetection on objc.NSString { /// stringEncodingForData:encodingOptions:convertedString:usedLossyConversion: - static DartNSUInteger stringEncodingForData(objc.NSData data, - {objc.NSDictionary? encodingOptions, - required ffi.Pointer> convertedString, - required ffi.Pointer usedLossyConversion}) { + static DartNSUInteger stringEncodingForData( + objc.NSData data, { + objc.NSDictionary? encodingOptions, + required ffi.Pointer> convertedString, + required ffi.Pointer usedLossyConversion, + }) { objc.checkOsVersionInternal( - 'NSString.stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); + 'NSString.stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); return _objc_msgSend_1q2ox4r( - _class_NSString, - _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_, - data.ref.pointer, - encodingOptions?.ref.pointer ?? ffi.nullptr, - convertedString, - usedLossyConversion); + _class_NSString, + _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_, + data.ref.pointer, + encodingOptions?.ref.pointer ?? ffi.nullptr, + convertedString, + usedLossyConversion, + ); } } -late final _sel_readableTypeIdentifiersForItemProvider = - objc.registerName("readableTypeIdentifiersForItemProvider"); +late final _sel_readableTypeIdentifiersForItemProvider = objc.registerName( + "readableTypeIdentifiersForItemProvider", +); ffi.Pointer _ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_NSArray_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline) .cast(); ffi.Pointer _ObjCBlock_NSArray_ffiVoid_closureTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_NSArray_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSArray_ffiVoid_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSArray_ffiVoid_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_NSArray_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -79193,16 +92838,18 @@ abstract final class ObjCBlock_NSArray_ffiVoid { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_NSArray_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_NSArray_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -79213,128 +92860,157 @@ abstract final class ObjCBlock_NSArray_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> - fromFunction(objc.NSArray Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_NSArray_ffiVoid_closureCallable, - (ffi.Pointer arg0) => - fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + fromFunction( + objc.NSArray Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_NSArray_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock)>`. extension ObjCBlock_NSArray_ffiVoid_CallExtension on objc.ObjCBlock)> { objc.NSArray call(ffi.Pointer arg0) => objc.NSArray.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0), - retain: true, - release: true); + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); } -late final _sel_objectWithItemProviderData_typeIdentifier_error_ = - objc.registerName("objectWithItemProviderData:typeIdentifier:error:"); +late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc + .registerName("objectWithItemProviderData:typeIdentifier:error:"); final _objc_msgSend_1pnyuds = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); instancetype - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3)>>() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>()( - arg0, arg1, arg2, arg3); +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable = +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable = ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>( - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline) - .cast(); -instancetype - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3) => - (objc.getBlockClosure(block) as instancetype Function( + instancetype Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>))(arg0, arg1, arg2, arg3); + ffi.Pointer>, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline) + .cast(); +instancetype +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, +) => + (objc.getBlockClosure(block) + as instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ))(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable = +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable = ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>( - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline) + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, objc.NSData, objc.NSString, ffi.Pointer>)>`. abstract final class ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - objc.NSData, - objc.NSString, - ffi.Pointer>)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - objc.NSData, - objc.NSString, - ffi.Pointer>)>(pointer, retain: retain, release: release); + ffi.Pointer? Function( + ffi.Pointer, + objc.NSData, + objc.NSString, + ffi.Pointer>, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + objc.NSData, + objc.NSString, + ffi.Pointer>, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -79342,18 +93018,41 @@ abstract final class ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, objc.NSData, objc.NSString, ffi.Pointer>)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer> arg3)>> ptr) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - objc.NSData, - objc.NSString, - ffi.Pointer>)>( - objc.newPointerBlock(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer? Function( + ffi.Pointer, + objc.NSData, + objc.NSString, + ffi.Pointer>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + objc.NSData, + objc.NSString, + ffi.Pointer>, + ) + >( + objc.newPointerBlock( + _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -79363,137 +93062,248 @@ abstract final class ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock? Function(ffi.Pointer, objc.NSData, objc.NSString, ffi.Pointer>)> - fromFunction(Dartinstancetype? Function(ffi.Pointer, objc.NSData, objc.NSString, ffi.Pointer>) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock? Function(ffi.Pointer, objc.NSData, objc.NSString, ffi.Pointer>)>( - objc.newClosureBlock( - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable, - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3) => - fn(arg0, objc.NSData.castFromPointer(arg1, retain: true, release: true), objc.NSString.castFromPointer(arg2, retain: true, release: true), arg3)?.ref.retainAndAutorelease() ?? ffi.nullptr, - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + objc.NSData, + objc.NSString, + ffi.Pointer>, + ) + > + fromFunction( + Dartinstancetype? Function( + ffi.Pointer, + objc.NSData, + objc.NSString, + ffi.Pointer>, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + objc.NSData, + objc.NSString, + ffi.Pointer>, + ) + >( + objc.newClosureBlock( + _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) => + fn( + arg0, + objc.NSData.castFromPointer(arg1, retain: true, release: true), + objc.NSString.castFromPointer( + arg2, + retain: true, + release: true, + ), + arg3, + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, objc.NSData, objc.NSString, ffi.Pointer>)>`. extension ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_CallExtension - on objc.ObjCBlock< - ffi.Pointer? Function( + on + objc.ObjCBlock< + ffi.Pointer? Function( ffi.Pointer, objc.NSData, objc.NSString, - ffi.Pointer>)> { - Dartinstancetype? call(ffi.Pointer arg0, objc.NSData arg1, objc.NSString arg2, ffi.Pointer> arg3) => ref - .pointer.ref.invoke + ffi.Pointer>, + ) + > { + Dartinstancetype? call( + ffi.Pointer arg0, + objc.NSData arg1, + objc.NSString arg2, + ffi.Pointer> arg3, + ) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3)>>() - .asFunction< + ffi.NativeFunction< instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>() - (ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3) + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3) .address == 0 ? null : objc.ObjCObjectBase( - ref.pointer.ref.invoke.cast block, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer> arg3)>>().asFunction, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3), + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3), retain: true, - release: true); + release: true, + ); } -late final _sel_writableTypeIdentifiersForItemProvider = - objc.registerName("writableTypeIdentifiersForItemProvider"); +late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( + "writableTypeIdentifiersForItemProvider", +); late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = objc.registerName( - "itemProviderVisibilityForRepresentationWithTypeIdentifier:"); + "itemProviderVisibilityForRepresentationWithTypeIdentifier:", + ); final _objc_msgSend_16fy0up = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +int +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - int Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); -int _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + int Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable = +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable = ffi.Pointer.fromFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline, - 0) + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline, + 0, + ) .cast(); -int _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as int Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); +int +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as int Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); ffi.Pointer - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable = +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable = ffi.Pointer.fromFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline, - 0) + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline, + 0, + ) .cast(); /// Construction methods for `objc.ObjCBlock, objc.NSString)>`. abstract final class ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - NSInteger Function(ffi.Pointer, objc.NSString)> castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => + NSInteger Function(ffi.Pointer, objc.NSString) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, objc.NSString)>( - pointer, - retain: retain, - release: release); + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock, objc.NSString)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock, objc.NSString)>( - objc.newPointerBlock(_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + NSInteger Function(ffi.Pointer, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, objc.NSString)>( + objc.newPointerBlock( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -79503,100 +93313,145 @@ abstract final class ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NS /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, objc.NSString)> fromFunction( - objc.NSItemProviderRepresentationVisibility Function( - ffi.Pointer, objc.NSString) - fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, objc.NSString)>( - objc.newClosureBlock( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, objc.NSString.castFromPointer(arg1, retain: true, release: true)).value, - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + NSInteger Function(ffi.Pointer, objc.NSString) + > + fromFunction( + objc.NSItemProviderRepresentationVisibility Function( + ffi.Pointer, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, objc.NSString)>( + objc.newClosureBlock( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + objc.NSString.castFromPointer(arg1, retain: true, release: true), + ).value, + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock, objc.NSString)>`. extension ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_CallExtension - on objc - .ObjCBlock, objc.NSString)> { + on + objc.ObjCBlock< + NSInteger Function(ffi.Pointer, objc.NSString) + > { objc.NSItemProviderRepresentationVisibility call( - ffi.Pointer arg0, objc.NSString arg1) => - objc.NSItemProviderRepresentationVisibility.fromValue(ref - .pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction, ffi.Pointer, ffi.Pointer)>()( - ref.pointer, arg0, arg1.ref.pointer)); + ffi.Pointer arg0, + objc.NSString arg1, + ) => objc.NSItemProviderRepresentationVisibility.fromValue( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer), + ); } void _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as void Function(ffi.Pointer, - ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSData_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSData_NSError_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSData_NSError_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSData_NSError_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { try { - (objc.getBlockClosure(block) as void Function(ffi.Pointer, - ffi.Pointer))(arg0, arg1); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -79605,61 +93460,80 @@ void _ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_NSError_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSData_NSError_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_NSError_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSData_NSError_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSData_NSError { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock( - pointer, - retain: retain, - release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_NSData_NSError_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSData_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -79669,20 +93543,29 @@ abstract final class ObjCBlock_ffiVoid_NSData_NSError { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSData?, objc.NSError?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSError_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0.address == 0 - ? null - : objc.NSData.castFromPointer(arg0, retain: true, release: true), - arg1.address == 0 ? null : objc.NSError.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock + fromFunction( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSData_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + arg0.address == 0 + ? null + : objc.NSData.castFromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSError.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -79694,29 +93577,32 @@ abstract final class ObjCBlock_ffiVoid_NSData_NSError { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock - listener(void Function(objc.NSData?, objc.NSError?) fn, - {bool keepIsolateAlive = true}) { + listener( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSError_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : objc.NSData.castFromPointer(arg0, - retain: false, release: true), - arg1.address == 0 - ? null - : objc.NSError.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSData_NSError_listenerCallable.nativeFunction.cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + arg0.address == 0 + ? null + : objc.NSData.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : objc.NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_pfv6jd(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -79730,133 +93616,168 @@ abstract final class ObjCBlock_ffiVoid_NSData_NSError { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock - blocking(void Function(objc.NSData?, objc.NSError?) fn, - {bool keepIsolateAlive = true}) { + blocking( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSError_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : objc.NSData.castFromPointer(arg0, - retain: false, release: true), - arg1.address == 0 - ? null - : objc.NSError.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSData_NSError_blockingCallable.nativeFunction.cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + arg0.address == 0 + ? null + : objc.NSData.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : objc.NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : objc.NSData.castFromPointer(arg0, - retain: false, release: true), - arg1.address == 0 - ? null - : objc.NSError.castFromPointer(arg1, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSData_NSError_blockingListenerCallable.nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + arg0.address == 0 + ? null + : objc.NSData.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : objc.NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_pfv6jd( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_NSData_NSError_CallExtension on objc.ObjCBlock { - void call(objc.NSData? arg0, objc.NSError? arg1) => ref.pointer.ref.invoke + void call(objc.NSData? arg0, objc.NSError? arg1) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, arg1?.ref.pointer ?? ffi.nullptr); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1?.ref.pointer ?? ffi.nullptr, + ); } late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = objc.registerName( - "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:"); + "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", + ); ffi.Pointer - _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2); +_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrCallable = +_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrTrampoline) - .cast(); -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as ffi.Pointer Function( + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureCallable = +_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock, objc.NSString, objc.ObjCBlock)>`. abstract final class ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - objc.NSProgress? Function(ffi.Pointer, objc.NSString, - objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, {bool retain = false, bool release = false}) => - objc.ObjCBlock< - objc.NSProgress? Function( - ffi.Pointer, - objc.NSString, - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + objc.NSProgress? Function( + ffi.Pointer, + objc.NSString, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSProgress? Function( + ffi.Pointer, + objc.NSString, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -79864,17 +93785,38 @@ abstract final class ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - objc.NSProgress? Function(ffi.Pointer, objc.NSString, - objc.ObjCBlock)> - fromFunctionPointer(ffi.Pointer Function(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>> ptr) => - objc.ObjCBlock< - objc.NSProgress? Function( - ffi.Pointer, - objc.NSString, - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.NSProgress? Function( + ffi.Pointer, + objc.NSString, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSProgress? Function( + ffi.Pointer, + objc.NSString, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -79884,47 +93826,117 @@ abstract final class ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock, objc.NSString, objc.ObjCBlock)> - fromFunction(objc.NSProgress? Function(ffi.Pointer, objc.NSString, objc.ObjCBlock) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, objc.NSString, objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureCallable, - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - fn(arg0, objc.NSString.castFromPointer(arg1, retain: true, release: true), ObjCBlock_ffiVoid_NSData_NSError.castFromPointer(arg2, retain: true, release: true))?.ref.retainAndAutorelease() ?? ffi.nullptr, - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + objc.NSProgress? Function( + ffi.Pointer, + objc.NSString, + objc.ObjCBlock, + ) + > + fromFunction( + objc.NSProgress? Function( + ffi.Pointer, + objc.NSString, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSProgress? Function( + ffi.Pointer, + objc.NSString, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + fn( + arg0, + objc.NSString.castFromPointer( + arg1, + retain: true, + release: true, + ), + ObjCBlock_ffiVoid_NSData_NSError.castFromPointer( + arg2, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock, objc.NSString, objc.ObjCBlock)>`. extension ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_CallExtension - on objc.ObjCBlock< - objc.NSProgress? Function(ffi.Pointer, objc.NSString, - objc.ObjCBlock)> { - objc.NSProgress? call(ffi.Pointer arg0, objc.NSString arg1, objc.ObjCBlock arg2) => + on + objc.ObjCBlock< + objc.NSProgress? Function( + ffi.Pointer, + objc.NSString, + objc.ObjCBlock, + ) + > { + objc.NSProgress? call( + ffi.Pointer arg0, + objc.NSString arg1, + objc.ObjCBlock arg2, + ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>() - (ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer) - .address == - 0 - ? null - : objc.NSProgress.castFromPointer(ref.pointer.ref.invoke.cast Function(ffi.Pointer block, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>>().asFunction Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer), retain: true, release: true); + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer) + .address == + 0 + ? null + : objc.NSProgress.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer), + retain: true, + release: true, + ); } /// NSItemProvider @@ -79932,28 +93944,35 @@ extension NSItemProvider on objc.NSString { /// readableTypeIdentifiersForItemProvider static objc.NSArray getReadableTypeIdentifiersForItemProvider() { objc.checkOsVersionInternal( - 'NSString.readableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSString.readableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_151sglz( - _class_NSString, _sel_readableTypeIdentifiersForItemProvider); + _class_NSString, + _sel_readableTypeIdentifiersForItemProvider, + ); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// objectWithItemProviderData:typeIdentifier:error: - static objc.NSString? objectWithItemProviderData(objc.NSData data, - {required objc.NSString typeIdentifier, - required ffi.Pointer> error}) { + static objc.NSString? objectWithItemProviderData( + objc.NSData data, { + required objc.NSString typeIdentifier, + required ffi.Pointer> error, + }) { objc.checkOsVersionInternal( - 'NSString.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSString.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_1pnyuds( - _class_NSString, - _sel_objectWithItemProviderData_typeIdentifier_error_, - data.ref.pointer, - typeIdentifier.ref.pointer, - error); + _class_NSString, + _sel_objectWithItemProviderData_typeIdentifier_error_, + data.ref.pointer, + typeIdentifier.ref.pointer, + error, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); @@ -79962,83 +93981,111 @@ extension NSItemProvider on objc.NSString { /// writableTypeIdentifiersForItemProvider static objc.NSArray getWritableTypeIdentifiersForItemProvider() { objc.checkOsVersionInternal( - 'NSString.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSString.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_151sglz( - _class_NSString, _sel_writableTypeIdentifiersForItemProvider); + _class_NSString, + _sel_writableTypeIdentifiersForItemProvider, + ); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// writableTypeIdentifiersForItemProvider objc.NSArray get writableTypeIdentifiersForItemProvider$1 { objc.checkOsVersionInternal( - 'NSString.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSString.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); if (!objc.respondsToSelector( - this.ref.pointer, _sel_writableTypeIdentifiersForItemProvider)) { + this.ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + )) { throw objc.UnimplementedOptionalMethodException( - 'NSString', 'writableTypeIdentifiersForItemProvider'); + 'NSString', + 'writableTypeIdentifiersForItemProvider', + ); } final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_writableTypeIdentifiersForItemProvider); + this.ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + ); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// itemProviderVisibilityForRepresentationWithTypeIdentifier: static objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier( - objc.NSString typeIdentifier) { + itemProviderVisibilityForRepresentationWithTypeIdentifier( + objc.NSString typeIdentifier, + ) { objc.checkOsVersionInternal( - 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); - if (!objc.respondsToSelector(_class_NSString, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_)) { - throw objc.UnimplementedOptionalMethodException('NSString', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:'); + 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _class_NSString, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSString', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); } final _ret = _objc_msgSend_16fy0up( - _class_NSString, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - typeIdentifier.ref.pointer); + _class_NSString, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + typeIdentifier.ref.pointer, + ); return objc.NSItemProviderRepresentationVisibility.fromValue(_ret); } /// itemProviderVisibilityForRepresentationWithTypeIdentifier: objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier$1( - objc.NSString typeIdentifier) { + itemProviderVisibilityForRepresentationWithTypeIdentifier$1( + objc.NSString typeIdentifier, + ) { objc.checkOsVersionInternal( - 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); - if (!objc.respondsToSelector(this.ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_)) { - throw objc.UnimplementedOptionalMethodException('NSString', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:'); + 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + this.ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSString', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); } final _ret = _objc_msgSend_16fy0up( - this.ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - typeIdentifier.ref.pointer); + this.ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + typeIdentifier.ref.pointer, + ); return objc.NSItemProviderRepresentationVisibility.fromValue(_ret); } /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: - objc.NSProgress? loadDataWithTypeIdentifier(objc.NSString typeIdentifier, - {required objc.ObjCBlock - forItemProviderCompletionHandler}) { + objc.NSProgress? loadDataWithTypeIdentifier( + objc.NSString typeIdentifier, { + required objc.ObjCBlock + forItemProviderCompletionHandler, + }) { objc.checkOsVersionInternal( - 'NSString.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSString.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - typeIdentifier.ref.pointer, - forItemProviderCompletionHandler.ref.pointer); + this.ref.pointer, + _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + typeIdentifier.ref.pointer, + forItemProviderCompletionHandler.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSProgress.castFromPointer(_ret, retain: true, release: true); @@ -80046,75 +94093,102 @@ extension NSItemProvider on objc.NSString { } late final _class_NSMutableString = objc.getClass("NSMutableString"); -late final _sel_insertString_atIndex_ = - objc.registerName("insertString:atIndex:"); +late final _sel_insertString_atIndex_ = objc.registerName( + "insertString:atIndex:", +); final _objc_msgSend_djsa9o = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); -late final _sel_deleteCharactersInRange_ = - objc.registerName("deleteCharactersInRange:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_deleteCharactersInRange_ = objc.registerName( + "deleteCharactersInRange:", +); final _objc_msgSend_1e3pm0z = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, objc.NSRange)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, objc.NSRange)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + >(); late final _sel_appendString_ = objc.registerName("appendString:"); late final _sel_appendFormat_ = objc.registerName("appendFormat:"); late final _sel_setString_ = objc.registerName("setString:"); -late final _sel_replaceOccurrencesOfString_withString_options_range_ = - objc.registerName("replaceOccurrencesOfString:withString:options:range:"); +late final _sel_replaceOccurrencesOfString_withString_options_range_ = objc + .registerName("replaceOccurrencesOfString:withString:options:range:"); final _objc_msgSend_1upeo1d = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange)>(); -late final _sel_applyTransform_reverse_range_updatedRange_ = - objc.registerName("applyTransform:reverse:range:updatedRange:"); + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ) + >(); +late final _sel_applyTransform_reverse_range_updatedRange_ = objc.registerName( + "applyTransform:reverse:range:updatedRange:", +); final _objc_msgSend_zy00wz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - objc.NSRange, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + objc.NSRange, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - objc.NSRange, - ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + objc.NSRange, + ffi.Pointer, + ) + >(); late final _sel_initWithCapacity_ = objc.registerName("initWithCapacity:"); late final _sel_stringWithCapacity_ = objc.registerName("stringWithCapacity:"); @@ -80122,86 +94196,122 @@ late final _sel_stringWithCapacity_ = objc.registerName("stringWithCapacity:"); extension NSMutableStringExtensionMethods on objc.NSMutableString { /// insertString:atIndex: void insertString(objc.NSString aString, {required DartNSUInteger atIndex}) { - _objc_msgSend_djsa9o(this.ref.pointer, _sel_insertString_atIndex_, - aString.ref.pointer, atIndex); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_insertString_atIndex_, + aString.ref.pointer, + atIndex, + ); } /// deleteCharactersInRange: void deleteCharactersInRange(NSRange range) { _objc_msgSend_1e3pm0z( - this.ref.pointer, _sel_deleteCharactersInRange_, range); + this.ref.pointer, + _sel_deleteCharactersInRange_, + range, + ); } /// appendString: void appendString(objc.NSString aString) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_appendString_, aString.ref.pointer); + this.ref.pointer, + _sel_appendString_, + aString.ref.pointer, + ); } /// appendFormat: void appendFormat(objc.NSString format) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_appendFormat_, format.ref.pointer); + this.ref.pointer, + _sel_appendFormat_, + format.ref.pointer, + ); } /// setString: void setString(objc.NSString aString) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_setString_, aString.ref.pointer); + this.ref.pointer, + _sel_setString_, + aString.ref.pointer, + ); } /// replaceOccurrencesOfString:withString:options:range: - DartNSUInteger replaceOccurrencesOfString(objc.NSString target, - {required objc.NSString withString, - required objc.NSStringCompareOptions options, - required NSRange range}) { + DartNSUInteger replaceOccurrencesOfString( + objc.NSString target, { + required objc.NSString withString, + required objc.NSStringCompareOptions options, + required NSRange range, + }) { return _objc_msgSend_1upeo1d( - this.ref.pointer, - _sel_replaceOccurrencesOfString_withString_options_range_, - target.ref.pointer, - withString.ref.pointer, - options.value, - range); + this.ref.pointer, + _sel_replaceOccurrencesOfString_withString_options_range_, + target.ref.pointer, + withString.ref.pointer, + options.value, + range, + ); } /// applyTransform:reverse:range:updatedRange: - bool applyTransform(DartNSStringTransform transform, - {required bool reverse, - required NSRange range, - required NSRangePointer updatedRange}) { + bool applyTransform( + DartNSStringTransform transform, { + required bool reverse, + required NSRange range, + required NSRangePointer updatedRange, + }) { objc.checkOsVersionInternal( - 'NSMutableString.applyTransform:reverse:range:updatedRange:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0))); + 'NSMutableString.applyTransform:reverse:range:updatedRange:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); return _objc_msgSend_zy00wz( - this.ref.pointer, - _sel_applyTransform_reverse_range_updatedRange_, - transform.ref.pointer, - reverse, - range, - updatedRange); + this.ref.pointer, + _sel_applyTransform_reverse_range_updatedRange_, + transform.ref.pointer, + reverse, + range, + updatedRange, + ); } /// initWithCapacity: objc.NSMutableString initWithCapacity(DartNSUInteger capacity) { final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), _sel_initWithCapacity_, capacity); - return objc.NSMutableString.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + capacity, + ); + return objc.NSMutableString.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// stringWithCapacity: static objc.NSMutableString stringWithCapacity(DartNSUInteger capacity) { final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableString, _sel_stringWithCapacity_, capacity); - return objc.NSMutableString.castFromPointer(_ret, - retain: true, release: true); + _class_NSMutableString, + _sel_stringWithCapacity_, + capacity, + ); + return objc.NSMutableString.castFromPointer( + _ret, + retain: true, + release: true, + ); } } late final _sel_propertyList = objc.registerName("propertyList"); -late final _sel_propertyListFromStringsFileFormat = - objc.registerName("propertyListFromStringsFileFormat"); +late final _sel_propertyListFromStringsFileFormat = objc.registerName( + "propertyListFromStringsFileFormat", +); /// NSExtendedStringPropertyListParsing extension NSExtendedStringPropertyListParsing on objc.NSString { @@ -80214,7 +94324,9 @@ extension NSExtendedStringPropertyListParsing on objc.NSString { /// propertyListFromStringsFileFormat objc.NSDictionary? propertyListFromStringsFileFormat() { final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_propertyListFromStringsFileFormat); + this.ref.pointer, + _sel_propertyListFromStringsFileFormat, + ); return _ret.address == 0 ? null : objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); @@ -80224,194 +94336,304 @@ extension NSExtendedStringPropertyListParsing on objc.NSString { late final _sel_cString = objc.registerName("cString"); final _objc_msgSend_1fuqfwb = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_lossyCString = objc.registerName("lossyCString"); late final _sel_cStringLength = objc.registerName("cStringLength"); late final _sel_getCString_ = objc.registerName("getCString:"); final _objc_msgSend_1r7ue5f = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); -late final _sel_getCString_maxLength_ = - objc.registerName("getCString:maxLength:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_getCString_maxLength_ = objc.registerName( + "getCString:maxLength:", +); final _objc_msgSend_1h3mito = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); -late final _sel_getCString_maxLength_range_remainingRange_ = - objc.registerName("getCString:maxLength:range:remainingRange:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_getCString_maxLength_range_remainingRange_ = objc.registerName( + "getCString:maxLength:range:remainingRange:", +); final _objc_msgSend_3gpdva = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - objc.NSRange, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + objc.NSRange, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ffi.Pointer)>(); -late final _sel_stringWithContentsOfFile_ = - objc.registerName("stringWithContentsOfFile:"); -late final _sel_stringWithContentsOfURL_ = - objc.registerName("stringWithContentsOfURL:"); -late final _sel_initWithCStringNoCopy_length_freeWhenDone_ = - objc.registerName("initWithCStringNoCopy:length:freeWhenDone:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ffi.Pointer, + ) + >(); +late final _sel_stringWithContentsOfFile_ = objc.registerName( + "stringWithContentsOfFile:", +); +late final _sel_stringWithContentsOfURL_ = objc.registerName( + "stringWithContentsOfURL:", +); +late final _sel_initWithCStringNoCopy_length_freeWhenDone_ = objc.registerName( + "initWithCStringNoCopy:length:freeWhenDone:", +); final _objc_msgSend_1ojrli4 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - bool)>(); -late final _sel_initWithCString_length_ = - objc.registerName("initWithCString:length:"); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + bool, + ) + >(); +late final _sel_initWithCString_length_ = objc.registerName( + "initWithCString:length:", +); final _objc_msgSend_erqryg = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_initWithCString_ = objc.registerName("initWithCString:"); final _objc_msgSend_56zxyn = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); -late final _sel_stringWithCString_length_ = - objc.registerName("stringWithCString:length:"); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_stringWithCString_length_ = objc.registerName( + "stringWithCString:length:", +); late final _sel_stringWithCString_ = objc.registerName("stringWithCString:"); late final _sel_getCharacters_ = objc.registerName("getCharacters:"); final _objc_msgSend_g3kdhc = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// NSStringDeprecated extension NSStringDeprecated on objc.NSString { /// cString ffi.Pointer cString() { - objc.checkOsVersionInternal('NSString.cString', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSString.cString', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_cString); } /// lossyCString ffi.Pointer lossyCString() { - objc.checkOsVersionInternal('NSString.lossyCString', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSString.lossyCString', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_lossyCString); } /// cStringLength DartNSUInteger cStringLength() { - objc.checkOsVersionInternal('NSString.cStringLength', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSString.cStringLength', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_cStringLength); } /// getCString: void getCString(ffi.Pointer bytes) { - objc.checkOsVersionInternal('NSString.getCString:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSString.getCString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_1r7ue5f(this.ref.pointer, _sel_getCString_, bytes); } /// getCString:maxLength: - void getCString$1(ffi.Pointer bytes, - {required DartNSUInteger maxLength}) { - objc.checkOsVersionInternal('NSString.getCString:maxLength:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + void getCString$1( + ffi.Pointer bytes, { + required DartNSUInteger maxLength, + }) { + objc.checkOsVersionInternal( + 'NSString.getCString:maxLength:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_1h3mito( - this.ref.pointer, _sel_getCString_maxLength_, bytes, maxLength); + this.ref.pointer, + _sel_getCString_maxLength_, + bytes, + maxLength, + ); } /// getCString:maxLength:range:remainingRange: - void getCString$2(ffi.Pointer bytes, - {required DartNSUInteger maxLength, - required NSRange range, - required NSRangePointer remainingRange}) { + void getCString$2( + ffi.Pointer bytes, { + required DartNSUInteger maxLength, + required NSRange range, + required NSRangePointer remainingRange, + }) { objc.checkOsVersionInternal( - 'NSString.getCString:maxLength:range:remainingRange:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0))); + 'NSString.getCString:maxLength:range:remainingRange:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_3gpdva( - this.ref.pointer, - _sel_getCString_maxLength_range_remainingRange_, - bytes, - maxLength, - range, - remainingRange); + this.ref.pointer, + _sel_getCString_maxLength_range_remainingRange_, + bytes, + maxLength, + range, + remainingRange, + ); } /// writeToFile:atomically: bool writeToFile(objc.NSString path, {required bool atomically}) { - objc.checkOsVersionInternal('NSString.writeToFile:atomically:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToFile_atomically_, - path.ref.pointer, atomically); + objc.checkOsVersionInternal( + 'NSString.writeToFile:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + this.ref.pointer, + _sel_writeToFile_atomically_, + path.ref.pointer, + atomically, + ); } /// writeToURL:atomically: bool writeToURL(objc.NSURL url, {required bool atomically}) { - objc.checkOsVersionInternal('NSString.writeToURL:atomically:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToURL_atomically_, - url.ref.pointer, atomically); + objc.checkOsVersionInternal( + 'NSString.writeToURL:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + this.ref.pointer, + _sel_writeToURL_atomically_, + url.ref.pointer, + atomically, + ); } /// initWithContentsOfFile: objc.ObjCObjectBase? initWithContentsOfFile(objc.NSString path) { - objc.checkOsVersionInternal('NSString.initWithContentsOfFile:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, path.ref.pointer); + objc.checkOsVersionInternal( + 'NSString.initWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: false, release: true); @@ -80419,10 +94641,16 @@ extension NSStringDeprecated on objc.NSString { /// initWithContentsOfURL: objc.ObjCObjectBase? initWithContentsOfURL(objc.NSURL url) { - objc.checkOsVersionInternal('NSString.initWithContentsOfURL:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, url.ref.pointer); + objc.checkOsVersionInternal( + 'NSString.initWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: false, release: true); @@ -80430,10 +94658,16 @@ extension NSStringDeprecated on objc.NSString { /// stringWithContentsOfFile: static objc.ObjCObjectBase? stringWithContentsOfFile(objc.NSString path) { - objc.checkOsVersionInternal('NSString.stringWithContentsOfFile:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSString.stringWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSString, _sel_stringWithContentsOfFile_, path.ref.pointer); + _class_NSString, + _sel_stringWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true); @@ -80441,40 +94675,60 @@ extension NSStringDeprecated on objc.NSString { /// stringWithContentsOfURL: static objc.ObjCObjectBase? stringWithContentsOfURL(objc.NSURL url) { - objc.checkOsVersionInternal('NSString.stringWithContentsOfURL:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSString.stringWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSString, _sel_stringWithContentsOfURL_, url.ref.pointer); + _class_NSString, + _sel_stringWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true); } /// initWithCStringNoCopy:length:freeWhenDone: - objc.ObjCObjectBase? initWithCStringNoCopy(ffi.Pointer bytes, - {required DartNSUInteger length, required bool freeWhenDone}) { + objc.ObjCObjectBase? initWithCStringNoCopy( + ffi.Pointer bytes, { + required DartNSUInteger length, + required bool freeWhenDone, + }) { objc.checkOsVersionInternal( - 'NSString.initWithCStringNoCopy:length:freeWhenDone:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0))); + 'NSString.initWithCStringNoCopy:length:freeWhenDone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_1ojrli4( - this.ref.retainAndReturnPointer(), - _sel_initWithCStringNoCopy_length_freeWhenDone_, - bytes, - length, - freeWhenDone); + this.ref.retainAndReturnPointer(), + _sel_initWithCStringNoCopy_length_freeWhenDone_, + bytes, + length, + freeWhenDone, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: false, release: true); } /// initWithCString:length: - objc.ObjCObjectBase? initWithCString(ffi.Pointer bytes, - {required DartNSUInteger length}) { - objc.checkOsVersionInternal('NSString.initWithCString:length:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = _objc_msgSend_erqryg(this.ref.retainAndReturnPointer(), - _sel_initWithCString_length_, bytes, length); + objc.ObjCObjectBase? initWithCString( + ffi.Pointer bytes, { + required DartNSUInteger length, + }) { + objc.checkOsVersionInternal( + 'NSString.initWithCString:length:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_erqryg( + this.ref.retainAndReturnPointer(), + _sel_initWithCString_length_, + bytes, + length, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: false, release: true); @@ -80482,22 +94736,37 @@ extension NSStringDeprecated on objc.NSString { /// initWithCString: objc.ObjCObjectBase? initWithCString$1(ffi.Pointer bytes) { - objc.checkOsVersionInternal('NSString.initWithCString:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSString.initWithCString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_56zxyn( - this.ref.retainAndReturnPointer(), _sel_initWithCString_, bytes); + this.ref.retainAndReturnPointer(), + _sel_initWithCString_, + bytes, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: false, release: true); } /// stringWithCString:length: - static objc.ObjCObjectBase? stringWithCString(ffi.Pointer bytes, - {required DartNSUInteger length}) { - objc.checkOsVersionInternal('NSString.stringWithCString:length:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + static objc.ObjCObjectBase? stringWithCString( + ffi.Pointer bytes, { + required DartNSUInteger length, + }) { + objc.checkOsVersionInternal( + 'NSString.stringWithCString:length:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_erqryg( - _class_NSString, _sel_stringWithCString_length_, bytes, length); + _class_NSString, + _sel_stringWithCString_length_, + bytes, + length, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true); @@ -80505,10 +94774,16 @@ extension NSStringDeprecated on objc.NSString { /// stringWithCString: static objc.ObjCObjectBase? stringWithCString$1(ffi.Pointer bytes) { - objc.checkOsVersionInternal('NSString.stringWithCString:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_56zxyn(_class_NSString, _sel_stringWithCString_, bytes); + objc.checkOsVersionInternal( + 'NSString.stringWithCString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_56zxyn( + _class_NSString, + _sel_stringWithCString_, + bytes, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true); @@ -80536,40 +94811,53 @@ typedef NSURLUbiquitousSharedItemPermissions = ffi.Pointer; typedef DartNSURLUbiquitousSharedItemPermissions = objc.NSString; typedef NSURLBookmarkFileCreationOptions = NSUInteger; late final _class_NSURL = objc.getClass("NSURL"); -late final _sel_getPromisedItemResourceValue_forKey_error_ = - objc.registerName("getPromisedItemResourceValue:forKey:error:"); +late final _sel_getPromisedItemResourceValue_forKey_error_ = objc.registerName( + "getPromisedItemResourceValue:forKey:error:", +); final _objc_msgSend_1j9bhml = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>)>(); -late final _sel_promisedItemResourceValuesForKeys_error_ = - objc.registerName("promisedItemResourceValuesForKeys:error:"); -late final _sel_checkPromisedItemIsReachableAndReturnError_ = - objc.registerName("checkPromisedItemIsReachableAndReturnError:"); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +late final _sel_promisedItemResourceValuesForKeys_error_ = objc.registerName( + "promisedItemResourceValuesForKeys:error:", +); +late final _sel_checkPromisedItemIsReachableAndReturnError_ = objc.registerName( + "checkPromisedItemIsReachableAndReturnError:", +); final _objc_msgSend_1dom33q = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); /// NSPromisedItems extension NSPromisedItems on objc.NSURL { @@ -80584,30 +94872,40 @@ extension NSPromisedItems on objc.NSURL { /// /// 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( - ffi.Pointer> value, - {required DartNSURLResourceKey forKey, - required ffi.Pointer> error}) { + ffi.Pointer> value, { + required DartNSURLResourceKey forKey, + required ffi.Pointer> error, + }) { objc.checkOsVersionInternal( - 'NSURL.getPromisedItemResourceValue:forKey:error:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); + 'NSURL.getPromisedItemResourceValue:forKey:error:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); return _objc_msgSend_1j9bhml( - this.ref.pointer, - _sel_getPromisedItemResourceValue_forKey_error_, - value, - forKey.ref.pointer, - error); + this.ref.pointer, + _sel_getPromisedItemResourceValue_forKey_error_, + value, + forKey.ref.pointer, + error, + ); } /// promisedItemResourceValuesForKeys:error: - objc.NSDictionary? promisedItemResourceValuesForKeys(objc.NSArray keys, - {required ffi.Pointer> error}) { + objc.NSDictionary? promisedItemResourceValuesForKeys( + objc.NSArray keys, { + required ffi.Pointer> error, + }) { objc.checkOsVersionInternal( - 'NSURL.promisedItemResourceValuesForKeys:error:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); - final _ret = _objc_msgSend_1lhpu4m(this.ref.pointer, - _sel_promisedItemResourceValuesForKeys_error_, keys.ref.pointer, error); + 'NSURL.promisedItemResourceValuesForKeys:error:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final _ret = _objc_msgSend_1lhpu4m( + this.ref.pointer, + _sel_promisedItemResourceValuesForKeys_error_, + keys.ref.pointer, + error, + ); return _ret.address == 0 ? null : objc.NSDictionary.castFromPointer(_ret, retain: true, release: true); @@ -80615,13 +94913,18 @@ extension NSPromisedItems on objc.NSURL { /// checkPromisedItemIsReachableAndReturnError: bool checkPromisedItemIsReachableAndReturnError( - ffi.Pointer> error) { + ffi.Pointer> error, + ) { objc.checkOsVersionInternal( - 'NSURL.checkPromisedItemIsReachableAndReturnError:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); - return _objc_msgSend_1dom33q(this.ref.pointer, - _sel_checkPromisedItemIsReachableAndReturnError_, error); + 'NSURL.checkPromisedItemIsReachableAndReturnError:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + return _objc_msgSend_1dom33q( + this.ref.pointer, + _sel_checkPromisedItemIsReachableAndReturnError_, + error, + ); } } @@ -80629,27 +94932,36 @@ extension NSPromisedItems on objc.NSURL { extension NSItemProvider$1 on objc.NSURL { /// readableTypeIdentifiersForItemProvider static objc.NSArray getReadableTypeIdentifiersForItemProvider() { - objc.checkOsVersionInternal('NSURL.readableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); + objc.checkOsVersionInternal( + 'NSURL.readableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_151sglz( - _class_NSURL, _sel_readableTypeIdentifiersForItemProvider); + _class_NSURL, + _sel_readableTypeIdentifiersForItemProvider, + ); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// objectWithItemProviderData:typeIdentifier:error: - static objc.NSURL? objectWithItemProviderData(objc.NSData data, - {required objc.NSString typeIdentifier, - required ffi.Pointer> error}) { + static objc.NSURL? objectWithItemProviderData( + objc.NSData data, { + required objc.NSString typeIdentifier, + required ffi.Pointer> error, + }) { objc.checkOsVersionInternal( - 'NSURL.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSURL.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_1pnyuds( - _class_NSURL, - _sel_objectWithItemProviderData_typeIdentifier_error_, - data.ref.pointer, - typeIdentifier.ref.pointer, - error); + _class_NSURL, + _sel_objectWithItemProviderData_typeIdentifier_error_, + data.ref.pointer, + typeIdentifier.ref.pointer, + error, + ); return _ret.address == 0 ? null : objc.NSURL.castFromPointer(_ret, retain: true, release: true); @@ -80657,80 +94969,112 @@ extension NSItemProvider$1 on objc.NSURL { /// writableTypeIdentifiersForItemProvider static objc.NSArray getWritableTypeIdentifiersForItemProvider() { - objc.checkOsVersionInternal('NSURL.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); + objc.checkOsVersionInternal( + 'NSURL.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_151sglz( - _class_NSURL, _sel_writableTypeIdentifiersForItemProvider); + _class_NSURL, + _sel_writableTypeIdentifiersForItemProvider, + ); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// writableTypeIdentifiersForItemProvider objc.NSArray get writableTypeIdentifiersForItemProvider$1 { - objc.checkOsVersionInternal('NSURL.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); + objc.checkOsVersionInternal( + 'NSURL.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); if (!objc.respondsToSelector( - this.ref.pointer, _sel_writableTypeIdentifiersForItemProvider)) { + this.ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + )) { throw objc.UnimplementedOptionalMethodException( - 'NSURL', 'writableTypeIdentifiersForItemProvider'); + 'NSURL', + 'writableTypeIdentifiersForItemProvider', + ); } final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_writableTypeIdentifiersForItemProvider); + this.ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + ); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// itemProviderVisibilityForRepresentationWithTypeIdentifier: static objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier( - objc.NSString typeIdentifier) { + itemProviderVisibilityForRepresentationWithTypeIdentifier( + objc.NSString typeIdentifier, + ) { objc.checkOsVersionInternal( - 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); - if (!objc.respondsToSelector(_class_NSURL, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_)) { - throw objc.UnimplementedOptionalMethodException('NSURL', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:'); + 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _class_NSURL, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); } final _ret = _objc_msgSend_16fy0up( - _class_NSURL, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - typeIdentifier.ref.pointer); + _class_NSURL, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + typeIdentifier.ref.pointer, + ); return objc.NSItemProviderRepresentationVisibility.fromValue(_ret); } /// itemProviderVisibilityForRepresentationWithTypeIdentifier: objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier$1( - objc.NSString typeIdentifier) { + itemProviderVisibilityForRepresentationWithTypeIdentifier$1( + objc.NSString typeIdentifier, + ) { objc.checkOsVersionInternal( - 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); - if (!objc.respondsToSelector(this.ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_)) { - throw objc.UnimplementedOptionalMethodException('NSURL', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:'); + 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + this.ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); } final _ret = _objc_msgSend_16fy0up( - this.ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - typeIdentifier.ref.pointer); + this.ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + typeIdentifier.ref.pointer, + ); return objc.NSItemProviderRepresentationVisibility.fromValue(_ret); } /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: - objc.NSProgress? loadDataWithTypeIdentifier(objc.NSString typeIdentifier, - {required objc.ObjCBlock - forItemProviderCompletionHandler}) { + objc.NSProgress? loadDataWithTypeIdentifier( + objc.NSString typeIdentifier, { + required objc.ObjCBlock + forItemProviderCompletionHandler, + }) { objc.checkOsVersionInternal( - 'NSURL.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSURL.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - typeIdentifier.ref.pointer, - forItemProviderCompletionHandler.ref.pointer); + this.ref.pointer, + _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + typeIdentifier.ref.pointer, + forItemProviderCompletionHandler.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSProgress.castFromPointer(_ret, retain: true, release: true); @@ -80738,104 +95082,163 @@ extension NSItemProvider$1 on objc.NSURL { } late final _class_NSCharacterSet = objc.getClass("NSCharacterSet"); -late final _sel_URLUserAllowedCharacterSet = - objc.registerName("URLUserAllowedCharacterSet"); -late final _sel_URLPasswordAllowedCharacterSet = - objc.registerName("URLPasswordAllowedCharacterSet"); -late final _sel_URLHostAllowedCharacterSet = - objc.registerName("URLHostAllowedCharacterSet"); -late final _sel_URLPathAllowedCharacterSet = - objc.registerName("URLPathAllowedCharacterSet"); -late final _sel_URLQueryAllowedCharacterSet = - objc.registerName("URLQueryAllowedCharacterSet"); -late final _sel_URLFragmentAllowedCharacterSet = - objc.registerName("URLFragmentAllowedCharacterSet"); +late final _sel_URLUserAllowedCharacterSet = objc.registerName( + "URLUserAllowedCharacterSet", +); +late final _sel_URLPasswordAllowedCharacterSet = objc.registerName( + "URLPasswordAllowedCharacterSet", +); +late final _sel_URLHostAllowedCharacterSet = objc.registerName( + "URLHostAllowedCharacterSet", +); +late final _sel_URLPathAllowedCharacterSet = objc.registerName( + "URLPathAllowedCharacterSet", +); +late final _sel_URLQueryAllowedCharacterSet = objc.registerName( + "URLQueryAllowedCharacterSet", +); +late final _sel_URLFragmentAllowedCharacterSet = objc.registerName( + "URLFragmentAllowedCharacterSet", +); /// NSURLUtilities extension NSURLUtilities on objc.NSCharacterSet { /// Returns a character set containing the characters allowed in a URL's user subcomponent. static objc.NSCharacterSet getURLUserAllowedCharacterSet() { - objc.checkOsVersionInternal('NSCharacterSet.URLUserAllowedCharacterSet', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSCharacterSet.URLUserAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_URLUserAllowedCharacterSet); - return objc.NSCharacterSet.castFromPointer(_ret, - retain: true, release: true); + _class_NSCharacterSet, + _sel_URLUserAllowedCharacterSet, + ); + return objc.NSCharacterSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Returns a character set containing the characters allowed in a URL's password subcomponent. static objc.NSCharacterSet getURLPasswordAllowedCharacterSet() { - objc.checkOsVersionInternal('NSCharacterSet.URLPasswordAllowedCharacterSet', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSCharacterSet.URLPasswordAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_URLPasswordAllowedCharacterSet); - return objc.NSCharacterSet.castFromPointer(_ret, - retain: true, release: true); + _class_NSCharacterSet, + _sel_URLPasswordAllowedCharacterSet, + ); + return objc.NSCharacterSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Returns a character set containing the characters allowed in a URL's host subcomponent. static objc.NSCharacterSet getURLHostAllowedCharacterSet() { - objc.checkOsVersionInternal('NSCharacterSet.URLHostAllowedCharacterSet', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSCharacterSet.URLHostAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_URLHostAllowedCharacterSet); - return objc.NSCharacterSet.castFromPointer(_ret, - retain: true, release: true); + _class_NSCharacterSet, + _sel_URLHostAllowedCharacterSet, + ); + return objc.NSCharacterSet.castFromPointer( + _ret, + 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 objc.NSCharacterSet getURLPathAllowedCharacterSet() { - objc.checkOsVersionInternal('NSCharacterSet.URLPathAllowedCharacterSet', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSCharacterSet.URLPathAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_URLPathAllowedCharacterSet); - return objc.NSCharacterSet.castFromPointer(_ret, - retain: true, release: true); + _class_NSCharacterSet, + _sel_URLPathAllowedCharacterSet, + ); + return objc.NSCharacterSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Returns a character set containing the characters allowed in a URL's query component. static objc.NSCharacterSet getURLQueryAllowedCharacterSet() { - objc.checkOsVersionInternal('NSCharacterSet.URLQueryAllowedCharacterSet', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSCharacterSet.URLQueryAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_URLQueryAllowedCharacterSet); - return objc.NSCharacterSet.castFromPointer(_ret, - retain: true, release: true); + _class_NSCharacterSet, + _sel_URLQueryAllowedCharacterSet, + ); + return objc.NSCharacterSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Returns a character set containing the characters allowed in a URL's fragment component. static objc.NSCharacterSet getURLFragmentAllowedCharacterSet() { - objc.checkOsVersionInternal('NSCharacterSet.URLFragmentAllowedCharacterSet', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSCharacterSet.URLFragmentAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_URLFragmentAllowedCharacterSet); - return objc.NSCharacterSet.castFromPointer(_ret, - retain: true, release: true); + _class_NSCharacterSet, + _sel_URLFragmentAllowedCharacterSet, + ); + return objc.NSCharacterSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } } -late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_ = - objc.registerName("stringByAddingPercentEncodingWithAllowedCharacters:"); -late final _sel_stringByRemovingPercentEncoding = - objc.registerName("stringByRemovingPercentEncoding"); -late final _sel_stringByAddingPercentEscapesUsingEncoding_ = - objc.registerName("stringByAddingPercentEscapesUsingEncoding:"); -late final _sel_stringByReplacingPercentEscapesUsingEncoding_ = - objc.registerName("stringByReplacingPercentEscapesUsingEncoding:"); +late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_ = objc + .registerName("stringByAddingPercentEncodingWithAllowedCharacters:"); +late final _sel_stringByRemovingPercentEncoding = objc.registerName( + "stringByRemovingPercentEncoding", +); +late final _sel_stringByAddingPercentEscapesUsingEncoding_ = objc.registerName( + "stringByAddingPercentEscapesUsingEncoding:", +); +late final _sel_stringByReplacingPercentEscapesUsingEncoding_ = objc + .registerName("stringByReplacingPercentEscapesUsingEncoding:"); /// NSURLUtilities extension NSURLUtilities$1 on objc.NSString { /// 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. objc.NSString? stringByAddingPercentEncodingWithAllowedCharacters( - objc.NSCharacterSet allowedCharacters) { + objc.NSCharacterSet allowedCharacters, + ) { objc.checkOsVersionInternal( - 'NSString.stringByAddingPercentEncodingWithAllowedCharacters:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSString.stringByAddingPercentEncodingWithAllowedCharacters:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_stringByAddingPercentEncodingWithAllowedCharacters_, - allowedCharacters.ref.pointer); + this.ref.pointer, + _sel_stringByAddingPercentEncodingWithAllowedCharacters_, + allowedCharacters.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); @@ -80843,10 +95246,15 @@ extension NSURLUtilities$1 on objc.NSString { /// Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters. objc.NSString? get stringByRemovingPercentEncoding { - objc.checkOsVersionInternal('NSString.stringByRemovingPercentEncoding', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSString.stringByRemovingPercentEncoding', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_stringByRemovingPercentEncoding); + this.ref.pointer, + _sel_stringByRemovingPercentEncoding, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); @@ -80855,11 +95263,15 @@ extension NSURLUtilities$1 on objc.NSString { /// stringByAddingPercentEscapesUsingEncoding: objc.NSString? stringByAddingPercentEscapesUsingEncoding(DartNSUInteger enc) { objc.checkOsVersionInternal( - 'NSString.stringByAddingPercentEscapesUsingEncoding:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0))); + 'NSString.stringByAddingPercentEscapesUsingEncoding:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, _sel_stringByAddingPercentEscapesUsingEncoding_, enc); + this.ref.pointer, + _sel_stringByAddingPercentEscapesUsingEncoding_, + enc, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); @@ -80867,49 +95279,69 @@ extension NSURLUtilities$1 on objc.NSString { /// stringByReplacingPercentEscapesUsingEncoding: objc.NSString? stringByReplacingPercentEscapesUsingEncoding( - DartNSUInteger enc) { + DartNSUInteger enc, + ) { objc.checkOsVersionInternal( - 'NSString.stringByReplacingPercentEscapesUsingEncoding:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0))); - final _ret = _objc_msgSend_14hpxwa(this.ref.pointer, - _sel_stringByReplacingPercentEscapesUsingEncoding_, enc); + 'NSString.stringByReplacingPercentEscapesUsingEncoding:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_stringByReplacingPercentEscapesUsingEncoding_, + enc, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); } } -late final _sel_fileURLWithPathComponents_ = - objc.registerName("fileURLWithPathComponents:"); +late final _sel_fileURLWithPathComponents_ = objc.registerName( + "fileURLWithPathComponents:", +); late final _sel_pathComponents = objc.registerName("pathComponents"); late final _sel_lastPathComponent = objc.registerName("lastPathComponent"); late final _sel_pathExtension = objc.registerName("pathExtension"); -late final _sel_URLByAppendingPathComponent_ = - objc.registerName("URLByAppendingPathComponent:"); -late final _sel_URLByAppendingPathComponent_isDirectory_ = - objc.registerName("URLByAppendingPathComponent:isDirectory:"); -late final _sel_URLByDeletingLastPathComponent = - objc.registerName("URLByDeletingLastPathComponent"); -late final _sel_URLByAppendingPathExtension_ = - objc.registerName("URLByAppendingPathExtension:"); -late final _sel_URLByDeletingPathExtension = - objc.registerName("URLByDeletingPathExtension"); -late final _sel_checkResourceIsReachableAndReturnError_ = - objc.registerName("checkResourceIsReachableAndReturnError:"); -late final _sel_URLByStandardizingPath = - objc.registerName("URLByStandardizingPath"); -late final _sel_URLByResolvingSymlinksInPath = - objc.registerName("URLByResolvingSymlinksInPath"); +late final _sel_URLByAppendingPathComponent_ = objc.registerName( + "URLByAppendingPathComponent:", +); +late final _sel_URLByAppendingPathComponent_isDirectory_ = objc.registerName( + "URLByAppendingPathComponent:isDirectory:", +); +late final _sel_URLByDeletingLastPathComponent = objc.registerName( + "URLByDeletingLastPathComponent", +); +late final _sel_URLByAppendingPathExtension_ = objc.registerName( + "URLByAppendingPathExtension:", +); +late final _sel_URLByDeletingPathExtension = objc.registerName( + "URLByDeletingPathExtension", +); +late final _sel_checkResourceIsReachableAndReturnError_ = objc.registerName( + "checkResourceIsReachableAndReturnError:", +); +late final _sel_URLByStandardizingPath = objc.registerName( + "URLByStandardizingPath", +); +late final _sel_URLByResolvingSymlinksInPath = objc.registerName( + "URLByResolvingSymlinksInPath", +); /// NSURLPathUtilities extension NSURLPathUtilities on objc.NSURL { /// The following methods work on the path portion of a URL in the same manner that the NSPathUtilities methods on NSString do. static objc.NSURL? fileURLWithPathComponents(objc.NSArray components) { - objc.checkOsVersionInternal('NSURL.fileURLWithPathComponents:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSURL.fileURLWithPathComponents:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSURL, _sel_fileURLWithPathComponents_, components.ref.pointer); + _class_NSURL, + _sel_fileURLWithPathComponents_, + components.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSURL.castFromPointer(_ret, retain: true, release: true); @@ -80917,8 +95349,11 @@ extension NSURLPathUtilities on objc.NSURL { /// pathComponents objc.NSArray? get pathComponents { - objc.checkOsVersionInternal('NSURL.pathComponents', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSURL.pathComponents', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_pathComponents); return _ret.address == 0 ? null @@ -80927,10 +95362,15 @@ extension NSURLPathUtilities on objc.NSURL { /// lastPathComponent objc.NSString? get lastPathComponent { - objc.checkOsVersionInternal('NSURL.lastPathComponent', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_lastPathComponent); + objc.checkOsVersionInternal( + 'NSURL.lastPathComponent', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_lastPathComponent, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); @@ -80938,8 +95378,11 @@ extension NSURLPathUtilities on objc.NSURL { /// pathExtension objc.NSString? get pathExtension { - objc.checkOsVersionInternal('NSURL.pathExtension', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSURL.pathExtension', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_pathExtension); return _ret.address == 0 ? null @@ -80948,27 +95391,37 @@ extension NSURLPathUtilities on objc.NSURL { /// URLByAppendingPathComponent: objc.NSURL? URLByAppendingPathComponent(objc.NSString pathComponent) { - objc.checkOsVersionInternal('NSURL.URLByAppendingPathComponent:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_URLByAppendingPathComponent_, pathComponent.ref.pointer); + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathComponent:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_URLByAppendingPathComponent_, + pathComponent.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSURL.castFromPointer(_ret, retain: true, release: true); } /// URLByAppendingPathComponent:isDirectory: - objc.NSURL? URLByAppendingPathComponent$1(objc.NSString pathComponent, - {required bool isDirectory}) { + objc.NSURL? URLByAppendingPathComponent$1( + objc.NSString pathComponent, { + required bool isDirectory, + }) { objc.checkOsVersionInternal( - 'NSURL.URLByAppendingPathComponent:isDirectory:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); + 'NSURL.URLByAppendingPathComponent:isDirectory:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_17amj0z( - this.ref.pointer, - _sel_URLByAppendingPathComponent_isDirectory_, - pathComponent.ref.pointer, - isDirectory); + this.ref.pointer, + _sel_URLByAppendingPathComponent_isDirectory_, + pathComponent.ref.pointer, + isDirectory, + ); return _ret.address == 0 ? null : objc.NSURL.castFromPointer(_ret, retain: true, release: true); @@ -80976,10 +95429,15 @@ extension NSURLPathUtilities on objc.NSURL { /// URLByDeletingLastPathComponent objc.NSURL? get URLByDeletingLastPathComponent { - objc.checkOsVersionInternal('NSURL.URLByDeletingLastPathComponent', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSURL.URLByDeletingLastPathComponent', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_URLByDeletingLastPathComponent); + this.ref.pointer, + _sel_URLByDeletingLastPathComponent, + ); return _ret.address == 0 ? null : objc.NSURL.castFromPointer(_ret, retain: true, release: true); @@ -80987,10 +95445,16 @@ extension NSURLPathUtilities on objc.NSURL { /// URLByAppendingPathExtension: objc.NSURL? URLByAppendingPathExtension(objc.NSString pathExtension$1) { - objc.checkOsVersionInternal('NSURL.URLByAppendingPathExtension:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_URLByAppendingPathExtension_, pathExtension$1.ref.pointer); + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathExtension:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_URLByAppendingPathExtension_, + pathExtension$1.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSURL.castFromPointer(_ret, retain: true, release: true); @@ -80998,10 +95462,15 @@ extension NSURLPathUtilities on objc.NSURL { /// URLByDeletingPathExtension objc.NSURL? get URLByDeletingPathExtension { - objc.checkOsVersionInternal('NSURL.URLByDeletingPathExtension', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSURL.URLByDeletingPathExtension', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_URLByDeletingPathExtension); + this.ref.pointer, + _sel_URLByDeletingPathExtension, + ); return _ret.address == 0 ? null : objc.NSURL.castFromPointer(_ret, retain: true, release: true); @@ -81009,19 +95478,31 @@ extension NSURLPathUtilities on objc.NSURL { /// 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) { - objc.checkOsVersionInternal('NSURL.checkResourceIsReachableAndReturnError:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSURL.checkResourceIsReachableAndReturnError:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); return _objc_msgSend_1dom33q( - this.ref.pointer, _sel_checkResourceIsReachableAndReturnError_, error); + this.ref.pointer, + _sel_checkResourceIsReachableAndReturnError_, + error, + ); } /// URLByStandardizingPath objc.NSURL? get URLByStandardizingPath { - objc.checkOsVersionInternal('NSURL.URLByStandardizingPath', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_URLByStandardizingPath); + objc.checkOsVersionInternal( + 'NSURL.URLByStandardizingPath', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_URLByStandardizingPath, + ); return _ret.address == 0 ? null : objc.NSURL.castFromPointer(_ret, retain: true, release: true); @@ -81029,135 +95510,199 @@ extension NSURLPathUtilities on objc.NSURL { /// URLByResolvingSymlinksInPath objc.NSURL? get URLByResolvingSymlinksInPath { - objc.checkOsVersionInternal('NSURL.URLByResolvingSymlinksInPath', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSURL.URLByResolvingSymlinksInPath', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_URLByResolvingSymlinksInPath); + this.ref.pointer, + _sel_URLByResolvingSymlinksInPath, + ); return _ret.address == 0 ? null : objc.NSURL.castFromPointer(_ret, retain: true, release: true); } } -late final _sel_URL_resourceDataDidBecomeAvailable_ = - objc.registerName("URL:resourceDataDidBecomeAvailable:"); -late final _sel_URLResourceDidFinishLoading_ = - objc.registerName("URLResourceDidFinishLoading:"); -late final _sel_URLResourceDidCancelLoading_ = - objc.registerName("URLResourceDidCancelLoading:"); -late final _sel_URL_resourceDidFailLoadingWithReason_ = - objc.registerName("URL:resourceDidFailLoadingWithReason:"); +late final _sel_URL_resourceDataDidBecomeAvailable_ = objc.registerName( + "URL:resourceDataDidBecomeAvailable:", +); +late final _sel_URLResourceDidFinishLoading_ = objc.registerName( + "URLResourceDidFinishLoading:", +); +late final _sel_URLResourceDidCancelLoading_ = objc.registerName( + "URLResourceDidCancelLoading:", +); +late final _sel_URL_resourceDidFailLoadingWithReason_ = objc.registerName( + "URL:resourceDidFailLoadingWithReason:", +); /// NSURLClient extension NSURLClient on objc.NSObject { /// URL:resourceDataDidBecomeAvailable: - void URL(objc.NSURL sender, - {required objc.NSData resourceDataDidBecomeAvailable}) { - objc.checkOsVersionInternal('NSObject.URL:resourceDataDidBecomeAvailable:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + void URL( + objc.NSURL sender, { + required objc.NSData resourceDataDidBecomeAvailable, + }) { + objc.checkOsVersionInternal( + 'NSObject.URL:resourceDataDidBecomeAvailable:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_URL_resourceDataDidBecomeAvailable_, - sender.ref.pointer, - resourceDataDidBecomeAvailable.ref.pointer); + this.ref.pointer, + _sel_URL_resourceDataDidBecomeAvailable_, + sender.ref.pointer, + resourceDataDidBecomeAvailable.ref.pointer, + ); } /// URLResourceDidFinishLoading: void URLResourceDidFinishLoading(objc.NSURL sender) { - objc.checkOsVersionInternal('NSObject.URLResourceDidFinishLoading:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_URLResourceDidFinishLoading_, - sender.ref.pointer); + objc.checkOsVersionInternal( + 'NSObject.URLResourceDidFinishLoading:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_URLResourceDidFinishLoading_, + sender.ref.pointer, + ); } /// URLResourceDidCancelLoading: void URLResourceDidCancelLoading(objc.NSURL sender) { - objc.checkOsVersionInternal('NSObject.URLResourceDidCancelLoading:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_URLResourceDidCancelLoading_, - sender.ref.pointer); + objc.checkOsVersionInternal( + 'NSObject.URLResourceDidCancelLoading:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_URLResourceDidCancelLoading_, + sender.ref.pointer, + ); } /// URL:resourceDidFailLoadingWithReason: - void URL$1(objc.NSURL sender, - {required objc.NSString resourceDidFailLoadingWithReason}) { + void URL$1( + objc.NSURL sender, { + required objc.NSString resourceDidFailLoadingWithReason, + }) { objc.checkOsVersionInternal( - 'NSObject.URL:resourceDidFailLoadingWithReason:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0))); + 'NSObject.URL:resourceDidFailLoadingWithReason:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_URL_resourceDidFailLoadingWithReason_, - sender.ref.pointer, - resourceDidFailLoadingWithReason.ref.pointer); + this.ref.pointer, + _sel_URL_resourceDidFailLoadingWithReason_, + sender.ref.pointer, + resourceDidFailLoadingWithReason.ref.pointer, + ); } } -late final _sel_resourceDataUsingCache_ = - objc.registerName("resourceDataUsingCache:"); +late final _sel_resourceDataUsingCache_ = objc.registerName( + "resourceDataUsingCache:", +); final _objc_msgSend_1t6aok9 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, bool)>(); -late final _sel_loadResourceDataNotifyingClient_usingCache_ = - objc.registerName("loadResourceDataNotifyingClient:usingCache:"); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +late final _sel_loadResourceDataNotifyingClient_usingCache_ = objc.registerName( + "loadResourceDataNotifyingClient:usingCache:", +); late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); late final _sel_setResourceData_ = objc.registerName("setResourceData:"); late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); final _objc_msgSend_1lsax7n = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); -late final _sel_URLHandleUsingCache_ = - objc.registerName("URLHandleUsingCache:"); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_URLHandleUsingCache_ = objc.registerName( + "URLHandleUsingCache:", +); /// NSURLLoading extension NSURLLoading on objc.NSURL { /// 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 objc.NSData? resourceDataUsingCache(bool shouldUseCache) { - objc.checkOsVersionInternal('NSURL.resourceDataUsingCache:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSURL.resourceDataUsingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_1t6aok9( - this.ref.pointer, _sel_resourceDataUsingCache_, shouldUseCache); + this.ref.pointer, + _sel_resourceDataUsingCache_, + shouldUseCache, + ); return _ret.address == 0 ? null : objc.NSData.castFromPointer(_ret, 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(objc.ObjCObjectBase client, - {required bool usingCache}) { + void loadResourceDataNotifyingClient( + objc.ObjCObjectBase client, { + required bool usingCache, + }) { objc.checkOsVersionInternal( - 'NSURL.loadResourceDataNotifyingClient:usingCache:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0))); + 'NSURL.loadResourceDataNotifyingClient:usingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_6p7ndb( - this.ref.pointer, - _sel_loadResourceDataNotifyingClient_usingCache_, - client.ref.pointer, - usingCache); + this.ref.pointer, + _sel_loadResourceDataNotifyingClient_usingCache_, + client.ref.pointer, + usingCache, + ); } /// propertyForKey: objc.ObjCObjectBase? propertyForKey(objc.NSString propertyKey) { - objc.checkOsVersionInternal('NSURL.propertyForKey:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSURL.propertyForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_propertyForKey_, propertyKey.ref.pointer); + this.ref.pointer, + _sel_propertyForKey_, + propertyKey.ref.pointer, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true); @@ -81165,27 +95710,48 @@ extension NSURLLoading on objc.NSURL { /// These attempt to write the given arguments for the resource specified by the URL; they return success or failure bool setResourceData(objc.NSData data) { - objc.checkOsVersionInternal('NSURL.setResourceData:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSURL.setResourceData:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_setResourceData_, data.ref.pointer); + this.ref.pointer, + _sel_setResourceData_, + data.ref.pointer, + ); } /// setProperty:forKey: - bool setProperty(objc.ObjCObjectBase property, - {required objc.NSString forKey}) { - objc.checkOsVersionInternal('NSURL.setProperty:forKey:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - return _objc_msgSend_1lsax7n(this.ref.pointer, _sel_setProperty_forKey_, - property.ref.pointer, forKey.ref.pointer); + bool setProperty( + objc.ObjCObjectBase property, { + required objc.NSString forKey, + }) { + objc.checkOsVersionInternal( + 'NSURL.setProperty:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1lsax7n( + this.ref.pointer, + _sel_setProperty_forKey_, + property.ref.pointer, + forKey.ref.pointer, + ); } /// 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 objc.NSURLHandle? URLHandleUsingCache(bool shouldUseCache) { - objc.checkOsVersionInternal('NSURL.URLHandleUsingCache:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSURL.URLHandleUsingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_1t6aok9( - this.ref.pointer, _sel_URLHandleUsingCache_, shouldUseCache); + this.ref.pointer, + _sel_URLHandleUsingCache_, + shouldUseCache, + ); return _ret.address == 0 ? null : objc.NSURLHandle.castFromPointer(_ret, retain: true, release: true); @@ -81197,18 +95763,22 @@ extension NSURLLoading on objc.NSURL { /// /// NSLocking interface class NSLocking extends objc.ObjCProtocolBase { - NSLocking._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSLocking._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSLocking] that points to the same underlying object as [other]. NSLocking.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSLocking] that wraps the given raw object pointer. - NSLocking.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSLocking.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } late final _class_NSCondition = objc.getClass("NSCondition"); @@ -81218,44 +95788,56 @@ late final _sel_signal = objc.registerName("signal"); late final _sel_broadcast = objc.registerName("broadcast"); late final _sel_lock = objc.registerName("lock"); void _ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_closureTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => + ffi.Pointer block, + ffi.Pointer arg0, +) => (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer arg0, +) { (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_ffiVoid_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); } catch (e) { @@ -81266,46 +95848,68 @@ void _ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// /// This block must be invoked by native code running on the same thread as /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. - static objc.ObjCBlock)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -81316,13 +95920,17 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> fromFunction( - void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock(_ObjCBlock_ffiVoid_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -81334,16 +95942,21 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> listener( - void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapListenerBlock_ovsamd(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock)>(wrapper, - retain: false, release: true); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -81357,23 +95970,31 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock)> blocking( - void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _NativeCupertinoHttp_wrapBlockingBlock_ovsamd( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock)>(wrapper, - retain: false, release: true); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); } } @@ -81382,73 +96003,105 @@ extension ObjCBlock_ffiVoid_ffiVoid_CallExtension on objc.ObjCBlock)> { void call(ffi.Pointer arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0); + void Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); } late final _sel_unlock = objc.registerName("unlock"); /// NSCondition class NSCondition extends objc.NSObject implements NSLocking { - NSCondition._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSCondition', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + NSCondition._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSCondition', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); } /// Constructs a [NSCondition] that points to the same underlying object as [other]. NSCondition.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSCondition] that wraps the given raw object pointer. - NSCondition.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSCondition.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSCondition]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSCondition); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSCondition, + ); } /// wait void wait$1() { - objc.checkOsVersionInternal('NSCondition.wait', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSCondition.wait', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_wait); } /// waitUntilDate: bool waitUntilDate(objc.NSDate limit) { - objc.checkOsVersionInternal('NSCondition.waitUntilDate:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSCondition.waitUntilDate:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_waitUntilDate_, limit.ref.pointer); + this.ref.pointer, + _sel_waitUntilDate_, + limit.ref.pointer, + ); } /// signal void signal() { - objc.checkOsVersionInternal('NSCondition.signal', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSCondition.signal', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_signal); } /// broadcast void broadcast() { - objc.checkOsVersionInternal('NSCondition.broadcast', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSCondition.broadcast', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_broadcast); } /// name objc.NSString? get name { - objc.checkOsVersionInternal('NSCondition.name', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSCondition.name', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_name); return _ret.address == 0 ? null @@ -81457,18 +96110,29 @@ class NSCondition extends objc.NSObject implements NSLocking { /// setName: set name(objc.NSString? value) { - objc.checkOsVersionInternal('NSCondition.setName:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSCondition.setName:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_setName_, value?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_setName_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// init NSCondition init() { - objc.checkOsVersionInternal('NSCondition.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSCondition.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSCondition.castFromPointer(_ret, retain: false, release: true); } @@ -81480,8 +96144,11 @@ class NSCondition extends objc.NSObject implements NSLocking { /// allocWithZone: static NSCondition allocWithZone(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSCondition, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSCondition, + _sel_allocWithZone_, + zone, + ); return NSCondition.castFromPointer(_ret, retain: false, release: true); } @@ -81530,11 +96197,13 @@ typedef DartNSProgressUserInfoKey$1 = objc.NSString; typedef NSProgressFileOperationKind$1 = ffi.Pointer; typedef DartNSProgressFileOperationKind$1 = objc.NSString; typedef NSProgressUnpublishingHandler$1 = ffi.Pointer; -typedef DartNSProgressUnpublishingHandler$1 - = objc.ObjCBlock; +typedef DartNSProgressUnpublishingHandler$1 = + objc.ObjCBlock; typedef NSProgressPublishingHandler$1 = ffi.Pointer; -typedef DartNSProgressPublishingHandler$1 = objc - .ObjCBlock? Function(objc.NSProgress)>; +typedef DartNSProgressPublishingHandler$1 = + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + >; /// WARNING: NSException is a stub. To generate bindings for this class, include /// NSException in your config's objc-interfaces list. @@ -81542,18 +96211,22 @@ typedef DartNSProgressPublishingHandler$1 = objc /// NSException class NSException extends objc.NSObject implements objc.NSCopying, objc.NSSecureCoding { - NSException._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSException._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSException] that points to the same underlying object as [other]. NSException.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSException] that wraps the given raw object pointer. - NSException.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSException.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); } late final _class_NSException = objc.getClass("NSException"); @@ -81563,13 +96236,19 @@ late final _sel_raise_format_ = objc.registerName("raise:format:"); extension NSExceptionRaisingConveniences on NSException { /// raise:format: static void raise(DartNSExceptionName name, {required objc.NSString format}) { - _objc_msgSend_pfv6jd(_class_NSException, _sel_raise_format_, - name.ref.pointer, format.ref.pointer); + _objc_msgSend_pfv6jd( + _class_NSException, + _sel_raise_format_, + name.ref.pointer, + format.ref.pointer, + ); } } -typedef NSUncaughtExceptionHandler = ffi - .NativeFunction exception)>; +typedef NSUncaughtExceptionHandler = + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer exception) + >; enum NSOperationQueuePriority { NSOperationQueuePriorityVeryLow(-8), @@ -81582,14 +96261,15 @@ enum NSOperationQueuePriority { const NSOperationQueuePriority(this.value); static NSOperationQueuePriority fromValue(int value) => switch (value) { - -8 => NSOperationQueuePriorityVeryLow, - -4 => NSOperationQueuePriorityLow, - 0 => NSOperationQueuePriorityNormal, - 4 => NSOperationQueuePriorityHigh, - 8 => NSOperationQueuePriorityVeryHigh, - _ => throw ArgumentError( - 'Unknown value for NSOperationQueuePriority: $value'), - }; + -8 => NSOperationQueuePriorityVeryLow, + -4 => NSOperationQueuePriorityLow, + 0 => NSOperationQueuePriorityNormal, + 4 => NSOperationQueuePriorityHigh, + 8 => NSOperationQueuePriorityVeryHigh, + _ => throw ArgumentError( + 'Unknown value for NSOperationQueuePriority: $value', + ), + }; } typedef NSErrorDomain = ffi.Pointer; @@ -81598,43 +96278,55 @@ typedef NSErrorUserInfoKey = ffi.Pointer; typedef DartNSErrorUserInfoKey = objc.NSString; late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_ = objc.registerName( - "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:"); + "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:", + ); final _objc_msgSend_10txwc9 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); -late final _sel_attemptRecoveryFromError_optionIndex_ = - objc.registerName("attemptRecoveryFromError:optionIndex:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_attemptRecoveryFromError_optionIndex_ = objc.registerName( + "attemptRecoveryFromError:optionIndex:", +); final _objc_msgSend_z7gxsm = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); /// NSErrorRecoveryAttempting extension NSErrorRecoveryAttempting on objc.NSObject { @@ -81643,37 +96335,45 @@ extension NSErrorRecoveryAttempting on objc.NSObject { /// - (void)didPresentErrorWithRecovery:(BOOL)didRecover contextInfo:(void *)contextInfo; /// /// The value passed for didRecover must be YES if error recovery was completely successful, NO otherwise. - void attemptRecoveryFromError(objc.NSError error, - {required DartNSUInteger optionIndex, - objc.ObjCObjectBase? delegate, - required ffi.Pointer didRecoverSelector, - required ffi.Pointer contextInfo}) { + void attemptRecoveryFromError( + objc.NSError error, { + required DartNSUInteger optionIndex, + objc.ObjCObjectBase? delegate, + required ffi.Pointer didRecoverSelector, + required ffi.Pointer contextInfo, + }) { objc.checkOsVersionInternal( - 'NSObject.attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0))); + 'NSObject.attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_10txwc9( - this.ref.pointer, - _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_, - error.ref.pointer, - optionIndex, - delegate?.ref.pointer ?? ffi.nullptr, - didRecoverSelector, - contextInfo); + this.ref.pointer, + _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_, + error.ref.pointer, + optionIndex, + delegate?.ref.pointer ?? 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$1(objc.NSError error, - {required DartNSUInteger optionIndex}) { + bool attemptRecoveryFromError$1( + objc.NSError error, { + required DartNSUInteger optionIndex, + }) { objc.checkOsVersionInternal( - 'NSObject.attemptRecoveryFromError:optionIndex:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0))); + 'NSObject.attemptRecoveryFromError:optionIndex:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); return _objc_msgSend_z7gxsm( - this.ref.pointer, - _sel_attemptRecoveryFromError_optionIndex_, - error.ref.pointer, - optionIndex); + this.ref.pointer, + _sel_attemptRecoveryFromError_optionIndex_, + error.ref.pointer, + optionIndex, + ); } } diff --git a/pkgs/cupertino_http/pubspec.yaml b/pkgs/cupertino_http/pubspec.yaml index 4106501abe..5179624b96 100644 --- a/pkgs/cupertino_http/pubspec.yaml +++ b/pkgs/cupertino_http/pubspec.yaml @@ -1,5 +1,5 @@ name: cupertino_http -version: 2.3.0 +version: 2.4.0-wip description: >- A macOS/iOS Flutter plugin that provides access to the Foundation URL Loading System. From a95040b048ed50e01333b6835e6c276a89587370 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Tue, 19 Aug 2025 14:23:59 -0700 Subject: [PATCH 11/14] Update cupertino.yml --- .github/workflows/cupertino.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cupertino.yml b/.github/workflows/cupertino.yml index 5ebbf8b90f..9bb1070e58 100644 --- a/.github/workflows/cupertino.yml +++ b/.github/workflows/cupertino.yml @@ -30,6 +30,7 @@ jobs: run: working-directory: pkgs/cupertino_http strategy: + fail-fast: false matrix: # Test on the minimum supported flutter version and the latest # version. From 03cae66dcf905cd37c143843ea3d34461faf750c Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Tue, 26 Aug 2025 09:30:18 -0700 Subject: [PATCH 12/14] Update cupertino.yml --- .github/workflows/cupertino.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cupertino.yml b/.github/workflows/cupertino.yml index 9bb1070e58..79d77e4bf5 100644 --- a/.github/workflows/cupertino.yml +++ b/.github/workflows/cupertino.yml @@ -30,11 +30,10 @@ jobs: run: working-directory: pkgs/cupertino_http strategy: - fail-fast: false matrix: # Test on the minimum supported flutter version and the latest # version. - flutter-version: ["3.32.0", "any"] + flutter-version: ["3.24.0", "any"] # It would be nice to test on older versions of macOS but macOS 13 is # the oldest supported by GitHub. os: [macos-13, macos-latest] From 5294ae280d8ff3200bd286694d3f706fd0aa5133 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Tue, 26 Aug 2025 09:31:32 -0700 Subject: [PATCH 13/14] Update cupertino.yml --- .github/workflows/cupertino.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cupertino.yml b/.github/workflows/cupertino.yml index 79d77e4bf5..5ebbf8b90f 100644 --- a/.github/workflows/cupertino.yml +++ b/.github/workflows/cupertino.yml @@ -33,7 +33,7 @@ jobs: matrix: # Test on the minimum supported flutter version and the latest # version. - flutter-version: ["3.24.0", "any"] + flutter-version: ["3.32.0", "any"] # It would be nice to test on older versions of macOS but macOS 13 is # the oldest supported by GitHub. os: [macos-13, macos-latest] From 3cb688bd754cde5121f6276e5bdc7bcb68b0b5ae Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Wed, 27 Aug 2025 17:50:18 -0700 Subject: [PATCH 14/14] Review fixes --- .../example/integration_test/main.dart | 2 - .../example/integration_test/utils_test.dart | 86 ------------------- .../macos/Runner.xcodeproj/project.pbxproj | 6 +- .../xcshareddata/xcschemes/Runner.xcscheme | 1 + .../cupertino_http/lib/src/cupertino_api.dart | 41 +++++---- pkgs/cupertino_http/lib/src/utils.dart | 40 --------- 6 files changed, 24 insertions(+), 152 deletions(-) delete mode 100644 pkgs/cupertino_http/example/integration_test/utils_test.dart delete mode 100644 pkgs/cupertino_http/lib/src/utils.dart diff --git a/pkgs/cupertino_http/example/integration_test/main.dart b/pkgs/cupertino_http/example/integration_test/main.dart index 14a7ba9bcf..80feea1f18 100644 --- a/pkgs/cupertino_http/example/integration_test/main.dart +++ b/pkgs/cupertino_http/example/integration_test/main.dart @@ -16,7 +16,6 @@ import 'url_session_configuration_test.dart' as url_session_configuration_test; import 'url_session_delegate_test.dart' as url_session_delegate_test; import 'url_session_task_test.dart' as url_session_task_test; import 'url_session_test.dart' as url_session_test; -import 'utils_test.dart' as utils_test; import 'web_socket_conformance_test.dart' as web_socket_conformance_test; /// Execute all the tests in this directory. @@ -39,6 +38,5 @@ void main() { url_session_delegate_test.main(); url_session_task_test.main(); url_session_test.main(); - utils_test.main(); web_socket_conformance_test.main(); } diff --git a/pkgs/cupertino_http/example/integration_test/utils_test.dart b/pkgs/cupertino_http/example/integration_test/utils_test.dart deleted file mode 100644 index 873d9a2bee..0000000000 --- a/pkgs/cupertino_http/example/integration_test/utils_test.dart +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -import 'package:cupertino_http/src/utils.dart'; -import 'package:integration_test/integration_test.dart'; -import 'package:objective_c/objective_c.dart' as objc; -import 'package:test/test.dart'; - -void main() { - IntegrationTestWidgetsFlutterBinding.ensureInitialized(); - - group('stringNSDictionaryToMap', () { - test('empty input', () { - final d = objc.NSMutableDictionary(); - - expect(stringNSDictionaryToMap(d), {}); - }); - - test('single string input', () { - final d = objc.NSMutableDictionary() - ..setObject('value'.toNSString(), forKey: 'key'.toNSString()); - - expect(stringNSDictionaryToMap(d), {'key': 'value'}); - }); - - test('multiple string input', () { - final d = objc.NSMutableDictionary() - ..setObject('value1'.toNSString(), forKey: 'key1'.toNSString()) - ..setObject('value2'.toNSString(), forKey: 'key2'.toNSString()) - ..setObject('value3'.toNSString(), forKey: 'key3'.toNSString()); - expect(stringNSDictionaryToMap(d), { - 'key1': 'value1', - 'key2': 'value2', - 'key3': 'value3', - }); - }); - - test('non-string value', () { - final d = objc.NSMutableDictionary() - ..setObject( - objc.NSNumberCreation.numberWithInteger(5), - forKey: 'key'.toNSString(), - ); - expect(() => stringNSDictionaryToMap(d), throwsUnsupportedError); - }); - - test('non-string key', () { - final d = objc.NSMutableDictionary() - ..setObject( - 'value'.toNSString(), - forKey: objc.NSNumberCreation.numberWithInteger(5), - ); - expect(() => stringNSDictionaryToMap(d), throwsUnsupportedError); - }); - }); - - group('stringIterableToNSArray', () { - test('empty input', () { - final array = stringIterableToNSArray([]); - expect(array.count, 0); - }); - - test('single string input', () { - final array = stringIterableToNSArray(['apple']); - expect(array.count, 1); - expect( - objc.NSString.castFrom(array.objectAtIndex(0)).toDartString(), - 'apple', - ); - }); - - test('multiple string input', () { - final array = stringIterableToNSArray(['apple', 'banana']); - expect(array.count, 2); - expect( - objc.NSString.castFrom(array.objectAtIndex(0)).toDartString(), - 'apple', - ); - expect( - objc.NSString.castFrom(array.objectAtIndex(1)).toDartString(), - 'banana', - ); - }); - }); -} diff --git a/pkgs/cupertino_http/example/macos/Runner.xcodeproj/project.pbxproj b/pkgs/cupertino_http/example/macos/Runner.xcodeproj/project.pbxproj index 3253d7d4d6..17e31cb5cb 100644 --- a/pkgs/cupertino_http/example/macos/Runner.xcodeproj/project.pbxproj +++ b/pkgs/cupertino_http/example/macos/Runner.xcodeproj/project.pbxproj @@ -405,7 +405,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 10.15; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; @@ -484,7 +484,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 10.15; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; @@ -531,7 +531,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 10.15; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; diff --git a/pkgs/cupertino_http/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/pkgs/cupertino_http/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 9a00864391..2a3befd69f 100644 --- a/pkgs/cupertino_http/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/pkgs/cupertino_http/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -48,6 +48,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/pkgs/cupertino_http/lib/src/cupertino_api.dart b/pkgs/cupertino_http/lib/src/cupertino_api.dart index 0f12530770..01cc77d09a 100644 --- a/pkgs/cupertino_http/lib/src/cupertino_api.dart +++ b/pkgs/cupertino_http/lib/src/cupertino_api.dart @@ -40,7 +40,6 @@ import 'native_cupertino_bindings.dart' NSURLSessionResponseDisposition, NSURLSessionTaskState, NSURLSessionWebSocketMessageType; -import 'utils.dart'; export 'native_cupertino_bindings.dart' show @@ -53,6 +52,11 @@ export 'native_cupertino_bindings.dart' NSURLSessionWebSocketCloseCode, NSURLSessionWebSocketMessageType; +objc.NSURL _uriToNSURL(Uri uri) => + objc.NSURL.URLWithString(uri.toString().toNSString())!; +Uri _nsurlToUri(objc.NSURL url) => + Uri.parse(url.absoluteString!.toDartString()); + abstract class _ObjectHolder { final T _nsObject; @@ -100,7 +104,7 @@ class URLCache extends _ObjectHolder { ncb.NSURLCache.alloc().initWithMemoryCapacity$1( memoryCapacity, diskCapacity: diskCapacity, - directoryURL: directory == null ? null : uriToNSURL(directory), + directoryURL: directory == null ? null : _uriToNSURL(directory), ), ); } @@ -199,7 +203,7 @@ class URLSessionConfiguration Map? get httpAdditionalHeaders { if (_nsObject.HTTPAdditionalHeaders case var additionalHeaders?) { final headers = objc.NSDictionary.castFrom(additionalHeaders); - return stringNSDictionaryToMap(headers); + return (objc.toDartObject(headers) as Map).cast(); } return null; } @@ -209,11 +213,8 @@ class URLSessionConfiguration _nsObject.HTTPAdditionalHeaders = null; return; } - final d = objc.NSMutableDictionary.alloc().init(); - headers.forEach((key, value) { - d.setObject(value.toNSString(), forKey: key.toNSString()); - }); - _nsObject.HTTPAdditionalHeaders = d; + _nsObject.HTTPAdditionalHeaders = + objc.toObjCObject(headers) as objc.NSMutableDictionary; } /// What policy to use when deciding whether to accept cookies. @@ -378,12 +379,9 @@ class HTTPURLResponse extends URLResponse { /// The HTTP headers of the response. /// /// See [HTTPURLResponse.allHeaderFields](https://developer.apple.com/documentation/foundation/nshttpurlresponse/1417930-allheaderfields) - Map get allHeaderFields { - final headers = objc.NSDictionary.castFrom( - _httpUrlResponse.allHeaderFields, - ); - return stringNSDictionaryToMap(headers); - } + Map get allHeaderFields => + (objc.toDartObject(_httpUrlResponse.allHeaderFields) as Map) + .cast(); @override String toString() => @@ -697,7 +695,7 @@ class URLRequest extends _ObjectHolder { /// /// See [NSURLRequest.requestWithURL:](https://developer.apple.com/documentation/foundation/nsurlrequest/1528603-requestwithurl) factory URLRequest.fromUrl(Uri uri) => - URLRequest._(ncb.NSURLRequest.requestWithURL(uriToNSURL(uri))); + URLRequest._(ncb.NSURLRequest.requestWithURL(_uriToNSURL(uri))); /// Returns all of the HTTP headers for the request. /// @@ -706,7 +704,8 @@ class URLRequest extends _ObjectHolder { if (_nsObject.allHTTPHeaderFields == null) { return null; } else { - return stringNSDictionaryToMap(_nsObject.allHTTPHeaderFields!); + return (objc.toDartObject(_nsObject.allHTTPHeaderFields!) as Map) + .cast(); } } @@ -745,7 +744,7 @@ class URLRequest extends _ObjectHolder { if (nsUrl == null) { return null; } - return nsurlToUri(nsUrl); + return _nsurlToUri(nsUrl); } @override @@ -953,7 +952,7 @@ class URLSession extends _ObjectHolder { onFinishedDownloading( URLSession._(nsSession, isBackground: isBackground), URLSessionDownloadTask._(nsTask), - nsurlToUri(nsUrl), + _nsurlToUri(nsUrl), ); }); } @@ -1224,13 +1223,13 @@ class URLSession extends _ObjectHolder { final URLSessionWebSocketTask task; if (protocols == null) { task = URLSessionWebSocketTask._( - _nsObject.webSocketTaskWithURL(uriToNSURL(uri)), + _nsObject.webSocketTaskWithURL(_uriToNSURL(uri)), ); } else { task = URLSessionWebSocketTask._( _nsObject.webSocketTaskWithURL$1( - uriToNSURL(uri), - protocols: stringIterableToNSArray(protocols), + _uriToNSURL(uri), + protocols: objc.toObjCObject(protocols) as objc.NSArray, ), ); } diff --git a/pkgs/cupertino_http/lib/src/utils.dart b/pkgs/cupertino_http/lib/src/utils.dart deleted file mode 100644 index 1d5ab4e4ad..0000000000 --- a/pkgs/cupertino_http/lib/src/utils.dart +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -import 'package:objective_c/objective_c.dart'; - -/// Converts a NSDictionary containing NSString keys and NSString values into -/// an equivalent map. -Map stringNSDictionaryToMap(NSDictionary d) { - final m = {}; - final keys = NSArray.castFrom(d.allKeys); - for (var i = 0; i < keys.count; ++i) { - final nsKey = keys.objectAtIndex(i); - if (!NSString.isInstance(nsKey)) { - throw UnsupportedError('keys must be strings'); - } - final key = NSString.castFrom(nsKey).toDartString(); - final nsValue = d.objectForKey(nsKey); - if (nsValue == null || !NSString.isInstance(nsValue)) { - throw UnsupportedError('values must be strings'); - } - final value = NSString.castFrom(nsValue).toDartString(); - m[key] = value; - } - - return m; -} - -NSArray stringIterableToNSArray(Iterable strings) { - final array = NSMutableArray.arrayWithCapacity(strings.length); - - var index = 0; - for (var s in strings) { - array.setObject(s.toNSString(), atIndexedSubscript: index++); - } - return array; -} - -NSURL uriToNSURL(Uri uri) => NSURL.URLWithString(uri.toString().toNSString())!; -Uri nsurlToUri(NSURL url) => Uri.parse(url.absoluteString!.toDartString());