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 35e411b84a..0c5c56b2ec 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 @@ -9,139 +9,6 @@ import 'package:flutter/foundation.dart'; import 'package:integration_test/integration_test.dart'; import 'package:test/test.dart'; -void testWebSocketTask() { - group('websocket', () { - late HttpServer server; - int? lastCloseCode; - String? lastCloseReason; - - setUp(() async { - lastCloseCode = null; - lastCloseReason = null; - server = await HttpServer.bind('localhost', 0) - ..listen((request) { - if (request.uri.path.endsWith('error')) { - 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; - })); - } - }); - }); - - tearDown(() async { - await server.close(); - }); - - 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!')); - await task.receiveMessage(); - task.cancelWithCloseCode( - 4998, Data.fromUint8List(Uint8List.fromList('Bye'.codeUnits))); - - // Allow the server to run and save the close code. - while (lastCloseCode == null) { - await Future.delayed(const Duration(milliseconds: 10)); - } - expect(lastCloseCode, 4998); - expect(lastCloseReason, 'Bye'); - }); - - 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!')); - await task.receiveMessage(); - await expectLater(task.receiveMessage(), - throwsA(isA().having((e) => e.code, 'code', 57 // NOT_CONNECTED - ))); - - expect(task.closeCode, 4999); - expect(task.closeReason!.bytes, 'fun'.codeUnits); - task.cancel(); - }); - - test('data message', () async { - final session = URLSession.sharedSession(); - final task = session.webSocketTaskWithRequest( - URLRequest.fromUrl(Uri.parse('ws://localhost:${server.port}'))) - ..resume(); - await task.sendMessage(URLSessionWebSocketMessage.fromData( - Data.fromUint8List(Uint8List.fromList([1, 2, 3])))); - final receivedMessage = await task.receiveMessage(); - expect(receivedMessage.type, - URLSessionWebSocketMessageType.urlSessionWebSocketMessageTypeData); - expect(receivedMessage.data!.bytes, [1, 2, 3]); - expect(receivedMessage.string, null); - task.cancel(); - }); - - 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!')); - final receivedMessage = await task.receiveMessage(); - expect(receivedMessage.type, - URLSessionWebSocketMessageType.urlSessionWebSocketMessageTypeString); - expect(receivedMessage.data, null); - expect(receivedMessage.string, 'Hello World!'); - task.cancel(); - }); - - test('send failure', () async { - final session = URLSession.sharedSession(); - final task = session.webSocketTaskWithRequest( - 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.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!')); - await task.receiveMessage(); - await expectLater(task.receiveMessage(), - throwsA(isA().having((e) => e.code, 'code', 57 // NOT_CONNECTED - ))); - task.cancel(); - }); - }); -} - void testURLSessionTask( URLSessionTask Function(URLSession session, Uri url) f) { group('task states', () { @@ -364,6 +231,4 @@ void main() { testURLSessionTask((session, uri) => session.downloadTaskWithRequest(URLRequest.fromUrl(uri))); }); - - testWebSocketTask(); } diff --git a/pkgs/cupertino_http/ffigen.yaml b/pkgs/cupertino_http/ffigen.yaml index 2ac2ce517f..b4cd26c595 100644 --- a/pkgs/cupertino_http/ffigen.yaml +++ b/pkgs/cupertino_http/ffigen.yaml @@ -8,21 +8,20 @@ language: 'objc' output: 'lib/src/native_cupertino_bindings.dart' headers: entry-points: - - '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSArray.h' - - '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSData.h' - - '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSDictionary.h' - - '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSURLRequest.h' - - '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSURLSession.h' - - '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSURL.h' - - '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSProgress.h' - - '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSURLResponse.h' - - '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSHTTPCookieStorage.h' - - '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSOperation.h' - - '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSError.h' - - '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSDictionary.h' + - '/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSArray.h' + - '/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSData.h' + - '/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSDictionary.h' + - '/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSURLRequest.h' + - '/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSURLSession.h' + - '/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSURL.h' + - '/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSProgress.h' + - '/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSURLResponse.h' + - '/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSHTTPCookieStorage.h' + - '/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSOperation.h' + - '/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSError.h' + - '/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSDictionary.h' - 'src/CUPHTTPClientDelegate.h' - 'src/CUPHTTPForwardedDelegate.h' - - 'src/CUPHTTPCompletionHelper.h' preamble: | // ignore_for_file: always_specify_types // ignore_for_file: camel_case_types diff --git a/pkgs/cupertino_http/ios/Classes/CUPHTTPCompletionHelper.m b/pkgs/cupertino_http/ios/Classes/CUPHTTPCompletionHelper.m deleted file mode 100644 index b05d1fc717..0000000000 --- a/pkgs/cupertino_http/ios/Classes/CUPHTTPCompletionHelper.m +++ /dev/null @@ -1 +0,0 @@ -#include "../../src/CUPHTTPCompletionHelper.m" diff --git a/pkgs/cupertino_http/lib/src/cupertino_api.dart b/pkgs/cupertino_http/lib/src/cupertino_api.dart index 11d68b68d7..4092f4d4de 100644 --- a/pkgs/cupertino_http/lib/src/cupertino_api.dart +++ b/pkgs/cupertino_http/lib/src/cupertino_api.dart @@ -26,7 +26,6 @@ /// ``` library; -import 'dart:async'; import 'dart:ffi'; import 'dart:isolate'; import 'dart:math'; @@ -112,18 +111,10 @@ enum URLRequestNetworkService { networkServiceTypeCallSignaling } -/// The type of a WebSocket message i.e. text or data. -/// -/// See [NSURLSessionWebSocketMessageType](https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessagetype) -enum URLSessionWebSocketMessageType { - urlSessionWebSocketMessageTypeData, - urlSessionWebSocketMessageTypeString, -} - /// Information about a failure. /// /// See [NSError](https://developer.apple.com/documentation/foundation/nserror) -class Error extends _ObjectHolder implements Exception { +class Error extends _ObjectHolder { Error._(super.c); /// The numeric code for the error e.g. -1003 (kCFURLErrorCannotFindHost). @@ -501,54 +492,6 @@ enum URLSessionTaskState { urlSessionTaskStateCompleted, } -/// A WebSocket message. -/// -/// See [NSURLSessionWebSocketMessage](https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage) -class URLSessionWebSocketMessage - extends _ObjectHolder { - URLSessionWebSocketMessage._(super.nsObject); - - /// Create a WebSocket data message. - /// - /// See [NSURLSessionWebSocketMessage initWithData:](https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181192-initwithdata) - factory URLSessionWebSocketMessage.fromData(Data d) => - URLSessionWebSocketMessage._( - ncb.NSURLSessionWebSocketMessage.alloc(linkedLibs) - .initWithData_(d._nsObject)); - - /// 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(linkedLibs) - .initWithString_(s.toNSString(linkedLibs))); - - /// The data associated with the WebSocket message. - /// - /// Will be `null` if the [URLSessionWebSocketMessage] is a string message. - /// - /// See [NSURLSessionWebSocketMessage.data](https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181191-data) - Data? get data => _nsObject.data == null ? null : Data._(_nsObject.data!); - - /// The string associated with the WebSocket message. - /// - /// Will be `null` if the [URLSessionWebSocketMessage] is a data message. - /// - /// See [NSURLSessionWebSocketMessage.string](https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181194-string) - String? get string => toStringOrNull(_nsObject.string); - - /// The type of the WebSocket message. - /// - /// See [NSURLSessionWebSocketMessage.type](https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage/3181195-type) - URLSessionWebSocketMessageType get type => - URLSessionWebSocketMessageType.values[_nsObject.type]; - - @override - String toString() => - '[URLSessionWebSocketMessage type=$type string=$string data=$data]'; -} - /// A task associated with downloading a URI. /// /// See [NSURLSessionTask](https://developer.apple.com/documentation/foundation/nsurlsessiontask) @@ -665,18 +608,18 @@ class URLSessionTask extends _ObjectHolder { /// The number of content bytes that are expected to be received from the /// server. /// - /// See [NSURLSessionTask.countOfBytesReceived](https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410663-countofbytesexpectedtoreceive) + /// [NSURLSessionTask.countOfBytesReceived](https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410663-countofbytesexpectedtoreceive) int get countOfBytesExpectedToReceive => _nsObject.countOfBytesExpectedToReceive; /// The number of content bytes that have been received from the server. /// - /// See [NSURLSessionTask.countOfBytesReceived](https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411581-countofbytesreceived) + /// [NSURLSessionTask.countOfBytesReceived](https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411581-countofbytesreceived) int get countOfBytesReceived => _nsObject.countOfBytesReceived; /// The number of content bytes that the task expects to send to the server. /// - /// See [NSURLSessionTask.countOfBytesExpectedToSend](https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411534-countofbytesexpectedtosend) + /// [NSURLSessionTask.countOfBytesExpectedToSend](https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411534-countofbytesexpectedtosend) int get countOfBytesExpectedToSend => _nsObject.countOfBytesExpectedToSend; /// Whether the body of the response should be delivered incrementally or not. @@ -686,12 +629,12 @@ class URLSessionTask extends _ObjectHolder { /// Whether the body of the response should be delivered incrementally or not. /// - /// See [NSURLSessionTask.prefersIncrementalDelivery](https://developer.apple.com/documentation/foundation/nsurlsessiontask/3735881-prefersincrementaldelivery) + /// [NSURLSessionTask.prefersIncrementalDelivery](https://developer.apple.com/documentation/foundation/nsurlsessiontask/3735881-prefersincrementaldelivery) bool get prefersIncrementalDelivery => _nsObject.prefersIncrementalDelivery; /// Whether the body of the response should be delivered incrementally or not. /// - /// See [NSURLSessionTask.prefersIncrementalDelivery](https://developer.apple.com/documentation/foundation/nsurlsessiontask/3735881-prefersincrementaldelivery) + /// [NSURLSessionTask.prefersIncrementalDelivery](https://developer.apple.com/documentation/foundation/nsurlsessiontask/3735881-prefersincrementaldelivery) set prefersIncrementalDelivery(bool value) => _nsObject.prefersIncrementalDelivery = value; @@ -721,109 +664,6 @@ class URLSessionDownloadTask extends URLSessionTask { String toString() => _toStringHelper('URLSessionDownloadTask'); } -/// A task associated with a WebSocket connection. -/// -/// See [NSURLSessionWebSocketTask](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask) -class URLSessionWebSocketTask extends URLSessionTask { - final ncb.NSURLSessionWebSocketTask _urlSessionWebSocketTask; - - URLSessionWebSocketTask._(ncb.NSURLSessionWebSocketTask super.c) - : _urlSessionWebSocketTask = c, - super._(); - - /// The close code set when the WebSocket connection is closed. - /// - /// See [NSURLSessionWebSocketTask.closeCode](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181201-closecode) - int get closeCode => _urlSessionWebSocketTask.closeCode; - - /// The close reason set when the WebSocket connection is closed. - /// If there is no close reason available this property will be null. - /// - /// See [NSURLSessionWebSocketTask.closeReason](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181202-closereason) - Data? get closeReason { - final reason = _urlSessionWebSocketTask.closeReason; - if (reason == null) { - return null; - } else { - return Data._(reason); - } - } - - /// Sends a single WebSocket message. - /// - /// The returned future will complete successfully when the message is sent - /// and with an [Error] on failure. - /// - /// See [NSURLSessionWebSocketTask.sendMessage:completionHandler:](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181205-sendmessage) - Future sendMessage(URLSessionWebSocketMessage message) async { - final completer = Completer(); - final completionPort = ReceivePort(); - completionPort.listen((message) { - final ep = Pointer.fromAddress(message as int); - if (ep.address == 0) { - completer.complete(); - } else { - final error = Error._(ncb.NSError.castFromPointer(linkedLibs, ep, - retain: false, release: true)); - completer.completeError(error); - } - completionPort.close(); - }); - - helperLibs.CUPHTTPSendMessage(_urlSessionWebSocketTask.pointer, - message._nsObject.pointer, completionPort.sendPort.nativePort); - await completer.future; - } - - /// Receives a single WebSocket message. - /// - /// Throws an [Error] on failure. - /// - /// See [NSURLSessionWebSocketTask.receiveMessageWithCompletionHandler:](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181204-receivemessagewithcompletionhand) - Future receiveMessage() async { - final completer = Completer(); - final completionPort = ReceivePort(); - completionPort.listen((d) { - final messageAndError = d as List; - - final mp = Pointer.fromAddress(messageAndError[0] as int); - final ep = Pointer.fromAddress(messageAndError[1] as int); - - final message = mp.address == 0 - ? null - : URLSessionWebSocketMessage._( - ncb.NSURLSessionWebSocketMessage.castFromPointer(linkedLibs, mp, - retain: false, release: true)); - final error = ep.address == 0 - ? null - : Error._(ncb.NSError.castFromPointer(linkedLibs, ep, - retain: false, release: true)); - - if (error != null) { - completer.completeError(error); - } else { - completer.complete(message); - } - completionPort.close(); - }); - - helperLibs.CUPHTTPReceiveMessage( - _urlSessionWebSocketTask.pointer, completionPort.sendPort.nativePort); - return completer.future; - } - - /// Sends close frame with the given code and optional reason. - /// - /// See [NSURLSessionWebSocketTask.cancelWithCloseCode:reason:](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask/3181200-cancelwithclosecode) - void cancelWithCloseCode(int closeCode, Data? reason) { - _urlSessionWebSocketTask.cancelWithCloseCode_reason_( - closeCode, reason?._nsObject); - } - - @override - String toString() => _toStringHelper('NSURLSessionWebSocketTask'); -} - /// A request to load a URL. /// /// See [NSURLRequest](https://developer.apple.com/documentation/foundation/nsurlrequest) @@ -1314,23 +1154,4 @@ class URLSession extends _ObjectHolder { onResponse: _onResponse); return task; } - - /// Creates a [URLSessionWebSocketTask] that represents a connection to a - /// WebSocket endpoint. - /// - /// To add custom protocols, add a "Sec-WebSocket-Protocol" header with a list - /// of protocols to [request]. - /// - /// See [NSURLSession webSocketTaskWithRequest:](https://developer.apple.com/documentation/foundation/nsurlsession/3235750-websockettaskwithrequest) - URLSessionWebSocketTask webSocketTaskWithRequest(URLRequest request) { - final task = URLSessionWebSocketTask._( - _nsObject.webSocketTaskWithRequest_(request._nsObject)); - _setupDelegation(_delegate, this, task, - onComplete: _onComplete, - onData: _onData, - onFinishedDownloading: _onFinishedDownloading, - onRedirect: _onRedirect, - onResponse: _onResponse); - 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 f08662793b..82724c8cc3 100644 --- a/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart +++ b/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart @@ -27,5406 +27,6407 @@ class NativeCupertinoHttp { lookup) : _lookup = lookup; - ffi.Pointer> signal( + int __darwin_check_fd_set_overflow( int arg0, - ffi.Pointer> arg1, + ffi.Pointer arg1, + int arg2, ) { - return _signal( + return ___darwin_check_fd_set_overflow( arg0, arg1, + arg2, ); } - late final _signalPtr = _lookup< + late final ___darwin_check_fd_set_overflowPtr = _lookup< ffi.NativeFunction< - ffi.Pointer> Function( - ffi.Int, - ffi.Pointer< - ffi.NativeFunction>)>>('signal'); - late final _signal = _signalPtr.asFunction< - ffi.Pointer> Function( - int, ffi.Pointer>)>(); + 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)>(); - int getpriority( - int arg0, - int arg1, + ffi.Pointer sel_getName( + ffi.Pointer sel, ) { - return _getpriority( - arg0, - arg1, + return _sel_getName( + sel, ); } - late final _getpriorityPtr = - _lookup>( - 'getpriority'); - late final _getpriority = - _getpriorityPtr.asFunction(); + late final _sel_getNamePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('sel_getName'); + late final _sel_getName = _sel_getNamePtr + .asFunction Function(ffi.Pointer)>(); - int getiopolicy_np( - int arg0, - int arg1, + ffi.Pointer sel_registerName( + ffi.Pointer str, ) { - return _getiopolicy_np( - arg0, - arg1, + return _sel_registerName1( + str, ); } - late final _getiopolicy_npPtr = - _lookup>( - 'getiopolicy_np'); - late final _getiopolicy_np = - _getiopolicy_npPtr.asFunction(); + late final _sel_registerNamePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('sel_registerName'); + late final _sel_registerName1 = _sel_registerNamePtr + .asFunction Function(ffi.Pointer)>(); - int getrlimit( - int arg0, - ffi.Pointer arg1, + ffi.Pointer object_getClassName( + ffi.Pointer obj, ) { - return _getrlimit( - arg0, - arg1, + return _object_getClassName( + obj, ); } - late final _getrlimitPtr = _lookup< - ffi.NativeFunction)>>( - 'getrlimit'); - late final _getrlimit = - _getrlimitPtr.asFunction)>(); + late final _object_getClassNamePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('object_getClassName'); + late final _object_getClassName = _object_getClassNamePtr + .asFunction Function(ffi.Pointer)>(); - int getrusage( - int arg0, - ffi.Pointer arg1, + ffi.Pointer object_getIndexedIvars( + ffi.Pointer obj, ) { - return _getrusage( - arg0, - arg1, + return _object_getIndexedIvars( + obj, ); } - late final _getrusagePtr = _lookup< - ffi.NativeFunction)>>( - 'getrusage'); - late final _getrusage = - _getrusagePtr.asFunction)>(); + late final _object_getIndexedIvarsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('object_getIndexedIvars'); + late final _object_getIndexedIvars = _object_getIndexedIvarsPtr + .asFunction Function(ffi.Pointer)>(); - int setpriority( - int arg0, - int arg1, - int arg2, + bool sel_isMapped( + ffi.Pointer sel, ) { - return _setpriority( - arg0, - arg1, - arg2, + return _sel_isMapped( + sel, ); } - late final _setpriorityPtr = - _lookup>( - 'setpriority'); - late final _setpriority = - _setpriorityPtr.asFunction(); + late final _sel_isMappedPtr = + _lookup)>>( + 'sel_isMapped'); + late final _sel_isMapped = + _sel_isMappedPtr.asFunction)>(); - int setiopolicy_np( - int arg0, - int arg1, - int arg2, + ffi.Pointer sel_getUid( + ffi.Pointer str, ) { - return _setiopolicy_np( - arg0, - arg1, - arg2, + return _sel_getUid( + str, ); } - late final _setiopolicy_npPtr = - _lookup>( - 'setiopolicy_np'); - late final _setiopolicy_np = - _setiopolicy_npPtr.asFunction(); + late final _sel_getUidPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('sel_getUid'); + late final _sel_getUid = _sel_getUidPtr + .asFunction Function(ffi.Pointer)>(); - int setrlimit( - int arg0, - ffi.Pointer arg1, + ffi.Pointer objc_retainedObject( + objc_objectptr_t obj, ) { - return _setrlimit( - arg0, - arg1, + return _objc_retainedObject( + obj, ); } - late final _setrlimitPtr = _lookup< - ffi.NativeFunction)>>( - 'setrlimit'); - late final _setrlimit = - _setrlimitPtr.asFunction)>(); + 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)>(); - int wait1( - ffi.Pointer arg0, + ffi.Pointer objc_unretainedObject( + objc_objectptr_t obj, ) { - return _wait1( - arg0, + return _objc_unretainedObject( + obj, ); } - late final _wait1Ptr = - _lookup)>>('wait'); - late final _wait1 = - _wait1Ptr.asFunction)>(); + 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)>(); - int waitpid( - int arg0, - ffi.Pointer arg1, - int arg2, + objc_objectptr_t objc_unretainedPointer( + ffi.Pointer obj, ) { - return _waitpid( - arg0, - arg1, - arg2, + return _objc_unretainedPointer( + obj, ); } - late final _waitpidPtr = _lookup< + late final _objc_unretainedPointerPtr = _lookup< ffi.NativeFunction< - pid_t Function(pid_t, ffi.Pointer, ffi.Int)>>('waitpid'); - late final _waitpid = - _waitpidPtr.asFunction, int)>(); + objc_objectptr_t Function( + ffi.Pointer)>>('objc_unretainedPointer'); + late final _objc_unretainedPointer = _objc_unretainedPointerPtr + .asFunction)>(); - int waitid( - int arg0, - int arg1, - ffi.Pointer arg2, - int arg3, + ffi.Pointer _registerName1(String name) { + final cstr = name.toNativeUtf8(); + final sel = _sel_registerName(cstr.cast()); + pkg_ffi.calloc.free(cstr); + return sel; + } + + ffi.Pointer _sel_registerName( + ffi.Pointer str, ) { - return _waitid( - arg0, - arg1, - arg2, - arg3, + return __sel_registerName( + str, ); } - late final _waitidPtr = _lookup< + late final __sel_registerNamePtr = _lookup< ffi.NativeFunction< - ffi.Int Function( - ffi.Int32, id_t, ffi.Pointer, ffi.Int)>>('waitid'); - late final _waitid = _waitidPtr - .asFunction, int)>(); + ffi.Pointer Function( + ffi.Pointer)>>('sel_registerName'); + late final __sel_registerName = __sel_registerNamePtr + .asFunction Function(ffi.Pointer)>(); - int wait3( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, + ffi.Pointer _getClass1(String name) { + final cstr = name.toNativeUtf8(); + final clazz = _objc_getClass(cstr.cast()); + pkg_ffi.calloc.free(cstr); + if (clazz == ffi.nullptr) { + throw Exception('Failed to load Objective-C class: $name'); + } + return clazz; + } + + ffi.Pointer _objc_getClass( + ffi.Pointer str, ) { - return _wait3( - arg0, - arg1, - arg2, + return __objc_getClass( + str, ); } - late final _wait3Ptr = _lookup< + late final __objc_getClassPtr = _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)>(); + ffi.Pointer Function( + ffi.Pointer)>>('objc_getClass'); + late final __objc_getClass = __objc_getClassPtr + .asFunction Function(ffi.Pointer)>(); - int wait4( - int arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, + ffi.Pointer _objc_retain( + ffi.Pointer value, ) { - return _wait4( - arg0, - arg1, - arg2, - arg3, + return __objc_retain( + value, ); } - late final _wait4Ptr = _lookup< + late final __objc_retainPtr = _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 Function( + ffi.Pointer)>>('objc_retain'); + late final __objc_retain = __objc_retainPtr + .asFunction Function(ffi.Pointer)>(); - ffi.Pointer alloca( - int arg0, + void _objc_release( + ffi.Pointer value, ) { - return _alloca( - arg0, + return __objc_release( + value, ); } - late final _allocaPtr = - _lookup Function(ffi.Size)>>( - 'alloca'); - late final _alloca = - _allocaPtr.asFunction Function(int)>(); - - 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; + late final __objc_releasePtr = + _lookup)>>( + 'objc_release'); + late final __objc_release = + __objc_releasePtr.asFunction)>(); - ffi.Pointer malloc( - int __size, + late final _objc_releaseFinalizer2 = + ffi.NativeFinalizer(__objc_releasePtr.cast()); + late final _class_NSObject1 = _getClass1("NSObject"); + late final _sel_load1 = _registerName1("load"); + void _objc_msgSend_1( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _malloc( - __size, + return __objc_msgSend_1( + obj, + sel, ); } - late final _mallocPtr = - _lookup Function(ffi.Size)>>( - 'malloc'); - late final _malloc = - _mallocPtr.asFunction Function(int)>(); + late final __objc_msgSend_1Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1 = __objc_msgSend_1Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer calloc( - int __count, - int __size, + late final _sel_initialize1 = _registerName1("initialize"); + late final _sel_init1 = _registerName1("init"); + instancetype _objc_msgSend_2( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _calloc( - __count, - __size, + return __objc_msgSend_2( + obj, + sel, ); } - late final _callocPtr = _lookup< + late final __objc_msgSend_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Size, ffi.Size)>>('calloc'); - late final _calloc = - _callocPtr.asFunction Function(int, int)>(); + instancetype Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_2 = __objc_msgSend_2Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer)>(); - void free( - ffi.Pointer arg0, + late final _sel_new1 = _registerName1("new"); + late final _sel_allocWithZone_1 = _registerName1("allocWithZone:"); + instancetype _objc_msgSend_3( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_NSZone> zone, ) { - return _free( - arg0, + return __objc_msgSend_3( + obj, + sel, + zone, ); } - late final _freePtr = - _lookup)>>( - 'free'); - late final _free = - _freePtr.asFunction)>(); + late final __objc_msgSend_3Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_NSZone>)>>('objc_msgSend'); + late final __objc_msgSend_3 = __objc_msgSend_3Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_NSZone>)>(); - ffi.Pointer realloc( - ffi.Pointer __ptr, - int __size, + late final _sel_alloc1 = _registerName1("alloc"); + late final _sel_dealloc1 = _registerName1("dealloc"); + late final _sel_finalize1 = _registerName1("finalize"); + late final _sel_copy1 = _registerName1("copy"); + late final _sel_mutableCopy1 = _registerName1("mutableCopy"); + late final _sel_copyWithZone_1 = _registerName1("copyWithZone:"); + late final _sel_mutableCopyWithZone_1 = + _registerName1("mutableCopyWithZone:"); + late final _sel_instancesRespondToSelector_1 = + _registerName1("instancesRespondToSelector:"); + bool _objc_msgSend_4( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, ) { - return _realloc( - __ptr, - __size, + return __objc_msgSend_4( + obj, + sel, + aSelector, ); } - late final _reallocPtr = _lookup< + late final __objc_msgSend_4Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Size)>>('realloc'); - late final _realloc = _reallocPtr - .asFunction Function(ffi.Pointer, int)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_4 = __objc_msgSend_4Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - ffi.Pointer valloc( - int arg0, + bool _objc_msgSend_0( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer clazz, ) { - return _valloc( - arg0, + return __objc_msgSend_0( + obj, + sel, + clazz, ); } - late final _vallocPtr = - _lookup Function(ffi.Size)>>( - 'valloc'); - late final _valloc = - _vallocPtr.asFunction Function(int)>(); + late final __objc_msgSend_0Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_0 = __objc_msgSend_0Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - ffi.Pointer aligned_alloc( - int __alignment, - int __size, + late final _sel_isKindOfClass_1 = _registerName1("isKindOfClass:"); + late final _class_Protocol1 = _getClass1("Protocol"); + late final _sel_conformsToProtocol_1 = _registerName1("conformsToProtocol:"); + bool _objc_msgSend_5( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer protocol, ) { - return _aligned_alloc( - __alignment, - __size, + return __objc_msgSend_5( + obj, + sel, + protocol, ); } - late final _aligned_allocPtr = _lookup< + late final __objc_msgSend_5Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Size, ffi.Size)>>('aligned_alloc'); - late final _aligned_alloc = - _aligned_allocPtr.asFunction Function(int, int)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_5 = __objc_msgSend_5Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - int posix_memalign( - ffi.Pointer> __memptr, - int __alignment, - int __size, + late final _sel_methodForSelector_1 = _registerName1("methodForSelector:"); + IMP _objc_msgSend_6( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, ) { - return _posix_memalign( - __memptr, - __alignment, - __size, + return __objc_msgSend_6( + obj, + sel, + aSelector, ); } - late final _posix_memalignPtr = _lookup< + late final __objc_msgSend_6Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function(ffi.Pointer>, ffi.Size, - ffi.Size)>>('posix_memalign'); - late final _posix_memalign = _posix_memalignPtr - .asFunction>, int, int)>(); + IMP Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_6 = __objc_msgSend_6Ptr.asFunction< + IMP Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void abort() { - return _abort(); - } - - late final _abortPtr = - _lookup>('abort'); - late final _abort = _abortPtr.asFunction(); - - int abs( - int arg0, - ) { - return _abs( - arg0, - ); - } - - late final _absPtr = - _lookup>('abs'); - late final _abs = _absPtr.asFunction(); - - int atexit( - ffi.Pointer> arg0, + late final _sel_instanceMethodForSelector_1 = + _registerName1("instanceMethodForSelector:"); + late final _sel_doesNotRecognizeSelector_1 = + _registerName1("doesNotRecognizeSelector:"); + void _objc_msgSend_7( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, ) { - return _atexit( - arg0, + return __objc_msgSend_7( + obj, + sel, + aSelector, ); } - late final _atexitPtr = _lookup< + late final __objc_msgSend_7Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer>)>>('atexit'); - late final _atexit = _atexitPtr.asFunction< - int Function(ffi.Pointer>)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_7 = __objc_msgSend_7Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - double atof( - ffi.Pointer arg0, + late final _sel_forwardingTargetForSelector_1 = + _registerName1("forwardingTargetForSelector:"); + ffi.Pointer _objc_msgSend_8( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, ) { - return _atof( - arg0, + return __objc_msgSend_8( + obj, + sel, + aSelector, ); } - late final _atofPtr = - _lookup)>>( - 'atof'); - late final _atof = - _atofPtr.asFunction)>(); + late final __objc_msgSend_8Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_8 = __objc_msgSend_8Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - int atoi( - ffi.Pointer arg0, + late final _class_NSInvocation1 = _getClass1("NSInvocation"); + late final _sel_forwardInvocation_1 = _registerName1("forwardInvocation:"); + void _objc_msgSend_9( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anInvocation, ) { - return _atoi( - arg0, + return __objc_msgSend_9( + obj, + sel, + anInvocation, ); } - late final _atoiPtr = - _lookup)>>( - 'atoi'); - late final _atoi = _atoiPtr.asFunction)>(); + late final __objc_msgSend_9Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_9 = __objc_msgSend_9Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - int atol( - ffi.Pointer arg0, + late final _class_NSMethodSignature1 = _getClass1("NSMethodSignature"); + late final _sel_methodSignatureForSelector_1 = + _registerName1("methodSignatureForSelector:"); + ffi.Pointer _objc_msgSend_10( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, ) { - return _atol( - arg0, + return __objc_msgSend_10( + obj, + sel, + aSelector, ); } - late final _atolPtr = - _lookup)>>( - 'atol'); - late final _atol = _atolPtr.asFunction)>(); + late final __objc_msgSend_10Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_10 = __objc_msgSend_10Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - int atoll( - ffi.Pointer arg0, + late final _sel_instanceMethodSignatureForSelector_1 = + _registerName1("instanceMethodSignatureForSelector:"); + late final _sel_allowsWeakReference1 = _registerName1("allowsWeakReference"); + bool _objc_msgSend_11( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _atoll( - arg0, + return __objc_msgSend_11( + obj, + sel, ); } - late final _atollPtr = - _lookup)>>( - 'atoll'); - late final _atoll = - _atollPtr.asFunction)>(); + late final __objc_msgSend_11Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_11 = __objc_msgSend_11Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer bsearch( - ffi.Pointer __key, - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>> - __compar, + late final _sel_retainWeakReference1 = _registerName1("retainWeakReference"); + late final _sel_isSubclassOfClass_1 = _registerName1("isSubclassOfClass:"); + late final _sel_resolveClassMethod_1 = _registerName1("resolveClassMethod:"); + late final _sel_resolveInstanceMethod_1 = + _registerName1("resolveInstanceMethod:"); + late final _sel_hash1 = _registerName1("hash"); + int _objc_msgSend_12( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _bsearch( - __key, - __base, - __nel, - __width, - __compar, + return __objc_msgSend_12( + obj, + sel, ); } - late final _bsearchPtr = _lookup< + late final __objc_msgSend_12Ptr = _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, - int, - int, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>)>(); + NSUInteger Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_12 = __objc_msgSend_12Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - div_t div( - int arg0, - int arg1, + late final _sel_superclass1 = _registerName1("superclass"); + late final _sel_class1 = _registerName1("class"); + late final _class_NSString1 = _getClass1("NSString"); + late final _sel_length1 = _registerName1("length"); + late final _sel_characterAtIndex_1 = _registerName1("characterAtIndex:"); + int _objc_msgSend_13( + ffi.Pointer obj, + ffi.Pointer sel, + int index, ) { - return _div( - arg0, - arg1, + return __objc_msgSend_13( + obj, + sel, + index, ); } - late final _divPtr = - _lookup>('div'); - late final _div = _divPtr.asFunction(); + late final __objc_msgSend_13Ptr = _lookup< + ffi.NativeFunction< + unichar Function(ffi.Pointer, ffi.Pointer, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_13 = __objc_msgSend_13Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); - void exit( - int arg0, + late final _class_NSCoder1 = _getClass1("NSCoder"); + late final _sel_initWithCoder_1 = _registerName1("initWithCoder:"); + instancetype _objc_msgSend_14( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer coder, ) { - return _exit1( - arg0, + return __objc_msgSend_14( + obj, + sel, + coder, ); } - late final _exitPtr = - _lookup>('exit'); - late final _exit1 = _exitPtr.asFunction(); + late final __objc_msgSend_14Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_14 = __objc_msgSend_14Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - ffi.Pointer getenv( - ffi.Pointer arg0, + late final _sel_substringFromIndex_1 = _registerName1("substringFromIndex:"); + ffi.Pointer _objc_msgSend_15( + ffi.Pointer obj, + ffi.Pointer sel, + int from, ) { - return _getenv( - arg0, + return __objc_msgSend_15( + obj, + sel, + from, ); } - late final _getenvPtr = _lookup< + late final __objc_msgSend_15Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('getenv'); - late final _getenv = _getenvPtr - .asFunction Function(ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_15 = __objc_msgSend_15Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - int labs( - int arg0, + late final _sel_substringToIndex_1 = _registerName1("substringToIndex:"); + late final _sel_substringWithRange_1 = _registerName1("substringWithRange:"); + ffi.Pointer _objc_msgSend_16( + ffi.Pointer obj, + ffi.Pointer sel, + NSRange range, ) { - return _labs( - arg0, + return __objc_msgSend_16( + obj, + sel, + range, ); } - late final _labsPtr = - _lookup>('labs'); - late final _labs = _labsPtr.asFunction(); + late final __objc_msgSend_16Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_16 = __objc_msgSend_16Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, NSRange)>(); - ldiv_t ldiv( - int arg0, - int arg1, + late final _sel_getCharacters_range_1 = + _registerName1("getCharacters:range:"); + void _objc_msgSend_17( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer buffer, + NSRange range, ) { - return _ldiv( - arg0, - arg1, + return __objc_msgSend_17( + obj, + sel, + buffer, + range, ); } - late final _ldivPtr = - _lookup>('ldiv'); - late final _ldiv = _ldivPtr.asFunction(); + late final __objc_msgSend_17Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_17 = __objc_msgSend_17Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSRange)>(); - int llabs( - int arg0, + late final _sel_compare_1 = _registerName1("compare:"); + int _objc_msgSend_18( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, ) { - return _llabs( - arg0, + return __objc_msgSend_18( + obj, + sel, + string, ); } - late final _llabsPtr = - _lookup>('llabs'); - late final _llabs = _llabsPtr.asFunction(); + late final __objc_msgSend_18Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_18 = __objc_msgSend_18Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - lldiv_t lldiv( - int arg0, - int arg1, + late final _sel_compare_options_1 = _registerName1("compare:options:"); + int _objc_msgSend_19( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int mask, ) { - return _lldiv( - arg0, - arg1, + return __objc_msgSend_19( + obj, + sel, + string, + mask, ); } - late final _lldivPtr = - _lookup>( - 'lldiv'); - late final _lldiv = _lldivPtr.asFunction(); + late final __objc_msgSend_19Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_19 = __objc_msgSend_19Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - int mblen( - ffi.Pointer __s, - int __n, + late final _sel_compare_options_range_1 = + _registerName1("compare:options:range:"); + int _objc_msgSend_20( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int mask, + NSRange rangeOfReceiverToCompare, ) { - return _mblen( - __s, - __n, + return __objc_msgSend_20( + obj, + sel, + string, + mask, + rangeOfReceiverToCompare, ); } - late final _mblenPtr = _lookup< + late final __objc_msgSend_20Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size)>>('mblen'); - late final _mblen = - _mblenPtr.asFunction, int)>(); + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_20 = __objc_msgSend_20Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, NSRange)>(); - int mbstowcs( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, + late final _sel_compare_options_range_locale_1 = + _registerName1("compare:options:range:locale:"); + int _objc_msgSend_21( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int mask, + NSRange rangeOfReceiverToCompare, + ffi.Pointer locale, ) { - return _mbstowcs( - arg0, - arg1, - arg2, + return __objc_msgSend_21( + obj, + sel, + string, + mask, + rangeOfReceiverToCompare, + locale, ); } - late final _mbstowcsPtr = _lookup< + late final __objc_msgSend_21Ptr = _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)>(); + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_21 = __objc_msgSend_21Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, NSRange, ffi.Pointer)>(); - int mbtowc( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, + late final _sel_caseInsensitiveCompare_1 = + _registerName1("caseInsensitiveCompare:"); + late final _sel_localizedCompare_1 = _registerName1("localizedCompare:"); + late final _sel_localizedCaseInsensitiveCompare_1 = + _registerName1("localizedCaseInsensitiveCompare:"); + late final _sel_localizedStandardCompare_1 = + _registerName1("localizedStandardCompare:"); + late final _sel_isEqualToString_1 = _registerName1("isEqualToString:"); + bool _objc_msgSend_22( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aString, ) { - return _mbtowc( - arg0, - arg1, - arg2, + return __objc_msgSend_22( + obj, + sel, + aString, ); } - late final _mbtowcPtr = _lookup< + late final __objc_msgSend_22Ptr = _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)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_22 = __objc_msgSend_22Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void qsort( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>> - __compar, + late final _sel_hasPrefix_1 = _registerName1("hasPrefix:"); + late final _sel_hasSuffix_1 = _registerName1("hasSuffix:"); + late final _sel_commonPrefixWithString_options_1 = + _registerName1("commonPrefixWithString:options:"); + ffi.Pointer _objc_msgSend_23( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer str, + int mask, ) { - return _qsort( - __base, - __nel, - __width, - __compar, + return __objc_msgSend_23( + obj, + sel, + str, + mask, ); } - late final _qsortPtr = _lookup< + late final __objc_msgSend_23Ptr = _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, - int, - int, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>)>(); - - int rand() { - return _rand(); - } - - late final _randPtr = _lookup>('rand'); - late final _rand = _randPtr.asFunction(); - - void srand( - int arg0, - ) { - return _srand( - arg0, - ); - } - - late final _srandPtr = - _lookup>('srand'); - late final _srand = _srandPtr.asFunction(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_23 = __objc_msgSend_23Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); - double strtod( - ffi.Pointer arg0, - ffi.Pointer> arg1, + late final _sel_containsString_1 = _registerName1("containsString:"); + late final _sel_localizedCaseInsensitiveContainsString_1 = + _registerName1("localizedCaseInsensitiveContainsString:"); + late final _sel_localizedStandardContainsString_1 = + _registerName1("localizedStandardContainsString:"); + late final _sel_localizedStandardRangeOfString_1 = + _registerName1("localizedStandardRangeOfString:"); + NSRange _objc_msgSend_24( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer str, ) { - return _strtod( - arg0, - arg1, + return __objc_msgSend_24( + obj, + sel, + str, ); } - late final _strtodPtr = _lookup< + late final __objc_msgSend_24Ptr = _lookup< ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, - ffi.Pointer>)>>('strtod'); - late final _strtod = _strtodPtr.asFunction< - double Function( - ffi.Pointer, ffi.Pointer>)>(); + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_24 = __objc_msgSend_24Ptr.asFunction< + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - double strtof( - ffi.Pointer arg0, - ffi.Pointer> arg1, + late final _sel_rangeOfString_1 = _registerName1("rangeOfString:"); + late final _sel_rangeOfString_options_1 = + _registerName1("rangeOfString:options:"); + NSRange _objc_msgSend_25( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer searchString, + int mask, ) { - return _strtof( - arg0, - arg1, + return __objc_msgSend_25( + obj, + sel, + searchString, + mask, ); } - late final _strtofPtr = _lookup< + late final __objc_msgSend_25Ptr = _lookup< ffi.NativeFunction< - ffi.Float Function(ffi.Pointer, - ffi.Pointer>)>>('strtof'); - late final _strtof = _strtofPtr.asFunction< - double Function( - ffi.Pointer, ffi.Pointer>)>(); + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_25 = __objc_msgSend_25Ptr.asFunction< + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - int strtol( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, + late final _sel_rangeOfString_options_range_1 = + _registerName1("rangeOfString:options:range:"); + NSRange _objc_msgSend_26( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer searchString, + int mask, + NSRange rangeOfReceiverToSearch, ) { - return _strtol( - __str, - __endptr, - __base, + return __objc_msgSend_26( + obj, + sel, + searchString, + mask, + rangeOfReceiverToSearch, ); } - late final _strtolPtr = _lookup< + late final __objc_msgSend_26Ptr = _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)>(); + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_26 = __objc_msgSend_26Ptr.asFunction< + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, NSRange)>(); - int strtoll( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, + late final _class_NSLocale1 = _getClass1("NSLocale"); + late final _sel_rangeOfString_options_range_locale_1 = + _registerName1("rangeOfString:options:range:locale:"); + NSRange _objc_msgSend_27( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer searchString, + int mask, + NSRange rangeOfReceiverToSearch, + ffi.Pointer locale, ) { - return _strtoll( - __str, - __endptr, - __base, + return __objc_msgSend_27( + obj, + sel, + searchString, + mask, + rangeOfReceiverToSearch, + locale, ); } - late final _strtollPtr = _lookup< + late final __objc_msgSend_27Ptr = _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)>(); + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_27 = __objc_msgSend_27Ptr.asFunction< + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, NSRange, ffi.Pointer)>(); - int strtoul( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, + late final _class_NSCharacterSet1 = _getClass1("NSCharacterSet"); + late final _sel_controlCharacterSet1 = _registerName1("controlCharacterSet"); + ffi.Pointer _objc_msgSend_28( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _strtoul( - __str, - __endptr, - __base, + return __objc_msgSend_28( + obj, + sel, ); } - late final _strtoulPtr = _lookup< + late final __objc_msgSend_28Ptr = _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)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_28 = __objc_msgSend_28Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - int strtoull( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, + late final _sel_whitespaceCharacterSet1 = + _registerName1("whitespaceCharacterSet"); + late final _sel_whitespaceAndNewlineCharacterSet1 = + _registerName1("whitespaceAndNewlineCharacterSet"); + late final _sel_decimalDigitCharacterSet1 = + _registerName1("decimalDigitCharacterSet"); + late final _sel_letterCharacterSet1 = _registerName1("letterCharacterSet"); + late final _sel_lowercaseLetterCharacterSet1 = + _registerName1("lowercaseLetterCharacterSet"); + late final _sel_uppercaseLetterCharacterSet1 = + _registerName1("uppercaseLetterCharacterSet"); + late final _sel_nonBaseCharacterSet1 = _registerName1("nonBaseCharacterSet"); + late final _sel_alphanumericCharacterSet1 = + _registerName1("alphanumericCharacterSet"); + late final _sel_decomposableCharacterSet1 = + _registerName1("decomposableCharacterSet"); + late final _sel_illegalCharacterSet1 = _registerName1("illegalCharacterSet"); + late final _sel_punctuationCharacterSet1 = + _registerName1("punctuationCharacterSet"); + late final _sel_capitalizedLetterCharacterSet1 = + _registerName1("capitalizedLetterCharacterSet"); + late final _sel_symbolCharacterSet1 = _registerName1("symbolCharacterSet"); + late final _sel_newlineCharacterSet1 = _registerName1("newlineCharacterSet"); + late final _sel_characterSetWithRange_1 = + _registerName1("characterSetWithRange:"); + ffi.Pointer _objc_msgSend_29( + ffi.Pointer obj, + ffi.Pointer sel, + NSRange aRange, ) { - return _strtoull( - __str, - __endptr, - __base, + return __objc_msgSend_29( + obj, + sel, + aRange, ); } - late final _strtoullPtr = _lookup< + late final __objc_msgSend_29Ptr = _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)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_29 = __objc_msgSend_29Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, NSRange)>(); - int system( - ffi.Pointer arg0, + late final _sel_characterSetWithCharactersInString_1 = + _registerName1("characterSetWithCharactersInString:"); + ffi.Pointer _objc_msgSend_30( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aString, ) { - return _system( - arg0, + return __objc_msgSend_30( + obj, + sel, + aString, ); } - late final _systemPtr = - _lookup)>>( - 'system'); - late final _system = - _systemPtr.asFunction)>(); + late final __objc_msgSend_30Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_30 = __objc_msgSend_30Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - int wcstombs( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, + late final _class_NSData1 = _getClass1("NSData"); + late final _sel_bytes1 = _registerName1("bytes"); + ffi.Pointer _objc_msgSend_31( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _wcstombs( - arg0, - arg1, - arg2, + return __objc_msgSend_31( + obj, + sel, ); } - late final _wcstombsPtr = _lookup< + late final __objc_msgSend_31Ptr = _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)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_31 = __objc_msgSend_31Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - int wctomb( - ffi.Pointer arg0, - int arg1, + late final _sel_description1 = _registerName1("description"); + ffi.Pointer _objc_msgSend_32( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _wctomb( - arg0, - arg1, + return __objc_msgSend_32( + obj, + sel, ); } - late final _wctombPtr = _lookup< + late final __objc_msgSend_32Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.WChar)>>('wctomb'); - late final _wctomb = - _wctombPtr.asFunction, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_32 = __objc_msgSend_32Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - void _Exit( - int arg0, + late final _sel_getBytes_length_1 = _registerName1("getBytes:length:"); + void _objc_msgSend_33( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer buffer, + int length, ) { - return __Exit( - arg0, + return __objc_msgSend_33( + obj, + sel, + buffer, + length, ); } - late final __ExitPtr = - _lookup>('_Exit'); - late final __Exit = __ExitPtr.asFunction(); + late final __objc_msgSend_33Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_33 = __objc_msgSend_33Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - int a64l( - ffi.Pointer arg0, + late final _sel_getBytes_range_1 = _registerName1("getBytes:range:"); + void _objc_msgSend_34( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer buffer, + NSRange range, ) { - return _a64l( - arg0, + return __objc_msgSend_34( + obj, + sel, + buffer, + range, ); } - late final _a64lPtr = - _lookup)>>( - 'a64l'); - late final _a64l = _a64lPtr.asFunction)>(); - - double drand48() { - return _drand48(); - } - - late final _drand48Ptr = - _lookup>('drand48'); - late final _drand48 = _drand48Ptr.asFunction(); + late final __objc_msgSend_34Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_34 = __objc_msgSend_34Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSRange)>(); - ffi.Pointer ecvt( - double arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, + late final _sel_isEqualToData_1 = _registerName1("isEqualToData:"); + bool _objc_msgSend_35( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, ) { - return _ecvt( - arg0, - arg1, - arg2, - arg3, + return __objc_msgSend_35( + obj, + sel, + other, ); } - late final _ecvtPtr = _lookup< + late final __objc_msgSend_35Ptr = _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)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_35 = __objc_msgSend_35Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - double erand48( - ffi.Pointer arg0, + late final _sel_subdataWithRange_1 = _registerName1("subdataWithRange:"); + ffi.Pointer _objc_msgSend_36( + ffi.Pointer obj, + ffi.Pointer sel, + NSRange range, ) { - return _erand48( - arg0, + return __objc_msgSend_36( + obj, + sel, + range, ); } - late final _erand48Ptr = _lookup< + late final __objc_msgSend_36Ptr = _lookup< ffi.NativeFunction< - ffi.Double Function(ffi.Pointer)>>('erand48'); - late final _erand48 = - _erand48Ptr.asFunction)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_36 = __objc_msgSend_36Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, NSRange)>(); - ffi.Pointer fcvt( - double arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, + late final _sel_writeToFile_atomically_1 = + _registerName1("writeToFile:atomically:"); + bool _objc_msgSend_37( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool useAuxiliaryFile, ) { - return _fcvt( - arg0, - arg1, - arg2, - arg3, + return __objc_msgSend_37( + obj, + sel, + path, + useAuxiliaryFile, ); } - late final _fcvtPtr = _lookup< + late final __objc_msgSend_37Ptr = _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.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_37 = __objc_msgSend_37Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); - ffi.Pointer gcvt( - double arg0, - int arg1, - ffi.Pointer arg2, + late final _class_NSURL1 = _getClass1("NSURL"); + late final _sel_initWithScheme_host_path_1 = + _registerName1("initWithScheme:host:path:"); + instancetype _objc_msgSend_38( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer scheme, + ffi.Pointer host, + ffi.Pointer path, ) { - return _gcvt( - arg0, - arg1, - arg2, + return __objc_msgSend_38( + obj, + sel, + scheme, + host, + path, ); } - late final _gcvtPtr = _lookup< + late final __objc_msgSend_38Ptr = _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)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_38 = __objc_msgSend_38Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - int getsubopt( - ffi.Pointer> arg0, - ffi.Pointer> arg1, - ffi.Pointer> arg2, + late final _sel_initFileURLWithPath_isDirectory_relativeToURL_1 = + _registerName1("initFileURLWithPath:isDirectory:relativeToURL:"); + instancetype _objc_msgSend_39( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool isDir, + ffi.Pointer baseURL, ) { - return _getsubopt( - arg0, - arg1, - arg2, + return __objc_msgSend_39( + obj, + sel, + path, + isDir, + baseURL, ); } - late final _getsuboptPtr = _lookup< + late final __objc_msgSend_39Ptr = _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>)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_39 = __objc_msgSend_39Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool, ffi.Pointer)>(); - int grantpt( - int arg0, + late final _sel_initFileURLWithPath_relativeToURL_1 = + _registerName1("initFileURLWithPath:relativeToURL:"); + instancetype _objc_msgSend_40( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer baseURL, ) { - return _grantpt( - arg0, + return __objc_msgSend_40( + obj, + sel, + path, + baseURL, ); } - late final _grantptPtr = - _lookup>('grantpt'); - late final _grantpt = _grantptPtr.asFunction(); + late final __objc_msgSend_40Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_40 = __objc_msgSend_40Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer initstate( - int arg0, - ffi.Pointer arg1, - int arg2, + late final _sel_initFileURLWithPath_isDirectory_1 = + _registerName1("initFileURLWithPath:isDirectory:"); + instancetype _objc_msgSend_41( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool isDir, ) { - return _initstate( - arg0, - arg1, - arg2, + return __objc_msgSend_41( + obj, + sel, + path, + isDir, ); } - late final _initstatePtr = _lookup< + late final __objc_msgSend_41Ptr = _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)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_41 = __objc_msgSend_41Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); - int jrand48( - ffi.Pointer arg0, + late final _sel_initFileURLWithPath_1 = + _registerName1("initFileURLWithPath:"); + instancetype _objc_msgSend_42( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, ) { - return _jrand48( - arg0, + return __objc_msgSend_42( + obj, + sel, + path, ); } - late final _jrand48Ptr = _lookup< + late final __objc_msgSend_42Ptr = _lookup< ffi.NativeFunction< - ffi.Long Function(ffi.Pointer)>>('jrand48'); - late final _jrand48 = - _jrand48Ptr.asFunction)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_42 = __objc_msgSend_42Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - ffi.Pointer l64a( - int arg0, + late final _sel_fileURLWithPath_isDirectory_relativeToURL_1 = + _registerName1("fileURLWithPath:isDirectory:relativeToURL:"); + ffi.Pointer _objc_msgSend_43( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool isDir, + ffi.Pointer baseURL, ) { - return _l64a( - arg0, + return __objc_msgSend_43( + obj, + sel, + path, + isDir, + baseURL, ); } - late final _l64aPtr = - _lookup Function(ffi.Long)>>( - 'l64a'); - late final _l64a = _l64aPtr.asFunction Function(int)>(); + late final __objc_msgSend_43Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_43 = __objc_msgSend_43Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer)>(); - void lcong48( - ffi.Pointer arg0, + late final _sel_fileURLWithPath_relativeToURL_1 = + _registerName1("fileURLWithPath:relativeToURL:"); + ffi.Pointer _objc_msgSend_44( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer baseURL, ) { - return _lcong48( - arg0, + return __objc_msgSend_44( + obj, + sel, + path, + baseURL, ); } - late final _lcong48Ptr = _lookup< + late final __objc_msgSend_44Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer)>>('lcong48'); - late final _lcong48 = - _lcong48Ptr.asFunction)>(); - - int lrand48() { - return _lrand48(); - } - - late final _lrand48Ptr = - _lookup>('lrand48'); - late final _lrand48 = _lrand48Ptr.asFunction(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_44 = __objc_msgSend_44Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - ffi.Pointer mktemp( - ffi.Pointer arg0, + late final _sel_fileURLWithPath_isDirectory_1 = + _registerName1("fileURLWithPath:isDirectory:"); + ffi.Pointer _objc_msgSend_45( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool isDir, ) { - return _mktemp( - arg0, + return __objc_msgSend_45( + obj, + sel, + path, + isDir, ); } - late final _mktempPtr = _lookup< + late final __objc_msgSend_45Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('mktemp'); - late final _mktemp = _mktempPtr - .asFunction Function(ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_45 = __objc_msgSend_45Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool)>(); - int mkstemp( - ffi.Pointer arg0, + late final _sel_fileURLWithPath_1 = _registerName1("fileURLWithPath:"); + ffi.Pointer _objc_msgSend_46( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, ) { - return _mkstemp( - arg0, + return __objc_msgSend_46( + obj, + sel, + path, ); } - late final _mkstempPtr = - _lookup)>>( - 'mkstemp'); - late final _mkstemp = - _mkstempPtr.asFunction)>(); - - int mrand48() { - return _mrand48(); - } - - late final _mrand48Ptr = - _lookup>('mrand48'); - late final _mrand48 = _mrand48Ptr.asFunction(); + late final __objc_msgSend_46Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_46 = __objc_msgSend_46Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - int nrand48( - ffi.Pointer arg0, + late final _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = + _registerName1( + "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); + instancetype _objc_msgSend_47( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool isDir, + ffi.Pointer baseURL, ) { - return _nrand48( - arg0, + return __objc_msgSend_47( + obj, + sel, + path, + isDir, + baseURL, ); } - late final _nrand48Ptr = _lookup< + late final __objc_msgSend_47Ptr = _lookup< ffi.NativeFunction< - ffi.Long Function(ffi.Pointer)>>('nrand48'); - late final _nrand48 = - _nrand48Ptr.asFunction)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_47 = __objc_msgSend_47Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool, ffi.Pointer)>(); - int posix_openpt( - int arg0, + late final _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = + _registerName1( + "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); + ffi.Pointer _objc_msgSend_48( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool isDir, + ffi.Pointer baseURL, ) { - return _posix_openpt( - arg0, + return __objc_msgSend_48( + obj, + sel, + path, + isDir, + baseURL, ); } - late final _posix_openptPtr = - _lookup>('posix_openpt'); - late final _posix_openpt = _posix_openptPtr.asFunction(); + late final __objc_msgSend_48Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_48 = __objc_msgSend_48Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer)>(); - ffi.Pointer ptsname( - int arg0, + late final _sel_initWithString_1 = _registerName1("initWithString:"); + late final _sel_initWithString_relativeToURL_1 = + _registerName1("initWithString:relativeToURL:"); + late final _sel_URLWithString_1 = _registerName1("URLWithString:"); + late final _sel_URLWithString_relativeToURL_1 = + _registerName1("URLWithString:relativeToURL:"); + late final _sel_initWithDataRepresentation_relativeToURL_1 = + _registerName1("initWithDataRepresentation:relativeToURL:"); + instancetype _objc_msgSend_49( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ffi.Pointer baseURL, ) { - return _ptsname( - arg0, + return __objc_msgSend_49( + obj, + sel, + data, + baseURL, ); } - late final _ptsnamePtr = - _lookup Function(ffi.Int)>>( - 'ptsname'); - late final _ptsname = - _ptsnamePtr.asFunction Function(int)>(); + late final __objc_msgSend_49Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - int ptsname_r( - int fildes, - ffi.Pointer buffer, - int buflen, + late final _sel_URLWithDataRepresentation_relativeToURL_1 = + _registerName1("URLWithDataRepresentation:relativeToURL:"); + ffi.Pointer _objc_msgSend_50( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ffi.Pointer baseURL, ) { - return _ptsname_r( - fildes, - buffer, - buflen, + return __objc_msgSend_50( + obj, + sel, + data, + baseURL, ); } - late final _ptsname_rPtr = _lookup< + late final __objc_msgSend_50Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, ffi.Size)>>('ptsname_r'); - late final _ptsname_r = - _ptsname_rPtr.asFunction, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_50 = __objc_msgSend_50Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - int putenv( - ffi.Pointer arg0, + late final _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1 = + _registerName1("initAbsoluteURLWithDataRepresentation:relativeToURL:"); + late final _sel_absoluteURLWithDataRepresentation_relativeToURL_1 = + _registerName1("absoluteURLWithDataRepresentation:relativeToURL:"); + late final _sel_dataRepresentation1 = _registerName1("dataRepresentation"); + ffi.Pointer _objc_msgSend_51( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _putenv( - arg0, + return __objc_msgSend_51( + obj, + sel, ); } - late final _putenvPtr = - _lookup)>>( - 'putenv'); - late final _putenv = - _putenvPtr.asFunction)>(); - - int random() { - return _random(); - } - - late final _randomPtr = - _lookup>('random'); - late final _random = _randomPtr.asFunction(); + late final __objc_msgSend_51Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_51 = __objc_msgSend_51Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - int rand_r( - ffi.Pointer arg0, + late final _sel_absoluteString1 = _registerName1("absoluteString"); + late final _sel_relativeString1 = _registerName1("relativeString"); + late final _sel_baseURL1 = _registerName1("baseURL"); + ffi.Pointer _objc_msgSend_52( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _rand_r( - arg0, + return __objc_msgSend_52( + obj, + sel, ); } - late final _rand_rPtr = _lookup< - ffi.NativeFunction)>>( - 'rand_r'); - late final _rand_r = - _rand_rPtr.asFunction)>(); + late final __objc_msgSend_52Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_52 = __objc_msgSend_52Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer realpath( - ffi.Pointer arg0, - ffi.Pointer arg1, + late final _sel_absoluteURL1 = _registerName1("absoluteURL"); + late final _sel_scheme1 = _registerName1("scheme"); + late final _sel_resourceSpecifier1 = _registerName1("resourceSpecifier"); + late final _sel_host1 = _registerName1("host"); + late final _class_NSNumber1 = _getClass1("NSNumber"); + late final _class_NSValue1 = _getClass1("NSValue"); + late final _sel_getValue_size_1 = _registerName1("getValue:size:"); + late final _sel_objCType1 = _registerName1("objCType"); + ffi.Pointer _objc_msgSend_53( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _realpath( - arg0, - arg1, + return __objc_msgSend_53( + obj, + sel, ); } - late final _realpathPtr = _lookup< + late final __objc_msgSend_53Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('realpath'); - late final _realpath = _realpathPtr.asFunction< + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_53 = __objc_msgSend_53Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer seed48( - ffi.Pointer arg0, + late final _sel_initWithBytes_objCType_1 = + _registerName1("initWithBytes:objCType:"); + instancetype _objc_msgSend_54( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer type, ) { - return _seed48( - arg0, + return __objc_msgSend_54( + obj, + sel, + value, + type, ); } - late final _seed48Ptr = _lookup< + late final __objc_msgSend_54Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('seed48'); - late final _seed48 = _seed48Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - int setenv( - ffi.Pointer __name, - ffi.Pointer __value, - int __overwrite, + late final _sel_valueWithBytes_objCType_1 = + _registerName1("valueWithBytes:objCType:"); + ffi.Pointer _objc_msgSend_55( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer type, ) { - return _setenv( - __name, - __value, - __overwrite, + return __objc_msgSend_55( + obj, + sel, + value, + type, ); } - late final _setenvPtr = _lookup< + late final __objc_msgSend_55Ptr = _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)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void setkey( - ffi.Pointer arg0, + late final _sel_value_withObjCType_1 = _registerName1("value:withObjCType:"); + late final _sel_valueWithNonretainedObject_1 = + _registerName1("valueWithNonretainedObject:"); + ffi.Pointer _objc_msgSend_56( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, ) { - return _setkey( - arg0, + return __objc_msgSend_56( + obj, + sel, + anObject, ); } - late final _setkeyPtr = - _lookup)>>( - 'setkey'); - late final _setkey = - _setkeyPtr.asFunction)>(); + late final __objc_msgSend_56Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer setstate( - ffi.Pointer arg0, + late final _sel_nonretainedObjectValue1 = + _registerName1("nonretainedObjectValue"); + late final _sel_valueWithPointer_1 = _registerName1("valueWithPointer:"); + ffi.Pointer _objc_msgSend_57( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer pointer, ) { - return _setstate( - arg0, + return __objc_msgSend_57( + obj, + sel, + pointer, ); } - late final _setstatePtr = _lookup< + late final __objc_msgSend_57Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('setstate'); - late final _setstate = _setstatePtr - .asFunction Function(ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void srand48( - int arg0, + late final _sel_pointerValue1 = _registerName1("pointerValue"); + late final _sel_isEqualToValue_1 = _registerName1("isEqualToValue:"); + bool _objc_msgSend_58( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, ) { - return _srand48( - arg0, + return __objc_msgSend_58( + obj, + sel, + value, ); } - late final _srand48Ptr = - _lookup>('srand48'); - late final _srand48 = _srand48Ptr.asFunction(); + late final __objc_msgSend_58Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_58 = __objc_msgSend_58Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void srandom( - int arg0, + late final _sel_getValue_1 = _registerName1("getValue:"); + void _objc_msgSend_59( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, ) { - return _srandom( - arg0, + return __objc_msgSend_59( + obj, + sel, + value, ); } - late final _srandomPtr = - _lookup>( - 'srandom'); - late final _srandom = _srandomPtr.asFunction(); + late final __objc_msgSend_59Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_59 = __objc_msgSend_59Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - int unlockpt( - int arg0, + late final _sel_valueWithRange_1 = _registerName1("valueWithRange:"); + ffi.Pointer _objc_msgSend_60( + ffi.Pointer obj, + ffi.Pointer sel, + NSRange range, ) { - return _unlockpt( - arg0, + return __objc_msgSend_60( + obj, + sel, + range, ); } - late final _unlockptPtr = - _lookup>('unlockpt'); - late final _unlockpt = _unlockptPtr.asFunction(); + late final __objc_msgSend_60Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_60 = __objc_msgSend_60Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, NSRange)>(); - int unsetenv( - ffi.Pointer arg0, + late final _sel_rangeValue1 = _registerName1("rangeValue"); + NSRange _objc_msgSend_61( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _unsetenv( - arg0, + return __objc_msgSend_61( + obj, + sel, ); } - late final _unsetenvPtr = - _lookup)>>( - 'unsetenv'); - late final _unsetenv = - _unsetenvPtr.asFunction)>(); + late final __objc_msgSend_61Ptr = _lookup< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_61 = __objc_msgSend_61Ptr.asFunction< + NSRange Function(ffi.Pointer, ffi.Pointer)>(); - int arc4random() { - return _arc4random(); + late final _sel_initWithChar_1 = _registerName1("initWithChar:"); + ffi.Pointer _objc_msgSend_62( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_62( + obj, + sel, + value, + ); } - late final _arc4randomPtr = - _lookup>('arc4random'); - late final _arc4random = _arc4randomPtr.asFunction(); + late final __objc_msgSend_62Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Char)>>('objc_msgSend'); + late final __objc_msgSend_62 = __objc_msgSend_62Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - void arc4random_addrandom( - ffi.Pointer arg0, - int arg1, + late final _sel_initWithUnsignedChar_1 = + _registerName1("initWithUnsignedChar:"); + ffi.Pointer _objc_msgSend_63( + ffi.Pointer obj, + ffi.Pointer sel, + int value, ) { - return _arc4random_addrandom( - arg0, - arg1, + return __objc_msgSend_63( + obj, + sel, + value, ); } - late final _arc4random_addrandomPtr = _lookup< + late final __objc_msgSend_63Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Int)>>('arc4random_addrandom'); - late final _arc4random_addrandom = _arc4random_addrandomPtr - .asFunction, int)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); + late final __objc_msgSend_63 = __objc_msgSend_63Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - void arc4random_buf( - ffi.Pointer __buf, - int __nbytes, + late final _sel_initWithShort_1 = _registerName1("initWithShort:"); + ffi.Pointer _objc_msgSend_64( + ffi.Pointer obj, + ffi.Pointer sel, + int value, ) { - return _arc4random_buf( - __buf, - __nbytes, + return __objc_msgSend_64( + obj, + sel, + value, ); } - late final _arc4random_bufPtr = _lookup< + late final __objc_msgSend_64Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Size)>>('arc4random_buf'); - late final _arc4random_buf = _arc4random_bufPtr - .asFunction, int)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Short)>>('objc_msgSend'); + late final __objc_msgSend_64 = __objc_msgSend_64Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - void arc4random_stir() { - return _arc4random_stir(); + late final _sel_initWithUnsignedShort_1 = + _registerName1("initWithUnsignedShort:"); + ffi.Pointer _objc_msgSend_65( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_65( + obj, + sel, + value, + ); } - late final _arc4random_stirPtr = - _lookup>('arc4random_stir'); - late final _arc4random_stir = - _arc4random_stirPtr.asFunction(); + late final __objc_msgSend_65Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedShort)>>('objc_msgSend'); + late final __objc_msgSend_65 = __objc_msgSend_65Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - int arc4random_uniform( - int __upper_bound, + late final _sel_initWithInt_1 = _registerName1("initWithInt:"); + ffi.Pointer _objc_msgSend_66( + ffi.Pointer obj, + ffi.Pointer sel, + int value, ) { - return _arc4random_uniform( - __upper_bound, + return __objc_msgSend_66( + obj, + sel, + value, ); } - late final _arc4random_uniformPtr = - _lookup>( - 'arc4random_uniform'); - late final _arc4random_uniform = - _arc4random_uniformPtr.asFunction(); + late final __objc_msgSend_66Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_66 = __objc_msgSend_66Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - int atexit_b( - ffi.Pointer<_ObjCBlock> arg0, + late final _sel_initWithUnsignedInt_1 = + _registerName1("initWithUnsignedInt:"); + ffi.Pointer _objc_msgSend_67( + ffi.Pointer obj, + ffi.Pointer sel, + int value, ) { - return _atexit_b( - arg0, + return __objc_msgSend_67( + obj, + sel, + value, ); } - late final _atexit_bPtr = - _lookup)>>( - 'atexit_b'); - late final _atexit_b = - _atexit_bPtr.asFunction)>(); + late final __objc_msgSend_67Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_67 = __objc_msgSend_67Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - ffi.Pointer<_ObjCBlockDesc> _newBlockDesc1() { - final d = - pkg_ffi.calloc.allocate<_ObjCBlockDesc>(ffi.sizeOf<_ObjCBlockDesc>()); - d.ref.reserved = 0; - d.ref.size = ffi.sizeOf<_ObjCBlock>(); - d.ref.copy_helper = ffi.nullptr; - d.ref.dispose_helper = ffi.nullptr; - d.ref.signature = ffi.nullptr; - return d; + late final _sel_initWithLong_1 = _registerName1("initWithLong:"); + ffi.Pointer _objc_msgSend_68( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_68( + obj, + sel, + value, + ); } - late final _objc_block_desc1 = _newBlockDesc1(); - late final _objc_concrete_global_block1 = - _lookup('_NSConcreteGlobalBlock'); - ffi.Pointer<_ObjCBlock> _newBlock1( - ffi.Pointer invoke, ffi.Pointer target) { - final b = pkg_ffi.calloc.allocate<_ObjCBlock>(ffi.sizeOf<_ObjCBlock>()); - b.ref.isa = _objc_concrete_global_block1; - b.ref.flags = 0; - b.ref.reserved = 0; - b.ref.invoke = invoke; - b.ref.target = target; - b.ref.descriptor = _objc_block_desc1; - final copy = _Block_copy(b.cast()).cast<_ObjCBlock>(); - pkg_ffi.calloc.free(b); - return copy; - } + late final __objc_msgSend_68Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_68 = __objc_msgSend_68Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - ffi.Pointer _Block_copy( - ffi.Pointer value, + late final _sel_initWithUnsignedLong_1 = + _registerName1("initWithUnsignedLong:"); + ffi.Pointer _objc_msgSend_69( + ffi.Pointer obj, + ffi.Pointer sel, + int value, ) { - return __Block_copy( + return __objc_msgSend_69( + obj, + sel, value, ); } - late final __Block_copyPtr = _lookup< + late final __objc_msgSend_69Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('_Block_copy'); - late final __Block_copy = __Block_copyPtr - .asFunction Function(ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_69 = __objc_msgSend_69Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - void _Block_release( - ffi.Pointer value, + late final _sel_initWithLongLong_1 = _registerName1("initWithLongLong:"); + ffi.Pointer _objc_msgSend_70( + ffi.Pointer obj, + ffi.Pointer sel, + int value, ) { - return __Block_release( + return __objc_msgSend_70( + obj, + sel, value, ); } - late final __Block_releasePtr = - _lookup)>>( - '_Block_release'); - late final __Block_release = - __Block_releasePtr.asFunction)>(); + late final __objc_msgSend_70Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.LongLong)>>('objc_msgSend'); + late final __objc_msgSend_70 = __objc_msgSend_70Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _objc_releaseFinalizer2 = - ffi.NativeFinalizer(__Block_releasePtr.cast()); - ffi.Pointer bsearch_b( - ffi.Pointer __key, - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer<_ObjCBlock> __compar, + late final _sel_initWithUnsignedLongLong_1 = + _registerName1("initWithUnsignedLongLong:"); + ffi.Pointer _objc_msgSend_71( + ffi.Pointer obj, + ffi.Pointer sel, + int value, ) { - return _bsearch_b( - __key, - __base, - __nel, - __width, - __compar, + return __objc_msgSend_71( + obj, + sel, + value, ); } - late final _bsearch_bPtr = _lookup< + late final __objc_msgSend_71Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer<_ObjCBlock>)>>('bsearch_b'); - late final _bsearch_b = _bsearch_bPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); + late final __objc_msgSend_71 = __objc_msgSend_71Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - ffi.Pointer cgetcap( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, + late final _sel_initWithFloat_1 = _registerName1("initWithFloat:"); + ffi.Pointer _objc_msgSend_72( + ffi.Pointer obj, + ffi.Pointer sel, + double value, ) { - return _cgetcap( - arg0, - arg1, - arg2, + return __objc_msgSend_72( + obj, + sel, + value, ); } - late final _cgetcapPtr = _lookup< + late final __objc_msgSend_72Ptr = _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 _cgetclose = _cgetclosePtr.asFunction(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Float)>>('objc_msgSend'); + late final __objc_msgSend_72 = __objc_msgSend_72Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, double)>(); - int cgetent( - ffi.Pointer> arg0, - ffi.Pointer> arg1, - ffi.Pointer arg2, + late final _sel_initWithDouble_1 = _registerName1("initWithDouble:"); + ffi.Pointer _objc_msgSend_73( + ffi.Pointer obj, + ffi.Pointer sel, + double value, ) { - return _cgetent( - arg0, - arg1, - arg2, + return __objc_msgSend_73( + obj, + sel, + value, ); } - late final _cgetentPtr = _lookup< + late final __objc_msgSend_73Ptr = _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 Function(ffi.Pointer, + ffi.Pointer, ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_73 = __objc_msgSend_73Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, double)>(); - int cgetfirst( - ffi.Pointer> arg0, - ffi.Pointer> arg1, + late final _sel_initWithBool_1 = _registerName1("initWithBool:"); + ffi.Pointer _objc_msgSend_74( + ffi.Pointer obj, + ffi.Pointer sel, + bool value, ) { - return _cgetfirst( - arg0, - arg1, + return __objc_msgSend_74( + obj, + sel, + value, ); } - late final _cgetfirstPtr = _lookup< + late final __objc_msgSend_74Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function(ffi.Pointer>, - ffi.Pointer>)>>('cgetfirst'); - late final _cgetfirst = _cgetfirstPtr.asFunction< - int Function(ffi.Pointer>, - ffi.Pointer>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_74 = __objc_msgSend_74Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, bool)>(); - int cgetmatch( - ffi.Pointer arg0, - ffi.Pointer arg1, + late final _sel_initWithInteger_1 = _registerName1("initWithInteger:"); + late final _sel_initWithUnsignedInteger_1 = + _registerName1("initWithUnsignedInteger:"); + late final _sel_charValue1 = _registerName1("charValue"); + int _objc_msgSend_75( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _cgetmatch( - arg0, - arg1, + return __objc_msgSend_75( + obj, + sel, ); } - late final _cgetmatchPtr = _lookup< + late final __objc_msgSend_75Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('cgetmatch'); - late final _cgetmatch = _cgetmatchPtr - .asFunction, ffi.Pointer)>(); + ffi.Char Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_75 = __objc_msgSend_75Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - int cgetnext( - ffi.Pointer> arg0, - ffi.Pointer> arg1, + late final _sel_unsignedCharValue1 = _registerName1("unsignedCharValue"); + int _objc_msgSend_76( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _cgetnext( - arg0, - arg1, + return __objc_msgSend_76( + obj, + sel, ); } - late final _cgetnextPtr = _lookup< + late final __objc_msgSend_76Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function(ffi.Pointer>, - ffi.Pointer>)>>('cgetnext'); - late final _cgetnext = _cgetnextPtr.asFunction< - int Function(ffi.Pointer>, - ffi.Pointer>)>(); + ffi.UnsignedChar Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_76 = __objc_msgSend_76Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - int cgetnum( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, + late final _sel_shortValue1 = _registerName1("shortValue"); + int _objc_msgSend_77( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _cgetnum( - arg0, - arg1, - arg2, + return __objc_msgSend_77( + obj, + sel, ); } - late final _cgetnumPtr = _lookup< + late final __objc_msgSend_77Ptr = _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)>(); + ffi.Short Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_77 = __objc_msgSend_77Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - int cgetset( - ffi.Pointer arg0, + late final _sel_unsignedShortValue1 = _registerName1("unsignedShortValue"); + int _objc_msgSend_78( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _cgetset( - arg0, + return __objc_msgSend_78( + obj, + sel, ); } - late final _cgetsetPtr = - _lookup)>>( - 'cgetset'); - late final _cgetset = - _cgetsetPtr.asFunction)>(); + late final __objc_msgSend_78Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedShort Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_78 = __objc_msgSend_78Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - int cgetstr( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, + late final _sel_intValue1 = _registerName1("intValue"); + int _objc_msgSend_79( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _cgetstr( - arg0, - arg1, - arg2, + return __objc_msgSend_79( + obj, + sel, ); } - late final _cgetstrPtr = _lookup< + late final __objc_msgSend_79Ptr = _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>)>(); + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_79 = __objc_msgSend_79Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - int cgetustr( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, + late final _sel_unsignedIntValue1 = _registerName1("unsignedIntValue"); + int _objc_msgSend_80( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _cgetustr( - arg0, - arg1, - arg2, + return __objc_msgSend_80( + obj, + sel, ); } - late final _cgetustrPtr = _lookup< + late final __objc_msgSend_80Ptr = _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>)>(); + ffi.UnsignedInt Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_80 = __objc_msgSend_80Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - int daemon( - int arg0, - int arg1, + late final _sel_longValue1 = _registerName1("longValue"); + int _objc_msgSend_81( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _daemon( - arg0, - arg1, + return __objc_msgSend_81( + obj, + sel, ); } - late final _daemonPtr = - _lookup>('daemon'); - late final _daemon = _daemonPtr.asFunction(); + late final __objc_msgSend_81Ptr = _lookup< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_81 = __objc_msgSend_81Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer devname( - int arg0, - int arg1, + late final _sel_unsignedLongValue1 = _registerName1("unsignedLongValue"); + late final _sel_longLongValue1 = _registerName1("longLongValue"); + int _objc_msgSend_82( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _devname( - arg0, - arg1, + return __objc_msgSend_82( + obj, + sel, ); } - late final _devnamePtr = _lookup< - ffi.NativeFunction Function(dev_t, mode_t)>>( - 'devname'); - late final _devname = - _devnamePtr.asFunction Function(int, int)>(); + late final __objc_msgSend_82Ptr = _lookup< + ffi.NativeFunction< + ffi.LongLong Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_82 = __objc_msgSend_82Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer devname_r( - int arg0, - int arg1, - ffi.Pointer buf, - int len, + late final _sel_unsignedLongLongValue1 = + _registerName1("unsignedLongLongValue"); + int _objc_msgSend_83( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _devname_r( - arg0, - arg1, - buf, - len, + return __objc_msgSend_83( + obj, + sel, ); } - late final _devname_rPtr = _lookup< + late final __objc_msgSend_83Ptr = _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)>(); + ffi.UnsignedLongLong Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_83 = __objc_msgSend_83Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer getbsize( - ffi.Pointer arg0, - ffi.Pointer arg1, + late final _sel_floatValue1 = _registerName1("floatValue"); + double _objc_msgSend_84( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _getbsize( - arg0, - arg1, + return __objc_msgSend_84( + obj, + sel, ); } - late final _getbsizePtr = _lookup< + late final __objc_msgSend_84Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('getbsize'); - late final _getbsize = _getbsizePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Float Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_84 = __objc_msgSend_84Ptr.asFunction< + double Function(ffi.Pointer, ffi.Pointer)>(); - int getloadavg( - ffi.Pointer arg0, - int arg1, + late final _sel_doubleValue1 = _registerName1("doubleValue"); + double _objc_msgSend_85( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _getloadavg( - arg0, - arg1, + return __objc_msgSend_85( + obj, + sel, ); } - late final _getloadavgPtr = _lookup< + late final __objc_msgSend_85Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int)>>('getloadavg'); - late final _getloadavg = - _getloadavgPtr.asFunction, int)>(); - - ffi.Pointer getprogname() { - return _getprogname(); - } - - late final _getprognamePtr = - _lookup Function()>>( - 'getprogname'); - late final _getprogname = - _getprognamePtr.asFunction Function()>(); + ffi.Double Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_85 = __objc_msgSend_85Ptr.asFunction< + double Function(ffi.Pointer, ffi.Pointer)>(); - void setprogname( - ffi.Pointer arg0, + late final _sel_boolValue1 = _registerName1("boolValue"); + late final _sel_integerValue1 = _registerName1("integerValue"); + late final _sel_unsignedIntegerValue1 = + _registerName1("unsignedIntegerValue"); + late final _sel_stringValue1 = _registerName1("stringValue"); + int _objc_msgSend_86( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherNumber, ) { - return _setprogname( - arg0, + return __objc_msgSend_86( + obj, + sel, + otherNumber, ); } - late final _setprognamePtr = - _lookup)>>( - 'setprogname'); - late final _setprogname = - _setprognamePtr.asFunction)>(); + late final __objc_msgSend_86Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_86 = __objc_msgSend_86Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - int heapsort( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>> - __compar, + late final _sel_isEqualToNumber_1 = _registerName1("isEqualToNumber:"); + bool _objc_msgSend_87( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer number, ) { - return _heapsort( - __base, - __nel, - __width, - __compar, + return __objc_msgSend_87( + obj, + sel, + number, ); } - late final _heapsortPtr = _lookup< + late final __objc_msgSend_87Ptr = _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, - int, - int, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_87 = __objc_msgSend_87Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - int heapsort_b( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer<_ObjCBlock> __compar, + late final _sel_descriptionWithLocale_1 = + _registerName1("descriptionWithLocale:"); + ffi.Pointer _objc_msgSend_88( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer locale, ) { - return _heapsort_b( - __base, - __nel, - __width, - __compar, + return __objc_msgSend_88( + obj, + sel, + locale, ); } - late final _heapsort_bPtr = _lookup< + late final __objc_msgSend_88Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Size, - ffi.Pointer<_ObjCBlock>)>>('heapsort_b'); - late final _heapsort_b = _heapsort_bPtr.asFunction< - int Function(ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_88 = __objc_msgSend_88Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - int mergesort( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>> - __compar, + late final _sel_numberWithChar_1 = _registerName1("numberWithChar:"); + late final _sel_numberWithUnsignedChar_1 = + _registerName1("numberWithUnsignedChar:"); + late final _sel_numberWithShort_1 = _registerName1("numberWithShort:"); + late final _sel_numberWithUnsignedShort_1 = + _registerName1("numberWithUnsignedShort:"); + late final _sel_numberWithInt_1 = _registerName1("numberWithInt:"); + late final _sel_numberWithUnsignedInt_1 = + _registerName1("numberWithUnsignedInt:"); + late final _sel_numberWithLong_1 = _registerName1("numberWithLong:"); + late final _sel_numberWithUnsignedLong_1 = + _registerName1("numberWithUnsignedLong:"); + late final _sel_numberWithLongLong_1 = _registerName1("numberWithLongLong:"); + late final _sel_numberWithUnsignedLongLong_1 = + _registerName1("numberWithUnsignedLongLong:"); + late final _sel_numberWithFloat_1 = _registerName1("numberWithFloat:"); + late final _sel_numberWithDouble_1 = _registerName1("numberWithDouble:"); + late final _sel_numberWithBool_1 = _registerName1("numberWithBool:"); + late final _sel_numberWithInteger_1 = _registerName1("numberWithInteger:"); + late final _sel_numberWithUnsignedInteger_1 = + _registerName1("numberWithUnsignedInteger:"); + late final _sel_port1 = _registerName1("port"); + ffi.Pointer _objc_msgSend_89( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _mergesort( - __base, - __nel, - __width, - __compar, + return __objc_msgSend_89( + obj, + sel, ); } - late final _mergesortPtr = _lookup< + late final __objc_msgSend_89Ptr = _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, - int, - int, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_89 = __objc_msgSend_89Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - int mergesort_b( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer<_ObjCBlock> __compar, + late final _sel_user1 = _registerName1("user"); + late final _sel_password1 = _registerName1("password"); + late final _sel_path1 = _registerName1("path"); + late final _sel_fragment1 = _registerName1("fragment"); + late final _sel_parameterString1 = _registerName1("parameterString"); + late final _sel_query1 = _registerName1("query"); + late final _sel_relativePath1 = _registerName1("relativePath"); + late final _sel_hasDirectoryPath1 = _registerName1("hasDirectoryPath"); + late final _sel_getFileSystemRepresentation_maxLength_1 = + _registerName1("getFileSystemRepresentation:maxLength:"); + bool _objc_msgSend_90( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer buffer, + int maxBufferLength, ) { - return _mergesort_b( - __base, - __nel, - __width, - __compar, + return __objc_msgSend_90( + obj, + sel, + buffer, + maxBufferLength, ); } - late final _mergesort_bPtr = _lookup< + late final __objc_msgSend_90Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Size, - ffi.Pointer<_ObjCBlock>)>>('mergesort_b'); - late final _mergesort_b = _mergesort_bPtr.asFunction< - int Function(ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_90 = __objc_msgSend_90Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - void psort( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>> - __compar, + late final _sel_fileSystemRepresentation1 = + _registerName1("fileSystemRepresentation"); + late final _sel_isFileURL1 = _registerName1("isFileURL"); + late final _sel_standardizedURL1 = _registerName1("standardizedURL"); + late final _class_NSError1 = _getClass1("NSError"); + late final _class_NSDictionary1 = _getClass1("NSDictionary"); + late final _sel_count1 = _registerName1("count"); + late final _sel_objectForKey_1 = _registerName1("objectForKey:"); + ffi.Pointer _objc_msgSend_91( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aKey, ) { - return _psort( - __base, - __nel, - __width, - __compar, + return __objc_msgSend_91( + obj, + sel, + aKey, ); } - late final _psortPtr = _lookup< + late final __objc_msgSend_91Ptr = _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, - int, - int, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_91 = __objc_msgSend_91Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void psort_b( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer<_ObjCBlock> __compar, + late final _class_NSEnumerator1 = _getClass1("NSEnumerator"); + late final _sel_nextObject1 = _registerName1("nextObject"); + late final _sel_allObjects1 = _registerName1("allObjects"); + late final _sel_keyEnumerator1 = _registerName1("keyEnumerator"); + ffi.Pointer _objc_msgSend_92( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _psort_b( - __base, - __nel, - __width, - __compar, + return __objc_msgSend_92( + obj, + sel, ); } - late final _psort_bPtr = _lookup< + late final __objc_msgSend_92Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Size, ffi.Size, - ffi.Pointer<_ObjCBlock>)>>('psort_b'); - late final _psort_b = _psort_bPtr.asFunction< - void Function( - ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_92 = __objc_msgSend_92Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - void psort_r( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer arg3, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>> - __compar, + late final _sel_initWithObjects_forKeys_count_1 = + _registerName1("initWithObjects:forKeys:count:"); + instancetype _objc_msgSend_93( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt, ) { - return _psort_r( - __base, - __nel, - __width, - arg3, - __compar, + return __objc_msgSend_93( + obj, + sel, + objects, + keys, + cnt, ); } - late final _psort_rPtr = _lookup< + late final __objc_msgSend_93Ptr = _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, - int, - int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_93 = __objc_msgSend_93Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int)>(); - void qsort_b( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer<_ObjCBlock> __compar, + late final _class_NSArray1 = _getClass1("NSArray"); + late final _sel_objectAtIndex_1 = _registerName1("objectAtIndex:"); + ffi.Pointer _objc_msgSend_94( + ffi.Pointer obj, + ffi.Pointer sel, + int index, ) { - return _qsort_b( - __base, - __nel, - __width, - __compar, + return __objc_msgSend_94( + obj, + sel, + index, ); } - late final _qsort_bPtr = _lookup< + late final __objc_msgSend_94Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Size, ffi.Size, - ffi.Pointer<_ObjCBlock>)>>('qsort_b'); - late final _qsort_b = _qsort_bPtr.asFunction< - void Function( - ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_94 = __objc_msgSend_94Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - void qsort_r( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer arg3, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>> - __compar, + late final _sel_initWithObjects_count_1 = + _registerName1("initWithObjects:count:"); + instancetype _objc_msgSend_95( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> objects, + int cnt, ) { - return _qsort_r( - __base, - __nel, - __width, - arg3, - __compar, + return __objc_msgSend_95( + obj, + sel, + objects, + cnt, ); } - late final _qsort_rPtr = _lookup< + late final __objc_msgSend_95Ptr = _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)>>)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_95 = __objc_msgSend_95Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>, int)>(); - int radixsort( - ffi.Pointer> __base, - int __nel, - ffi.Pointer __table, - int __endbyte, + late final _sel_arrayByAddingObject_1 = + _registerName1("arrayByAddingObject:"); + ffi.Pointer _objc_msgSend_96( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, ) { - return _radixsort( - __base, - __nel, - __table, - __endbyte, + return __objc_msgSend_96( + obj, + sel, + anObject, ); } - late final _radixsortPtr = _lookup< + late final __objc_msgSend_96Ptr = _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)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_96 = __objc_msgSend_96Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - int rpmatch( - ffi.Pointer arg0, + late final _sel_arrayByAddingObjectsFromArray_1 = + _registerName1("arrayByAddingObjectsFromArray:"); + ffi.Pointer _objc_msgSend_97( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherArray, ) { - return _rpmatch( - arg0, + return __objc_msgSend_97( + obj, + sel, + otherArray, ); } - late final _rpmatchPtr = - _lookup)>>( - 'rpmatch'); - late final _rpmatch = - _rpmatchPtr.asFunction)>(); + late final __objc_msgSend_97Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_97 = __objc_msgSend_97Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - int sradixsort( - ffi.Pointer> __base, - int __nel, - ffi.Pointer __table, - int __endbyte, + late final _sel_componentsJoinedByString_1 = + _registerName1("componentsJoinedByString:"); + ffi.Pointer _objc_msgSend_98( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer separator, ) { - return _sradixsort( - __base, - __nel, - __table, - __endbyte, + return __objc_msgSend_98( + obj, + sel, + separator, ); } - late final _sradixsortPtr = _lookup< + late final __objc_msgSend_98Ptr = _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 _sranddev = _sranddevPtr.asFunction(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_98 = __objc_msgSend_98Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void srandomdev() { - return _srandomdev(); + late final _sel_containsObject_1 = _registerName1("containsObject:"); + late final _sel_descriptionWithLocale_indent_1 = + _registerName1("descriptionWithLocale:indent:"); + ffi.Pointer _objc_msgSend_99( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer locale, + int level, + ) { + return __objc_msgSend_99( + obj, + sel, + locale, + level, + ); } - late final _srandomdevPtr = - _lookup>('srandomdev'); - late final _srandomdev = _srandomdevPtr.asFunction(); + late final __objc_msgSend_99Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_99 = __objc_msgSend_99Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); - ffi.Pointer reallocf( - ffi.Pointer __ptr, - int __size, + late final _sel_firstObjectCommonWithArray_1 = + _registerName1("firstObjectCommonWithArray:"); + ffi.Pointer _objc_msgSend_100( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherArray, ) { - return _reallocf( - __ptr, - __size, + return __objc_msgSend_100( + obj, + sel, + otherArray, ); } - late final _reallocfPtr = _lookup< + late final __objc_msgSend_100Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Size)>>('reallocf'); - late final _reallocf = _reallocfPtr - .asFunction Function(ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_100 = __objc_msgSend_100Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - int strtonum( - ffi.Pointer __numstr, - int __minval, - int __maxval, - ffi.Pointer> __errstrp, + late final _sel_getObjects_range_1 = _registerName1("getObjects:range:"); + void _objc_msgSend_101( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> objects, + NSRange range, ) { - return _strtonum( - __numstr, - __minval, - __maxval, - __errstrp, + return __objc_msgSend_101( + obj, + sel, + objects, + range, ); } - late final _strtonumPtr = _lookup< + late final __objc_msgSend_101Ptr = _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>)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_101 = __objc_msgSend_101Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>, NSRange)>(); - int strtoq( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, + late final _sel_indexOfObject_1 = _registerName1("indexOfObject:"); + int _objc_msgSend_102( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, ) { - return _strtoq( - __str, - __endptr, - __base, + return __objc_msgSend_102( + obj, + sel, + anObject, ); } - late final _strtoqPtr = _lookup< + late final __objc_msgSend_102Ptr = _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, - ); - } - - 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'); - - ffi.Pointer get suboptarg => _suboptarg.value; - - set suboptarg(ffi.Pointer value) => _suboptarg.value = value; + NSUInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_102 = __objc_msgSend_102Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - int __darwin_check_fd_set_overflow( - int arg0, - ffi.Pointer arg1, - int arg2, + late final _sel_indexOfObject_inRange_1 = + _registerName1("indexOfObject:inRange:"); + int _objc_msgSend_103( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, + NSRange range, ) { - return ___darwin_check_fd_set_overflow( - arg0, - arg1, - arg2, + return __objc_msgSend_103( + obj, + sel, + anObject, + range, ); } - late final ___darwin_check_fd_set_overflowPtr = _lookup< + late final __objc_msgSend_103Ptr = _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)>(); + NSUInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_103 = __objc_msgSend_103Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSRange)>(); - ffi.Pointer sel_getName( + late final _sel_indexOfObjectIdenticalTo_1 = + _registerName1("indexOfObjectIdenticalTo:"); + late final _sel_indexOfObjectIdenticalTo_inRange_1 = + _registerName1("indexOfObjectIdenticalTo:inRange:"); + late final _sel_isEqualToArray_1 = _registerName1("isEqualToArray:"); + bool _objc_msgSend_104( + ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer otherArray, ) { - return _sel_getName( + return __objc_msgSend_104( + obj, sel, + otherArray, ); } - late final _sel_getNamePtr = _lookup< + late final __objc_msgSend_104Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('sel_getName'); - late final _sel_getName = _sel_getNamePtr - .asFunction Function(ffi.Pointer)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_104 = __objc_msgSend_104Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - ffi.Pointer sel_registerName( - ffi.Pointer str, + late final _sel_firstObject1 = _registerName1("firstObject"); + late final _sel_lastObject1 = _registerName1("lastObject"); + late final _sel_objectEnumerator1 = _registerName1("objectEnumerator"); + late final _sel_reverseObjectEnumerator1 = + _registerName1("reverseObjectEnumerator"); + late final _sel_sortedArrayHint1 = _registerName1("sortedArrayHint"); + late final _sel_sortedArrayUsingFunction_context_1 = + _registerName1("sortedArrayUsingFunction:context:"); + ffi.Pointer _objc_msgSend_105( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + comparator, + ffi.Pointer context, ) { - return _sel_registerName1( - str, + return __objc_msgSend_105( + obj, + sel, + comparator, + context, ); } - late final _sel_registerNamePtr = _lookup< + late final __objc_msgSend_105Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('sel_registerName'); - late final _sel_registerName1 = _sel_registerNamePtr - .asFunction Function(ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_105 = __objc_msgSend_105Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>, + ffi.Pointer)>(); - ffi.Pointer object_getClassName( + late final _sel_sortedArrayUsingFunction_context_hint_1 = + _registerName1("sortedArrayUsingFunction:context:hint:"); + ffi.Pointer _objc_msgSend_106( ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + comparator, + ffi.Pointer context, + ffi.Pointer hint, ) { - return _object_getClassName( + return __objc_msgSend_106( obj, + sel, + comparator, + context, + hint, ); } - late final _object_getClassNamePtr = _lookup< + late final __objc_msgSend_106Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('object_getClassName'); - late final _object_getClassName = _object_getClassNamePtr - .asFunction Function(ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_106 = __objc_msgSend_106Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>, + ffi.Pointer, + ffi.Pointer)>(); - ffi.Pointer object_getIndexedIvars( + late final _sel_sortedArrayUsingSelector_1 = + _registerName1("sortedArrayUsingSelector:"); + ffi.Pointer _objc_msgSend_107( ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer comparator, ) { - return _object_getIndexedIvars( + return __objc_msgSend_107( obj, + sel, + comparator, ); } - late final _object_getIndexedIvarsPtr = _lookup< + late final __objc_msgSend_107Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('object_getIndexedIvars'); - late final _object_getIndexedIvars = _object_getIndexedIvarsPtr - .asFunction Function(ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_107 = __objc_msgSend_107Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - bool sel_isMapped( + late final _sel_subarrayWithRange_1 = _registerName1("subarrayWithRange:"); + ffi.Pointer _objc_msgSend_108( + ffi.Pointer obj, ffi.Pointer sel, + NSRange range, ) { - return _sel_isMapped( + return __objc_msgSend_108( + obj, sel, + range, ); } - late final _sel_isMappedPtr = - _lookup)>>( - 'sel_isMapped'); - late final _sel_isMapped = - _sel_isMappedPtr.asFunction)>(); - - ffi.Pointer sel_getUid( - ffi.Pointer str, - ) { - return _sel_getUid( - str, - ); - } - - late final _sel_getUidPtr = _lookup< + late final __objc_msgSend_108Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('sel_getUid'); - late final _sel_getUid = _sel_getUidPtr - .asFunction Function(ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_108 = __objc_msgSend_108Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, NSRange)>(); - ffi.Pointer objc_retainedObject( - objc_objectptr_t obj, + late final _sel_writeToURL_error_1 = _registerName1("writeToURL:error:"); + bool _objc_msgSend_109( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer> error, ) { - return _objc_retainedObject( + return __objc_msgSend_109( obj, + sel, + url, + error, ); } - late final _objc_retainedObjectPtr = _lookup< + late final __objc_msgSend_109Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - objc_objectptr_t)>>('objc_retainedObject'); - late final _objc_retainedObject = _objc_retainedObjectPtr - .asFunction Function(objc_objectptr_t)>(); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_109 = __objc_msgSend_109Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); - ffi.Pointer objc_unretainedObject( - objc_objectptr_t obj, + late final _sel_makeObjectsPerformSelector_1 = + _registerName1("makeObjectsPerformSelector:"); + late final _sel_makeObjectsPerformSelector_withObject_1 = + _registerName1("makeObjectsPerformSelector:withObject:"); + void _objc_msgSend_110( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ffi.Pointer argument, ) { - return _objc_unretainedObject( + return __objc_msgSend_110( obj, + sel, + aSelector, + argument, ); } - late final _objc_unretainedObjectPtr = _lookup< + late final __objc_msgSend_110Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - objc_objectptr_t)>>('objc_unretainedObject'); - late final _objc_unretainedObject = _objc_unretainedObjectPtr - .asFunction Function(objc_objectptr_t)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_110 = __objc_msgSend_110Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - objc_objectptr_t objc_unretainedPointer( + late final _class_NSIndexSet1 = _getClass1("NSIndexSet"); + late final _sel_indexSet1 = _registerName1("indexSet"); + late final _sel_indexSetWithIndex_1 = _registerName1("indexSetWithIndex:"); + late final _sel_indexSetWithIndexesInRange_1 = + _registerName1("indexSetWithIndexesInRange:"); + instancetype _objc_msgSend_111( ffi.Pointer obj, + ffi.Pointer sel, + NSRange range, ) { - return _objc_unretainedPointer( + return __objc_msgSend_111( obj, + sel, + range, ); } - late final _objc_unretainedPointerPtr = _lookup< + late final __objc_msgSend_111Ptr = _lookup< ffi.NativeFunction< - objc_objectptr_t Function( - ffi.Pointer)>>('objc_unretainedPointer'); - late final _objc_unretainedPointer = _objc_unretainedPointerPtr - .asFunction)>(); - - ffi.Pointer _registerName1(String name) { - final cstr = name.toNativeUtf8(); - final sel = _sel_registerName(cstr.cast()); - pkg_ffi.calloc.free(cstr); - return sel; - } + instancetype Function(ffi.Pointer, ffi.Pointer, + NSRange)>>('objc_msgSend'); + late final __objc_msgSend_111 = __objc_msgSend_111Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, NSRange)>(); - ffi.Pointer _sel_registerName( - ffi.Pointer str, + late final _sel_initWithIndexesInRange_1 = + _registerName1("initWithIndexesInRange:"); + late final _sel_initWithIndexSet_1 = _registerName1("initWithIndexSet:"); + instancetype _objc_msgSend_112( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer indexSet, ) { - return __sel_registerName( - str, + return __objc_msgSend_112( + obj, + sel, + indexSet, ); } - late final __sel_registerNamePtr = _lookup< + late final __objc_msgSend_112Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('sel_registerName'); - late final __sel_registerName = __sel_registerNamePtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer _getClass1(String name) { - final cstr = name.toNativeUtf8(); - final clazz = _objc_getClass(cstr.cast()); - pkg_ffi.calloc.free(cstr); - if (clazz == ffi.nullptr) { - throw Exception('Failed to load Objective-C class: $name'); - } - return clazz; - } + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_112 = __objc_msgSend_112Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - ffi.Pointer _objc_getClass( - ffi.Pointer str, + late final _sel_initWithIndex_1 = _registerName1("initWithIndex:"); + late final _sel_isEqualToIndexSet_1 = _registerName1("isEqualToIndexSet:"); + bool _objc_msgSend_113( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer indexSet, ) { - return __objc_getClass( - str, + return __objc_msgSend_113( + obj, + sel, + indexSet, ); } - late final __objc_getClassPtr = _lookup< + late final __objc_msgSend_113Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('objc_getClass'); - late final __objc_getClass = __objc_getClassPtr - .asFunction Function(ffi.Pointer)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_113 = __objc_msgSend_113Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - ffi.Pointer _objc_retain( - ffi.Pointer value, + late final _sel_firstIndex1 = _registerName1("firstIndex"); + late final _sel_lastIndex1 = _registerName1("lastIndex"); + late final _sel_indexGreaterThanIndex_1 = + _registerName1("indexGreaterThanIndex:"); + int _objc_msgSend_114( + ffi.Pointer obj, + ffi.Pointer sel, + int value, ) { - return __objc_retain( + return __objc_msgSend_114( + obj, + sel, value, ); } - late final __objc_retainPtr = _lookup< + late final __objc_msgSend_114Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('objc_retain'); - late final __objc_retain = __objc_retainPtr - .asFunction Function(ffi.Pointer)>(); - - void _objc_release( - ffi.Pointer value, - ) { - return __objc_release( - value, - ); - } - - late final __objc_releasePtr = - _lookup)>>( - 'objc_release'); - late final __objc_release = - __objc_releasePtr.asFunction)>(); + NSUInteger Function(ffi.Pointer, ffi.Pointer, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_114 = __objc_msgSend_114Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _objc_releaseFinalizer11 = - ffi.NativeFinalizer(__objc_releasePtr.cast()); - late final _class_NSObject1 = _getClass1("NSObject"); - late final _sel_load1 = _registerName1("load"); - void _objc_msgSend_1( + late final _sel_indexLessThanIndex_1 = _registerName1("indexLessThanIndex:"); + late final _sel_indexGreaterThanOrEqualToIndex_1 = + _registerName1("indexGreaterThanOrEqualToIndex:"); + late final _sel_indexLessThanOrEqualToIndex_1 = + _registerName1("indexLessThanOrEqualToIndex:"); + late final _sel_getIndexes_maxCount_inIndexRange_1 = + _registerName1("getIndexes:maxCount:inIndexRange:"); + int _objc_msgSend_115( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer indexBuffer, + int bufferSize, + NSRangePointer range, ) { - return __objc_msgSend_1( + return __objc_msgSend_115( obj, sel, + indexBuffer, + bufferSize, + range, ); } - late final __objc_msgSend_1Ptr = _lookup< + late final __objc_msgSend_115Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1 = __objc_msgSend_1Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer)>(); + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSRangePointer)>>('objc_msgSend'); + late final __objc_msgSend_115 = __objc_msgSend_115Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, NSRangePointer)>(); - late final _sel_initialize1 = _registerName1("initialize"); - late final _sel_init1 = _registerName1("init"); - instancetype _objc_msgSend_2( + late final _sel_countOfIndexesInRange_1 = + _registerName1("countOfIndexesInRange:"); + int _objc_msgSend_116( ffi.Pointer obj, ffi.Pointer sel, + NSRange range, ) { - return __objc_msgSend_2( + return __objc_msgSend_116( obj, sel, + range, ); } - late final __objc_msgSend_2Ptr = _lookup< + late final __objc_msgSend_116Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_2 = __objc_msgSend_2Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer)>(); + NSUInteger Function(ffi.Pointer, ffi.Pointer, + NSRange)>>('objc_msgSend'); + late final __objc_msgSend_116 = __objc_msgSend_116Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, NSRange)>(); - late final _sel_new1 = _registerName1("new"); - late final _sel_allocWithZone_1 = _registerName1("allocWithZone:"); - instancetype _objc_msgSend_3( + late final _sel_containsIndex_1 = _registerName1("containsIndex:"); + bool _objc_msgSend_117( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_NSZone> zone, + int value, ) { - return __objc_msgSend_3( + return __objc_msgSend_117( obj, sel, - zone, + value, ); } - late final __objc_msgSend_3Ptr = _lookup< + late final __objc_msgSend_117Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_NSZone>)>>('objc_msgSend'); - late final __objc_msgSend_3 = __objc_msgSend_3Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_NSZone>)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_117 = __objc_msgSend_117Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_alloc1 = _registerName1("alloc"); - late final _sel_dealloc1 = _registerName1("dealloc"); - late final _sel_finalize1 = _registerName1("finalize"); - late final _sel_copy1 = _registerName1("copy"); - late final _sel_mutableCopy1 = _registerName1("mutableCopy"); - late final _sel_copyWithZone_1 = _registerName1("copyWithZone:"); - late final _sel_mutableCopyWithZone_1 = - _registerName1("mutableCopyWithZone:"); - late final _sel_instancesRespondToSelector_1 = - _registerName1("instancesRespondToSelector:"); - bool _objc_msgSend_4( + late final _sel_containsIndexesInRange_1 = + _registerName1("containsIndexesInRange:"); + bool _objc_msgSend_118( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aSelector, + NSRange range, ) { - return __objc_msgSend_4( + return __objc_msgSend_118( obj, sel, - aSelector, + range, ); } - late final __objc_msgSend_4Ptr = _lookup< + late final __objc_msgSend_118Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_4 = __objc_msgSend_4Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + NSRange)>>('objc_msgSend'); + late final __objc_msgSend_118 = __objc_msgSend_118Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, NSRange)>(); - bool _objc_msgSend_0( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer clazz, + late final _sel_containsIndexes_1 = _registerName1("containsIndexes:"); + late final _sel_intersectsIndexesInRange_1 = + _registerName1("intersectsIndexesInRange:"); + ffi.Pointer<_ObjCBlockDesc> _newBlockDesc1() { + final d = + pkg_ffi.calloc.allocate<_ObjCBlockDesc>(ffi.sizeOf<_ObjCBlockDesc>()); + d.ref.reserved = 0; + d.ref.size = ffi.sizeOf<_ObjCBlock>(); + d.ref.copy_helper = ffi.nullptr; + d.ref.dispose_helper = ffi.nullptr; + d.ref.signature = ffi.nullptr; + return d; + } + + late final _objc_block_desc1 = _newBlockDesc1(); + late final _objc_concrete_global_block1 = + _lookup('_NSConcreteGlobalBlock'); + ffi.Pointer<_ObjCBlock> _newBlock1( + ffi.Pointer invoke, ffi.Pointer target) { + final b = pkg_ffi.calloc.allocate<_ObjCBlock>(ffi.sizeOf<_ObjCBlock>()); + b.ref.isa = _objc_concrete_global_block1; + b.ref.flags = 0; + b.ref.reserved = 0; + b.ref.invoke = invoke; + b.ref.target = target; + b.ref.descriptor = _objc_block_desc1; + final copy = _Block_copy(b.cast()).cast<_ObjCBlock>(); + pkg_ffi.calloc.free(b); + return copy; + } + + ffi.Pointer _Block_copy( + ffi.Pointer value, ) { - return __objc_msgSend_0( - obj, - sel, - clazz, + return __Block_copy( + value, ); } - late final __objc_msgSend_0Ptr = _lookup< + late final __Block_copyPtr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_0 = __objc_msgSend_0Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer)>>('_Block_copy'); + late final __Block_copy = __Block_copyPtr + .asFunction Function(ffi.Pointer)>(); - late final _sel_isKindOfClass_1 = _registerName1("isKindOfClass:"); - late final _class_Protocol1 = _getClass1("Protocol"); - late final _sel_conformsToProtocol_1 = _registerName1("conformsToProtocol:"); - bool _objc_msgSend_5( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer protocol, + void _Block_release( + ffi.Pointer value, ) { - return __objc_msgSend_5( - obj, - sel, - protocol, + return __Block_release( + value, ); } - late final __objc_msgSend_5Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_5 = __objc_msgSend_5Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final __Block_releasePtr = + _lookup)>>( + '_Block_release'); + late final __Block_release = + __Block_releasePtr.asFunction)>(); - late final _sel_methodForSelector_1 = _registerName1("methodForSelector:"); - IMP _objc_msgSend_6( + late final _objc_releaseFinalizer11 = + ffi.NativeFinalizer(__Block_releasePtr.cast()); + late final _sel_enumerateIndexesUsingBlock_1 = + _registerName1("enumerateIndexesUsingBlock:"); + void _objc_msgSend_119( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aSelector, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_6( + return __objc_msgSend_119( obj, sel, - aSelector, + block, ); } - late final __objc_msgSend_6Ptr = _lookup< + late final __objc_msgSend_119Ptr = _lookup< ffi.NativeFunction< - IMP Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_6 = __objc_msgSend_6Ptr.asFunction< - IMP Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_119 = __objc_msgSend_119Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_instanceMethodForSelector_1 = - _registerName1("instanceMethodForSelector:"); - late final _sel_doesNotRecognizeSelector_1 = - _registerName1("doesNotRecognizeSelector:"); - void _objc_msgSend_7( + late final _sel_enumerateIndexesWithOptions_usingBlock_1 = + _registerName1("enumerateIndexesWithOptions:usingBlock:"); + void _objc_msgSend_120( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aSelector, + int opts, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_7( + return __objc_msgSend_120( obj, sel, - aSelector, + opts, + block, ); } - late final __objc_msgSend_7Ptr = _lookup< + late final __objc_msgSend_120Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_7 = __objc_msgSend_7Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_120 = __objc_msgSend_120Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_forwardingTargetForSelector_1 = - _registerName1("forwardingTargetForSelector:"); - ffi.Pointer _objc_msgSend_8( + late final _sel_enumerateIndexesInRange_options_usingBlock_1 = + _registerName1("enumerateIndexesInRange:options:usingBlock:"); + void _objc_msgSend_121( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aSelector, + NSRange range, + int opts, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_8( + return __objc_msgSend_121( obj, sel, - aSelector, + range, + opts, + block, ); } - late final __objc_msgSend_8Ptr = _lookup< + late final __objc_msgSend_121Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_8 = __objc_msgSend_8Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_121 = __objc_msgSend_121Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, NSRange, int, + ffi.Pointer<_ObjCBlock>)>(); - late final _class_NSInvocation1 = _getClass1("NSInvocation"); - late final _sel_forwardInvocation_1 = _registerName1("forwardInvocation:"); - void _objc_msgSend_9( + late final _sel_indexPassingTest_1 = _registerName1("indexPassingTest:"); + int _objc_msgSend_122( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anInvocation, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_9( + return __objc_msgSend_122( obj, sel, - anInvocation, + predicate, ); } - late final __objc_msgSend_9Ptr = _lookup< + late final __objc_msgSend_122Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_9 = __objc_msgSend_9Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + NSUInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_122 = __objc_msgSend_122Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _class_NSMethodSignature1 = _getClass1("NSMethodSignature"); - late final _sel_methodSignatureForSelector_1 = - _registerName1("methodSignatureForSelector:"); - ffi.Pointer _objc_msgSend_10( + late final _sel_indexWithOptions_passingTest_1 = + _registerName1("indexWithOptions:passingTest:"); + int _objc_msgSend_123( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aSelector, + int opts, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_10( + return __objc_msgSend_123( obj, sel, - aSelector, + opts, + predicate, ); } - late final __objc_msgSend_10Ptr = _lookup< + late final __objc_msgSend_123Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_10 = __objc_msgSend_10Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + NSUInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_123 = __objc_msgSend_123Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_instanceMethodSignatureForSelector_1 = - _registerName1("instanceMethodSignatureForSelector:"); - late final _sel_allowsWeakReference1 = _registerName1("allowsWeakReference"); - bool _objc_msgSend_11( + late final _sel_indexInRange_options_passingTest_1 = + _registerName1("indexInRange:options:passingTest:"); + int _objc_msgSend_124( ffi.Pointer obj, ffi.Pointer sel, + NSRange range, + int opts, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_11( + return __objc_msgSend_124( obj, sel, + range, + opts, + predicate, ); } - late final __objc_msgSend_11Ptr = _lookup< + late final __objc_msgSend_124Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_11 = __objc_msgSend_11Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer)>(); + NSUInteger Function(ffi.Pointer, ffi.Pointer, + NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_124 = __objc_msgSend_124Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, NSRange, int, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_retainWeakReference1 = _registerName1("retainWeakReference"); - late final _sel_isSubclassOfClass_1 = _registerName1("isSubclassOfClass:"); - late final _sel_resolveClassMethod_1 = _registerName1("resolveClassMethod:"); - late final _sel_resolveInstanceMethod_1 = - _registerName1("resolveInstanceMethod:"); - late final _sel_hash1 = _registerName1("hash"); - int _objc_msgSend_12( + late final _sel_indexesPassingTest_1 = _registerName1("indexesPassingTest:"); + ffi.Pointer _objc_msgSend_125( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_12( + return __objc_msgSend_125( obj, sel, + predicate, ); } - late final __objc_msgSend_12Ptr = _lookup< + late final __objc_msgSend_125Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_12 = __objc_msgSend_12Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_125 = __objc_msgSend_125Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_superclass1 = _registerName1("superclass"); - late final _sel_class1 = _registerName1("class"); - late final _class_NSString1 = _getClass1("NSString"); - late final _sel_length1 = _registerName1("length"); - late final _sel_characterAtIndex_1 = _registerName1("characterAtIndex:"); - int _objc_msgSend_13( + late final _sel_indexesWithOptions_passingTest_1 = + _registerName1("indexesWithOptions:passingTest:"); + ffi.Pointer _objc_msgSend_126( ffi.Pointer obj, ffi.Pointer sel, - int index, + int opts, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_13( + return __objc_msgSend_126( obj, sel, - index, + opts, + predicate, ); } - late final __objc_msgSend_13Ptr = _lookup< + late final __objc_msgSend_126Ptr = _lookup< ffi.NativeFunction< - unichar Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_13 = __objc_msgSend_13Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_126 = __objc_msgSend_126Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - late final _class_NSCoder1 = _getClass1("NSCoder"); - late final _sel_initWithCoder_1 = _registerName1("initWithCoder:"); - instancetype _objc_msgSend_14( + late final _sel_indexesInRange_options_passingTest_1 = + _registerName1("indexesInRange:options:passingTest:"); + ffi.Pointer _objc_msgSend_127( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer coder, + NSRange range, + int opts, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_14( + return __objc_msgSend_127( obj, sel, - coder, + range, + opts, + predicate, ); } - late final __objc_msgSend_14Ptr = _lookup< + late final __objc_msgSend_127Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_14 = __objc_msgSend_14Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_127 = __objc_msgSend_127Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSRange, int, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_substringFromIndex_1 = _registerName1("substringFromIndex:"); - ffi.Pointer _objc_msgSend_15( + late final _sel_enumerateRangesUsingBlock_1 = + _registerName1("enumerateRangesUsingBlock:"); + void _objc_msgSend_128( ffi.Pointer obj, ffi.Pointer sel, - int from, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_15( + return __objc_msgSend_128( obj, sel, - from, + block, ); } - late final __objc_msgSend_15Ptr = _lookup< + late final __objc_msgSend_128Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_15 = __objc_msgSend_15Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_128 = __objc_msgSend_128Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_substringToIndex_1 = _registerName1("substringToIndex:"); - late final _sel_substringWithRange_1 = _registerName1("substringWithRange:"); - ffi.Pointer _objc_msgSend_16( + late final _sel_enumerateRangesWithOptions_usingBlock_1 = + _registerName1("enumerateRangesWithOptions:usingBlock:"); + void _objc_msgSend_129( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + int opts, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_16( + return __objc_msgSend_129( obj, sel, - range, + opts, + block, ); } - late final __objc_msgSend_16Ptr = _lookup< + late final __objc_msgSend_129Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_16 = __objc_msgSend_16Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_129 = __objc_msgSend_129Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_getCharacters_range_1 = - _registerName1("getCharacters:range:"); - void _objc_msgSend_17( + late final _sel_enumerateRangesInRange_options_usingBlock_1 = + _registerName1("enumerateRangesInRange:options:usingBlock:"); + void _objc_msgSend_130( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer buffer, NSRange range, + int opts, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_17( + return __objc_msgSend_130( obj, sel, - buffer, range, + opts, + block, ); } - late final __objc_msgSend_17Ptr = _lookup< + late final __objc_msgSend_130Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_17 = __objc_msgSend_17Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_130 = __objc_msgSend_130Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, NSRange, int, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_compare_1 = _registerName1("compare:"); - int _objc_msgSend_18( + late final _sel_objectsAtIndexes_1 = _registerName1("objectsAtIndexes:"); + ffi.Pointer _objc_msgSend_131( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, + ffi.Pointer indexes, ) { - return __objc_msgSend_18( + return __objc_msgSend_131( obj, sel, - string, + indexes, ); } - late final __objc_msgSend_18Ptr = _lookup< + late final __objc_msgSend_131Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_18 = __objc_msgSend_18Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_131 = __objc_msgSend_131Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_compare_options_1 = _registerName1("compare:options:"); - int _objc_msgSend_19( + late final _sel_objectAtIndexedSubscript_1 = + _registerName1("objectAtIndexedSubscript:"); + late final _sel_enumerateObjectsUsingBlock_1 = + _registerName1("enumerateObjectsUsingBlock:"); + void _objc_msgSend_132( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, - int mask, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_19( + return __objc_msgSend_132( obj, sel, - string, - mask, + block, ); } - late final __objc_msgSend_19Ptr = _lookup< + late final __objc_msgSend_132Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_19 = __objc_msgSend_19Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_132 = __objc_msgSend_132Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_compare_options_range_1 = - _registerName1("compare:options:range:"); - int _objc_msgSend_20( + late final _sel_enumerateObjectsWithOptions_usingBlock_1 = + _registerName1("enumerateObjectsWithOptions:usingBlock:"); + void _objc_msgSend_133( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, - int mask, - NSRange rangeOfReceiverToCompare, + int opts, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_20( + return __objc_msgSend_133( obj, sel, - string, - mask, - rangeOfReceiverToCompare, + opts, + block, ); } - late final __objc_msgSend_20Ptr = _lookup< + late final __objc_msgSend_133Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_20 = __objc_msgSend_20Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_133 = __objc_msgSend_133Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_compare_options_range_locale_1 = - _registerName1("compare:options:range:locale:"); - int _objc_msgSend_21( + late final _sel_enumerateObjectsAtIndexes_options_usingBlock_1 = + _registerName1("enumerateObjectsAtIndexes:options:usingBlock:"); + void _objc_msgSend_134( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, - int mask, - NSRange rangeOfReceiverToCompare, - ffi.Pointer locale, + ffi.Pointer s, + int opts, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_21( + return __objc_msgSend_134( obj, sel, - string, - mask, - rangeOfReceiverToCompare, - locale, + s, + opts, + block, ); } - late final __objc_msgSend_21Ptr = _lookup< + late final __objc_msgSend_134Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_21 = __objc_msgSend_21Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange, ffi.Pointer)>(); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_134 = __objc_msgSend_134Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_caseInsensitiveCompare_1 = - _registerName1("caseInsensitiveCompare:"); - late final _sel_localizedCompare_1 = _registerName1("localizedCompare:"); - late final _sel_localizedCaseInsensitiveCompare_1 = - _registerName1("localizedCaseInsensitiveCompare:"); - late final _sel_localizedStandardCompare_1 = - _registerName1("localizedStandardCompare:"); - late final _sel_isEqualToString_1 = _registerName1("isEqualToString:"); - bool _objc_msgSend_22( + late final _sel_indexOfObjectPassingTest_1 = + _registerName1("indexOfObjectPassingTest:"); + int _objc_msgSend_135( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aString, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_22( + return __objc_msgSend_135( obj, sel, - aString, + predicate, ); } - late final __objc_msgSend_22Ptr = _lookup< + late final __objc_msgSend_135Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_22 = __objc_msgSend_22Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + NSUInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_hasPrefix_1 = _registerName1("hasPrefix:"); - late final _sel_hasSuffix_1 = _registerName1("hasSuffix:"); - late final _sel_commonPrefixWithString_options_1 = - _registerName1("commonPrefixWithString:options:"); - ffi.Pointer _objc_msgSend_23( + late final _sel_indexOfObjectWithOptions_passingTest_1 = + _registerName1("indexOfObjectWithOptions:passingTest:"); + int _objc_msgSend_136( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer str, - int mask, + int opts, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_23( + return __objc_msgSend_136( obj, sel, - str, - mask, + opts, + predicate, ); } - late final __objc_msgSend_23Ptr = _lookup< + late final __objc_msgSend_136Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_23 = __objc_msgSend_23Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + NSUInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_136 = __objc_msgSend_136Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_containsString_1 = _registerName1("containsString:"); - late final _sel_localizedCaseInsensitiveContainsString_1 = - _registerName1("localizedCaseInsensitiveContainsString:"); - late final _sel_localizedStandardContainsString_1 = - _registerName1("localizedStandardContainsString:"); - late final _sel_localizedStandardRangeOfString_1 = - _registerName1("localizedStandardRangeOfString:"); - NSRange _objc_msgSend_24( + late final _sel_indexOfObjectAtIndexes_options_passingTest_1 = + _registerName1("indexOfObjectAtIndexes:options:passingTest:"); + int _objc_msgSend_137( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer str, + ffi.Pointer s, + int opts, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_24( + return __objc_msgSend_137( obj, sel, - str, + s, + opts, + predicate, ); } - late final __objc_msgSend_24Ptr = _lookup< + late final __objc_msgSend_137Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_24 = __objc_msgSend_24Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_137 = __objc_msgSend_137Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_rangeOfString_1 = _registerName1("rangeOfString:"); - late final _sel_rangeOfString_options_1 = - _registerName1("rangeOfString:options:"); - NSRange _objc_msgSend_25( + late final _sel_indexesOfObjectsPassingTest_1 = + _registerName1("indexesOfObjectsPassingTest:"); + ffi.Pointer _objc_msgSend_138( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer searchString, - int mask, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_25( + return __objc_msgSend_138( obj, sel, - searchString, - mask, + predicate, ); } - late final __objc_msgSend_25Ptr = _lookup< + late final __objc_msgSend_138Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_25 = __objc_msgSend_25Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_138 = __objc_msgSend_138Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_rangeOfString_options_range_1 = - _registerName1("rangeOfString:options:range:"); - NSRange _objc_msgSend_26( + late final _sel_indexesOfObjectsWithOptions_passingTest_1 = + _registerName1("indexesOfObjectsWithOptions:passingTest:"); + ffi.Pointer _objc_msgSend_139( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer searchString, - int mask, - NSRange rangeOfReceiverToSearch, + int opts, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_26( + return __objc_msgSend_139( obj, sel, - searchString, - mask, - rangeOfReceiverToSearch, + opts, + predicate, ); } - late final __objc_msgSend_26Ptr = _lookup< + late final __objc_msgSend_139Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_26 = __objc_msgSend_26Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_139 = __objc_msgSend_139Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - late final _class_NSLocale1 = _getClass1("NSLocale"); - late final _sel_rangeOfString_options_range_locale_1 = - _registerName1("rangeOfString:options:range:locale:"); - NSRange _objc_msgSend_27( + late final _sel_indexesOfObjectsAtIndexes_options_passingTest_1 = + _registerName1("indexesOfObjectsAtIndexes:options:passingTest:"); + ffi.Pointer _objc_msgSend_140( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer searchString, - int mask, - NSRange rangeOfReceiverToSearch, - ffi.Pointer locale, + ffi.Pointer s, + int opts, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_27( + return __objc_msgSend_140( obj, sel, - searchString, - mask, - rangeOfReceiverToSearch, - locale, + s, + opts, + predicate, ); } - late final __objc_msgSend_27Ptr = _lookup< + late final __objc_msgSend_140Ptr = _lookup< ffi.NativeFunction< - NSRange Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_27 = __objc_msgSend_27Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange, ffi.Pointer)>(); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_140 = __objc_msgSend_140Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); - late final _class_NSCharacterSet1 = _getClass1("NSCharacterSet"); - late final _sel_controlCharacterSet1 = _registerName1("controlCharacterSet"); - ffi.Pointer _objc_msgSend_28( + late final _sel_sortedArrayUsingComparator_1 = + _registerName1("sortedArrayUsingComparator:"); + ffi.Pointer _objc_msgSend_141( ffi.Pointer obj, ffi.Pointer sel, + NSComparator cmptr, ) { - return __objc_msgSend_28( + return __objc_msgSend_141( obj, sel, + cmptr, ); } - late final __objc_msgSend_28Ptr = _lookup< + late final __objc_msgSend_141Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_28 = __objc_msgSend_28Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSComparator)>>('objc_msgSend'); + late final __objc_msgSend_141 = __objc_msgSend_141Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer, NSComparator)>(); - late final _sel_whitespaceCharacterSet1 = - _registerName1("whitespaceCharacterSet"); - late final _sel_whitespaceAndNewlineCharacterSet1 = - _registerName1("whitespaceAndNewlineCharacterSet"); - late final _sel_decimalDigitCharacterSet1 = - _registerName1("decimalDigitCharacterSet"); - late final _sel_letterCharacterSet1 = _registerName1("letterCharacterSet"); - late final _sel_lowercaseLetterCharacterSet1 = - _registerName1("lowercaseLetterCharacterSet"); - late final _sel_uppercaseLetterCharacterSet1 = - _registerName1("uppercaseLetterCharacterSet"); - late final _sel_nonBaseCharacterSet1 = _registerName1("nonBaseCharacterSet"); - late final _sel_alphanumericCharacterSet1 = - _registerName1("alphanumericCharacterSet"); - late final _sel_decomposableCharacterSet1 = - _registerName1("decomposableCharacterSet"); - late final _sel_illegalCharacterSet1 = _registerName1("illegalCharacterSet"); - late final _sel_punctuationCharacterSet1 = - _registerName1("punctuationCharacterSet"); - late final _sel_capitalizedLetterCharacterSet1 = - _registerName1("capitalizedLetterCharacterSet"); - late final _sel_symbolCharacterSet1 = _registerName1("symbolCharacterSet"); - late final _sel_newlineCharacterSet1 = _registerName1("newlineCharacterSet"); - late final _sel_characterSetWithRange_1 = - _registerName1("characterSetWithRange:"); - ffi.Pointer _objc_msgSend_29( + late final _sel_sortedArrayWithOptions_usingComparator_1 = + _registerName1("sortedArrayWithOptions:usingComparator:"); + ffi.Pointer _objc_msgSend_142( ffi.Pointer obj, ffi.Pointer sel, - NSRange aRange, + int opts, + NSComparator cmptr, ) { - return __objc_msgSend_29( + return __objc_msgSend_142( obj, sel, - aRange, + opts, + cmptr, ); } - late final __objc_msgSend_29Ptr = _lookup< + late final __objc_msgSend_142Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_29 = __objc_msgSend_29Ptr.asFunction< + ffi.Pointer, ffi.Int32, NSComparator)>>('objc_msgSend'); + late final __objc_msgSend_142 = __objc_msgSend_142Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, int, NSComparator)>(); - late final _sel_characterSetWithCharactersInString_1 = - _registerName1("characterSetWithCharactersInString:"); - ffi.Pointer _objc_msgSend_30( + late final _sel_indexOfObject_inSortedRange_options_usingComparator_1 = + _registerName1("indexOfObject:inSortedRange:options:usingComparator:"); + int _objc_msgSend_143( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aString, + ffi.Pointer obj1, + NSRange r, + int opts, + NSComparator cmp, ) { - return __objc_msgSend_30( + return __objc_msgSend_143( obj, sel, - aString, + obj1, + r, + opts, + cmp, ); } - late final __objc_msgSend_30Ptr = _lookup< + late final __objc_msgSend_143Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_30 = __objc_msgSend_30Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Int32, + NSComparator)>>('objc_msgSend'); + late final __objc_msgSend_143 = __objc_msgSend_143Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSRange, int, NSComparator)>(); - late final _class_NSData1 = _getClass1("NSData"); - late final _sel_bytes1 = _registerName1("bytes"); - ffi.Pointer _objc_msgSend_31( + late final _sel_array1 = _registerName1("array"); + late final _sel_arrayWithObject_1 = _registerName1("arrayWithObject:"); + late final _sel_arrayWithObjects_count_1 = + _registerName1("arrayWithObjects:count:"); + late final _sel_arrayWithObjects_1 = _registerName1("arrayWithObjects:"); + late final _sel_arrayWithArray_1 = _registerName1("arrayWithArray:"); + late final _sel_initWithObjects_1 = _registerName1("initWithObjects:"); + late final _sel_initWithArray_1 = _registerName1("initWithArray:"); + late final _sel_initWithArray_copyItems_1 = + _registerName1("initWithArray:copyItems:"); + instancetype _objc_msgSend_144( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer array, + bool flag, ) { - return __objc_msgSend_31( + return __objc_msgSend_144( obj, sel, + array, + flag, ); } - late final __objc_msgSend_31Ptr = _lookup< + late final __objc_msgSend_144Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_31 = __objc_msgSend_31Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_144 = __objc_msgSend_144Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); - late final _sel_description1 = _registerName1("description"); - ffi.Pointer _objc_msgSend_32( + late final _sel_initWithContentsOfURL_error_1 = + _registerName1("initWithContentsOfURL:error:"); + ffi.Pointer _objc_msgSend_145( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer> error, ) { - return __objc_msgSend_32( + return __objc_msgSend_145( obj, sel, + url, + error, ); } - late final __objc_msgSend_32Ptr = _lookup< + late final __objc_msgSend_145Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_32 = __objc_msgSend_32Ptr.asFunction< + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_145 = __objc_msgSend_145Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_getBytes_length_1 = _registerName1("getBytes:length:"); - void _objc_msgSend_33( + late final _sel_arrayWithContentsOfURL_error_1 = + _registerName1("arrayWithContentsOfURL:error:"); + late final _class_NSOrderedCollectionDifference1 = + _getClass1("NSOrderedCollectionDifference"); + late final _sel_initWithChanges_1 = _registerName1("initWithChanges:"); + late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_1 = + _registerName1( + "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:"); + instancetype _objc_msgSend_146( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer buffer, - int length, + ffi.Pointer inserts, + ffi.Pointer insertedObjects, + ffi.Pointer removes, + ffi.Pointer removedObjects, + ffi.Pointer changes, ) { - return __objc_msgSend_33( + return __objc_msgSend_146( obj, sel, - buffer, - length, + inserts, + insertedObjects, + removes, + removedObjects, + changes, ); } - late final __objc_msgSend_33Ptr = _lookup< + late final __objc_msgSend_146Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_33 = __objc_msgSend_33Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_146 = __objc_msgSend_146Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_getBytes_range_1 = _registerName1("getBytes:range:"); - void _objc_msgSend_34( + late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_1 = + _registerName1( + "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:"); + instancetype _objc_msgSend_147( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer buffer, - NSRange range, + ffi.Pointer inserts, + ffi.Pointer insertedObjects, + ffi.Pointer removes, + ffi.Pointer removedObjects, ) { - return __objc_msgSend_34( + return __objc_msgSend_147( obj, sel, - buffer, - range, + inserts, + insertedObjects, + removes, + removedObjects, ); } - late final __objc_msgSend_34Ptr = _lookup< + late final __objc_msgSend_147Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_34 = __objc_msgSend_34Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_147 = __objc_msgSend_147Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_isEqualToData_1 = _registerName1("isEqualToData:"); - bool _objc_msgSend_35( + late final _sel_insertions1 = _registerName1("insertions"); + late final _sel_removals1 = _registerName1("removals"); + late final _sel_hasChanges1 = _registerName1("hasChanges"); + late final _class_NSOrderedCollectionChange1 = + _getClass1("NSOrderedCollectionChange"); + late final _sel_changeWithObject_type_index_1 = + _registerName1("changeWithObject:type:index:"); + ffi.Pointer _objc_msgSend_148( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer other, + ffi.Pointer anObject, + int type, + int index, ) { - return __objc_msgSend_35( + return __objc_msgSend_148( obj, sel, - other, + anObject, + type, + index, ); } - late final __objc_msgSend_35Ptr = _lookup< + late final __objc_msgSend_148Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_35 = __objc_msgSend_35Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_148 = __objc_msgSend_148Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, int)>(); - late final _sel_subdataWithRange_1 = _registerName1("subdataWithRange:"); - ffi.Pointer _objc_msgSend_36( + late final _sel_changeWithObject_type_index_associatedIndex_1 = + _registerName1("changeWithObject:type:index:associatedIndex:"); + ffi.Pointer _objc_msgSend_149( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + ffi.Pointer anObject, + int type, + int index, + int associatedIndex, ) { - return __objc_msgSend_36( + return __objc_msgSend_149( obj, sel, - range, + anObject, + type, + index, + associatedIndex, ); } - late final __objc_msgSend_36Ptr = _lookup< + late final __objc_msgSend_149Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_36 = __objc_msgSend_36Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + NSUInteger, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_149 = __objc_msgSend_149Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, int, int)>(); - late final _sel_writeToFile_atomically_1 = - _registerName1("writeToFile:atomically:"); - bool _objc_msgSend_37( + late final _sel_object1 = _registerName1("object"); + late final _sel_changeType1 = _registerName1("changeType"); + int _objc_msgSend_150( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - bool useAuxiliaryFile, ) { - return __objc_msgSend_37( + return __objc_msgSend_150( obj, sel, - path, - useAuxiliaryFile, ); } - late final __objc_msgSend_37Ptr = _lookup< + late final __objc_msgSend_150Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_37 = __objc_msgSend_37Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_150 = __objc_msgSend_150Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _class_NSURL1 = _getClass1("NSURL"); - late final _sel_initWithScheme_host_path_1 = - _registerName1("initWithScheme:host:path:"); - instancetype _objc_msgSend_38( + late final _sel_index1 = _registerName1("index"); + late final _sel_associatedIndex1 = _registerName1("associatedIndex"); + late final _sel_initWithObject_type_index_1 = + _registerName1("initWithObject:type:index:"); + instancetype _objc_msgSend_151( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer scheme, - ffi.Pointer host, - ffi.Pointer path, + ffi.Pointer anObject, + int type, + int index, ) { - return __objc_msgSend_38( + return __objc_msgSend_151( obj, sel, - scheme, - host, - path, + anObject, + type, + index, ); } - late final __objc_msgSend_38Ptr = _lookup< + late final __objc_msgSend_151Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_38 = __objc_msgSend_38Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_151 = __objc_msgSend_151Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int)>(); - late final _sel_initFileURLWithPath_isDirectory_relativeToURL_1 = - _registerName1("initFileURLWithPath:isDirectory:relativeToURL:"); - instancetype _objc_msgSend_39( + late final _sel_initWithObject_type_index_associatedIndex_1 = + _registerName1("initWithObject:type:index:associatedIndex:"); + instancetype _objc_msgSend_152( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - bool isDir, - ffi.Pointer baseURL, + ffi.Pointer anObject, + int type, + int index, + int associatedIndex, ) { - return __objc_msgSend_39( + return __objc_msgSend_152( obj, sel, - path, - isDir, - baseURL, + anObject, + type, + index, + associatedIndex, ); } - late final __objc_msgSend_39Ptr = _lookup< + late final __objc_msgSend_152Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Bool, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_39 = __objc_msgSend_39Ptr.asFunction< + ffi.Int32, + NSUInteger, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_152 = __objc_msgSend_152Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool, ffi.Pointer)>(); + ffi.Pointer, int, int, int)>(); - late final _sel_initFileURLWithPath_relativeToURL_1 = - _registerName1("initFileURLWithPath:relativeToURL:"); - instancetype _objc_msgSend_40( + late final _sel_differenceByTransformingChangesWithBlock_1 = + _registerName1("differenceByTransformingChangesWithBlock:"); + ffi.Pointer _objc_msgSend_153( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer baseURL, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_40( + return __objc_msgSend_153( obj, sel, - path, - baseURL, + block, ); } - late final __objc_msgSend_40Ptr = _lookup< + late final __objc_msgSend_153Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_153 = __objc_msgSend_153Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_inverseDifference1 = _registerName1("inverseDifference"); + late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_1 = + _registerName1("differenceFromArray:withOptions:usingEquivalenceTest:"); + ffi.Pointer _objc_msgSend_154( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + int options, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_154( + obj, + sel, + other, + options, + block, + ); + } + + late final __objc_msgSend_154Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_40 = __objc_msgSend_40Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_154 = __objc_msgSend_154Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_initFileURLWithPath_isDirectory_1 = - _registerName1("initFileURLWithPath:isDirectory:"); - instancetype _objc_msgSend_41( + late final _sel_differenceFromArray_withOptions_1 = + _registerName1("differenceFromArray:withOptions:"); + ffi.Pointer _objc_msgSend_155( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - bool isDir, + ffi.Pointer other, + int options, ) { - return __objc_msgSend_41( + return __objc_msgSend_155( obj, sel, - path, - isDir, + other, + options, ); } - late final __objc_msgSend_41Ptr = _lookup< + late final __objc_msgSend_155Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_41 = __objc_msgSend_41Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_initFileURLWithPath_1 = - _registerName1("initFileURLWithPath:"); - instancetype _objc_msgSend_42( + late final _sel_differenceFromArray_1 = + _registerName1("differenceFromArray:"); + ffi.Pointer _objc_msgSend_156( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, + ffi.Pointer other, ) { - return __objc_msgSend_42( + return __objc_msgSend_156( obj, sel, - path, + other, ); } - late final __objc_msgSend_42Ptr = _lookup< + late final __objc_msgSend_156Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_42 = __objc_msgSend_42Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_156 = __objc_msgSend_156Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_fileURLWithPath_isDirectory_relativeToURL_1 = - _registerName1("fileURLWithPath:isDirectory:relativeToURL:"); - ffi.Pointer _objc_msgSend_43( + late final _sel_arrayByApplyingDifference_1 = + _registerName1("arrayByApplyingDifference:"); + ffi.Pointer _objc_msgSend_157( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - bool isDir, - ffi.Pointer baseURL, + ffi.Pointer difference, ) { - return __objc_msgSend_43( + return __objc_msgSend_157( obj, sel, - path, - isDir, - baseURL, + difference, ); } - late final __objc_msgSend_43Ptr = _lookup< + late final __objc_msgSend_157Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_43 = __objc_msgSend_43Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_fileURLWithPath_relativeToURL_1 = - _registerName1("fileURLWithPath:relativeToURL:"); - ffi.Pointer _objc_msgSend_44( + late final _sel_getObjects_1 = _registerName1("getObjects:"); + void _objc_msgSend_158( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer baseURL, + ffi.Pointer> objects, ) { - return __objc_msgSend_44( + return __objc_msgSend_158( obj, sel, - path, - baseURL, + objects, ); } - late final __objc_msgSend_44Ptr = _lookup< + late final __objc_msgSend_158Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_44 = __objc_msgSend_44Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_158 = __objc_msgSend_158Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_fileURLWithPath_isDirectory_1 = - _registerName1("fileURLWithPath:isDirectory:"); - ffi.Pointer _objc_msgSend_45( + late final _sel_arrayWithContentsOfFile_1 = + _registerName1("arrayWithContentsOfFile:"); + ffi.Pointer _objc_msgSend_159( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, - bool isDir, ) { - return __objc_msgSend_45( + return __objc_msgSend_159( obj, sel, path, - isDir, ); } - late final __objc_msgSend_45Ptr = _lookup< + late final __objc_msgSend_159Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_45 = __objc_msgSend_45Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_159 = __objc_msgSend_159Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, bool)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_fileURLWithPath_1 = _registerName1("fileURLWithPath:"); - ffi.Pointer _objc_msgSend_46( + late final _sel_arrayWithContentsOfURL_1 = + _registerName1("arrayWithContentsOfURL:"); + ffi.Pointer _objc_msgSend_160( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, + ffi.Pointer url, ) { - return __objc_msgSend_46( + return __objc_msgSend_160( obj, sel, - path, + url, ); } - late final __objc_msgSend_46Ptr = _lookup< + late final __objc_msgSend_160Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_46 = __objc_msgSend_46Ptr.asFunction< + late final __objc_msgSend_160 = __objc_msgSend_160Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = - _registerName1( - "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); - instancetype _objc_msgSend_47( + late final _sel_initWithContentsOfFile_1 = + _registerName1("initWithContentsOfFile:"); + late final _sel_initWithContentsOfURL_1 = + _registerName1("initWithContentsOfURL:"); + late final _sel_writeToURL_atomically_1 = + _registerName1("writeToURL:atomically:"); + bool _objc_msgSend_161( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - bool isDir, - ffi.Pointer baseURL, + ffi.Pointer url, + bool atomically, ) { - return __objc_msgSend_47( + return __objc_msgSend_161( obj, sel, - path, - isDir, - baseURL, + url, + atomically, ); } - late final __objc_msgSend_47Ptr = _lookup< + late final __objc_msgSend_161Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_47 = __objc_msgSend_47Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool, ffi.Pointer)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_161 = __objc_msgSend_161Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); - late final _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = - _registerName1( - "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); - ffi.Pointer _objc_msgSend_48( + late final _sel_allKeys1 = _registerName1("allKeys"); + ffi.Pointer _objc_msgSend_162( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - bool isDir, - ffi.Pointer baseURL, ) { - return __objc_msgSend_48( + return __objc_msgSend_162( obj, sel, - path, - isDir, - baseURL, ); } - late final __objc_msgSend_48Ptr = _lookup< + late final __objc_msgSend_162Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_48 = __objc_msgSend_48Ptr.asFunction< + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_162 = __objc_msgSend_162Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithString_1 = _registerName1("initWithString:"); - late final _sel_initWithString_relativeToURL_1 = - _registerName1("initWithString:relativeToURL:"); - late final _sel_URLWithString_1 = _registerName1("URLWithString:"); - late final _sel_URLWithString_relativeToURL_1 = - _registerName1("URLWithString:relativeToURL:"); - late final _sel_initWithDataRepresentation_relativeToURL_1 = - _registerName1("initWithDataRepresentation:relativeToURL:"); - instancetype _objc_msgSend_49( + late final _sel_allKeysForObject_1 = _registerName1("allKeysForObject:"); + late final _sel_allValues1 = _registerName1("allValues"); + late final _sel_descriptionInStringsFileFormat1 = + _registerName1("descriptionInStringsFileFormat"); + late final _sel_isEqualToDictionary_1 = + _registerName1("isEqualToDictionary:"); + bool _objc_msgSend_163( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer data, - ffi.Pointer baseURL, + ffi.Pointer otherDictionary, ) { - return __objc_msgSend_49( + return __objc_msgSend_163( obj, sel, - data, - baseURL, + otherDictionary, ); } - late final __objc_msgSend_49Ptr = _lookup< + late final __objc_msgSend_163Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final __objc_msgSend_163 = __objc_msgSend_163Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_URLWithDataRepresentation_relativeToURL_1 = - _registerName1("URLWithDataRepresentation:relativeToURL:"); - ffi.Pointer _objc_msgSend_50( + late final _sel_objectsForKeys_notFoundMarker_1 = + _registerName1("objectsForKeys:notFoundMarker:"); + ffi.Pointer _objc_msgSend_164( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer data, - ffi.Pointer baseURL, + ffi.Pointer keys, + ffi.Pointer marker, ) { - return __objc_msgSend_50( + return __objc_msgSend_164( obj, sel, - data, - baseURL, + keys, + marker, ); } - late final __objc_msgSend_50Ptr = _lookup< + late final __objc_msgSend_164Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_50 = __objc_msgSend_50Ptr.asFunction< + late final __objc_msgSend_164 = __objc_msgSend_164Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1 = - _registerName1("initAbsoluteURLWithDataRepresentation:relativeToURL:"); - late final _sel_absoluteURLWithDataRepresentation_relativeToURL_1 = - _registerName1("absoluteURLWithDataRepresentation:relativeToURL:"); - late final _sel_dataRepresentation1 = _registerName1("dataRepresentation"); - ffi.Pointer _objc_msgSend_51( + late final _sel_keysSortedByValueUsingSelector_1 = + _registerName1("keysSortedByValueUsingSelector:"); + late final _sel_getObjects_andKeys_count_1 = + _registerName1("getObjects:andKeys:count:"); + void _objc_msgSend_165( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer> objects, + ffi.Pointer> keys, + int count, ) { - return __objc_msgSend_51( + return __objc_msgSend_165( obj, sel, + objects, + keys, + count, ); } - late final __objc_msgSend_51Ptr = _lookup< + late final __objc_msgSend_165Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_51 = __objc_msgSend_51Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_165 = __objc_msgSend_165Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int)>(); - late final _sel_absoluteString1 = _registerName1("absoluteString"); - late final _sel_relativeString1 = _registerName1("relativeString"); - late final _sel_baseURL1 = _registerName1("baseURL"); - ffi.Pointer _objc_msgSend_52( + late final _sel_objectForKeyedSubscript_1 = + _registerName1("objectForKeyedSubscript:"); + late final _sel_enumerateKeysAndObjectsUsingBlock_1 = + _registerName1("enumerateKeysAndObjectsUsingBlock:"); + void _objc_msgSend_166( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_52( + return __objc_msgSend_166( obj, sel, + block, ); } - late final __objc_msgSend_52Ptr = _lookup< + late final __objc_msgSend_166Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_52 = __objc_msgSend_52Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_166 = __objc_msgSend_166Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_absoluteURL1 = _registerName1("absoluteURL"); - late final _sel_scheme1 = _registerName1("scheme"); - late final _sel_resourceSpecifier1 = _registerName1("resourceSpecifier"); - late final _sel_host1 = _registerName1("host"); - late final _class_NSNumber1 = _getClass1("NSNumber"); - late final _class_NSValue1 = _getClass1("NSValue"); - late final _sel_getValue_size_1 = _registerName1("getValue:size:"); - late final _sel_objCType1 = _registerName1("objCType"); - ffi.Pointer _objc_msgSend_53( + late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_1 = + _registerName1("enumerateKeysAndObjectsWithOptions:usingBlock:"); + void _objc_msgSend_167( ffi.Pointer obj, ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_53( + return __objc_msgSend_167( obj, sel, + opts, + block, ); } - late final __objc_msgSend_53Ptr = _lookup< + late final __objc_msgSend_167Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_53 = __objc_msgSend_53Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_167 = __objc_msgSend_167Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_initWithBytes_objCType_1 = - _registerName1("initWithBytes:objCType:"); - instancetype _objc_msgSend_54( + late final _sel_keysSortedByValueUsingComparator_1 = + _registerName1("keysSortedByValueUsingComparator:"); + late final _sel_keysSortedByValueWithOptions_usingComparator_1 = + _registerName1("keysSortedByValueWithOptions:usingComparator:"); + late final _sel_keysOfEntriesPassingTest_1 = + _registerName1("keysOfEntriesPassingTest:"); + ffi.Pointer _objc_msgSend_168( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, - ffi.Pointer type, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_54( + return __objc_msgSend_168( obj, sel, - value, - type, + predicate, ); } - late final __objc_msgSend_54Ptr = _lookup< + late final __objc_msgSend_168Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_168 = __objc_msgSend_168Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_valueWithBytes_objCType_1 = - _registerName1("valueWithBytes:objCType:"); - ffi.Pointer _objc_msgSend_55( + late final _sel_keysOfEntriesWithOptions_passingTest_1 = + _registerName1("keysOfEntriesWithOptions:passingTest:"); + ffi.Pointer _objc_msgSend_169( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, - ffi.Pointer type, + int opts, + ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_55( + return __objc_msgSend_169( obj, sel, - value, - type, + opts, + predicate, ); } - late final __objc_msgSend_55Ptr = _lookup< + late final __objc_msgSend_169Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< - ffi.Pointer Function( + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_169 = __objc_msgSend_169Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_getObjects_andKeys_1 = _registerName1("getObjects:andKeys:"); + void _objc_msgSend_170( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> objects, + ffi.Pointer> keys, + ) { + return __objc_msgSend_170( + obj, + sel, + objects, + keys, + ); + } + + late final __objc_msgSend_170Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_170 = __objc_msgSend_170Ptr.asFunction< + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer>, + ffi.Pointer>)>(); - late final _sel_value_withObjCType_1 = _registerName1("value:withObjCType:"); - late final _sel_valueWithNonretainedObject_1 = - _registerName1("valueWithNonretainedObject:"); - ffi.Pointer _objc_msgSend_56( + late final _sel_dictionaryWithContentsOfFile_1 = + _registerName1("dictionaryWithContentsOfFile:"); + ffi.Pointer _objc_msgSend_171( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anObject, + ffi.Pointer path, ) { - return __objc_msgSend_56( + return __objc_msgSend_171( obj, sel, - anObject, + path, ); } - late final __objc_msgSend_56Ptr = _lookup< + late final __objc_msgSend_171Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< + late final __objc_msgSend_171 = __objc_msgSend_171Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_nonretainedObjectValue1 = - _registerName1("nonretainedObjectValue"); - late final _sel_valueWithPointer_1 = _registerName1("valueWithPointer:"); - ffi.Pointer _objc_msgSend_57( + late final _sel_dictionaryWithContentsOfURL_1 = + _registerName1("dictionaryWithContentsOfURL:"); + ffi.Pointer _objc_msgSend_172( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer pointer, + ffi.Pointer url, ) { - return __objc_msgSend_57( + return __objc_msgSend_172( obj, sel, - pointer, + url, ); } - late final __objc_msgSend_57Ptr = _lookup< + late final __objc_msgSend_172Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_172 = __objc_msgSend_172Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_pointerValue1 = _registerName1("pointerValue"); - late final _sel_isEqualToValue_1 = _registerName1("isEqualToValue:"); - bool _objc_msgSend_58( + late final _sel_dictionary1 = _registerName1("dictionary"); + late final _sel_dictionaryWithObject_forKey_1 = + _registerName1("dictionaryWithObject:forKey:"); + instancetype _objc_msgSend_173( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer object, + ffi.Pointer key, ) { - return __objc_msgSend_58( + return __objc_msgSend_173( obj, sel, - value, + object, + key, ); } - late final __objc_msgSend_58Ptr = _lookup< + late final __objc_msgSend_173Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_58 = __objc_msgSend_58Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final __objc_msgSend_173 = __objc_msgSend_173Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_getValue_1 = _registerName1("getValue:"); - void _objc_msgSend_59( + late final _sel_dictionaryWithObjects_forKeys_count_1 = + _registerName1("dictionaryWithObjects:forKeys:count:"); + late final _sel_dictionaryWithObjectsAndKeys_1 = + _registerName1("dictionaryWithObjectsAndKeys:"); + late final _sel_dictionaryWithDictionary_1 = + _registerName1("dictionaryWithDictionary:"); + instancetype _objc_msgSend_174( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer dict, ) { - return __objc_msgSend_59( + return __objc_msgSend_174( obj, sel, - value, + dict, ); } - late final __objc_msgSend_59Ptr = _lookup< + late final __objc_msgSend_174Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_59 = __objc_msgSend_59Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_174 = __objc_msgSend_174Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_valueWithRange_1 = _registerName1("valueWithRange:"); - ffi.Pointer _objc_msgSend_60( + late final _sel_dictionaryWithObjects_forKeys_1 = + _registerName1("dictionaryWithObjects:forKeys:"); + instancetype _objc_msgSend_175( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + ffi.Pointer objects, + ffi.Pointer keys, ) { - return __objc_msgSend_60( + return __objc_msgSend_175( obj, sel, - range, + objects, + keys, ); } - late final __objc_msgSend_60Ptr = _lookup< + late final __objc_msgSend_175Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_60 = __objc_msgSend_60Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_175 = __objc_msgSend_175Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_rangeValue1 = _registerName1("rangeValue"); - NSRange _objc_msgSend_61( + late final _sel_initWithObjectsAndKeys_1 = + _registerName1("initWithObjectsAndKeys:"); + late final _sel_initWithDictionary_1 = _registerName1("initWithDictionary:"); + late final _sel_initWithDictionary_copyItems_1 = + _registerName1("initWithDictionary:copyItems:"); + instancetype _objc_msgSend_176( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer otherDictionary, + bool flag, ) { - return __objc_msgSend_61( + return __objc_msgSend_176( obj, sel, + otherDictionary, + flag, ); } - late final __objc_msgSend_61Ptr = _lookup< + late final __objc_msgSend_176Ptr = _lookup< ffi.NativeFunction< - NSRange Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_61 = __objc_msgSend_61Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_176 = __objc_msgSend_176Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); - late final _sel_initWithChar_1 = _registerName1("initWithChar:"); - ffi.Pointer _objc_msgSend_62( + late final _sel_initWithObjects_forKeys_1 = + _registerName1("initWithObjects:forKeys:"); + ffi.Pointer _objc_msgSend_177( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer url, + ffi.Pointer> error, ) { - return __objc_msgSend_62( + return __objc_msgSend_177( obj, sel, - value, + url, + error, ); } - late final __objc_msgSend_62Ptr = _lookup< + late final __objc_msgSend_177Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Char)>>('objc_msgSend'); - late final __objc_msgSend_62 = __objc_msgSend_62Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_177 = __objc_msgSend_177Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_initWithUnsignedChar_1 = - _registerName1("initWithUnsignedChar:"); - ffi.Pointer _objc_msgSend_63( + late final _sel_dictionaryWithContentsOfURL_error_1 = + _registerName1("dictionaryWithContentsOfURL:error:"); + late final _sel_sharedKeySetForKeys_1 = + _registerName1("sharedKeySetForKeys:"); + late final _sel_countByEnumeratingWithState_objects_count_1 = + _registerName1("countByEnumeratingWithState:objects:count:"); + int _objc_msgSend_178( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer state, + ffi.Pointer> buffer, + int len, ) { - return __objc_msgSend_63( + return __objc_msgSend_178( obj, sel, - value, + state, + buffer, + len, ); } - late final __objc_msgSend_63Ptr = _lookup< + late final __objc_msgSend_178Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); - late final __objc_msgSend_63 = __objc_msgSend_63Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_178 = __objc_msgSend_178Ptr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int)>(); - late final _sel_initWithShort_1 = _registerName1("initWithShort:"); - ffi.Pointer _objc_msgSend_64( + late final _sel_initWithDomain_code_userInfo_1 = + _registerName1("initWithDomain:code:userInfo:"); + instancetype _objc_msgSend_179( ffi.Pointer obj, ffi.Pointer sel, - int value, + NSErrorDomain domain, + int code, + ffi.Pointer dict, ) { - return __objc_msgSend_64( + return __objc_msgSend_179( obj, sel, - value, + domain, + code, + dict, ); } - late final __objc_msgSend_64Ptr = _lookup< + late final __objc_msgSend_179Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Short)>>('objc_msgSend'); - late final __objc_msgSend_64 = __objc_msgSend_64Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + NSErrorDomain, + NSInteger, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_179 = __objc_msgSend_179Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + NSErrorDomain, int, ffi.Pointer)>(); - late final _sel_initWithUnsignedShort_1 = - _registerName1("initWithUnsignedShort:"); - ffi.Pointer _objc_msgSend_65( + late final _sel_errorWithDomain_code_userInfo_1 = + _registerName1("errorWithDomain:code:userInfo:"); + late final _sel_domain1 = _registerName1("domain"); + late final _sel_code1 = _registerName1("code"); + late final _sel_userInfo1 = _registerName1("userInfo"); + ffi.Pointer _objc_msgSend_180( ffi.Pointer obj, ffi.Pointer sel, - int value, ) { - return __objc_msgSend_65( + return __objc_msgSend_180( obj, sel, - value, ); } - late final __objc_msgSend_65Ptr = _lookup< + late final __objc_msgSend_180Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedShort)>>('objc_msgSend'); - late final __objc_msgSend_65 = __objc_msgSend_65Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_180 = __objc_msgSend_180Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithInt_1 = _registerName1("initWithInt:"); - ffi.Pointer _objc_msgSend_66( + late final _sel_localizedDescription1 = + _registerName1("localizedDescription"); + late final _sel_localizedFailureReason1 = + _registerName1("localizedFailureReason"); + late final _sel_localizedRecoverySuggestion1 = + _registerName1("localizedRecoverySuggestion"); + late final _sel_localizedRecoveryOptions1 = + _registerName1("localizedRecoveryOptions"); + late final _sel_recoveryAttempter1 = _registerName1("recoveryAttempter"); + late final _sel_helpAnchor1 = _registerName1("helpAnchor"); + late final _sel_underlyingErrors1 = _registerName1("underlyingErrors"); + late final _sel_setUserInfoValueProviderForDomain_provider_1 = + _registerName1("setUserInfoValueProviderForDomain:provider:"); + void _objc_msgSend_181( ffi.Pointer obj, ffi.Pointer sel, - int value, + NSErrorDomain errorDomain, + ffi.Pointer<_ObjCBlock> provider, ) { - return __objc_msgSend_66( + return __objc_msgSend_181( obj, sel, - value, + errorDomain, + provider, ); } - late final __objc_msgSend_66Ptr = _lookup< + late final __objc_msgSend_181Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_66 = __objc_msgSend_66Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSErrorDomain, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_181 = __objc_msgSend_181Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + NSErrorDomain, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_initWithUnsignedInt_1 = - _registerName1("initWithUnsignedInt:"); - ffi.Pointer _objc_msgSend_67( + late final _sel_userInfoValueProviderForDomain_1 = + _registerName1("userInfoValueProviderForDomain:"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_182( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer err, + NSErrorUserInfoKey userInfoKey, + NSErrorDomain errorDomain, ) { - return __objc_msgSend_67( + return __objc_msgSend_182( obj, sel, - value, + err, + userInfoKey, + errorDomain, ); } - late final __objc_msgSend_67Ptr = _lookup< + late final __objc_msgSend_182Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_67 = __objc_msgSend_67Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSErrorUserInfoKey, + NSErrorDomain)>>('objc_msgSend'); + late final __objc_msgSend_182 = __objc_msgSend_182Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSErrorUserInfoKey, + NSErrorDomain)>(); - late final _sel_initWithLong_1 = _registerName1("initWithLong:"); - ffi.Pointer _objc_msgSend_68( + late final _sel_checkResourceIsReachableAndReturnError_1 = + _registerName1("checkResourceIsReachableAndReturnError:"); + bool _objc_msgSend_183( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer> error, ) { - return __objc_msgSend_68( + return __objc_msgSend_183( obj, sel, - value, + error, ); } - late final __objc_msgSend_68Ptr = _lookup< + late final __objc_msgSend_183Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_68 = __objc_msgSend_68Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_183 = __objc_msgSend_183Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_initWithUnsignedLong_1 = - _registerName1("initWithUnsignedLong:"); - ffi.Pointer _objc_msgSend_69( + late final _sel_isFileReferenceURL1 = _registerName1("isFileReferenceURL"); + late final _sel_fileReferenceURL1 = _registerName1("fileReferenceURL"); + late final _sel_filePathURL1 = _registerName1("filePathURL"); + late final _sel_getResourceValue_forKey_error_1 = + _registerName1("getResourceValue:forKey:error:"); + bool _objc_msgSend_184( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer> value, + NSURLResourceKey key, + ffi.Pointer> error, ) { - return __objc_msgSend_69( + return __objc_msgSend_184( obj, sel, value, + key, + error, ); } - late final __objc_msgSend_69Ptr = _lookup< + late final __objc_msgSend_184Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_69 = __objc_msgSend_69Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + NSURLResourceKey, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_184 = __objc_msgSend_184Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + NSURLResourceKey, + ffi.Pointer>)>(); - late final _sel_initWithLongLong_1 = _registerName1("initWithLongLong:"); - ffi.Pointer _objc_msgSend_70( + late final _sel_resourceValuesForKeys_error_1 = + _registerName1("resourceValuesForKeys:error:"); + ffi.Pointer _objc_msgSend_185( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer keys, + ffi.Pointer> error, ) { - return __objc_msgSend_70( + return __objc_msgSend_185( obj, sel, - value, + keys, + error, ); } - late final __objc_msgSend_70Ptr = _lookup< + late final __objc_msgSend_185Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.LongLong)>>('objc_msgSend'); - late final __objc_msgSend_70 = __objc_msgSend_70Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_185 = __objc_msgSend_185Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_initWithUnsignedLongLong_1 = - _registerName1("initWithUnsignedLongLong:"); - ffi.Pointer _objc_msgSend_71( + late final _sel_setResourceValue_forKey_error_1 = + _registerName1("setResourceValue:forKey:error:"); + bool _objc_msgSend_186( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer value, + NSURLResourceKey key, + ffi.Pointer> error, ) { - return __objc_msgSend_71( + return __objc_msgSend_186( obj, sel, value, + key, + error, ); } - late final __objc_msgSend_71Ptr = _lookup< + late final __objc_msgSend_186Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); - late final __objc_msgSend_71 = __objc_msgSend_71Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSURLResourceKey, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_186 = __objc_msgSend_186Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSURLResourceKey, + ffi.Pointer>)>(); - late final _sel_initWithFloat_1 = _registerName1("initWithFloat:"); - ffi.Pointer _objc_msgSend_72( + late final _sel_setResourceValues_error_1 = + _registerName1("setResourceValues:error:"); + bool _objc_msgSend_187( ffi.Pointer obj, ffi.Pointer sel, - double value, + ffi.Pointer keyedValues, + ffi.Pointer> error, ) { - return __objc_msgSend_72( + return __objc_msgSend_187( obj, sel, - value, + keyedValues, + error, ); } - late final __objc_msgSend_72Ptr = _lookup< + late final __objc_msgSend_187Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_72 = __objc_msgSend_72Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, double)>(); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_187 = __objc_msgSend_187Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); - late final _sel_initWithDouble_1 = _registerName1("initWithDouble:"); - ffi.Pointer _objc_msgSend_73( + late final _sel_removeCachedResourceValueForKey_1 = + _registerName1("removeCachedResourceValueForKey:"); + void _objc_msgSend_188( ffi.Pointer obj, ffi.Pointer sel, - double value, + NSURLResourceKey key, ) { - return __objc_msgSend_73( + return __objc_msgSend_188( obj, sel, - value, + key, ); } - late final __objc_msgSend_73Ptr = _lookup< + late final __objc_msgSend_188Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_73 = __objc_msgSend_73Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, double)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSURLResourceKey)>>('objc_msgSend'); + late final __objc_msgSend_188 = __objc_msgSend_188Ptr.asFunction< + void Function( + ffi.Pointer, ffi.Pointer, NSURLResourceKey)>(); - late final _sel_initWithBool_1 = _registerName1("initWithBool:"); - ffi.Pointer _objc_msgSend_74( + late final _sel_removeAllCachedResourceValues1 = + _registerName1("removeAllCachedResourceValues"); + late final _sel_setTemporaryResourceValue_forKey_1 = + _registerName1("setTemporaryResourceValue:forKey:"); + void _objc_msgSend_189( ffi.Pointer obj, ffi.Pointer sel, - bool value, + ffi.Pointer value, + NSURLResourceKey key, ) { - return __objc_msgSend_74( + return __objc_msgSend_189( obj, sel, value, + key, ); } - late final __objc_msgSend_74Ptr = _lookup< + late final __objc_msgSend_189Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_74 = __objc_msgSend_74Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSURLResourceKey)>>('objc_msgSend'); + late final __objc_msgSend_189 = __objc_msgSend_189Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSURLResourceKey)>(); - late final _sel_initWithInteger_1 = _registerName1("initWithInteger:"); - late final _sel_initWithUnsignedInteger_1 = - _registerName1("initWithUnsignedInteger:"); - late final _sel_charValue1 = _registerName1("charValue"); - int _objc_msgSend_75( + late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1 = + _registerName1( + "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"); + ffi.Pointer _objc_msgSend_190( ffi.Pointer obj, ffi.Pointer sel, + int options, + ffi.Pointer keys, + ffi.Pointer relativeURL, + ffi.Pointer> error, ) { - return __objc_msgSend_75( + return __objc_msgSend_190( obj, sel, + options, + keys, + relativeURL, + error, ); } - late final __objc_msgSend_75Ptr = _lookup< + late final __objc_msgSend_190Ptr = _lookup< ffi.NativeFunction< - ffi.Char Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_75 = __objc_msgSend_75Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_190 = __objc_msgSend_190Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_unsignedCharValue1 = _registerName1("unsignedCharValue"); - int _objc_msgSend_76( + late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = + _registerName1( + "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); + instancetype _objc_msgSend_191( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer bookmarkData, + int options, + ffi.Pointer relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error, ) { - return __objc_msgSend_76( + return __objc_msgSend_191( obj, sel, + bookmarkData, + options, + relativeURL, + isStale, + error, ); } - late final __objc_msgSend_76Ptr = _lookup< + late final __objc_msgSend_191Ptr = _lookup< ffi.NativeFunction< - ffi.UnsignedChar Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_76 = __objc_msgSend_76Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_191 = __objc_msgSend_191Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_shortValue1 = _registerName1("shortValue"); - int _objc_msgSend_77( + late final _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = + _registerName1( + "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); + late final _sel_resourceValuesForKeys_fromBookmarkData_1 = + _registerName1("resourceValuesForKeys:fromBookmarkData:"); + ffi.Pointer _objc_msgSend_192( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer keys, + ffi.Pointer bookmarkData, ) { - return __objc_msgSend_77( + return __objc_msgSend_192( obj, sel, + keys, + bookmarkData, ); } - late final __objc_msgSend_77Ptr = _lookup< + late final __objc_msgSend_192Ptr = _lookup< ffi.NativeFunction< - ffi.Short Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_77 = __objc_msgSend_77Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_192 = __objc_msgSend_192Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_unsignedShortValue1 = _registerName1("unsignedShortValue"); - int _objc_msgSend_78( + late final _sel_writeBookmarkData_toURL_options_error_1 = + _registerName1("writeBookmarkData:toURL:options:error:"); + bool _objc_msgSend_193( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer bookmarkData, + ffi.Pointer bookmarkFileURL, + int options, + ffi.Pointer> error, ) { - return __objc_msgSend_78( + return __objc_msgSend_193( obj, sel, + bookmarkData, + bookmarkFileURL, + options, + error, ); } - late final __objc_msgSend_78Ptr = _lookup< + late final __objc_msgSend_193Ptr = _lookup< ffi.NativeFunction< - ffi.UnsignedShort Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_78 = __objc_msgSend_78Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSURLBookmarkFileCreationOptions, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_193 = __objc_msgSend_193Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_intValue1 = _registerName1("intValue"); - int _objc_msgSend_79( + late final _sel_bookmarkDataWithContentsOfURL_error_1 = + _registerName1("bookmarkDataWithContentsOfURL:error:"); + ffi.Pointer _objc_msgSend_194( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer bookmarkFileURL, + ffi.Pointer> error, ) { - return __objc_msgSend_79( + return __objc_msgSend_194( obj, sel, + bookmarkFileURL, + error, ); } - late final __objc_msgSend_79Ptr = _lookup< + late final __objc_msgSend_194Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_79 = __objc_msgSend_79Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_194 = __objc_msgSend_194Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_unsignedIntValue1 = _registerName1("unsignedIntValue"); - int _objc_msgSend_80( + late final _sel_URLByResolvingAliasFileAtURL_options_error_1 = + _registerName1("URLByResolvingAliasFileAtURL:options:error:"); + instancetype _objc_msgSend_195( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer url, + int options, + ffi.Pointer> error, ) { - return __objc_msgSend_80( + return __objc_msgSend_195( obj, sel, + url, + options, + error, ); } - late final __objc_msgSend_80Ptr = _lookup< + late final __objc_msgSend_195Ptr = _lookup< ffi.NativeFunction< - ffi.UnsignedInt Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_80 = __objc_msgSend_80Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_195 = __objc_msgSend_195Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_longValue1 = _registerName1("longValue"); - int _objc_msgSend_81( + late final _sel_startAccessingSecurityScopedResource1 = + _registerName1("startAccessingSecurityScopedResource"); + late final _sel_stopAccessingSecurityScopedResource1 = + _registerName1("stopAccessingSecurityScopedResource"); + late final _sel_getPromisedItemResourceValue_forKey_error_1 = + _registerName1("getPromisedItemResourceValue:forKey:error:"); + late final _sel_promisedItemResourceValuesForKeys_error_1 = + _registerName1("promisedItemResourceValuesForKeys:error:"); + late final _sel_checkPromisedItemIsReachableAndReturnError_1 = + _registerName1("checkPromisedItemIsReachableAndReturnError:"); + late final _sel_fileURLWithPathComponents_1 = + _registerName1("fileURLWithPathComponents:"); + ffi.Pointer _objc_msgSend_196( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer components, ) { - return __objc_msgSend_81( + return __objc_msgSend_196( obj, sel, + components, ); } - late final __objc_msgSend_81Ptr = _lookup< + late final __objc_msgSend_196Ptr = _lookup< ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_81 = __objc_msgSend_81Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_196 = __objc_msgSend_196Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_unsignedLongValue1 = _registerName1("unsignedLongValue"); - late final _sel_longLongValue1 = _registerName1("longLongValue"); - int _objc_msgSend_82( + late final _sel_pathComponents1 = _registerName1("pathComponents"); + late final _sel_lastPathComponent1 = _registerName1("lastPathComponent"); + late final _sel_pathExtension1 = _registerName1("pathExtension"); + late final _sel_URLByAppendingPathComponent_1 = + _registerName1("URLByAppendingPathComponent:"); + late final _sel_URLByAppendingPathComponent_isDirectory_1 = + _registerName1("URLByAppendingPathComponent:isDirectory:"); + late final _sel_URLByDeletingLastPathComponent1 = + _registerName1("URLByDeletingLastPathComponent"); + late final _sel_URLByAppendingPathExtension_1 = + _registerName1("URLByAppendingPathExtension:"); + late final _sel_URLByDeletingPathExtension1 = + _registerName1("URLByDeletingPathExtension"); + late final _sel_URLByStandardizingPath1 = + _registerName1("URLByStandardizingPath"); + late final _sel_URLByResolvingSymlinksInPath1 = + _registerName1("URLByResolvingSymlinksInPath"); + late final _sel_resourceDataUsingCache_1 = + _registerName1("resourceDataUsingCache:"); + ffi.Pointer _objc_msgSend_197( ffi.Pointer obj, ffi.Pointer sel, + bool shouldUseCache, ) { - return __objc_msgSend_82( + return __objc_msgSend_197( obj, sel, + shouldUseCache, ); } - late final __objc_msgSend_82Ptr = _lookup< + late final __objc_msgSend_197Ptr = _lookup< ffi.NativeFunction< - ffi.LongLong Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_82 = __objc_msgSend_82Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_197 = __objc_msgSend_197Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, bool)>(); - late final _sel_unsignedLongLongValue1 = - _registerName1("unsignedLongLongValue"); - int _objc_msgSend_83( + late final _sel_loadResourceDataNotifyingClient_usingCache_1 = + _registerName1("loadResourceDataNotifyingClient:usingCache:"); + void _objc_msgSend_198( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer client, + bool shouldUseCache, ) { - return __objc_msgSend_83( + return __objc_msgSend_198( obj, sel, + client, + shouldUseCache, ); } - late final __objc_msgSend_83Ptr = _lookup< + late final __objc_msgSend_198Ptr = _lookup< ffi.NativeFunction< - ffi.UnsignedLongLong Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_83 = __objc_msgSend_83Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_198 = __objc_msgSend_198Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); - late final _sel_floatValue1 = _registerName1("floatValue"); - double _objc_msgSend_84( + late final _sel_propertyForKey_1 = _registerName1("propertyForKey:"); + late final _sel_setResourceData_1 = _registerName1("setResourceData:"); + late final _sel_setProperty_forKey_1 = _registerName1("setProperty:forKey:"); + bool _objc_msgSend_199( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer property, + ffi.Pointer propertyKey, ) { - return __objc_msgSend_84( + return __objc_msgSend_199( obj, sel, + property, + propertyKey, ); } - late final __objc_msgSend_84Ptr = _lookup< + late final __objc_msgSend_199Ptr = _lookup< ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_84 = __objc_msgSend_84Ptr.asFunction< - double Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_199 = __objc_msgSend_199Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_doubleValue1 = _registerName1("doubleValue"); - double _objc_msgSend_85( + late final _class_NSURLHandle1 = _getClass1("NSURLHandle"); + late final _sel_registerURLHandleClass_1 = + _registerName1("registerURLHandleClass:"); + void _objc_msgSend_200( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer anURLHandleSubclass, ) { - return __objc_msgSend_85( + return __objc_msgSend_200( obj, sel, + anURLHandleSubclass, ); } - late final __objc_msgSend_85Ptr = _lookup< + late final __objc_msgSend_200Ptr = _lookup< ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_85 = __objc_msgSend_85Ptr.asFunction< - double Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_200 = __objc_msgSend_200Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_boolValue1 = _registerName1("boolValue"); - late final _sel_integerValue1 = _registerName1("integerValue"); - late final _sel_unsignedIntegerValue1 = - _registerName1("unsignedIntegerValue"); - late final _sel_stringValue1 = _registerName1("stringValue"); - int _objc_msgSend_86( + late final _sel_URLHandleClassForURL_1 = + _registerName1("URLHandleClassForURL:"); + ffi.Pointer _objc_msgSend_201( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer otherNumber, + ffi.Pointer anURL, ) { - return __objc_msgSend_86( + return __objc_msgSend_201( obj, sel, - otherNumber, + anURL, ); } - late final __objc_msgSend_86Ptr = _lookup< + late final __objc_msgSend_201Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_86 = __objc_msgSend_86Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_201 = __objc_msgSend_201Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_isEqualToNumber_1 = _registerName1("isEqualToNumber:"); - bool _objc_msgSend_87( + late final _sel_status1 = _registerName1("status"); + int _objc_msgSend_202( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer number, ) { - return __objc_msgSend_87( + return __objc_msgSend_202( obj, sel, - number, ); } - late final __objc_msgSend_87Ptr = _lookup< + late final __objc_msgSend_202Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_87 = __objc_msgSend_87Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_202 = __objc_msgSend_202Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_descriptionWithLocale_1 = - _registerName1("descriptionWithLocale:"); - ffi.Pointer _objc_msgSend_88( + late final _sel_failureReason1 = _registerName1("failureReason"); + late final _sel_addClient_1 = _registerName1("addClient:"); + late final _sel_removeClient_1 = _registerName1("removeClient:"); + late final _sel_loadInBackground1 = _registerName1("loadInBackground"); + late final _sel_cancelLoadInBackground1 = + _registerName1("cancelLoadInBackground"); + late final _sel_resourceData1 = _registerName1("resourceData"); + late final _sel_availableResourceData1 = + _registerName1("availableResourceData"); + late final _sel_expectedResourceDataSize1 = + _registerName1("expectedResourceDataSize"); + late final _sel_flushCachedData1 = _registerName1("flushCachedData"); + late final _sel_backgroundLoadDidFailWithReason_1 = + _registerName1("backgroundLoadDidFailWithReason:"); + late final _sel_didLoadBytes_loadComplete_1 = + _registerName1("didLoadBytes:loadComplete:"); + void _objc_msgSend_203( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer locale, + ffi.Pointer newBytes, + bool yorn, ) { - return __objc_msgSend_88( + return __objc_msgSend_203( obj, sel, - locale, + newBytes, + yorn, ); } - late final __objc_msgSend_88Ptr = _lookup< + late final __objc_msgSend_203Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_88 = __objc_msgSend_88Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_203 = __objc_msgSend_203Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); - late final _sel_numberWithChar_1 = _registerName1("numberWithChar:"); - late final _sel_numberWithUnsignedChar_1 = - _registerName1("numberWithUnsignedChar:"); - late final _sel_numberWithShort_1 = _registerName1("numberWithShort:"); - late final _sel_numberWithUnsignedShort_1 = - _registerName1("numberWithUnsignedShort:"); - late final _sel_numberWithInt_1 = _registerName1("numberWithInt:"); - late final _sel_numberWithUnsignedInt_1 = - _registerName1("numberWithUnsignedInt:"); - late final _sel_numberWithLong_1 = _registerName1("numberWithLong:"); - late final _sel_numberWithUnsignedLong_1 = - _registerName1("numberWithUnsignedLong:"); - late final _sel_numberWithLongLong_1 = _registerName1("numberWithLongLong:"); - late final _sel_numberWithUnsignedLongLong_1 = - _registerName1("numberWithUnsignedLongLong:"); - late final _sel_numberWithFloat_1 = _registerName1("numberWithFloat:"); - late final _sel_numberWithDouble_1 = _registerName1("numberWithDouble:"); - late final _sel_numberWithBool_1 = _registerName1("numberWithBool:"); - late final _sel_numberWithInteger_1 = _registerName1("numberWithInteger:"); - late final _sel_numberWithUnsignedInteger_1 = - _registerName1("numberWithUnsignedInteger:"); - late final _sel_port1 = _registerName1("port"); - ffi.Pointer _objc_msgSend_89( + late final _sel_canInitWithURL_1 = _registerName1("canInitWithURL:"); + bool _objc_msgSend_204( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer anURL, ) { - return __objc_msgSend_89( + return __objc_msgSend_204( obj, sel, + anURL, ); } - late final __objc_msgSend_89Ptr = _lookup< + late final __objc_msgSend_204Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_89 = __objc_msgSend_89Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_204 = __objc_msgSend_204Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_user1 = _registerName1("user"); - late final _sel_password1 = _registerName1("password"); - late final _sel_path1 = _registerName1("path"); - late final _sel_fragment1 = _registerName1("fragment"); - late final _sel_parameterString1 = _registerName1("parameterString"); - late final _sel_query1 = _registerName1("query"); - late final _sel_relativePath1 = _registerName1("relativePath"); - late final _sel_hasDirectoryPath1 = _registerName1("hasDirectoryPath"); - late final _sel_getFileSystemRepresentation_maxLength_1 = - _registerName1("getFileSystemRepresentation:maxLength:"); - bool _objc_msgSend_90( + late final _sel_cachedHandleForURL_1 = _registerName1("cachedHandleForURL:"); + ffi.Pointer _objc_msgSend_205( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer buffer, - int maxBufferLength, + ffi.Pointer anURL, ) { - return __objc_msgSend_90( + return __objc_msgSend_205( obj, sel, - buffer, - maxBufferLength, + anURL, ); } - late final __objc_msgSend_90Ptr = _lookup< + late final __objc_msgSend_205Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_90 = __objc_msgSend_90Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_205 = __objc_msgSend_205Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_fileSystemRepresentation1 = - _registerName1("fileSystemRepresentation"); - late final _sel_isFileURL1 = _registerName1("isFileURL"); - late final _sel_standardizedURL1 = _registerName1("standardizedURL"); - late final _class_NSError1 = _getClass1("NSError"); - late final _class_NSDictionary1 = _getClass1("NSDictionary"); - late final _sel_count1 = _registerName1("count"); - late final _sel_objectForKey_1 = _registerName1("objectForKey:"); - ffi.Pointer _objc_msgSend_91( + late final _sel_initWithURL_cached_1 = _registerName1("initWithURL:cached:"); + ffi.Pointer _objc_msgSend_206( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aKey, + ffi.Pointer anURL, + bool willCache, ) { - return __objc_msgSend_91( + return __objc_msgSend_206( obj, sel, - aKey, + anURL, + willCache, ); } - late final __objc_msgSend_91Ptr = _lookup< + late final __objc_msgSend_206Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_91 = __objc_msgSend_91Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_206 = __objc_msgSend_206Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer, bool)>(); - late final _class_NSEnumerator1 = _getClass1("NSEnumerator"); - late final _sel_nextObject1 = _registerName1("nextObject"); - late final _sel_allObjects1 = _registerName1("allObjects"); - late final _sel_keyEnumerator1 = _registerName1("keyEnumerator"); - ffi.Pointer _objc_msgSend_92( + late final _sel_propertyForKeyIfAvailable_1 = + _registerName1("propertyForKeyIfAvailable:"); + late final _sel_writeProperty_forKey_1 = + _registerName1("writeProperty:forKey:"); + late final _sel_writeData_1 = _registerName1("writeData:"); + late final _sel_loadInForeground1 = _registerName1("loadInForeground"); + late final _sel_beginLoadInBackground1 = + _registerName1("beginLoadInBackground"); + late final _sel_endLoadInBackground1 = _registerName1("endLoadInBackground"); + late final _sel_URLHandleUsingCache_1 = + _registerName1("URLHandleUsingCache:"); + ffi.Pointer _objc_msgSend_207( ffi.Pointer obj, ffi.Pointer sel, + bool shouldUseCache, ) { - return __objc_msgSend_92( + return __objc_msgSend_207( obj, sel, + shouldUseCache, ); } - late final __objc_msgSend_92Ptr = _lookup< + late final __objc_msgSend_207Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_92 = __objc_msgSend_92Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_207 = __objc_msgSend_207Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer, bool)>(); - late final _sel_initWithObjects_forKeys_count_1 = - _registerName1("initWithObjects:forKeys:count:"); - instancetype _objc_msgSend_93( + late final _sel_writeToFile_options_error_1 = + _registerName1("writeToFile:options:error:"); + bool _objc_msgSend_208( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt, + ffi.Pointer path, + int writeOptionsMask, + ffi.Pointer> errorPtr, ) { - return __objc_msgSend_93( + return __objc_msgSend_208( obj, sel, - objects, - keys, - cnt, + path, + writeOptionsMask, + errorPtr, ); } - late final __objc_msgSend_93Ptr = _lookup< + late final __objc_msgSend_208Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_93 = __objc_msgSend_93Ptr.asFunction< - instancetype Function( + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_208 = __objc_msgSend_208Ptr.asFunction< + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int)>(); + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _class_NSArray1 = _getClass1("NSArray"); - late final _sel_objectAtIndex_1 = _registerName1("objectAtIndex:"); - ffi.Pointer _objc_msgSend_94( + late final _sel_writeToURL_options_error_1 = + _registerName1("writeToURL:options:error:"); + bool _objc_msgSend_209( ffi.Pointer obj, ffi.Pointer sel, - int index, + ffi.Pointer url, + int writeOptionsMask, + ffi.Pointer> errorPtr, ) { - return __objc_msgSend_94( + return __objc_msgSend_209( obj, sel, - index, + url, + writeOptionsMask, + errorPtr, ); } - late final __objc_msgSend_94Ptr = _lookup< + late final __objc_msgSend_209Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_94 = __objc_msgSend_94Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_209 = __objc_msgSend_209Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_initWithObjects_count_1 = - _registerName1("initWithObjects:count:"); - instancetype _objc_msgSend_95( + late final _sel_rangeOfData_options_range_1 = + _registerName1("rangeOfData:options:range:"); + NSRange _objc_msgSend_210( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer> objects, - int cnt, + ffi.Pointer dataToFind, + int mask, + NSRange searchRange, ) { - return __objc_msgSend_95( + return __objc_msgSend_210( obj, sel, - objects, - cnt, + dataToFind, + mask, + searchRange, ); } - late final __objc_msgSend_95Ptr = _lookup< + late final __objc_msgSend_210Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_95 = __objc_msgSend_95Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, int)>(); + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_210 = __objc_msgSend_210Ptr.asFunction< + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, NSRange)>(); - late final _sel_arrayByAddingObject_1 = - _registerName1("arrayByAddingObject:"); - ffi.Pointer _objc_msgSend_96( + late final _sel_enumerateByteRangesUsingBlock_1 = + _registerName1("enumerateByteRangesUsingBlock:"); + void _objc_msgSend_211( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anObject, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_96( + return __objc_msgSend_211( obj, sel, - anObject, + block, ); } - late final __objc_msgSend_96Ptr = _lookup< + late final __objc_msgSend_211Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_96 = __objc_msgSend_96Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_211 = __objc_msgSend_211Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_arrayByAddingObjectsFromArray_1 = - _registerName1("arrayByAddingObjectsFromArray:"); - ffi.Pointer _objc_msgSend_97( + late final _sel_data1 = _registerName1("data"); + late final _sel_dataWithBytes_length_1 = + _registerName1("dataWithBytes:length:"); + instancetype _objc_msgSend_212( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer otherArray, + ffi.Pointer bytes, + int length, ) { - return __objc_msgSend_97( + return __objc_msgSend_212( obj, sel, - otherArray, + bytes, + length, ); } - late final __objc_msgSend_97Ptr = _lookup< + late final __objc_msgSend_212Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_97 = __objc_msgSend_97Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_212 = __objc_msgSend_212Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_componentsJoinedByString_1 = - _registerName1("componentsJoinedByString:"); - ffi.Pointer _objc_msgSend_98( + late final _sel_dataWithBytesNoCopy_length_1 = + _registerName1("dataWithBytesNoCopy:length:"); + late final _sel_dataWithBytesNoCopy_length_freeWhenDone_1 = + _registerName1("dataWithBytesNoCopy:length:freeWhenDone:"); + instancetype _objc_msgSend_213( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer separator, + ffi.Pointer bytes, + int length, + bool b, ) { - return __objc_msgSend_98( + return __objc_msgSend_213( obj, sel, - separator, + bytes, + length, + b, ); } - late final __objc_msgSend_98Ptr = _lookup< + late final __objc_msgSend_213Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_98 = __objc_msgSend_98Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSUInteger, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_213 = __objc_msgSend_213Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, bool)>(); - late final _sel_containsObject_1 = _registerName1("containsObject:"); - late final _sel_descriptionWithLocale_indent_1 = - _registerName1("descriptionWithLocale:indent:"); - ffi.Pointer _objc_msgSend_99( + late final _sel_dataWithContentsOfFile_options_error_1 = + _registerName1("dataWithContentsOfFile:options:error:"); + instancetype _objc_msgSend_214( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer locale, - int level, + ffi.Pointer path, + int readOptionsMask, + ffi.Pointer> errorPtr, ) { - return __objc_msgSend_99( + return __objc_msgSend_214( obj, sel, - locale, - level, + path, + readOptionsMask, + errorPtr, ); } - late final __objc_msgSend_99Ptr = _lookup< + late final __objc_msgSend_214Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_99 = __objc_msgSend_99Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_214 = __objc_msgSend_214Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_firstObjectCommonWithArray_1 = - _registerName1("firstObjectCommonWithArray:"); - ffi.Pointer _objc_msgSend_100( + late final _sel_dataWithContentsOfURL_options_error_1 = + _registerName1("dataWithContentsOfURL:options:error:"); + instancetype _objc_msgSend_215( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer otherArray, + ffi.Pointer url, + int readOptionsMask, + ffi.Pointer> errorPtr, ) { - return __objc_msgSend_100( + return __objc_msgSend_215( obj, sel, - otherArray, + url, + readOptionsMask, + errorPtr, ); } - late final __objc_msgSend_100Ptr = _lookup< + late final __objc_msgSend_215Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_100 = __objc_msgSend_100Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_215 = __objc_msgSend_215Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_getObjects_range_1 = _registerName1("getObjects:range:"); - void _objc_msgSend_101( + late final _sel_dataWithContentsOfFile_1 = + _registerName1("dataWithContentsOfFile:"); + late final _sel_dataWithContentsOfURL_1 = + _registerName1("dataWithContentsOfURL:"); + late final _sel_initWithBytes_length_1 = + _registerName1("initWithBytes:length:"); + late final _sel_initWithBytesNoCopy_length_1 = + _registerName1("initWithBytesNoCopy:length:"); + late final _sel_initWithBytesNoCopy_length_freeWhenDone_1 = + _registerName1("initWithBytesNoCopy:length:freeWhenDone:"); + late final _sel_initWithBytesNoCopy_length_deallocator_1 = + _registerName1("initWithBytesNoCopy:length:deallocator:"); + instancetype _objc_msgSend_216( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer> objects, - NSRange range, + ffi.Pointer bytes, + int length, + ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_101( + return __objc_msgSend_216( obj, sel, - objects, - range, + bytes, + length, + deallocator, ); } - late final __objc_msgSend_101Ptr = _lookup< + late final __objc_msgSend_216Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_101 = __objc_msgSend_101Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, NSRange)>(); - - late final _sel_indexOfObject_1 = _registerName1("indexOfObject:"); - int _objc_msgSend_102( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - ) { - return __objc_msgSend_102( - obj, - sel, - anObject, - ); - } - - late final __objc_msgSend_102Ptr = _lookup< - ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_102 = __objc_msgSend_102Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_indexOfObject_inRange_1 = - _registerName1("indexOfObject:inRange:"); - int _objc_msgSend_103( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - NSRange range, - ) { - return __objc_msgSend_103( - obj, - sel, - anObject, - range, - ); - } - - late final __objc_msgSend_103Ptr = _lookup< - ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_103 = __objc_msgSend_103Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_216 = __objc_msgSend_216Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_indexOfObjectIdenticalTo_1 = - _registerName1("indexOfObjectIdenticalTo:"); - late final _sel_indexOfObjectIdenticalTo_inRange_1 = - _registerName1("indexOfObjectIdenticalTo:inRange:"); - late final _sel_isEqualToArray_1 = _registerName1("isEqualToArray:"); - bool _objc_msgSend_104( + late final _sel_initWithContentsOfFile_options_error_1 = + _registerName1("initWithContentsOfFile:options:error:"); + late final _sel_initWithContentsOfURL_options_error_1 = + _registerName1("initWithContentsOfURL:options:error:"); + late final _sel_initWithData_1 = _registerName1("initWithData:"); + instancetype _objc_msgSend_217( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer otherArray, + ffi.Pointer data, ) { - return __objc_msgSend_104( + return __objc_msgSend_217( obj, sel, - otherArray, + data, ); } - late final __objc_msgSend_104Ptr = _lookup< + late final __objc_msgSend_217Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, + instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_104 = __objc_msgSend_104Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, + late final __objc_msgSend_217 = __objc_msgSend_217Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_firstObject1 = _registerName1("firstObject"); - late final _sel_lastObject1 = _registerName1("lastObject"); - late final _sel_objectEnumerator1 = _registerName1("objectEnumerator"); - late final _sel_reverseObjectEnumerator1 = - _registerName1("reverseObjectEnumerator"); - late final _sel_sortedArrayHint1 = _registerName1("sortedArrayHint"); - late final _sel_sortedArrayUsingFunction_context_1 = - _registerName1("sortedArrayUsingFunction:context:"); - ffi.Pointer _objc_msgSend_105( + late final _sel_dataWithData_1 = _registerName1("dataWithData:"); + late final _sel_initWithBase64EncodedString_options_1 = + _registerName1("initWithBase64EncodedString:options:"); + instancetype _objc_msgSend_218( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context, + ffi.Pointer base64String, + int options, ) { - return __objc_msgSend_105( + return __objc_msgSend_218( obj, sel, - comparator, - context, + base64String, + options, ); } - late final __objc_msgSend_105Ptr = _lookup< + late final __objc_msgSend_218Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_105 = __objc_msgSend_105Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_218 = __objc_msgSend_218Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_sortedArrayUsingFunction_context_hint_1 = - _registerName1("sortedArrayUsingFunction:context:hint:"); - ffi.Pointer _objc_msgSend_106( + late final _sel_base64EncodedStringWithOptions_1 = + _registerName1("base64EncodedStringWithOptions:"); + ffi.Pointer _objc_msgSend_219( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context, - ffi.Pointer hint, + int options, ) { - return __objc_msgSend_106( + return __objc_msgSend_219( obj, sel, - comparator, - context, - hint, + options, ); } - late final __objc_msgSend_106Ptr = _lookup< + late final __objc_msgSend_219Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_106 = __objc_msgSend_106Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_219 = __objc_msgSend_219Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_sortedArrayUsingSelector_1 = - _registerName1("sortedArrayUsingSelector:"); - ffi.Pointer _objc_msgSend_107( + late final _sel_initWithBase64EncodedData_options_1 = + _registerName1("initWithBase64EncodedData:options:"); + instancetype _objc_msgSend_220( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer comparator, + ffi.Pointer base64Data, + int options, ) { - return __objc_msgSend_107( + return __objc_msgSend_220( obj, sel, - comparator, + base64Data, + options, ); } - late final __objc_msgSend_107Ptr = _lookup< + late final __objc_msgSend_220Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_107 = __objc_msgSend_107Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_220 = __objc_msgSend_220Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_subarrayWithRange_1 = _registerName1("subarrayWithRange:"); - ffi.Pointer _objc_msgSend_108( + late final _sel_base64EncodedDataWithOptions_1 = + _registerName1("base64EncodedDataWithOptions:"); + ffi.Pointer _objc_msgSend_221( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + int options, ) { - return __objc_msgSend_108( + return __objc_msgSend_221( obj, sel, - range, + options, ); } - late final __objc_msgSend_108Ptr = _lookup< + late final __objc_msgSend_221Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_108 = __objc_msgSend_108Ptr.asFunction< + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_writeToURL_error_1 = _registerName1("writeToURL:error:"); - bool _objc_msgSend_109( + late final _sel_decompressedDataUsingAlgorithm_error_1 = + _registerName1("decompressedDataUsingAlgorithm:error:"); + instancetype _objc_msgSend_222( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, + int algorithm, ffi.Pointer> error, ) { - return __objc_msgSend_109( + return __objc_msgSend_222( obj, sel, - url, + algorithm, error, ); } - late final __objc_msgSend_109Ptr = _lookup< + late final __objc_msgSend_222Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + instancetype Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_109 = __objc_msgSend_109Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); + late final __objc_msgSend_222 = __objc_msgSend_222Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer>)>(); - late final _sel_makeObjectsPerformSelector_1 = - _registerName1("makeObjectsPerformSelector:"); - late final _sel_makeObjectsPerformSelector_withObject_1 = - _registerName1("makeObjectsPerformSelector:withObject:"); - void _objc_msgSend_110( + late final _sel_compressedDataUsingAlgorithm_error_1 = + _registerName1("compressedDataUsingAlgorithm:error:"); + late final _sel_getBytes_1 = _registerName1("getBytes:"); + late final _sel_dataWithContentsOfMappedFile_1 = + _registerName1("dataWithContentsOfMappedFile:"); + late final _sel_initWithContentsOfMappedFile_1 = + _registerName1("initWithContentsOfMappedFile:"); + late final _sel_initWithBase64Encoding_1 = + _registerName1("initWithBase64Encoding:"); + late final _sel_base64Encoding1 = _registerName1("base64Encoding"); + late final _sel_characterSetWithBitmapRepresentation_1 = + _registerName1("characterSetWithBitmapRepresentation:"); + ffi.Pointer _objc_msgSend_223( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aSelector, - ffi.Pointer argument, + ffi.Pointer data, ) { - return __objc_msgSend_110( + return __objc_msgSend_223( obj, sel, - aSelector, - argument, + data, ); } - late final __objc_msgSend_110Ptr = _lookup< + late final __objc_msgSend_223Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_110 = __objc_msgSend_110Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, + late final __objc_msgSend_223 = __objc_msgSend_223Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _class_NSIndexSet1 = _getClass1("NSIndexSet"); - late final _sel_indexSet1 = _registerName1("indexSet"); - late final _sel_indexSetWithIndex_1 = _registerName1("indexSetWithIndex:"); - late final _sel_indexSetWithIndexesInRange_1 = - _registerName1("indexSetWithIndexesInRange:"); - instancetype _objc_msgSend_111( + late final _sel_characterSetWithContentsOfFile_1 = + _registerName1("characterSetWithContentsOfFile:"); + late final _sel_characterIsMember_1 = _registerName1("characterIsMember:"); + bool _objc_msgSend_224( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + int aCharacter, ) { - return __objc_msgSend_111( + return __objc_msgSend_224( obj, sel, - range, + aCharacter, ); } - late final __objc_msgSend_111Ptr = _lookup< + late final __objc_msgSend_224Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_111 = __objc_msgSend_111Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + unichar)>>('objc_msgSend'); + late final __objc_msgSend_224 = __objc_msgSend_224Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_initWithIndexesInRange_1 = - _registerName1("initWithIndexesInRange:"); - late final _sel_initWithIndexSet_1 = _registerName1("initWithIndexSet:"); - instancetype _objc_msgSend_112( + late final _sel_bitmapRepresentation1 = + _registerName1("bitmapRepresentation"); + late final _sel_invertedSet1 = _registerName1("invertedSet"); + late final _sel_longCharacterIsMember_1 = + _registerName1("longCharacterIsMember:"); + bool _objc_msgSend_225( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexSet, + int theLongChar, ) { - return __objc_msgSend_112( + return __objc_msgSend_225( obj, sel, - indexSet, + theLongChar, ); } - late final __objc_msgSend_112Ptr = _lookup< + late final __objc_msgSend_225Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_112 = __objc_msgSend_112Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + UTF32Char)>>('objc_msgSend'); + late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_initWithIndex_1 = _registerName1("initWithIndex:"); - late final _sel_isEqualToIndexSet_1 = _registerName1("isEqualToIndexSet:"); - bool _objc_msgSend_113( + late final _sel_isSupersetOfSet_1 = _registerName1("isSupersetOfSet:"); + bool _objc_msgSend_226( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexSet, + ffi.Pointer theOtherSet, ) { - return __objc_msgSend_113( + return __objc_msgSend_226( obj, sel, - indexSet, + theOtherSet, ); } - late final __objc_msgSend_113Ptr = _lookup< + late final __objc_msgSend_226Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_113 = __objc_msgSend_113Ptr.asFunction< + late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_firstIndex1 = _registerName1("firstIndex"); - late final _sel_lastIndex1 = _registerName1("lastIndex"); - late final _sel_indexGreaterThanIndex_1 = - _registerName1("indexGreaterThanIndex:"); - int _objc_msgSend_114( + late final _sel_hasMemberInPlane_1 = _registerName1("hasMemberInPlane:"); + bool _objc_msgSend_227( ffi.Pointer obj, ffi.Pointer sel, - int value, + int thePlane, ) { - return __objc_msgSend_114( + return __objc_msgSend_227( obj, sel, - value, + thePlane, ); } - late final __objc_msgSend_114Ptr = _lookup< + late final __objc_msgSend_227Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_114 = __objc_msgSend_114Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Uint8)>>('objc_msgSend'); + late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_indexLessThanIndex_1 = _registerName1("indexLessThanIndex:"); - late final _sel_indexGreaterThanOrEqualToIndex_1 = - _registerName1("indexGreaterThanOrEqualToIndex:"); - late final _sel_indexLessThanOrEqualToIndex_1 = - _registerName1("indexLessThanOrEqualToIndex:"); - late final _sel_getIndexes_maxCount_inIndexRange_1 = - _registerName1("getIndexes:maxCount:inIndexRange:"); - int _objc_msgSend_115( + late final _sel_URLUserAllowedCharacterSet1 = + _registerName1("URLUserAllowedCharacterSet"); + late final _sel_URLPasswordAllowedCharacterSet1 = + _registerName1("URLPasswordAllowedCharacterSet"); + late final _sel_URLHostAllowedCharacterSet1 = + _registerName1("URLHostAllowedCharacterSet"); + late final _sel_URLPathAllowedCharacterSet1 = + _registerName1("URLPathAllowedCharacterSet"); + late final _sel_URLQueryAllowedCharacterSet1 = + _registerName1("URLQueryAllowedCharacterSet"); + late final _sel_URLFragmentAllowedCharacterSet1 = + _registerName1("URLFragmentAllowedCharacterSet"); + late final _sel_rangeOfCharacterFromSet_1 = + _registerName1("rangeOfCharacterFromSet:"); + NSRange _objc_msgSend_228( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexBuffer, - int bufferSize, - NSRangePointer range, + ffi.Pointer searchSet, ) { - return __objc_msgSend_115( + return __objc_msgSend_228( obj, sel, - indexBuffer, - bufferSize, - range, + searchSet, ); } - late final __objc_msgSend_115Ptr = _lookup< + late final __objc_msgSend_228Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_115 = __objc_msgSend_115Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRangePointer)>(); + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_countOfIndexesInRange_1 = - _registerName1("countOfIndexesInRange:"); - int _objc_msgSend_116( + late final _sel_rangeOfCharacterFromSet_options_1 = + _registerName1("rangeOfCharacterFromSet:options:"); + NSRange _objc_msgSend_229( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + ffi.Pointer searchSet, + int mask, ) { - return __objc_msgSend_116( + return __objc_msgSend_229( obj, sel, - range, + searchSet, + mask, ); } - late final __objc_msgSend_116Ptr = _lookup< + late final __objc_msgSend_229Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_116 = __objc_msgSend_116Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, NSRange)>(); + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_containsIndex_1 = _registerName1("containsIndex:"); - bool _objc_msgSend_117( + late final _sel_rangeOfCharacterFromSet_options_range_1 = + _registerName1("rangeOfCharacterFromSet:options:range:"); + NSRange _objc_msgSend_230( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer searchSet, + int mask, + NSRange rangeOfReceiverToSearch, ) { - return __objc_msgSend_117( + return __objc_msgSend_230( obj, sel, - value, + searchSet, + mask, + rangeOfReceiverToSearch, ); } - late final __objc_msgSend_117Ptr = _lookup< + late final __objc_msgSend_230Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_117 = __objc_msgSend_117Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int)>(); + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< + NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, NSRange)>(); - late final _sel_containsIndexesInRange_1 = - _registerName1("containsIndexesInRange:"); - bool _objc_msgSend_118( + late final _sel_rangeOfComposedCharacterSequenceAtIndex_1 = + _registerName1("rangeOfComposedCharacterSequenceAtIndex:"); + NSRange _objc_msgSend_231( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + int index, ) { - return __objc_msgSend_118( + return __objc_msgSend_231( obj, sel, - range, + index, ); } - late final __objc_msgSend_118Ptr = _lookup< + late final __objc_msgSend_231Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_118 = __objc_msgSend_118Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, NSRange)>(); + NSRange Function(ffi.Pointer, ffi.Pointer, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< + NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_containsIndexes_1 = _registerName1("containsIndexes:"); - late final _sel_intersectsIndexesInRange_1 = - _registerName1("intersectsIndexesInRange:"); - late final _sel_enumerateIndexesUsingBlock_1 = - _registerName1("enumerateIndexesUsingBlock:"); - void _objc_msgSend_119( + late final _sel_rangeOfComposedCharacterSequencesForRange_1 = + _registerName1("rangeOfComposedCharacterSequencesForRange:"); + NSRange _objc_msgSend_232( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, + NSRange range, ) { - return __objc_msgSend_119( + return __objc_msgSend_232( obj, sel, - block, + range, ); } - late final __objc_msgSend_119Ptr = _lookup< + late final __objc_msgSend_232Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_119 = __objc_msgSend_119Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateIndexesWithOptions_usingBlock_1 = - _registerName1("enumerateIndexesWithOptions:usingBlock:"); - void _objc_msgSend_120( + NSRange Function(ffi.Pointer, ffi.Pointer, + NSRange)>>('objc_msgSend'); + late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< + NSRange Function( + ffi.Pointer, ffi.Pointer, NSRange)>(); + + late final _sel_stringByAppendingString_1 = + _registerName1("stringByAppendingString:"); + late final _sel_stringByAppendingFormat_1 = + _registerName1("stringByAppendingFormat:"); + late final _sel_uppercaseString1 = _registerName1("uppercaseString"); + late final _sel_lowercaseString1 = _registerName1("lowercaseString"); + late final _sel_capitalizedString1 = _registerName1("capitalizedString"); + late final _sel_localizedUppercaseString1 = + _registerName1("localizedUppercaseString"); + late final _sel_localizedLowercaseString1 = + _registerName1("localizedLowercaseString"); + late final _sel_localizedCapitalizedString1 = + _registerName1("localizedCapitalizedString"); + late final _sel_uppercaseStringWithLocale_1 = + _registerName1("uppercaseStringWithLocale:"); + ffi.Pointer _objc_msgSend_233( ffi.Pointer obj, ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> block, + ffi.Pointer locale, ) { - return __objc_msgSend_120( + return __objc_msgSend_233( obj, sel, - opts, - block, + locale, ); } - late final __objc_msgSend_120Ptr = _lookup< + late final __objc_msgSend_233Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_120 = __objc_msgSend_120Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_enumerateIndexesInRange_options_usingBlock_1 = - _registerName1("enumerateIndexesInRange:options:usingBlock:"); - void _objc_msgSend_121( + late final _sel_lowercaseStringWithLocale_1 = + _registerName1("lowercaseStringWithLocale:"); + late final _sel_capitalizedStringWithLocale_1 = + _registerName1("capitalizedStringWithLocale:"); + late final _sel_getLineStart_end_contentsEnd_forRange_1 = + _registerName1("getLineStart:end:contentsEnd:forRange:"); + void _objc_msgSend_234( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer startPtr, + ffi.Pointer lineEndPtr, + ffi.Pointer contentsEndPtr, + NSRange range, + ) { + return __objc_msgSend_234( + obj, + sel, + startPtr, + lineEndPtr, + contentsEndPtr, + range, + ); + } + + late final __objc_msgSend_234Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange)>>('objc_msgSend'); + late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange)>(); + + late final _sel_lineRangeForRange_1 = _registerName1("lineRangeForRange:"); + late final _sel_getParagraphStart_end_contentsEnd_forRange_1 = + _registerName1("getParagraphStart:end:contentsEnd:forRange:"); + late final _sel_paragraphRangeForRange_1 = + _registerName1("paragraphRangeForRange:"); + late final _sel_enumerateSubstringsInRange_options_usingBlock_1 = + _registerName1("enumerateSubstringsInRange:options:usingBlock:"); + void _objc_msgSend_235( ffi.Pointer obj, ffi.Pointer sel, NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_121( + return __objc_msgSend_235( obj, sel, range, @@ -5435,13238 +6436,12013 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_121Ptr = _lookup< + late final __objc_msgSend_235Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_121 = __objc_msgSend_121Ptr.asFunction< + late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSRange, int, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_indexPassingTest_1 = _registerName1("indexPassingTest:"); - int _objc_msgSend_122( + late final _sel_enumerateLinesUsingBlock_1 = + _registerName1("enumerateLinesUsingBlock:"); + void _objc_msgSend_236( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> predicate, + ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_122( + return __objc_msgSend_236( obj, sel, - predicate, + block, ); } - late final __objc_msgSend_122Ptr = _lookup< + late final __objc_msgSend_236Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_122 = __objc_msgSend_122Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, + late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_indexWithOptions_passingTest_1 = - _registerName1("indexWithOptions:passingTest:"); - int _objc_msgSend_123( + late final _sel_UTF8String1 = _registerName1("UTF8String"); + late final _sel_fastestEncoding1 = _registerName1("fastestEncoding"); + late final _sel_smallestEncoding1 = _registerName1("smallestEncoding"); + late final _sel_dataUsingEncoding_allowLossyConversion_1 = + _registerName1("dataUsingEncoding:allowLossyConversion:"); + ffi.Pointer _objc_msgSend_237( ffi.Pointer obj, ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> predicate, + int encoding, + bool lossy, ) { - return __objc_msgSend_123( + return __objc_msgSend_237( obj, sel, - opts, - predicate, + encoding, + lossy, ); } - late final __objc_msgSend_123Ptr = _lookup< + late final __objc_msgSend_237Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_123 = __objc_msgSend_123Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSStringEncoding, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_237 = __objc_msgSend_237Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int, bool)>(); - late final _sel_indexInRange_options_passingTest_1 = - _registerName1("indexInRange:options:passingTest:"); - int _objc_msgSend_124( + late final _sel_dataUsingEncoding_1 = _registerName1("dataUsingEncoding:"); + ffi.Pointer _objc_msgSend_238( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, - int opts, - ffi.Pointer<_ObjCBlock> predicate, + int encoding, ) { - return __objc_msgSend_124( + return __objc_msgSend_238( obj, sel, - range, - opts, - predicate, + encoding, ); } - late final __objc_msgSend_124Ptr = _lookup< + late final __objc_msgSend_238Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_124 = __objc_msgSend_124Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, NSRange, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); + late final __objc_msgSend_238 = __objc_msgSend_238Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_indexesPassingTest_1 = _registerName1("indexesPassingTest:"); - ffi.Pointer _objc_msgSend_125( + late final _sel_canBeConvertedToEncoding_1 = + _registerName1("canBeConvertedToEncoding:"); + late final _sel_cStringUsingEncoding_1 = + _registerName1("cStringUsingEncoding:"); + ffi.Pointer _objc_msgSend_239( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> predicate, + int encoding, ) { - return __objc_msgSend_125( + return __objc_msgSend_239( obj, sel, - predicate, + encoding, ); } - late final __objc_msgSend_125Ptr = _lookup< + late final __objc_msgSend_239Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_125 = __objc_msgSend_125Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); + late final __objc_msgSend_239 = __objc_msgSend_239Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_indexesWithOptions_passingTest_1 = - _registerName1("indexesWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_126( + late final _sel_getCString_maxLength_encoding_1 = + _registerName1("getCString:maxLength:encoding:"); + bool _objc_msgSend_240( ffi.Pointer obj, ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> predicate, + ffi.Pointer buffer, + int maxBufferCount, + int encoding, ) { - return __objc_msgSend_126( + return __objc_msgSend_240( obj, sel, - opts, - predicate, + buffer, + maxBufferCount, + encoding, ); } - late final __objc_msgSend_126Ptr = _lookup< + late final __objc_msgSend_240Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_126 = __objc_msgSend_126Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, + NSUInteger, + NSStringEncoding)>>('objc_msgSend'); + late final __objc_msgSend_240 = __objc_msgSend_240Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int)>(); - late final _sel_indexesInRange_options_passingTest_1 = - _registerName1("indexesInRange:options:passingTest:"); - ffi.Pointer _objc_msgSend_127( + late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1 = + _registerName1( + "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:"); + bool _objc_msgSend_241( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer buffer, + int maxBufferCount, + ffi.Pointer usedBufferCount, + int encoding, + int options, NSRange range, - int opts, - ffi.Pointer<_ObjCBlock> predicate, + NSRangePointer leftover, ) { - return __objc_msgSend_127( + return __objc_msgSend_241( obj, sel, + buffer, + maxBufferCount, + usedBufferCount, + encoding, + options, range, - opts, - predicate, + leftover, ); } - late final __objc_msgSend_127Ptr = _lookup< + late final __objc_msgSend_241Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - NSRange, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + NSStringEncoding, ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_127 = __objc_msgSend_127Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, int, ffi.Pointer<_ObjCBlock>)>(); + NSRange, + NSRangePointer)>>('objc_msgSend'); + late final __objc_msgSend_241 = __objc_msgSend_241Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + int, + int, + NSRange, + NSRangePointer)>(); - late final _sel_enumerateRangesUsingBlock_1 = - _registerName1("enumerateRangesUsingBlock:"); - void _objc_msgSend_128( + late final _sel_maximumLengthOfBytesUsingEncoding_1 = + _registerName1("maximumLengthOfBytesUsingEncoding:"); + late final _sel_lengthOfBytesUsingEncoding_1 = + _registerName1("lengthOfBytesUsingEncoding:"); + late final _sel_availableStringEncodings1 = + _registerName1("availableStringEncodings"); + ffi.Pointer _objc_msgSend_242( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_128( + return __objc_msgSend_242( obj, sel, - block, ); } - late final __objc_msgSend_128Ptr = _lookup< + late final __objc_msgSend_242Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_128 = __objc_msgSend_128Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_242 = __objc_msgSend_242Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_enumerateRangesWithOptions_usingBlock_1 = - _registerName1("enumerateRangesWithOptions:usingBlock:"); - void _objc_msgSend_129( + late final _sel_localizedNameOfStringEncoding_1 = + _registerName1("localizedNameOfStringEncoding:"); + late final _sel_defaultCStringEncoding1 = + _registerName1("defaultCStringEncoding"); + late final _sel_decomposedStringWithCanonicalMapping1 = + _registerName1("decomposedStringWithCanonicalMapping"); + late final _sel_precomposedStringWithCanonicalMapping1 = + _registerName1("precomposedStringWithCanonicalMapping"); + late final _sel_decomposedStringWithCompatibilityMapping1 = + _registerName1("decomposedStringWithCompatibilityMapping"); + late final _sel_precomposedStringWithCompatibilityMapping1 = + _registerName1("precomposedStringWithCompatibilityMapping"); + late final _sel_componentsSeparatedByString_1 = + _registerName1("componentsSeparatedByString:"); + late final _sel_componentsSeparatedByCharactersInSet_1 = + _registerName1("componentsSeparatedByCharactersInSet:"); + ffi.Pointer _objc_msgSend_243( ffi.Pointer obj, ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> block, + ffi.Pointer separator, ) { - return __objc_msgSend_129( + return __objc_msgSend_243( obj, sel, - opts, - block, + separator, ); } - late final __objc_msgSend_129Ptr = _lookup< + late final __objc_msgSend_243Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_129 = __objc_msgSend_129Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_243 = __objc_msgSend_243Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_enumerateRangesInRange_options_usingBlock_1 = - _registerName1("enumerateRangesInRange:options:usingBlock:"); - void _objc_msgSend_130( + late final _sel_stringByTrimmingCharactersInSet_1 = + _registerName1("stringByTrimmingCharactersInSet:"); + ffi.Pointer _objc_msgSend_244( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, - int opts, - ffi.Pointer<_ObjCBlock> block, + ffi.Pointer set1, ) { - return __objc_msgSend_130( + return __objc_msgSend_244( obj, sel, - range, - opts, - block, + set1, ); } - late final __objc_msgSend_130Ptr = _lookup< + late final __objc_msgSend_244Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_130 = __objc_msgSend_130Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_244 = __objc_msgSend_244Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_objectsAtIndexes_1 = _registerName1("objectsAtIndexes:"); - ffi.Pointer _objc_msgSend_131( + late final _sel_stringByPaddingToLength_withString_startingAtIndex_1 = + _registerName1("stringByPaddingToLength:withString:startingAtIndex:"); + ffi.Pointer _objc_msgSend_245( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexes, + int newLength, + ffi.Pointer padString, + int padIndex, ) { - return __objc_msgSend_131( + return __objc_msgSend_245( obj, sel, - indexes, + newLength, + padString, + padIndex, ); } - late final __objc_msgSend_131Ptr = _lookup< + late final __objc_msgSend_245Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_131 = __objc_msgSend_131Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_245 = __objc_msgSend_245Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer, int)>(); - late final _sel_objectAtIndexedSubscript_1 = - _registerName1("objectAtIndexedSubscript:"); - late final _sel_enumerateObjectsUsingBlock_1 = - _registerName1("enumerateObjectsUsingBlock:"); - void _objc_msgSend_132( + late final _sel_stringByFoldingWithOptions_locale_1 = + _registerName1("stringByFoldingWithOptions:locale:"); + ffi.Pointer _objc_msgSend_246( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, + int options, + ffi.Pointer locale, ) { - return __objc_msgSend_132( + return __objc_msgSend_246( obj, sel, - block, + options, + locale, ); } - late final __objc_msgSend_132Ptr = _lookup< + late final __objc_msgSend_246Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_132 = __objc_msgSend_132Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_246 = __objc_msgSend_246Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); - late final _sel_enumerateObjectsWithOptions_usingBlock_1 = - _registerName1("enumerateObjectsWithOptions:usingBlock:"); - void _objc_msgSend_133( + late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_1 = + _registerName1( + "stringByReplacingOccurrencesOfString:withString:options:range:"); + ffi.Pointer _objc_msgSend_247( ffi.Pointer obj, ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> block, + ffi.Pointer target, + ffi.Pointer replacement, + int options, + NSRange searchRange, ) { - return __objc_msgSend_133( + return __objc_msgSend_247( obj, sel, - opts, - block, + target, + replacement, + options, + searchRange, ); } - late final __objc_msgSend_133Ptr = _lookup< + late final __objc_msgSend_247Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_133 = __objc_msgSend_133Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + NSRange)>>('objc_msgSend'); + late final __objc_msgSend_247 = __objc_msgSend_247Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange)>(); - late final _sel_enumerateObjectsAtIndexes_options_usingBlock_1 = - _registerName1("enumerateObjectsAtIndexes:options:usingBlock:"); - void _objc_msgSend_134( + late final _sel_stringByReplacingOccurrencesOfString_withString_1 = + _registerName1("stringByReplacingOccurrencesOfString:withString:"); + ffi.Pointer _objc_msgSend_248( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer s, - int opts, - ffi.Pointer<_ObjCBlock> block, + ffi.Pointer target, + ffi.Pointer replacement, ) { - return __objc_msgSend_134( + return __objc_msgSend_248( obj, sel, - s, - opts, - block, + target, + replacement, ); } - late final __objc_msgSend_134Ptr = _lookup< + late final __objc_msgSend_248Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_134 = __objc_msgSend_134Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexOfObjectPassingTest_1 = - _registerName1("indexOfObjectPassingTest:"); - int _objc_msgSend_135( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_135( - obj, - sel, - predicate, - ); - } - - late final __objc_msgSend_135Ptr = _lookup< - ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexOfObjectWithOptions_passingTest_1 = - _registerName1("indexOfObjectWithOptions:passingTest:"); - int _objc_msgSend_136( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_136( - obj, - sel, - opts, - predicate, - ); - } - - late final __objc_msgSend_136Ptr = _lookup< - ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_136 = __objc_msgSend_136Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_248 = __objc_msgSend_248Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_indexOfObjectAtIndexes_options_passingTest_1 = - _registerName1("indexOfObjectAtIndexes:options:passingTest:"); - int _objc_msgSend_137( + late final _sel_stringByReplacingCharactersInRange_withString_1 = + _registerName1("stringByReplacingCharactersInRange:withString:"); + ffi.Pointer _objc_msgSend_249( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer s, - int opts, - ffi.Pointer<_ObjCBlock> predicate, + NSRange range, + ffi.Pointer replacement, ) { - return __objc_msgSend_137( + return __objc_msgSend_249( obj, sel, - s, - opts, - predicate, + range, + replacement, ); } - late final __objc_msgSend_137Ptr = _lookup< + late final __objc_msgSend_249Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_137 = __objc_msgSend_137Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_249 = __objc_msgSend_249Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSRange, ffi.Pointer)>(); - late final _sel_indexesOfObjectsPassingTest_1 = - _registerName1("indexesOfObjectsPassingTest:"); - ffi.Pointer _objc_msgSend_138( + late final _sel_stringByApplyingTransform_reverse_1 = + _registerName1("stringByApplyingTransform:reverse:"); + ffi.Pointer _objc_msgSend_250( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> predicate, + NSStringTransform transform, + bool reverse, ) { - return __objc_msgSend_138( + return __objc_msgSend_250( obj, sel, - predicate, + transform, + reverse, ); } - late final __objc_msgSend_138Ptr = _lookup< + late final __objc_msgSend_250Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_138 = __objc_msgSend_138Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSStringTransform, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, NSStringTransform, bool)>(); - late final _sel_indexesOfObjectsWithOptions_passingTest_1 = - _registerName1("indexesOfObjectsWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_139( + late final _sel_writeToURL_atomically_encoding_error_1 = + _registerName1("writeToURL:atomically:encoding:error:"); + bool _objc_msgSend_251( ffi.Pointer obj, ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> predicate, + ffi.Pointer url, + bool useAuxiliaryFile, + int enc, + ffi.Pointer> error, ) { - return __objc_msgSend_139( + return __objc_msgSend_251( obj, sel, - opts, - predicate, + url, + useAuxiliaryFile, + enc, + error, ); } - late final __objc_msgSend_139Ptr = _lookup< + late final __objc_msgSend_251Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_139 = __objc_msgSend_139Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, + ffi.Bool, + NSStringEncoding, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_251 = __objc_msgSend_251Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + int, + ffi.Pointer>)>(); - late final _sel_indexesOfObjectsAtIndexes_options_passingTest_1 = - _registerName1("indexesOfObjectsAtIndexes:options:passingTest:"); - ffi.Pointer _objc_msgSend_140( + late final _sel_writeToFile_atomically_encoding_error_1 = + _registerName1("writeToFile:atomically:encoding:error:"); + bool _objc_msgSend_252( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer s, - int opts, - ffi.Pointer<_ObjCBlock> predicate, + ffi.Pointer path, + bool useAuxiliaryFile, + int enc, + ffi.Pointer> error, ) { - return __objc_msgSend_140( + return __objc_msgSend_252( obj, sel, - s, - opts, - predicate, + path, + useAuxiliaryFile, + enc, + error, ); } - late final __objc_msgSend_140Ptr = _lookup< + late final __objc_msgSend_252Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_140 = __objc_msgSend_140Ptr.asFunction< - ffi.Pointer Function( + ffi.Bool, + NSStringEncoding, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_252 = __objc_msgSend_252Ptr.asFunction< + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + bool, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer>)>(); - late final _sel_sortedArrayUsingComparator_1 = - _registerName1("sortedArrayUsingComparator:"); - ffi.Pointer _objc_msgSend_141( + late final _sel_initWithCharactersNoCopy_length_freeWhenDone_1 = + _registerName1("initWithCharactersNoCopy:length:freeWhenDone:"); + instancetype _objc_msgSend_253( ffi.Pointer obj, ffi.Pointer sel, - NSComparator cmptr, + ffi.Pointer characters, + int length, + bool freeBuffer, ) { - return __objc_msgSend_141( + return __objc_msgSend_253( obj, sel, - cmptr, + characters, + length, + freeBuffer, ); } - late final __objc_msgSend_141Ptr = _lookup< + late final __objc_msgSend_253Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_141 = __objc_msgSend_141Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSComparator)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSUInteger, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_253 = __objc_msgSend_253Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, bool)>(); - late final _sel_sortedArrayWithOptions_usingComparator_1 = - _registerName1("sortedArrayWithOptions:usingComparator:"); - ffi.Pointer _objc_msgSend_142( + late final _sel_initWithCharactersNoCopy_length_deallocator_1 = + _registerName1("initWithCharactersNoCopy:length:deallocator:"); + instancetype _objc_msgSend_254( ffi.Pointer obj, ffi.Pointer sel, - int opts, - NSComparator cmptr, + ffi.Pointer chars, + int len, + ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_142( + return __objc_msgSend_254( obj, sel, - opts, - cmptr, + chars, + len, + deallocator, ); } - late final __objc_msgSend_142Ptr = _lookup< + late final __objc_msgSend_254Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_142 = __objc_msgSend_142Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int, NSComparator)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_254 = __objc_msgSend_254Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_indexOfObject_inSortedRange_options_usingComparator_1 = - _registerName1("indexOfObject:inSortedRange:options:usingComparator:"); - int _objc_msgSend_143( + late final _sel_initWithCharacters_length_1 = + _registerName1("initWithCharacters:length:"); + instancetype _objc_msgSend_255( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer obj1, - NSRange r, - int opts, - NSComparator cmp, + ffi.Pointer characters, + int length, ) { - return __objc_msgSend_143( + return __objc_msgSend_255( obj, sel, - obj1, - r, - opts, - cmp, + characters, + length, ); } - late final __objc_msgSend_143Ptr = _lookup< + late final __objc_msgSend_255Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Int32, - NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_143 = __objc_msgSend_143Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange, int, NSComparator)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_255 = __objc_msgSend_255Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_array1 = _registerName1("array"); - late final _sel_arrayWithObject_1 = _registerName1("arrayWithObject:"); - late final _sel_arrayWithObjects_count_1 = - _registerName1("arrayWithObjects:count:"); - late final _sel_arrayWithObjects_1 = _registerName1("arrayWithObjects:"); - late final _sel_arrayWithArray_1 = _registerName1("arrayWithArray:"); - late final _sel_initWithObjects_1 = _registerName1("initWithObjects:"); - late final _sel_initWithArray_1 = _registerName1("initWithArray:"); - late final _sel_initWithArray_copyItems_1 = - _registerName1("initWithArray:copyItems:"); - instancetype _objc_msgSend_144( + late final _sel_initWithUTF8String_1 = _registerName1("initWithUTF8String:"); + instancetype _objc_msgSend_256( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer array, - bool flag, + ffi.Pointer nullTerminatedCString, ) { - return __objc_msgSend_144( + return __objc_msgSend_256( obj, sel, - array, - flag, + nullTerminatedCString, ); } - late final __objc_msgSend_144Ptr = _lookup< + late final __objc_msgSend_256Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_144 = __objc_msgSend_144Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_256 = __objc_msgSend_256Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + ffi.Pointer)>(); - late final _sel_initWithContentsOfURL_error_1 = - _registerName1("initWithContentsOfURL:error:"); - ffi.Pointer _objc_msgSend_145( + late final _sel_initWithFormat_1 = _registerName1("initWithFormat:"); + late final _sel_initWithFormat_arguments_1 = + _registerName1("initWithFormat:arguments:"); + instancetype _objc_msgSend_257( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer> error, + ffi.Pointer format, + va_list argList, ) { - return __objc_msgSend_145( + return __objc_msgSend_257( obj, sel, - url, - error, + format, + argList, ); } - late final __objc_msgSend_145Ptr = _lookup< + late final __objc_msgSend_257Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_145 = __objc_msgSend_145Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, va_list)>>('objc_msgSend'); + late final __objc_msgSend_257 = __objc_msgSend_257Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, va_list)>(); - late final _sel_arrayWithContentsOfURL_error_1 = - _registerName1("arrayWithContentsOfURL:error:"); - late final _class_NSOrderedCollectionDifference1 = - _getClass1("NSOrderedCollectionDifference"); - late final _sel_initWithChanges_1 = _registerName1("initWithChanges:"); - late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_1 = - _registerName1( - "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:"); - instancetype _objc_msgSend_146( + late final _sel_initWithFormat_locale_1 = + _registerName1("initWithFormat:locale:"); + instancetype _objc_msgSend_258( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer inserts, - ffi.Pointer insertedObjects, - ffi.Pointer removes, - ffi.Pointer removedObjects, - ffi.Pointer changes, + ffi.Pointer format, + ffi.Pointer locale, ) { - return __objc_msgSend_146( + return __objc_msgSend_258( obj, sel, - inserts, - insertedObjects, - removes, - removedObjects, - changes, + format, + locale, ); } - late final __objc_msgSend_146Ptr = _lookup< + late final __objc_msgSend_258Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_146 = __objc_msgSend_146Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + late final __objc_msgSend_258 = __objc_msgSend_258Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_1 = - _registerName1( - "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:"); - instancetype _objc_msgSend_147( + late final _sel_initWithFormat_locale_arguments_1 = + _registerName1("initWithFormat:locale:arguments:"); + instancetype _objc_msgSend_259( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer inserts, - ffi.Pointer insertedObjects, - ffi.Pointer removes, - ffi.Pointer removedObjects, + ffi.Pointer format, + ffi.Pointer locale, + va_list argList, ) { - return __objc_msgSend_147( + return __objc_msgSend_259( obj, sel, - inserts, - insertedObjects, - removes, - removedObjects, + format, + locale, + argList, ); } - late final __objc_msgSend_147Ptr = _lookup< + late final __objc_msgSend_259Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_147 = __objc_msgSend_147Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + va_list)>>('objc_msgSend'); + late final __objc_msgSend_259 = __objc_msgSend_259Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, va_list)>(); - late final _sel_insertions1 = _registerName1("insertions"); - late final _sel_removals1 = _registerName1("removals"); - late final _sel_hasChanges1 = _registerName1("hasChanges"); - late final _class_NSOrderedCollectionChange1 = - _getClass1("NSOrderedCollectionChange"); - late final _sel_changeWithObject_type_index_1 = - _registerName1("changeWithObject:type:index:"); - ffi.Pointer _objc_msgSend_148( + late final _sel_initWithData_encoding_1 = + _registerName1("initWithData:encoding:"); + instancetype _objc_msgSend_260( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anObject, - int type, - int index, + ffi.Pointer data, + int encoding, ) { - return __objc_msgSend_148( + return __objc_msgSend_260( obj, sel, - anObject, - type, - index, + data, + encoding, ); } - late final __objc_msgSend_148Ptr = _lookup< + late final __objc_msgSend_260Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_148 = __objc_msgSend_148Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, int)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); + late final __objc_msgSend_260 = __objc_msgSend_260Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_changeWithObject_type_index_associatedIndex_1 = - _registerName1("changeWithObject:type:index:associatedIndex:"); - ffi.Pointer _objc_msgSend_149( + late final _sel_initWithBytes_length_encoding_1 = + _registerName1("initWithBytes:length:encoding:"); + instancetype _objc_msgSend_261( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anObject, - int type, - int index, - int associatedIndex, + ffi.Pointer bytes, + int len, + int encoding, ) { - return __objc_msgSend_149( + return __objc_msgSend_261( obj, sel, - anObject, - type, - index, - associatedIndex, + bytes, + len, + encoding, ); } - late final __objc_msgSend_149Ptr = _lookup< + late final __objc_msgSend_261Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Int32, + ffi.Pointer, NSUInteger, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_149 = __objc_msgSend_149Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, int, int)>(); + NSStringEncoding)>>('objc_msgSend'); + late final __objc_msgSend_261 = __objc_msgSend_261Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int)>(); - late final _sel_object1 = _registerName1("object"); - late final _sel_changeType1 = _registerName1("changeType"); - int _objc_msgSend_150( + late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1 = + _registerName1("initWithBytesNoCopy:length:encoding:freeWhenDone:"); + instancetype _objc_msgSend_262( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer bytes, + int len, + int encoding, + bool freeBuffer, ) { - return __objc_msgSend_150( + return __objc_msgSend_262( obj, sel, + bytes, + len, + encoding, + freeBuffer, ); } - late final __objc_msgSend_150Ptr = _lookup< + late final __objc_msgSend_262Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_150 = __objc_msgSend_150Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSStringEncoding, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_262 = __objc_msgSend_262Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int, bool)>(); - late final _sel_index1 = _registerName1("index"); - late final _sel_associatedIndex1 = _registerName1("associatedIndex"); - late final _sel_initWithObject_type_index_1 = - _registerName1("initWithObject:type:index:"); - instancetype _objc_msgSend_151( + late final _sel_initWithBytesNoCopy_length_encoding_deallocator_1 = + _registerName1("initWithBytesNoCopy:length:encoding:deallocator:"); + instancetype _objc_msgSend_263( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anObject, - int type, - int index, + ffi.Pointer bytes, + int len, + int encoding, + ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_151( + return __objc_msgSend_263( obj, sel, - anObject, - type, - index, + bytes, + len, + encoding, + deallocator, ); } - late final __objc_msgSend_151Ptr = _lookup< + late final __objc_msgSend_263Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSStringEncoding, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_263 = __objc_msgSend_263Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_string1 = _registerName1("string"); + late final _sel_stringWithString_1 = _registerName1("stringWithString:"); + late final _sel_stringWithCharacters_length_1 = + _registerName1("stringWithCharacters:length:"); + late final _sel_stringWithUTF8String_1 = + _registerName1("stringWithUTF8String:"); + late final _sel_stringWithFormat_1 = _registerName1("stringWithFormat:"); + late final _sel_localizedStringWithFormat_1 = + _registerName1("localizedStringWithFormat:"); + late final _sel_initWithCString_encoding_1 = + _registerName1("initWithCString:encoding:"); + instancetype _objc_msgSend_264( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer nullTerminatedCString, + int encoding, + ) { + return __objc_msgSend_264( + obj, + sel, + nullTerminatedCString, + encoding, + ); + } + + late final __objc_msgSend_264Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_151 = __objc_msgSend_151Ptr.asFunction< + ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); + late final __objc_msgSend_264 = __objc_msgSend_264Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int)>(); + ffi.Pointer, int)>(); - late final _sel_initWithObject_type_index_associatedIndex_1 = - _registerName1("initWithObject:type:index:associatedIndex:"); - instancetype _objc_msgSend_152( + late final _sel_stringWithCString_encoding_1 = + _registerName1("stringWithCString:encoding:"); + late final _sel_initWithContentsOfURL_encoding_error_1 = + _registerName1("initWithContentsOfURL:encoding:error:"); + instancetype _objc_msgSend_265( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anObject, - int type, - int index, - int associatedIndex, + ffi.Pointer url, + int enc, + ffi.Pointer> error, ) { - return __objc_msgSend_152( + return __objc_msgSend_265( obj, sel, - anObject, - type, - index, - associatedIndex, + url, + enc, + error, ); } - late final __objc_msgSend_152Ptr = _lookup< + late final __objc_msgSend_265Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - NSUInteger, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_152 = __objc_msgSend_152Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int, int)>(); + NSStringEncoding, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_265 = __objc_msgSend_265Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_differenceByTransformingChangesWithBlock_1 = - _registerName1("differenceByTransformingChangesWithBlock:"); - ffi.Pointer _objc_msgSend_153( + late final _sel_initWithContentsOfFile_encoding_error_1 = + _registerName1("initWithContentsOfFile:encoding:error:"); + instancetype _objc_msgSend_266( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, + ffi.Pointer path, + int enc, + ffi.Pointer> error, ) { - return __objc_msgSend_153( + return __objc_msgSend_266( obj, sel, - block, + path, + enc, + error, ); } - late final __objc_msgSend_153Ptr = _lookup< + late final __objc_msgSend_266Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_153 = __objc_msgSend_153Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSStringEncoding, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_266 = __objc_msgSend_266Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_inverseDifference1 = _registerName1("inverseDifference"); - late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_1 = - _registerName1("differenceFromArray:withOptions:usingEquivalenceTest:"); - ffi.Pointer _objc_msgSend_154( + late final _sel_stringWithContentsOfURL_encoding_error_1 = + _registerName1("stringWithContentsOfURL:encoding:error:"); + late final _sel_stringWithContentsOfFile_encoding_error_1 = + _registerName1("stringWithContentsOfFile:encoding:error:"); + late final _sel_initWithContentsOfURL_usedEncoding_error_1 = + _registerName1("initWithContentsOfURL:usedEncoding:error:"); + instancetype _objc_msgSend_267( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer other, - int options, - ffi.Pointer<_ObjCBlock> block, + ffi.Pointer url, + ffi.Pointer enc, + ffi.Pointer> error, ) { - return __objc_msgSend_154( + return __objc_msgSend_267( obj, sel, - other, - options, - block, + url, + enc, + error, ); } - late final __objc_msgSend_154Ptr = _lookup< + late final __objc_msgSend_267Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_154 = __objc_msgSend_154Ptr.asFunction< - ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_267 = __objc_msgSend_267Ptr.asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_differenceFromArray_withOptions_1 = - _registerName1("differenceFromArray:withOptions:"); - ffi.Pointer _objc_msgSend_155( + late final _sel_initWithContentsOfFile_usedEncoding_error_1 = + _registerName1("initWithContentsOfFile:usedEncoding:error:"); + instancetype _objc_msgSend_268( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer other, - int options, + ffi.Pointer path, + ffi.Pointer enc, + ffi.Pointer> error, ) { - return __objc_msgSend_155( + return __objc_msgSend_268( obj, sel, - other, - options, + path, + enc, + error, ); } - late final __objc_msgSend_155Ptr = _lookup< + late final __objc_msgSend_268Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_268 = __objc_msgSend_268Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_differenceFromArray_1 = - _registerName1("differenceFromArray:"); - ffi.Pointer _objc_msgSend_156( + late final _sel_stringWithContentsOfURL_usedEncoding_error_1 = + _registerName1("stringWithContentsOfURL:usedEncoding:error:"); + late final _sel_stringWithContentsOfFile_usedEncoding_error_1 = + _registerName1("stringWithContentsOfFile:usedEncoding:error:"); + late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1 = + _registerName1( + "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"); + int _objc_msgSend_269( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer other, + ffi.Pointer data, + ffi.Pointer opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion, ) { - return __objc_msgSend_156( + return __objc_msgSend_269( obj, sel, - other, + data, + opts, + string, + usedLossyConversion, ); } - late final __objc_msgSend_156Ptr = _lookup< + late final __objc_msgSend_269Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_156 = __objc_msgSend_156Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + NSStringEncoding Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_269 = __objc_msgSend_269Ptr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer)>(); - late final _sel_arrayByApplyingDifference_1 = - _registerName1("arrayByApplyingDifference:"); - ffi.Pointer _objc_msgSend_157( + late final _sel_propertyList1 = _registerName1("propertyList"); + late final _sel_propertyListFromStringsFileFormat1 = + _registerName1("propertyListFromStringsFileFormat"); + late final _sel_cString1 = _registerName1("cString"); + late final _sel_lossyCString1 = _registerName1("lossyCString"); + late final _sel_cStringLength1 = _registerName1("cStringLength"); + late final _sel_getCString_1 = _registerName1("getCString:"); + void _objc_msgSend_270( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer difference, + ffi.Pointer bytes, ) { - return __objc_msgSend_157( + return __objc_msgSend_270( obj, sel, - difference, + bytes, ); } - late final __objc_msgSend_157Ptr = _lookup< + late final __objc_msgSend_270Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_270 = __objc_msgSend_270Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_getObjects_1 = _registerName1("getObjects:"); - void _objc_msgSend_158( + late final _sel_getCString_maxLength_1 = + _registerName1("getCString:maxLength:"); + void _objc_msgSend_271( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer> objects, + ffi.Pointer bytes, + int maxLength, ) { - return __objc_msgSend_158( + return __objc_msgSend_271( obj, sel, - objects, + bytes, + maxLength, ); } - late final __objc_msgSend_158Ptr = _lookup< + late final __objc_msgSend_271Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_158 = __objc_msgSend_158Ptr.asFunction< + ffi.Pointer, NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_271 = __objc_msgSend_271Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer, int)>(); - late final _sel_arrayWithContentsOfFile_1 = - _registerName1("arrayWithContentsOfFile:"); - ffi.Pointer _objc_msgSend_159( + late final _sel_getCString_maxLength_range_remainingRange_1 = + _registerName1("getCString:maxLength:range:remainingRange:"); + void _objc_msgSend_272( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, + ffi.Pointer bytes, + int maxLength, + NSRange aRange, + NSRangePointer leftoverRange, ) { - return __objc_msgSend_159( + return __objc_msgSend_272( obj, sel, - path, + bytes, + maxLength, + aRange, + leftoverRange, ); } - late final __objc_msgSend_159Ptr = _lookup< + late final __objc_msgSend_272Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_159 = __objc_msgSend_159Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSRange, + NSRangePointer)>>('objc_msgSend'); + late final __objc_msgSend_272 = __objc_msgSend_272Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, NSRange, NSRangePointer)>(); - late final _sel_arrayWithContentsOfURL_1 = - _registerName1("arrayWithContentsOfURL:"); - ffi.Pointer _objc_msgSend_160( + late final _sel_stringWithContentsOfFile_1 = + _registerName1("stringWithContentsOfFile:"); + late final _sel_stringWithContentsOfURL_1 = + _registerName1("stringWithContentsOfURL:"); + late final _sel_initWithCStringNoCopy_length_freeWhenDone_1 = + _registerName1("initWithCStringNoCopy:length:freeWhenDone:"); + ffi.Pointer _objc_msgSend_273( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, + ffi.Pointer bytes, + int length, + bool freeBuffer, ) { - return __objc_msgSend_160( + return __objc_msgSend_273( obj, sel, - url, + bytes, + length, + freeBuffer, ); } - late final __objc_msgSend_160Ptr = _lookup< + late final __objc_msgSend_273Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_160 = __objc_msgSend_160Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_273 = __objc_msgSend_273Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer, int, bool)>(); - late final _sel_initWithContentsOfFile_1 = - _registerName1("initWithContentsOfFile:"); - late final _sel_initWithContentsOfURL_1 = - _registerName1("initWithContentsOfURL:"); - late final _sel_writeToURL_atomically_1 = - _registerName1("writeToURL:atomically:"); - bool _objc_msgSend_161( + late final _sel_initWithCString_length_1 = + _registerName1("initWithCString:length:"); + late final _sel_initWithCString_1 = _registerName1("initWithCString:"); + late final _sel_stringWithCString_length_1 = + _registerName1("stringWithCString:length:"); + late final _sel_stringWithCString_1 = _registerName1("stringWithCString:"); + late final _sel_getCharacters_1 = _registerName1("getCharacters:"); + void _objc_msgSend_274( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - bool atomically, + ffi.Pointer buffer, ) { - return __objc_msgSend_161( + return __objc_msgSend_274( obj, sel, - url, - atomically, + buffer, ); } - late final __objc_msgSend_161Ptr = _lookup< + late final __objc_msgSend_274Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_161 = __objc_msgSend_161Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_274 = __objc_msgSend_274Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_allKeys1 = _registerName1("allKeys"); - ffi.Pointer _objc_msgSend_162( + late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_1 = + _registerName1("stringByAddingPercentEncodingWithAllowedCharacters:"); + late final _sel_stringByRemovingPercentEncoding1 = + _registerName1("stringByRemovingPercentEncoding"); + late final _sel_stringByAddingPercentEscapesUsingEncoding_1 = + _registerName1("stringByAddingPercentEscapesUsingEncoding:"); + late final _sel_stringByReplacingPercentEscapesUsingEncoding_1 = + _registerName1("stringByReplacingPercentEscapesUsingEncoding:"); + late final _sel_debugDescription1 = _registerName1("debugDescription"); + late final _sel_version1 = _registerName1("version"); + late final _sel_setVersion_1 = _registerName1("setVersion:"); + void _objc_msgSend_275( ffi.Pointer obj, ffi.Pointer sel, + int aVersion, ) { - return __objc_msgSend_162( + return __objc_msgSend_275( obj, sel, + aVersion, ); } - late final __objc_msgSend_162Ptr = _lookup< + late final __objc_msgSend_275Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_162 = __objc_msgSend_162Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSInteger)>>('objc_msgSend'); + late final __objc_msgSend_275 = __objc_msgSend_275Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_allKeysForObject_1 = _registerName1("allKeysForObject:"); - late final _sel_allValues1 = _registerName1("allValues"); - late final _sel_descriptionInStringsFileFormat1 = - _registerName1("descriptionInStringsFileFormat"); - late final _sel_isEqualToDictionary_1 = - _registerName1("isEqualToDictionary:"); - bool _objc_msgSend_163( + late final _sel_classForCoder1 = _registerName1("classForCoder"); + late final _sel_replacementObjectForCoder_1 = + _registerName1("replacementObjectForCoder:"); + late final _sel_awakeAfterUsingCoder_1 = + _registerName1("awakeAfterUsingCoder:"); + late final _sel_poseAsClass_1 = _registerName1("poseAsClass:"); + late final _sel_autoContentAccessingProxy1 = + _registerName1("autoContentAccessingProxy"); + late final _sel_URL_resourceDataDidBecomeAvailable_1 = + _registerName1("URL:resourceDataDidBecomeAvailable:"); + void _objc_msgSend_276( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer otherDictionary, + ffi.Pointer sender, + ffi.Pointer newBytes, ) { - return __objc_msgSend_163( + return __objc_msgSend_276( obj, sel, - otherDictionary, + sender, + newBytes, ); } - late final __objc_msgSend_163Ptr = _lookup< + late final __objc_msgSend_276Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_163 = __objc_msgSend_163Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, + late final __objc_msgSend_276 = __objc_msgSend_276Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_URLResourceDidFinishLoading_1 = + _registerName1("URLResourceDidFinishLoading:"); + void _objc_msgSend_277( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer sender, + ) { + return __objc_msgSend_277( + obj, + sel, + sender, + ); + } + + late final __objc_msgSend_277Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_277 = __objc_msgSend_277Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_objectsForKeys_notFoundMarker_1 = - _registerName1("objectsForKeys:notFoundMarker:"); - ffi.Pointer _objc_msgSend_164( + late final _sel_URLResourceDidCancelLoading_1 = + _registerName1("URLResourceDidCancelLoading:"); + late final _sel_URL_resourceDidFailLoadingWithReason_1 = + _registerName1("URL:resourceDidFailLoadingWithReason:"); + void _objc_msgSend_278( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer keys, - ffi.Pointer marker, + ffi.Pointer sender, + ffi.Pointer reason, ) { - return __objc_msgSend_164( + return __objc_msgSend_278( obj, sel, - keys, - marker, + sender, + reason, ); } - late final __objc_msgSend_164Ptr = _lookup< + late final __objc_msgSend_278Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_164 = __objc_msgSend_164Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + late final __objc_msgSend_278 = __objc_msgSend_278Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_keysSortedByValueUsingSelector_1 = - _registerName1("keysSortedByValueUsingSelector:"); - late final _sel_getObjects_andKeys_count_1 = - _registerName1("getObjects:andKeys:count:"); - void _objc_msgSend_165( + late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1 = + _registerName1( + "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:"); + void _objc_msgSend_279( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer> objects, - ffi.Pointer> keys, - int count, + ffi.Pointer error, + int recoveryOptionIndex, + ffi.Pointer delegate, + ffi.Pointer didRecoverSelector, + ffi.Pointer contextInfo, ) { - return __objc_msgSend_165( + return __objc_msgSend_279( obj, sel, - objects, - keys, - count, + error, + recoveryOptionIndex, + delegate, + didRecoverSelector, + contextInfo, ); } - late final __objc_msgSend_165Ptr = _lookup< + late final __objc_msgSend_279Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_165 = __objc_msgSend_165Ptr.asFunction< + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_279 = __objc_msgSend_279Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int)>(); + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_objectForKeyedSubscript_1 = - _registerName1("objectForKeyedSubscript:"); - late final _sel_enumerateKeysAndObjectsUsingBlock_1 = - _registerName1("enumerateKeysAndObjectsUsingBlock:"); - void _objc_msgSend_166( + late final _sel_attemptRecoveryFromError_optionIndex_1 = + _registerName1("attemptRecoveryFromError:optionIndex:"); + bool _objc_msgSend_280( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, + ffi.Pointer error, + int recoveryOptionIndex, ) { - return __objc_msgSend_166( + return __objc_msgSend_280( obj, sel, - block, + error, + recoveryOptionIndex, ); } - late final __objc_msgSend_166Ptr = _lookup< + late final __objc_msgSend_280Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_166 = __objc_msgSend_166Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_280 = __objc_msgSend_280Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_1 = - _registerName1("enumerateKeysAndObjectsWithOptions:usingBlock:"); - void _objc_msgSend_167( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> block, + late final ffi.Pointer _NSFoundationVersionNumber = + _lookup('NSFoundationVersionNumber'); + + double get NSFoundationVersionNumber => _NSFoundationVersionNumber.value; + + set NSFoundationVersionNumber(double value) => + _NSFoundationVersionNumber.value = value; + + ffi.Pointer NSStringFromSelector( + ffi.Pointer aSelector, ) { - return __objc_msgSend_167( - obj, - sel, - opts, - block, + return _NSStringFromSelector( + aSelector, ); } - late final __objc_msgSend_167Ptr = _lookup< + late final _NSStringFromSelectorPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_167 = __objc_msgSend_167Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer)>>('NSStringFromSelector'); + late final _NSStringFromSelector = _NSStringFromSelectorPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); - late final _sel_keysSortedByValueUsingComparator_1 = - _registerName1("keysSortedByValueUsingComparator:"); - late final _sel_keysSortedByValueWithOptions_usingComparator_1 = - _registerName1("keysSortedByValueWithOptions:usingComparator:"); - late final _sel_keysOfEntriesPassingTest_1 = - _registerName1("keysOfEntriesPassingTest:"); - ffi.Pointer _objc_msgSend_168( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> predicate, + ffi.Pointer NSSelectorFromString( + ffi.Pointer aSelectorName, ) { - return __objc_msgSend_168( - obj, - sel, - predicate, + return _NSSelectorFromString( + aSelectorName, ); } - late final __objc_msgSend_168Ptr = _lookup< + late final _NSSelectorFromStringPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_168 = __objc_msgSend_168Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer)>>('NSSelectorFromString'); + late final _NSSelectorFromString = _NSSelectorFromStringPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); - late final _sel_keysOfEntriesWithOptions_passingTest_1 = - _registerName1("keysOfEntriesWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_169( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> predicate, + ffi.Pointer NSStringFromClass( + ffi.Pointer aClass, ) { - return __objc_msgSend_169( - obj, - sel, - opts, - predicate, + return _NSStringFromClass( + aClass, ); } - late final __objc_msgSend_169Ptr = _lookup< + late final _NSStringFromClassPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_169 = __objc_msgSend_169Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer)>>('NSStringFromClass'); + late final _NSStringFromClass = _NSStringFromClassPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); - late final _sel_getObjects_andKeys_1 = _registerName1("getObjects:andKeys:"); - void _objc_msgSend_170( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> objects, - ffi.Pointer> keys, + ffi.Pointer NSClassFromString( + ffi.Pointer aClassName, ) { - return __objc_msgSend_170( - obj, - sel, - objects, - keys, + return _NSClassFromString( + aClassName, ); } - late final __objc_msgSend_170Ptr = _lookup< + late final _NSClassFromStringPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_170 = __objc_msgSend_170Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>(); + ffi.Pointer Function( + ffi.Pointer)>>('NSClassFromString'); + late final _NSClassFromString = _NSClassFromStringPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); - late final _sel_dictionaryWithContentsOfFile_1 = - _registerName1("dictionaryWithContentsOfFile:"); - ffi.Pointer _objc_msgSend_171( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, + ffi.Pointer NSStringFromProtocol( + ffi.Pointer proto, ) { - return __objc_msgSend_171( - obj, - sel, - path, + return _NSStringFromProtocol( + proto, ); } - late final __objc_msgSend_171Ptr = _lookup< + late final _NSStringFromProtocolPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_171 = __objc_msgSend_171Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer)>>('NSStringFromProtocol'); + late final _NSStringFromProtocol = _NSStringFromProtocolPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); - late final _sel_dictionaryWithContentsOfURL_1 = - _registerName1("dictionaryWithContentsOfURL:"); - ffi.Pointer _objc_msgSend_172( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, + ffi.Pointer NSProtocolFromString( + ffi.Pointer namestr, ) { - return __objc_msgSend_172( - obj, - sel, - url, + return _NSProtocolFromString( + namestr, ); } - late final __objc_msgSend_172Ptr = _lookup< + late final _NSProtocolFromStringPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_172 = __objc_msgSend_172Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer)>>('NSProtocolFromString'); + late final _NSProtocolFromString = _NSProtocolFromStringPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); - late final _sel_dictionary1 = _registerName1("dictionary"); - late final _sel_dictionaryWithObject_forKey_1 = - _registerName1("dictionaryWithObject:forKey:"); - instancetype _objc_msgSend_173( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer object, - ffi.Pointer key, + ffi.Pointer NSGetSizeAndAlignment( + ffi.Pointer typePtr, + ffi.Pointer sizep, + ffi.Pointer alignp, ) { - return __objc_msgSend_173( - obj, - sel, - object, - key, + return _NSGetSizeAndAlignment( + typePtr, + sizep, + alignp, ); } - late final __objc_msgSend_173Ptr = _lookup< + late final _NSGetSizeAndAlignmentPtr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_173 = __objc_msgSend_173Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('NSGetSizeAndAlignment'); + late final _NSGetSizeAndAlignment = _NSGetSizeAndAlignmentPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_dictionaryWithObjects_forKeys_count_1 = - _registerName1("dictionaryWithObjects:forKeys:count:"); - late final _sel_dictionaryWithObjectsAndKeys_1 = - _registerName1("dictionaryWithObjectsAndKeys:"); - late final _sel_dictionaryWithDictionary_1 = - _registerName1("dictionaryWithDictionary:"); - instancetype _objc_msgSend_174( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer dict, + void NSLog( + ffi.Pointer format, ) { - return __objc_msgSend_174( - obj, - sel, - dict, + return _NSLog( + format, ); } - late final __objc_msgSend_174Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_174 = __objc_msgSend_174Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _NSLogPtr = + _lookup)>>( + 'NSLog'); + late final _NSLog = + _NSLogPtr.asFunction)>(); - late final _sel_dictionaryWithObjects_forKeys_1 = - _registerName1("dictionaryWithObjects:forKeys:"); - instancetype _objc_msgSend_175( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer objects, - ffi.Pointer keys, + void NSLogv( + ffi.Pointer format, + va_list args, ) { - return __objc_msgSend_175( - obj, - sel, - objects, - keys, + return _NSLogv( + format, + args, ); } - late final __objc_msgSend_175Ptr = _lookup< + late final _NSLogvPtr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_175 = __objc_msgSend_175Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, va_list)>>('NSLogv'); + late final _NSLogv = + _NSLogvPtr.asFunction, va_list)>(); - late final _sel_initWithObjectsAndKeys_1 = - _registerName1("initWithObjectsAndKeys:"); - late final _sel_initWithDictionary_1 = _registerName1("initWithDictionary:"); - late final _sel_initWithDictionary_copyItems_1 = - _registerName1("initWithDictionary:copyItems:"); - instancetype _objc_msgSend_176( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherDictionary, - bool flag, + late final ffi.Pointer _NSNotFound = + _lookup('NSNotFound'); + + int get NSNotFound => _NSNotFound.value; + + set NSNotFound(int value) => _NSNotFound.value = value; + + ffi.Pointer _Block_copy1( + ffi.Pointer aBlock, ) { - return __objc_msgSend_176( - obj, - sel, - otherDictionary, - flag, + return __Block_copy1( + aBlock, ); } - late final __objc_msgSend_176Ptr = _lookup< + late final __Block_copy1Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_176 = __objc_msgSend_176Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + ffi.Pointer Function( + ffi.Pointer)>>('_Block_copy'); + late final __Block_copy1 = __Block_copy1Ptr + .asFunction Function(ffi.Pointer)>(); - late final _sel_initWithObjects_forKeys_1 = - _registerName1("initWithObjects:forKeys:"); - ffi.Pointer _objc_msgSend_177( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer> error, + void _Block_release1( + ffi.Pointer aBlock, ) { - return __objc_msgSend_177( - obj, - sel, - url, - error, + return __Block_release1( + aBlock, ); } - late final __objc_msgSend_177Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_177 = __objc_msgSend_177Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + late final __Block_release1Ptr = + _lookup)>>( + '_Block_release'); + late final __Block_release1 = + __Block_release1Ptr.asFunction)>(); - late final _sel_dictionaryWithContentsOfURL_error_1 = - _registerName1("dictionaryWithContentsOfURL:error:"); - late final _sel_sharedKeySetForKeys_1 = - _registerName1("sharedKeySetForKeys:"); - late final _sel_countByEnumeratingWithState_objects_count_1 = - _registerName1("countByEnumeratingWithState:objects:count:"); - int _objc_msgSend_178( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer state, - ffi.Pointer> buffer, - int len, + void _Block_object_assign( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, ) { - return __objc_msgSend_178( - obj, - sel, - state, - buffer, - len, + return __Block_object_assign( + arg0, + arg1, + arg2, ); } - late final __objc_msgSend_178Ptr = _lookup< + late final __Block_object_assignPtr = _lookup< ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_178 = __objc_msgSend_178Ptr.asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int)>(); + 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 _sel_initWithDomain_code_userInfo_1 = - _registerName1("initWithDomain:code:userInfo:"); - instancetype _objc_msgSend_179( - ffi.Pointer obj, - ffi.Pointer sel, - NSErrorDomain domain, - int code, - ffi.Pointer dict, + void _Block_object_dispose( + ffi.Pointer arg0, + int arg1, ) { - return __objc_msgSend_179( - obj, - sel, - domain, - code, - dict, + return __Block_object_dispose( + arg0, + arg1, ); } - late final __objc_msgSend_179Ptr = _lookup< + late final __Block_object_disposePtr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - NSErrorDomain, - NSInteger, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_179 = __objc_msgSend_179Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - NSErrorDomain, int, ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer, ffi.Int)>>('_Block_object_dispose'); + late final __Block_object_dispose = __Block_object_disposePtr + .asFunction, int)>(); - late final _sel_errorWithDomain_code_userInfo_1 = - _registerName1("errorWithDomain:code:userInfo:"); - late final _sel_domain1 = _registerName1("domain"); - late final _sel_code1 = _registerName1("code"); - late final _sel_userInfo1 = _registerName1("userInfo"); - ffi.Pointer _objc_msgSend_180( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_180( - obj, - sel, - ); + late final ffi.Pointer>> + __NSConcreteGlobalBlock = + _lookup>>('_NSConcreteGlobalBlock'); + + ffi.Pointer> get _NSConcreteGlobalBlock => + __NSConcreteGlobalBlock.value; + + set _NSConcreteGlobalBlock(ffi.Pointer> value) => + __NSConcreteGlobalBlock.value = value; + + late final ffi.Pointer>> + __NSConcreteStackBlock = + _lookup>>('_NSConcreteStackBlock'); + + ffi.Pointer> get _NSConcreteStackBlock => + __NSConcreteStackBlock.value; + + set _NSConcreteStackBlock(ffi.Pointer> value) => + __NSConcreteStackBlock.value = value; + + void Debugger() { + return _Debugger(); } - late final __objc_msgSend_180Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_180 = __objc_msgSend_180Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + late final _DebuggerPtr = + _lookup>('Debugger'); + late final _Debugger = _DebuggerPtr.asFunction(); - late final _sel_localizedDescription1 = - _registerName1("localizedDescription"); - late final _sel_localizedFailureReason1 = - _registerName1("localizedFailureReason"); - late final _sel_localizedRecoverySuggestion1 = - _registerName1("localizedRecoverySuggestion"); - late final _sel_localizedRecoveryOptions1 = - _registerName1("localizedRecoveryOptions"); - late final _sel_recoveryAttempter1 = _registerName1("recoveryAttempter"); - late final _sel_helpAnchor1 = _registerName1("helpAnchor"); - late final _sel_underlyingErrors1 = _registerName1("underlyingErrors"); - late final _sel_setUserInfoValueProviderForDomain_provider_1 = - _registerName1("setUserInfoValueProviderForDomain:provider:"); - void _objc_msgSend_181( - ffi.Pointer obj, - ffi.Pointer sel, - NSErrorDomain errorDomain, - ffi.Pointer<_ObjCBlock> provider, + void DebugStr( + ConstStr255Param debuggerMsg, ) { - return __objc_msgSend_181( - obj, - sel, - errorDomain, - provider, + return _DebugStr( + debuggerMsg, ); } - late final __objc_msgSend_181Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSErrorDomain, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_181 = __objc_msgSend_181Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - NSErrorDomain, ffi.Pointer<_ObjCBlock>)>(); + late final _DebugStrPtr = + _lookup>( + 'DebugStr'); + late final _DebugStr = + _DebugStrPtr.asFunction(); - late final _sel_userInfoValueProviderForDomain_1 = - _registerName1("userInfoValueProviderForDomain:"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_182( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer err, - NSErrorUserInfoKey userInfoKey, - NSErrorDomain errorDomain, + void SysBreak() { + return _SysBreak(); + } + + late final _SysBreakPtr = + _lookup>('SysBreak'); + late final _SysBreak = _SysBreakPtr.asFunction(); + + void SysBreakStr( + ConstStr255Param debuggerMsg, ) { - return __objc_msgSend_182( - obj, - sel, - err, - userInfoKey, - errorDomain, + return _SysBreakStr( + debuggerMsg, ); } - late final __objc_msgSend_182Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSErrorUserInfoKey, - NSErrorDomain)>>('objc_msgSend'); - late final __objc_msgSend_182 = __objc_msgSend_182Ptr.asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSErrorUserInfoKey, - NSErrorDomain)>(); + late final _SysBreakStrPtr = + _lookup>( + 'SysBreakStr'); + late final _SysBreakStr = + _SysBreakStrPtr.asFunction(); - late final _sel_checkResourceIsReachableAndReturnError_1 = - _registerName1("checkResourceIsReachableAndReturnError:"); - bool _objc_msgSend_183( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> error, + void SysBreakFunc( + ConstStr255Param debuggerMsg, ) { - return __objc_msgSend_183( - obj, - sel, - error, + return _SysBreakFunc( + debuggerMsg, ); } - late final __objc_msgSend_183Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_183 = __objc_msgSend_183Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + late final _SysBreakFuncPtr = + _lookup>( + 'SysBreakFunc'); + late final _SysBreakFunc = + _SysBreakFuncPtr.asFunction(); - late final _sel_isFileReferenceURL1 = _registerName1("isFileReferenceURL"); - late final _sel_fileReferenceURL1 = _registerName1("fileReferenceURL"); - late final _sel_filePathURL1 = _registerName1("filePathURL"); - late final _sel_getResourceValue_forKey_error_1 = - _registerName1("getResourceValue:forKey:error:"); - bool _objc_msgSend_184( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> value, - NSURLResourceKey key, - ffi.Pointer> error, + late final ffi.Pointer _kCFCoreFoundationVersionNumber = + _lookup('kCFCoreFoundationVersionNumber'); + + double get kCFCoreFoundationVersionNumber => + _kCFCoreFoundationVersionNumber.value; + + set kCFCoreFoundationVersionNumber(double value) => + _kCFCoreFoundationVersionNumber.value = value; + + late final ffi.Pointer _kCFNotFound = + _lookup('kCFNotFound'); + + int get kCFNotFound => _kCFNotFound.value; + + set kCFNotFound(int value) => _kCFNotFound.value = value; + + CFRange __CFRangeMake( + int loc, + int len, ) { - return __objc_msgSend_184( - obj, - sel, - value, - key, - error, + return ___CFRangeMake( + loc, + len, ); } - late final __objc_msgSend_184Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - NSURLResourceKey, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_184 = __objc_msgSend_184Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - NSURLResourceKey, - ffi.Pointer>)>(); + late final ___CFRangeMakePtr = + _lookup>( + '__CFRangeMake'); + late final ___CFRangeMake = + ___CFRangeMakePtr.asFunction(); - late final _sel_resourceValuesForKeys_error_1 = - _registerName1("resourceValuesForKeys:error:"); - ffi.Pointer _objc_msgSend_185( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keys, - ffi.Pointer> error, + int CFNullGetTypeID() { + return _CFNullGetTypeID(); + } + + late final _CFNullGetTypeIDPtr = + _lookup>('CFNullGetTypeID'); + late final _CFNullGetTypeID = + _CFNullGetTypeIDPtr.asFunction(); + + late final ffi.Pointer _kCFNull = _lookup('kCFNull'); + + CFNullRef get kCFNull => _kCFNull.value; + + set kCFNull(CFNullRef value) => _kCFNull.value = value; + + late final ffi.Pointer _kCFAllocatorDefault = + _lookup('kCFAllocatorDefault'); + + CFAllocatorRef get kCFAllocatorDefault => _kCFAllocatorDefault.value; + + set kCFAllocatorDefault(CFAllocatorRef value) => + _kCFAllocatorDefault.value = value; + + late final ffi.Pointer _kCFAllocatorSystemDefault = + _lookup('kCFAllocatorSystemDefault'); + + CFAllocatorRef get kCFAllocatorSystemDefault => + _kCFAllocatorSystemDefault.value; + + set kCFAllocatorSystemDefault(CFAllocatorRef value) => + _kCFAllocatorSystemDefault.value = value; + + late final ffi.Pointer _kCFAllocatorMalloc = + _lookup('kCFAllocatorMalloc'); + + CFAllocatorRef get kCFAllocatorMalloc => _kCFAllocatorMalloc.value; + + set kCFAllocatorMalloc(CFAllocatorRef value) => + _kCFAllocatorMalloc.value = value; + + late final ffi.Pointer _kCFAllocatorMallocZone = + _lookup('kCFAllocatorMallocZone'); + + CFAllocatorRef get kCFAllocatorMallocZone => _kCFAllocatorMallocZone.value; + + set kCFAllocatorMallocZone(CFAllocatorRef value) => + _kCFAllocatorMallocZone.value = value; + + late final ffi.Pointer _kCFAllocatorNull = + _lookup('kCFAllocatorNull'); + + CFAllocatorRef get kCFAllocatorNull => _kCFAllocatorNull.value; + + set kCFAllocatorNull(CFAllocatorRef value) => _kCFAllocatorNull.value = value; + + late final ffi.Pointer _kCFAllocatorUseContext = + _lookup('kCFAllocatorUseContext'); + + CFAllocatorRef get kCFAllocatorUseContext => _kCFAllocatorUseContext.value; + + set kCFAllocatorUseContext(CFAllocatorRef value) => + _kCFAllocatorUseContext.value = value; + + int CFAllocatorGetTypeID() { + return _CFAllocatorGetTypeID(); + } + + late final _CFAllocatorGetTypeIDPtr = + _lookup>('CFAllocatorGetTypeID'); + late final _CFAllocatorGetTypeID = + _CFAllocatorGetTypeIDPtr.asFunction(); + + void CFAllocatorSetDefault( + CFAllocatorRef allocator, ) { - return __objc_msgSend_185( - obj, - sel, - keys, - error, + return _CFAllocatorSetDefault( + allocator, ); } - late final __objc_msgSend_185Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_185 = __objc_msgSend_185Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + late final _CFAllocatorSetDefaultPtr = + _lookup>( + 'CFAllocatorSetDefault'); + late final _CFAllocatorSetDefault = + _CFAllocatorSetDefaultPtr.asFunction(); - late final _sel_setResourceValue_forKey_error_1 = - _registerName1("setResourceValue:forKey:error:"); - bool _objc_msgSend_186( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - NSURLResourceKey key, - ffi.Pointer> error, + CFAllocatorRef CFAllocatorGetDefault() { + return _CFAllocatorGetDefault(); + } + + late final _CFAllocatorGetDefaultPtr = + _lookup>( + 'CFAllocatorGetDefault'); + late final _CFAllocatorGetDefault = + _CFAllocatorGetDefaultPtr.asFunction(); + + CFAllocatorRef CFAllocatorCreate( + CFAllocatorRef allocator, + ffi.Pointer context, ) { - return __objc_msgSend_186( - obj, - sel, - value, - key, - error, + return _CFAllocatorCreate( + allocator, + context, ); } - late final __objc_msgSend_186Ptr = _lookup< + late final _CFAllocatorCreatePtr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSURLResourceKey, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_186 = __objc_msgSend_186Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSURLResourceKey, - ffi.Pointer>)>(); + CFAllocatorRef Function(CFAllocatorRef, + ffi.Pointer)>>('CFAllocatorCreate'); + late final _CFAllocatorCreate = _CFAllocatorCreatePtr.asFunction< + CFAllocatorRef Function( + CFAllocatorRef, ffi.Pointer)>(); - late final _sel_setResourceValues_error_1 = - _registerName1("setResourceValues:error:"); - bool _objc_msgSend_187( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keyedValues, - ffi.Pointer> error, + ffi.Pointer CFAllocatorAllocate( + CFAllocatorRef allocator, + int size, + int hint, ) { - return __objc_msgSend_187( - obj, - sel, - keyedValues, - error, + return _CFAllocatorAllocate( + allocator, + size, + hint, ); } - late final __objc_msgSend_187Ptr = _lookup< + late final _CFAllocatorAllocatePtr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_187 = __objc_msgSend_187Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); + ffi.Pointer Function( + CFAllocatorRef, CFIndex, CFOptionFlags)>>('CFAllocatorAllocate'); + late final _CFAllocatorAllocate = _CFAllocatorAllocatePtr.asFunction< + ffi.Pointer Function(CFAllocatorRef, int, int)>(); - late final _sel_removeCachedResourceValueForKey_1 = - _registerName1("removeCachedResourceValueForKey:"); - void _objc_msgSend_188( - ffi.Pointer obj, - ffi.Pointer sel, - NSURLResourceKey key, + ffi.Pointer CFAllocatorReallocate( + CFAllocatorRef allocator, + ffi.Pointer ptr, + int newsize, + int hint, ) { - return __objc_msgSend_188( - obj, - sel, - key, + return _CFAllocatorReallocate( + allocator, + ptr, + newsize, + hint, ); } - late final __objc_msgSend_188Ptr = _lookup< + late final _CFAllocatorReallocatePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSURLResourceKey)>>('objc_msgSend'); - late final __objc_msgSend_188 = __objc_msgSend_188Ptr.asFunction< - void Function( - ffi.Pointer, ffi.Pointer, NSURLResourceKey)>(); + ffi.Pointer Function(CFAllocatorRef, ffi.Pointer, + CFIndex, CFOptionFlags)>>('CFAllocatorReallocate'); + late final _CFAllocatorReallocate = _CFAllocatorReallocatePtr.asFunction< + ffi.Pointer Function( + CFAllocatorRef, ffi.Pointer, int, int)>(); - late final _sel_removeAllCachedResourceValues1 = - _registerName1("removeAllCachedResourceValues"); - late final _sel_setTemporaryResourceValue_forKey_1 = - _registerName1("setTemporaryResourceValue:forKey:"); - void _objc_msgSend_189( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - NSURLResourceKey key, + void CFAllocatorDeallocate( + CFAllocatorRef allocator, + ffi.Pointer ptr, ) { - return __objc_msgSend_189( - obj, - sel, - value, - key, + return _CFAllocatorDeallocate( + allocator, + ptr, ); } - late final __objc_msgSend_189Ptr = _lookup< + late final _CFAllocatorDeallocatePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSURLResourceKey)>>('objc_msgSend'); - late final __objc_msgSend_189 = __objc_msgSend_189Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSURLResourceKey)>(); - - late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1 = - _registerName1( - "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"); - ffi.Pointer _objc_msgSend_190( - ffi.Pointer obj, - ffi.Pointer sel, - int options, - ffi.Pointer keys, - ffi.Pointer relativeURL, - ffi.Pointer> error, + 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 __objc_msgSend_190( - obj, - sel, - options, - keys, - relativeURL, - error, + return _CFAllocatorGetPreferredSizeForSize( + allocator, + size, + hint, ); } - late final __objc_msgSend_190Ptr = _lookup< + late final _CFAllocatorGetPreferredSizeForSizePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_190 = __objc_msgSend_190Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + CFIndex Function(CFAllocatorRef, CFIndex, + CFOptionFlags)>>('CFAllocatorGetPreferredSizeForSize'); + late final _CFAllocatorGetPreferredSizeForSize = + _CFAllocatorGetPreferredSizeForSizePtr.asFunction< + int Function(CFAllocatorRef, int, int)>(); - late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = - _registerName1( - "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); - instancetype _objc_msgSend_191( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bookmarkData, - int options, - ffi.Pointer relativeURL, - ffi.Pointer isStale, - ffi.Pointer> error, + void CFAllocatorGetContext( + CFAllocatorRef allocator, + ffi.Pointer context, ) { - return __objc_msgSend_191( - obj, - sel, - bookmarkData, - options, - relativeURL, - isStale, - error, + return _CFAllocatorGetContext( + allocator, + context, ); } - late final __objc_msgSend_191Ptr = _lookup< + late final _CFAllocatorGetContextPtr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_191 = __objc_msgSend_191Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Void Function(CFAllocatorRef, + ffi.Pointer)>>('CFAllocatorGetContext'); + late final _CFAllocatorGetContext = _CFAllocatorGetContextPtr.asFunction< + void Function(CFAllocatorRef, ffi.Pointer)>(); - late final _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = - _registerName1( - "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); - late final _sel_resourceValuesForKeys_fromBookmarkData_1 = - _registerName1("resourceValuesForKeys:fromBookmarkData:"); - ffi.Pointer _objc_msgSend_192( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keys, - ffi.Pointer bookmarkData, + int CFGetTypeID( + CFTypeRef cf, ) { - return __objc_msgSend_192( - obj, - sel, - keys, - bookmarkData, + return _CFGetTypeID( + cf, ); } - late final __objc_msgSend_192Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_192 = __objc_msgSend_192Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + late final _CFGetTypeIDPtr = + _lookup>('CFGetTypeID'); + late final _CFGetTypeID = + _CFGetTypeIDPtr.asFunction(); - late final _sel_writeBookmarkData_toURL_options_error_1 = - _registerName1("writeBookmarkData:toURL:options:error:"); - bool _objc_msgSend_193( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bookmarkData, - ffi.Pointer bookmarkFileURL, - int options, - ffi.Pointer> error, + CFStringRef CFCopyTypeIDDescription( + int type_id, ) { - return __objc_msgSend_193( - obj, - sel, - bookmarkData, - bookmarkFileURL, - options, - error, + return _CFCopyTypeIDDescription( + type_id, ); } - late final __objc_msgSend_193Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSURLBookmarkFileCreationOptions, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_193 = __objc_msgSend_193Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + late final _CFCopyTypeIDDescriptionPtr = + _lookup>( + 'CFCopyTypeIDDescription'); + late final _CFCopyTypeIDDescription = + _CFCopyTypeIDDescriptionPtr.asFunction(); - late final _sel_bookmarkDataWithContentsOfURL_error_1 = - _registerName1("bookmarkDataWithContentsOfURL:error:"); - ffi.Pointer _objc_msgSend_194( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bookmarkFileURL, - ffi.Pointer> error, + CFTypeRef CFRetain( + CFTypeRef cf, ) { - return __objc_msgSend_194( - obj, - sel, - bookmarkFileURL, - error, + return _CFRetain( + cf, ); } - late final __objc_msgSend_194Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_194 = __objc_msgSend_194Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + late final _CFRetainPtr = + _lookup>('CFRetain'); + late final _CFRetain = + _CFRetainPtr.asFunction(); - late final _sel_URLByResolvingAliasFileAtURL_options_error_1 = - _registerName1("URLByResolvingAliasFileAtURL:options:error:"); - instancetype _objc_msgSend_195( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int options, - ffi.Pointer> error, + void CFRelease( + CFTypeRef cf, ) { - return __objc_msgSend_195( - obj, - sel, - url, - options, - error, + return _CFRelease( + cf, ); } - late final __objc_msgSend_195Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_195 = __objc_msgSend_195Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + late final _CFReleasePtr = + _lookup>('CFRelease'); + late final _CFRelease = _CFReleasePtr.asFunction(); - late final _sel_startAccessingSecurityScopedResource1 = - _registerName1("startAccessingSecurityScopedResource"); - late final _sel_stopAccessingSecurityScopedResource1 = - _registerName1("stopAccessingSecurityScopedResource"); - late final _sel_getPromisedItemResourceValue_forKey_error_1 = - _registerName1("getPromisedItemResourceValue:forKey:error:"); - late final _sel_promisedItemResourceValuesForKeys_error_1 = - _registerName1("promisedItemResourceValuesForKeys:error:"); - late final _sel_checkPromisedItemIsReachableAndReturnError_1 = - _registerName1("checkPromisedItemIsReachableAndReturnError:"); - late final _sel_fileURLWithPathComponents_1 = - _registerName1("fileURLWithPathComponents:"); - ffi.Pointer _objc_msgSend_196( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer components, + CFTypeRef CFAutorelease( + CFTypeRef arg, ) { - return __objc_msgSend_196( - obj, - sel, - components, + return _CFAutorelease( + arg, ); } - late final __objc_msgSend_196Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_196 = __objc_msgSend_196Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _CFAutoreleasePtr = + _lookup>( + 'CFAutorelease'); + late final _CFAutorelease = + _CFAutoreleasePtr.asFunction(); - late final _sel_pathComponents1 = _registerName1("pathComponents"); - late final _sel_lastPathComponent1 = _registerName1("lastPathComponent"); - late final _sel_pathExtension1 = _registerName1("pathExtension"); - late final _sel_URLByAppendingPathComponent_1 = - _registerName1("URLByAppendingPathComponent:"); - late final _sel_URLByAppendingPathComponent_isDirectory_1 = - _registerName1("URLByAppendingPathComponent:isDirectory:"); - late final _sel_URLByDeletingLastPathComponent1 = - _registerName1("URLByDeletingLastPathComponent"); - late final _sel_URLByAppendingPathExtension_1 = - _registerName1("URLByAppendingPathExtension:"); - late final _sel_URLByDeletingPathExtension1 = - _registerName1("URLByDeletingPathExtension"); - late final _sel_URLByStandardizingPath1 = - _registerName1("URLByStandardizingPath"); - late final _sel_URLByResolvingSymlinksInPath1 = - _registerName1("URLByResolvingSymlinksInPath"); - late final _sel_resourceDataUsingCache_1 = - _registerName1("resourceDataUsingCache:"); - ffi.Pointer _objc_msgSend_197( - ffi.Pointer obj, - ffi.Pointer sel, - bool shouldUseCache, + int CFGetRetainCount( + CFTypeRef cf, ) { - return __objc_msgSend_197( - obj, - sel, - shouldUseCache, + return _CFGetRetainCount( + cf, ); } - late final __objc_msgSend_197Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_197 = __objc_msgSend_197Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); + late final _CFGetRetainCountPtr = + _lookup>( + 'CFGetRetainCount'); + late final _CFGetRetainCount = + _CFGetRetainCountPtr.asFunction(); - late final _sel_loadResourceDataNotifyingClient_usingCache_1 = - _registerName1("loadResourceDataNotifyingClient:usingCache:"); - void _objc_msgSend_198( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer client, - bool shouldUseCache, + int CFEqual( + CFTypeRef cf1, + CFTypeRef cf2, ) { - return __objc_msgSend_198( - obj, - sel, - client, - shouldUseCache, + return _CFEqual( + cf1, + cf2, ); } - late final __objc_msgSend_198Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_198 = __objc_msgSend_198Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + late final _CFEqualPtr = + _lookup>( + 'CFEqual'); + late final _CFEqual = + _CFEqualPtr.asFunction(); - late final _sel_propertyForKey_1 = _registerName1("propertyForKey:"); - late final _sel_setResourceData_1 = _registerName1("setResourceData:"); - late final _sel_setProperty_forKey_1 = _registerName1("setProperty:forKey:"); - bool _objc_msgSend_199( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer property, - ffi.Pointer propertyKey, + int CFHash( + CFTypeRef cf, ) { - return __objc_msgSend_199( - obj, - sel, - property, - propertyKey, + return _CFHash( + cf, ); } - late final __objc_msgSend_199Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_199 = __objc_msgSend_199Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _CFHashPtr = + _lookup>('CFHash'); + late final _CFHash = _CFHashPtr.asFunction(); - late final _class_NSURLHandle1 = _getClass1("NSURLHandle"); - late final _sel_registerURLHandleClass_1 = - _registerName1("registerURLHandleClass:"); - void _objc_msgSend_200( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anURLHandleSubclass, + CFStringRef CFCopyDescription( + CFTypeRef cf, ) { - return __objc_msgSend_200( - obj, - sel, - anURLHandleSubclass, + return _CFCopyDescription( + cf, ); } - late final __objc_msgSend_200Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_200 = __objc_msgSend_200Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _CFCopyDescriptionPtr = + _lookup>( + 'CFCopyDescription'); + late final _CFCopyDescription = + _CFCopyDescriptionPtr.asFunction(); - late final _sel_URLHandleClassForURL_1 = - _registerName1("URLHandleClassForURL:"); - ffi.Pointer _objc_msgSend_201( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anURL, + CFAllocatorRef CFGetAllocator( + CFTypeRef cf, ) { - return __objc_msgSend_201( - obj, - sel, - anURL, + return _CFGetAllocator( + cf, ); } - late final __objc_msgSend_201Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_201 = __objc_msgSend_201Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _CFGetAllocatorPtr = + _lookup>( + 'CFGetAllocator'); + late final _CFGetAllocator = + _CFGetAllocatorPtr.asFunction(); - late final _sel_status1 = _registerName1("status"); - int _objc_msgSend_202( - ffi.Pointer obj, - ffi.Pointer sel, + CFTypeRef CFMakeCollectable( + CFTypeRef cf, ) { - return __objc_msgSend_202( - obj, - sel, + return _CFMakeCollectable( + cf, ); } - late final __objc_msgSend_202Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_202 = __objc_msgSend_202Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + late final _CFMakeCollectablePtr = + _lookup>( + 'CFMakeCollectable'); + late final _CFMakeCollectable = + _CFMakeCollectablePtr.asFunction(); - late final _sel_failureReason1 = _registerName1("failureReason"); - late final _sel_addClient_1 = _registerName1("addClient:"); - late final _sel_removeClient_1 = _registerName1("removeClient:"); - late final _sel_loadInBackground1 = _registerName1("loadInBackground"); - late final _sel_cancelLoadInBackground1 = - _registerName1("cancelLoadInBackground"); - late final _sel_resourceData1 = _registerName1("resourceData"); - late final _sel_availableResourceData1 = - _registerName1("availableResourceData"); - late final _sel_expectedResourceDataSize1 = - _registerName1("expectedResourceDataSize"); - late final _sel_flushCachedData1 = _registerName1("flushCachedData"); - late final _sel_backgroundLoadDidFailWithReason_1 = - _registerName1("backgroundLoadDidFailWithReason:"); - late final _sel_didLoadBytes_loadComplete_1 = - _registerName1("didLoadBytes:loadComplete:"); - void _objc_msgSend_203( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer newBytes, - bool yorn, + ffi.Pointer NSDefaultMallocZone() { + return _NSDefaultMallocZone(); + } + + late final _NSDefaultMallocZonePtr = + _lookup Function()>>( + 'NSDefaultMallocZone'); + late final _NSDefaultMallocZone = + _NSDefaultMallocZonePtr.asFunction Function()>(); + + ffi.Pointer NSCreateZone( + int startSize, + int granularity, + bool canFree, ) { - return __objc_msgSend_203( - obj, - sel, - newBytes, - yorn, + return _NSCreateZone( + startSize, + granularity, + canFree, ); } - late final __objc_msgSend_203Ptr = _lookup< + late final _NSCreateZonePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_203 = __objc_msgSend_203Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_canInitWithURL_1 = _registerName1("canInitWithURL:"); - bool _objc_msgSend_204( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anURL, + 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 __objc_msgSend_204( - obj, - sel, - anURL, + return _NSRecycleZone( + zone, ); } - late final __objc_msgSend_204Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_204 = __objc_msgSend_204Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _NSRecycleZonePtr = + _lookup)>>( + 'NSRecycleZone'); + late final _NSRecycleZone = + _NSRecycleZonePtr.asFunction)>(); - late final _sel_cachedHandleForURL_1 = _registerName1("cachedHandleForURL:"); - ffi.Pointer _objc_msgSend_205( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anURL, + void NSSetZoneName( + ffi.Pointer zone, + ffi.Pointer name, ) { - return __objc_msgSend_205( - obj, - sel, - anURL, + return _NSSetZoneName( + zone, + name, ); } - late final __objc_msgSend_205Ptr = _lookup< + late final _NSSetZoneNamePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_205 = __objc_msgSend_205Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer, ffi.Pointer)>>('NSSetZoneName'); + late final _NSSetZoneName = _NSSetZoneNamePtr.asFunction< + void Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithURL_cached_1 = _registerName1("initWithURL:cached:"); - ffi.Pointer _objc_msgSend_206( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anURL, - bool willCache, + ffi.Pointer NSZoneName( + ffi.Pointer zone, ) { - return __objc_msgSend_206( - obj, - sel, - anURL, - willCache, + return _NSZoneName( + zone, ); } - late final __objc_msgSend_206Ptr = _lookup< + late final _NSZoneNamePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_206 = __objc_msgSend_206Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, bool)>(); + ffi.Pointer Function(ffi.Pointer)>>('NSZoneName'); + late final _NSZoneName = _NSZoneNamePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); - late final _sel_propertyForKeyIfAvailable_1 = - _registerName1("propertyForKeyIfAvailable:"); - late final _sel_writeProperty_forKey_1 = - _registerName1("writeProperty:forKey:"); - late final _sel_writeData_1 = _registerName1("writeData:"); - late final _sel_loadInForeground1 = _registerName1("loadInForeground"); - late final _sel_beginLoadInBackground1 = - _registerName1("beginLoadInBackground"); - late final _sel_endLoadInBackground1 = _registerName1("endLoadInBackground"); - late final _sel_URLHandleUsingCache_1 = - _registerName1("URLHandleUsingCache:"); - ffi.Pointer _objc_msgSend_207( - ffi.Pointer obj, - ffi.Pointer sel, - bool shouldUseCache, + ffi.Pointer NSZoneFromPointer( + ffi.Pointer ptr, ) { - return __objc_msgSend_207( - obj, - sel, - shouldUseCache, + return _NSZoneFromPointer( + ptr, ); } - late final __objc_msgSend_207Ptr = _lookup< + late final _NSZoneFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_207 = __objc_msgSend_207Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); + ffi.Pointer Function( + ffi.Pointer)>>('NSZoneFromPointer'); + late final _NSZoneFromPointer = _NSZoneFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); - late final _sel_writeToFile_options_error_1 = - _registerName1("writeToFile:options:error:"); - bool _objc_msgSend_208( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - int writeOptionsMask, - ffi.Pointer> errorPtr, + ffi.Pointer NSZoneMalloc( + ffi.Pointer zone, + int size, ) { - return __objc_msgSend_208( - obj, - sel, - path, - writeOptionsMask, - errorPtr, + return _NSZoneMalloc( + zone, + size, ); } - late final __objc_msgSend_208Ptr = _lookup< + late final _NSZoneMallocPtr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_208 = __objc_msgSend_208Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + ffi.Pointer Function( + ffi.Pointer, NSUInteger)>>('NSZoneMalloc'); + late final _NSZoneMalloc = _NSZoneMallocPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int)>(); - late final _sel_writeToURL_options_error_1 = - _registerName1("writeToURL:options:error:"); - bool _objc_msgSend_209( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int writeOptionsMask, - ffi.Pointer> errorPtr, + ffi.Pointer NSZoneCalloc( + ffi.Pointer zone, + int numElems, + int byteSize, ) { - return __objc_msgSend_209( - obj, - sel, - url, - writeOptionsMask, - errorPtr, + return _NSZoneCalloc( + zone, + numElems, + byteSize, ); } - late final __objc_msgSend_209Ptr = _lookup< + late final _NSZoneCallocPtr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_209 = __objc_msgSend_209Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + ffi.Pointer Function( + ffi.Pointer, NSUInteger, NSUInteger)>>('NSZoneCalloc'); + late final _NSZoneCalloc = _NSZoneCallocPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, int)>(); - late final _sel_rangeOfData_options_range_1 = - _registerName1("rangeOfData:options:range:"); - NSRange _objc_msgSend_210( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer dataToFind, - int mask, - NSRange searchRange, + ffi.Pointer NSZoneRealloc( + ffi.Pointer zone, + ffi.Pointer ptr, + int size, ) { - return __objc_msgSend_210( - obj, - sel, - dataToFind, - mask, - searchRange, + return _NSZoneRealloc( + zone, + ptr, + size, ); } - late final __objc_msgSend_210Ptr = _lookup< + late final _NSZoneReallocPtr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_210 = __objc_msgSend_210Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSUInteger)>>('NSZoneRealloc'); + late final _NSZoneRealloc = _NSZoneReallocPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_enumerateByteRangesUsingBlock_1 = - _registerName1("enumerateByteRangesUsingBlock:"); - void _objc_msgSend_211( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, + void NSZoneFree( + ffi.Pointer zone, + ffi.Pointer ptr, ) { - return __objc_msgSend_211( - obj, - sel, - block, + return _NSZoneFree( + zone, + ptr, ); } - late final __objc_msgSend_211Ptr = _lookup< + late final _NSZoneFreePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_211 = __objc_msgSend_211Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Void Function( + ffi.Pointer, ffi.Pointer)>>('NSZoneFree'); + late final _NSZoneFree = _NSZoneFreePtr.asFunction< + void Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_data1 = _registerName1("data"); - late final _sel_dataWithBytes_length_1 = - _registerName1("dataWithBytes:length:"); - instancetype _objc_msgSend_212( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bytes, - int length, + ffi.Pointer NSAllocateCollectable( + int size, + int options, ) { - return __objc_msgSend_212( - obj, - sel, - bytes, - length, + return _NSAllocateCollectable( + size, + options, ); } - late final __objc_msgSend_212Ptr = _lookup< + late final _NSAllocateCollectablePtr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_212 = __objc_msgSend_212Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + NSUInteger, NSUInteger)>>('NSAllocateCollectable'); + late final _NSAllocateCollectable = _NSAllocateCollectablePtr.asFunction< + ffi.Pointer Function(int, int)>(); - late final _sel_dataWithBytesNoCopy_length_1 = - _registerName1("dataWithBytesNoCopy:length:"); - late final _sel_dataWithBytesNoCopy_length_freeWhenDone_1 = - _registerName1("dataWithBytesNoCopy:length:freeWhenDone:"); - instancetype _objc_msgSend_213( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bytes, - int length, - bool b, + ffi.Pointer NSReallocateCollectable( + ffi.Pointer ptr, + int size, + int options, ) { - return __objc_msgSend_213( - obj, - sel, - bytes, - length, - b, + return _NSReallocateCollectable( + ptr, + size, + options, ); } - late final __objc_msgSend_213Ptr = _lookup< + late final _NSReallocateCollectablePtr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_213 = __objc_msgSend_213Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, bool)>(); + ffi.Pointer Function(ffi.Pointer, NSUInteger, + NSUInteger)>>('NSReallocateCollectable'); + late final _NSReallocateCollectable = _NSReallocateCollectablePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, int)>(); - late final _sel_dataWithContentsOfFile_options_error_1 = - _registerName1("dataWithContentsOfFile:options:error:"); - instancetype _objc_msgSend_214( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - int readOptionsMask, - ffi.Pointer> errorPtr, + int NSPageSize() { + return _NSPageSize(); + } + + late final _NSPageSizePtr = + _lookup>('NSPageSize'); + late final _NSPageSize = _NSPageSizePtr.asFunction(); + + int NSLogPageSize() { + return _NSLogPageSize(); + } + + late final _NSLogPageSizePtr = + _lookup>('NSLogPageSize'); + late final _NSLogPageSize = _NSLogPageSizePtr.asFunction(); + + int NSRoundUpToMultipleOfPageSize( + int bytes, ) { - return __objc_msgSend_214( - obj, - sel, - path, - readOptionsMask, - errorPtr, + return _NSRoundUpToMultipleOfPageSize( + bytes, ); } - late final __objc_msgSend_214Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_214 = __objc_msgSend_214Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + late final _NSRoundUpToMultipleOfPageSizePtr = + _lookup>( + 'NSRoundUpToMultipleOfPageSize'); + late final _NSRoundUpToMultipleOfPageSize = + _NSRoundUpToMultipleOfPageSizePtr.asFunction(); - late final _sel_dataWithContentsOfURL_options_error_1 = - _registerName1("dataWithContentsOfURL:options:error:"); - instancetype _objc_msgSend_215( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int readOptionsMask, - ffi.Pointer> errorPtr, + int NSRoundDownToMultipleOfPageSize( + int bytes, ) { - return __objc_msgSend_215( - obj, - sel, - url, - readOptionsMask, - errorPtr, + return _NSRoundDownToMultipleOfPageSize( + bytes, ); } - late final __objc_msgSend_215Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_215 = __objc_msgSend_215Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + late final _NSRoundDownToMultipleOfPageSizePtr = + _lookup>( + 'NSRoundDownToMultipleOfPageSize'); + late final _NSRoundDownToMultipleOfPageSize = + _NSRoundDownToMultipleOfPageSizePtr.asFunction(); - late final _sel_dataWithContentsOfFile_1 = - _registerName1("dataWithContentsOfFile:"); - late final _sel_dataWithContentsOfURL_1 = - _registerName1("dataWithContentsOfURL:"); - late final _sel_initWithBytes_length_1 = - _registerName1("initWithBytes:length:"); - late final _sel_initWithBytesNoCopy_length_1 = - _registerName1("initWithBytesNoCopy:length:"); - late final _sel_initWithBytesNoCopy_length_freeWhenDone_1 = - _registerName1("initWithBytesNoCopy:length:freeWhenDone:"); - late final _sel_initWithBytesNoCopy_length_deallocator_1 = - _registerName1("initWithBytesNoCopy:length:deallocator:"); - instancetype _objc_msgSend_216( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bytes, - int length, - ffi.Pointer<_ObjCBlock> deallocator, + ffi.Pointer NSAllocateMemoryPages( + int bytes, ) { - return __objc_msgSend_216( - obj, - sel, + return _NSAllocateMemoryPages( bytes, - length, - deallocator, ); } - late final __objc_msgSend_216Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_216 = __objc_msgSend_216Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + late final _NSAllocateMemoryPagesPtr = + _lookup Function(NSUInteger)>>( + 'NSAllocateMemoryPages'); + late final _NSAllocateMemoryPages = _NSAllocateMemoryPagesPtr.asFunction< + ffi.Pointer Function(int)>(); - late final _sel_initWithContentsOfFile_options_error_1 = - _registerName1("initWithContentsOfFile:options:error:"); - late final _sel_initWithContentsOfURL_options_error_1 = - _registerName1("initWithContentsOfURL:options:error:"); - late final _sel_initWithData_1 = _registerName1("initWithData:"); - instancetype _objc_msgSend_217( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, + void NSDeallocateMemoryPages( + ffi.Pointer ptr, + int bytes, ) { - return __objc_msgSend_217( - obj, - sel, - data, + return _NSDeallocateMemoryPages( + ptr, + bytes, ); } - late final __objc_msgSend_217Ptr = _lookup< + late final _NSDeallocateMemoryPagesPtr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_217 = __objc_msgSend_217Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer, NSUInteger)>>('NSDeallocateMemoryPages'); + late final _NSDeallocateMemoryPages = _NSDeallocateMemoryPagesPtr.asFunction< + void Function(ffi.Pointer, int)>(); - late final _sel_dataWithData_1 = _registerName1("dataWithData:"); - late final _sel_initWithBase64EncodedString_options_1 = - _registerName1("initWithBase64EncodedString:options:"); - instancetype _objc_msgSend_218( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer base64String, - int options, + void NSCopyMemoryPages( + ffi.Pointer source, + ffi.Pointer dest, + int bytes, ) { - return __objc_msgSend_218( - obj, - sel, - base64String, - options, + return _NSCopyMemoryPages( + source, + dest, + bytes, ); } - late final __objc_msgSend_218Ptr = _lookup< + late final _NSCopyMemoryPagesPtr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_218 = __objc_msgSend_218Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSUInteger)>>('NSCopyMemoryPages'); + late final _NSCopyMemoryPages = _NSCopyMemoryPagesPtr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_base64EncodedStringWithOptions_1 = - _registerName1("base64EncodedStringWithOptions:"); - ffi.Pointer _objc_msgSend_219( - ffi.Pointer obj, - ffi.Pointer sel, - int options, + int NSRealMemoryAvailable() { + return _NSRealMemoryAvailable(); + } + + late final _NSRealMemoryAvailablePtr = + _lookup>( + 'NSRealMemoryAvailable'); + late final _NSRealMemoryAvailable = + _NSRealMemoryAvailablePtr.asFunction(); + + ffi.Pointer NSAllocateObject( + ffi.Pointer aClass, + int extraBytes, + ffi.Pointer zone, ) { - return __objc_msgSend_219( - obj, - sel, - options, + return _NSAllocateObject( + aClass, + extraBytes, + zone, ); } - late final __objc_msgSend_219Ptr = _lookup< + late final _NSAllocateObjectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_219 = __objc_msgSend_219Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, NSUInteger, + ffi.Pointer)>>('NSAllocateObject'); + late final _NSAllocateObject = _NSAllocateObjectPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, int, ffi.Pointer)>(); - late final _sel_initWithBase64EncodedData_options_1 = - _registerName1("initWithBase64EncodedData:options:"); - instancetype _objc_msgSend_220( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer base64Data, - int options, + void NSDeallocateObject( + ffi.Pointer object, ) { - return __objc_msgSend_220( - obj, - sel, - base64Data, - options, + return _NSDeallocateObject( + object, ); } - late final __objc_msgSend_220Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_220 = __objc_msgSend_220Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + late final _NSDeallocateObjectPtr = + _lookup)>>( + 'NSDeallocateObject'); + late final _NSDeallocateObject = _NSDeallocateObjectPtr.asFunction< + void Function(ffi.Pointer)>(); - late final _sel_base64EncodedDataWithOptions_1 = - _registerName1("base64EncodedDataWithOptions:"); - ffi.Pointer _objc_msgSend_221( - ffi.Pointer obj, - ffi.Pointer sel, - int options, + ffi.Pointer NSCopyObject( + ffi.Pointer object, + int extraBytes, + ffi.Pointer zone, ) { - return __objc_msgSend_221( - obj, - sel, - options, + return _NSCopyObject( + object, + extraBytes, + zone, ); } - late final __objc_msgSend_221Ptr = _lookup< + late final _NSCopyObjectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, NSUInteger, + ffi.Pointer)>>('NSCopyObject'); + late final _NSCopyObject = _NSCopyObjectPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, int, ffi.Pointer)>(); - late final _sel_decompressedDataUsingAlgorithm_error_1 = - _registerName1("decompressedDataUsingAlgorithm:error:"); - instancetype _objc_msgSend_222( - ffi.Pointer obj, - ffi.Pointer sel, - int algorithm, - ffi.Pointer> error, + bool NSShouldRetainWithZone( + ffi.Pointer anObject, + ffi.Pointer requestedZone, ) { - return __objc_msgSend_222( - obj, - sel, - algorithm, - error, + return _NSShouldRetainWithZone( + anObject, + requestedZone, ); } - late final __objc_msgSend_222Ptr = _lookup< + late final _NSShouldRetainWithZonePtr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_222 = __objc_msgSend_222Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer>)>(); + ffi.Bool Function(ffi.Pointer, + ffi.Pointer)>>('NSShouldRetainWithZone'); + late final _NSShouldRetainWithZone = _NSShouldRetainWithZonePtr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_compressedDataUsingAlgorithm_error_1 = - _registerName1("compressedDataUsingAlgorithm:error:"); - late final _sel_getBytes_1 = _registerName1("getBytes:"); - late final _sel_dataWithContentsOfMappedFile_1 = - _registerName1("dataWithContentsOfMappedFile:"); - late final _sel_initWithContentsOfMappedFile_1 = - _registerName1("initWithContentsOfMappedFile:"); - late final _sel_initWithBase64Encoding_1 = - _registerName1("initWithBase64Encoding:"); - late final _sel_base64Encoding1 = _registerName1("base64Encoding"); - late final _sel_characterSetWithBitmapRepresentation_1 = - _registerName1("characterSetWithBitmapRepresentation:"); - ffi.Pointer _objc_msgSend_223( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, + void NSIncrementExtraRefCount( + ffi.Pointer object, ) { - return __objc_msgSend_223( - obj, - sel, - data, + return _NSIncrementExtraRefCount( + object, ); } - late final __objc_msgSend_223Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_223 = __objc_msgSend_223Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _NSIncrementExtraRefCountPtr = + _lookup)>>( + 'NSIncrementExtraRefCount'); + late final _NSIncrementExtraRefCount = _NSIncrementExtraRefCountPtr + .asFunction)>(); - late final _sel_characterSetWithContentsOfFile_1 = - _registerName1("characterSetWithContentsOfFile:"); - late final _sel_characterIsMember_1 = _registerName1("characterIsMember:"); - bool _objc_msgSend_224( - ffi.Pointer obj, - ffi.Pointer sel, - int aCharacter, + bool NSDecrementExtraRefCountWasZero( + ffi.Pointer object, ) { - return __objc_msgSend_224( - obj, - sel, - aCharacter, + return _NSDecrementExtraRefCountWasZero( + object, ); } - late final __objc_msgSend_224Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - unichar)>>('objc_msgSend'); - late final __objc_msgSend_224 = __objc_msgSend_224Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _NSDecrementExtraRefCountWasZeroPtr = + _lookup)>>( + 'NSDecrementExtraRefCountWasZero'); + late final _NSDecrementExtraRefCountWasZero = + _NSDecrementExtraRefCountWasZeroPtr.asFunction< + bool Function(ffi.Pointer)>(); - late final _sel_bitmapRepresentation1 = - _registerName1("bitmapRepresentation"); - late final _sel_invertedSet1 = _registerName1("invertedSet"); - late final _sel_longCharacterIsMember_1 = - _registerName1("longCharacterIsMember:"); - bool _objc_msgSend_225( - ffi.Pointer obj, - ffi.Pointer sel, - int theLongChar, + int NSExtraRefCount( + ffi.Pointer object, ) { - return __objc_msgSend_225( - obj, - sel, - theLongChar, + return _NSExtraRefCount( + object, ); } - late final __objc_msgSend_225Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - UTF32Char)>>('objc_msgSend'); - late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _NSExtraRefCountPtr = + _lookup)>>( + 'NSExtraRefCount'); + late final _NSExtraRefCount = + _NSExtraRefCountPtr.asFunction)>(); - late final _sel_isSupersetOfSet_1 = _registerName1("isSupersetOfSet:"); - bool _objc_msgSend_226( + NSRange NSUnionRange( + NSRange range1, + NSRange range2, + ) { + return _NSUnionRange( + range1, + range2, + ); + } + + late final _NSUnionRangePtr = + _lookup>( + 'NSUnionRange'); + late final _NSUnionRange = + _NSUnionRangePtr.asFunction(); + + NSRange NSIntersectionRange( + NSRange range1, + NSRange range2, + ) { + return _NSIntersectionRange( + range1, + range2, + ); + } + + late final _NSIntersectionRangePtr = + _lookup>( + 'NSIntersectionRange'); + late final _NSIntersectionRange = + _NSIntersectionRangePtr.asFunction(); + + ffi.Pointer NSStringFromRange( + NSRange range, + ) { + return _NSStringFromRange( + range, + ); + } + + late final _NSStringFromRangePtr = + _lookup Function(NSRange)>>( + 'NSStringFromRange'); + late final _NSStringFromRange = _NSStringFromRangePtr.asFunction< + ffi.Pointer Function(NSRange)>(); + + NSRange NSRangeFromString( + ffi.Pointer aString, + ) { + return _NSRangeFromString( + aString, + ); + } + + late final _NSRangeFromStringPtr = + _lookup)>>( + 'NSRangeFromString'); + late final _NSRangeFromString = _NSRangeFromStringPtr.asFunction< + NSRange Function(ffi.Pointer)>(); + + late final _class_NSMutableIndexSet1 = _getClass1("NSMutableIndexSet"); + late final _sel_addIndexes_1 = _registerName1("addIndexes:"); + void _objc_msgSend_281( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer theOtherSet, + ffi.Pointer indexSet, ) { - return __objc_msgSend_226( + return __objc_msgSend_281( obj, sel, - theOtherSet, + indexSet, ); } - late final __objc_msgSend_226Ptr = _lookup< + late final __objc_msgSend_281Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, + late final __objc_msgSend_281 = __objc_msgSend_281Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_hasMemberInPlane_1 = _registerName1("hasMemberInPlane:"); - bool _objc_msgSend_227( + late final _sel_removeIndexes_1 = _registerName1("removeIndexes:"); + late final _sel_removeAllIndexes1 = _registerName1("removeAllIndexes"); + late final _sel_addIndex_1 = _registerName1("addIndex:"); + void _objc_msgSend_282( ffi.Pointer obj, ffi.Pointer sel, - int thePlane, + int value, ) { - return __objc_msgSend_227( + return __objc_msgSend_282( obj, sel, - thePlane, + value, ); } - late final __objc_msgSend_227Ptr = _lookup< + late final __objc_msgSend_282Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Uint8)>>('objc_msgSend'); - late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_282 = __objc_msgSend_282Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_URLUserAllowedCharacterSet1 = - _registerName1("URLUserAllowedCharacterSet"); - late final _sel_URLPasswordAllowedCharacterSet1 = - _registerName1("URLPasswordAllowedCharacterSet"); - late final _sel_URLHostAllowedCharacterSet1 = - _registerName1("URLHostAllowedCharacterSet"); - late final _sel_URLPathAllowedCharacterSet1 = - _registerName1("URLPathAllowedCharacterSet"); - late final _sel_URLQueryAllowedCharacterSet1 = - _registerName1("URLQueryAllowedCharacterSet"); - late final _sel_URLFragmentAllowedCharacterSet1 = - _registerName1("URLFragmentAllowedCharacterSet"); - late final _sel_rangeOfCharacterFromSet_1 = - _registerName1("rangeOfCharacterFromSet:"); - NSRange _objc_msgSend_228( + late final _sel_removeIndex_1 = _registerName1("removeIndex:"); + late final _sel_addIndexesInRange_1 = _registerName1("addIndexesInRange:"); + void _objc_msgSend_283( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer searchSet, + NSRange range, ) { - return __objc_msgSend_228( + return __objc_msgSend_283( obj, sel, - searchSet, + range, ); } - late final __objc_msgSend_228Ptr = _lookup< + late final __objc_msgSend_283Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSRange)>>('objc_msgSend'); + late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, NSRange)>(); - late final _sel_rangeOfCharacterFromSet_options_1 = - _registerName1("rangeOfCharacterFromSet:options:"); - NSRange _objc_msgSend_229( + late final _sel_removeIndexesInRange_1 = + _registerName1("removeIndexesInRange:"); + late final _sel_shiftIndexesStartingAtIndex_by_1 = + _registerName1("shiftIndexesStartingAtIndex:by:"); + void _objc_msgSend_284( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer searchSet, - int mask, + int index, + int delta, ) { - return __objc_msgSend_229( + return __objc_msgSend_284( obj, sel, - searchSet, - mask, + index, + delta, ); } - late final __objc_msgSend_229Ptr = _lookup< + late final __objc_msgSend_284Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSUInteger, NSInteger)>>('objc_msgSend'); + late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, int)>(); - late final _sel_rangeOfCharacterFromSet_options_range_1 = - _registerName1("rangeOfCharacterFromSet:options:range:"); - NSRange _objc_msgSend_230( + late final _class_NSMutableArray1 = _getClass1("NSMutableArray"); + late final _sel_addObject_1 = _registerName1("addObject:"); + late final _sel_insertObject_atIndex_1 = + _registerName1("insertObject:atIndex:"); + void _objc_msgSend_285( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer searchSet, - int mask, - NSRange rangeOfReceiverToSearch, + ffi.Pointer anObject, + int index, ) { - return __objc_msgSend_230( + return __objc_msgSend_285( obj, sel, - searchSet, - mask, - rangeOfReceiverToSearch, + anObject, + index, ); } - late final __objc_msgSend_230Ptr = _lookup< + late final __objc_msgSend_285Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_285 = __objc_msgSend_285Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_rangeOfComposedCharacterSequenceAtIndex_1 = - _registerName1("rangeOfComposedCharacterSequenceAtIndex:"); - NSRange _objc_msgSend_231( + late final _sel_removeLastObject1 = _registerName1("removeLastObject"); + late final _sel_removeObjectAtIndex_1 = + _registerName1("removeObjectAtIndex:"); + late final _sel_replaceObjectAtIndex_withObject_1 = + _registerName1("replaceObjectAtIndex:withObject:"); + void _objc_msgSend_286( ffi.Pointer obj, ffi.Pointer sel, int index, + ffi.Pointer anObject, ) { - return __objc_msgSend_231( + return __objc_msgSend_286( obj, sel, index, + anObject, ); } - late final __objc_msgSend_231Ptr = _lookup< + late final __objc_msgSend_286Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSUInteger, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); - late final _sel_rangeOfComposedCharacterSequencesForRange_1 = - _registerName1("rangeOfComposedCharacterSequencesForRange:"); - NSRange _objc_msgSend_232( + late final _sel_initWithCapacity_1 = _registerName1("initWithCapacity:"); + late final _sel_addObjectsFromArray_1 = + _registerName1("addObjectsFromArray:"); + void _objc_msgSend_287( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + ffi.Pointer otherArray, ) { - return __objc_msgSend_232( + return __objc_msgSend_287( obj, sel, - range, + otherArray, ); } - late final __objc_msgSend_232Ptr = _lookup< + late final __objc_msgSend_287Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< - NSRange Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_stringByAppendingString_1 = - _registerName1("stringByAppendingString:"); - late final _sel_stringByAppendingFormat_1 = - _registerName1("stringByAppendingFormat:"); - late final _sel_uppercaseString1 = _registerName1("uppercaseString"); - late final _sel_lowercaseString1 = _registerName1("lowercaseString"); - late final _sel_capitalizedString1 = _registerName1("capitalizedString"); - late final _sel_localizedUppercaseString1 = - _registerName1("localizedUppercaseString"); - late final _sel_localizedLowercaseString1 = - _registerName1("localizedLowercaseString"); - late final _sel_localizedCapitalizedString1 = - _registerName1("localizedCapitalizedString"); - late final _sel_uppercaseStringWithLocale_1 = - _registerName1("uppercaseStringWithLocale:"); - ffi.Pointer _objc_msgSend_233( + late final _sel_exchangeObjectAtIndex_withObjectAtIndex_1 = + _registerName1("exchangeObjectAtIndex:withObjectAtIndex:"); + void _objc_msgSend_288( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer locale, + int idx1, + int idx2, ) { - return __objc_msgSend_233( + return __objc_msgSend_288( obj, sel, - locale, + idx1, + idx2, ); } - late final __objc_msgSend_233Ptr = _lookup< + late final __objc_msgSend_288Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSUInteger, NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, int)>(); - late final _sel_lowercaseStringWithLocale_1 = - _registerName1("lowercaseStringWithLocale:"); - late final _sel_capitalizedStringWithLocale_1 = - _registerName1("capitalizedStringWithLocale:"); - late final _sel_getLineStart_end_contentsEnd_forRange_1 = - _registerName1("getLineStart:end:contentsEnd:forRange:"); - void _objc_msgSend_234( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer startPtr, - ffi.Pointer lineEndPtr, - ffi.Pointer contentsEndPtr, - NSRange range, - ) { - return __objc_msgSend_234( - obj, - sel, - startPtr, - lineEndPtr, - contentsEndPtr, - range, - ); - } - - late final __objc_msgSend_234Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>(); - - late final _sel_lineRangeForRange_1 = _registerName1("lineRangeForRange:"); - late final _sel_getParagraphStart_end_contentsEnd_forRange_1 = - _registerName1("getParagraphStart:end:contentsEnd:forRange:"); - late final _sel_paragraphRangeForRange_1 = - _registerName1("paragraphRangeForRange:"); - late final _sel_enumerateSubstringsInRange_options_usingBlock_1 = - _registerName1("enumerateSubstringsInRange:options:usingBlock:"); - void _objc_msgSend_235( + late final _sel_removeAllObjects1 = _registerName1("removeAllObjects"); + late final _sel_removeObject_inRange_1 = + _registerName1("removeObject:inRange:"); + void _objc_msgSend_289( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer anObject, NSRange range, - int opts, - ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_235( + return __objc_msgSend_289( obj, sel, + anObject, range, - opts, - block, ); } - late final __objc_msgSend_235Ptr = _lookup< + late final __objc_msgSend_289Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSRange)>(); - late final _sel_enumerateLinesUsingBlock_1 = - _registerName1("enumerateLinesUsingBlock:"); - void _objc_msgSend_236( + late final _sel_removeObject_1 = _registerName1("removeObject:"); + late final _sel_removeObjectIdenticalTo_inRange_1 = + _registerName1("removeObjectIdenticalTo:inRange:"); + late final _sel_removeObjectIdenticalTo_1 = + _registerName1("removeObjectIdenticalTo:"); + late final _sel_removeObjectsFromIndices_numIndices_1 = + _registerName1("removeObjectsFromIndices:numIndices:"); + void _objc_msgSend_290( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, + ffi.Pointer indices, + int cnt, ) { - return __objc_msgSend_236( + return __objc_msgSend_290( obj, sel, - block, + indices, + cnt, ); } - late final __objc_msgSend_236Ptr = _lookup< + late final __objc_msgSend_290Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< + ffi.Pointer, NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, int)>(); - late final _sel_UTF8String1 = _registerName1("UTF8String"); - late final _sel_fastestEncoding1 = _registerName1("fastestEncoding"); - late final _sel_smallestEncoding1 = _registerName1("smallestEncoding"); - late final _sel_dataUsingEncoding_allowLossyConversion_1 = - _registerName1("dataUsingEncoding:allowLossyConversion:"); - ffi.Pointer _objc_msgSend_237( + late final _sel_removeObjectsInArray_1 = + _registerName1("removeObjectsInArray:"); + late final _sel_removeObjectsInRange_1 = + _registerName1("removeObjectsInRange:"); + late final _sel_replaceObjectsInRange_withObjectsFromArray_range_1 = + _registerName1("replaceObjectsInRange:withObjectsFromArray:range:"); + void _objc_msgSend_291( ffi.Pointer obj, ffi.Pointer sel, - int encoding, - bool lossy, + NSRange range, + ffi.Pointer otherArray, + NSRange otherRange, ) { - return __objc_msgSend_237( + return __objc_msgSend_291( obj, sel, - encoding, - lossy, + range, + otherArray, + otherRange, ); } - late final __objc_msgSend_237Ptr = _lookup< + late final __objc_msgSend_291Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSStringEncoding, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_237 = __objc_msgSend_237Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int, bool)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSRange, ffi.Pointer, NSRange)>>('objc_msgSend'); + late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, NSRange, + ffi.Pointer, NSRange)>(); - late final _sel_dataUsingEncoding_1 = _registerName1("dataUsingEncoding:"); - ffi.Pointer _objc_msgSend_238( + late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = + _registerName1("replaceObjectsInRange:withObjectsFromArray:"); + void _objc_msgSend_292( ffi.Pointer obj, ffi.Pointer sel, - int encoding, + NSRange range, + ffi.Pointer otherArray, ) { - return __objc_msgSend_238( + return __objc_msgSend_292( obj, sel, - encoding, + range, + otherArray, ); } - late final __objc_msgSend_238Ptr = _lookup< + late final __objc_msgSend_292Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_238 = __objc_msgSend_238Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, NSRange, + ffi.Pointer)>(); - late final _sel_canBeConvertedToEncoding_1 = - _registerName1("canBeConvertedToEncoding:"); - late final _sel_cStringUsingEncoding_1 = - _registerName1("cStringUsingEncoding:"); - ffi.Pointer _objc_msgSend_239( + late final _sel_setArray_1 = _registerName1("setArray:"); + late final _sel_sortUsingFunction_context_1 = + _registerName1("sortUsingFunction:context:"); + void _objc_msgSend_293( ffi.Pointer obj, ffi.Pointer sel, - int encoding, + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + compare, + ffi.Pointer context, ) { - return __objc_msgSend_239( + return __objc_msgSend_293( obj, sel, - encoding, + compare, + context, ); } - late final __objc_msgSend_239Ptr = _lookup< + late final __objc_msgSend_293Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_239 = __objc_msgSend_239Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>, + ffi.Pointer)>(); - late final _sel_getCString_maxLength_encoding_1 = - _registerName1("getCString:maxLength:encoding:"); - bool _objc_msgSend_240( + late final _sel_sortUsingSelector_1 = _registerName1("sortUsingSelector:"); + late final _sel_insertObjects_atIndexes_1 = + _registerName1("insertObjects:atIndexes:"); + void _objc_msgSend_294( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer buffer, - int maxBufferCount, - int encoding, + ffi.Pointer objects, + ffi.Pointer indexes, ) { - return __objc_msgSend_240( + return __objc_msgSend_294( obj, sel, - buffer, - maxBufferCount, - encoding, + objects, + indexes, ); } - late final __objc_msgSend_240Ptr = _lookup< + late final __objc_msgSend_294Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_240 = __objc_msgSend_240Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int)>(); + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1 = - _registerName1( - "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:"); - bool _objc_msgSend_241( + late final _sel_removeObjectsAtIndexes_1 = + _registerName1("removeObjectsAtIndexes:"); + late final _sel_replaceObjectsAtIndexes_withObjects_1 = + _registerName1("replaceObjectsAtIndexes:withObjects:"); + void _objc_msgSend_295( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer buffer, - int maxBufferCount, - ffi.Pointer usedBufferCount, - int encoding, - int options, - NSRange range, - NSRangePointer leftover, + ffi.Pointer indexes, + ffi.Pointer objects, ) { - return __objc_msgSend_241( + return __objc_msgSend_295( obj, sel, - buffer, - maxBufferCount, - usedBufferCount, - encoding, - options, - range, - leftover, + indexes, + objects, ); } - late final __objc_msgSend_241Ptr = _lookup< + late final __objc_msgSend_295Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - NSStringEncoding, - ffi.Int32, - NSRange, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_241 = __objc_msgSend_241Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - int, - int, - NSRange, - NSRangePointer)>(); + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_maximumLengthOfBytesUsingEncoding_1 = - _registerName1("maximumLengthOfBytesUsingEncoding:"); - late final _sel_lengthOfBytesUsingEncoding_1 = - _registerName1("lengthOfBytesUsingEncoding:"); - late final _sel_availableStringEncodings1 = - _registerName1("availableStringEncodings"); - ffi.Pointer _objc_msgSend_242( + late final _sel_setObject_atIndexedSubscript_1 = + _registerName1("setObject:atIndexedSubscript:"); + late final _sel_sortUsingComparator_1 = + _registerName1("sortUsingComparator:"); + void _objc_msgSend_296( ffi.Pointer obj, ffi.Pointer sel, + NSComparator cmptr, ) { - return __objc_msgSend_242( + return __objc_msgSend_296( obj, sel, + cmptr, ); } - late final __objc_msgSend_242Ptr = _lookup< + late final __objc_msgSend_296Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_242 = __objc_msgSend_242Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSComparator)>>('objc_msgSend'); + late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< + void Function( + ffi.Pointer, ffi.Pointer, NSComparator)>(); - late final _sel_localizedNameOfStringEncoding_1 = - _registerName1("localizedNameOfStringEncoding:"); - late final _sel_defaultCStringEncoding1 = - _registerName1("defaultCStringEncoding"); - late final _sel_decomposedStringWithCanonicalMapping1 = - _registerName1("decomposedStringWithCanonicalMapping"); - late final _sel_precomposedStringWithCanonicalMapping1 = - _registerName1("precomposedStringWithCanonicalMapping"); - late final _sel_decomposedStringWithCompatibilityMapping1 = - _registerName1("decomposedStringWithCompatibilityMapping"); - late final _sel_precomposedStringWithCompatibilityMapping1 = - _registerName1("precomposedStringWithCompatibilityMapping"); - late final _sel_componentsSeparatedByString_1 = - _registerName1("componentsSeparatedByString:"); - late final _sel_componentsSeparatedByCharactersInSet_1 = - _registerName1("componentsSeparatedByCharactersInSet:"); - ffi.Pointer _objc_msgSend_243( + late final _sel_sortWithOptions_usingComparator_1 = + _registerName1("sortWithOptions:usingComparator:"); + void _objc_msgSend_297( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer separator, + int opts, + NSComparator cmptr, ) { - return __objc_msgSend_243( + return __objc_msgSend_297( obj, sel, - separator, + opts, + cmptr, ); } - late final __objc_msgSend_243Ptr = _lookup< + late final __objc_msgSend_297Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_243 = __objc_msgSend_243Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, NSComparator)>>('objc_msgSend'); + late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< + void Function( + ffi.Pointer, ffi.Pointer, int, NSComparator)>(); - late final _sel_stringByTrimmingCharactersInSet_1 = - _registerName1("stringByTrimmingCharactersInSet:"); - ffi.Pointer _objc_msgSend_244( + late final _sel_arrayWithCapacity_1 = _registerName1("arrayWithCapacity:"); + ffi.Pointer _objc_msgSend_298( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer set1, + ffi.Pointer path, ) { - return __objc_msgSend_244( + return __objc_msgSend_298( obj, sel, - set1, + path, ); } - late final __objc_msgSend_244Ptr = _lookup< + late final __objc_msgSend_298Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_244 = __objc_msgSend_244Ptr.asFunction< + late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_stringByPaddingToLength_withString_startingAtIndex_1 = - _registerName1("stringByPaddingToLength:withString:startingAtIndex:"); - ffi.Pointer _objc_msgSend_245( + ffi.Pointer _objc_msgSend_299( ffi.Pointer obj, ffi.Pointer sel, - int newLength, - ffi.Pointer padString, - int padIndex, + ffi.Pointer url, ) { - return __objc_msgSend_245( + return __objc_msgSend_299( obj, sel, - newLength, - padString, - padIndex, + url, ); } - late final __objc_msgSend_245Ptr = _lookup< + late final __objc_msgSend_299Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_245 = __objc_msgSend_245Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer, int)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_stringByFoldingWithOptions_locale_1 = - _registerName1("stringByFoldingWithOptions:locale:"); - ffi.Pointer _objc_msgSend_246( + late final _sel_applyDifference_1 = _registerName1("applyDifference:"); + void _objc_msgSend_300( ffi.Pointer obj, ffi.Pointer sel, - int options, - ffi.Pointer locale, + ffi.Pointer difference, ) { - return __objc_msgSend_246( + return __objc_msgSend_300( obj, sel, - options, - locale, + difference, ); } - late final __objc_msgSend_246Ptr = _lookup< + late final __objc_msgSend_300Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_246 = __objc_msgSend_246Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); + late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_1 = - _registerName1( - "stringByReplacingOccurrencesOfString:withString:options:range:"); - ffi.Pointer _objc_msgSend_247( + late final _class_NSMutableData1 = _getClass1("NSMutableData"); + late final _sel_mutableBytes1 = _registerName1("mutableBytes"); + late final _sel_setLength_1 = _registerName1("setLength:"); + void _objc_msgSend_301( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer target, - ffi.Pointer replacement, - int options, - NSRange searchRange, + int value, ) { - return __objc_msgSend_247( + return __objc_msgSend_301( obj, sel, - target, - replacement, - options, - searchRange, + value, ); } - late final __objc_msgSend_247Ptr = _lookup< + late final __objc_msgSend_301Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_247 = __objc_msgSend_247Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_stringByReplacingOccurrencesOfString_withString_1 = - _registerName1("stringByReplacingOccurrencesOfString:withString:"); - ffi.Pointer _objc_msgSend_248( + late final _sel_appendBytes_length_1 = _registerName1("appendBytes:length:"); + late final _sel_appendData_1 = _registerName1("appendData:"); + void _objc_msgSend_302( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer target, - ffi.Pointer replacement, + ffi.Pointer other, ) { - return __objc_msgSend_248( + return __objc_msgSend_302( obj, sel, - target, - replacement, + other, ); } - late final __objc_msgSend_248Ptr = _lookup< + late final __objc_msgSend_302Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_248 = __objc_msgSend_248Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_stringByReplacingCharactersInRange_withString_1 = - _registerName1("stringByReplacingCharactersInRange:withString:"); - ffi.Pointer _objc_msgSend_249( + late final _sel_increaseLengthBy_1 = _registerName1("increaseLengthBy:"); + late final _sel_replaceBytesInRange_withBytes_1 = + _registerName1("replaceBytesInRange:withBytes:"); + void _objc_msgSend_303( ffi.Pointer obj, ffi.Pointer sel, NSRange range, - ffi.Pointer replacement, + ffi.Pointer bytes, ) { - return __objc_msgSend_249( + return __objc_msgSend_303( obj, sel, range, - replacement, + bytes, ); } - late final __objc_msgSend_249Ptr = _lookup< + late final __objc_msgSend_303Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_249 = __objc_msgSend_249Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, NSRange, + ffi.Pointer)>(); - late final _sel_stringByApplyingTransform_reverse_1 = - _registerName1("stringByApplyingTransform:reverse:"); - ffi.Pointer _objc_msgSend_250( + late final _sel_resetBytesInRange_1 = _registerName1("resetBytesInRange:"); + late final _sel_setData_1 = _registerName1("setData:"); + late final _sel_replaceBytesInRange_withBytes_length_1 = + _registerName1("replaceBytesInRange:withBytes:length:"); + void _objc_msgSend_304( ffi.Pointer obj, ffi.Pointer sel, - NSStringTransform transform, - bool reverse, + NSRange range, + ffi.Pointer replacementBytes, + int replacementLength, ) { - return __objc_msgSend_250( + return __objc_msgSend_304( obj, sel, - transform, - reverse, + range, + replacementBytes, + replacementLength, ); } - late final __objc_msgSend_250Ptr = _lookup< + late final __objc_msgSend_304Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSStringTransform, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSStringTransform, bool)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSRange, ffi.Pointer, NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, NSRange, + ffi.Pointer, int)>(); - late final _sel_writeToURL_atomically_encoding_error_1 = - _registerName1("writeToURL:atomically:encoding:error:"); - bool _objc_msgSend_251( + late final _sel_dataWithCapacity_1 = _registerName1("dataWithCapacity:"); + late final _sel_dataWithLength_1 = _registerName1("dataWithLength:"); + late final _sel_initWithLength_1 = _registerName1("initWithLength:"); + late final _sel_decompressUsingAlgorithm_error_1 = + _registerName1("decompressUsingAlgorithm:error:"); + bool _objc_msgSend_305( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - bool useAuxiliaryFile, - int enc, + int algorithm, ffi.Pointer> error, ) { - return __objc_msgSend_251( + return __objc_msgSend_305( obj, sel, - url, - useAuxiliaryFile, - enc, + algorithm, error, ); } - late final __objc_msgSend_251Ptr = _lookup< + late final __objc_msgSend_305Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Bool, - NSStringEncoding, + ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_251 = __objc_msgSend_251Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - int, + late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); - late final _sel_writeToFile_atomically_encoding_error_1 = - _registerName1("writeToFile:atomically:encoding:error:"); - bool _objc_msgSend_252( + late final _sel_compressUsingAlgorithm_error_1 = + _registerName1("compressUsingAlgorithm:error:"); + late final _class_NSPurgeableData1 = _getClass1("NSPurgeableData"); + late final _class_NSMutableDictionary1 = _getClass1("NSMutableDictionary"); + late final _sel_removeObjectForKey_1 = _registerName1("removeObjectForKey:"); + late final _sel_setObject_forKey_1 = _registerName1("setObject:forKey:"); + void _objc_msgSend_306( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - bool useAuxiliaryFile, - int enc, - ffi.Pointer> error, + ffi.Pointer anObject, + ffi.Pointer aKey, ) { - return __objc_msgSend_252( + return __objc_msgSend_306( obj, sel, - path, - useAuxiliaryFile, - enc, - error, + anObject, + aKey, ); } - late final __objc_msgSend_252Ptr = _lookup< + late final __objc_msgSend_306Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Bool, - NSStringEncoding, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_252 = __objc_msgSend_252Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - int, - ffi.Pointer>)>(); + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithCharactersNoCopy_length_freeWhenDone_1 = - _registerName1("initWithCharactersNoCopy:length:freeWhenDone:"); - instancetype _objc_msgSend_253( + late final _sel_addEntriesFromDictionary_1 = + _registerName1("addEntriesFromDictionary:"); + void _objc_msgSend_307( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer characters, - int length, - bool freeBuffer, + ffi.Pointer otherDictionary, ) { - return __objc_msgSend_253( + return __objc_msgSend_307( obj, sel, - characters, - length, - freeBuffer, + otherDictionary, ); } - late final __objc_msgSend_253Ptr = _lookup< + late final __objc_msgSend_307Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_253 = __objc_msgSend_253Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, bool)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_initWithCharactersNoCopy_length_deallocator_1 = - _registerName1("initWithCharactersNoCopy:length:deallocator:"); - instancetype _objc_msgSend_254( + late final _sel_removeObjectsForKeys_1 = + _registerName1("removeObjectsForKeys:"); + late final _sel_setDictionary_1 = _registerName1("setDictionary:"); + late final _sel_setObject_forKeyedSubscript_1 = + _registerName1("setObject:forKeyedSubscript:"); + late final _sel_dictionaryWithCapacity_1 = + _registerName1("dictionaryWithCapacity:"); + ffi.Pointer _objc_msgSend_308( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer chars, - int len, - ffi.Pointer<_ObjCBlock> deallocator, + ffi.Pointer path, ) { - return __objc_msgSend_254( + return __objc_msgSend_308( obj, sel, - chars, - len, - deallocator, + path, ); } - late final __objc_msgSend_254Ptr = _lookup< + late final __objc_msgSend_308Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_254 = __objc_msgSend_254Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithCharacters_length_1 = - _registerName1("initWithCharacters:length:"); - instancetype _objc_msgSend_255( + ffi.Pointer _objc_msgSend_309( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer characters, - int length, + ffi.Pointer url, ) { - return __objc_msgSend_255( + return __objc_msgSend_309( obj, sel, - characters, - length, + url, ); } - late final __objc_msgSend_255Ptr = _lookup< + late final __objc_msgSend_309Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_255 = __objc_msgSend_255Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithUTF8String_1 = _registerName1("initWithUTF8String:"); - instancetype _objc_msgSend_256( + late final _sel_dictionaryWithSharedKeySet_1 = + _registerName1("dictionaryWithSharedKeySet:"); + ffi.Pointer _objc_msgSend_310( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer nullTerminatedCString, + ffi.Pointer keyset, ) { - return __objc_msgSend_256( + return __objc_msgSend_310( obj, sel, - nullTerminatedCString, + keyset, ); } - late final __objc_msgSend_256Ptr = _lookup< + late final __objc_msgSend_310Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_256 = __objc_msgSend_256Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithFormat_1 = _registerName1("initWithFormat:"); - late final _sel_initWithFormat_arguments_1 = - _registerName1("initWithFormat:arguments:"); - instancetype _objc_msgSend_257( + late final _class_NSNotification1 = _getClass1("NSNotification"); + late final _sel_name1 = _registerName1("name"); + late final _sel_initWithName_object_userInfo_1 = + _registerName1("initWithName:object:userInfo:"); + instancetype _objc_msgSend_311( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer format, - va_list argList, + NSNotificationName name, + ffi.Pointer object, + ffi.Pointer userInfo, ) { - return __objc_msgSend_257( + return __objc_msgSend_311( obj, sel, - format, - argList, + name, + object, + userInfo, ); } - late final __objc_msgSend_257Ptr = _lookup< + late final __objc_msgSend_311Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, va_list)>>('objc_msgSend'); - late final __objc_msgSend_257 = __objc_msgSend_257Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, va_list)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + NSNotificationName, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + NSNotificationName, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_initWithFormat_locale_1 = - _registerName1("initWithFormat:locale:"); - instancetype _objc_msgSend_258( + late final _sel_notificationWithName_object_1 = + _registerName1("notificationWithName:object:"); + late final _sel_notificationWithName_object_userInfo_1 = + _registerName1("notificationWithName:object:userInfo:"); + late final _class_NSNotificationCenter1 = _getClass1("NSNotificationCenter"); + late final _sel_defaultCenter1 = _registerName1("defaultCenter"); + ffi.Pointer _objc_msgSend_312( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer locale, ) { - return __objc_msgSend_258( + return __objc_msgSend_312( obj, sel, - format, - locale, ); } - late final __objc_msgSend_258Ptr = _lookup< + late final __objc_msgSend_312Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_258 = __objc_msgSend_258Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithFormat_locale_arguments_1 = - _registerName1("initWithFormat:locale:arguments:"); - instancetype _objc_msgSend_259( + late final _sel_addObserver_selector_name_object_1 = + _registerName1("addObserver:selector:name:object:"); + void _objc_msgSend_313( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer locale, - va_list argList, + ffi.Pointer observer, + ffi.Pointer aSelector, + NSNotificationName aName, + ffi.Pointer anObject, ) { - return __objc_msgSend_259( + return __objc_msgSend_313( obj, sel, - format, - locale, - argList, + observer, + aSelector, + aName, + anObject, ); } - late final __objc_msgSend_259Ptr = _lookup< + late final __objc_msgSend_313Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - va_list)>>('objc_msgSend'); - late final __objc_msgSend_259 = __objc_msgSend_259Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, va_list)>(); + ffi.Pointer, + NSNotificationName, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSNotificationName, + ffi.Pointer)>(); - late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_1 = - _registerName1("initWithValidatedFormat:validFormatSpecifiers:error:"); - instancetype _objc_msgSend_260( + late final _sel_postNotification_1 = _registerName1("postNotification:"); + void _objc_msgSend_314( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer validFormatSpecifiers, - ffi.Pointer> error, + ffi.Pointer notification, ) { - return __objc_msgSend_260( + return __objc_msgSend_314( obj, sel, - format, - validFormatSpecifiers, - error, + notification, ); } - late final __objc_msgSend_260Ptr = _lookup< + late final __objc_msgSend_314Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_260 = __objc_msgSend_260Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1 = - _registerName1( - "initWithValidatedFormat:validFormatSpecifiers:locale:error:"); - instancetype _objc_msgSend_261( + late final _sel_postNotificationName_object_1 = + _registerName1("postNotificationName:object:"); + void _objc_msgSend_315( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer validFormatSpecifiers, - ffi.Pointer locale, - ffi.Pointer> error, + NSNotificationName aName, + ffi.Pointer anObject, ) { - return __objc_msgSend_261( + return __objc_msgSend_315( obj, sel, - format, - validFormatSpecifiers, - locale, - error, + aName, + anObject, ); } - late final __objc_msgSend_261Ptr = _lookup< + late final __objc_msgSend_315Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_261 = __objc_msgSend_261Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSNotificationName, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + NSNotificationName, ffi.Pointer)>(); - late final _sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1 = - _registerName1( - "initWithValidatedFormat:validFormatSpecifiers:arguments:error:"); - instancetype _objc_msgSend_262( + late final _sel_postNotificationName_object_userInfo_1 = + _registerName1("postNotificationName:object:userInfo:"); + void _objc_msgSend_316( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer validFormatSpecifiers, - va_list argList, - ffi.Pointer> error, + NSNotificationName aName, + ffi.Pointer anObject, + ffi.Pointer aUserInfo, ) { - return __objc_msgSend_262( + return __objc_msgSend_316( obj, sel, - format, - validFormatSpecifiers, - argList, - error, + aName, + anObject, + aUserInfo, ); } - late final __objc_msgSend_262Ptr = _lookup< + late final __objc_msgSend_316Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + NSNotificationName, ffi.Pointer, - ffi.Pointer, - va_list, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_262 = __objc_msgSend_262Ptr.asFunction< - instancetype Function( + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< + void Function( ffi.Pointer, ffi.Pointer, + NSNotificationName, ffi.Pointer, - ffi.Pointer, - va_list, - ffi.Pointer>)>(); + ffi.Pointer)>(); - late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1 = - _registerName1( - "initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error:"); - instancetype _objc_msgSend_263( + late final _sel_removeObserver_1 = _registerName1("removeObserver:"); + late final _sel_removeObserver_name_object_1 = + _registerName1("removeObserver:name:object:"); + void _objc_msgSend_317( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer validFormatSpecifiers, - ffi.Pointer locale, - va_list argList, - ffi.Pointer> error, + ffi.Pointer observer, + NSNotificationName aName, + ffi.Pointer anObject, ) { - return __objc_msgSend_263( + return __objc_msgSend_317( obj, sel, - format, - validFormatSpecifiers, - locale, - argList, - error, + observer, + aName, + anObject, ); } - late final __objc_msgSend_263Ptr = _lookup< + late final __objc_msgSend_317Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - va_list, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_263 = __objc_msgSend_263Ptr.asFunction< - instancetype Function( + NSNotificationName, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - va_list, - ffi.Pointer>)>(); + NSNotificationName, + ffi.Pointer)>(); - late final _sel_initWithData_encoding_1 = - _registerName1("initWithData:encoding:"); - instancetype _objc_msgSend_264( + late final _class_NSOperationQueue1 = _getClass1("NSOperationQueue"); + late final _class_NSProgress1 = _getClass1("NSProgress"); + late final _sel_currentProgress1 = _registerName1("currentProgress"); + ffi.Pointer _objc_msgSend_318( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer data, - int encoding, ) { - return __objc_msgSend_264( + return __objc_msgSend_318( obj, sel, - data, - encoding, ); } - late final __objc_msgSend_264Ptr = _lookup< + late final __objc_msgSend_318Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_264 = __objc_msgSend_264Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithBytes_length_encoding_1 = - _registerName1("initWithBytes:length:encoding:"); - instancetype _objc_msgSend_265( + late final _sel_progressWithTotalUnitCount_1 = + _registerName1("progressWithTotalUnitCount:"); + ffi.Pointer _objc_msgSend_319( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer bytes, - int len, - int encoding, + int unitCount, ) { - return __objc_msgSend_265( + return __objc_msgSend_319( obj, sel, - bytes, - len, - encoding, + unitCount, ); } - late final __objc_msgSend_265Ptr = _lookup< + late final __objc_msgSend_319Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_265 = __objc_msgSend_265Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int64)>>('objc_msgSend'); + late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1 = - _registerName1("initWithBytesNoCopy:length:encoding:freeWhenDone:"); - instancetype _objc_msgSend_266( + late final _sel_discreteProgressWithTotalUnitCount_1 = + _registerName1("discreteProgressWithTotalUnitCount:"); + late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_1 = + _registerName1("progressWithTotalUnitCount:parent:pendingUnitCount:"); + ffi.Pointer _objc_msgSend_320( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer bytes, - int len, - int encoding, - bool freeBuffer, + int unitCount, + ffi.Pointer parent, + int portionOfParentTotalUnitCount, ) { - return __objc_msgSend_266( + return __objc_msgSend_320( obj, sel, - bytes, - len, - encoding, - freeBuffer, + unitCount, + parent, + portionOfParentTotalUnitCount, ); } - late final __objc_msgSend_266Ptr = _lookup< + late final __objc_msgSend_320Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSStringEncoding, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_266 = __objc_msgSend_266Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int, bool)>(); + ffi.Int64, + ffi.Pointer, + ffi.Int64)>>('objc_msgSend'); + late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer, int)>(); - late final _sel_initWithBytesNoCopy_length_encoding_deallocator_1 = - _registerName1("initWithBytesNoCopy:length:encoding:deallocator:"); - instancetype _objc_msgSend_267( + late final _sel_initWithParent_userInfo_1 = + _registerName1("initWithParent:userInfo:"); + instancetype _objc_msgSend_321( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer bytes, - int len, - int encoding, - ffi.Pointer<_ObjCBlock> deallocator, + ffi.Pointer parentProgressOrNil, + ffi.Pointer userInfoOrNil, ) { - return __objc_msgSend_267( + return __objc_msgSend_321( obj, sel, - bytes, - len, - encoding, - deallocator, + parentProgressOrNil, + userInfoOrNil, ); } - late final __objc_msgSend_267Ptr = _lookup< + late final __objc_msgSend_321Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSStringEncoding, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_267 = __objc_msgSend_267Ptr.asFunction< + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_string1 = _registerName1("string"); - late final _sel_stringWithString_1 = _registerName1("stringWithString:"); - late final _sel_stringWithCharacters_length_1 = - _registerName1("stringWithCharacters:length:"); - late final _sel_stringWithUTF8String_1 = - _registerName1("stringWithUTF8String:"); - late final _sel_stringWithFormat_1 = _registerName1("stringWithFormat:"); - late final _sel_localizedStringWithFormat_1 = - _registerName1("localizedStringWithFormat:"); - late final _sel_stringWithValidatedFormat_validFormatSpecifiers_error_1 = - _registerName1("stringWithValidatedFormat:validFormatSpecifiers:error:"); - late final _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1 = - _registerName1( - "localizedStringWithValidatedFormat:validFormatSpecifiers:error:"); - late final _sel_initWithCString_encoding_1 = - _registerName1("initWithCString:encoding:"); - instancetype _objc_msgSend_268( + late final _sel_becomeCurrentWithPendingUnitCount_1 = + _registerName1("becomeCurrentWithPendingUnitCount:"); + void _objc_msgSend_322( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer nullTerminatedCString, - int encoding, + int unitCount, ) { - return __objc_msgSend_268( + return __objc_msgSend_322( obj, sel, - nullTerminatedCString, - encoding, + unitCount, ); } - late final __objc_msgSend_268Ptr = _lookup< + late final __objc_msgSend_322Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_268 = __objc_msgSend_268Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int64)>>('objc_msgSend'); + late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_stringWithCString_encoding_1 = - _registerName1("stringWithCString:encoding:"); - late final _sel_initWithContentsOfURL_encoding_error_1 = - _registerName1("initWithContentsOfURL:encoding:error:"); - instancetype _objc_msgSend_269( + late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_1 = + _registerName1("performAsCurrentWithPendingUnitCount:usingBlock:"); + void _objc_msgSend_323( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - int enc, - ffi.Pointer> error, + int unitCount, + ffi.Pointer<_ObjCBlock> work, ) { - return __objc_msgSend_269( + return __objc_msgSend_323( obj, sel, - url, - enc, - error, + unitCount, + work, ); } - late final __objc_msgSend_269Ptr = _lookup< + late final __objc_msgSend_323Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSStringEncoding, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_269 = __objc_msgSend_269Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int64, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_initWithContentsOfFile_encoding_error_1 = - _registerName1("initWithContentsOfFile:encoding:error:"); - instancetype _objc_msgSend_270( + late final _sel_resignCurrent1 = _registerName1("resignCurrent"); + late final _sel_addChild_withPendingUnitCount_1 = + _registerName1("addChild:withPendingUnitCount:"); + void _objc_msgSend_324( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - int enc, - ffi.Pointer> error, + ffi.Pointer child, + int inUnitCount, ) { - return __objc_msgSend_270( + return __objc_msgSend_324( obj, sel, - path, - enc, - error, + child, + inUnitCount, ); } - late final __objc_msgSend_270Ptr = _lookup< + late final __objc_msgSend_324Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSStringEncoding, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_270 = __objc_msgSend_270Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int64)>>('objc_msgSend'); + late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_stringWithContentsOfURL_encoding_error_1 = - _registerName1("stringWithContentsOfURL:encoding:error:"); - late final _sel_stringWithContentsOfFile_encoding_error_1 = - _registerName1("stringWithContentsOfFile:encoding:error:"); - late final _sel_initWithContentsOfURL_usedEncoding_error_1 = - _registerName1("initWithContentsOfURL:usedEncoding:error:"); - instancetype _objc_msgSend_271( + late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); + int _objc_msgSend_325( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer enc, - ffi.Pointer> error, ) { - return __objc_msgSend_271( + return __objc_msgSend_325( obj, sel, - url, - enc, - error, ); } - late final __objc_msgSend_271Ptr = _lookup< + late final __objc_msgSend_325Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_271 = __objc_msgSend_271Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Int64 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithContentsOfFile_usedEncoding_error_1 = - _registerName1("initWithContentsOfFile:usedEncoding:error:"); - instancetype _objc_msgSend_272( + late final _sel_setTotalUnitCount_1 = _registerName1("setTotalUnitCount:"); + void _objc_msgSend_326( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer enc, - ffi.Pointer> error, + int value, ) { - return __objc_msgSend_272( + return __objc_msgSend_326( obj, sel, - path, - enc, - error, + value, ); } - late final __objc_msgSend_272Ptr = _lookup< + late final __objc_msgSend_326Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_272 = __objc_msgSend_272Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int64)>>('objc_msgSend'); + late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_stringWithContentsOfURL_usedEncoding_error_1 = - _registerName1("stringWithContentsOfURL:usedEncoding:error:"); - late final _sel_stringWithContentsOfFile_usedEncoding_error_1 = - _registerName1("stringWithContentsOfFile:usedEncoding:error:"); - late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1 = - _registerName1( - "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"); - int _objc_msgSend_273( + late final _sel_completedUnitCount1 = _registerName1("completedUnitCount"); + late final _sel_setCompletedUnitCount_1 = + _registerName1("setCompletedUnitCount:"); + late final _sel_setLocalizedDescription_1 = + _registerName1("setLocalizedDescription:"); + void _objc_msgSend_327( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer data, - ffi.Pointer opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion, + ffi.Pointer value, ) { - return __objc_msgSend_273( + return __objc_msgSend_327( obj, sel, - data, - opts, - string, - usedLossyConversion, + value, ); } - late final __objc_msgSend_273Ptr = _lookup< + late final __objc_msgSend_327Ptr = _lookup< ffi.NativeFunction< - NSStringEncoding Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_273 = __objc_msgSend_273Ptr.asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_propertyList1 = _registerName1("propertyList"); - late final _sel_propertyListFromStringsFileFormat1 = - _registerName1("propertyListFromStringsFileFormat"); - late final _sel_cString1 = _registerName1("cString"); - late final _sel_lossyCString1 = _registerName1("lossyCString"); - late final _sel_cStringLength1 = _registerName1("cStringLength"); - late final _sel_getCString_1 = _registerName1("getCString:"); - void _objc_msgSend_274( + late final _sel_localizedAdditionalDescription1 = + _registerName1("localizedAdditionalDescription"); + late final _sel_setLocalizedAdditionalDescription_1 = + _registerName1("setLocalizedAdditionalDescription:"); + late final _sel_isCancellable1 = _registerName1("isCancellable"); + late final _sel_setCancellable_1 = _registerName1("setCancellable:"); + void _objc_msgSend_328( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer bytes, + bool value, ) { - return __objc_msgSend_274( + return __objc_msgSend_328( obj, sel, - bytes, + value, ); } - late final __objc_msgSend_274Ptr = _lookup< + late final __objc_msgSend_328Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_274 = __objc_msgSend_274Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, bool)>(); - late final _sel_getCString_maxLength_1 = - _registerName1("getCString:maxLength:"); - void _objc_msgSend_275( + late final _sel_isPausable1 = _registerName1("isPausable"); + late final _sel_setPausable_1 = _registerName1("setPausable:"); + late final _sel_isCancelled1 = _registerName1("isCancelled"); + late final _sel_isPaused1 = _registerName1("isPaused"); + late final _sel_cancellationHandler1 = _registerName1("cancellationHandler"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_329( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer bytes, - int maxLength, ) { - return __objc_msgSend_275( + return __objc_msgSend_329( obj, sel, - bytes, - maxLength, ); } - late final __objc_msgSend_275Ptr = _lookup< + late final __objc_msgSend_329Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_275 = __objc_msgSend_275Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_getCString_maxLength_range_remainingRange_1 = - _registerName1("getCString:maxLength:range:remainingRange:"); - void _objc_msgSend_276( + late final _sel_setCancellationHandler_1 = + _registerName1("setCancellationHandler:"); + void _objc_msgSend_330( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer bytes, - int maxLength, - NSRange aRange, - NSRangePointer leftoverRange, + ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_276( + return __objc_msgSend_330( obj, sel, - bytes, - maxLength, - aRange, - leftoverRange, + value, ); } - late final __objc_msgSend_276Ptr = _lookup< + late final __objc_msgSend_330Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSRange, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_276 = __objc_msgSend_276Ptr.asFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange, NSRangePointer)>(); + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_stringWithContentsOfFile_1 = - _registerName1("stringWithContentsOfFile:"); - late final _sel_stringWithContentsOfURL_1 = - _registerName1("stringWithContentsOfURL:"); - late final _sel_initWithCStringNoCopy_length_freeWhenDone_1 = - _registerName1("initWithCStringNoCopy:length:freeWhenDone:"); - ffi.Pointer _objc_msgSend_277( + late final _sel_pausingHandler1 = _registerName1("pausingHandler"); + late final _sel_setPausingHandler_1 = _registerName1("setPausingHandler:"); + late final _sel_resumingHandler1 = _registerName1("resumingHandler"); + late final _sel_setResumingHandler_1 = _registerName1("setResumingHandler:"); + late final _sel_setUserInfoObject_forKey_1 = + _registerName1("setUserInfoObject:forKey:"); + late final _sel_isIndeterminate1 = _registerName1("isIndeterminate"); + late final _sel_fractionCompleted1 = _registerName1("fractionCompleted"); + late final _sel_isFinished1 = _registerName1("isFinished"); + late final _sel_cancel1 = _registerName1("cancel"); + late final _sel_pause1 = _registerName1("pause"); + late final _sel_resume1 = _registerName1("resume"); + late final _sel_kind1 = _registerName1("kind"); + late final _sel_setKind_1 = _registerName1("setKind:"); + late final _sel_estimatedTimeRemaining1 = + _registerName1("estimatedTimeRemaining"); + late final _sel_setEstimatedTimeRemaining_1 = + _registerName1("setEstimatedTimeRemaining:"); + void _objc_msgSend_331( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer bytes, - int length, - bool freeBuffer, + ffi.Pointer value, ) { - return __objc_msgSend_277( + return __objc_msgSend_331( obj, sel, - bytes, - length, - freeBuffer, + value, ); } - late final __objc_msgSend_277Ptr = _lookup< + late final __objc_msgSend_331Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_277 = __objc_msgSend_277Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, bool)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_initWithCString_length_1 = - _registerName1("initWithCString:length:"); - late final _sel_initWithCString_1 = _registerName1("initWithCString:"); - late final _sel_stringWithCString_length_1 = - _registerName1("stringWithCString:length:"); - late final _sel_stringWithCString_1 = _registerName1("stringWithCString:"); - late final _sel_getCharacters_1 = _registerName1("getCharacters:"); - void _objc_msgSend_278( + late final _sel_throughput1 = _registerName1("throughput"); + late final _sel_setThroughput_1 = _registerName1("setThroughput:"); + late final _sel_fileOperationKind1 = _registerName1("fileOperationKind"); + late final _sel_setFileOperationKind_1 = + _registerName1("setFileOperationKind:"); + late final _sel_fileURL1 = _registerName1("fileURL"); + late final _sel_setFileURL_1 = _registerName1("setFileURL:"); + void _objc_msgSend_332( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer buffer, + ffi.Pointer value, ) { - return __objc_msgSend_278( + return __objc_msgSend_332( obj, sel, - buffer, + value, ); } - late final __objc_msgSend_278Ptr = _lookup< + late final __objc_msgSend_332Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_278 = __objc_msgSend_278Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); - late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_1 = - _registerName1("stringByAddingPercentEncodingWithAllowedCharacters:"); - late final _sel_stringByRemovingPercentEncoding1 = - _registerName1("stringByRemovingPercentEncoding"); - late final _sel_stringByAddingPercentEscapesUsingEncoding_1 = - _registerName1("stringByAddingPercentEscapesUsingEncoding:"); - late final _sel_stringByReplacingPercentEscapesUsingEncoding_1 = - _registerName1("stringByReplacingPercentEscapesUsingEncoding:"); - late final _sel_debugDescription1 = _registerName1("debugDescription"); - late final _sel_version1 = _registerName1("version"); - late final _sel_setVersion_1 = _registerName1("setVersion:"); - void _objc_msgSend_279( - ffi.Pointer obj, - ffi.Pointer sel, - int aVersion, - ) { - return __objc_msgSend_279( - obj, - sel, - aVersion, - ); - } - - late final __objc_msgSend_279Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_279 = __objc_msgSend_279Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_classForCoder1 = _registerName1("classForCoder"); - late final _sel_replacementObjectForCoder_1 = - _registerName1("replacementObjectForCoder:"); - late final _sel_awakeAfterUsingCoder_1 = - _registerName1("awakeAfterUsingCoder:"); - late final _sel_poseAsClass_1 = _registerName1("poseAsClass:"); - late final _sel_autoContentAccessingProxy1 = - _registerName1("autoContentAccessingProxy"); - late final _sel_URL_resourceDataDidBecomeAvailable_1 = - _registerName1("URL:resourceDataDidBecomeAvailable:"); - void _objc_msgSend_280( + late final _sel_fileTotalCount1 = _registerName1("fileTotalCount"); + late final _sel_setFileTotalCount_1 = _registerName1("setFileTotalCount:"); + late final _sel_fileCompletedCount1 = _registerName1("fileCompletedCount"); + late final _sel_setFileCompletedCount_1 = + _registerName1("setFileCompletedCount:"); + late final _sel_publish1 = _registerName1("publish"); + late final _sel_unpublish1 = _registerName1("unpublish"); + late final _sel_addSubscriberForFileURL_withPublishingHandler_1 = + _registerName1("addSubscriberForFileURL:withPublishingHandler:"); + ffi.Pointer _objc_msgSend_333( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer sender, - ffi.Pointer newBytes, + ffi.Pointer url, + NSProgressPublishingHandler publishingHandler, ) { - return __objc_msgSend_280( + return __objc_msgSend_333( obj, sel, - sender, - newBytes, + url, + publishingHandler, ); } - late final __objc_msgSend_280Ptr = _lookup< + late final __objc_msgSend_333Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_280 = __objc_msgSend_280Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + NSProgressPublishingHandler)>>('objc_msgSend'); + late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSProgressPublishingHandler)>(); - late final _sel_URLResourceDidFinishLoading_1 = - _registerName1("URLResourceDidFinishLoading:"); - void _objc_msgSend_281( + late final _sel_removeSubscriber_1 = _registerName1("removeSubscriber:"); + late final _sel_isOld1 = _registerName1("isOld"); + late final _sel_progress1 = _registerName1("progress"); + late final _class_NSOperation1 = _getClass1("NSOperation"); + late final _sel_start1 = _registerName1("start"); + late final _sel_main1 = _registerName1("main"); + late final _sel_isExecuting1 = _registerName1("isExecuting"); + late final _sel_isConcurrent1 = _registerName1("isConcurrent"); + late final _sel_isAsynchronous1 = _registerName1("isAsynchronous"); + late final _sel_isReady1 = _registerName1("isReady"); + late final _sel_addDependency_1 = _registerName1("addDependency:"); + void _objc_msgSend_334( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer sender, + ffi.Pointer op, ) { - return __objc_msgSend_281( + return __objc_msgSend_334( obj, sel, - sender, + op, ); } - late final __objc_msgSend_281Ptr = _lookup< + late final __objc_msgSend_334Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_281 = __objc_msgSend_281Ptr.asFunction< + late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_URLResourceDidCancelLoading_1 = - _registerName1("URLResourceDidCancelLoading:"); - late final _sel_URL_resourceDidFailLoadingWithReason_1 = - _registerName1("URL:resourceDidFailLoadingWithReason:"); - void _objc_msgSend_282( + late final _sel_removeDependency_1 = _registerName1("removeDependency:"); + late final _sel_dependencies1 = _registerName1("dependencies"); + late final _sel_queuePriority1 = _registerName1("queuePriority"); + int _objc_msgSend_335( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer sender, - ffi.Pointer reason, ) { - return __objc_msgSend_282( + return __objc_msgSend_335( obj, sel, - sender, - reason, ); } - late final __objc_msgSend_282Ptr = _lookup< + late final __objc_msgSend_335Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_282 = __objc_msgSend_282Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1 = - _registerName1( - "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:"); - void _objc_msgSend_283( + late final _sel_setQueuePriority_1 = _registerName1("setQueuePriority:"); + void _objc_msgSend_336( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer error, - int recoveryOptionIndex, - ffi.Pointer delegate, - ffi.Pointer didRecoverSelector, - ffi.Pointer contextInfo, + int value, ) { - return __objc_msgSend_283( + return __objc_msgSend_336( obj, sel, - error, - recoveryOptionIndex, - delegate, - didRecoverSelector, - contextInfo, + value, ); } - late final __objc_msgSend_283Ptr = _lookup< + late final __objc_msgSend_336Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_attemptRecoveryFromError_optionIndex_1 = - _registerName1("attemptRecoveryFromError:optionIndex:"); - bool _objc_msgSend_284( + late final _sel_completionBlock1 = _registerName1("completionBlock"); + late final _sel_setCompletionBlock_1 = _registerName1("setCompletionBlock:"); + late final _sel_waitUntilFinished1 = _registerName1("waitUntilFinished"); + late final _sel_threadPriority1 = _registerName1("threadPriority"); + late final _sel_setThreadPriority_1 = _registerName1("setThreadPriority:"); + void _objc_msgSend_337( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer error, - int recoveryOptionIndex, + double value, ) { - return __objc_msgSend_284( + return __objc_msgSend_337( obj, sel, - error, - recoveryOptionIndex, + value, ); } - late final __objc_msgSend_284Ptr = _lookup< + late final __objc_msgSend_337Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final ffi.Pointer _NSFoundationVersionNumber = - _lookup('NSFoundationVersionNumber'); - - double get NSFoundationVersionNumber => _NSFoundationVersionNumber.value; - - set NSFoundationVersionNumber(double value) => - _NSFoundationVersionNumber.value = value; + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, double)>(); - ffi.Pointer NSStringFromSelector( - ffi.Pointer aSelector, + late final _sel_qualityOfService1 = _registerName1("qualityOfService"); + int _objc_msgSend_338( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _NSStringFromSelector( - aSelector, + return __objc_msgSend_338( + obj, + sel, ); } - late final _NSStringFromSelectorPtr = _lookup< + late final __objc_msgSend_338Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSStringFromSelector'); - late final _NSStringFromSelector = _NSStringFromSelectorPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer NSSelectorFromString( - ffi.Pointer aSelectorName, + late final _sel_setQualityOfService_1 = + _registerName1("setQualityOfService:"); + void _objc_msgSend_339( + ffi.Pointer obj, + ffi.Pointer sel, + int value, ) { - return _NSSelectorFromString( - aSelectorName, + return __objc_msgSend_339( + obj, + sel, + value, ); } - late final _NSSelectorFromStringPtr = _lookup< + late final __objc_msgSend_339Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSSelectorFromString'); - late final _NSSelectorFromString = _NSSelectorFromStringPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - ffi.Pointer NSStringFromClass( - ffi.Pointer aClass, + late final _sel_setName_1 = _registerName1("setName:"); + late final _sel_addOperation_1 = _registerName1("addOperation:"); + late final _sel_addOperations_waitUntilFinished_1 = + _registerName1("addOperations:waitUntilFinished:"); + void _objc_msgSend_340( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer ops, + bool wait, ) { - return _NSStringFromClass( - aClass, + return __objc_msgSend_340( + obj, + sel, + ops, + wait, ); } - late final _NSStringFromClassPtr = _lookup< + late final __objc_msgSend_340Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSStringFromClass'); - late final _NSStringFromClass = _NSStringFromClassPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); - ffi.Pointer NSClassFromString( - ffi.Pointer aClassName, + late final _sel_addOperationWithBlock_1 = + _registerName1("addOperationWithBlock:"); + void _objc_msgSend_341( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, ) { - return _NSClassFromString( - aClassName, + return __objc_msgSend_341( + obj, + sel, + block, ); } - late final _NSClassFromStringPtr = _lookup< + late final __objc_msgSend_341Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSClassFromString'); - late final _NSClassFromString = _NSClassFromStringPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - ffi.Pointer NSStringFromProtocol( - ffi.Pointer proto, + late final _sel_addBarrierBlock_1 = _registerName1("addBarrierBlock:"); + late final _sel_maxConcurrentOperationCount1 = + _registerName1("maxConcurrentOperationCount"); + late final _sel_setMaxConcurrentOperationCount_1 = + _registerName1("setMaxConcurrentOperationCount:"); + void _objc_msgSend_342( + ffi.Pointer obj, + ffi.Pointer sel, + int value, ) { - return _NSStringFromProtocol( - proto, + return __objc_msgSend_342( + obj, + sel, + value, ); } - late final _NSStringFromProtocolPtr = _lookup< + late final __objc_msgSend_342Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSStringFromProtocol'); - late final _NSStringFromProtocol = _NSStringFromProtocolPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + NSInteger)>>('objc_msgSend'); + late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - ffi.Pointer NSProtocolFromString( - ffi.Pointer namestr, + late final _sel_isSuspended1 = _registerName1("isSuspended"); + late final _sel_setSuspended_1 = _registerName1("setSuspended:"); + late final _sel_underlyingQueue1 = _registerName1("underlyingQueue"); + dispatch_queue_t _objc_msgSend_343( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _NSProtocolFromString( - namestr, + return __objc_msgSend_343( + obj, + sel, ); } - late final _NSProtocolFromStringPtr = _lookup< + late final __objc_msgSend_343Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSProtocolFromString'); - late final _NSProtocolFromString = _NSProtocolFromStringPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + dispatch_queue_t Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< + dispatch_queue_t Function( + ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer NSGetSizeAndAlignment( - ffi.Pointer typePtr, - ffi.Pointer sizep, - ffi.Pointer alignp, + late final _sel_setUnderlyingQueue_1 = _registerName1("setUnderlyingQueue:"); + void _objc_msgSend_344( + ffi.Pointer obj, + ffi.Pointer sel, + dispatch_queue_t value, ) { - return _NSGetSizeAndAlignment( - typePtr, - sizep, - alignp, + return __objc_msgSend_344( + obj, + sel, + value, ); } - late final _NSGetSizeAndAlignmentPtr = _lookup< + late final __objc_msgSend_344Ptr = _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.Void Function(ffi.Pointer, ffi.Pointer, + dispatch_queue_t)>>('objc_msgSend'); + late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< + void Function( + ffi.Pointer, ffi.Pointer, dispatch_queue_t)>(); - void NSLog( - ffi.Pointer format, + late final _sel_cancelAllOperations1 = _registerName1("cancelAllOperations"); + late final _sel_waitUntilAllOperationsAreFinished1 = + _registerName1("waitUntilAllOperationsAreFinished"); + late final _sel_currentQueue1 = _registerName1("currentQueue"); + ffi.Pointer _objc_msgSend_345( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _NSLog( - format, + return __objc_msgSend_345( + obj, + sel, ); } - late final _NSLogPtr = - _lookup)>>( - 'NSLog'); - late final _NSLog = - _NSLogPtr.asFunction)>(); + late final __objc_msgSend_345Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - void NSLogv( - ffi.Pointer format, - va_list args, + late final _sel_mainQueue1 = _registerName1("mainQueue"); + late final _sel_operations1 = _registerName1("operations"); + late final _sel_operationCount1 = _registerName1("operationCount"); + late final _sel_addObserverForName_object_queue_usingBlock_1 = + _registerName1("addObserverForName:object:queue:usingBlock:"); + ffi.Pointer _objc_msgSend_346( + ffi.Pointer obj, + ffi.Pointer sel, + NSNotificationName name, + ffi.Pointer obj1, + ffi.Pointer queue, + ffi.Pointer<_ObjCBlock> block, ) { - return _NSLogv( - format, - args, + return __objc_msgSend_346( + obj, + sel, + name, + obj1, + queue, + block, ); } - late final _NSLogvPtr = _lookup< + late final __objc_msgSend_346Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, va_list)>>('NSLogv'); - late final _NSLogv = - _NSLogvPtr.asFunction, va_list)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSNotificationName, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSNotificationName, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final ffi.Pointer _NSNotFound = - _lookup('NSNotFound'); + late final ffi.Pointer + _NSSystemClockDidChangeNotification = + _lookup('NSSystemClockDidChangeNotification'); - int get NSNotFound => _NSNotFound.value; + NSNotificationName get NSSystemClockDidChangeNotification => + _NSSystemClockDidChangeNotification.value; - set NSNotFound(int value) => _NSNotFound.value = value; + set NSSystemClockDidChangeNotification(NSNotificationName value) => + _NSSystemClockDidChangeNotification.value = value; - ffi.Pointer _Block_copy1( - ffi.Pointer aBlock, + late final _class_NSDate1 = _getClass1("NSDate"); + late final _sel_timeIntervalSinceReferenceDate1 = + _registerName1("timeIntervalSinceReferenceDate"); + late final _sel_initWithTimeIntervalSinceReferenceDate_1 = + _registerName1("initWithTimeIntervalSinceReferenceDate:"); + instancetype _objc_msgSend_347( + ffi.Pointer obj, + ffi.Pointer sel, + double ti, ) { - return __Block_copy1( - aBlock, + return __objc_msgSend_347( + obj, + sel, + ti, ); } - late final __Block_copy1Ptr = _lookup< + late final __objc_msgSend_347Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('_Block_copy'); - late final __Block_copy1 = __Block_copy1Ptr - .asFunction Function(ffi.Pointer)>(); - - void _Block_release1( - ffi.Pointer aBlock, - ) { - return __Block_release1( - aBlock, - ); - } - - late final __Block_release1Ptr = - _lookup)>>( - '_Block_release'); - late final __Block_release1 = - __Block_release1Ptr.asFunction)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + NSTimeInterval)>>('objc_msgSend'); + late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, double)>(); - void _Block_object_assign( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, + late final _sel_timeIntervalSinceDate_1 = + _registerName1("timeIntervalSinceDate:"); + double _objc_msgSend_348( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anotherDate, ) { - return __Block_object_assign( - arg0, - arg1, - arg2, + return __objc_msgSend_348( + obj, + sel, + anotherDate, ); } - late final __Block_object_assignPtr = _lookup< + late final __objc_msgSend_348Ptr = _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)>(); + NSTimeInterval Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< + double Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void _Block_object_dispose( - ffi.Pointer arg0, - int arg1, + late final _sel_timeIntervalSinceNow1 = + _registerName1("timeIntervalSinceNow"); + late final _sel_timeIntervalSince19701 = + _registerName1("timeIntervalSince1970"); + late final _sel_addTimeInterval_1 = _registerName1("addTimeInterval:"); + late final _sel_dateByAddingTimeInterval_1 = + _registerName1("dateByAddingTimeInterval:"); + late final _sel_earlierDate_1 = _registerName1("earlierDate:"); + ffi.Pointer _objc_msgSend_349( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anotherDate, ) { - return __Block_object_dispose( - arg0, - arg1, + return __objc_msgSend_349( + obj, + sel, + anotherDate, ); } - late final __Block_object_disposePtr = _lookup< + late final __objc_msgSend_349Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Int)>>('_Block_object_dispose'); - late final __Block_object_dispose = __Block_object_disposePtr - .asFunction, int)>(); - - late final ffi.Pointer>> - __NSConcreteGlobalBlock = - _lookup>>('_NSConcreteGlobalBlock'); - - ffi.Pointer> get _NSConcreteGlobalBlock => - __NSConcreteGlobalBlock.value; - - set _NSConcreteGlobalBlock(ffi.Pointer> value) => - __NSConcreteGlobalBlock.value = value; - - late final ffi.Pointer>> - __NSConcreteStackBlock = - _lookup>>('_NSConcreteStackBlock'); - - ffi.Pointer> get _NSConcreteStackBlock => - __NSConcreteStackBlock.value; - - set _NSConcreteStackBlock(ffi.Pointer> value) => - __NSConcreteStackBlock.value = value; - - void Debugger() { - return _Debugger(); - } - - late final _DebuggerPtr = - _lookup>('Debugger'); - late final _Debugger = _DebuggerPtr.asFunction(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void DebugStr( - ConstStr255Param debuggerMsg, + late final _sel_laterDate_1 = _registerName1("laterDate:"); + int _objc_msgSend_350( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, ) { - return _DebugStr( - debuggerMsg, + return __objc_msgSend_350( + obj, + sel, + other, ); } - late final _DebugStrPtr = - _lookup>( - 'DebugStr'); - late final _DebugStr = - _DebugStrPtr.asFunction(); - - void SysBreak() { - return _SysBreak(); - } - - late final _SysBreakPtr = - _lookup>('SysBreak'); - late final _SysBreak = _SysBreakPtr.asFunction(); + late final __objc_msgSend_350Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void SysBreakStr( - ConstStr255Param debuggerMsg, + late final _sel_isEqualToDate_1 = _registerName1("isEqualToDate:"); + bool _objc_msgSend_351( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherDate, ) { - return _SysBreakStr( - debuggerMsg, + return __objc_msgSend_351( + obj, + sel, + otherDate, ); } - late final _SysBreakStrPtr = - _lookup>( - 'SysBreakStr'); - late final _SysBreakStr = - _SysBreakStrPtr.asFunction(); + late final __objc_msgSend_351Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void SysBreakFunc( - ConstStr255Param debuggerMsg, + late final _sel_date1 = _registerName1("date"); + late final _sel_dateWithTimeIntervalSinceNow_1 = + _registerName1("dateWithTimeIntervalSinceNow:"); + late final _sel_dateWithTimeIntervalSinceReferenceDate_1 = + _registerName1("dateWithTimeIntervalSinceReferenceDate:"); + late final _sel_dateWithTimeIntervalSince1970_1 = + _registerName1("dateWithTimeIntervalSince1970:"); + late final _sel_dateWithTimeInterval_sinceDate_1 = + _registerName1("dateWithTimeInterval:sinceDate:"); + instancetype _objc_msgSend_352( + ffi.Pointer obj, + ffi.Pointer sel, + double secsToBeAdded, + ffi.Pointer date, ) { - return _SysBreakFunc( - debuggerMsg, + return __objc_msgSend_352( + obj, + sel, + secsToBeAdded, + date, ); } - late final _SysBreakFuncPtr = - _lookup>( - 'SysBreakFunc'); - late final _SysBreakFunc = - _SysBreakFuncPtr.asFunction(); - - late final ffi.Pointer _kCFCoreFoundationVersionNumber = - _lookup('kCFCoreFoundationVersionNumber'); - - double get kCFCoreFoundationVersionNumber => - _kCFCoreFoundationVersionNumber.value; - - set kCFCoreFoundationVersionNumber(double value) => - _kCFCoreFoundationVersionNumber.value = value; - - late final ffi.Pointer _kCFNotFound = - _lookup('kCFNotFound'); - - int get kCFNotFound => _kCFNotFound.value; - - set kCFNotFound(int value) => _kCFNotFound.value = value; + late final __objc_msgSend_352Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + NSTimeInterval, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + double, ffi.Pointer)>(); - CFRange __CFRangeMake( - int loc, - int len, + late final _sel_distantFuture1 = _registerName1("distantFuture"); + ffi.Pointer _objc_msgSend_353( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return ___CFRangeMake( - loc, - len, + return __objc_msgSend_353( + obj, + sel, ); } - late final ___CFRangeMakePtr = - _lookup>( - '__CFRangeMake'); - late final ___CFRangeMake = - ___CFRangeMakePtr.asFunction(); - - int CFNullGetTypeID() { - return _CFNullGetTypeID(); - } - - late final _CFNullGetTypeIDPtr = - _lookup>('CFNullGetTypeID'); - late final _CFNullGetTypeID = - _CFNullGetTypeIDPtr.asFunction(); - - late final ffi.Pointer _kCFNull = _lookup('kCFNull'); - - CFNullRef get kCFNull => _kCFNull.value; - - set kCFNull(CFNullRef value) => _kCFNull.value = value; - - late final ffi.Pointer _kCFAllocatorDefault = - _lookup('kCFAllocatorDefault'); - - CFAllocatorRef get kCFAllocatorDefault => _kCFAllocatorDefault.value; - - set kCFAllocatorDefault(CFAllocatorRef value) => - _kCFAllocatorDefault.value = value; - - late final ffi.Pointer _kCFAllocatorSystemDefault = - _lookup('kCFAllocatorSystemDefault'); - - CFAllocatorRef get kCFAllocatorSystemDefault => - _kCFAllocatorSystemDefault.value; - - set kCFAllocatorSystemDefault(CFAllocatorRef value) => - _kCFAllocatorSystemDefault.value = value; - - late final ffi.Pointer _kCFAllocatorMalloc = - _lookup('kCFAllocatorMalloc'); - - CFAllocatorRef get kCFAllocatorMalloc => _kCFAllocatorMalloc.value; - - set kCFAllocatorMalloc(CFAllocatorRef value) => - _kCFAllocatorMalloc.value = value; - - late final ffi.Pointer _kCFAllocatorMallocZone = - _lookup('kCFAllocatorMallocZone'); - - CFAllocatorRef get kCFAllocatorMallocZone => _kCFAllocatorMallocZone.value; - - set kCFAllocatorMallocZone(CFAllocatorRef value) => - _kCFAllocatorMallocZone.value = value; - - late final ffi.Pointer _kCFAllocatorNull = - _lookup('kCFAllocatorNull'); - - CFAllocatorRef get kCFAllocatorNull => _kCFAllocatorNull.value; - - set kCFAllocatorNull(CFAllocatorRef value) => _kCFAllocatorNull.value = value; - - late final ffi.Pointer _kCFAllocatorUseContext = - _lookup('kCFAllocatorUseContext'); - - CFAllocatorRef get kCFAllocatorUseContext => _kCFAllocatorUseContext.value; - - set kCFAllocatorUseContext(CFAllocatorRef value) => - _kCFAllocatorUseContext.value = value; - - int CFAllocatorGetTypeID() { - return _CFAllocatorGetTypeID(); - } - - late final _CFAllocatorGetTypeIDPtr = - _lookup>('CFAllocatorGetTypeID'); - late final _CFAllocatorGetTypeID = - _CFAllocatorGetTypeIDPtr.asFunction(); + late final __objc_msgSend_353Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - void CFAllocatorSetDefault( - CFAllocatorRef allocator, + late final _sel_distantPast1 = _registerName1("distantPast"); + late final _sel_now1 = _registerName1("now"); + late final _sel_initWithTimeIntervalSinceNow_1 = + _registerName1("initWithTimeIntervalSinceNow:"); + late final _sel_initWithTimeIntervalSince1970_1 = + _registerName1("initWithTimeIntervalSince1970:"); + late final _sel_initWithTimeInterval_sinceDate_1 = + _registerName1("initWithTimeInterval:sinceDate:"); + late final _class_NSURLRequest1 = _getClass1("NSURLRequest"); + late final _sel_requestWithURL_1 = _registerName1("requestWithURL:"); + late final _sel_supportsSecureCoding1 = + _registerName1("supportsSecureCoding"); + late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = + _registerName1("requestWithURL:cachePolicy:timeoutInterval:"); + instancetype _objc_msgSend_354( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URL, + int cachePolicy, + double timeoutInterval, ) { - return _CFAllocatorSetDefault( - allocator, + return __objc_msgSend_354( + obj, + sel, + URL, + cachePolicy, + timeoutInterval, ); } - late final _CFAllocatorSetDefaultPtr = - _lookup>( - 'CFAllocatorSetDefault'); - late final _CFAllocatorSetDefault = - _CFAllocatorSetDefaultPtr.asFunction(); - - CFAllocatorRef CFAllocatorGetDefault() { - return _CFAllocatorGetDefault(); - } - - late final _CFAllocatorGetDefaultPtr = - _lookup>( - 'CFAllocatorGetDefault'); - late final _CFAllocatorGetDefault = - _CFAllocatorGetDefaultPtr.asFunction(); + late final __objc_msgSend_354Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + NSTimeInterval)>>('objc_msgSend'); + late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, double)>(); - CFAllocatorRef CFAllocatorCreate( - CFAllocatorRef allocator, - ffi.Pointer context, + late final _sel_initWithURL_1 = _registerName1("initWithURL:"); + late final _sel_initWithURL_cachePolicy_timeoutInterval_1 = + _registerName1("initWithURL:cachePolicy:timeoutInterval:"); + late final _sel_URL1 = _registerName1("URL"); + late final _sel_cachePolicy1 = _registerName1("cachePolicy"); + int _objc_msgSend_355( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _CFAllocatorCreate( - allocator, - context, + return __objc_msgSend_355( + obj, + sel, ); } - late final _CFAllocatorCreatePtr = _lookup< + late final __objc_msgSend_355Ptr = _lookup< ffi.NativeFunction< - CFAllocatorRef Function(CFAllocatorRef, - ffi.Pointer)>>('CFAllocatorCreate'); - late final _CFAllocatorCreate = _CFAllocatorCreatePtr.asFunction< - CFAllocatorRef Function( - CFAllocatorRef, ffi.Pointer)>(); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer CFAllocatorAllocate( - CFAllocatorRef allocator, - int size, - int hint, + late final _sel_timeoutInterval1 = _registerName1("timeoutInterval"); + late final _sel_mainDocumentURL1 = _registerName1("mainDocumentURL"); + late final _sel_networkServiceType1 = _registerName1("networkServiceType"); + int _objc_msgSend_356( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _CFAllocatorAllocate( - allocator, - size, - hint, + return __objc_msgSend_356( + obj, + sel, ); } - late final _CFAllocatorAllocatePtr = _lookup< + late final __objc_msgSend_356Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef, CFIndex, CFOptionFlags)>>('CFAllocatorAllocate'); - late final _CFAllocatorAllocate = _CFAllocatorAllocatePtr.asFunction< - ffi.Pointer Function(CFAllocatorRef, int, int)>(); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer CFAllocatorReallocate( - CFAllocatorRef allocator, - ffi.Pointer ptr, - int newsize, - int hint, + late final _sel_allowsCellularAccess1 = + _registerName1("allowsCellularAccess"); + late final _sel_allowsExpensiveNetworkAccess1 = + _registerName1("allowsExpensiveNetworkAccess"); + late final _sel_allowsConstrainedNetworkAccess1 = + _registerName1("allowsConstrainedNetworkAccess"); + late final _sel_assumesHTTP3Capable1 = _registerName1("assumesHTTP3Capable"); + late final _sel_HTTPMethod1 = _registerName1("HTTPMethod"); + late final _sel_allHTTPHeaderFields1 = _registerName1("allHTTPHeaderFields"); + late final _sel_valueForHTTPHeaderField_1 = + _registerName1("valueForHTTPHeaderField:"); + late final _sel_HTTPBody1 = _registerName1("HTTPBody"); + late final _class_NSInputStream1 = _getClass1("NSInputStream"); + late final _sel_HTTPBodyStream1 = _registerName1("HTTPBodyStream"); + ffi.Pointer _objc_msgSend_357( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _CFAllocatorReallocate( - allocator, - ptr, - newsize, - hint, + return __objc_msgSend_357( + obj, + sel, ); } - late final _CFAllocatorReallocatePtr = _lookup< + late final __objc_msgSend_357Ptr = _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)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - void CFAllocatorDeallocate( - CFAllocatorRef allocator, - ffi.Pointer ptr, + late final _sel_HTTPShouldHandleCookies1 = + _registerName1("HTTPShouldHandleCookies"); + late final _sel_HTTPShouldUsePipelining1 = + _registerName1("HTTPShouldUsePipelining"); + late final _class_NSMutableURLRequest1 = _getClass1("NSMutableURLRequest"); + late final _sel_setURL_1 = _registerName1("setURL:"); + late final _sel_setCachePolicy_1 = _registerName1("setCachePolicy:"); + void _objc_msgSend_358( + ffi.Pointer obj, + ffi.Pointer sel, + int value, ) { - return _CFAllocatorDeallocate( - allocator, - ptr, + return __objc_msgSend_358( + obj, + sel, + value, ); } - late final _CFAllocatorDeallocatePtr = _lookup< + late final __objc_msgSend_358Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - CFAllocatorRef, ffi.Pointer)>>('CFAllocatorDeallocate'); - late final _CFAllocatorDeallocate = _CFAllocatorDeallocatePtr.asFunction< - void Function(CFAllocatorRef, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - int CFAllocatorGetPreferredSizeForSize( - CFAllocatorRef allocator, - int size, - int hint, + late final _sel_setTimeoutInterval_1 = _registerName1("setTimeoutInterval:"); + late final _sel_setMainDocumentURL_1 = _registerName1("setMainDocumentURL:"); + late final _sel_setNetworkServiceType_1 = + _registerName1("setNetworkServiceType:"); + void _objc_msgSend_359( + ffi.Pointer obj, + ffi.Pointer sel, + int value, ) { - return _CFAllocatorGetPreferredSizeForSize( - allocator, - size, - hint, + return __objc_msgSend_359( + obj, + sel, + value, ); } - late final _CFAllocatorGetPreferredSizeForSizePtr = _lookup< + late final __objc_msgSend_359Ptr = _lookup< ffi.NativeFunction< - CFIndex Function(CFAllocatorRef, CFIndex, - CFOptionFlags)>>('CFAllocatorGetPreferredSizeForSize'); - late final _CFAllocatorGetPreferredSizeForSize = - _CFAllocatorGetPreferredSizeForSizePtr.asFunction< - int Function(CFAllocatorRef, int, int)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - void CFAllocatorGetContext( - CFAllocatorRef allocator, - ffi.Pointer context, + late final _sel_setAllowsCellularAccess_1 = + _registerName1("setAllowsCellularAccess:"); + late final _sel_setAllowsExpensiveNetworkAccess_1 = + _registerName1("setAllowsExpensiveNetworkAccess:"); + late final _sel_setAllowsConstrainedNetworkAccess_1 = + _registerName1("setAllowsConstrainedNetworkAccess:"); + late final _sel_setAssumesHTTP3Capable_1 = + _registerName1("setAssumesHTTP3Capable:"); + late final _sel_setHTTPMethod_1 = _registerName1("setHTTPMethod:"); + late final _sel_setAllHTTPHeaderFields_1 = + _registerName1("setAllHTTPHeaderFields:"); + void _objc_msgSend_360( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, ) { - return _CFAllocatorGetContext( - allocator, - context, + return __objc_msgSend_360( + obj, + sel, + value, ); } - late final _CFAllocatorGetContextPtr = _lookup< + late final __objc_msgSend_360Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(CFAllocatorRef, - ffi.Pointer)>>('CFAllocatorGetContext'); - late final _CFAllocatorGetContext = _CFAllocatorGetContextPtr.asFunction< - void Function(CFAllocatorRef, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - int CFGetTypeID( - CFTypeRef cf, - ) { - return _CFGetTypeID( - cf, - ); - } - - late final _CFGetTypeIDPtr = - _lookup>('CFGetTypeID'); - late final _CFGetTypeID = - _CFGetTypeIDPtr.asFunction(); - - CFStringRef CFCopyTypeIDDescription( - int type_id, - ) { - return _CFCopyTypeIDDescription( - type_id, - ); - } - - late final _CFCopyTypeIDDescriptionPtr = - _lookup>( - 'CFCopyTypeIDDescription'); - late final _CFCopyTypeIDDescription = - _CFCopyTypeIDDescriptionPtr.asFunction(); - - CFTypeRef CFRetain( - CFTypeRef cf, + late final _sel_setValue_forHTTPHeaderField_1 = + _registerName1("setValue:forHTTPHeaderField:"); + void _objc_msgSend_361( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer field, ) { - return _CFRetain( - cf, + return __objc_msgSend_361( + obj, + sel, + value, + field, ); } - late final _CFRetainPtr = - _lookup>('CFRetain'); - late final _CFRetain = - _CFRetainPtr.asFunction(); + late final __objc_msgSend_361Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void CFRelease( - CFTypeRef cf, + late final _sel_addValue_forHTTPHeaderField_1 = + _registerName1("addValue:forHTTPHeaderField:"); + late final _sel_setHTTPBody_1 = _registerName1("setHTTPBody:"); + void _objc_msgSend_362( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, ) { - return _CFRelease( - cf, + return __objc_msgSend_362( + obj, + sel, + value, ); } - late final _CFReleasePtr = - _lookup>('CFRelease'); - late final _CFRelease = _CFReleasePtr.asFunction(); + late final __objc_msgSend_362Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - CFTypeRef CFAutorelease( - CFTypeRef arg, + late final _sel_setHTTPBodyStream_1 = _registerName1("setHTTPBodyStream:"); + void _objc_msgSend_363( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, ) { - return _CFAutorelease( - arg, + return __objc_msgSend_363( + obj, + sel, + value, ); } - late final _CFAutoreleasePtr = - _lookup>( - 'CFAutorelease'); - late final _CFAutorelease = - _CFAutoreleasePtr.asFunction(); + late final __objc_msgSend_363Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - int CFGetRetainCount( - CFTypeRef cf, + late final _sel_setHTTPShouldHandleCookies_1 = + _registerName1("setHTTPShouldHandleCookies:"); + late final _sel_setHTTPShouldUsePipelining_1 = + _registerName1("setHTTPShouldUsePipelining:"); + late final _class_NSHTTPCookieStorage1 = _getClass1("NSHTTPCookieStorage"); + late final _sel_sharedHTTPCookieStorage1 = + _registerName1("sharedHTTPCookieStorage"); + ffi.Pointer _objc_msgSend_364( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _CFGetRetainCount( - cf, + return __objc_msgSend_364( + obj, + sel, ); } - late final _CFGetRetainCountPtr = - _lookup>( - 'CFGetRetainCount'); - late final _CFGetRetainCount = - _CFGetRetainCountPtr.asFunction(); + late final __objc_msgSend_364Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - int CFEqual( - CFTypeRef cf1, - CFTypeRef cf2, + late final _sel_sharedCookieStorageForGroupContainerIdentifier_1 = + _registerName1("sharedCookieStorageForGroupContainerIdentifier:"); + ffi.Pointer _objc_msgSend_365( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer identifier, ) { - return _CFEqual( - cf1, - cf2, + return __objc_msgSend_365( + obj, + sel, + identifier, ); } - late final _CFEqualPtr = - _lookup>( - 'CFEqual'); - late final _CFEqual = - _CFEqualPtr.asFunction(); + late final __objc_msgSend_365Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - int CFHash( - CFTypeRef cf, + late final _sel_cookies1 = _registerName1("cookies"); + late final _class_NSHTTPCookie1 = _getClass1("NSHTTPCookie"); + late final _sel_setCookie_1 = _registerName1("setCookie:"); + void _objc_msgSend_366( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer cookie, ) { - return _CFHash( - cf, + return __objc_msgSend_366( + obj, + sel, + cookie, ); } - late final _CFHashPtr = - _lookup>('CFHash'); - late final _CFHash = _CFHashPtr.asFunction(); + late final __objc_msgSend_366Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - CFStringRef CFCopyDescription( - CFTypeRef cf, + late final _sel_deleteCookie_1 = _registerName1("deleteCookie:"); + late final _sel_removeCookiesSinceDate_1 = + _registerName1("removeCookiesSinceDate:"); + void _objc_msgSend_367( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date, ) { - return _CFCopyDescription( - cf, + return __objc_msgSend_367( + obj, + sel, + date, ); } - late final _CFCopyDescriptionPtr = - _lookup>( - 'CFCopyDescription'); - late final _CFCopyDescription = - _CFCopyDescriptionPtr.asFunction(); + late final __objc_msgSend_367Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - CFAllocatorRef CFGetAllocator( - CFTypeRef cf, + late final _sel_cookiesForURL_1 = _registerName1("cookiesForURL:"); + late final _sel_setCookies_forURL_mainDocumentURL_1 = + _registerName1("setCookies:forURL:mainDocumentURL:"); + void _objc_msgSend_368( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer cookies, + ffi.Pointer URL, + ffi.Pointer mainDocumentURL, ) { - return _CFGetAllocator( - cf, + return __objc_msgSend_368( + obj, + sel, + cookies, + URL, + mainDocumentURL, ); } - late final _CFGetAllocatorPtr = - _lookup>( - 'CFGetAllocator'); - late final _CFGetAllocator = - _CFGetAllocatorPtr.asFunction(); + late final __objc_msgSend_368Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - CFTypeRef CFMakeCollectable( - CFTypeRef cf, + late final _sel_cookieAcceptPolicy1 = _registerName1("cookieAcceptPolicy"); + int _objc_msgSend_369( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _CFMakeCollectable( - cf, + return __objc_msgSend_369( + obj, + sel, ); } - late final _CFMakeCollectablePtr = - _lookup>( - 'CFMakeCollectable'); - late final _CFMakeCollectable = - _CFMakeCollectablePtr.asFunction(); - - ffi.Pointer NSDefaultMallocZone() { - return _NSDefaultMallocZone(); - } - - late final _NSDefaultMallocZonePtr = - _lookup Function()>>( - 'NSDefaultMallocZone'); - late final _NSDefaultMallocZone = - _NSDefaultMallocZonePtr.asFunction Function()>(); + late final __objc_msgSend_369Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer NSCreateZone( - int startSize, - int granularity, - bool canFree, + late final _sel_setCookieAcceptPolicy_1 = + _registerName1("setCookieAcceptPolicy:"); + void _objc_msgSend_370( + ffi.Pointer obj, + ffi.Pointer sel, + int value, ) { - return _NSCreateZone( - startSize, - granularity, - canFree, + return __objc_msgSend_370( + obj, + sel, + value, ); } - late final _NSCreateZonePtr = _lookup< + late final __objc_msgSend_370Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - NSUInteger, NSUInteger, ffi.Bool)>>('NSCreateZone'); - late final _NSCreateZone = _NSCreateZonePtr.asFunction< - ffi.Pointer Function(int, int, bool)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - void NSRecycleZone( - ffi.Pointer zone, + late final _sel_sortedCookiesUsingDescriptors_1 = + _registerName1("sortedCookiesUsingDescriptors:"); + late final _class_NSURLSessionTask1 = _getClass1("NSURLSessionTask"); + late final _sel_taskIdentifier1 = _registerName1("taskIdentifier"); + late final _sel_originalRequest1 = _registerName1("originalRequest"); + ffi.Pointer _objc_msgSend_371( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _NSRecycleZone( - zone, + return __objc_msgSend_371( + obj, + sel, ); } - late final _NSRecycleZonePtr = - _lookup)>>( - 'NSRecycleZone'); - late final _NSRecycleZone = - _NSRecycleZonePtr.asFunction)>(); + late final __objc_msgSend_371Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - void NSSetZoneName( - ffi.Pointer zone, + late final _sel_currentRequest1 = _registerName1("currentRequest"); + late final _class_NSURLResponse1 = _getClass1("NSURLResponse"); + late final _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1 = + _registerName1( + "initWithURL:MIMEType:expectedContentLength:textEncodingName:"); + instancetype _objc_msgSend_372( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URL, + ffi.Pointer MIMEType, + int length, ffi.Pointer name, ) { - return _NSSetZoneName( - zone, + return __objc_msgSend_372( + obj, + sel, + URL, + MIMEType, + length, name, ); } - late final _NSSetZoneNamePtr = _lookup< + late final __objc_msgSend_372Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>>('NSSetZoneName'); - late final _NSSetZoneName = _NSSetZoneNamePtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); - ffi.Pointer NSZoneName( - ffi.Pointer zone, + late final _sel_MIMEType1 = _registerName1("MIMEType"); + late final _sel_expectedContentLength1 = + _registerName1("expectedContentLength"); + late final _sel_textEncodingName1 = _registerName1("textEncodingName"); + late final _sel_suggestedFilename1 = _registerName1("suggestedFilename"); + late final _sel_response1 = _registerName1("response"); + ffi.Pointer _objc_msgSend_373( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _NSZoneName( - zone, + return __objc_msgSend_373( + obj, + sel, ); } - late final _NSZoneNamePtr = _lookup< + late final __objc_msgSend_373Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('NSZoneName'); - late final _NSZoneName = _NSZoneNamePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer NSZoneFromPointer( - ffi.Pointer ptr, + late final _sel_earliestBeginDate1 = _registerName1("earliestBeginDate"); + late final _sel_setEarliestBeginDate_1 = + _registerName1("setEarliestBeginDate:"); + void _objc_msgSend_374( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, ) { - return _NSZoneFromPointer( - ptr, + return __objc_msgSend_374( + obj, + sel, + value, ); } - late final _NSZoneFromPointerPtr = _lookup< + late final __objc_msgSend_374Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('NSZoneFromPointer'); - late final _NSZoneFromPointer = _NSZoneFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - ffi.Pointer NSZoneMalloc( - ffi.Pointer zone, - int size, + late final _sel_countOfBytesClientExpectsToSend1 = + _registerName1("countOfBytesClientExpectsToSend"); + late final _sel_setCountOfBytesClientExpectsToSend_1 = + _registerName1("setCountOfBytesClientExpectsToSend:"); + late final _sel_countOfBytesClientExpectsToReceive1 = + _registerName1("countOfBytesClientExpectsToReceive"); + late final _sel_setCountOfBytesClientExpectsToReceive_1 = + _registerName1("setCountOfBytesClientExpectsToReceive:"); + late final _sel_countOfBytesReceived1 = + _registerName1("countOfBytesReceived"); + late final _sel_countOfBytesSent1 = _registerName1("countOfBytesSent"); + late final _sel_countOfBytesExpectedToSend1 = + _registerName1("countOfBytesExpectedToSend"); + late final _sel_countOfBytesExpectedToReceive1 = + _registerName1("countOfBytesExpectedToReceive"); + late final _sel_taskDescription1 = _registerName1("taskDescription"); + late final _sel_setTaskDescription_1 = _registerName1("setTaskDescription:"); + late final _sel_state1 = _registerName1("state"); + int _objc_msgSend_375( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _NSZoneMalloc( - zone, - size, + return __objc_msgSend_375( + obj, + sel, ); } - late final _NSZoneMallocPtr = _lookup< + late final __objc_msgSend_375Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, NSUInteger)>>('NSZoneMalloc'); - late final _NSZoneMalloc = _NSZoneMallocPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int)>(); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer NSZoneCalloc( - ffi.Pointer zone, - int numElems, - int byteSize, + late final _sel_error1 = _registerName1("error"); + ffi.Pointer _objc_msgSend_376( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return _NSZoneCalloc( - zone, - numElems, - byteSize, + return __objc_msgSend_376( + obj, + sel, ); } - late final _NSZoneCallocPtr = _lookup< + late final __objc_msgSend_376Ptr = _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 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer NSZoneRealloc( - ffi.Pointer zone, - ffi.Pointer ptr, - int size, + late final _sel_suspend1 = _registerName1("suspend"); + late final _sel_priority1 = _registerName1("priority"); + late final _sel_setPriority_1 = _registerName1("setPriority:"); + void _objc_msgSend_377( + ffi.Pointer obj, + ffi.Pointer sel, + double value, ) { - return _NSZoneRealloc( - zone, - ptr, - size, + return __objc_msgSend_377( + obj, + sel, + value, ); } - late final _NSZoneReallocPtr = _lookup< + late final __objc_msgSend_377Ptr = _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)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Float)>>('objc_msgSend'); + late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, double)>(); - void NSZoneFree( - ffi.Pointer zone, - ffi.Pointer ptr, + late final _sel_prefersIncrementalDelivery1 = + _registerName1("prefersIncrementalDelivery"); + late final _sel_setPrefersIncrementalDelivery_1 = + _registerName1("setPrefersIncrementalDelivery:"); + late final _sel_storeCookies_forTask_1 = + _registerName1("storeCookies:forTask:"); + void _objc_msgSend_378( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer cookies, + ffi.Pointer task, ) { - return _NSZoneFree( - zone, - ptr, + return __objc_msgSend_378( + obj, + sel, + cookies, + task, ); } - late final _NSZoneFreePtr = _lookup< + late final __objc_msgSend_378Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, ffi.Pointer)>>('NSZoneFree'); - late final _NSZoneFree = _NSZoneFreePtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer NSAllocateCollectable( - int size, - int options, + late final _sel_getCookiesForTask_completionHandler_1 = + _registerName1("getCookiesForTask:completionHandler:"); + void _objc_msgSend_379( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer task, + ffi.Pointer<_ObjCBlock> completionHandler, ) { - return _NSAllocateCollectable( - size, - options, + return __objc_msgSend_379( + obj, + sel, + task, + completionHandler, ); } - late final _NSAllocateCollectablePtr = _lookup< + late final __objc_msgSend_379Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - NSUInteger, NSUInteger)>>('NSAllocateCollectable'); - late final _NSAllocateCollectable = _NSAllocateCollectablePtr.asFunction< - ffi.Pointer Function(int, int)>(); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - ffi.Pointer NSReallocateCollectable( - ffi.Pointer ptr, - int size, - int options, - ) { - return _NSReallocateCollectable( - ptr, - size, - options, - ); - } + late final ffi.Pointer + _NSHTTPCookieManagerAcceptPolicyChangedNotification = + _lookup( + 'NSHTTPCookieManagerAcceptPolicyChangedNotification'); - 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)>(); + NSNotificationName get NSHTTPCookieManagerAcceptPolicyChangedNotification => + _NSHTTPCookieManagerAcceptPolicyChangedNotification.value; - int NSPageSize() { - return _NSPageSize(); - } + set NSHTTPCookieManagerAcceptPolicyChangedNotification( + NSNotificationName value) => + _NSHTTPCookieManagerAcceptPolicyChangedNotification.value = value; - late final _NSPageSizePtr = - _lookup>('NSPageSize'); - late final _NSPageSize = _NSPageSizePtr.asFunction(); + late final ffi.Pointer + _NSHTTPCookieManagerCookiesChangedNotification = + _lookup( + 'NSHTTPCookieManagerCookiesChangedNotification'); - int NSLogPageSize() { - return _NSLogPageSize(); - } + NSNotificationName get NSHTTPCookieManagerCookiesChangedNotification => + _NSHTTPCookieManagerCookiesChangedNotification.value; - late final _NSLogPageSizePtr = - _lookup>('NSLogPageSize'); - late final _NSLogPageSize = _NSLogPageSizePtr.asFunction(); + set NSHTTPCookieManagerCookiesChangedNotification(NSNotificationName value) => + _NSHTTPCookieManagerCookiesChangedNotification.value = value; - int NSRoundUpToMultipleOfPageSize( - int bytes, - ) { - return _NSRoundUpToMultipleOfPageSize( - bytes, - ); + late final ffi.Pointer + _NSProgressEstimatedTimeRemainingKey = + _lookup('NSProgressEstimatedTimeRemainingKey'); + + NSProgressUserInfoKey get NSProgressEstimatedTimeRemainingKey => + _NSProgressEstimatedTimeRemainingKey.value; + + set NSProgressEstimatedTimeRemainingKey(NSProgressUserInfoKey value) => + _NSProgressEstimatedTimeRemainingKey.value = value; + + late final ffi.Pointer _NSProgressThroughputKey = + _lookup('NSProgressThroughputKey'); + + NSProgressUserInfoKey get NSProgressThroughputKey => + _NSProgressThroughputKey.value; + + set NSProgressThroughputKey(NSProgressUserInfoKey value) => + _NSProgressThroughputKey.value = value; + + late final ffi.Pointer _NSProgressKindFile = + _lookup('NSProgressKindFile'); + + NSProgressKind get NSProgressKindFile => _NSProgressKindFile.value; + + set NSProgressKindFile(NSProgressKind value) => + _NSProgressKindFile.value = value; + + late final ffi.Pointer + _NSProgressFileOperationKindKey = + _lookup('NSProgressFileOperationKindKey'); + + NSProgressUserInfoKey get NSProgressFileOperationKindKey => + _NSProgressFileOperationKindKey.value; + + set NSProgressFileOperationKindKey(NSProgressUserInfoKey value) => + _NSProgressFileOperationKindKey.value = value; + + late final ffi.Pointer + _NSProgressFileOperationKindDownloading = + _lookup( + 'NSProgressFileOperationKindDownloading'); + + NSProgressFileOperationKind get NSProgressFileOperationKindDownloading => + _NSProgressFileOperationKindDownloading.value; + + set NSProgressFileOperationKindDownloading( + NSProgressFileOperationKind value) => + _NSProgressFileOperationKindDownloading.value = value; + + late final ffi.Pointer + _NSProgressFileOperationKindDecompressingAfterDownloading = + _lookup( + 'NSProgressFileOperationKindDecompressingAfterDownloading'); + + NSProgressFileOperationKind + get NSProgressFileOperationKindDecompressingAfterDownloading => + _NSProgressFileOperationKindDecompressingAfterDownloading.value; + + set NSProgressFileOperationKindDecompressingAfterDownloading( + NSProgressFileOperationKind value) => + _NSProgressFileOperationKindDecompressingAfterDownloading.value = value; + + late final ffi.Pointer + _NSProgressFileOperationKindReceiving = + _lookup( + 'NSProgressFileOperationKindReceiving'); + + NSProgressFileOperationKind get NSProgressFileOperationKindReceiving => + _NSProgressFileOperationKindReceiving.value; + + set NSProgressFileOperationKindReceiving(NSProgressFileOperationKind value) => + _NSProgressFileOperationKindReceiving.value = value; + + late final ffi.Pointer + _NSProgressFileOperationKindCopying = + _lookup( + 'NSProgressFileOperationKindCopying'); + + NSProgressFileOperationKind get NSProgressFileOperationKindCopying => + _NSProgressFileOperationKindCopying.value; + + set NSProgressFileOperationKindCopying(NSProgressFileOperationKind value) => + _NSProgressFileOperationKindCopying.value = value; + + late final ffi.Pointer + _NSProgressFileOperationKindUploading = + _lookup( + 'NSProgressFileOperationKindUploading'); + + NSProgressFileOperationKind get NSProgressFileOperationKindUploading => + _NSProgressFileOperationKindUploading.value; + + set NSProgressFileOperationKindUploading(NSProgressFileOperationKind value) => + _NSProgressFileOperationKindUploading.value = value; + + late final ffi.Pointer + _NSProgressFileOperationKindDuplicating = + _lookup( + 'NSProgressFileOperationKindDuplicating'); + + NSProgressFileOperationKind get NSProgressFileOperationKindDuplicating => + _NSProgressFileOperationKindDuplicating.value; + + set NSProgressFileOperationKindDuplicating( + NSProgressFileOperationKind value) => + _NSProgressFileOperationKindDuplicating.value = value; + + late final ffi.Pointer _NSProgressFileURLKey = + _lookup('NSProgressFileURLKey'); + + NSProgressUserInfoKey get NSProgressFileURLKey => _NSProgressFileURLKey.value; + + set NSProgressFileURLKey(NSProgressUserInfoKey value) => + _NSProgressFileURLKey.value = value; + + late final ffi.Pointer _NSProgressFileTotalCountKey = + _lookup('NSProgressFileTotalCountKey'); + + NSProgressUserInfoKey get NSProgressFileTotalCountKey => + _NSProgressFileTotalCountKey.value; + + set NSProgressFileTotalCountKey(NSProgressUserInfoKey value) => + _NSProgressFileTotalCountKey.value = value; + + late final ffi.Pointer + _NSProgressFileCompletedCountKey = + _lookup('NSProgressFileCompletedCountKey'); + + NSProgressUserInfoKey get NSProgressFileCompletedCountKey => + _NSProgressFileCompletedCountKey.value; + + set NSProgressFileCompletedCountKey(NSProgressUserInfoKey value) => + _NSProgressFileCompletedCountKey.value = value; + + late final ffi.Pointer + _NSProgressFileAnimationImageKey = + _lookup('NSProgressFileAnimationImageKey'); + + NSProgressUserInfoKey get NSProgressFileAnimationImageKey => + _NSProgressFileAnimationImageKey.value; + + set NSProgressFileAnimationImageKey(NSProgressUserInfoKey value) => + _NSProgressFileAnimationImageKey.value = value; + + late final ffi.Pointer + _NSProgressFileAnimationImageOriginalRectKey = + _lookup( + 'NSProgressFileAnimationImageOriginalRectKey'); + + NSProgressUserInfoKey get NSProgressFileAnimationImageOriginalRectKey => + _NSProgressFileAnimationImageOriginalRectKey.value; + + set NSProgressFileAnimationImageOriginalRectKey( + NSProgressUserInfoKey value) => + _NSProgressFileAnimationImageOriginalRectKey.value = value; + + late final ffi.Pointer _NSProgressFileIconKey = + _lookup('NSProgressFileIconKey'); + + NSProgressUserInfoKey get NSProgressFileIconKey => + _NSProgressFileIconKey.value; + + set NSProgressFileIconKey(NSProgressUserInfoKey value) => + _NSProgressFileIconKey.value = value; + + late final ffi.Pointer _kCFTypeArrayCallBacks = + _lookup('kCFTypeArrayCallBacks'); + + CFArrayCallBacks get kCFTypeArrayCallBacks => _kCFTypeArrayCallBacks.ref; + + int CFArrayGetTypeID() { + return _CFArrayGetTypeID(); } - late final _NSRoundUpToMultipleOfPageSizePtr = - _lookup>( - 'NSRoundUpToMultipleOfPageSize'); - late final _NSRoundUpToMultipleOfPageSize = - _NSRoundUpToMultipleOfPageSizePtr.asFunction(); + late final _CFArrayGetTypeIDPtr = + _lookup>('CFArrayGetTypeID'); + late final _CFArrayGetTypeID = + _CFArrayGetTypeIDPtr.asFunction(); - int NSRoundDownToMultipleOfPageSize( - int bytes, + CFArrayRef CFArrayCreate( + CFAllocatorRef allocator, + ffi.Pointer> values, + int numValues, + ffi.Pointer callBacks, ) { - return _NSRoundDownToMultipleOfPageSize( - bytes, + return _CFArrayCreate( + allocator, + values, + numValues, + callBacks, ); } - late final _NSRoundDownToMultipleOfPageSizePtr = - _lookup>( - 'NSRoundDownToMultipleOfPageSize'); - late final _NSRoundDownToMultipleOfPageSize = - _NSRoundDownToMultipleOfPageSizePtr.asFunction(); + 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)>(); - ffi.Pointer NSAllocateMemoryPages( - int bytes, + CFArrayRef CFArrayCreateCopy( + CFAllocatorRef allocator, + CFArrayRef theArray, ) { - return _NSAllocateMemoryPages( - bytes, + return _CFArrayCreateCopy( + allocator, + theArray, ); } - late final _NSAllocateMemoryPagesPtr = - _lookup Function(NSUInteger)>>( - 'NSAllocateMemoryPages'); - late final _NSAllocateMemoryPages = _NSAllocateMemoryPagesPtr.asFunction< - ffi.Pointer Function(int)>(); + late final _CFArrayCreateCopyPtr = _lookup< + ffi.NativeFunction>( + 'CFArrayCreateCopy'); + late final _CFArrayCreateCopy = _CFArrayCreateCopyPtr.asFunction< + CFArrayRef Function(CFAllocatorRef, CFArrayRef)>(); - void NSDeallocateMemoryPages( - ffi.Pointer ptr, - int bytes, + CFMutableArrayRef CFArrayCreateMutable( + CFAllocatorRef allocator, + int capacity, + ffi.Pointer callBacks, ) { - return _NSDeallocateMemoryPages( - ptr, - bytes, + return _CFArrayCreateMutable( + allocator, + capacity, + callBacks, ); } - late final _NSDeallocateMemoryPagesPtr = _lookup< + late final _CFArrayCreateMutablePtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, NSUInteger)>>('NSDeallocateMemoryPages'); - late final _NSDeallocateMemoryPages = _NSDeallocateMemoryPagesPtr.asFunction< - void Function(ffi.Pointer, int)>(); + CFMutableArrayRef Function(CFAllocatorRef, CFIndex, + ffi.Pointer)>>('CFArrayCreateMutable'); + late final _CFArrayCreateMutable = _CFArrayCreateMutablePtr.asFunction< + CFMutableArrayRef Function( + CFAllocatorRef, int, ffi.Pointer)>(); - void NSCopyMemoryPages( - ffi.Pointer source, - ffi.Pointer dest, - int bytes, + CFMutableArrayRef CFArrayCreateMutableCopy( + CFAllocatorRef allocator, + int capacity, + CFArrayRef theArray, ) { - return _NSCopyMemoryPages( - source, - dest, - bytes, + return _CFArrayCreateMutableCopy( + allocator, + capacity, + theArray, ); } - late final _NSCopyMemoryPagesPtr = _lookup< + late final _CFArrayCreateMutableCopyPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('NSCopyMemoryPages'); - late final _NSCopyMemoryPages = _NSCopyMemoryPagesPtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + CFMutableArrayRef Function(CFAllocatorRef, CFIndex, + CFArrayRef)>>('CFArrayCreateMutableCopy'); + late final _CFArrayCreateMutableCopy = + _CFArrayCreateMutableCopyPtr.asFunction< + CFMutableArrayRef Function(CFAllocatorRef, int, CFArrayRef)>(); - int NSRealMemoryAvailable() { - return _NSRealMemoryAvailable(); + int CFArrayGetCount( + CFArrayRef theArray, + ) { + return _CFArrayGetCount( + theArray, + ); } - late final _NSRealMemoryAvailablePtr = - _lookup>( - 'NSRealMemoryAvailable'); - late final _NSRealMemoryAvailable = - _NSRealMemoryAvailablePtr.asFunction(); + late final _CFArrayGetCountPtr = + _lookup>( + 'CFArrayGetCount'); + late final _CFArrayGetCount = + _CFArrayGetCountPtr.asFunction(); - ffi.Pointer NSAllocateObject( - ffi.Pointer aClass, - int extraBytes, - ffi.Pointer zone, + int CFArrayGetCountOfValue( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, ) { - return _NSAllocateObject( - aClass, - extraBytes, - zone, + return _CFArrayGetCountOfValue( + theArray, + range, + value, ); } - late final _NSAllocateObjectPtr = _lookup< + late final _CFArrayGetCountOfValuePtr = _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)>(); + CFIndex Function(CFArrayRef, CFRange, + ffi.Pointer)>>('CFArrayGetCountOfValue'); + late final _CFArrayGetCountOfValue = _CFArrayGetCountOfValuePtr.asFunction< + int Function(CFArrayRef, CFRange, ffi.Pointer)>(); - void NSDeallocateObject( - ffi.Pointer object, + int CFArrayContainsValue( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, ) { - return _NSDeallocateObject( - object, + return _CFArrayContainsValue( + theArray, + range, + value, ); } - late final _NSDeallocateObjectPtr = - _lookup)>>( - 'NSDeallocateObject'); - late final _NSDeallocateObject = _NSDeallocateObjectPtr.asFunction< - void Function(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 NSCopyObject( - ffi.Pointer object, - int extraBytes, - ffi.Pointer zone, + ffi.Pointer CFArrayGetValueAtIndex( + CFArrayRef theArray, + int idx, ) { - return _NSCopyObject( - object, - extraBytes, - zone, + return _CFArrayGetValueAtIndex( + theArray, + idx, ); } - late final _NSCopyObjectPtr = _lookup< + late final _CFArrayGetValueAtIndexPtr = _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)>(); + ffi.Pointer Function( + CFArrayRef, CFIndex)>>('CFArrayGetValueAtIndex'); + late final _CFArrayGetValueAtIndex = _CFArrayGetValueAtIndexPtr.asFunction< + ffi.Pointer Function(CFArrayRef, int)>(); - bool NSShouldRetainWithZone( - ffi.Pointer anObject, - ffi.Pointer requestedZone, + void CFArrayGetValues( + CFArrayRef theArray, + CFRange range, + ffi.Pointer> values, ) { - return _NSShouldRetainWithZone( - anObject, - requestedZone, + return _CFArrayGetValues( + theArray, + range, + values, ); } - late final _NSShouldRetainWithZonePtr = _lookup< + late final _CFArrayGetValuesPtr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer)>>('NSShouldRetainWithZone'); - late final _NSShouldRetainWithZone = _NSShouldRetainWithZonePtr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(CFArrayRef, CFRange, + ffi.Pointer>)>>('CFArrayGetValues'); + late final _CFArrayGetValues = _CFArrayGetValuesPtr.asFunction< + void Function(CFArrayRef, CFRange, ffi.Pointer>)>(); - void NSIncrementExtraRefCount( - ffi.Pointer object, + void CFArrayApplyFunction( + CFArrayRef theArray, + CFRange range, + CFArrayApplierFunction applier, + ffi.Pointer context, ) { - return _NSIncrementExtraRefCount( - object, + return _CFArrayApplyFunction( + theArray, + range, + applier, + context, ); } - late final _NSIncrementExtraRefCountPtr = - _lookup)>>( - 'NSIncrementExtraRefCount'); - late final _NSIncrementExtraRefCount = _NSIncrementExtraRefCountPtr - .asFunction)>(); + 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)>(); - bool NSDecrementExtraRefCountWasZero( - ffi.Pointer object, + int CFArrayGetFirstIndexOfValue( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, ) { - return _NSDecrementExtraRefCountWasZero( - object, + return _CFArrayGetFirstIndexOfValue( + theArray, + range, + value, ); } - late final _NSDecrementExtraRefCountWasZeroPtr = - _lookup)>>( - 'NSDecrementExtraRefCountWasZero'); - late final _NSDecrementExtraRefCountWasZero = - _NSDecrementExtraRefCountWasZeroPtr.asFunction< - bool Function(ffi.Pointer)>(); + late final _CFArrayGetFirstIndexOfValuePtr = _lookup< + ffi.NativeFunction< + CFIndex Function(CFArrayRef, CFRange, + ffi.Pointer)>>('CFArrayGetFirstIndexOfValue'); + late final _CFArrayGetFirstIndexOfValue = _CFArrayGetFirstIndexOfValuePtr + .asFunction)>(); - int NSExtraRefCount( - ffi.Pointer object, + int CFArrayGetLastIndexOfValue( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, ) { - return _NSExtraRefCount( - object, + return _CFArrayGetLastIndexOfValue( + theArray, + range, + value, ); } - late final _NSExtraRefCountPtr = - _lookup)>>( - 'NSExtraRefCount'); - late final _NSExtraRefCount = - _NSExtraRefCountPtr.asFunction)>(); + late final _CFArrayGetLastIndexOfValuePtr = _lookup< + ffi.NativeFunction< + CFIndex Function(CFArrayRef, CFRange, + ffi.Pointer)>>('CFArrayGetLastIndexOfValue'); + late final _CFArrayGetLastIndexOfValue = _CFArrayGetLastIndexOfValuePtr + .asFunction)>(); - NSRange NSUnionRange( - NSRange range1, - NSRange range2, + int CFArrayBSearchValues( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, + CFComparatorFunction comparator, + ffi.Pointer context, ) { - return _NSUnionRange( - range1, - range2, + return _CFArrayBSearchValues( + theArray, + range, + value, + comparator, + context, ); } - late final _NSUnionRangePtr = - _lookup>( - 'NSUnionRange'); - late final _NSUnionRange = - _NSUnionRangePtr.asFunction(); + 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)>(); - NSRange NSIntersectionRange( - NSRange range1, - NSRange range2, + void CFArrayAppendValue( + CFMutableArrayRef theArray, + ffi.Pointer value, ) { - return _NSIntersectionRange( - range1, - range2, + return _CFArrayAppendValue( + theArray, + value, ); } - late final _NSIntersectionRangePtr = - _lookup>( - 'NSIntersectionRange'); - late final _NSIntersectionRange = - _NSIntersectionRangePtr.asFunction(); + late final _CFArrayAppendValuePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + CFMutableArrayRef, ffi.Pointer)>>('CFArrayAppendValue'); + late final _CFArrayAppendValue = _CFArrayAppendValuePtr.asFunction< + void Function(CFMutableArrayRef, ffi.Pointer)>(); - ffi.Pointer NSStringFromRange( - NSRange range, + void CFArrayInsertValueAtIndex( + CFMutableArrayRef theArray, + int idx, + ffi.Pointer value, ) { - return _NSStringFromRange( - range, + return _CFArrayInsertValueAtIndex( + theArray, + idx, + value, ); } - late final _NSStringFromRangePtr = - _lookup Function(NSRange)>>( - 'NSStringFromRange'); - late final _NSStringFromRange = _NSStringFromRangePtr.asFunction< - ffi.Pointer Function(NSRange)>(); + 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)>(); - NSRange NSRangeFromString( - ffi.Pointer aString, + void CFArraySetValueAtIndex( + CFMutableArrayRef theArray, + int idx, + ffi.Pointer value, ) { - return _NSRangeFromString( - aString, + return _CFArraySetValueAtIndex( + theArray, + idx, + value, ); } - late final _NSRangeFromStringPtr = - _lookup)>>( - 'NSRangeFromString'); - late final _NSRangeFromString = _NSRangeFromStringPtr.asFunction< - NSRange Function(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)>(); - late final _class_NSMutableIndexSet1 = _getClass1("NSMutableIndexSet"); - late final _sel_addIndexes_1 = _registerName1("addIndexes:"); - void _objc_msgSend_285( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indexSet, + void CFArrayRemoveValueAtIndex( + CFMutableArrayRef theArray, + int idx, ) { - return __objc_msgSend_285( - obj, - sel, - indexSet, + return _CFArrayRemoveValueAtIndex( + theArray, + idx, ); } - late final __objc_msgSend_285Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_285 = __objc_msgSend_285Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _CFArrayRemoveValueAtIndexPtr = _lookup< + ffi.NativeFunction>( + 'CFArrayRemoveValueAtIndex'); + late final _CFArrayRemoveValueAtIndex = _CFArrayRemoveValueAtIndexPtr + .asFunction(); - late final _sel_removeIndexes_1 = _registerName1("removeIndexes:"); - late final _sel_removeAllIndexes1 = _registerName1("removeAllIndexes"); - late final _sel_addIndex_1 = _registerName1("addIndex:"); - void _objc_msgSend_286( - ffi.Pointer obj, - ffi.Pointer sel, - int value, + void CFArrayRemoveAllValues( + CFMutableArrayRef theArray, ) { - return __objc_msgSend_286( - obj, - sel, - value, + return _CFArrayRemoveAllValues( + theArray, ); } - late final __objc_msgSend_286Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _CFArrayRemoveAllValuesPtr = + _lookup>( + 'CFArrayRemoveAllValues'); + late final _CFArrayRemoveAllValues = + _CFArrayRemoveAllValuesPtr.asFunction(); - late final _sel_removeIndex_1 = _registerName1("removeIndex:"); - late final _sel_addIndexesInRange_1 = _registerName1("addIndexesInRange:"); - void _objc_msgSend_287( - ffi.Pointer obj, - ffi.Pointer sel, - NSRange range, + void CFArrayReplaceValues( + CFMutableArrayRef theArray, + CFRange range, + ffi.Pointer> newValues, + int newCount, ) { - return __objc_msgSend_287( - obj, - sel, + return _CFArrayReplaceValues( + theArray, range, + newValues, + newCount, ); } - late final __objc_msgSend_287Ptr = _lookup< + late final _CFArrayReplaceValuesPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Void Function( + CFMutableArrayRef, + CFRange, + ffi.Pointer>, + CFIndex)>>('CFArrayReplaceValues'); + late final _CFArrayReplaceValues = _CFArrayReplaceValuesPtr.asFunction< + void Function(CFMutableArrayRef, CFRange, + ffi.Pointer>, int)>(); - late final _sel_removeIndexesInRange_1 = - _registerName1("removeIndexesInRange:"); - late final _sel_shiftIndexesStartingAtIndex_by_1 = - _registerName1("shiftIndexesStartingAtIndex:by:"); - void _objc_msgSend_288( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - int delta, + void CFArrayExchangeValuesAtIndices( + CFMutableArrayRef theArray, + int idx1, + int idx2, ) { - return __objc_msgSend_288( - obj, - sel, - index, - delta, + return _CFArrayExchangeValuesAtIndices( + theArray, + idx1, + idx2, ); } - late final __objc_msgSend_288Ptr = _lookup< + late final _CFArrayExchangeValuesAtIndicesPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, int)>(); + ffi.Void Function(CFMutableArrayRef, CFIndex, + CFIndex)>>('CFArrayExchangeValuesAtIndices'); + late final _CFArrayExchangeValuesAtIndices = + _CFArrayExchangeValuesAtIndicesPtr.asFunction< + void Function(CFMutableArrayRef, int, int)>(); - late final _class_NSMutableArray1 = _getClass1("NSMutableArray"); - late final _sel_addObject_1 = _registerName1("addObject:"); - late final _sel_insertObject_atIndex_1 = - _registerName1("insertObject:atIndex:"); - void _objc_msgSend_289( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - int index, + void CFArraySortValues( + CFMutableArrayRef theArray, + CFRange range, + CFComparatorFunction comparator, + ffi.Pointer context, ) { - return __objc_msgSend_289( - obj, - sel, - anObject, - index, + return _CFArraySortValues( + theArray, + range, + comparator, + context, ); } - late final __objc_msgSend_289Ptr = _lookup< + late final _CFArraySortValuesPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Void Function(CFMutableArrayRef, CFRange, CFComparatorFunction, + ffi.Pointer)>>('CFArraySortValues'); + late final _CFArraySortValues = _CFArraySortValuesPtr.asFunction< + void Function(CFMutableArrayRef, CFRange, CFComparatorFunction, + ffi.Pointer)>(); - late final _sel_removeLastObject1 = _registerName1("removeLastObject"); - late final _sel_removeObjectAtIndex_1 = - _registerName1("removeObjectAtIndex:"); - late final _sel_replaceObjectAtIndex_withObject_1 = - _registerName1("replaceObjectAtIndex:withObject:"); - void _objc_msgSend_290( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ffi.Pointer anObject, + void CFArrayAppendArray( + CFMutableArrayRef theArray, + CFArrayRef otherArray, + CFRange otherRange, ) { - return __objc_msgSend_290( - obj, - sel, - index, - anObject, + return _CFArrayAppendArray( + theArray, + otherArray, + otherRange, ); } - late final __objc_msgSend_290Ptr = _lookup< + late final _CFArrayAppendArrayPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); + ffi.Void Function( + CFMutableArrayRef, CFArrayRef, CFRange)>>('CFArrayAppendArray'); + late final _CFArrayAppendArray = _CFArrayAppendArrayPtr.asFunction< + void Function(CFMutableArrayRef, CFArrayRef, CFRange)>(); - late final _sel_initWithCapacity_1 = _registerName1("initWithCapacity:"); - late final _sel_addObjectsFromArray_1 = - _registerName1("addObjectsFromArray:"); - void _objc_msgSend_291( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherArray, + late final _class_OS_object1 = _getClass1("OS_object"); + ffi.Pointer os_retain( + ffi.Pointer object, ) { - return __objc_msgSend_291( - obj, - sel, - otherArray, + return _os_retain( + object, ); } - late final __objc_msgSend_291Ptr = _lookup< + late final _os_retainPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer)>>('os_retain'); + late final _os_retain = _os_retainPtr + .asFunction Function(ffi.Pointer)>(); - late final _sel_exchangeObjectAtIndex_withObjectAtIndex_1 = - _registerName1("exchangeObjectAtIndex:withObjectAtIndex:"); - void _objc_msgSend_292( - ffi.Pointer obj, - ffi.Pointer sel, - int idx1, - int idx2, + void os_release( + ffi.Pointer object, ) { - return __objc_msgSend_292( - obj, - sel, - idx1, - idx2, + return _os_release( + object, ); } - late final __objc_msgSend_292Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, int)>(); + late final _os_releasePtr = + _lookup)>>( + 'os_release'); + late final _os_release = + _os_releasePtr.asFunction)>(); - late final _sel_removeAllObjects1 = _registerName1("removeAllObjects"); - late final _sel_removeObject_inRange_1 = - _registerName1("removeObject:inRange:"); - void _objc_msgSend_293( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - NSRange range, + ffi.Pointer sec_retain( + ffi.Pointer obj, ) { - return __objc_msgSend_293( + return _sec_retain( obj, - sel, - anObject, - range, ); } - late final __objc_msgSend_293Ptr = _lookup< + late final _sec_retainPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer Function(ffi.Pointer)>>('sec_retain'); + late final _sec_retain = _sec_retainPtr + .asFunction Function(ffi.Pointer)>(); - late final _sel_removeObject_1 = _registerName1("removeObject:"); - late final _sel_removeObjectIdenticalTo_inRange_1 = - _registerName1("removeObjectIdenticalTo:inRange:"); - late final _sel_removeObjectIdenticalTo_1 = - _registerName1("removeObjectIdenticalTo:"); - late final _sel_removeObjectsFromIndices_numIndices_1 = - _registerName1("removeObjectsFromIndices:numIndices:"); - void _objc_msgSend_294( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indices, - int cnt, + void sec_release( + ffi.Pointer obj, ) { - return __objc_msgSend_294( + return _sec_release( obj, - sel, - indices, - cnt, ); } - late final __objc_msgSend_294Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + late final _sec_releasePtr = + _lookup)>>( + 'sec_release'); + late final _sec_release = + _sec_releasePtr.asFunction)>(); - late final _sel_removeObjectsInArray_1 = - _registerName1("removeObjectsInArray:"); - late final _sel_removeObjectsInRange_1 = - _registerName1("removeObjectsInRange:"); - late final _sel_replaceObjectsInRange_withObjectsFromArray_range_1 = - _registerName1("replaceObjectsInRange:withObjectsFromArray:range:"); - void _objc_msgSend_295( - ffi.Pointer obj, - ffi.Pointer sel, - NSRange range, - ffi.Pointer otherArray, - NSRange otherRange, + CFStringRef SecCopyErrorMessageString( + int status, + ffi.Pointer reserved, ) { - return __objc_msgSend_295( - obj, - sel, - range, - otherArray, - otherRange, + return _SecCopyErrorMessageString( + status, + reserved, ); } - late final __objc_msgSend_295Ptr = _lookup< + late final _SecCopyErrorMessageStringPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, - ffi.Pointer, NSRange)>(); + CFStringRef Function( + OSStatus, ffi.Pointer)>>('SecCopyErrorMessageString'); + late final _SecCopyErrorMessageString = _SecCopyErrorMessageStringPtr + .asFunction)>(); - late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = - _registerName1("replaceObjectsInRange:withObjectsFromArray:"); - void _objc_msgSend_296( - ffi.Pointer obj, - ffi.Pointer sel, - NSRange range, - ffi.Pointer otherArray, + void __assert_rtn( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, ) { - return __objc_msgSend_296( - obj, - sel, - range, - otherArray, + return ___assert_rtn( + arg0, + arg1, + arg2, + arg3, ); } - late final __objc_msgSend_296Ptr = _lookup< + late final ___assert_rtnPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, - ffi.Pointer)>(); + 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 _sel_setArray_1 = _registerName1("setArray:"); - late final _sel_sortUsingFunction_context_1 = - _registerName1("sortUsingFunction:context:"); - void _objc_msgSend_297( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - compare, - ffi.Pointer context, + late final ffi.Pointer<_RuneLocale> __DefaultRuneLocale = + _lookup<_RuneLocale>('_DefaultRuneLocale'); + + _RuneLocale get _DefaultRuneLocale => __DefaultRuneLocale.ref; + + late final ffi.Pointer> __CurrentRuneLocale = + _lookup>('_CurrentRuneLocale'); + + ffi.Pointer<_RuneLocale> get _CurrentRuneLocale => __CurrentRuneLocale.value; + + set _CurrentRuneLocale(ffi.Pointer<_RuneLocale> value) => + __CurrentRuneLocale.value = value; + + int ___runetype( + int arg0, ) { - return __objc_msgSend_297( - obj, - sel, - compare, - context, + return ____runetype( + arg0, ); } - late final __objc_msgSend_297Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>(); + late final ____runetypePtr = _lookup< + ffi.NativeFunction>( + '___runetype'); + late final ____runetype = ____runetypePtr.asFunction(); - late final _sel_sortUsingSelector_1 = _registerName1("sortUsingSelector:"); - late final _sel_insertObjects_atIndexes_1 = - _registerName1("insertObjects:atIndexes:"); - void _objc_msgSend_298( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer objects, - ffi.Pointer indexes, + int ___tolower( + int arg0, ) { - return __objc_msgSend_298( - obj, - sel, - objects, - indexes, + return ____tolower( + arg0, ); } - late final __objc_msgSend_298Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final ____tolowerPtr = _lookup< + ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>>( + '___tolower'); + late final ____tolower = ____tolowerPtr.asFunction(); - late final _sel_removeObjectsAtIndexes_1 = - _registerName1("removeObjectsAtIndexes:"); - late final _sel_replaceObjectsAtIndexes_withObjects_1 = - _registerName1("replaceObjectsAtIndexes:withObjects:"); - void _objc_msgSend_299( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indexes, - ffi.Pointer objects, + int ___toupper( + int arg0, ) { - return __objc_msgSend_299( - obj, - sel, - indexes, - objects, + return ____toupper( + arg0, ); } - late final __objc_msgSend_299Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final ____toupperPtr = _lookup< + ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>>( + '___toupper'); + late final ____toupper = ____toupperPtr.asFunction(); - late final _sel_setObject_atIndexedSubscript_1 = - _registerName1("setObject:atIndexedSubscript:"); - late final _sel_sortUsingComparator_1 = - _registerName1("sortUsingComparator:"); - void _objc_msgSend_300( - ffi.Pointer obj, - ffi.Pointer sel, - NSComparator cmptr, + int __maskrune( + int arg0, + int arg1, ) { - return __objc_msgSend_300( - obj, - sel, - cmptr, + return ___maskrune( + arg0, + arg1, ); } - late final __objc_msgSend_300Ptr = _lookup< + late final ___maskrunePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< - void Function( - ffi.Pointer, ffi.Pointer, NSComparator)>(); + ffi.Int Function( + __darwin_ct_rune_t, ffi.UnsignedLong)>>('__maskrune'); + late final ___maskrune = ___maskrunePtr.asFunction(); - late final _sel_sortWithOptions_usingComparator_1 = - _registerName1("sortWithOptions:usingComparator:"); - void _objc_msgSend_301( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - NSComparator cmptr, + int __toupper( + int arg0, ) { - return __objc_msgSend_301( - obj, - sel, - opts, - cmptr, + return ___toupper1( + arg0, ); } - late final __objc_msgSend_301Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< - void Function( - ffi.Pointer, ffi.Pointer, int, NSComparator)>(); + late final ___toupperPtr = _lookup< + ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>>( + '__toupper'); + late final ___toupper1 = ___toupperPtr.asFunction(); - late final _sel_arrayWithCapacity_1 = _registerName1("arrayWithCapacity:"); - ffi.Pointer _objc_msgSend_302( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, + int __tolower( + int arg0, ) { - return __objc_msgSend_302( - obj, - sel, - path, + return ___tolower1( + arg0, ); } - late final __objc_msgSend_302Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final ___tolowerPtr = _lookup< + ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>>( + '__tolower'); + late final ___tolower1 = ___tolowerPtr.asFunction(); - ffi.Pointer _objc_msgSend_303( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ) { - return __objc_msgSend_303( - obj, - sel, - url, - ); + ffi.Pointer __error() { + return ___error(); } - late final __objc_msgSend_303Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final ___errorPtr = + _lookup Function()>>('__error'); + late final ___error = + ___errorPtr.asFunction Function()>(); - late final _sel_applyDifference_1 = _registerName1("applyDifference:"); - void _objc_msgSend_304( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer difference, - ) { - return __objc_msgSend_304( - obj, - sel, - difference, - ); + ffi.Pointer localeconv() { + return _localeconv(); } - late final __objc_msgSend_304Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _localeconvPtr = + _lookup Function()>>('localeconv'); + late final _localeconv = + _localeconvPtr.asFunction Function()>(); - late final _class_NSMutableData1 = _getClass1("NSMutableData"); - late final _sel_mutableBytes1 = _registerName1("mutableBytes"); - late final _sel_setLength_1 = _registerName1("setLength:"); - void _objc_msgSend_305( - ffi.Pointer obj, - ffi.Pointer sel, - int value, + ffi.Pointer setlocale( + int arg0, + ffi.Pointer arg1, ) { - return __objc_msgSend_305( - obj, - sel, - value, + return _setlocale( + arg0, + arg1, ); } - late final __objc_msgSend_305Ptr = _lookup< + late final _setlocalePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Int, ffi.Pointer)>>('setlocale'); + late final _setlocale = _setlocalePtr + .asFunction Function(int, ffi.Pointer)>(); - late final _sel_appendBytes_length_1 = _registerName1("appendBytes:length:"); - late final _sel_appendData_1 = _registerName1("appendData:"); - void _objc_msgSend_306( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, + int __math_errhandling() { + return ___math_errhandling(); + } + + late final ___math_errhandlingPtr = + _lookup>('__math_errhandling'); + late final ___math_errhandling = + ___math_errhandlingPtr.asFunction(); + + int __fpclassifyf( + double arg0, ) { - return __objc_msgSend_306( - obj, - sel, - other, + return ___fpclassifyf( + arg0, ); } - late final __objc_msgSend_306Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final ___fpclassifyfPtr = + _lookup>('__fpclassifyf'); + late final ___fpclassifyf = + ___fpclassifyfPtr.asFunction(); - late final _sel_increaseLengthBy_1 = _registerName1("increaseLengthBy:"); - late final _sel_replaceBytesInRange_withBytes_1 = - _registerName1("replaceBytesInRange:withBytes:"); - void _objc_msgSend_307( - ffi.Pointer obj, - ffi.Pointer sel, - NSRange range, - ffi.Pointer bytes, + int __fpclassifyd( + double arg0, ) { - return __objc_msgSend_307( - obj, - sel, - range, - bytes, + return ___fpclassifyd( + arg0, ); } - late final __objc_msgSend_307Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, - ffi.Pointer)>(); + late final ___fpclassifydPtr = + _lookup>( + '__fpclassifyd'); + late final ___fpclassifyd = + ___fpclassifydPtr.asFunction(); - late final _sel_resetBytesInRange_1 = _registerName1("resetBytesInRange:"); - late final _sel_setData_1 = _registerName1("setData:"); - late final _sel_replaceBytesInRange_withBytes_length_1 = - _registerName1("replaceBytesInRange:withBytes:length:"); - void _objc_msgSend_308( - ffi.Pointer obj, - ffi.Pointer sel, - NSRange range, - ffi.Pointer replacementBytes, - int replacementLength, + double acosf( + double arg0, ) { - return __objc_msgSend_308( - obj, - sel, - range, - replacementBytes, - replacementLength, + return _acosf( + arg0, ); } - late final __objc_msgSend_308Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, - ffi.Pointer, int)>(); + late final _acosfPtr = + _lookup>('acosf'); + late final _acosf = _acosfPtr.asFunction(); - late final _sel_dataWithCapacity_1 = _registerName1("dataWithCapacity:"); - late final _sel_dataWithLength_1 = _registerName1("dataWithLength:"); - late final _sel_initWithLength_1 = _registerName1("initWithLength:"); - late final _sel_decompressUsingAlgorithm_error_1 = - _registerName1("decompressUsingAlgorithm:error:"); - bool _objc_msgSend_309( - ffi.Pointer obj, - ffi.Pointer sel, - int algorithm, - ffi.Pointer> error, + double acos( + double arg0, ) { - return __objc_msgSend_309( - obj, - sel, - algorithm, - error, + return _acos( + arg0, ); } - late final __objc_msgSend_309Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer>)>(); + late final _acosPtr = + _lookup>('acos'); + late final _acos = _acosPtr.asFunction(); - late final _sel_compressUsingAlgorithm_error_1 = - _registerName1("compressUsingAlgorithm:error:"); - late final _class_NSPurgeableData1 = _getClass1("NSPurgeableData"); - late final _class_NSMutableDictionary1 = _getClass1("NSMutableDictionary"); - late final _sel_removeObjectForKey_1 = _registerName1("removeObjectForKey:"); - late final _sel_setObject_forKey_1 = _registerName1("setObject:forKey:"); - void _objc_msgSend_310( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - ffi.Pointer aKey, + double asinf( + double arg0, ) { - return __objc_msgSend_310( - obj, - sel, - anObject, - aKey, + return _asinf( + arg0, ); } - late final __objc_msgSend_310Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _asinfPtr = + _lookup>('asinf'); + late final _asinf = _asinfPtr.asFunction(); - late final _sel_addEntriesFromDictionary_1 = - _registerName1("addEntriesFromDictionary:"); - void _objc_msgSend_311( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherDictionary, + double asin( + double arg0, ) { - return __objc_msgSend_311( - obj, - sel, - otherDictionary, + return _asin( + arg0, ); } - late final __objc_msgSend_311Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _asinPtr = + _lookup>('asin'); + late final _asin = _asinPtr.asFunction(); - late final _sel_removeObjectsForKeys_1 = - _registerName1("removeObjectsForKeys:"); - late final _sel_setDictionary_1 = _registerName1("setDictionary:"); - late final _sel_setObject_forKeyedSubscript_1 = - _registerName1("setObject:forKeyedSubscript:"); - late final _sel_dictionaryWithCapacity_1 = - _registerName1("dictionaryWithCapacity:"); - ffi.Pointer _objc_msgSend_312( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, + double atanf( + double arg0, ) { - return __objc_msgSend_312( - obj, - sel, - path, + return _atanf( + arg0, ); } - late final __objc_msgSend_312Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _atanfPtr = + _lookup>('atanf'); + late final _atanf = _atanfPtr.asFunction(); - ffi.Pointer _objc_msgSend_313( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, + double atan( + double arg0, ) { - return __objc_msgSend_313( - obj, - sel, - url, + return _atan( + arg0, ); } - late final __objc_msgSend_313Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _atanPtr = + _lookup>('atan'); + late final _atan = _atanPtr.asFunction(); - late final _sel_dictionaryWithSharedKeySet_1 = - _registerName1("dictionaryWithSharedKeySet:"); - ffi.Pointer _objc_msgSend_314( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keyset, + double atan2f( + double arg0, + double arg1, ) { - return __objc_msgSend_314( - obj, - sel, - keyset, + return _atan2f( + arg0, + arg1, ); } - late final __objc_msgSend_314Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _atan2fPtr = + _lookup>( + 'atan2f'); + late final _atan2f = _atan2fPtr.asFunction(); - late final _class_NSNotification1 = _getClass1("NSNotification"); - late final _sel_name1 = _registerName1("name"); - late final _sel_initWithName_object_userInfo_1 = - _registerName1("initWithName:object:userInfo:"); - instancetype _objc_msgSend_315( - ffi.Pointer obj, - ffi.Pointer sel, - NSNotificationName name, - ffi.Pointer object, - ffi.Pointer userInfo, + double atan2( + double arg0, + double arg1, ) { - return __objc_msgSend_315( - obj, - sel, - name, - object, - userInfo, + return _atan2( + arg0, + arg1, ); } - late final __objc_msgSend_315Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - NSNotificationName, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - NSNotificationName, - ffi.Pointer, - ffi.Pointer)>(); + late final _atan2Ptr = + _lookup>( + 'atan2'); + late final _atan2 = _atan2Ptr.asFunction(); - late final _sel_notificationWithName_object_1 = - _registerName1("notificationWithName:object:"); - late final _sel_notificationWithName_object_userInfo_1 = - _registerName1("notificationWithName:object:userInfo:"); - late final _class_NSNotificationCenter1 = _getClass1("NSNotificationCenter"); - late final _sel_defaultCenter1 = _registerName1("defaultCenter"); - ffi.Pointer _objc_msgSend_316( - ffi.Pointer obj, - ffi.Pointer sel, + double cosf( + double arg0, ) { - return __objc_msgSend_316( - obj, - sel, + return _cosf( + arg0, ); } - late final __objc_msgSend_316Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + late final _cosfPtr = + _lookup>('cosf'); + late final _cosf = _cosfPtr.asFunction(); - late final _sel_addObserver_selector_name_object_1 = - _registerName1("addObserver:selector:name:object:"); - void _objc_msgSend_317( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer observer, - ffi.Pointer aSelector, - NSNotificationName aName, - ffi.Pointer anObject, + double cos( + double arg0, ) { - return __objc_msgSend_317( - obj, - sel, - observer, - aSelector, - aName, - anObject, + return _cos( + arg0, ); } - late final __objc_msgSend_317Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSNotificationName, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSNotificationName, - ffi.Pointer)>(); + late final _cosPtr = + _lookup>('cos'); + late final _cos = _cosPtr.asFunction(); - late final _sel_postNotification_1 = _registerName1("postNotification:"); - void _objc_msgSend_318( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer notification, + double sinf( + double arg0, ) { - return __objc_msgSend_318( - obj, - sel, - notification, + return _sinf( + arg0, ); } - late final __objc_msgSend_318Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _sinfPtr = + _lookup>('sinf'); + late final _sinf = _sinfPtr.asFunction(); - late final _sel_postNotificationName_object_1 = - _registerName1("postNotificationName:object:"); - void _objc_msgSend_319( - ffi.Pointer obj, - ffi.Pointer sel, - NSNotificationName aName, - ffi.Pointer anObject, + double sin( + double arg0, ) { - return __objc_msgSend_319( - obj, - sel, - aName, - anObject, + return _sin( + arg0, ); } - late final __objc_msgSend_319Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSNotificationName, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - NSNotificationName, ffi.Pointer)>(); + late final _sinPtr = + _lookup>('sin'); + late final _sin = _sinPtr.asFunction(); - late final _sel_postNotificationName_object_userInfo_1 = - _registerName1("postNotificationName:object:userInfo:"); - void _objc_msgSend_320( - ffi.Pointer obj, - ffi.Pointer sel, - NSNotificationName aName, - ffi.Pointer anObject, - ffi.Pointer aUserInfo, + double tanf( + double arg0, ) { - return __objc_msgSend_320( - obj, - sel, - aName, - anObject, - aUserInfo, + return _tanf( + arg0, ); } - late final __objc_msgSend_320Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSNotificationName, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSNotificationName, - ffi.Pointer, - ffi.Pointer)>(); + late final _tanfPtr = + _lookup>('tanf'); + late final _tanf = _tanfPtr.asFunction(); - late final _sel_removeObserver_1 = _registerName1("removeObserver:"); - late final _sel_removeObserver_name_object_1 = - _registerName1("removeObserver:name:object:"); - void _objc_msgSend_321( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer observer, - NSNotificationName aName, - ffi.Pointer anObject, + double tan( + double arg0, ) { - return __objc_msgSend_321( - obj, - sel, - observer, - aName, - anObject, + return _tan( + arg0, ); } - late final __objc_msgSend_321Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSNotificationName, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSNotificationName, - ffi.Pointer)>(); + late final _tanPtr = + _lookup>('tan'); + late final _tan = _tanPtr.asFunction(); - late final _class_NSOperationQueue1 = _getClass1("NSOperationQueue"); - late final _class_NSProgress1 = _getClass1("NSProgress"); - late final _sel_currentProgress1 = _registerName1("currentProgress"); - ffi.Pointer _objc_msgSend_322( - ffi.Pointer obj, - ffi.Pointer sel, + double acoshf( + double arg0, ) { - return __objc_msgSend_322( - obj, - sel, + return _acoshf( + arg0, ); } - late final __objc_msgSend_322Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + late final _acoshfPtr = + _lookup>('acoshf'); + late final _acoshf = _acoshfPtr.asFunction(); - late final _sel_progressWithTotalUnitCount_1 = - _registerName1("progressWithTotalUnitCount:"); - ffi.Pointer _objc_msgSend_323( - ffi.Pointer obj, - ffi.Pointer sel, - int unitCount, + double acosh( + double arg0, ) { - return __objc_msgSend_323( - obj, - sel, - unitCount, + return _acosh( + arg0, ); } - late final __objc_msgSend_323Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + late final _acoshPtr = + _lookup>('acosh'); + late final _acosh = _acoshPtr.asFunction(); - late final _sel_discreteProgressWithTotalUnitCount_1 = - _registerName1("discreteProgressWithTotalUnitCount:"); - late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_1 = - _registerName1("progressWithTotalUnitCount:parent:pendingUnitCount:"); - ffi.Pointer _objc_msgSend_324( - ffi.Pointer obj, - ffi.Pointer sel, - int unitCount, - ffi.Pointer parent, - int portionOfParentTotalUnitCount, + double asinhf( + double arg0, ) { - return __objc_msgSend_324( - obj, - sel, - unitCount, - parent, - portionOfParentTotalUnitCount, + return _asinhf( + arg0, ); } - late final __objc_msgSend_324Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer, int)>(); + late final _asinhfPtr = + _lookup>('asinhf'); + late final _asinhf = _asinhfPtr.asFunction(); - late final _sel_initWithParent_userInfo_1 = - _registerName1("initWithParent:userInfo:"); - instancetype _objc_msgSend_325( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer parentProgressOrNil, - ffi.Pointer userInfoOrNil, + double asinh( + double arg0, ) { - return __objc_msgSend_325( - obj, - sel, - parentProgressOrNil, - userInfoOrNil, + return _asinh( + arg0, ); } - late final __objc_msgSend_325Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _asinhPtr = + _lookup>('asinh'); + late final _asinh = _asinhPtr.asFunction(); - late final _sel_becomeCurrentWithPendingUnitCount_1 = - _registerName1("becomeCurrentWithPendingUnitCount:"); - void _objc_msgSend_326( - ffi.Pointer obj, - ffi.Pointer sel, - int unitCount, + double atanhf( + double arg0, ) { - return __objc_msgSend_326( - obj, - sel, - unitCount, + return _atanhf( + arg0, ); } - late final __objc_msgSend_326Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _atanhfPtr = + _lookup>('atanhf'); + late final _atanhf = _atanhfPtr.asFunction(); - late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_1 = - _registerName1("performAsCurrentWithPendingUnitCount:usingBlock:"); - void _objc_msgSend_327( - ffi.Pointer obj, - ffi.Pointer sel, - int unitCount, - ffi.Pointer<_ObjCBlock> work, + double atanh( + double arg0, ) { - return __objc_msgSend_327( - obj, - sel, - unitCount, - work, + return _atanh( + arg0, ); } - late final __objc_msgSend_327Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); + late final _atanhPtr = + _lookup>('atanh'); + late final _atanh = _atanhPtr.asFunction(); - late final _sel_resignCurrent1 = _registerName1("resignCurrent"); - late final _sel_addChild_withPendingUnitCount_1 = - _registerName1("addChild:withPendingUnitCount:"); - void _objc_msgSend_328( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer child, - int inUnitCount, + double coshf( + double arg0, ) { - return __objc_msgSend_328( - obj, - sel, - child, - inUnitCount, + return _coshf( + arg0, ); } - late final __objc_msgSend_328Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + late final _coshfPtr = + _lookup>('coshf'); + late final _coshf = _coshfPtr.asFunction(); - late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); - int _objc_msgSend_329( - ffi.Pointer obj, - ffi.Pointer sel, + double cosh( + double arg0, ) { - return __objc_msgSend_329( - obj, - sel, + return _cosh( + arg0, ); } - late final __objc_msgSend_329Ptr = _lookup< - ffi.NativeFunction< - ffi.Int64 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + late final _coshPtr = + _lookup>('cosh'); + late final _cosh = _coshPtr.asFunction(); - late final _sel_setTotalUnitCount_1 = _registerName1("setTotalUnitCount:"); - void _objc_msgSend_330( - ffi.Pointer obj, - ffi.Pointer sel, - int value, + double sinhf( + double arg0, ) { - return __objc_msgSend_330( - obj, - sel, - value, + return _sinhf( + arg0, ); } - late final __objc_msgSend_330Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _sinhfPtr = + _lookup>('sinhf'); + late final _sinhf = _sinhfPtr.asFunction(); - late final _sel_completedUnitCount1 = _registerName1("completedUnitCount"); - late final _sel_setCompletedUnitCount_1 = - _registerName1("setCompletedUnitCount:"); - late final _sel_setLocalizedDescription_1 = - _registerName1("setLocalizedDescription:"); - void _objc_msgSend_331( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, + double sinh( + double arg0, ) { - return __objc_msgSend_331( - obj, - sel, - value, + return _sinh( + arg0, ); } - late final __objc_msgSend_331Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _sinhPtr = + _lookup>('sinh'); + late final _sinh = _sinhPtr.asFunction(); - late final _sel_localizedAdditionalDescription1 = - _registerName1("localizedAdditionalDescription"); - late final _sel_setLocalizedAdditionalDescription_1 = - _registerName1("setLocalizedAdditionalDescription:"); - late final _sel_isCancellable1 = _registerName1("isCancellable"); - late final _sel_setCancellable_1 = _registerName1("setCancellable:"); - void _objc_msgSend_332( - ffi.Pointer obj, - ffi.Pointer sel, - bool value, + double tanhf( + double arg0, ) { - return __objc_msgSend_332( - obj, - sel, - value, + return _tanhf( + arg0, ); } - late final __objc_msgSend_332Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, bool)>(); + late final _tanhfPtr = + _lookup>('tanhf'); + late final _tanhf = _tanhfPtr.asFunction(); - late final _sel_isPausable1 = _registerName1("isPausable"); - late final _sel_setPausable_1 = _registerName1("setPausable:"); - late final _sel_isCancelled1 = _registerName1("isCancelled"); - late final _sel_isPaused1 = _registerName1("isPaused"); - late final _sel_cancellationHandler1 = _registerName1("cancellationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_333( - ffi.Pointer obj, - ffi.Pointer sel, + double tanh( + double arg0, ) { - return __objc_msgSend_333( - obj, - sel, + return _tanh( + arg0, ); } - late final __objc_msgSend_333Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>(); + late final _tanhPtr = + _lookup>('tanh'); + late final _tanh = _tanhPtr.asFunction(); - late final _sel_setCancellationHandler_1 = - _registerName1("setCancellationHandler:"); - void _objc_msgSend_334( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> value, + double expf( + double arg0, ) { - return __objc_msgSend_334( - obj, - sel, - value, + return _expf( + arg0, ); } - late final __objc_msgSend_334Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + late final _expfPtr = + _lookup>('expf'); + late final _expf = _expfPtr.asFunction(); - late final _sel_pausingHandler1 = _registerName1("pausingHandler"); - late final _sel_setPausingHandler_1 = _registerName1("setPausingHandler:"); - late final _sel_resumingHandler1 = _registerName1("resumingHandler"); - late final _sel_setResumingHandler_1 = _registerName1("setResumingHandler:"); - late final _sel_setUserInfoObject_forKey_1 = - _registerName1("setUserInfoObject:forKey:"); - late final _sel_isIndeterminate1 = _registerName1("isIndeterminate"); - late final _sel_fractionCompleted1 = _registerName1("fractionCompleted"); - late final _sel_isFinished1 = _registerName1("isFinished"); - late final _sel_cancel1 = _registerName1("cancel"); - late final _sel_pause1 = _registerName1("pause"); - late final _sel_resume1 = _registerName1("resume"); - late final _sel_kind1 = _registerName1("kind"); - late final _sel_setKind_1 = _registerName1("setKind:"); - late final _sel_estimatedTimeRemaining1 = - _registerName1("estimatedTimeRemaining"); - late final _sel_setEstimatedTimeRemaining_1 = - _registerName1("setEstimatedTimeRemaining:"); - void _objc_msgSend_335( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, + double exp( + double arg0, ) { - return __objc_msgSend_335( - obj, - sel, - value, + return _exp( + arg0, ); } - late final __objc_msgSend_335Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _expPtr = + _lookup>('exp'); + late final _exp = _expPtr.asFunction(); - late final _sel_throughput1 = _registerName1("throughput"); - late final _sel_setThroughput_1 = _registerName1("setThroughput:"); - late final _sel_fileOperationKind1 = _registerName1("fileOperationKind"); - late final _sel_setFileOperationKind_1 = - _registerName1("setFileOperationKind:"); - late final _sel_fileURL1 = _registerName1("fileURL"); - late final _sel_setFileURL_1 = _registerName1("setFileURL:"); - void _objc_msgSend_336( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, + double exp2f( + double arg0, ) { - return __objc_msgSend_336( - obj, - sel, - value, + return _exp2f( + arg0, ); } - late final __objc_msgSend_336Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _exp2fPtr = + _lookup>('exp2f'); + late final _exp2f = _exp2fPtr.asFunction(); - late final _sel_fileTotalCount1 = _registerName1("fileTotalCount"); - late final _sel_setFileTotalCount_1 = _registerName1("setFileTotalCount:"); - late final _sel_fileCompletedCount1 = _registerName1("fileCompletedCount"); - late final _sel_setFileCompletedCount_1 = - _registerName1("setFileCompletedCount:"); - late final _sel_publish1 = _registerName1("publish"); - late final _sel_unpublish1 = _registerName1("unpublish"); - late final _sel_addSubscriberForFileURL_withPublishingHandler_1 = - _registerName1("addSubscriberForFileURL:withPublishingHandler:"); - ffi.Pointer _objc_msgSend_337( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - NSProgressPublishingHandler publishingHandler, + double exp2( + double arg0, ) { - return __objc_msgSend_337( - obj, - sel, - url, - publishingHandler, + return _exp2( + arg0, ); } - late final __objc_msgSend_337Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSProgressPublishingHandler)>>('objc_msgSend'); - late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSProgressPublishingHandler)>(); + late final _exp2Ptr = + _lookup>('exp2'); + late final _exp2 = _exp2Ptr.asFunction(); - late final _sel_removeSubscriber_1 = _registerName1("removeSubscriber:"); - late final _sel_isOld1 = _registerName1("isOld"); - late final _sel_progress1 = _registerName1("progress"); - late final _class_NSOperation1 = _getClass1("NSOperation"); - late final _sel_start1 = _registerName1("start"); - late final _sel_main1 = _registerName1("main"); - late final _sel_isExecuting1 = _registerName1("isExecuting"); - late final _sel_isConcurrent1 = _registerName1("isConcurrent"); - late final _sel_isAsynchronous1 = _registerName1("isAsynchronous"); - late final _sel_isReady1 = _registerName1("isReady"); - late final _sel_addDependency_1 = _registerName1("addDependency:"); - void _objc_msgSend_338( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer op, + double expm1f( + double arg0, ) { - return __objc_msgSend_338( - obj, - sel, - op, + return _expm1f( + arg0, ); } - late final __objc_msgSend_338Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _expm1fPtr = + _lookup>('expm1f'); + late final _expm1f = _expm1fPtr.asFunction(); - late final _sel_removeDependency_1 = _registerName1("removeDependency:"); - late final _sel_dependencies1 = _registerName1("dependencies"); - late final _sel_queuePriority1 = _registerName1("queuePriority"); - int _objc_msgSend_339( - ffi.Pointer obj, - ffi.Pointer sel, + double expm1( + double arg0, ) { - return __objc_msgSend_339( - obj, - sel, + return _expm1( + arg0, ); } - late final __objc_msgSend_339Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + late final _expm1Ptr = + _lookup>('expm1'); + late final _expm1 = _expm1Ptr.asFunction(); - late final _sel_setQueuePriority_1 = _registerName1("setQueuePriority:"); - void _objc_msgSend_340( - ffi.Pointer obj, - ffi.Pointer sel, - int value, + double logf( + double arg0, ) { - return __objc_msgSend_340( - obj, - sel, - value, + return _logf( + arg0, ); } - late final __objc_msgSend_340Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _logfPtr = + _lookup>('logf'); + late final _logf = _logfPtr.asFunction(); - late final _sel_completionBlock1 = _registerName1("completionBlock"); - late final _sel_setCompletionBlock_1 = _registerName1("setCompletionBlock:"); - late final _sel_waitUntilFinished1 = _registerName1("waitUntilFinished"); - late final _sel_threadPriority1 = _registerName1("threadPriority"); - late final _sel_setThreadPriority_1 = _registerName1("setThreadPriority:"); - void _objc_msgSend_341( - ffi.Pointer obj, - ffi.Pointer sel, - double value, + double log( + double arg0, ) { - return __objc_msgSend_341( - obj, - sel, - value, + return _log( + arg0, ); } - late final __objc_msgSend_341Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, double)>(); + late final _logPtr = + _lookup>('log'); + late final _log = _logPtr.asFunction(); - late final _sel_qualityOfService1 = _registerName1("qualityOfService"); - int _objc_msgSend_342( - ffi.Pointer obj, - ffi.Pointer sel, + double log10f( + double arg0, ) { - return __objc_msgSend_342( - obj, - sel, + return _log10f( + arg0, ); } - late final __objc_msgSend_342Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + late final _log10fPtr = + _lookup>('log10f'); + late final _log10f = _log10fPtr.asFunction(); - late final _sel_setQualityOfService_1 = - _registerName1("setQualityOfService:"); - void _objc_msgSend_343( - ffi.Pointer obj, - ffi.Pointer sel, - int value, + double log10( + double arg0, ) { - return __objc_msgSend_343( - obj, - sel, - value, + return _log10( + arg0, ); } - late final __objc_msgSend_343Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _log10Ptr = + _lookup>('log10'); + late final _log10 = _log10Ptr.asFunction(); - late final _sel_setName_1 = _registerName1("setName:"); - late final _sel_addOperation_1 = _registerName1("addOperation:"); - late final _sel_addOperations_waitUntilFinished_1 = - _registerName1("addOperations:waitUntilFinished:"); - void _objc_msgSend_344( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer ops, - bool wait, + double log2f( + double arg0, ) { - return __objc_msgSend_344( - obj, - sel, - ops, - wait, + return _log2f( + arg0, ); } - late final __objc_msgSend_344Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + late final _log2fPtr = + _lookup>('log2f'); + late final _log2f = _log2fPtr.asFunction(); - late final _sel_addOperationWithBlock_1 = - _registerName1("addOperationWithBlock:"); - void _objc_msgSend_345( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, + double log2( + double arg0, ) { - return __objc_msgSend_345( - obj, - sel, - block, + return _log2( + arg0, ); } - late final __objc_msgSend_345Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + late final _log2Ptr = + _lookup>('log2'); + late final _log2 = _log2Ptr.asFunction(); - late final _sel_addBarrierBlock_1 = _registerName1("addBarrierBlock:"); - late final _sel_maxConcurrentOperationCount1 = - _registerName1("maxConcurrentOperationCount"); - late final _sel_setMaxConcurrentOperationCount_1 = - _registerName1("setMaxConcurrentOperationCount:"); - void _objc_msgSend_346( - ffi.Pointer obj, - ffi.Pointer sel, - int value, + double log1pf( + double arg0, ) { - return __objc_msgSend_346( - obj, - sel, - value, + return _log1pf( + arg0, ); } - late final __objc_msgSend_346Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _log1pfPtr = + _lookup>('log1pf'); + late final _log1pf = _log1pfPtr.asFunction(); - late final _sel_isSuspended1 = _registerName1("isSuspended"); - late final _sel_setSuspended_1 = _registerName1("setSuspended:"); - late final _sel_underlyingQueue1 = _registerName1("underlyingQueue"); - dispatch_queue_t _objc_msgSend_347( - ffi.Pointer obj, - ffi.Pointer sel, + double log1p( + double arg0, ) { - return __objc_msgSend_347( - obj, - sel, + return _log1p( + arg0, ); } - late final __objc_msgSend_347Ptr = _lookup< - ffi.NativeFunction< - dispatch_queue_t Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< - dispatch_queue_t Function( - ffi.Pointer, ffi.Pointer)>(); + late final _log1pPtr = + _lookup>('log1p'); + late final _log1p = _log1pPtr.asFunction(); - late final _sel_setUnderlyingQueue_1 = _registerName1("setUnderlyingQueue:"); - void _objc_msgSend_348( - ffi.Pointer obj, - ffi.Pointer sel, - dispatch_queue_t value, + double logbf( + double arg0, ) { - return __objc_msgSend_348( - obj, - sel, - value, + return _logbf( + arg0, ); } - late final __objc_msgSend_348Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - dispatch_queue_t)>>('objc_msgSend'); - late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< - void Function( - ffi.Pointer, ffi.Pointer, dispatch_queue_t)>(); + late final _logbfPtr = + _lookup>('logbf'); + late final _logbf = _logbfPtr.asFunction(); - late final _sel_cancelAllOperations1 = _registerName1("cancelAllOperations"); - late final _sel_waitUntilAllOperationsAreFinished1 = - _registerName1("waitUntilAllOperationsAreFinished"); - late final _sel_currentQueue1 = _registerName1("currentQueue"); - ffi.Pointer _objc_msgSend_349( - ffi.Pointer obj, - ffi.Pointer sel, + double logb( + double arg0, ) { - return __objc_msgSend_349( - obj, - sel, + return _logb( + arg0, ); } - late final __objc_msgSend_349Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + late final _logbPtr = + _lookup>('logb'); + late final _logb = _logbPtr.asFunction(); - late final _sel_mainQueue1 = _registerName1("mainQueue"); - late final _sel_operations1 = _registerName1("operations"); - late final _sel_operationCount1 = _registerName1("operationCount"); - late final _sel_addObserverForName_object_queue_usingBlock_1 = - _registerName1("addObserverForName:object:queue:usingBlock:"); - ffi.Pointer _objc_msgSend_350( - ffi.Pointer obj, - ffi.Pointer sel, - NSNotificationName name, - ffi.Pointer obj1, - ffi.Pointer queue, - ffi.Pointer<_ObjCBlock> block, + double modff( + double arg0, + ffi.Pointer arg1, ) { - return __objc_msgSend_350( - obj, - sel, - name, - obj1, - queue, - block, + return _modff( + arg0, + arg1, ); } - late final __objc_msgSend_350Ptr = _lookup< + late final _modffPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSNotificationName, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSNotificationName, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final ffi.Pointer - _NSSystemClockDidChangeNotification = - _lookup('NSSystemClockDidChangeNotification'); - - NSNotificationName get NSSystemClockDidChangeNotification => - _NSSystemClockDidChangeNotification.value; - - set NSSystemClockDidChangeNotification(NSNotificationName value) => - _NSSystemClockDidChangeNotification.value = value; + ffi.Float Function(ffi.Float, ffi.Pointer)>>('modff'); + late final _modff = + _modffPtr.asFunction)>(); - late final _class_NSDate1 = _getClass1("NSDate"); - late final _sel_timeIntervalSinceReferenceDate1 = - _registerName1("timeIntervalSinceReferenceDate"); - late final _sel_initWithTimeIntervalSinceReferenceDate_1 = - _registerName1("initWithTimeIntervalSinceReferenceDate:"); - instancetype _objc_msgSend_351( - ffi.Pointer obj, - ffi.Pointer sel, - double ti, + double modf( + double arg0, + ffi.Pointer arg1, ) { - return __objc_msgSend_351( - obj, - sel, - ti, + return _modf( + arg0, + arg1, ); } - late final __objc_msgSend_351Ptr = _lookup< + late final _modfPtr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, double)>(); + ffi.Double Function(ffi.Double, ffi.Pointer)>>('modf'); + late final _modf = + _modfPtr.asFunction)>(); - late final _sel_timeIntervalSinceDate_1 = - _registerName1("timeIntervalSinceDate:"); - double _objc_msgSend_352( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anotherDate, + double ldexpf( + double arg0, + int arg1, ) { - return __objc_msgSend_352( - obj, - sel, - anotherDate, + return _ldexpf( + arg0, + arg1, ); } - late final __objc_msgSend_352Ptr = _lookup< - ffi.NativeFunction< - NSTimeInterval Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< - double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _ldexpfPtr = + _lookup>( + 'ldexpf'); + late final _ldexpf = _ldexpfPtr.asFunction(); - late final _sel_timeIntervalSinceNow1 = - _registerName1("timeIntervalSinceNow"); - late final _sel_timeIntervalSince19701 = - _registerName1("timeIntervalSince1970"); - late final _sel_addTimeInterval_1 = _registerName1("addTimeInterval:"); - late final _sel_dateByAddingTimeInterval_1 = - _registerName1("dateByAddingTimeInterval:"); - late final _sel_earlierDate_1 = _registerName1("earlierDate:"); - ffi.Pointer _objc_msgSend_353( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anotherDate, + double ldexp( + double arg0, + int arg1, ) { - return __objc_msgSend_353( - obj, - sel, - anotherDate, + return _ldexp( + arg0, + arg1, ); } - late final __objc_msgSend_353Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _ldexpPtr = + _lookup>( + 'ldexp'); + late final _ldexp = _ldexpPtr.asFunction(); - late final _sel_laterDate_1 = _registerName1("laterDate:"); - int _objc_msgSend_354( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, + double frexpf( + double arg0, + ffi.Pointer arg1, ) { - return __objc_msgSend_354( - obj, - sel, - other, + return _frexpf( + arg0, + arg1, ); } - late final __objc_msgSend_354Ptr = _lookup< + late final _frexpfPtr = _lookup< ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Float Function(ffi.Float, ffi.Pointer)>>('frexpf'); + late final _frexpf = + _frexpfPtr.asFunction)>(); - late final _sel_isEqualToDate_1 = _registerName1("isEqualToDate:"); - bool _objc_msgSend_355( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherDate, + double frexp( + double arg0, + ffi.Pointer arg1, ) { - return __objc_msgSend_355( - obj, - sel, - otherDate, + return _frexp( + arg0, + arg1, ); } - late final __objc_msgSend_355Ptr = _lookup< + late final _frexpPtr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Double Function(ffi.Double, ffi.Pointer)>>('frexp'); + late final _frexp = + _frexpPtr.asFunction)>(); - late final _sel_date1 = _registerName1("date"); - late final _sel_dateWithTimeIntervalSinceNow_1 = - _registerName1("dateWithTimeIntervalSinceNow:"); - late final _sel_dateWithTimeIntervalSinceReferenceDate_1 = - _registerName1("dateWithTimeIntervalSinceReferenceDate:"); - late final _sel_dateWithTimeIntervalSince1970_1 = - _registerName1("dateWithTimeIntervalSince1970:"); - late final _sel_dateWithTimeInterval_sinceDate_1 = - _registerName1("dateWithTimeInterval:sinceDate:"); - instancetype _objc_msgSend_356( - ffi.Pointer obj, - ffi.Pointer sel, - double secsToBeAdded, - ffi.Pointer date, + int ilogbf( + double arg0, ) { - return __objc_msgSend_356( - obj, - sel, - secsToBeAdded, - date, + return _ilogbf( + arg0, ); } - late final __objc_msgSend_356Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - NSTimeInterval, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - double, ffi.Pointer)>(); + late final _ilogbfPtr = + _lookup>('ilogbf'); + late final _ilogbf = _ilogbfPtr.asFunction(); - late final _sel_distantFuture1 = _registerName1("distantFuture"); - ffi.Pointer _objc_msgSend_357( - ffi.Pointer obj, - ffi.Pointer sel, + int ilogb( + double arg0, ) { - return __objc_msgSend_357( - obj, - sel, + return _ilogb( + arg0, ); } - late final __objc_msgSend_357Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + late final _ilogbPtr = + _lookup>('ilogb'); + late final _ilogb = _ilogbPtr.asFunction(); - late final _sel_distantPast1 = _registerName1("distantPast"); - late final _sel_now1 = _registerName1("now"); - late final _sel_initWithTimeIntervalSinceNow_1 = - _registerName1("initWithTimeIntervalSinceNow:"); - late final _sel_initWithTimeIntervalSince1970_1 = - _registerName1("initWithTimeIntervalSince1970:"); - late final _sel_initWithTimeInterval_sinceDate_1 = - _registerName1("initWithTimeInterval:sinceDate:"); - late final _class_NSURLRequest1 = _getClass1("NSURLRequest"); - late final _sel_requestWithURL_1 = _registerName1("requestWithURL:"); - late final _sel_supportsSecureCoding1 = - _registerName1("supportsSecureCoding"); - late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = - _registerName1("requestWithURL:cachePolicy:timeoutInterval:"); - instancetype _objc_msgSend_358( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer URL, - int cachePolicy, - double timeoutInterval, + double scalbnf( + double arg0, + int arg1, ) { - return __objc_msgSend_358( - obj, - sel, - URL, - cachePolicy, - timeoutInterval, + return _scalbnf( + arg0, + arg1, ); } - late final __objc_msgSend_358Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, double)>(); + late final _scalbnfPtr = + _lookup>( + 'scalbnf'); + late final _scalbnf = _scalbnfPtr.asFunction(); - late final _sel_initWithURL_1 = _registerName1("initWithURL:"); - late final _sel_initWithURL_cachePolicy_timeoutInterval_1 = - _registerName1("initWithURL:cachePolicy:timeoutInterval:"); - late final _sel_URL1 = _registerName1("URL"); - late final _sel_cachePolicy1 = _registerName1("cachePolicy"); - int _objc_msgSend_359( - ffi.Pointer obj, - ffi.Pointer sel, + double scalbn( + double arg0, + int arg1, ) { - return __objc_msgSend_359( - obj, - sel, + return _scalbn( + arg0, + arg1, ); } - late final __objc_msgSend_359Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + late final _scalbnPtr = + _lookup>( + 'scalbn'); + late final _scalbn = _scalbnPtr.asFunction(); - late final _sel_timeoutInterval1 = _registerName1("timeoutInterval"); - late final _sel_mainDocumentURL1 = _registerName1("mainDocumentURL"); - late final _sel_networkServiceType1 = _registerName1("networkServiceType"); - int _objc_msgSend_360( - ffi.Pointer obj, - ffi.Pointer sel, + double scalblnf( + double arg0, + int arg1, ) { - return __objc_msgSend_360( - obj, - sel, + return _scalblnf( + arg0, + arg1, ); } - late final __objc_msgSend_360Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + late final _scalblnfPtr = + _lookup>( + 'scalblnf'); + late final _scalblnf = + _scalblnfPtr.asFunction(); - late final _sel_allowsCellularAccess1 = - _registerName1("allowsCellularAccess"); - late final _sel_allowsExpensiveNetworkAccess1 = - _registerName1("allowsExpensiveNetworkAccess"); - late final _sel_allowsConstrainedNetworkAccess1 = - _registerName1("allowsConstrainedNetworkAccess"); - late final _sel_assumesHTTP3Capable1 = _registerName1("assumesHTTP3Capable"); - late final _sel_attribution1 = _registerName1("attribution"); - int _objc_msgSend_361( - ffi.Pointer obj, - ffi.Pointer sel, + double scalbln( + double arg0, + int arg1, ) { - return __objc_msgSend_361( - obj, - sel, + return _scalbln( + arg0, + arg1, ); } - late final __objc_msgSend_361Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + late final _scalblnPtr = + _lookup>( + 'scalbln'); + late final _scalbln = _scalblnPtr.asFunction(); - late final _sel_requiresDNSSECValidation1 = - _registerName1("requiresDNSSECValidation"); - late final _sel_HTTPMethod1 = _registerName1("HTTPMethod"); - late final _sel_allHTTPHeaderFields1 = _registerName1("allHTTPHeaderFields"); - late final _sel_valueForHTTPHeaderField_1 = - _registerName1("valueForHTTPHeaderField:"); - late final _sel_HTTPBody1 = _registerName1("HTTPBody"); - late final _class_NSInputStream1 = _getClass1("NSInputStream"); - late final _sel_HTTPBodyStream1 = _registerName1("HTTPBodyStream"); - ffi.Pointer _objc_msgSend_362( - ffi.Pointer obj, - ffi.Pointer sel, + double fabsf( + double arg0, ) { - return __objc_msgSend_362( - obj, - sel, + return _fabsf( + arg0, ); } - late final __objc_msgSend_362Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + late final _fabsfPtr = + _lookup>('fabsf'); + late final _fabsf = _fabsfPtr.asFunction(); - late final _sel_HTTPShouldHandleCookies1 = - _registerName1("HTTPShouldHandleCookies"); - late final _sel_HTTPShouldUsePipelining1 = - _registerName1("HTTPShouldUsePipelining"); - late final _class_NSMutableURLRequest1 = _getClass1("NSMutableURLRequest"); - late final _sel_setURL_1 = _registerName1("setURL:"); - late final _sel_setCachePolicy_1 = _registerName1("setCachePolicy:"); - void _objc_msgSend_363( - ffi.Pointer obj, - ffi.Pointer sel, - int value, + double fabs( + double arg0, ) { - return __objc_msgSend_363( - obj, - sel, - value, + return _fabs( + arg0, ); } - late final __objc_msgSend_363Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _fabsPtr = + _lookup>('fabs'); + late final _fabs = _fabsPtr.asFunction(); - late final _sel_setTimeoutInterval_1 = _registerName1("setTimeoutInterval:"); - late final _sel_setMainDocumentURL_1 = _registerName1("setMainDocumentURL:"); - late final _sel_setNetworkServiceType_1 = - _registerName1("setNetworkServiceType:"); - void _objc_msgSend_364( - ffi.Pointer obj, - ffi.Pointer sel, - int value, + double cbrtf( + double arg0, ) { - return __objc_msgSend_364( - obj, - sel, - value, + return _cbrtf( + arg0, ); } - late final __objc_msgSend_364Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _cbrtfPtr = + _lookup>('cbrtf'); + late final _cbrtf = _cbrtfPtr.asFunction(); - late final _sel_setAllowsCellularAccess_1 = - _registerName1("setAllowsCellularAccess:"); - late final _sel_setAllowsExpensiveNetworkAccess_1 = - _registerName1("setAllowsExpensiveNetworkAccess:"); - late final _sel_setAllowsConstrainedNetworkAccess_1 = - _registerName1("setAllowsConstrainedNetworkAccess:"); - late final _sel_setAssumesHTTP3Capable_1 = - _registerName1("setAssumesHTTP3Capable:"); - late final _sel_setAttribution_1 = _registerName1("setAttribution:"); - void _objc_msgSend_365( - ffi.Pointer obj, - ffi.Pointer sel, - int value, + double cbrt( + double arg0, ) { - return __objc_msgSend_365( - obj, - sel, - value, + return _cbrt( + arg0, ); } - late final __objc_msgSend_365Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _cbrtPtr = + _lookup>('cbrt'); + late final _cbrt = _cbrtPtr.asFunction(); - late final _sel_setRequiresDNSSECValidation_1 = - _registerName1("setRequiresDNSSECValidation:"); - late final _sel_setHTTPMethod_1 = _registerName1("setHTTPMethod:"); - late final _sel_setAllHTTPHeaderFields_1 = - _registerName1("setAllHTTPHeaderFields:"); - void _objc_msgSend_366( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, + double hypotf( + double arg0, + double arg1, ) { - return __objc_msgSend_366( - obj, - sel, - value, + return _hypotf( + arg0, + arg1, ); } - late final __objc_msgSend_366Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _hypotfPtr = + _lookup>( + 'hypotf'); + late final _hypotf = _hypotfPtr.asFunction(); - late final _sel_setValue_forHTTPHeaderField_1 = - _registerName1("setValue:forHTTPHeaderField:"); - void _objc_msgSend_367( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ffi.Pointer field, + double hypot( + double arg0, + double arg1, ) { - return __objc_msgSend_367( - obj, - sel, - value, - field, + return _hypot( + arg0, + arg1, ); } - late final __objc_msgSend_367Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _hypotPtr = + _lookup>( + 'hypot'); + late final _hypot = _hypotPtr.asFunction(); - late final _sel_addValue_forHTTPHeaderField_1 = - _registerName1("addValue:forHTTPHeaderField:"); - late final _sel_setHTTPBody_1 = _registerName1("setHTTPBody:"); - void _objc_msgSend_368( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, + double powf( + double arg0, + double arg1, ) { - return __objc_msgSend_368( - obj, - sel, - value, + return _powf( + arg0, + arg1, ); } - late final __objc_msgSend_368Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _powfPtr = + _lookup>( + 'powf'); + late final _powf = _powfPtr.asFunction(); - late final _sel_setHTTPBodyStream_1 = _registerName1("setHTTPBodyStream:"); - void _objc_msgSend_369( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, + double pow( + double arg0, + double arg1, ) { - return __objc_msgSend_369( - obj, - sel, - value, + return _pow( + arg0, + arg1, ); } - late final __objc_msgSend_369Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _powPtr = + _lookup>( + 'pow'); + late final _pow = _powPtr.asFunction(); - late final _sel_setHTTPShouldHandleCookies_1 = - _registerName1("setHTTPShouldHandleCookies:"); - late final _sel_setHTTPShouldUsePipelining_1 = - _registerName1("setHTTPShouldUsePipelining:"); - late final _class_NSHTTPCookieStorage1 = _getClass1("NSHTTPCookieStorage"); - late final _sel_sharedHTTPCookieStorage1 = - _registerName1("sharedHTTPCookieStorage"); - ffi.Pointer _objc_msgSend_370( - ffi.Pointer obj, - ffi.Pointer sel, + double sqrtf( + double arg0, ) { - return __objc_msgSend_370( - obj, - sel, + return _sqrtf( + arg0, ); } - late final __objc_msgSend_370Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + late final _sqrtfPtr = + _lookup>('sqrtf'); + late final _sqrtf = _sqrtfPtr.asFunction(); - late final _sel_sharedCookieStorageForGroupContainerIdentifier_1 = - _registerName1("sharedCookieStorageForGroupContainerIdentifier:"); - ffi.Pointer _objc_msgSend_371( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer identifier, + double sqrt( + double arg0, ) { - return __objc_msgSend_371( - obj, - sel, - identifier, + return _sqrt( + arg0, ); } - late final __objc_msgSend_371Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _sqrtPtr = + _lookup>('sqrt'); + late final _sqrt = _sqrtPtr.asFunction(); - late final _sel_cookies1 = _registerName1("cookies"); - late final _class_NSHTTPCookie1 = _getClass1("NSHTTPCookie"); - late final _sel_setCookie_1 = _registerName1("setCookie:"); - void _objc_msgSend_372( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer cookie, + double erff( + double arg0, ) { - return __objc_msgSend_372( - obj, - sel, - cookie, + return _erff( + arg0, ); } - late final __objc_msgSend_372Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _erffPtr = + _lookup>('erff'); + late final _erff = _erffPtr.asFunction(); - late final _sel_deleteCookie_1 = _registerName1("deleteCookie:"); - late final _sel_removeCookiesSinceDate_1 = - _registerName1("removeCookiesSinceDate:"); - void _objc_msgSend_373( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer date, + double erf( + double arg0, ) { - return __objc_msgSend_373( - obj, - sel, - date, + return _erf( + arg0, ); } - late final __objc_msgSend_373Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _erfPtr = + _lookup>('erf'); + late final _erf = _erfPtr.asFunction(); - late final _sel_cookiesForURL_1 = _registerName1("cookiesForURL:"); - late final _sel_setCookies_forURL_mainDocumentURL_1 = - _registerName1("setCookies:forURL:mainDocumentURL:"); - void _objc_msgSend_374( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer cookies, - ffi.Pointer URL, - ffi.Pointer mainDocumentURL, + double erfcf( + double arg0, ) { - return __objc_msgSend_374( - obj, - sel, - cookies, - URL, - mainDocumentURL, + return _erfcf( + arg0, ); } - late final __objc_msgSend_374Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + late final _erfcfPtr = + _lookup>('erfcf'); + late final _erfcf = _erfcfPtr.asFunction(); - late final _sel_cookieAcceptPolicy1 = _registerName1("cookieAcceptPolicy"); - int _objc_msgSend_375( - ffi.Pointer obj, - ffi.Pointer sel, + double erfc( + double arg0, ) { - return __objc_msgSend_375( - obj, - sel, + return _erfc( + arg0, ); } - late final __objc_msgSend_375Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + late final _erfcPtr = + _lookup>('erfc'); + late final _erfc = _erfcPtr.asFunction(); - late final _sel_setCookieAcceptPolicy_1 = - _registerName1("setCookieAcceptPolicy:"); - void _objc_msgSend_376( - ffi.Pointer obj, - ffi.Pointer sel, - int value, + double lgammaf( + double arg0, ) { - return __objc_msgSend_376( - obj, - sel, - value, + return _lgammaf( + arg0, ); } - late final __objc_msgSend_376Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _lgammafPtr = + _lookup>('lgammaf'); + late final _lgammaf = _lgammafPtr.asFunction(); - late final _sel_sortedCookiesUsingDescriptors_1 = - _registerName1("sortedCookiesUsingDescriptors:"); - late final _class_NSURLSessionTask1 = _getClass1("NSURLSessionTask"); - late final _sel_taskIdentifier1 = _registerName1("taskIdentifier"); - late final _sel_originalRequest1 = _registerName1("originalRequest"); - ffi.Pointer _objc_msgSend_377( - ffi.Pointer obj, - ffi.Pointer sel, + double lgamma( + double arg0, ) { - return __objc_msgSend_377( - obj, - sel, + return _lgamma( + arg0, ); } - late final __objc_msgSend_377Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + late final _lgammaPtr = + _lookup>('lgamma'); + late final _lgamma = _lgammaPtr.asFunction(); - late final _sel_currentRequest1 = _registerName1("currentRequest"); - late final _class_NSURLResponse1 = _getClass1("NSURLResponse"); - late final _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1 = - _registerName1( - "initWithURL:MIMEType:expectedContentLength:textEncodingName:"); - instancetype _objc_msgSend_378( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer URL, - ffi.Pointer MIMEType, - int length, - ffi.Pointer name, + double tgammaf( + double arg0, ) { - return __objc_msgSend_378( - obj, - sel, - URL, - MIMEType, - length, - name, + return _tgammaf( + arg0, ); } - late final __objc_msgSend_378Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); + late final _tgammafPtr = + _lookup>('tgammaf'); + late final _tgammaf = _tgammafPtr.asFunction(); - late final _sel_MIMEType1 = _registerName1("MIMEType"); - late final _sel_expectedContentLength1 = - _registerName1("expectedContentLength"); - late final _sel_textEncodingName1 = _registerName1("textEncodingName"); - late final _sel_suggestedFilename1 = _registerName1("suggestedFilename"); - late final _sel_response1 = _registerName1("response"); - ffi.Pointer _objc_msgSend_379( - ffi.Pointer obj, - ffi.Pointer sel, + double tgamma( + double arg0, ) { - return __objc_msgSend_379( - obj, - sel, + return _tgamma( + arg0, ); } - late final __objc_msgSend_379Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + late final _tgammaPtr = + _lookup>('tgamma'); + late final _tgamma = _tgammaPtr.asFunction(); - late final _sel_delegate1 = _registerName1("delegate"); - late final _sel_setDelegate_1 = _registerName1("setDelegate:"); - void _objc_msgSend_380( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, + double ceilf( + double arg0, ) { - return __objc_msgSend_380( - obj, - sel, - value, + return _ceilf( + arg0, ); } - late final __objc_msgSend_380Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_380 = __objc_msgSend_380Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _ceilfPtr = + _lookup>('ceilf'); + late final _ceilf = _ceilfPtr.asFunction(); - late final _sel_earliestBeginDate1 = _registerName1("earliestBeginDate"); - late final _sel_setEarliestBeginDate_1 = - _registerName1("setEarliestBeginDate:"); - void _objc_msgSend_381( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, + double ceil( + double arg0, ) { - return __objc_msgSend_381( - obj, - sel, - value, + return _ceil( + arg0, ); } - late final __objc_msgSend_381Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_381 = __objc_msgSend_381Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + late final _ceilPtr = + _lookup>('ceil'); + late final _ceil = _ceilPtr.asFunction(); - late final _sel_countOfBytesClientExpectsToSend1 = - _registerName1("countOfBytesClientExpectsToSend"); - late final _sel_setCountOfBytesClientExpectsToSend_1 = - _registerName1("setCountOfBytesClientExpectsToSend:"); - late final _sel_countOfBytesClientExpectsToReceive1 = - _registerName1("countOfBytesClientExpectsToReceive"); - late final _sel_setCountOfBytesClientExpectsToReceive_1 = - _registerName1("setCountOfBytesClientExpectsToReceive:"); - late final _sel_countOfBytesSent1 = _registerName1("countOfBytesSent"); - late final _sel_countOfBytesReceived1 = - _registerName1("countOfBytesReceived"); - late final _sel_countOfBytesExpectedToSend1 = - _registerName1("countOfBytesExpectedToSend"); - late final _sel_countOfBytesExpectedToReceive1 = - _registerName1("countOfBytesExpectedToReceive"); - late final _sel_taskDescription1 = _registerName1("taskDescription"); - late final _sel_setTaskDescription_1 = _registerName1("setTaskDescription:"); - late final _sel_state1 = _registerName1("state"); - int _objc_msgSend_382( - ffi.Pointer obj, - ffi.Pointer sel, + double floorf( + double arg0, ) { - return __objc_msgSend_382( - obj, - sel, + return _floorf( + arg0, ); } - late final __objc_msgSend_382Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + late final _floorfPtr = + _lookup>('floorf'); + late final _floorf = _floorfPtr.asFunction(); - late final _sel_error1 = _registerName1("error"); - ffi.Pointer _objc_msgSend_383( - ffi.Pointer obj, - ffi.Pointer sel, + double floor( + double arg0, ) { - return __objc_msgSend_383( - obj, - sel, + return _floor( + arg0, ); } - late final __objc_msgSend_383Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + late final _floorPtr = + _lookup>('floor'); + late final _floor = _floorPtr.asFunction(); - late final _sel_suspend1 = _registerName1("suspend"); - late final _sel_priority1 = _registerName1("priority"); - late final _sel_setPriority_1 = _registerName1("setPriority:"); - void _objc_msgSend_384( - ffi.Pointer obj, - ffi.Pointer sel, - double value, + double nearbyintf( + double arg0, ) { - return __objc_msgSend_384( - obj, - sel, - value, + return _nearbyintf( + arg0, ); } - late final __objc_msgSend_384Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, double)>(); + late final _nearbyintfPtr = + _lookup>('nearbyintf'); + late final _nearbyintf = _nearbyintfPtr.asFunction(); - late final _sel_prefersIncrementalDelivery1 = - _registerName1("prefersIncrementalDelivery"); - late final _sel_setPrefersIncrementalDelivery_1 = - _registerName1("setPrefersIncrementalDelivery:"); - late final _sel_storeCookies_forTask_1 = - _registerName1("storeCookies:forTask:"); - void _objc_msgSend_385( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer cookies, - ffi.Pointer task, + double nearbyint( + double arg0, ) { - return __objc_msgSend_385( - obj, - sel, - cookies, - task, + return _nearbyint( + arg0, ); } - late final __objc_msgSend_385Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _nearbyintPtr = + _lookup>('nearbyint'); + late final _nearbyint = _nearbyintPtr.asFunction(); - late final _sel_getCookiesForTask_completionHandler_1 = - _registerName1("getCookiesForTask:completionHandler:"); - void _objc_msgSend_386( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer task, - ffi.Pointer<_ObjCBlock> completionHandler, + double rintf( + double arg0, ) { - return __objc_msgSend_386( - obj, - sel, - task, - completionHandler, + return _rintf( + arg0, ); } - late final __objc_msgSend_386Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final ffi.Pointer - _NSHTTPCookieManagerAcceptPolicyChangedNotification = - _lookup( - 'NSHTTPCookieManagerAcceptPolicyChangedNotification'); + late final _rintfPtr = + _lookup>('rintf'); + late final _rintf = _rintfPtr.asFunction(); - NSNotificationName get NSHTTPCookieManagerAcceptPolicyChangedNotification => - _NSHTTPCookieManagerAcceptPolicyChangedNotification.value; + double rint( + double arg0, + ) { + return _rint( + arg0, + ); + } - set NSHTTPCookieManagerAcceptPolicyChangedNotification( - NSNotificationName value) => - _NSHTTPCookieManagerAcceptPolicyChangedNotification.value = value; - - late final ffi.Pointer - _NSHTTPCookieManagerCookiesChangedNotification = - _lookup( - 'NSHTTPCookieManagerCookiesChangedNotification'); - - NSNotificationName get NSHTTPCookieManagerCookiesChangedNotification => - _NSHTTPCookieManagerCookiesChangedNotification.value; - - set NSHTTPCookieManagerCookiesChangedNotification(NSNotificationName value) => - _NSHTTPCookieManagerCookiesChangedNotification.value = value; - - late final ffi.Pointer - _NSProgressEstimatedTimeRemainingKey = - _lookup('NSProgressEstimatedTimeRemainingKey'); - - NSProgressUserInfoKey get NSProgressEstimatedTimeRemainingKey => - _NSProgressEstimatedTimeRemainingKey.value; - - set NSProgressEstimatedTimeRemainingKey(NSProgressUserInfoKey value) => - _NSProgressEstimatedTimeRemainingKey.value = value; - - late final ffi.Pointer _NSProgressThroughputKey = - _lookup('NSProgressThroughputKey'); - - NSProgressUserInfoKey get NSProgressThroughputKey => - _NSProgressThroughputKey.value; - - set NSProgressThroughputKey(NSProgressUserInfoKey value) => - _NSProgressThroughputKey.value = value; - - late final ffi.Pointer _NSProgressKindFile = - _lookup('NSProgressKindFile'); - - NSProgressKind get NSProgressKindFile => _NSProgressKindFile.value; - - set NSProgressKindFile(NSProgressKind value) => - _NSProgressKindFile.value = value; - - late final ffi.Pointer - _NSProgressFileOperationKindKey = - _lookup('NSProgressFileOperationKindKey'); - - NSProgressUserInfoKey get NSProgressFileOperationKindKey => - _NSProgressFileOperationKindKey.value; - - set NSProgressFileOperationKindKey(NSProgressUserInfoKey value) => - _NSProgressFileOperationKindKey.value = value; - - late final ffi.Pointer - _NSProgressFileOperationKindDownloading = - _lookup( - 'NSProgressFileOperationKindDownloading'); - - NSProgressFileOperationKind get NSProgressFileOperationKindDownloading => - _NSProgressFileOperationKindDownloading.value; - - set NSProgressFileOperationKindDownloading( - NSProgressFileOperationKind value) => - _NSProgressFileOperationKindDownloading.value = value; - - late final ffi.Pointer - _NSProgressFileOperationKindDecompressingAfterDownloading = - _lookup( - 'NSProgressFileOperationKindDecompressingAfterDownloading'); - - NSProgressFileOperationKind - get NSProgressFileOperationKindDecompressingAfterDownloading => - _NSProgressFileOperationKindDecompressingAfterDownloading.value; - - set NSProgressFileOperationKindDecompressingAfterDownloading( - NSProgressFileOperationKind value) => - _NSProgressFileOperationKindDecompressingAfterDownloading.value = value; - - late final ffi.Pointer - _NSProgressFileOperationKindReceiving = - _lookup( - 'NSProgressFileOperationKindReceiving'); - - NSProgressFileOperationKind get NSProgressFileOperationKindReceiving => - _NSProgressFileOperationKindReceiving.value; - - set NSProgressFileOperationKindReceiving(NSProgressFileOperationKind value) => - _NSProgressFileOperationKindReceiving.value = value; - - late final ffi.Pointer - _NSProgressFileOperationKindCopying = - _lookup( - 'NSProgressFileOperationKindCopying'); - - NSProgressFileOperationKind get NSProgressFileOperationKindCopying => - _NSProgressFileOperationKindCopying.value; - - set NSProgressFileOperationKindCopying(NSProgressFileOperationKind value) => - _NSProgressFileOperationKindCopying.value = value; - - late final ffi.Pointer - _NSProgressFileOperationKindUploading = - _lookup( - 'NSProgressFileOperationKindUploading'); - - NSProgressFileOperationKind get NSProgressFileOperationKindUploading => - _NSProgressFileOperationKindUploading.value; - - set NSProgressFileOperationKindUploading(NSProgressFileOperationKind value) => - _NSProgressFileOperationKindUploading.value = value; - - late final ffi.Pointer - _NSProgressFileOperationKindDuplicating = - _lookup( - 'NSProgressFileOperationKindDuplicating'); - - NSProgressFileOperationKind get NSProgressFileOperationKindDuplicating => - _NSProgressFileOperationKindDuplicating.value; - - set NSProgressFileOperationKindDuplicating( - NSProgressFileOperationKind value) => - _NSProgressFileOperationKindDuplicating.value = value; - - late final ffi.Pointer _NSProgressFileURLKey = - _lookup('NSProgressFileURLKey'); - - NSProgressUserInfoKey get NSProgressFileURLKey => _NSProgressFileURLKey.value; - - set NSProgressFileURLKey(NSProgressUserInfoKey value) => - _NSProgressFileURLKey.value = value; - - late final ffi.Pointer _NSProgressFileTotalCountKey = - _lookup('NSProgressFileTotalCountKey'); - - NSProgressUserInfoKey get NSProgressFileTotalCountKey => - _NSProgressFileTotalCountKey.value; - - set NSProgressFileTotalCountKey(NSProgressUserInfoKey value) => - _NSProgressFileTotalCountKey.value = value; - - late final ffi.Pointer - _NSProgressFileCompletedCountKey = - _lookup('NSProgressFileCompletedCountKey'); - - NSProgressUserInfoKey get NSProgressFileCompletedCountKey => - _NSProgressFileCompletedCountKey.value; - - set NSProgressFileCompletedCountKey(NSProgressUserInfoKey value) => - _NSProgressFileCompletedCountKey.value = value; - - late final ffi.Pointer - _NSProgressFileAnimationImageKey = - _lookup('NSProgressFileAnimationImageKey'); + late final _rintPtr = + _lookup>('rint'); + late final _rint = _rintPtr.asFunction(); - NSProgressUserInfoKey get NSProgressFileAnimationImageKey => - _NSProgressFileAnimationImageKey.value; + int lrintf( + double arg0, + ) { + return _lrintf( + arg0, + ); + } - set NSProgressFileAnimationImageKey(NSProgressUserInfoKey value) => - _NSProgressFileAnimationImageKey.value = value; + late final _lrintfPtr = + _lookup>('lrintf'); + late final _lrintf = _lrintfPtr.asFunction(); - late final ffi.Pointer - _NSProgressFileAnimationImageOriginalRectKey = - _lookup( - 'NSProgressFileAnimationImageOriginalRectKey'); + int lrint( + double arg0, + ) { + return _lrint( + arg0, + ); + } - NSProgressUserInfoKey get NSProgressFileAnimationImageOriginalRectKey => - _NSProgressFileAnimationImageOriginalRectKey.value; + late final _lrintPtr = + _lookup>('lrint'); + late final _lrint = _lrintPtr.asFunction(); - set NSProgressFileAnimationImageOriginalRectKey( - NSProgressUserInfoKey value) => - _NSProgressFileAnimationImageOriginalRectKey.value = value; + double roundf( + double arg0, + ) { + return _roundf( + arg0, + ); + } - late final ffi.Pointer _NSProgressFileIconKey = - _lookup('NSProgressFileIconKey'); + late final _roundfPtr = + _lookup>('roundf'); + late final _roundf = _roundfPtr.asFunction(); - NSProgressUserInfoKey get NSProgressFileIconKey => - _NSProgressFileIconKey.value; + double round( + double arg0, + ) { + return _round( + arg0, + ); + } - set NSProgressFileIconKey(NSProgressUserInfoKey value) => - _NSProgressFileIconKey.value = value; + late final _roundPtr = + _lookup>('round'); + late final _round = _roundPtr.asFunction(); - late final ffi.Pointer _kCFTypeArrayCallBacks = - _lookup('kCFTypeArrayCallBacks'); + int lroundf( + double arg0, + ) { + return _lroundf( + arg0, + ); + } - CFArrayCallBacks get kCFTypeArrayCallBacks => _kCFTypeArrayCallBacks.ref; + late final _lroundfPtr = + _lookup>('lroundf'); + late final _lroundf = _lroundfPtr.asFunction(); - int CFArrayGetTypeID() { - return _CFArrayGetTypeID(); + int lround( + double arg0, + ) { + return _lround( + arg0, + ); } - late final _CFArrayGetTypeIDPtr = - _lookup>('CFArrayGetTypeID'); - late final _CFArrayGetTypeID = - _CFArrayGetTypeIDPtr.asFunction(); + late final _lroundPtr = + _lookup>('lround'); + late final _lround = _lroundPtr.asFunction(); - CFArrayRef CFArrayCreate( - CFAllocatorRef allocator, - ffi.Pointer> values, - int numValues, - ffi.Pointer callBacks, + int llrintf( + double arg0, ) { - return _CFArrayCreate( - allocator, - values, - numValues, - callBacks, + return _llrintf( + arg0, ); } - 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)>(); + late final _llrintfPtr = + _lookup>('llrintf'); + late final _llrintf = _llrintfPtr.asFunction(); - CFArrayRef CFArrayCreateCopy( - CFAllocatorRef allocator, - CFArrayRef theArray, + int llrint( + double arg0, ) { - return _CFArrayCreateCopy( - allocator, - theArray, + return _llrint( + arg0, ); } - late final _CFArrayCreateCopyPtr = _lookup< - ffi.NativeFunction>( - 'CFArrayCreateCopy'); - late final _CFArrayCreateCopy = _CFArrayCreateCopyPtr.asFunction< - CFArrayRef Function(CFAllocatorRef, CFArrayRef)>(); + late final _llrintPtr = + _lookup>('llrint'); + late final _llrint = _llrintPtr.asFunction(); - CFMutableArrayRef CFArrayCreateMutable( - CFAllocatorRef allocator, - int capacity, - ffi.Pointer callBacks, + int llroundf( + double arg0, ) { - return _CFArrayCreateMutable( - allocator, - capacity, - callBacks, + return _llroundf( + arg0, ); } - 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 _llroundfPtr = + _lookup>('llroundf'); + late final _llroundf = _llroundfPtr.asFunction(); - CFMutableArrayRef CFArrayCreateMutableCopy( - CFAllocatorRef allocator, - int capacity, - CFArrayRef theArray, + int llround( + double arg0, ) { - return _CFArrayCreateMutableCopy( - allocator, - capacity, - theArray, + return _llround( + arg0, ); } - late final _CFArrayCreateMutableCopyPtr = _lookup< - ffi.NativeFunction< - CFMutableArrayRef Function(CFAllocatorRef, CFIndex, - CFArrayRef)>>('CFArrayCreateMutableCopy'); - late final _CFArrayCreateMutableCopy = - _CFArrayCreateMutableCopyPtr.asFunction< - CFMutableArrayRef Function(CFAllocatorRef, int, CFArrayRef)>(); + late final _llroundPtr = + _lookup>('llround'); + late final _llround = _llroundPtr.asFunction(); - int CFArrayGetCount( - CFArrayRef theArray, + double truncf( + double arg0, ) { - return _CFArrayGetCount( - theArray, + return _truncf( + arg0, ); } - late final _CFArrayGetCountPtr = - _lookup>( - 'CFArrayGetCount'); - late final _CFArrayGetCount = - _CFArrayGetCountPtr.asFunction(); + late final _truncfPtr = + _lookup>('truncf'); + late final _truncf = _truncfPtr.asFunction(); - int CFArrayGetCountOfValue( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, + double trunc( + double arg0, ) { - return _CFArrayGetCountOfValue( - theArray, - range, - value, + return _trunc( + arg0, ); } - 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 _truncPtr = + _lookup>('trunc'); + late final _trunc = _truncPtr.asFunction(); - int CFArrayContainsValue( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, + double fmodf( + double arg0, + double arg1, ) { - return _CFArrayContainsValue( - theArray, - range, - value, + return _fmodf( + arg0, + arg1, ); } - 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 _fmodfPtr = + _lookup>( + 'fmodf'); + late final _fmodf = _fmodfPtr.asFunction(); - ffi.Pointer CFArrayGetValueAtIndex( - CFArrayRef theArray, - int idx, + double fmod( + double arg0, + double arg1, ) { - return _CFArrayGetValueAtIndex( - theArray, - idx, + return _fmod( + arg0, + arg1, ); } - late final _CFArrayGetValueAtIndexPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CFArrayRef, CFIndex)>>('CFArrayGetValueAtIndex'); - late final _CFArrayGetValueAtIndex = _CFArrayGetValueAtIndexPtr.asFunction< - ffi.Pointer Function(CFArrayRef, int)>(); + late final _fmodPtr = + _lookup>( + 'fmod'); + late final _fmod = _fmodPtr.asFunction(); - void CFArrayGetValues( - CFArrayRef theArray, - CFRange range, - ffi.Pointer> values, + double remainderf( + double arg0, + double arg1, ) { - return _CFArrayGetValues( - theArray, - range, - values, + return _remainderf( + arg0, + arg1, ); } - 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 _remainderfPtr = + _lookup>( + 'remainderf'); + late final _remainderf = + _remainderfPtr.asFunction(); - void CFArrayApplyFunction( - CFArrayRef theArray, - CFRange range, - CFArrayApplierFunction applier, - ffi.Pointer context, + double remainder( + double arg0, + double arg1, ) { - return _CFArrayApplyFunction( - theArray, - range, - applier, - context, + return _remainder( + arg0, + arg1, ); } - 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 _remainderPtr = + _lookup>( + 'remainder'); + late final _remainder = + _remainderPtr.asFunction(); - int CFArrayGetFirstIndexOfValue( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, + double remquof( + double arg0, + double arg1, + ffi.Pointer arg2, ) { - return _CFArrayGetFirstIndexOfValue( - theArray, - range, - value, + return _remquof( + arg0, + arg1, + arg2, ); } - late final _CFArrayGetFirstIndexOfValuePtr = _lookup< + late final _remquofPtr = _lookup< ffi.NativeFunction< - CFIndex Function(CFArrayRef, CFRange, - ffi.Pointer)>>('CFArrayGetFirstIndexOfValue'); - late final _CFArrayGetFirstIndexOfValue = _CFArrayGetFirstIndexOfValuePtr - .asFunction)>(); + ffi.Float Function( + ffi.Float, ffi.Float, ffi.Pointer)>>('remquof'); + late final _remquof = _remquofPtr + .asFunction)>(); - int CFArrayGetLastIndexOfValue( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, + double remquo( + double arg0, + double arg1, + ffi.Pointer arg2, ) { - return _CFArrayGetLastIndexOfValue( - theArray, - range, - value, + return _remquo( + arg0, + arg1, + arg2, ); } - late final _CFArrayGetLastIndexOfValuePtr = _lookup< + late final _remquoPtr = _lookup< ffi.NativeFunction< - CFIndex Function(CFArrayRef, CFRange, - ffi.Pointer)>>('CFArrayGetLastIndexOfValue'); - late final _CFArrayGetLastIndexOfValue = _CFArrayGetLastIndexOfValuePtr - .asFunction)>(); + ffi.Double Function( + ffi.Double, ffi.Double, ffi.Pointer)>>('remquo'); + late final _remquo = _remquoPtr + .asFunction)>(); - int CFArrayBSearchValues( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, - CFComparatorFunction comparator, - ffi.Pointer context, + double copysignf( + double arg0, + double arg1, ) { - return _CFArrayBSearchValues( - theArray, - range, - value, - comparator, - context, + return _copysignf( + arg0, + arg1, ); } - 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)>(); + late final _copysignfPtr = + _lookup>( + 'copysignf'); + late final _copysignf = + _copysignfPtr.asFunction(); - void CFArrayAppendValue( - CFMutableArrayRef theArray, - ffi.Pointer value, + double copysign( + double arg0, + double arg1, ) { - return _CFArrayAppendValue( - theArray, - value, + return _copysign( + arg0, + arg1, ); } - 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 _copysignPtr = + _lookup>( + 'copysign'); + late final _copysign = + _copysignPtr.asFunction(); - void CFArrayInsertValueAtIndex( - CFMutableArrayRef theArray, - int idx, - ffi.Pointer value, + double nanf( + ffi.Pointer arg0, ) { - return _CFArrayInsertValueAtIndex( - theArray, - idx, - value, + return _nanf( + arg0, ); } - 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)>(); + late final _nanfPtr = + _lookup)>>( + 'nanf'); + late final _nanf = + _nanfPtr.asFunction)>(); - void CFArraySetValueAtIndex( - CFMutableArrayRef theArray, - int idx, - ffi.Pointer value, + double nan( + ffi.Pointer arg0, ) { - return _CFArraySetValueAtIndex( - theArray, - idx, - value, + return _nan( + arg0, ); } - 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 _nanPtr = + _lookup)>>( + 'nan'); + late final _nan = + _nanPtr.asFunction)>(); - void CFArrayRemoveValueAtIndex( - CFMutableArrayRef theArray, - int idx, + double nextafterf( + double arg0, + double arg1, ) { - return _CFArrayRemoveValueAtIndex( - theArray, - idx, + return _nextafterf( + arg0, + arg1, ); } - late final _CFArrayRemoveValueAtIndexPtr = _lookup< - ffi.NativeFunction>( - 'CFArrayRemoveValueAtIndex'); - late final _CFArrayRemoveValueAtIndex = _CFArrayRemoveValueAtIndexPtr - .asFunction(); + late final _nextafterfPtr = + _lookup>( + 'nextafterf'); + late final _nextafterf = + _nextafterfPtr.asFunction(); - void CFArrayRemoveAllValues( - CFMutableArrayRef theArray, + double nextafter( + double arg0, + double arg1, ) { - return _CFArrayRemoveAllValues( - theArray, + return _nextafter( + arg0, + arg1, ); } - late final _CFArrayRemoveAllValuesPtr = - _lookup>( - 'CFArrayRemoveAllValues'); - late final _CFArrayRemoveAllValues = - _CFArrayRemoveAllValuesPtr.asFunction(); + late final _nextafterPtr = + _lookup>( + 'nextafter'); + late final _nextafter = + _nextafterPtr.asFunction(); - void CFArrayReplaceValues( - CFMutableArrayRef theArray, - CFRange range, - ffi.Pointer> newValues, - int newCount, + double fdimf( + double arg0, + double arg1, ) { - return _CFArrayReplaceValues( - theArray, - range, - newValues, - newCount, + return _fdimf( + arg0, + arg1, ); } - 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)>(); + late final _fdimfPtr = + _lookup>( + 'fdimf'); + late final _fdimf = _fdimfPtr.asFunction(); - void CFArrayExchangeValuesAtIndices( - CFMutableArrayRef theArray, - int idx1, - int idx2, + double fdim( + double arg0, + double arg1, ) { - return _CFArrayExchangeValuesAtIndices( - theArray, - idx1, - idx2, + return _fdim( + arg0, + arg1, ); } - late final _CFArrayExchangeValuesAtIndicesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CFMutableArrayRef, CFIndex, - CFIndex)>>('CFArrayExchangeValuesAtIndices'); - late final _CFArrayExchangeValuesAtIndices = - _CFArrayExchangeValuesAtIndicesPtr.asFunction< - void Function(CFMutableArrayRef, int, int)>(); + late final _fdimPtr = + _lookup>( + 'fdim'); + late final _fdim = _fdimPtr.asFunction(); - void CFArraySortValues( - CFMutableArrayRef theArray, - CFRange range, - CFComparatorFunction comparator, - ffi.Pointer context, + double fmaxf( + double arg0, + double arg1, ) { - return _CFArraySortValues( - theArray, - range, - comparator, - context, + return _fmaxf( + arg0, + arg1, ); } - 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 _fmaxfPtr = + _lookup>( + 'fmaxf'); + late final _fmaxf = _fmaxfPtr.asFunction(); - void CFArrayAppendArray( - CFMutableArrayRef theArray, - CFArrayRef otherArray, - CFRange otherRange, + double fmax( + double arg0, + double arg1, ) { - return _CFArrayAppendArray( - theArray, - otherArray, - otherRange, + return _fmax( + arg0, + arg1, ); } - 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 _fmaxPtr = + _lookup>( + 'fmax'); + late final _fmax = _fmaxPtr.asFunction(); - late final _class_OS_object1 = _getClass1("OS_object"); - ffi.Pointer os_retain( - ffi.Pointer object, + double fminf( + double arg0, + double arg1, ) { - return _os_retain( - object, + return _fminf( + arg0, + arg1, ); } - late final _os_retainPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('os_retain'); - late final _os_retain = _os_retainPtr - .asFunction Function(ffi.Pointer)>(); + late final _fminfPtr = + _lookup>( + 'fminf'); + late final _fminf = _fminfPtr.asFunction(); - void os_release( - ffi.Pointer object, + double fmin( + double arg0, + double arg1, ) { - return _os_release( - object, + return _fmin( + arg0, + arg1, ); } - late final _os_releasePtr = - _lookup)>>( - 'os_release'); - late final _os_release = - _os_releasePtr.asFunction)>(); + late final _fminPtr = + _lookup>( + 'fmin'); + late final _fmin = _fminPtr.asFunction(); - ffi.Pointer sec_retain( - ffi.Pointer obj, + double fmaf( + double arg0, + double arg1, + double arg2, ) { - return _sec_retain( - obj, + return _fmaf( + arg0, + arg1, + arg2, ); } - late final _sec_retainPtr = _lookup< + late final _fmafPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('sec_retain'); - late final _sec_retain = _sec_retainPtr - .asFunction Function(ffi.Pointer)>(); + ffi.Float Function(ffi.Float, ffi.Float, ffi.Float)>>('fmaf'); + late final _fmaf = + _fmafPtr.asFunction(); - void sec_release( - ffi.Pointer obj, + double fma( + double arg0, + double arg1, + double arg2, ) { - return _sec_release( - obj, + return _fma( + arg0, + arg1, + arg2, ); } - late final _sec_releasePtr = - _lookup)>>( - 'sec_release'); - late final _sec_release = - _sec_releasePtr.asFunction)>(); + late final _fmaPtr = _lookup< + ffi.NativeFunction< + ffi.Double Function(ffi.Double, ffi.Double, ffi.Double)>>('fma'); + late final _fma = + _fmaPtr.asFunction(); - CFStringRef SecCopyErrorMessageString( - int status, - ffi.Pointer reserved, + double __exp10f( + double arg0, ) { - return _SecCopyErrorMessageString( - status, - reserved, + return ___exp10f( + arg0, ); } - late final _SecCopyErrorMessageStringPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function( - OSStatus, ffi.Pointer)>>('SecCopyErrorMessageString'); - late final _SecCopyErrorMessageString = _SecCopyErrorMessageStringPtr - .asFunction)>(); + late final ___exp10fPtr = + _lookup>('__exp10f'); + late final ___exp10f = ___exp10fPtr.asFunction(); - void __assert_rtn( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, + double __exp10( + double arg0, ) { - return ___assert_rtn( + return ___exp10( 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 ffi.Pointer<_RuneLocale> __DefaultRuneLocale = - _lookup<_RuneLocale>('_DefaultRuneLocale'); - - _RuneLocale get _DefaultRuneLocale => __DefaultRuneLocale.ref; - - late final ffi.Pointer> __CurrentRuneLocale = - _lookup>('_CurrentRuneLocale'); - - ffi.Pointer<_RuneLocale> get _CurrentRuneLocale => __CurrentRuneLocale.value; - - set _CurrentRuneLocale(ffi.Pointer<_RuneLocale> value) => - __CurrentRuneLocale.value = value; + late final ___exp10Ptr = + _lookup>('__exp10'); + late final ___exp10 = ___exp10Ptr.asFunction(); - int ___runetype( - int arg0, + double __cospif( + double arg0, ) { - return ____runetype( + return ___cospif( arg0, ); } - late final ____runetypePtr = _lookup< - ffi.NativeFunction>( - '___runetype'); - late final ____runetype = ____runetypePtr.asFunction(); + late final ___cospifPtr = + _lookup>('__cospif'); + late final ___cospif = ___cospifPtr.asFunction(); - int ___tolower( - int arg0, + double __cospi( + double arg0, ) { - return ____tolower( + return ___cospi( arg0, ); } - late final ____tolowerPtr = _lookup< - ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>>( - '___tolower'); - late final ____tolower = ____tolowerPtr.asFunction(); + late final ___cospiPtr = + _lookup>('__cospi'); + late final ___cospi = ___cospiPtr.asFunction(); - int ___toupper( - int arg0, + double __sinpif( + double arg0, ) { - return ____toupper( + return ___sinpif( arg0, ); } - late final ____toupperPtr = _lookup< - ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>>( - '___toupper'); - late final ____toupper = ____toupperPtr.asFunction(); + late final ___sinpifPtr = + _lookup>('__sinpif'); + late final ___sinpif = ___sinpifPtr.asFunction(); - int __maskrune( - int arg0, - int arg1, + double __sinpi( + double arg0, ) { - return ___maskrune( + return ___sinpi( arg0, - arg1, ); } - late final ___maskrunePtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - __darwin_ct_rune_t, ffi.UnsignedLong)>>('__maskrune'); - late final ___maskrune = ___maskrunePtr.asFunction(); + late final ___sinpiPtr = + _lookup>('__sinpi'); + late final ___sinpi = ___sinpiPtr.asFunction(); - int __toupper( - int arg0, + double __tanpif( + double arg0, ) { - return ___toupper1( + return ___tanpif( arg0, ); } - late final ___toupperPtr = _lookup< - ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>>( - '__toupper'); - late final ___toupper1 = ___toupperPtr.asFunction(); + late final ___tanpifPtr = + _lookup>('__tanpif'); + late final ___tanpif = ___tanpifPtr.asFunction(); - int __tolower( - int arg0, + double __tanpi( + double arg0, ) { - return ___tolower1( + return ___tanpi( arg0, ); } - late final ___tolowerPtr = _lookup< - ffi.NativeFunction<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>>( - '__tolower'); - late final ___tolower1 = ___tolowerPtr.asFunction(); - - ffi.Pointer __error() { - return ___error(); - } - - late final ___errorPtr = - _lookup Function()>>('__error'); - late final ___error = - ___errorPtr.asFunction Function()>(); + late final ___tanpiPtr = + _lookup>('__tanpi'); + late final ___tanpi = ___tanpiPtr.asFunction(); - ffi.Pointer localeconv() { - return _localeconv(); + __float2 __sincosf_stret( + double arg0, + ) { + return ___sincosf_stret( + arg0, + ); } - late final _localeconvPtr = - _lookup Function()>>('localeconv'); - late final _localeconv = - _localeconvPtr.asFunction Function()>(); + late final ___sincosf_stretPtr = + _lookup>( + '__sincosf_stret'); + late final ___sincosf_stret = + ___sincosf_stretPtr.asFunction<__float2 Function(double)>(); - ffi.Pointer setlocale( - int arg0, - ffi.Pointer arg1, + __double2 __sincos_stret( + double arg0, ) { - return _setlocale( + return ___sincos_stret( arg0, - arg1, ); } - late final _setlocalePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Pointer)>>('setlocale'); - late final _setlocale = _setlocalePtr - .asFunction Function(int, ffi.Pointer)>(); - - int __math_errhandling() { - return ___math_errhandling(); - } - - late final ___math_errhandlingPtr = - _lookup>('__math_errhandling'); - late final ___math_errhandling = - ___math_errhandlingPtr.asFunction(); - - int __fpclassifyf( - double arg0, - ) { - return ___fpclassifyf( - arg0, - ); - } - - late final ___fpclassifyfPtr = - _lookup>('__fpclassifyf'); - late final ___fpclassifyf = - ___fpclassifyfPtr.asFunction(); + late final ___sincos_stretPtr = + _lookup>( + '__sincos_stret'); + late final ___sincos_stret = + ___sincos_stretPtr.asFunction<__double2 Function(double)>(); - int __fpclassifyd( + __float2 __sincospif_stret( double arg0, ) { - return ___fpclassifyd( + return ___sincospif_stret( arg0, ); } - late final ___fpclassifydPtr = - _lookup>( - '__fpclassifyd'); - late final ___fpclassifyd = - ___fpclassifydPtr.asFunction(); + late final ___sincospif_stretPtr = + _lookup>( + '__sincospif_stret'); + late final ___sincospif_stret = + ___sincospif_stretPtr.asFunction<__float2 Function(double)>(); - double acosf( + __double2 __sincospi_stret( double arg0, ) { - return _acosf( + return ___sincospi_stret( arg0, ); } - late final _acosfPtr = - _lookup>('acosf'); - late final _acosf = _acosfPtr.asFunction(); + late final ___sincospi_stretPtr = + _lookup>( + '__sincospi_stret'); + late final ___sincospi_stret = + ___sincospi_stretPtr.asFunction<__double2 Function(double)>(); - double acos( + double j0( double arg0, ) { - return _acos( + return _j0( arg0, ); } - late final _acosPtr = - _lookup>('acos'); - late final _acos = _acosPtr.asFunction(); + late final _j0Ptr = + _lookup>('j0'); + late final _j0 = _j0Ptr.asFunction(); - double asinf( + double j1( double arg0, ) { - return _asinf( + return _j1( arg0, ); } - late final _asinfPtr = - _lookup>('asinf'); - late final _asinf = _asinfPtr.asFunction(); + late final _j1Ptr = + _lookup>('j1'); + late final _j1 = _j1Ptr.asFunction(); - double asin( - double arg0, + double jn( + int arg0, + double arg1, ) { - return _asin( + return _jn( arg0, + arg1, ); } - late final _asinPtr = - _lookup>('asin'); - late final _asin = _asinPtr.asFunction(); + late final _jnPtr = + _lookup>( + 'jn'); + late final _jn = _jnPtr.asFunction(); - double atanf( + double y0( double arg0, ) { - return _atanf( + return _y0( arg0, ); } - late final _atanfPtr = - _lookup>('atanf'); - late final _atanf = _atanfPtr.asFunction(); + late final _y0Ptr = + _lookup>('y0'); + late final _y0 = _y0Ptr.asFunction(); - double atan( + double y1( double arg0, ) { - return _atan( + return _y1( arg0, ); } - late final _atanPtr = - _lookup>('atan'); - late final _atan = _atanPtr.asFunction(); + late final _y1Ptr = + _lookup>('y1'); + late final _y1 = _y1Ptr.asFunction(); - double atan2f( - double arg0, + double yn( + int arg0, double arg1, ) { - return _atan2f( + return _yn( arg0, arg1, ); } - late final _atan2fPtr = - _lookup>( - 'atan2f'); - late final _atan2f = _atan2fPtr.asFunction(); + late final _ynPtr = + _lookup>( + 'yn'); + late final _yn = _ynPtr.asFunction(); - double atan2( + double scalb( double arg0, double arg1, ) { - return _atan2( + return _scalb( arg0, arg1, ); } - late final _atan2Ptr = + late final _scalbPtr = _lookup>( - 'atan2'); - late final _atan2 = _atan2Ptr.asFunction(); + 'scalb'); + late final _scalb = _scalbPtr.asFunction(); - double cosf( - double arg0, + late final ffi.Pointer _signgam = _lookup('signgam'); + + int get signgam => _signgam.value; + + set signgam(int value) => _signgam.value = value; + + int setjmp( + ffi.Pointer arg0, ) { - return _cosf( + return _setjmp1( arg0, ); } - late final _cosfPtr = - _lookup>('cosf'); - late final _cosf = _cosfPtr.asFunction(); + late final _setjmpPtr = + _lookup)>>( + 'setjmp'); + late final _setjmp1 = + _setjmpPtr.asFunction)>(); - double cos( - double arg0, + void longjmp( + ffi.Pointer arg0, + int arg1, ) { - return _cos( + return _longjmp1( arg0, + arg1, ); } - late final _cosPtr = - _lookup>('cos'); - late final _cos = _cosPtr.asFunction(); + late final _longjmpPtr = _lookup< + ffi.NativeFunction, ffi.Int)>>( + 'longjmp'); + late final _longjmp1 = + _longjmpPtr.asFunction, int)>(); - double sinf( - double arg0, + int _setjmp( + ffi.Pointer arg0, ) { - return _sinf( + return __setjmp( arg0, ); } - late final _sinfPtr = - _lookup>('sinf'); - late final _sinf = _sinfPtr.asFunction(); + late final __setjmpPtr = + _lookup)>>( + '_setjmp'); + late final __setjmp = + __setjmpPtr.asFunction)>(); - double sin( - double arg0, + void _longjmp( + ffi.Pointer arg0, + int arg1, ) { - return _sin( + return __longjmp( arg0, + arg1, ); } - late final _sinPtr = - _lookup>('sin'); - late final _sin = _sinPtr.asFunction(); + late final __longjmpPtr = _lookup< + ffi.NativeFunction, ffi.Int)>>( + '_longjmp'); + late final __longjmp = + __longjmpPtr.asFunction, int)>(); - double tanf( - double arg0, + int sigsetjmp( + ffi.Pointer arg0, + int arg1, ) { - return _tanf( + return _sigsetjmp( arg0, + arg1, ); } - late final _tanfPtr = - _lookup>('tanf'); - late final _tanf = _tanfPtr.asFunction(); + late final _sigsetjmpPtr = _lookup< + ffi.NativeFunction, ffi.Int)>>( + 'sigsetjmp'); + late final _sigsetjmp = + _sigsetjmpPtr.asFunction, int)>(); - double tan( - double arg0, + void siglongjmp( + ffi.Pointer arg0, + int arg1, ) { - return _tan( + return _siglongjmp( arg0, + arg1, ); } - late final _tanPtr = - _lookup>('tan'); - late final _tan = _tanPtr.asFunction(); + late final _siglongjmpPtr = _lookup< + ffi.NativeFunction, ffi.Int)>>( + 'siglongjmp'); + late final _siglongjmp = + _siglongjmpPtr.asFunction, int)>(); - double acoshf( - double arg0, - ) { - return _acoshf( - arg0, - ); + void longjmperror() { + return _longjmperror(); } - late final _acoshfPtr = - _lookup>('acoshf'); - late final _acoshf = _acoshfPtr.asFunction(); + late final _longjmperrorPtr = + _lookup>('longjmperror'); + late final _longjmperror = _longjmperrorPtr.asFunction(); - double acosh( - double arg0, + ffi.Pointer> signal( + int arg0, + ffi.Pointer> arg1, ) { - return _acosh( + return _signal( arg0, + arg1, ); } - late final _acoshPtr = - _lookup>('acosh'); - late final _acosh = _acoshPtr.asFunction(); + 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>)>(); - double asinhf( - double arg0, + late final ffi.Pointer>> _sys_signame = + _lookup>>('sys_signame'); + + ffi.Pointer> get sys_signame => _sys_signame.value; + + set sys_signame(ffi.Pointer> value) => + _sys_signame.value = value; + + late final ffi.Pointer>> _sys_siglist = + _lookup>>('sys_siglist'); + + ffi.Pointer> get sys_siglist => _sys_siglist.value; + + set sys_siglist(ffi.Pointer> value) => + _sys_siglist.value = value; + + int raise( + int arg0, ) { - return _asinhf( + return _raise( arg0, ); } - late final _asinhfPtr = - _lookup>('asinhf'); - late final _asinhf = _asinhfPtr.asFunction(); + late final _raisePtr = + _lookup>('raise'); + late final _raise = _raisePtr.asFunction(); - double asinh( - double arg0, + ffi.Pointer> bsd_signal( + int arg0, + ffi.Pointer> arg1, ) { - return _asinh( + return _bsd_signal( arg0, + arg1, ); } - late final _asinhPtr = - _lookup>('asinh'); - late final _asinh = _asinhPtr.asFunction(); + late final _bsd_signalPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer> Function( + ffi.Int, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Int)>>)>>('bsd_signal'); + late final _bsd_signal = _bsd_signalPtr.asFunction< + ffi.Pointer> Function( + int, ffi.Pointer>)>(); - double atanhf( - double arg0, + int kill( + int arg0, + int arg1, ) { - return _atanhf( + return _kill( arg0, + arg1, ); } - late final _atanhfPtr = - _lookup>('atanhf'); - late final _atanhf = _atanhfPtr.asFunction(); + late final _killPtr = + _lookup>('kill'); + late final _kill = _killPtr.asFunction(); - double atanh( - double arg0, + int killpg( + int arg0, + int arg1, ) { - return _atanh( + return _killpg( arg0, + arg1, ); } - late final _atanhPtr = - _lookup>('atanh'); - late final _atanh = _atanhPtr.asFunction(); + late final _killpgPtr = + _lookup>('killpg'); + late final _killpg = _killpgPtr.asFunction(); - double coshf( - double arg0, + int pthread_kill( + pthread_t arg0, + int arg1, ) { - return _coshf( + return _pthread_kill( arg0, + arg1, ); } - late final _coshfPtr = - _lookup>('coshf'); - late final _coshf = _coshfPtr.asFunction(); + late final _pthread_killPtr = + _lookup>( + 'pthread_kill'); + late final _pthread_kill = + _pthread_killPtr.asFunction(); - double cosh( - double arg0, + int pthread_sigmask( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, ) { - return _cosh( + return _pthread_sigmask( arg0, + arg1, + arg2, ); } - late final _coshPtr = - _lookup>('cosh'); - late final _cosh = _coshPtr.asFunction(); + 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)>(); - double sinhf( - double arg0, + int sigaction1( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, ) { - return _sinhf( + return _sigaction1( arg0, + arg1, + arg2, ); } - late final _sinhfPtr = - _lookup>('sinhf'); - late final _sinhf = _sinhfPtr.asFunction(); + late final _sigaction1Ptr = _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Int, ffi.Pointer, + ffi.Pointer)>>('sigaction'); + late final _sigaction1 = _sigaction1Ptr.asFunction< + int Function(int, ffi.Pointer, ffi.Pointer)>(); - double sinh( - double arg0, + int sigaddset( + ffi.Pointer arg0, + int arg1, ) { - return _sinh( + return _sigaddset( arg0, + arg1, ); } - late final _sinhPtr = - _lookup>('sinh'); - late final _sinh = _sinhPtr.asFunction(); + late final _sigaddsetPtr = _lookup< + ffi.NativeFunction, ffi.Int)>>( + 'sigaddset'); + late final _sigaddset = + _sigaddsetPtr.asFunction, int)>(); - double tanhf( - double arg0, + int sigaltstack( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _tanhf( + return _sigaltstack( arg0, + arg1, ); } - late final _tanhfPtr = - _lookup>('tanhf'); - late final _tanhf = _tanhfPtr.asFunction(); + late final _sigaltstackPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>('sigaltstack'); + late final _sigaltstack = _sigaltstackPtr + .asFunction, ffi.Pointer)>(); - double tanh( - double arg0, + int sigdelset( + ffi.Pointer arg0, + int arg1, ) { - return _tanh( + return _sigdelset( arg0, + arg1, ); } - late final _tanhPtr = - _lookup>('tanh'); - late final _tanh = _tanhPtr.asFunction(); + late final _sigdelsetPtr = _lookup< + ffi.NativeFunction, ffi.Int)>>( + 'sigdelset'); + late final _sigdelset = + _sigdelsetPtr.asFunction, int)>(); - double expf( - double arg0, + int sigemptyset( + ffi.Pointer arg0, ) { - return _expf( + return _sigemptyset( arg0, ); } - late final _expfPtr = - _lookup>('expf'); - late final _expf = _expfPtr.asFunction(); + late final _sigemptysetPtr = + _lookup)>>( + 'sigemptyset'); + late final _sigemptyset = + _sigemptysetPtr.asFunction)>(); - double exp( - double arg0, + int sigfillset( + ffi.Pointer arg0, ) { - return _exp( + return _sigfillset( arg0, ); } - late final _expPtr = - _lookup>('exp'); - late final _exp = _expPtr.asFunction(); + late final _sigfillsetPtr = + _lookup)>>( + 'sigfillset'); + late final _sigfillset = + _sigfillsetPtr.asFunction)>(); - double exp2f( - double arg0, + int sighold( + int arg0, ) { - return _exp2f( + return _sighold( arg0, ); } - late final _exp2fPtr = - _lookup>('exp2f'); - late final _exp2f = _exp2fPtr.asFunction(); + late final _sigholdPtr = + _lookup>('sighold'); + late final _sighold = _sigholdPtr.asFunction(); - double exp2( - double arg0, + int sigignore( + int arg0, ) { - return _exp2( + return _sigignore( arg0, ); } - late final _exp2Ptr = - _lookup>('exp2'); - late final _exp2 = _exp2Ptr.asFunction(); + late final _sigignorePtr = + _lookup>('sigignore'); + late final _sigignore = _sigignorePtr.asFunction(); - double expm1f( - double arg0, + int siginterrupt( + int arg0, + int arg1, ) { - return _expm1f( + return _siginterrupt( arg0, + arg1, ); } - late final _expm1fPtr = - _lookup>('expm1f'); - late final _expm1f = _expm1fPtr.asFunction(); - - double expm1( - double arg0, + late final _siginterruptPtr = + _lookup>( + 'siginterrupt'); + late final _siginterrupt = + _siginterruptPtr.asFunction(); + + int sigismember( + ffi.Pointer arg0, + int arg1, ) { - return _expm1( + return _sigismember( arg0, + arg1, ); } - late final _expm1Ptr = - _lookup>('expm1'); - late final _expm1 = _expm1Ptr.asFunction(); + late final _sigismemberPtr = _lookup< + ffi.NativeFunction, ffi.Int)>>( + 'sigismember'); + late final _sigismember = + _sigismemberPtr.asFunction, int)>(); - double logf( - double arg0, + int sigpause( + int arg0, ) { - return _logf( + return _sigpause( arg0, ); } - late final _logfPtr = - _lookup>('logf'); - late final _logf = _logfPtr.asFunction(); + late final _sigpausePtr = + _lookup>('sigpause'); + late final _sigpause = _sigpausePtr.asFunction(); - double log( - double arg0, + int sigpending( + ffi.Pointer arg0, ) { - return _log( + return _sigpending( arg0, ); } - late final _logPtr = - _lookup>('log'); - late final _log = _logPtr.asFunction(); + late final _sigpendingPtr = + _lookup)>>( + 'sigpending'); + late final _sigpending = + _sigpendingPtr.asFunction)>(); - double log10f( - double arg0, + int sigprocmask( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, ) { - return _log10f( + return _sigprocmask( arg0, + arg1, + arg2, ); } - late final _log10fPtr = - _lookup>('log10f'); - late final _log10f = _log10fPtr.asFunction(); + 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)>(); - double log10( - double arg0, + int sigrelse( + int arg0, ) { - return _log10( + return _sigrelse( arg0, ); } - late final _log10Ptr = - _lookup>('log10'); - late final _log10 = _log10Ptr.asFunction(); + late final _sigrelsePtr = + _lookup>('sigrelse'); + late final _sigrelse = _sigrelsePtr.asFunction(); - double log2f( - double arg0, + ffi.Pointer> sigset( + int arg0, + ffi.Pointer> arg1, ) { - return _log2f( + return _sigset( arg0, + arg1, ); } - late final _log2fPtr = - _lookup>('log2f'); - late final _log2f = _log2fPtr.asFunction(); + 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>)>(); - double log2( - double arg0, + int sigsuspend( + ffi.Pointer arg0, ) { - return _log2( + return _sigsuspend( arg0, ); } - late final _log2Ptr = - _lookup>('log2'); - late final _log2 = _log2Ptr.asFunction(); + late final _sigsuspendPtr = + _lookup)>>( + 'sigsuspend'); + late final _sigsuspend = + _sigsuspendPtr.asFunction)>(); - double log1pf( - double arg0, + int sigwait( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _log1pf( + return _sigwait( arg0, + arg1, ); } - late final _log1pfPtr = - _lookup>('log1pf'); - late final _log1pf = _log1pfPtr.asFunction(); + late final _sigwaitPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>('sigwait'); + late final _sigwait = _sigwaitPtr + .asFunction, ffi.Pointer)>(); - double log1p( - double arg0, + void psignal( + int arg0, + ffi.Pointer arg1, ) { - return _log1p( + return _psignal( arg0, + arg1, ); } - late final _log1pPtr = - _lookup>('log1p'); - late final _log1p = _log1pPtr.asFunction(); + late final _psignalPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.UnsignedInt, ffi.Pointer)>>('psignal'); + late final _psignal = + _psignalPtr.asFunction)>(); - double logbf( - double arg0, + int sigblock( + int arg0, ) { - return _logbf( + return _sigblock( arg0, ); } - late final _logbfPtr = - _lookup>('logbf'); - late final _logbf = _logbfPtr.asFunction(); + late final _sigblockPtr = + _lookup>('sigblock'); + late final _sigblock = _sigblockPtr.asFunction(); - double logb( - double arg0, + int sigsetmask( + int arg0, ) { - return _logb( + return _sigsetmask( arg0, ); } - late final _logbPtr = - _lookup>('logb'); - late final _logb = _logbPtr.asFunction(); + late final _sigsetmaskPtr = + _lookup>('sigsetmask'); + late final _sigsetmask = _sigsetmaskPtr.asFunction(); - double modff( - double arg0, - ffi.Pointer arg1, + int sigvec1( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, ) { - return _modff( + return _sigvec1( arg0, arg1, + arg2, ); } - late final _modffPtr = _lookup< + late final _sigvec1Ptr = _lookup< ffi.NativeFunction< - ffi.Float Function(ffi.Float, ffi.Pointer)>>('modff'); - late final _modff = - _modffPtr.asFunction)>(); + ffi.Int Function( + ffi.Int, ffi.Pointer, ffi.Pointer)>>('sigvec'); + late final _sigvec1 = _sigvec1Ptr.asFunction< + int Function(int, ffi.Pointer, ffi.Pointer)>(); - double modf( - double arg0, - ffi.Pointer arg1, + int renameat( + int arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, ) { - return _modf( + return _renameat( arg0, arg1, + arg2, + arg3, ); } - late final _modfPtr = _lookup< + late final _renameatPtr = _lookup< ffi.NativeFunction< - ffi.Double Function(ffi.Double, ffi.Pointer)>>('modf'); - late final _modf = - _modfPtr.asFunction)>(); + 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)>(); - double ldexpf( - double arg0, - int arg1, + int renamex_np( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, ) { - return _ldexpf( + return _renamex_np( arg0, arg1, + arg2, ); } - late final _ldexpfPtr = - _lookup>( - 'ldexpf'); - late final _ldexpf = _ldexpfPtr.asFunction(); + 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)>(); - double ldexp( - double arg0, - int arg1, + int renameatx_np( + int arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + int arg4, ) { - return _ldexp( + return _renameatx_np( arg0, arg1, + arg2, + arg3, + arg4, ); } - late final _ldexpPtr = - _lookup>( - 'ldexp'); - late final _ldexp = _ldexpPtr.asFunction(); + 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)>(); - double frexpf( - double arg0, - ffi.Pointer arg1, + late final ffi.Pointer> ___stdinp = + _lookup>('__stdinp'); + + ffi.Pointer get __stdinp => ___stdinp.value; + + set __stdinp(ffi.Pointer value) => ___stdinp.value = value; + + late final ffi.Pointer> ___stdoutp = + _lookup>('__stdoutp'); + + ffi.Pointer get __stdoutp => ___stdoutp.value; + + set __stdoutp(ffi.Pointer value) => ___stdoutp.value = value; + + late final ffi.Pointer> ___stderrp = + _lookup>('__stderrp'); + + ffi.Pointer get __stderrp => ___stderrp.value; + + set __stderrp(ffi.Pointer value) => ___stderrp.value = value; + + void clearerr( + ffi.Pointer arg0, ) { - return _frexpf( + return _clearerr( arg0, - arg1, ); } - late final _frexpfPtr = _lookup< - ffi.NativeFunction< - ffi.Float Function(ffi.Float, ffi.Pointer)>>('frexpf'); - late final _frexpf = - _frexpfPtr.asFunction)>(); + late final _clearerrPtr = + _lookup)>>( + 'clearerr'); + late final _clearerr = + _clearerrPtr.asFunction)>(); - double frexp( - double arg0, - ffi.Pointer arg1, + int fclose( + ffi.Pointer arg0, ) { - return _frexp( + return _fclose( arg0, - arg1, ); } - late final _frexpPtr = _lookup< - ffi.NativeFunction< - ffi.Double Function(ffi.Double, ffi.Pointer)>>('frexp'); - late final _frexp = - _frexpPtr.asFunction)>(); + late final _fclosePtr = + _lookup)>>( + 'fclose'); + late final _fclose = _fclosePtr.asFunction)>(); - int ilogbf( - double arg0, + int feof( + ffi.Pointer arg0, ) { - return _ilogbf( + return _feof( arg0, ); } - late final _ilogbfPtr = - _lookup>('ilogbf'); - late final _ilogbf = _ilogbfPtr.asFunction(); + late final _feofPtr = + _lookup)>>('feof'); + late final _feof = _feofPtr.asFunction)>(); - int ilogb( - double arg0, + int ferror( + ffi.Pointer arg0, ) { - return _ilogb( + return _ferror( arg0, ); } - late final _ilogbPtr = - _lookup>('ilogb'); - late final _ilogb = _ilogbPtr.asFunction(); + late final _ferrorPtr = + _lookup)>>( + 'ferror'); + late final _ferror = _ferrorPtr.asFunction)>(); - double scalbnf( - double arg0, - int arg1, + int fflush( + ffi.Pointer arg0, ) { - return _scalbnf( + return _fflush( arg0, - arg1, ); } - late final _scalbnfPtr = - _lookup>( - 'scalbnf'); - late final _scalbnf = _scalbnfPtr.asFunction(); + late final _fflushPtr = + _lookup)>>( + 'fflush'); + late final _fflush = _fflushPtr.asFunction)>(); - double scalbn( - double arg0, - int arg1, + int fgetc( + ffi.Pointer arg0, ) { - return _scalbn( + return _fgetc( arg0, - arg1, ); } - late final _scalbnPtr = - _lookup>( - 'scalbn'); - late final _scalbn = _scalbnPtr.asFunction(); + late final _fgetcPtr = + _lookup)>>('fgetc'); + late final _fgetc = _fgetcPtr.asFunction)>(); - double scalblnf( - double arg0, - int arg1, + int fgetpos( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _scalblnf( + return _fgetpos( arg0, arg1, ); } - late final _scalblnfPtr = - _lookup>( - 'scalblnf'); - late final _scalblnf = - _scalblnfPtr.asFunction(); + late final _fgetposPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer)>>('fgetpos'); + late final _fgetpos = _fgetposPtr + .asFunction, ffi.Pointer)>(); - double scalbln( - double arg0, + ffi.Pointer fgets( + ffi.Pointer arg0, int arg1, + ffi.Pointer arg2, ) { - return _scalbln( + return _fgets( arg0, arg1, + arg2, ); } - late final _scalblnPtr = - _lookup>( - 'scalbln'); - late final _scalbln = _scalblnPtr.asFunction(); + 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)>(); - double fabsf( - double arg0, + ffi.Pointer fopen( + ffi.Pointer __filename, + ffi.Pointer __mode, ) { - return _fabsf( - arg0, + return _fopen( + __filename, + __mode, ); } - late final _fabsfPtr = - _lookup>('fabsf'); - late final _fabsf = _fabsfPtr.asFunction(); + 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)>(); - double fabs( - double arg0, + int fprintf( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _fabs( + return _fprintf( arg0, + arg1, ); } - late final _fabsPtr = - _lookup>('fabs'); - late final _fabs = _fabsPtr.asFunction(); + late final _fprintfPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>('fprintf'); + late final _fprintf = _fprintfPtr + .asFunction, ffi.Pointer)>(); - double cbrtf( - double arg0, + int fputc( + int arg0, + ffi.Pointer arg1, ) { - return _cbrtf( + return _fputc( arg0, + arg1, ); } - late final _cbrtfPtr = - _lookup>('cbrtf'); - late final _cbrtf = _cbrtfPtr.asFunction(); + late final _fputcPtr = + _lookup)>>( + 'fputc'); + late final _fputc = + _fputcPtr.asFunction)>(); - double cbrt( - double arg0, + int fputs( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _cbrt( + return _fputs( arg0, + arg1, ); } - late final _cbrtPtr = - _lookup>('cbrt'); - late final _cbrt = _cbrtPtr.asFunction(); + late final _fputsPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer)>>('fputs'); + late final _fputs = _fputsPtr + .asFunction, ffi.Pointer)>(); - double hypotf( - double arg0, - double arg1, + int fread( + ffi.Pointer __ptr, + int __size, + int __nitems, + ffi.Pointer __stream, ) { - return _hypotf( - arg0, - arg1, + return _fread( + __ptr, + __size, + __nitems, + __stream, ); } - late final _hypotfPtr = - _lookup>( - 'hypotf'); - late final _hypotf = _hypotfPtr.asFunction(); + 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)>(); - double hypot( - double arg0, - double arg1, + ffi.Pointer freopen( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, ) { - return _hypot( + return _freopen( arg0, arg1, + arg2, ); } - late final _hypotPtr = - _lookup>( - 'hypot'); - late final _hypot = _hypotPtr.asFunction(); + 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)>(); - double powf( - double arg0, - double arg1, + int fscanf( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _powf( + return _fscanf( arg0, arg1, ); } - late final _powfPtr = - _lookup>( - 'powf'); - late final _powf = _powfPtr.asFunction(); + late final _fscanfPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>('fscanf'); + late final _fscanf = _fscanfPtr + .asFunction, ffi.Pointer)>(); - double pow( - double arg0, - double arg1, + int fseek( + ffi.Pointer arg0, + int arg1, + int arg2, ) { - return _pow( + return _fseek( arg0, arg1, + arg2, ); } - late final _powPtr = - _lookup>( - 'pow'); - late final _pow = _powPtr.asFunction(); + late final _fseekPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Long, ffi.Int)>>('fseek'); + late final _fseek = + _fseekPtr.asFunction, int, int)>(); - double sqrtf( - double arg0, + int fsetpos( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _sqrtf( + return _fsetpos( arg0, + arg1, ); } - late final _sqrtfPtr = - _lookup>('sqrtf'); - late final _sqrtf = _sqrtfPtr.asFunction(); + late final _fsetposPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer)>>('fsetpos'); + late final _fsetpos = _fsetposPtr + .asFunction, ffi.Pointer)>(); - double sqrt( - double arg0, + int ftell( + ffi.Pointer arg0, ) { - return _sqrt( + return _ftell( arg0, ); } - late final _sqrtPtr = - _lookup>('sqrt'); - late final _sqrt = _sqrtPtr.asFunction(); + late final _ftellPtr = + _lookup)>>( + 'ftell'); + late final _ftell = _ftellPtr.asFunction)>(); - double erff( - double arg0, + int fwrite( + ffi.Pointer __ptr, + int __size, + int __nitems, + ffi.Pointer __stream, ) { - return _erff( - arg0, + return _fwrite( + __ptr, + __size, + __nitems, + __stream, ); } - late final _erffPtr = - _lookup>('erff'); - late final _erff = _erffPtr.asFunction(); + 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)>(); - double erf( - double arg0, + int getc( + ffi.Pointer arg0, ) { - return _erf( + return _getc( arg0, ); } - late final _erfPtr = - _lookup>('erf'); - late final _erf = _erfPtr.asFunction(); + late final _getcPtr = + _lookup)>>('getc'); + late final _getc = _getcPtr.asFunction)>(); - double erfcf( - double arg0, - ) { - return _erfcf( - arg0, - ); + int getchar() { + return _getchar(); } - late final _erfcfPtr = - _lookup>('erfcf'); - late final _erfcf = _erfcfPtr.asFunction(); + late final _getcharPtr = + _lookup>('getchar'); + late final _getchar = _getcharPtr.asFunction(); - double erfc( - double arg0, + ffi.Pointer gets( + ffi.Pointer arg0, ) { - return _erfc( + return _gets( arg0, ); } - late final _erfcPtr = - _lookup>('erfc'); - late final _erfc = _erfcPtr.asFunction(); + late final _getsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('gets'); + late final _gets = _getsPtr + .asFunction Function(ffi.Pointer)>(); - double lgammaf( - double arg0, + void perror( + ffi.Pointer arg0, ) { - return _lgammaf( + return _perror( arg0, ); } - late final _lgammafPtr = - _lookup>('lgammaf'); - late final _lgammaf = _lgammafPtr.asFunction(); + late final _perrorPtr = + _lookup)>>( + 'perror'); + late final _perror = + _perrorPtr.asFunction)>(); - double lgamma( - double arg0, + int printf( + ffi.Pointer arg0, ) { - return _lgamma( + return _printf( arg0, ); } - late final _lgammaPtr = - _lookup>('lgamma'); - late final _lgamma = _lgammaPtr.asFunction(); + late final _printfPtr = + _lookup)>>( + 'printf'); + late final _printf = + _printfPtr.asFunction)>(); - double tgammaf( - double arg0, + int putc( + int arg0, + ffi.Pointer arg1, ) { - return _tgammaf( + return _putc( arg0, + arg1, ); } - late final _tgammafPtr = - _lookup>('tgammaf'); - late final _tgammaf = _tgammafPtr.asFunction(); + late final _putcPtr = + _lookup)>>( + 'putc'); + late final _putc = + _putcPtr.asFunction)>(); - double tgamma( - double arg0, + int putchar( + int arg0, ) { - return _tgamma( + return _putchar( arg0, ); } - late final _tgammaPtr = - _lookup>('tgamma'); - late final _tgamma = _tgammaPtr.asFunction(); + late final _putcharPtr = + _lookup>('putchar'); + late final _putchar = _putcharPtr.asFunction(); - double ceilf( - double arg0, + int puts( + ffi.Pointer arg0, ) { - return _ceilf( + return _puts( arg0, ); } - late final _ceilfPtr = - _lookup>('ceilf'); - late final _ceilf = _ceilfPtr.asFunction(); + late final _putsPtr = + _lookup)>>( + 'puts'); + late final _puts = _putsPtr.asFunction)>(); - double ceil( - double arg0, + int remove( + ffi.Pointer arg0, ) { - return _ceil( + return _remove( arg0, ); } - late final _ceilPtr = - _lookup>('ceil'); - late final _ceil = _ceilPtr.asFunction(); + late final _removePtr = + _lookup)>>( + 'remove'); + late final _remove = + _removePtr.asFunction)>(); - double floorf( - double arg0, + int rename( + ffi.Pointer __old, + ffi.Pointer __new, ) { - return _floorf( - arg0, + return _rename( + __old, + __new, ); } - late final _floorfPtr = - _lookup>('floorf'); - late final _floorf = _floorfPtr.asFunction(); + late final _renamePtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>('rename'); + late final _rename = _renamePtr + .asFunction, ffi.Pointer)>(); - double floor( - double arg0, + void rewind( + ffi.Pointer arg0, ) { - return _floor( + return _rewind( arg0, ); } - late final _floorPtr = - _lookup>('floor'); - late final _floor = _floorPtr.asFunction(); + late final _rewindPtr = + _lookup)>>( + 'rewind'); + late final _rewind = + _rewindPtr.asFunction)>(); - double nearbyintf( - double arg0, + int scanf( + ffi.Pointer arg0, ) { - return _nearbyintf( + return _scanf( arg0, ); } - late final _nearbyintfPtr = - _lookup>('nearbyintf'); - late final _nearbyintf = _nearbyintfPtr.asFunction(); + late final _scanfPtr = + _lookup)>>( + 'scanf'); + late final _scanf = + _scanfPtr.asFunction)>(); - double nearbyint( - double arg0, + void setbuf( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _nearbyint( + return _setbuf( arg0, + arg1, ); } - late final _nearbyintPtr = - _lookup>('nearbyint'); - late final _nearbyint = _nearbyintPtr.asFunction(); + late final _setbufPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, ffi.Pointer)>>('setbuf'); + late final _setbuf = _setbufPtr + .asFunction, ffi.Pointer)>(); - double rintf( - double arg0, + int setvbuf( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, ) { - return _rintf( + return _setvbuf( arg0, + arg1, + arg2, + arg3, ); } - late final _rintfPtr = - _lookup>('rintf'); - late final _rintf = _rintfPtr.asFunction(); + 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)>(); - double rint( - double arg0, + int sprintf( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _rint( + return _sprintf( arg0, + arg1, ); } - late final _rintPtr = - _lookup>('rint'); - late final _rint = _rintPtr.asFunction(); + late final _sprintfPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>('sprintf'); + late final _sprintf = _sprintfPtr + .asFunction, ffi.Pointer)>(); - int lrintf( - double arg0, + int sscanf( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _lrintf( + return _sscanf( arg0, + arg1, ); } - late final _lrintfPtr = - _lookup>('lrintf'); - late final _lrintf = _lrintfPtr.asFunction(); + late final _sscanfPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>('sscanf'); + late final _sscanf = _sscanfPtr + .asFunction, ffi.Pointer)>(); - int lrint( - double arg0, + ffi.Pointer tmpfile() { + return _tmpfile(); + } + + late final _tmpfilePtr = + _lookup Function()>>('tmpfile'); + late final _tmpfile = _tmpfilePtr.asFunction Function()>(); + + ffi.Pointer tmpnam( + ffi.Pointer arg0, ) { - return _lrint( + return _tmpnam( arg0, ); } - late final _lrintPtr = - _lookup>('lrint'); - late final _lrint = _lrintPtr.asFunction(); + late final _tmpnamPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('tmpnam'); + late final _tmpnam = _tmpnamPtr + .asFunction Function(ffi.Pointer)>(); - double roundf( - double arg0, + int ungetc( + int arg0, + ffi.Pointer arg1, ) { - return _roundf( + return _ungetc( arg0, + arg1, ); } - late final _roundfPtr = - _lookup>('roundf'); - late final _roundf = _roundfPtr.asFunction(); + late final _ungetcPtr = + _lookup)>>( + 'ungetc'); + late final _ungetc = + _ungetcPtr.asFunction)>(); - double round( - double arg0, + int vfprintf( + ffi.Pointer arg0, + ffi.Pointer arg1, + va_list arg2, ) { - return _round( + return _vfprintf( arg0, + arg1, + arg2, ); } - late final _roundPtr = - _lookup>('round'); - late final _round = _roundPtr.asFunction(); + 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 lroundf( - double arg0, + int vprintf( + ffi.Pointer arg0, + va_list arg1, ) { - return _lroundf( + return _vprintf( arg0, + arg1, ); } - late final _lroundfPtr = - _lookup>('lroundf'); - late final _lroundf = _lroundfPtr.asFunction(); + late final _vprintfPtr = _lookup< + ffi.NativeFunction, va_list)>>( + 'vprintf'); + late final _vprintf = + _vprintfPtr.asFunction, va_list)>(); - int lround( - double arg0, + int vsprintf( + ffi.Pointer arg0, + ffi.Pointer arg1, + va_list arg2, ) { - return _lround( + return _vsprintf( arg0, + arg1, + arg2, ); } - late final _lroundPtr = - _lookup>('lround'); - late final _lround = _lroundPtr.asFunction(); + 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)>(); - int llrintf( - double arg0, + ffi.Pointer ctermid( + ffi.Pointer arg0, ) { - return _llrintf( + return _ctermid( arg0, ); } - late final _llrintfPtr = - _lookup>('llrintf'); - late final _llrintf = _llrintfPtr.asFunction(); + late final _ctermidPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('ctermid'); + late final _ctermid = _ctermidPtr + .asFunction Function(ffi.Pointer)>(); - int llrint( - double arg0, + ffi.Pointer fdopen( + int arg0, + ffi.Pointer arg1, ) { - return _llrint( + return _fdopen( arg0, + arg1, ); } - late final _llrintPtr = - _lookup>('llrint'); - late final _llrint = _llrintPtr.asFunction(); + late final _fdopenPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Pointer)>>('fdopen'); + late final _fdopen = _fdopenPtr + .asFunction Function(int, ffi.Pointer)>(); - int llroundf( - double arg0, + int fileno( + ffi.Pointer arg0, ) { - return _llroundf( + return _fileno( arg0, ); } - late final _llroundfPtr = - _lookup>('llroundf'); - late final _llroundf = _llroundfPtr.asFunction(); + late final _filenoPtr = + _lookup)>>( + 'fileno'); + late final _fileno = _filenoPtr.asFunction)>(); - int llround( - double arg0, + int pclose( + ffi.Pointer arg0, ) { - return _llround( + return _pclose( arg0, ); } - late final _llroundPtr = - _lookup>('llround'); - late final _llround = _llroundPtr.asFunction(); + late final _pclosePtr = + _lookup)>>( + 'pclose'); + late final _pclose = _pclosePtr.asFunction)>(); - double truncf( - double arg0, + ffi.Pointer popen( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _truncf( + return _popen( arg0, + arg1, ); } - late final _truncfPtr = - _lookup>('truncf'); - late final _truncf = _truncfPtr.asFunction(); + 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)>(); - double trunc( - double arg0, + int __srget( + ffi.Pointer arg0, ) { - return _trunc( + return ___srget( arg0, ); } - late final _truncPtr = - _lookup>('trunc'); - late final _trunc = _truncPtr.asFunction(); + late final ___srgetPtr = + _lookup)>>( + '__srget'); + late final ___srget = + ___srgetPtr.asFunction)>(); - double fmodf( - double arg0, - double arg1, + int __svfscanf( + ffi.Pointer arg0, + ffi.Pointer arg1, + va_list arg2, ) { - return _fmodf( + return ___svfscanf( arg0, arg1, + arg2, ); } - late final _fmodfPtr = - _lookup>( - 'fmodf'); - late final _fmodf = _fmodfPtr.asFunction(); + 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)>(); - double fmod( - double arg0, - double arg1, + int __swbuf( + int arg0, + ffi.Pointer arg1, ) { - return _fmod( + return ___swbuf( arg0, arg1, ); } - late final _fmodPtr = - _lookup>( - 'fmod'); - late final _fmod = _fmodPtr.asFunction(); + late final ___swbufPtr = + _lookup)>>( + '__swbuf'); + late final ___swbuf = + ___swbufPtr.asFunction)>(); - double remainderf( - double arg0, - double arg1, + void flockfile( + ffi.Pointer arg0, ) { - return _remainderf( + return _flockfile( arg0, - arg1, ); } - late final _remainderfPtr = - _lookup>( - 'remainderf'); - late final _remainderf = - _remainderfPtr.asFunction(); + late final _flockfilePtr = + _lookup)>>( + 'flockfile'); + late final _flockfile = + _flockfilePtr.asFunction)>(); - double remainder( - double arg0, - double arg1, + int ftrylockfile( + ffi.Pointer arg0, ) { - return _remainder( + return _ftrylockfile( arg0, - arg1, ); } - late final _remainderPtr = - _lookup>( - 'remainder'); - late final _remainder = - _remainderPtr.asFunction(); + late final _ftrylockfilePtr = + _lookup)>>( + 'ftrylockfile'); + late final _ftrylockfile = + _ftrylockfilePtr.asFunction)>(); - double remquof( - double arg0, - double arg1, - ffi.Pointer arg2, + void funlockfile( + ffi.Pointer arg0, ) { - return _remquof( + return _funlockfile( arg0, - arg1, - arg2, ); } - late final _remquofPtr = _lookup< - ffi.NativeFunction< - ffi.Float Function( - ffi.Float, ffi.Float, ffi.Pointer)>>('remquof'); - late final _remquof = _remquofPtr - .asFunction)>(); + late final _funlockfilePtr = + _lookup)>>( + 'funlockfile'); + late final _funlockfile = + _funlockfilePtr.asFunction)>(); - double remquo( - double arg0, - double arg1, - ffi.Pointer arg2, + int getc_unlocked( + ffi.Pointer arg0, ) { - return _remquo( + return _getc_unlocked( arg0, - arg1, - arg2, ); } - late final _remquoPtr = _lookup< - ffi.NativeFunction< - ffi.Double Function( - ffi.Double, ffi.Double, ffi.Pointer)>>('remquo'); - late final _remquo = _remquoPtr - .asFunction)>(); + late final _getc_unlockedPtr = + _lookup)>>( + 'getc_unlocked'); + late final _getc_unlocked = + _getc_unlockedPtr.asFunction)>(); - double copysignf( - double arg0, - double arg1, - ) { - return _copysignf( - arg0, - arg1, - ); + int getchar_unlocked() { + return _getchar_unlocked(); } - late final _copysignfPtr = - _lookup>( - 'copysignf'); - late final _copysignf = - _copysignfPtr.asFunction(); + late final _getchar_unlockedPtr = + _lookup>('getchar_unlocked'); + late final _getchar_unlocked = + _getchar_unlockedPtr.asFunction(); - double copysign( - double arg0, - double arg1, + int putc_unlocked( + int arg0, + ffi.Pointer arg1, ) { - return _copysign( + return _putc_unlocked( arg0, arg1, ); } - late final _copysignPtr = - _lookup>( - 'copysign'); - late final _copysign = - _copysignPtr.asFunction(); + late final _putc_unlockedPtr = + _lookup)>>( + 'putc_unlocked'); + late final _putc_unlocked = + _putc_unlockedPtr.asFunction)>(); - double nanf( - ffi.Pointer arg0, + int putchar_unlocked( + int arg0, ) { - return _nanf( + return _putchar_unlocked( arg0, ); } - late final _nanfPtr = - _lookup)>>( - 'nanf'); - late final _nanf = - _nanfPtr.asFunction)>(); + late final _putchar_unlockedPtr = + _lookup>( + 'putchar_unlocked'); + late final _putchar_unlocked = + _putchar_unlockedPtr.asFunction(); - double nan( - ffi.Pointer arg0, + int getw( + ffi.Pointer arg0, ) { - return _nan( + return _getw( arg0, ); } - late final _nanPtr = - _lookup)>>( - 'nan'); - late final _nan = - _nanPtr.asFunction)>(); + late final _getwPtr = + _lookup)>>('getw'); + late final _getw = _getwPtr.asFunction)>(); - double nextafterf( - double arg0, - double arg1, + int putw( + int arg0, + ffi.Pointer arg1, ) { - return _nextafterf( + return _putw( arg0, arg1, ); } - late final _nextafterfPtr = - _lookup>( - 'nextafterf'); - late final _nextafterf = - _nextafterfPtr.asFunction(); + late final _putwPtr = + _lookup)>>( + 'putw'); + late final _putw = + _putwPtr.asFunction)>(); - double nextafter( - double arg0, - double arg1, + ffi.Pointer tempnam( + ffi.Pointer __dir, + ffi.Pointer __prefix, ) { - return _nextafter( - arg0, - arg1, + return _tempnam( + __dir, + __prefix, ); } - late final _nextafterPtr = - _lookup>( - 'nextafter'); - late final _nextafter = - _nextafterPtr.asFunction(); + 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)>(); - double fdimf( - double arg0, - double arg1, + int fseeko( + ffi.Pointer __stream, + int __offset, + int __whence, ) { - return _fdimf( - arg0, - arg1, + return _fseeko( + __stream, + __offset, + __whence, ); } - late final _fdimfPtr = - _lookup>( - 'fdimf'); - late final _fdimf = _fdimfPtr.asFunction(); + late final _fseekoPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, off_t, ffi.Int)>>('fseeko'); + late final _fseeko = + _fseekoPtr.asFunction, int, int)>(); - double fdim( - double arg0, - double arg1, + int ftello( + ffi.Pointer __stream, ) { - return _fdim( - arg0, - arg1, + return _ftello( + __stream, ); } - late final _fdimPtr = - _lookup>( - 'fdim'); - late final _fdim = _fdimPtr.asFunction(); + late final _ftelloPtr = + _lookup)>>('ftello'); + late final _ftello = _ftelloPtr.asFunction)>(); - double fmaxf( - double arg0, - double arg1, + int snprintf( + ffi.Pointer __str, + int __size, + ffi.Pointer __format, ) { - return _fmaxf( - arg0, - arg1, + return _snprintf( + __str, + __size, + __format, ); } - late final _fmaxfPtr = - _lookup>( - 'fmaxf'); - late final _fmaxf = _fmaxfPtr.asFunction(); + 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)>(); - double fmax( - double arg0, - double arg1, + int vfscanf( + ffi.Pointer __stream, + ffi.Pointer __format, + va_list arg2, ) { - return _fmax( - arg0, - arg1, + return _vfscanf( + __stream, + __format, + arg2, ); } - late final _fmaxPtr = - _lookup>( - 'fmax'); - late final _fmax = _fmaxPtr.asFunction(); + 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)>(); - double fminf( - double arg0, - double arg1, + int vscanf( + ffi.Pointer __format, + va_list arg1, ) { - return _fminf( - arg0, + return _vscanf( + __format, arg1, ); } - late final _fminfPtr = - _lookup>( - 'fminf'); - late final _fminf = _fminfPtr.asFunction(); + late final _vscanfPtr = _lookup< + ffi.NativeFunction, va_list)>>( + 'vscanf'); + late final _vscanf = + _vscanfPtr.asFunction, va_list)>(); - double fmin( - double arg0, - double arg1, + int vsnprintf( + ffi.Pointer __str, + int __size, + ffi.Pointer __format, + va_list arg3, ) { - return _fmin( - arg0, - arg1, + return _vsnprintf( + __str, + __size, + __format, + arg3, ); } - late final _fminPtr = - _lookup>( - 'fmin'); - late final _fmin = _fminPtr.asFunction(); + 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)>(); - double fmaf( - double arg0, - double arg1, - double arg2, + int vsscanf( + ffi.Pointer __str, + ffi.Pointer __format, + va_list arg2, ) { - return _fmaf( - arg0, - arg1, + return _vsscanf( + __str, + __format, arg2, ); } - late final _fmafPtr = _lookup< + late final _vsscanfPtr = _lookup< ffi.NativeFunction< - ffi.Float Function(ffi.Float, ffi.Float, ffi.Float)>>('fmaf'); - late final _fmaf = - _fmafPtr.asFunction(); + ffi.Int Function(ffi.Pointer, ffi.Pointer, + va_list)>>('vsscanf'); + late final _vsscanf = _vsscanfPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, va_list)>(); - double fma( - double arg0, - double arg1, - double arg2, + int dprintf( + int arg0, + ffi.Pointer arg1, ) { - return _fma( + return _dprintf( 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 _dprintfPtr = _lookup< + ffi.NativeFunction)>>( + 'dprintf'); + late final _dprintf = + _dprintfPtr.asFunction)>(); - double __exp10f( - double arg0, + int vdprintf( + int arg0, + ffi.Pointer arg1, + va_list arg2, ) { - return ___exp10f( + return _vdprintf( arg0, + arg1, + arg2, ); } - late final ___exp10fPtr = - _lookup>('__exp10f'); - late final ___exp10f = ___exp10fPtr.asFunction(); + late final _vdprintfPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, ffi.Pointer, va_list)>>('vdprintf'); + late final _vdprintf = _vdprintfPtr + .asFunction, va_list)>(); - double __exp10( - double arg0, + int getdelim( + ffi.Pointer> __linep, + ffi.Pointer __linecapp, + int __delimiter, + ffi.Pointer __stream, ) { - return ___exp10( - arg0, + return _getdelim( + __linep, + __linecapp, + __delimiter, + __stream, ); } - late final ___exp10Ptr = - _lookup>('__exp10'); - late final ___exp10 = ___exp10Ptr.asFunction(); + 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)>(); - double __cospif( - double arg0, + int getline( + ffi.Pointer> __linep, + ffi.Pointer __linecapp, + ffi.Pointer __stream, ) { - return ___cospif( - arg0, + return _getline( + __linep, + __linecapp, + __stream, ); } - late final ___cospifPtr = - _lookup>('__cospif'); - late final ___cospif = ___cospifPtr.asFunction(); + 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)>(); - double __cospi( - double arg0, + ffi.Pointer fmemopen( + ffi.Pointer __buf, + int __size, + ffi.Pointer __mode, ) { - return ___cospi( - arg0, + return _fmemopen( + __buf, + __size, + __mode, ); } - late final ___cospiPtr = - _lookup>('__cospi'); - late final ___cospi = ___cospiPtr.asFunction(); + 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)>(); - double __sinpif( - double arg0, + ffi.Pointer open_memstream( + ffi.Pointer> __bufp, + ffi.Pointer __sizep, ) { - return ___sinpif( - arg0, + return _open_memstream( + __bufp, + __sizep, ); } - late final ___sinpifPtr = - _lookup>('__sinpif'); - late final ___sinpif = ___sinpifPtr.asFunction(); - - double __sinpi( - double arg0, - ) { - return ___sinpi( - arg0, - ); - } - - late final ___sinpiPtr = - _lookup>('__sinpi'); - late final ___sinpi = ___sinpiPtr.asFunction(); + 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)>(); - double __tanpif( - double arg0, - ) { - return ___tanpif( - arg0, - ); - } + late final ffi.Pointer _sys_nerr = _lookup('sys_nerr'); - late final ___tanpifPtr = - _lookup>('__tanpif'); - late final ___tanpif = ___tanpifPtr.asFunction(); + int get sys_nerr => _sys_nerr.value; - double __tanpi( - double arg0, - ) { - return ___tanpi( - arg0, - ); - } + set sys_nerr(int value) => _sys_nerr.value = value; - late final ___tanpiPtr = - _lookup>('__tanpi'); - late final ___tanpi = ___tanpiPtr.asFunction(); + late final ffi.Pointer>> _sys_errlist = + _lookup>>('sys_errlist'); - __float2 __sincosf_stret( - double arg0, - ) { - return ___sincosf_stret( - arg0, - ); - } + ffi.Pointer> get sys_errlist => _sys_errlist.value; - late final ___sincosf_stretPtr = - _lookup>( - '__sincosf_stret'); - late final ___sincosf_stret = - ___sincosf_stretPtr.asFunction<__float2 Function(double)>(); + set sys_errlist(ffi.Pointer> value) => + _sys_errlist.value = value; - __double2 __sincos_stret( - double arg0, + int asprintf( + ffi.Pointer> arg0, + ffi.Pointer arg1, ) { - return ___sincos_stret( + return _asprintf( arg0, + arg1, ); } - late final ___sincos_stretPtr = - _lookup>( - '__sincos_stret'); - late final ___sincos_stret = - ___sincos_stretPtr.asFunction<__double2 Function(double)>(); + 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)>(); - __float2 __sincospif_stret( - double arg0, + ffi.Pointer ctermid_r( + ffi.Pointer arg0, ) { - return ___sincospif_stret( + return _ctermid_r( arg0, ); } - late final ___sincospif_stretPtr = - _lookup>( - '__sincospif_stret'); - late final ___sincospif_stret = - ___sincospif_stretPtr.asFunction<__float2 Function(double)>(); + late final _ctermid_rPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('ctermid_r'); + late final _ctermid_r = _ctermid_rPtr + .asFunction Function(ffi.Pointer)>(); - __double2 __sincospi_stret( - double arg0, + ffi.Pointer fgetln( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return ___sincospi_stret( + return _fgetln( arg0, + arg1, ); } - late final ___sincospi_stretPtr = - _lookup>( - '__sincospi_stret'); - late final ___sincospi_stret = - ___sincospi_stretPtr.asFunction<__double2 Function(double)>(); + 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)>(); - double j0( - double arg0, + ffi.Pointer fmtcheck( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _j0( + return _fmtcheck( arg0, + arg1, ); } - late final _j0Ptr = - _lookup>('j0'); - late final _j0 = _j0Ptr.asFunction(); + 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)>(); - double j1( - double arg0, + int fpurge( + ffi.Pointer arg0, ) { - return _j1( + return _fpurge( arg0, ); } - late final _j1Ptr = - _lookup>('j1'); - late final _j1 = _j1Ptr.asFunction(); + late final _fpurgePtr = + _lookup)>>( + 'fpurge'); + late final _fpurge = _fpurgePtr.asFunction)>(); - double jn( - int arg0, - double arg1, + void setbuffer( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, ) { - return _jn( + return _setbuffer( arg0, arg1, + arg2, ); } - late final _jnPtr = - _lookup>( - 'jn'); - late final _jn = _jnPtr.asFunction(); - - double y0( - double arg0, - ) { - return _y0( - arg0, - ); - } - - late final _y0Ptr = - _lookup>('y0'); - late final _y0 = _y0Ptr.asFunction(); + 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)>(); - double y1( - double arg0, + int setlinebuf( + ffi.Pointer arg0, ) { - return _y1( + return _setlinebuf( arg0, ); } - late final _y1Ptr = - _lookup>('y1'); - late final _y1 = _y1Ptr.asFunction(); + late final _setlinebufPtr = + _lookup)>>( + 'setlinebuf'); + late final _setlinebuf = + _setlinebufPtr.asFunction)>(); - double yn( - int arg0, - double arg1, + int vasprintf( + ffi.Pointer> arg0, + ffi.Pointer arg1, + va_list arg2, ) { - return _yn( + return _vasprintf( arg0, arg1, + arg2, ); } - late final _ynPtr = - _lookup>( - 'yn'); - late final _yn = _ynPtr.asFunction(); + 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)>(); - double scalb( - double arg0, - double arg1, + ffi.Pointer funopen( + ffi.Pointer arg0, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer, ffi.Int)>> + arg1, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer, ffi.Int)>> + arg2, + ffi.Pointer< + ffi.NativeFunction< + fpos_t Function(ffi.Pointer, fpos_t, ffi.Int)>> + arg3, + ffi.Pointer)>> + arg4, ) { - return _scalb( + return _funopen( arg0, arg1, + arg2, + arg3, + arg4, ); } - late final _scalbPtr = - _lookup>( - 'scalb'); - late final _scalb = _scalbPtr.asFunction(); - - late final ffi.Pointer _signgam = _lookup('signgam'); - - int get signgam => _signgam.value; - - set signgam(int value) => _signgam.value = value; + 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)>>)>(); - int setjmp( - ffi.Pointer arg0, + int __sprintf_chk( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer arg3, ) { - return _setjmp1( + return ___sprintf_chk( arg0, + arg1, + arg2, + arg3, ); } - late final _setjmpPtr = - _lookup)>>( - 'setjmp'); - late final _setjmp1 = - _setjmpPtr.asFunction)>(); + 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)>(); - void longjmp( - ffi.Pointer arg0, + int __snprintf_chk( + ffi.Pointer arg0, int arg1, + int arg2, + int arg3, + ffi.Pointer arg4, ) { - return _longjmp1( + return ___snprintf_chk( arg0, arg1, + arg2, + arg3, + arg4, ); } - late final _longjmpPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'longjmp'); - late final _longjmp1 = - _longjmpPtr.asFunction, int)>(); + 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 _setjmp( - ffi.Pointer arg0, + int __vsprintf_chk( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer arg3, + va_list arg4, ) { - return __setjmp( + return ___vsprintf_chk( arg0, + arg1, + arg2, + arg3, + arg4, ); } - late final __setjmpPtr = - _lookup)>>( - '_setjmp'); - late final __setjmp = - __setjmpPtr.asFunction)>(); + 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)>(); - void _longjmp( - ffi.Pointer arg0, + int __vsnprintf_chk( + ffi.Pointer arg0, int arg1, + int arg2, + int arg3, + ffi.Pointer arg4, + va_list arg5, ) { - return __longjmp( + return ___vsnprintf_chk( arg0, arg1, + arg2, + arg3, + arg4, + arg5, ); } - late final __longjmpPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - '_longjmp'); - late final __longjmp = - __longjmpPtr.asFunction, int)>(); + 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)>(); - int sigsetjmp( - ffi.Pointer arg0, + int getpriority( + int arg0, int arg1, ) { - return _sigsetjmp( + return _getpriority( arg0, arg1, ); } - late final _sigsetjmpPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'sigsetjmp'); - late final _sigsetjmp = - _sigsetjmpPtr.asFunction, int)>(); + late final _getpriorityPtr = + _lookup>( + 'getpriority'); + late final _getpriority = + _getpriorityPtr.asFunction(); - void siglongjmp( - ffi.Pointer arg0, + int getiopolicy_np( + int arg0, int arg1, ) { - return _siglongjmp( + return _getiopolicy_np( arg0, arg1, ); } - late final _siglongjmpPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'siglongjmp'); - late final _siglongjmp = - _siglongjmpPtr.asFunction, int)>(); - - void longjmperror() { - return _longjmperror(); - } - - late final _longjmperrorPtr = - _lookup>('longjmperror'); - late final _longjmperror = _longjmperrorPtr.asFunction(); - - late final ffi.Pointer>> _sys_signame = - _lookup>>('sys_signame'); - - ffi.Pointer> get sys_signame => _sys_signame.value; - - set sys_signame(ffi.Pointer> value) => - _sys_signame.value = value; - - late final ffi.Pointer>> _sys_siglist = - _lookup>>('sys_siglist'); - - ffi.Pointer> get sys_siglist => _sys_siglist.value; - - set sys_siglist(ffi.Pointer> value) => - _sys_siglist.value = value; + late final _getiopolicy_npPtr = + _lookup>( + 'getiopolicy_np'); + late final _getiopolicy_np = + _getiopolicy_npPtr.asFunction(); - int raise( + int getrlimit( int arg0, + ffi.Pointer arg1, ) { - return _raise( + return _getrlimit( arg0, + arg1, ); } - late final _raisePtr = - _lookup>('raise'); - late final _raise = _raisePtr.asFunction(); + late final _getrlimitPtr = _lookup< + ffi.NativeFunction)>>( + 'getrlimit'); + late final _getrlimit = + _getrlimitPtr.asFunction)>(); - ffi.Pointer> bsd_signal( + int getrusage( int arg0, - ffi.Pointer> arg1, + ffi.Pointer arg1, ) { - return _bsd_signal( + return _getrusage( arg0, arg1, ); } - late final _bsd_signalPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer> Function( - ffi.Int, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Int)>>)>>('bsd_signal'); - late final _bsd_signal = _bsd_signalPtr.asFunction< - ffi.Pointer> Function( - int, ffi.Pointer>)>(); + late final _getrusagePtr = _lookup< + ffi.NativeFunction)>>( + 'getrusage'); + late final _getrusage = + _getrusagePtr.asFunction)>(); - int kill( + int setpriority( int arg0, int arg1, + int arg2, ) { - return _kill( + return _setpriority( arg0, arg1, + arg2, ); } - late final _killPtr = - _lookup>('kill'); - late final _kill = _killPtr.asFunction(); + late final _setpriorityPtr = + _lookup>( + 'setpriority'); + late final _setpriority = + _setpriorityPtr.asFunction(); - int killpg( + int setiopolicy_np( int arg0, int arg1, + int arg2, ) { - return _killpg( + return _setiopolicy_np( arg0, arg1, + arg2, ); } - late final _killpgPtr = - _lookup>('killpg'); - late final _killpg = _killpgPtr.asFunction(); + late final _setiopolicy_npPtr = + _lookup>( + 'setiopolicy_np'); + late final _setiopolicy_np = + _setiopolicy_npPtr.asFunction(); - int pthread_kill( - pthread_t arg0, - int arg1, + int setrlimit( + int arg0, + ffi.Pointer arg1, ) { - return _pthread_kill( + return _setrlimit( arg0, arg1, ); } - late final _pthread_killPtr = - _lookup>( - 'pthread_kill'); - late final _pthread_kill = - _pthread_killPtr.asFunction(); - - int pthread_sigmask( + late final _setrlimitPtr = _lookup< + ffi.NativeFunction)>>( + 'setrlimit'); + late final _setrlimit = + _setrlimitPtr.asFunction)>(); + + int wait1( + ffi.Pointer arg0, + ) { + return _wait1( + arg0, + ); + } + + late final _wait1Ptr = + _lookup)>>('wait'); + late final _wait1 = + _wait1Ptr.asFunction)>(); + + int waitpid( int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, + ffi.Pointer arg1, + int arg2, ) { - return _pthread_sigmask( + return _waitpid( arg0, arg1, arg2, ); } - late final _pthread_sigmaskPtr = _lookup< + late final _waitpidPtr = _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)>(); + pid_t Function(pid_t, ffi.Pointer, ffi.Int)>>('waitpid'); + late final _waitpid = + _waitpidPtr.asFunction, int)>(); - int sigaction1( + int waitid( int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, + int arg1, + ffi.Pointer arg2, + int arg3, ) { - return _sigaction1( + return _waitid( arg0, arg1, arg2, + arg3, ); } - late final _sigaction1Ptr = _lookup< + late final _waitidPtr = _lookup< ffi.NativeFunction< - ffi.Int Function(ffi.Int, ffi.Pointer, - ffi.Pointer)>>('sigaction'); - late final _sigaction1 = _sigaction1Ptr.asFunction< - int Function(int, ffi.Pointer, ffi.Pointer)>(); + ffi.Int Function( + ffi.Int32, id_t, ffi.Pointer, ffi.Int)>>('waitid'); + late final _waitid = _waitidPtr + .asFunction, int)>(); - int sigaddset( - ffi.Pointer arg0, + int wait3( + ffi.Pointer arg0, int arg1, + ffi.Pointer arg2, ) { - return _sigaddset( + return _wait3( arg0, arg1, + arg2, ); } - late final _sigaddsetPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'sigaddset'); - late final _sigaddset = - _sigaddsetPtr.asFunction, int)>(); + 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 sigaltstack( - ffi.Pointer arg0, - ffi.Pointer arg1, + int wait4( + int arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, ) { - return _sigaltstack( + return _wait4( arg0, arg1, + arg2, + arg3, ); } - late final _sigaltstackPtr = _lookup< + late final _wait4Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('sigaltstack'); - late final _sigaltstack = _sigaltstackPtr - .asFunction, ffi.Pointer)>(); + 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)>(); - int sigdelset( - ffi.Pointer arg0, - int arg1, + ffi.Pointer alloca( + int arg0, ) { - return _sigdelset( + return _alloca( arg0, - arg1, ); } - late final _sigdelsetPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'sigdelset'); - late final _sigdelset = - _sigdelsetPtr.asFunction, int)>(); + late final _allocaPtr = + _lookup Function(ffi.Size)>>( + 'alloca'); + late final _alloca = + _allocaPtr.asFunction Function(int)>(); - int sigemptyset( - ffi.Pointer arg0, + 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( + int __size, ) { - return _sigemptyset( - arg0, + return _malloc( + __size, ); } - late final _sigemptysetPtr = - _lookup)>>( - 'sigemptyset'); - late final _sigemptyset = - _sigemptysetPtr.asFunction)>(); + late final _mallocPtr = + _lookup Function(ffi.Size)>>( + 'malloc'); + late final _malloc = + _mallocPtr.asFunction Function(int)>(); - int sigfillset( - ffi.Pointer arg0, + ffi.Pointer calloc( + int __count, + int __size, ) { - return _sigfillset( - arg0, + return _calloc( + __count, + __size, ); } - late final _sigfillsetPtr = - _lookup)>>( - 'sigfillset'); - late final _sigfillset = - _sigfillsetPtr.asFunction)>(); + late final _callocPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Size, ffi.Size)>>('calloc'); + late final _calloc = + _callocPtr.asFunction Function(int, int)>(); - int sighold( - int arg0, + void free( + ffi.Pointer arg0, ) { - return _sighold( + return _free( arg0, ); } - late final _sigholdPtr = - _lookup>('sighold'); - late final _sighold = _sigholdPtr.asFunction(); + late final _freePtr = + _lookup)>>( + 'free'); + late final _free = + _freePtr.asFunction)>(); - int sigignore( - int arg0, + ffi.Pointer realloc( + ffi.Pointer __ptr, + int __size, ) { - return _sigignore( - arg0, + return _realloc( + __ptr, + __size, ); } - late final _sigignorePtr = - _lookup>('sigignore'); - late final _sigignore = _sigignorePtr.asFunction(); + late final _reallocPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Size)>>('realloc'); + late final _realloc = _reallocPtr + .asFunction Function(ffi.Pointer, int)>(); - int siginterrupt( + ffi.Pointer valloc( int arg0, - int arg1, ) { - return _siginterrupt( + return _valloc( arg0, - arg1, ); } - late final _siginterruptPtr = - _lookup>( - 'siginterrupt'); - late final _siginterrupt = - _siginterruptPtr.asFunction(); + late final _vallocPtr = + _lookup Function(ffi.Size)>>( + 'valloc'); + late final _valloc = + _vallocPtr.asFunction Function(int)>(); - int sigismember( - ffi.Pointer arg0, - int arg1, + ffi.Pointer aligned_alloc( + int __alignment, + int __size, ) { - return _sigismember( - arg0, - arg1, + return _aligned_alloc( + __alignment, + __size, ); } - late final _sigismemberPtr = _lookup< - ffi.NativeFunction, ffi.Int)>>( - 'sigismember'); - late final _sigismember = - _sigismemberPtr.asFunction, int)>(); + 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)>(); - int sigpause( - int arg0, + int posix_memalign( + ffi.Pointer> __memptr, + int __alignment, + int __size, ) { - return _sigpause( - arg0, + return _posix_memalign( + __memptr, + __alignment, + __size, ); } - late final _sigpausePtr = - _lookup>('sigpause'); - late final _sigpause = _sigpausePtr.asFunction(); + 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)>(); - int sigpending( - ffi.Pointer arg0, + void abort() { + return _abort(); + } + + late final _abortPtr = + _lookup>('abort'); + late final _abort = _abortPtr.asFunction(); + + int abs( + int arg0, ) { - return _sigpending( + return _abs( arg0, ); } - late final _sigpendingPtr = - _lookup)>>( - 'sigpending'); - late final _sigpending = - _sigpendingPtr.asFunction)>(); + late final _absPtr = + _lookup>('abs'); + late final _abs = _absPtr.asFunction(); - int sigprocmask( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, + int atexit( + ffi.Pointer> arg0, ) { - return _sigprocmask( + return _atexit( arg0, - arg1, - arg2, ); } - late final _sigprocmaskPtr = _lookup< + late final _atexitPtr = _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)>(); + ffi.Int Function( + ffi.Pointer>)>>('atexit'); + late final _atexit = _atexitPtr.asFunction< + int Function(ffi.Pointer>)>(); - int sigrelse( - int arg0, + double atof( + ffi.Pointer arg0, ) { - return _sigrelse( + return _atof( arg0, ); } - late final _sigrelsePtr = - _lookup>('sigrelse'); - late final _sigrelse = _sigrelsePtr.asFunction(); + late final _atofPtr = + _lookup)>>( + 'atof'); + late final _atof = + _atofPtr.asFunction)>(); - ffi.Pointer> sigset( - int arg0, - ffi.Pointer> arg1, + int atoi( + ffi.Pointer arg0, ) { - return _sigset( + return _atoi( arg0, - arg1, ); } - 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>)>(); + late final _atoiPtr = + _lookup)>>( + 'atoi'); + late final _atoi = _atoiPtr.asFunction)>(); - int sigsuspend( - ffi.Pointer arg0, + int atol( + ffi.Pointer arg0, ) { - return _sigsuspend( + return _atol( arg0, ); } - late final _sigsuspendPtr = - _lookup)>>( - 'sigsuspend'); - late final _sigsuspend = - _sigsuspendPtr.asFunction)>(); + late final _atolPtr = + _lookup)>>( + 'atol'); + late final _atol = _atolPtr.asFunction)>(); - int sigwait( - ffi.Pointer arg0, - ffi.Pointer arg1, + int atoll( + ffi.Pointer arg0, ) { - return _sigwait( + return _atoll( arg0, - arg1, ); } - late final _sigwaitPtr = _lookup< + late final _atollPtr = + _lookup)>>( + 'atoll'); + late final _atoll = + _atollPtr.asFunction)>(); + + ffi.Pointer bsearch( + ffi.Pointer __key, + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer)>> + __compar, + ) { + return _bsearch( + __key, + __base, + __nel, + __width, + __compar, + ); + } + + late final _bsearchPtr = _lookup< ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('sigwait'); - late final _sigwait = _sigwaitPtr - .asFunction, ffi.Pointer)>(); + 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)>>)>(); - void psignal( + div_t div( int arg0, - ffi.Pointer arg1, + int arg1, ) { - return _psignal( + return _div( arg0, arg1, ); } - late final _psignalPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.UnsignedInt, ffi.Pointer)>>('psignal'); - late final _psignal = - _psignalPtr.asFunction)>(); + late final _divPtr = + _lookup>('div'); + late final _div = _divPtr.asFunction(); - int sigblock( + void exit( int arg0, ) { - return _sigblock( + return _exit1( arg0, ); } - late final _sigblockPtr = - _lookup>('sigblock'); - late final _sigblock = _sigblockPtr.asFunction(); + late final _exitPtr = + _lookup>('exit'); + late final _exit1 = _exitPtr.asFunction(); - int sigsetmask( - int arg0, + ffi.Pointer getenv( + ffi.Pointer arg0, ) { - return _sigsetmask( + return _getenv( arg0, ); } - late final _sigsetmaskPtr = - _lookup>('sigsetmask'); - late final _sigsetmask = _sigsetmaskPtr.asFunction(); + late final _getenvPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('getenv'); + late final _getenv = _getenvPtr + .asFunction Function(ffi.Pointer)>(); - int sigvec1( + int labs( int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, ) { - return _sigvec1( + return _labs( arg0, - arg1, - arg2, ); } - late final _sigvec1Ptr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, ffi.Pointer)>>('sigvec'); - late final _sigvec1 = _sigvec1Ptr.asFunction< - int Function(int, ffi.Pointer, ffi.Pointer)>(); + late final _labsPtr = + _lookup>('labs'); + late final _labs = _labsPtr.asFunction(); - int renameat( + ldiv_t ldiv( int arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, + int arg1, ) { - return _renameat( + return _ldiv( 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 _ldivPtr = + _lookup>('ldiv'); + late final _ldiv = _ldivPtr.asFunction(); - int renamex_np( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, + int llabs( + int arg0, ) { - return _renamex_np( + return _llabs( 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 _llabsPtr = + _lookup>('llabs'); + late final _llabs = _llabsPtr.asFunction(); - int renameatx_np( + lldiv_t lldiv( int arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - int arg4, + int arg1, ) { - return _renameatx_np( + return _lldiv( 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 ffi.Pointer> ___stdinp = - _lookup>('__stdinp'); - - ffi.Pointer get __stdinp => ___stdinp.value; - - set __stdinp(ffi.Pointer value) => ___stdinp.value = value; - - late final ffi.Pointer> ___stdoutp = - _lookup>('__stdoutp'); - - ffi.Pointer get __stdoutp => ___stdoutp.value; - - set __stdoutp(ffi.Pointer value) => ___stdoutp.value = value; - - late final ffi.Pointer> ___stderrp = - _lookup>('__stderrp'); - - ffi.Pointer get __stderrp => ___stderrp.value; - - set __stderrp(ffi.Pointer value) => ___stderrp.value = value; + late final _lldivPtr = + _lookup>( + 'lldiv'); + late final _lldiv = _lldivPtr.asFunction(); - void clearerr( - ffi.Pointer arg0, + int mblen( + ffi.Pointer __s, + int __n, ) { - return _clearerr( - arg0, + return _mblen( + __s, + __n, ); } - late final _clearerrPtr = - _lookup)>>( - 'clearerr'); - late final _clearerr = - _clearerrPtr.asFunction)>(); + late final _mblenPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Size)>>('mblen'); + late final _mblen = + _mblenPtr.asFunction, int)>(); - int fclose( - ffi.Pointer arg0, + int mbstowcs( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, ) { - return _fclose( + return _mbstowcs( arg0, + arg1, + arg2, ); } - late final _fclosePtr = - _lookup)>>( - 'fclose'); - late final _fclose = _fclosePtr.asFunction)>(); + 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 feof( - ffi.Pointer arg0, + int mbtowc( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, ) { - return _feof( + return _mbtowc( arg0, + arg1, + arg2, ); } - late final _feofPtr = - _lookup)>>('feof'); - late final _feof = _feofPtr.asFunction)>(); + 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)>(); - int ferror( - ffi.Pointer arg0, + void qsort( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer)>> + __compar, ) { - return _ferror( - arg0, + return _qsort( + __base, + __nel, + __width, + __compar, ); } - late final _ferrorPtr = - _lookup)>>( - 'ferror'); - late final _ferror = _ferrorPtr.asFunction)>(); + 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, + int, + int, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>)>(); - int fflush( - ffi.Pointer arg0, - ) { - return _fflush( - arg0, - ); + int rand() { + return _rand(); } - late final _fflushPtr = - _lookup)>>( - 'fflush'); - late final _fflush = _fflushPtr.asFunction)>(); + late final _randPtr = _lookup>('rand'); + late final _rand = _randPtr.asFunction(); - int fgetc( - ffi.Pointer arg0, + void srand( + int arg0, ) { - return _fgetc( + return _srand( arg0, ); } - late final _fgetcPtr = - _lookup)>>('fgetc'); - late final _fgetc = _fgetcPtr.asFunction)>(); + late final _srandPtr = + _lookup>('srand'); + late final _srand = _srandPtr.asFunction(); - int fgetpos( - ffi.Pointer arg0, - ffi.Pointer arg1, + double strtod( + ffi.Pointer arg0, + ffi.Pointer> arg1, ) { - return _fgetpos( + return _strtod( arg0, arg1, ); } - late final _fgetposPtr = _lookup< + late final _strtodPtr = _lookup< ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>>('fgetpos'); - late final _fgetpos = _fgetposPtr - .asFunction, ffi.Pointer)>(); + ffi.Double Function(ffi.Pointer, + ffi.Pointer>)>>('strtod'); + late final _strtod = _strtodPtr.asFunction< + double Function( + ffi.Pointer, ffi.Pointer>)>(); - ffi.Pointer fgets( + double strtof( ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, + ffi.Pointer> arg1, ) { - return _fgets( + return _strtof( arg0, arg1, - arg2, ); } - late final _fgetsPtr = _lookup< + late final _strtofPtr = _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.Float Function(ffi.Pointer, + ffi.Pointer>)>>('strtof'); + late final _strtof = _strtofPtr.asFunction< + double Function( + ffi.Pointer, ffi.Pointer>)>(); - ffi.Pointer fopen( - ffi.Pointer __filename, - ffi.Pointer __mode, + int strtol( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, ) { - return _fopen( - __filename, - __mode, + return _strtol( + __str, + __endptr, + __base, ); } - late final _fopenPtr = _lookup< + late final _strtolPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('fopen'); - late final _fopen = _fopenPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Long Function(ffi.Pointer, + ffi.Pointer>, ffi.Int)>>('strtol'); + late final _strtol = _strtolPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer>, int)>(); - int fprintf( - ffi.Pointer arg0, - ffi.Pointer arg1, + int strtoll( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, ) { - return _fprintf( - arg0, - arg1, + return _strtoll( + __str, + __endptr, + __base, ); } - late final _fprintfPtr = _lookup< + late final _strtollPtr = _lookup< ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('fprintf'); - late final _fprintf = _fprintfPtr - .asFunction, ffi.Pointer)>(); + ffi.LongLong Function(ffi.Pointer, + ffi.Pointer>, ffi.Int)>>('strtoll'); + late final _strtoll = _strtollPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer>, int)>(); - int fputc( - int arg0, - ffi.Pointer arg1, + int strtoul( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, ) { - return _fputc( - arg0, - arg1, + return _strtoul( + __str, + __endptr, + __base, ); } - late final _fputcPtr = - _lookup)>>( - 'fputc'); - late final _fputc = - _fputcPtr.asFunction)>(); + 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 fputs( - ffi.Pointer arg0, - ffi.Pointer arg1, + int strtoull( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, ) { - return _fputs( - arg0, - arg1, + return _strtoull( + __str, + __endptr, + __base, ); } - late final _fputsPtr = _lookup< + late final _strtoullPtr = _lookup< ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>>('fputs'); - late final _fputs = _fputsPtr - .asFunction, ffi.Pointer)>(); + ffi.UnsignedLongLong Function(ffi.Pointer, + ffi.Pointer>, ffi.Int)>>('strtoull'); + late final _strtoull = _strtoullPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer>, int)>(); - int fread( - ffi.Pointer __ptr, - int __size, - int __nitems, - ffi.Pointer __stream, + int system( + ffi.Pointer arg0, ) { - return _fread( - __ptr, - __size, - __nitems, - __stream, + return _system( + arg0, ); } - 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 _systemPtr = + _lookup)>>( + 'system'); + late final _system = + _systemPtr.asFunction)>(); - ffi.Pointer freopen( + int wcstombs( ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, + ffi.Pointer arg1, + int arg2, ) { - return _freopen( + return _wcstombs( arg0, arg1, arg2, ); } - late final _freopenPtr = _lookup< + late final _wcstombsPtr = _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)>(); + ffi.Size Function(ffi.Pointer, ffi.Pointer, + ffi.Size)>>('wcstombs'); + late final _wcstombs = _wcstombsPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); - int fscanf( - ffi.Pointer arg0, - ffi.Pointer arg1, + int wctomb( + ffi.Pointer arg0, + int arg1, ) { - return _fscanf( + return _wctomb( arg0, arg1, ); } - late final _fscanfPtr = _lookup< + late final _wctombPtr = _lookup< ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('fscanf'); - late final _fscanf = _fscanfPtr - .asFunction, ffi.Pointer)>(); + ffi.Int Function(ffi.Pointer, ffi.WChar)>>('wctomb'); + late final _wctomb = + _wctombPtr.asFunction, int)>(); - int fseek( - ffi.Pointer arg0, - int arg1, - int arg2, + void _Exit( + int arg0, ) { - return _fseek( + return __Exit( 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 __ExitPtr = + _lookup>('_Exit'); + late final __Exit = __ExitPtr.asFunction(); - int fsetpos( - ffi.Pointer arg0, - ffi.Pointer arg1, + int a64l( + ffi.Pointer arg0, ) { - return _fsetpos( + return _a64l( arg0, - arg1, ); } - late final _fsetposPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer)>>('fsetpos'); - late final _fsetpos = _fsetposPtr - .asFunction, ffi.Pointer)>(); + late final _a64lPtr = + _lookup)>>( + 'a64l'); + late final _a64l = _a64lPtr.asFunction)>(); - int ftell( - ffi.Pointer arg0, - ) { - return _ftell( - arg0, - ); + double drand48() { + return _drand48(); } - late final _ftellPtr = - _lookup)>>( - 'ftell'); - late final _ftell = _ftellPtr.asFunction)>(); + late final _drand48Ptr = + _lookup>('drand48'); + late final _drand48 = _drand48Ptr.asFunction(); - int fwrite( - ffi.Pointer __ptr, - int __size, - int __nitems, - ffi.Pointer __stream, + ffi.Pointer ecvt( + double arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, ) { - return _fwrite( - __ptr, - __size, - __nitems, - __stream, + return _ecvt( + arg0, + arg1, + arg2, + arg3, ); } - late final _fwritePtr = _lookup< + late final _ecvtPtr = _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)>(); + 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)>(); - int getc( - ffi.Pointer arg0, + double erand48( + ffi.Pointer arg0, ) { - return _getc( + return _erand48( arg0, ); } - late final _getcPtr = - _lookup)>>('getc'); - late final _getc = _getcPtr.asFunction)>(); - - int getchar() { - return _getchar(); - } - - late final _getcharPtr = - _lookup>('getchar'); - late final _getchar = _getcharPtr.asFunction(); + late final _erand48Ptr = _lookup< + ffi.NativeFunction< + ffi.Double Function(ffi.Pointer)>>('erand48'); + late final _erand48 = + _erand48Ptr.asFunction)>(); - ffi.Pointer gets( - ffi.Pointer arg0, + ffi.Pointer fcvt( + double arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, ) { - return _gets( + return _fcvt( arg0, + arg1, + arg2, + arg3, ); } - late final _getsPtr = _lookup< + late final _fcvtPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('gets'); - late final _gets = _getsPtr - .asFunction Function(ffi.Pointer)>(); + 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)>(); - void perror( - ffi.Pointer arg0, + ffi.Pointer gcvt( + double arg0, + int arg1, + ffi.Pointer arg2, ) { - return _perror( + return _gcvt( arg0, + arg1, + arg2, ); } - late final _perrorPtr = - _lookup)>>( - 'perror'); - late final _perror = - _perrorPtr.asFunction)>(); + 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)>(); - int printf( - ffi.Pointer arg0, + int getsubopt( + ffi.Pointer> arg0, + ffi.Pointer> arg1, + ffi.Pointer> arg2, ) { - return _printf( + return _getsubopt( arg0, + arg1, + arg2, ); } - late final _printfPtr = - _lookup)>>( - 'printf'); - late final _printf = - _printfPtr.asFunction)>(); + 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>)>(); - int putc( + int grantpt( int arg0, - ffi.Pointer arg1, ) { - return _putc( + return _grantpt( arg0, - arg1, ); } - late final _putcPtr = - _lookup)>>( - 'putc'); - late final _putc = - _putcPtr.asFunction)>(); + late final _grantptPtr = + _lookup>('grantpt'); + late final _grantpt = _grantptPtr.asFunction(); - int putchar( + ffi.Pointer initstate( int arg0, + ffi.Pointer arg1, + int arg2, ) { - return _putchar( + return _initstate( arg0, + arg1, + arg2, ); } - late final _putcharPtr = - _lookup>('putchar'); - late final _putchar = _putcharPtr.asFunction(); + 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)>(); - int puts( - ffi.Pointer arg0, + int jrand48( + ffi.Pointer arg0, ) { - return _puts( + return _jrand48( arg0, ); } - late final _putsPtr = - _lookup)>>( - 'puts'); - late final _puts = _putsPtr.asFunction)>(); + late final _jrand48Ptr = _lookup< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer)>>('jrand48'); + late final _jrand48 = + _jrand48Ptr.asFunction)>(); - int remove( - ffi.Pointer arg0, + ffi.Pointer l64a( + int arg0, ) { - return _remove( + return _l64a( arg0, ); } - late final _removePtr = - _lookup)>>( - 'remove'); - late final _remove = - _removePtr.asFunction)>(); + late final _l64aPtr = + _lookup Function(ffi.Long)>>( + 'l64a'); + late final _l64a = _l64aPtr.asFunction Function(int)>(); - int rename( - ffi.Pointer __old, - ffi.Pointer __new, + void lcong48( + ffi.Pointer arg0, ) { - return _rename( - __old, - __new, + return _lcong48( + arg0, ); } - late final _renamePtr = _lookup< + late final _lcong48Ptr = _lookup< ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('rename'); - late final _rename = _renamePtr - .asFunction, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer)>>('lcong48'); + late final _lcong48 = + _lcong48Ptr.asFunction)>(); - void rewind( - ffi.Pointer arg0, + int lrand48() { + return _lrand48(); + } + + late final _lrand48Ptr = + _lookup>('lrand48'); + late final _lrand48 = _lrand48Ptr.asFunction(); + + ffi.Pointer mktemp( + ffi.Pointer arg0, ) { - return _rewind( + return _mktemp( arg0, ); } - late final _rewindPtr = - _lookup)>>( - 'rewind'); - late final _rewind = - _rewindPtr.asFunction)>(); + late final _mktempPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('mktemp'); + late final _mktemp = _mktempPtr + .asFunction Function(ffi.Pointer)>(); - int scanf( + int mkstemp( ffi.Pointer arg0, ) { - return _scanf( + return _mkstemp( arg0, ); } - late final _scanfPtr = + late final _mkstempPtr = _lookup)>>( - 'scanf'); - late final _scanf = - _scanfPtr.asFunction)>(); + 'mkstemp'); + late final _mkstemp = + _mkstempPtr.asFunction)>(); - void setbuf( - ffi.Pointer arg0, - ffi.Pointer arg1, + int mrand48() { + return _mrand48(); + } + + late final _mrand48Ptr = + _lookup>('mrand48'); + late final _mrand48 = _mrand48Ptr.asFunction(); + + int nrand48( + ffi.Pointer arg0, ) { - return _setbuf( + return _nrand48( arg0, - arg1, ); } - late final _setbufPtr = _lookup< + late final _nrand48Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>>('setbuf'); - late final _setbuf = _setbufPtr - .asFunction, ffi.Pointer)>(); + ffi.Long Function(ffi.Pointer)>>('nrand48'); + late final _nrand48 = + _nrand48Ptr.asFunction)>(); - int setvbuf( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, + int posix_openpt( + int arg0, ) { - return _setvbuf( + return _posix_openpt( arg0, - arg1, - arg2, - arg3, ); } - 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 _posix_openptPtr = + _lookup>('posix_openpt'); + late final _posix_openpt = _posix_openptPtr.asFunction(); - int sprintf( - ffi.Pointer arg0, - ffi.Pointer arg1, + ffi.Pointer ptsname( + int arg0, ) { - return _sprintf( + return _ptsname( arg0, - arg1, ); } - late final _sprintfPtr = _lookup< + late final _ptsnamePtr = + _lookup Function(ffi.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, + ); + } + + late final _ptsname_rPtr = _lookup< ffi.NativeFunction< ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('sprintf'); - late final _sprintf = _sprintfPtr - .asFunction, ffi.Pointer)>(); + ffi.Int, ffi.Pointer, ffi.Size)>>('ptsname_r'); + late final _ptsname_r = + _ptsname_rPtr.asFunction, int)>(); - int sscanf( + int putenv( ffi.Pointer arg0, - ffi.Pointer arg1, ) { - return _sscanf( + return _putenv( arg0, - arg1, ); } - late final _sscanfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('sscanf'); - late final _sscanf = _sscanfPtr - .asFunction, ffi.Pointer)>(); + late final _putenvPtr = + _lookup)>>( + 'putenv'); + late final _putenv = + _putenvPtr.asFunction)>(); - ffi.Pointer tmpfile() { - return _tmpfile(); + int random() { + return _random(); } - late final _tmpfilePtr = - _lookup Function()>>('tmpfile'); - late final _tmpfile = _tmpfilePtr.asFunction Function()>(); + late final _randomPtr = + _lookup>('random'); + late final _random = _randomPtr.asFunction(); - ffi.Pointer tmpnam( - ffi.Pointer arg0, + int rand_r( + ffi.Pointer arg0, ) { - return _tmpnam( + return _rand_r( arg0, ); } - late final _tmpnamPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('tmpnam'); - late final _tmpnam = _tmpnamPtr - .asFunction Function(ffi.Pointer)>(); + late final _rand_rPtr = _lookup< + ffi.NativeFunction)>>( + 'rand_r'); + late final _rand_r = + _rand_rPtr.asFunction)>(); - int ungetc( - int arg0, - ffi.Pointer arg1, + ffi.Pointer realpath( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _ungetc( + return _realpath( arg0, arg1, ); } - late final _ungetcPtr = - _lookup)>>( - 'ungetc'); - late final _ungetc = - _ungetcPtr.asFunction)>(); + 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)>(); - int vfprintf( - ffi.Pointer arg0, - ffi.Pointer arg1, - va_list arg2, + ffi.Pointer seed48( + ffi.Pointer arg0, ) { - return _vfprintf( + return _seed48( arg0, - arg1, - arg2, ); } - late final _vfprintfPtr = _lookup< + late final _seed48Ptr = _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)>(); + ffi.Pointer Function( + ffi.Pointer)>>('seed48'); + late final _seed48 = _seed48Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer)>(); - int vprintf( - ffi.Pointer arg0, - va_list arg1, + int setenv( + ffi.Pointer __name, + ffi.Pointer __value, + int __overwrite, ) { - return _vprintf( - arg0, - arg1, + return _setenv( + __name, + __value, + __overwrite, ); } - late final _vprintfPtr = _lookup< - ffi.NativeFunction, va_list)>>( - 'vprintf'); - late final _vprintf = - _vprintfPtr.asFunction, va_list)>(); + 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)>(); - int vsprintf( + void setkey( ffi.Pointer arg0, - ffi.Pointer arg1, - va_list arg2, ) { - return _vsprintf( + return _setkey( 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 _setkeyPtr = + _lookup)>>( + 'setkey'); + late final _setkey = + _setkeyPtr.asFunction)>(); - ffi.Pointer ctermid( + ffi.Pointer setstate( ffi.Pointer arg0, ) { - return _ctermid( + return _setstate( arg0, ); } - late final _ctermidPtr = _lookup< + late final _setstatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('ctermid'); - late final _ctermid = _ctermidPtr + ffi.Pointer Function(ffi.Pointer)>>('setstate'); + late final _setstate = _setstatePtr .asFunction Function(ffi.Pointer)>(); - ffi.Pointer fdopen( + void srand48( int arg0, - ffi.Pointer arg1, ) { - return _fdopen( + return _srand48( arg0, - arg1, ); } - late final _fdopenPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Pointer)>>('fdopen'); - late final _fdopen = _fdopenPtr - .asFunction Function(int, ffi.Pointer)>(); + late final _srand48Ptr = + _lookup>('srand48'); + late final _srand48 = _srand48Ptr.asFunction(); - int fileno( - ffi.Pointer arg0, + void srandom( + int arg0, ) { - return _fileno( + return _srandom( arg0, ); } - late final _filenoPtr = - _lookup)>>( - 'fileno'); - late final _fileno = _filenoPtr.asFunction)>(); + late final _srandomPtr = + _lookup>( + 'srandom'); + late final _srandom = _srandomPtr.asFunction(); - int pclose( - ffi.Pointer arg0, + int unlockpt( + int arg0, ) { - return _pclose( + return _unlockpt( arg0, ); } - late final _pclosePtr = - _lookup)>>( - 'pclose'); - late final _pclose = _pclosePtr.asFunction)>(); + late final _unlockptPtr = + _lookup>('unlockpt'); + late final _unlockpt = _unlockptPtr.asFunction(); - ffi.Pointer popen( + int unsetenv( ffi.Pointer arg0, - ffi.Pointer arg1, ) { - return _popen( + return _unsetenv( arg0, - arg1, ); } - 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)>(); + late final _unsetenvPtr = + _lookup)>>( + 'unsetenv'); + late final _unsetenv = + _unsetenvPtr.asFunction)>(); - int __srget( - ffi.Pointer arg0, - ) { - return ___srget( - arg0, - ); + int arc4random() { + return _arc4random(); } - late final ___srgetPtr = - _lookup)>>( - '__srget'); - late final ___srget = - ___srgetPtr.asFunction)>(); + late final _arc4randomPtr = + _lookup>('arc4random'); + late final _arc4random = _arc4randomPtr.asFunction(); - int __svfscanf( - ffi.Pointer arg0, - ffi.Pointer arg1, - va_list arg2, + void arc4random_addrandom( + ffi.Pointer arg0, + int arg1, ) { - return ___svfscanf( + return _arc4random_addrandom( arg0, arg1, - arg2, ); } - late final ___svfscanfPtr = _lookup< + late final _arc4random_addrandomPtr = _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)>(); + ffi.Void Function( + ffi.Pointer, ffi.Int)>>('arc4random_addrandom'); + late final _arc4random_addrandom = _arc4random_addrandomPtr + .asFunction, int)>(); - int __swbuf( - int arg0, - ffi.Pointer arg1, + void arc4random_buf( + ffi.Pointer __buf, + int __nbytes, ) { - return ___swbuf( - arg0, - arg1, + return _arc4random_buf( + __buf, + __nbytes, ); } - late final ___swbufPtr = - _lookup)>>( - '__swbuf'); - late final ___swbuf = - ___swbufPtr.asFunction)>(); + late final _arc4random_bufPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, ffi.Size)>>('arc4random_buf'); + late final _arc4random_buf = _arc4random_bufPtr + .asFunction, int)>(); - void flockfile( - ffi.Pointer arg0, - ) { - return _flockfile( - arg0, - ); + void arc4random_stir() { + return _arc4random_stir(); } - late final _flockfilePtr = - _lookup)>>( - 'flockfile'); - late final _flockfile = - _flockfilePtr.asFunction)>(); + late final _arc4random_stirPtr = + _lookup>('arc4random_stir'); + late final _arc4random_stir = + _arc4random_stirPtr.asFunction(); - int ftrylockfile( - ffi.Pointer arg0, + int arc4random_uniform( + int __upper_bound, ) { - return _ftrylockfile( - arg0, + return _arc4random_uniform( + __upper_bound, ); } - late final _ftrylockfilePtr = - _lookup)>>( - 'ftrylockfile'); - late final _ftrylockfile = - _ftrylockfilePtr.asFunction)>(); + late final _arc4random_uniformPtr = + _lookup>( + 'arc4random_uniform'); + late final _arc4random_uniform = + _arc4random_uniformPtr.asFunction(); - void funlockfile( - ffi.Pointer arg0, + int atexit_b( + ffi.Pointer<_ObjCBlock> arg0, ) { - return _funlockfile( + return _atexit_b( arg0, ); } - late final _funlockfilePtr = - _lookup)>>( - 'funlockfile'); - late final _funlockfile = - _funlockfilePtr.asFunction)>(); - - int getc_unlocked( - ffi.Pointer arg0, + late final _atexit_bPtr = + _lookup)>>( + 'atexit_b'); + late final _atexit_b = + _atexit_bPtr.asFunction)>(); + + ffi.Pointer bsearch_b( + ffi.Pointer __key, + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer<_ObjCBlock> __compar, ) { - return _getc_unlocked( - arg0, + return _bsearch_b( + __key, + __base, + __nel, + __width, + __compar, ); } - late final _getc_unlockedPtr = - _lookup)>>( - 'getc_unlocked'); - late final _getc_unlocked = - _getc_unlockedPtr.asFunction)>(); - - int getchar_unlocked() { - return _getchar_unlocked(); - } - - late final _getchar_unlockedPtr = - _lookup>('getchar_unlocked'); - late final _getchar_unlocked = - _getchar_unlockedPtr.asFunction(); + late final _bsearch_bPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer<_ObjCBlock>)>>('bsearch_b'); + late final _bsearch_b = _bsearch_bPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); - int putc_unlocked( - int arg0, - ffi.Pointer arg1, + ffi.Pointer cgetcap( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, ) { - return _putc_unlocked( + return _cgetcap( arg0, arg1, + arg2, ); } - late final _putc_unlockedPtr = - _lookup)>>( - 'putc_unlocked'); - late final _putc_unlocked = - _putc_unlockedPtr.asFunction)>(); + 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 putchar_unlocked( - int arg0, - ) { - return _putchar_unlocked( - arg0, - ); + int cgetclose() { + return _cgetclose(); } - late final _putchar_unlockedPtr = - _lookup>( - 'putchar_unlocked'); - late final _putchar_unlocked = - _putchar_unlockedPtr.asFunction(); + late final _cgetclosePtr = + _lookup>('cgetclose'); + late final _cgetclose = _cgetclosePtr.asFunction(); - int getw( - ffi.Pointer arg0, + int cgetent( + ffi.Pointer> arg0, + ffi.Pointer> arg1, + ffi.Pointer arg2, ) { - return _getw( + return _cgetent( arg0, + arg1, + arg2, ); } - late final _getwPtr = - _lookup)>>('getw'); - late final _getw = _getwPtr.asFunction)>(); + 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)>(); - int putw( - int arg0, - ffi.Pointer arg1, + int cgetfirst( + ffi.Pointer> arg0, + ffi.Pointer> arg1, ) { - return _putw( + return _cgetfirst( arg0, arg1, ); } - late final _putwPtr = - _lookup)>>( - 'putw'); - late final _putw = - _putwPtr.asFunction)>(); - - ffi.Pointer tempnam( - ffi.Pointer __dir, - ffi.Pointer __prefix, - ) { - return _tempnam( - __dir, - __prefix, - ); - } - - late final _tempnamPtr = _lookup< + late final _cgetfirstPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('tempnam'); - late final _tempnam = _tempnamPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Int Function(ffi.Pointer>, + ffi.Pointer>)>>('cgetfirst'); + late final _cgetfirst = _cgetfirstPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer>)>(); - int fseeko( - ffi.Pointer __stream, - int __offset, - int __whence, + int cgetmatch( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _fseeko( - __stream, - __offset, - __whence, + return _cgetmatch( + arg0, + arg1, ); } - late final _fseekoPtr = _lookup< + late final _cgetmatchPtr = _lookup< ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, off_t, ffi.Int)>>('fseeko'); - late final _fseeko = - _fseekoPtr.asFunction, int, int)>(); - - int ftello( - ffi.Pointer __stream, - ) { - return _ftello( - __stream, - ); - } - - late final _ftelloPtr = - _lookup)>>('ftello'); - late final _ftello = _ftelloPtr.asFunction)>(); + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>('cgetmatch'); + late final _cgetmatch = _cgetmatchPtr + .asFunction, ffi.Pointer)>(); - int snprintf( - ffi.Pointer __str, - int __size, - ffi.Pointer __format, + int cgetnext( + ffi.Pointer> arg0, + ffi.Pointer> arg1, ) { - return _snprintf( - __str, - __size, - __format, + return _cgetnext( + arg0, + arg1, ); } - late final _snprintfPtr = _lookup< + late final _cgetnextPtr = _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)>(); + ffi.Int Function(ffi.Pointer>, + ffi.Pointer>)>>('cgetnext'); + late final _cgetnext = _cgetnextPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer>)>(); - int vfscanf( - ffi.Pointer __stream, - ffi.Pointer __format, - va_list arg2, + int cgetnum( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, ) { - return _vfscanf( - __stream, - __format, + return _cgetnum( + arg0, + arg1, arg2, ); } - late final _vfscanfPtr = _lookup< + late final _cgetnumPtr = _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)>(); + ffi.Int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('cgetnum'); + late final _cgetnum = _cgetnumPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - int vscanf( - ffi.Pointer __format, - va_list arg1, + int cgetset( + ffi.Pointer arg0, ) { - return _vscanf( - __format, - arg1, + return _cgetset( + arg0, ); } - late final _vscanfPtr = _lookup< - ffi.NativeFunction, va_list)>>( - 'vscanf'); - late final _vscanf = - _vscanfPtr.asFunction, va_list)>(); + late final _cgetsetPtr = + _lookup)>>( + 'cgetset'); + late final _cgetset = + _cgetsetPtr.asFunction)>(); - int vsnprintf( - ffi.Pointer __str, - int __size, - ffi.Pointer __format, - va_list arg3, + int cgetstr( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, ) { - return _vsnprintf( - __str, - __size, - __format, - arg3, + return _cgetstr( + arg0, + arg1, + arg2, ); } - late final _vsnprintfPtr = _lookup< + late final _cgetstrPtr = _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)>(); + ffi.Int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>('cgetstr'); + late final _cgetstr = _cgetstrPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); - int vsscanf( - ffi.Pointer __str, - ffi.Pointer __format, - va_list arg2, + int cgetustr( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, ) { - return _vsscanf( - __str, - __format, + return _cgetustr( + arg0, + arg1, arg2, ); } - late final _vsscanfPtr = _lookup< + late final _cgetustrPtr = _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)>(); + ffi.Pointer>)>>('cgetustr'); + late final _cgetustr = _cgetustrPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); - int dprintf( + int daemon( int arg0, - ffi.Pointer arg1, + int arg1, ) { - return _dprintf( + return _daemon( arg0, arg1, ); } - late final _dprintfPtr = _lookup< - ffi.NativeFunction)>>( - 'dprintf'); - late final _dprintf = - _dprintfPtr.asFunction)>(); + late final _daemonPtr = + _lookup>('daemon'); + late final _daemon = _daemonPtr.asFunction(); - int vdprintf( + ffi.Pointer devname( int arg0, - ffi.Pointer arg1, - va_list arg2, + int arg1, ) { - return _vdprintf( + return _devname( arg0, arg1, - arg2, - ); - } - - late final _vdprintfPtr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, ffi.Pointer, va_list)>>('vdprintf'); - late final _vdprintf = _vdprintfPtr - .asFunction, va_list)>(); - - int getdelim( - ffi.Pointer> __linep, - ffi.Pointer __linecapp, - int __delimiter, - ffi.Pointer __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 _devnamePtr = _lookup< + ffi.NativeFunction Function(dev_t, mode_t)>>( + 'devname'); + late final _devname = + _devnamePtr.asFunction Function(int, int)>(); - int getline( - ffi.Pointer> __linep, - ffi.Pointer __linecapp, - ffi.Pointer __stream, + ffi.Pointer devname_r( + int arg0, + int arg1, + ffi.Pointer buf, + int len, ) { - return _getline( - __linep, - __linecapp, - __stream, + return _devname_r( + arg0, + arg1, + buf, + len, ); } - late final _getlinePtr = _lookup< + late final _devname_rPtr = _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 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)>(); - ffi.Pointer fmemopen( - ffi.Pointer __buf, - int __size, - ffi.Pointer __mode, + ffi.Pointer getbsize( + ffi.Pointer arg0, + ffi.Pointer arg1, ) { - return _fmemopen( - __buf, - __size, - __mode, + return _getbsize( + arg0, + arg1, ); } - late final _fmemopenPtr = _lookup< + late final _getbsizePtr = _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 Function( + ffi.Pointer, ffi.Pointer)>>('getbsize'); + late final _getbsize = _getbsizePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer open_memstream( - ffi.Pointer> __bufp, - ffi.Pointer __sizep, + int getloadavg( + ffi.Pointer arg0, + int arg1, ) { - return _open_memstream( - __bufp, - __sizep, + return _getloadavg( + arg0, + arg1, ); } - late final _open_memstreamPtr = _lookup< + late final _getloadavgPtr = _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'); - - int get sys_nerr => _sys_nerr.value; - - set sys_nerr(int value) => _sys_nerr.value = value; - - late final ffi.Pointer>> _sys_errlist = - _lookup>>('sys_errlist'); - - ffi.Pointer> get sys_errlist => _sys_errlist.value; - - set sys_errlist(ffi.Pointer> value) => - _sys_errlist.value = value; + ffi.Int Function(ffi.Pointer, ffi.Int)>>('getloadavg'); + late final _getloadavg = + _getloadavgPtr.asFunction, int)>(); - int asprintf( - ffi.Pointer> arg0, - ffi.Pointer arg1, - ) { - return _asprintf( - arg0, - arg1, - ); + ffi.Pointer getprogname() { + return _getprogname(); } - 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 _getprognamePtr = + _lookup Function()>>( + 'getprogname'); + late final _getprogname = + _getprognamePtr.asFunction Function()>(); - ffi.Pointer ctermid_r( + void setprogname( ffi.Pointer arg0, ) { - return _ctermid_r( + return _setprogname( arg0, ); } - late final _ctermid_rPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('ctermid_r'); - late final _ctermid_r = _ctermid_rPtr - .asFunction Function(ffi.Pointer)>(); + late final _setprognamePtr = + _lookup)>>( + 'setprogname'); + late final _setprogname = + _setprognamePtr.asFunction)>(); - ffi.Pointer fgetln( - ffi.Pointer arg0, - ffi.Pointer arg1, + int heapsort( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer)>> + __compar, ) { - return _fgetln( - arg0, - arg1, + return _heapsort( + __base, + __nel, + __width, + __compar, ); } - late final _fgetlnPtr = _lookup< + late final _heapsortPtr = _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 fmtcheck( - ffi.Pointer arg0, - ffi.Pointer arg1, + 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, + int, + int, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>)>(); + + int heapsort_b( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer<_ObjCBlock> __compar, ) { - return _fmtcheck( - arg0, - arg1, + return _heapsort_b( + __base, + __nel, + __width, + __compar, ); } - late final _fmtcheckPtr = _lookup< + late final _heapsort_bPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('fmtcheck'); - late final _fmtcheck = _fmtcheckPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Size, + ffi.Pointer<_ObjCBlock>)>>('heapsort_b'); + late final _heapsort_b = _heapsort_bPtr.asFunction< + int Function(ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); - int fpurge( - ffi.Pointer arg0, + int mergesort( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer)>> + __compar, ) { - return _fpurge( - arg0, + return _mergesort( + __base, + __nel, + __width, + __compar, ); } - late final _fpurgePtr = - _lookup)>>( - 'fpurge'); - late final _fpurge = _fpurgePtr.asFunction)>(); + 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, + int, + int, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>)>(); - void setbuffer( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, + int mergesort_b( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer<_ObjCBlock> __compar, ) { - return _setbuffer( - arg0, - arg1, - arg2, + return _mergesort_b( + __base, + __nel, + __width, + __compar, ); } - late final _setbufferPtr = _lookup< + late final _mergesort_bPtr = _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)>(); + ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Size, + ffi.Pointer<_ObjCBlock>)>>('mergesort_b'); + late final _mergesort_b = _mergesort_bPtr.asFunction< + int Function(ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); - int setlinebuf( - ffi.Pointer arg0, + void psort( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer)>> + __compar, ) { - return _setlinebuf( - arg0, + return _psort( + __base, + __nel, + __width, + __compar, ); } - late final _setlinebufPtr = - _lookup)>>( - 'setlinebuf'); - late final _setlinebuf = - _setlinebufPtr.asFunction)>(); + 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, + int, + int, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>)>(); - int vasprintf( - ffi.Pointer> arg0, - ffi.Pointer arg1, - va_list arg2, + void psort_b( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer<_ObjCBlock> __compar, ) { - return _vasprintf( - arg0, - arg1, - arg2, + return _psort_b( + __base, + __nel, + __width, + __compar, ); } - late final _vasprintfPtr = _lookup< + late final _psort_bPtr = _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.Void Function(ffi.Pointer, ffi.Size, ffi.Size, + ffi.Pointer<_ObjCBlock>)>>('psort_b'); + late final _psort_b = _psort_bPtr.asFunction< + void Function( + ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); - ffi.Pointer funopen( - ffi.Pointer arg0, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>> - arg1, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>> - arg2, + void psort_r( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer arg3, ffi.Pointer< ffi.NativeFunction< - fpos_t Function(ffi.Pointer, fpos_t, ffi.Int)>> - arg3, - ffi.Pointer)>> - arg4, + ffi.Int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>> + __compar, ) { - return _funopen( - arg0, - arg1, - arg2, + return _psort_r( + __base, + __nel, + __width, arg3, - arg4, + __compar, ); } - late final _funopenPtr = _lookup< + late final _psort_rPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, 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.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.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, ffi.Pointer, + ffi.Pointer)>>)>(); - int __sprintf_chk( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer arg3, + void qsort_b( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer<_ObjCBlock> __compar, ) { - return ___sprintf_chk( - arg0, - arg1, - arg2, - arg3, + return _qsort_b( + __base, + __nel, + __width, + __compar, ); } - late final ___sprintf_chkPtr = _lookup< + late final _qsort_bPtr = _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)>(); + ffi.Void Function(ffi.Pointer, ffi.Size, ffi.Size, + ffi.Pointer<_ObjCBlock>)>>('qsort_b'); + late final _qsort_b = _qsort_bPtr.asFunction< + void Function( + ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); - int __snprintf_chk( - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, - ffi.Pointer arg4, + void qsort_r( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer arg3, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>> + __compar, ) { - return ___snprintf_chk( - arg0, - arg1, - arg2, + return _qsort_r( + __base, + __nel, + __width, arg3, - arg4, + __compar, ); } - late final ___snprintf_chkPtr = _lookup< + late final _qsort_rPtr = _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)>(); + 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)>>)>(); - int __vsprintf_chk( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer arg3, - va_list arg4, + int radixsort( + ffi.Pointer> __base, + int __nel, + ffi.Pointer __table, + int __endbyte, ) { - return ___vsprintf_chk( - arg0, - arg1, - arg2, - arg3, - arg4, + return _radixsort( + __base, + __nel, + __table, + __endbyte, ); } - late final ___vsprintf_chkPtr = _lookup< + late final _radixsortPtr = _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)>(); + 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 __vsnprintf_chk( + int rpmatch( ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, - ffi.Pointer arg4, - va_list arg5, ) { - return ___vsnprintf_chk( + return _rpmatch( arg0, - arg1, - 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)>(); + late final _rpmatchPtr = + _lookup)>>( + 'rpmatch'); + late final _rpmatch = + _rpmatchPtr.asFunction)>(); - ffi.Pointer memchr( - ffi.Pointer __s, - int __c, - int __n, + int sradixsort( + ffi.Pointer> __base, + int __nel, + ffi.Pointer __table, + int __endbyte, ) { - return _memchr( - __s, - __c, - __n, + return _sradixsort( + __base, + __nel, + __table, + __endbyte, ); } - late final _memchrPtr = _lookup< + late final _sradixsortPtr = _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.Int Function(ffi.Pointer>, ffi.Int, + ffi.Pointer, ffi.UnsignedInt)>>('sradixsort'); + late final _sradixsort = _sradixsortPtr.asFunction< + int Function(ffi.Pointer>, int, + ffi.Pointer, int)>(); - int memcmp( - ffi.Pointer __s1, - ffi.Pointer __s2, - int __n, - ) { - return _memcmp( - __s1, - __s2, - __n, - ); + void sranddev() { + return _sranddev(); } - 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 _sranddevPtr = + _lookup>('sranddev'); + late final _sranddev = _sranddevPtr.asFunction(); - ffi.Pointer memcpy( - ffi.Pointer __dst, - ffi.Pointer __src, - int __n, + void srandomdev() { + return _srandomdev(); + } + + late final _srandomdevPtr = + _lookup>('srandomdev'); + late final _srandomdev = _srandomdevPtr.asFunction(); + + ffi.Pointer reallocf( + ffi.Pointer __ptr, + int __size, ) { - return _memcpy( - __dst, - __src, - __n, + return _reallocf( + __ptr, + __size, ); } - late final _memcpyPtr = _lookup< + late final _reallocfPtr = _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 Function( + ffi.Pointer, ffi.Size)>>('reallocf'); + late final _reallocf = _reallocfPtr + .asFunction Function(ffi.Pointer, int)>(); - ffi.Pointer memmove( - ffi.Pointer __dst, - ffi.Pointer __src, - int __len, + int strtonum( + ffi.Pointer __numstr, + int __minval, + int __maxval, + ffi.Pointer> __errstrp, ) { - return _memmove( - __dst, - __src, - __len, + return _strtonum( + __numstr, + __minval, + __maxval, + __errstrp, ); } - late final _memmovePtr = _lookup< + late final _strtonumPtr = _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.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, + ); + } + + 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, + ); + } + + 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'); + + ffi.Pointer get suboptarg => _suboptarg.value; + + set suboptarg(ffi.Pointer value) => _suboptarg.value = value; + + ffi.Pointer memchr( + ffi.Pointer __s, + int __c, + int __n, + ) { + return _memchr( + __s, + __c, + __n, + ); + } + + 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)>(); + + 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)>(); + + ffi.Pointer memcpy( + ffi.Pointer __dst, + ffi.Pointer __src, + int __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)>(); + + ffi.Pointer memmove( + ffi.Pointer __dst, + ffi.Pointer __src, + int __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)>(); ffi.Pointer memset( ffi.Pointer __b, @@ -23035,258 +22811,6 @@ class NativeCupertinoHttp { late final _CFCharacterSetInvert = _CFCharacterSetInvertPtr.asFunction< void Function(CFMutableCharacterSetRef)>(); - int CFErrorGetTypeID() { - return _CFErrorGetTypeID(); - } - - late final _CFErrorGetTypeIDPtr = - _lookup>('CFErrorGetTypeID'); - late final _CFErrorGetTypeID = - _CFErrorGetTypeIDPtr.asFunction(); - - late final ffi.Pointer _kCFErrorDomainPOSIX = - _lookup('kCFErrorDomainPOSIX'); - - CFErrorDomain get kCFErrorDomainPOSIX => _kCFErrorDomainPOSIX.value; - - set kCFErrorDomainPOSIX(CFErrorDomain value) => - _kCFErrorDomainPOSIX.value = value; - - late final ffi.Pointer _kCFErrorDomainOSStatus = - _lookup('kCFErrorDomainOSStatus'); - - CFErrorDomain get kCFErrorDomainOSStatus => _kCFErrorDomainOSStatus.value; - - set kCFErrorDomainOSStatus(CFErrorDomain value) => - _kCFErrorDomainOSStatus.value = value; - - late final ffi.Pointer _kCFErrorDomainMach = - _lookup('kCFErrorDomainMach'); - - CFErrorDomain get kCFErrorDomainMach => _kCFErrorDomainMach.value; - - set kCFErrorDomainMach(CFErrorDomain value) => - _kCFErrorDomainMach.value = value; - - late final ffi.Pointer _kCFErrorDomainCocoa = - _lookup('kCFErrorDomainCocoa'); - - CFErrorDomain get kCFErrorDomainCocoa => _kCFErrorDomainCocoa.value; - - set kCFErrorDomainCocoa(CFErrorDomain value) => - _kCFErrorDomainCocoa.value = value; - - late final ffi.Pointer _kCFErrorLocalizedDescriptionKey = - _lookup('kCFErrorLocalizedDescriptionKey'); - - CFStringRef get kCFErrorLocalizedDescriptionKey => - _kCFErrorLocalizedDescriptionKey.value; - - set kCFErrorLocalizedDescriptionKey(CFStringRef value) => - _kCFErrorLocalizedDescriptionKey.value = value; - - late final ffi.Pointer _kCFErrorLocalizedFailureKey = - _lookup('kCFErrorLocalizedFailureKey'); - - CFStringRef get kCFErrorLocalizedFailureKey => - _kCFErrorLocalizedFailureKey.value; - - set kCFErrorLocalizedFailureKey(CFStringRef value) => - _kCFErrorLocalizedFailureKey.value = value; - - late final ffi.Pointer _kCFErrorLocalizedFailureReasonKey = - _lookup('kCFErrorLocalizedFailureReasonKey'); - - CFStringRef get kCFErrorLocalizedFailureReasonKey => - _kCFErrorLocalizedFailureReasonKey.value; - - set kCFErrorLocalizedFailureReasonKey(CFStringRef value) => - _kCFErrorLocalizedFailureReasonKey.value = value; - - late final ffi.Pointer _kCFErrorLocalizedRecoverySuggestionKey = - _lookup('kCFErrorLocalizedRecoverySuggestionKey'); - - CFStringRef get kCFErrorLocalizedRecoverySuggestionKey => - _kCFErrorLocalizedRecoverySuggestionKey.value; - - set kCFErrorLocalizedRecoverySuggestionKey(CFStringRef value) => - _kCFErrorLocalizedRecoverySuggestionKey.value = value; - - late final ffi.Pointer _kCFErrorDescriptionKey = - _lookup('kCFErrorDescriptionKey'); - - CFStringRef get kCFErrorDescriptionKey => _kCFErrorDescriptionKey.value; - - set kCFErrorDescriptionKey(CFStringRef value) => - _kCFErrorDescriptionKey.value = value; - - late final ffi.Pointer _kCFErrorUnderlyingErrorKey = - _lookup('kCFErrorUnderlyingErrorKey'); - - CFStringRef get kCFErrorUnderlyingErrorKey => - _kCFErrorUnderlyingErrorKey.value; - - set kCFErrorUnderlyingErrorKey(CFStringRef value) => - _kCFErrorUnderlyingErrorKey.value = value; - - late final ffi.Pointer _kCFErrorURLKey = - _lookup('kCFErrorURLKey'); - - CFStringRef get kCFErrorURLKey => _kCFErrorURLKey.value; - - set kCFErrorURLKey(CFStringRef value) => _kCFErrorURLKey.value = value; - - late final ffi.Pointer _kCFErrorFilePathKey = - _lookup('kCFErrorFilePathKey'); - - CFStringRef get kCFErrorFilePathKey => _kCFErrorFilePathKey.value; - - set kCFErrorFilePathKey(CFStringRef value) => - _kCFErrorFilePathKey.value = value; - - CFErrorRef CFErrorCreate( - CFAllocatorRef allocator, - CFErrorDomain domain, - int code, - CFDictionaryRef 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)>(); - - CFErrorRef CFErrorCreateWithUserInfoKeysAndValues( - CFAllocatorRef allocator, - CFErrorDomain domain, - int code, - ffi.Pointer> userInfoKeys, - ffi.Pointer> userInfoValues, - int numUserInfoValues, - ) { - return _CFErrorCreateWithUserInfoKeysAndValues( - allocator, - domain, - code, - userInfoKeys, - userInfoValues, - numUserInfoValues, - ); - } - - late final _CFErrorCreateWithUserInfoKeysAndValuesPtr = _lookup< - ffi.NativeFunction< - CFErrorRef Function( - CFAllocatorRef, - CFErrorDomain, - CFIndex, - ffi.Pointer>, - ffi.Pointer>, - CFIndex)>>('CFErrorCreateWithUserInfoKeysAndValues'); - late final _CFErrorCreateWithUserInfoKeysAndValues = - _CFErrorCreateWithUserInfoKeysAndValuesPtr.asFunction< - CFErrorRef Function( - CFAllocatorRef, - CFErrorDomain, - int, - ffi.Pointer>, - ffi.Pointer>, - int)>(); - - CFErrorDomain CFErrorGetDomain( - CFErrorRef err, - ) { - return _CFErrorGetDomain( - err, - ); - } - - late final _CFErrorGetDomainPtr = - _lookup>( - 'CFErrorGetDomain'); - late final _CFErrorGetDomain = - _CFErrorGetDomainPtr.asFunction(); - - int CFErrorGetCode( - CFErrorRef err, - ) { - return _CFErrorGetCode( - err, - ); - } - - late final _CFErrorGetCodePtr = - _lookup>( - 'CFErrorGetCode'); - late final _CFErrorGetCode = - _CFErrorGetCodePtr.asFunction(); - - CFDictionaryRef CFErrorCopyUserInfo( - CFErrorRef err, - ) { - return _CFErrorCopyUserInfo( - err, - ); - } - - late final _CFErrorCopyUserInfoPtr = - _lookup>( - 'CFErrorCopyUserInfo'); - late final _CFErrorCopyUserInfo = _CFErrorCopyUserInfoPtr.asFunction< - CFDictionaryRef Function(CFErrorRef)>(); - - CFStringRef CFErrorCopyDescription( - CFErrorRef err, - ) { - return _CFErrorCopyDescription( - err, - ); - } - - late final _CFErrorCopyDescriptionPtr = - _lookup>( - 'CFErrorCopyDescription'); - late final _CFErrorCopyDescription = - _CFErrorCopyDescriptionPtr.asFunction(); - - CFStringRef CFErrorCopyFailureReason( - CFErrorRef err, - ) { - return _CFErrorCopyFailureReason( - err, - ); - } - - late final _CFErrorCopyFailureReasonPtr = - _lookup>( - 'CFErrorCopyFailureReason'); - late final _CFErrorCopyFailureReason = _CFErrorCopyFailureReasonPtr - .asFunction(); - - CFStringRef CFErrorCopyRecoverySuggestion( - CFErrorRef err, - ) { - return _CFErrorCopyRecoverySuggestion( - err, - ); - } - - late final _CFErrorCopyRecoverySuggestionPtr = - _lookup>( - 'CFErrorCopyRecoverySuggestion'); - late final _CFErrorCopyRecoverySuggestion = _CFErrorCopyRecoverySuggestionPtr - .asFunction(); - int CFStringGetTypeID() { return _CFStringGetTypeID(); } @@ -23566,60 +23090,6 @@ class NativeCupertinoHttp { CFStringRef Function( CFAllocatorRef, CFDictionaryRef, CFStringRef, va_list)>(); - CFStringRef CFStringCreateStringWithValidatedFormat( - CFAllocatorRef alloc, - CFDictionaryRef formatOptions, - CFStringRef validFormatSpecifiers, - CFStringRef format, - ffi.Pointer errorPtr, - ) { - return _CFStringCreateStringWithValidatedFormat( - alloc, - formatOptions, - validFormatSpecifiers, - format, - errorPtr, - ); - } - - 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 CFStringCreateStringWithValidatedFormatAndArguments( - CFAllocatorRef alloc, - CFDictionaryRef formatOptions, - CFStringRef validFormatSpecifiers, - CFStringRef format, - va_list arguments, - ffi.Pointer errorPtr, - ) { - return _CFStringCreateStringWithValidatedFormatAndArguments( - alloc, - formatOptions, - validFormatSpecifiers, - format, - arguments, - errorPtr, - ); - } - - 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)>(); - CFMutableStringRef CFStringCreateMutable( CFAllocatorRef alloc, int maxLength, @@ -26351,6 +25821,258 @@ class NativeCupertinoHttp { set kCFDateFormatterDoesRelativeDateFormattingKey(CFDateFormatterKey value) => _kCFDateFormatterDoesRelativeDateFormattingKey.value = value; + int CFErrorGetTypeID() { + return _CFErrorGetTypeID(); + } + + late final _CFErrorGetTypeIDPtr = + _lookup>('CFErrorGetTypeID'); + late final _CFErrorGetTypeID = + _CFErrorGetTypeIDPtr.asFunction(); + + late final ffi.Pointer _kCFErrorDomainPOSIX = + _lookup('kCFErrorDomainPOSIX'); + + CFErrorDomain get kCFErrorDomainPOSIX => _kCFErrorDomainPOSIX.value; + + set kCFErrorDomainPOSIX(CFErrorDomain value) => + _kCFErrorDomainPOSIX.value = value; + + late final ffi.Pointer _kCFErrorDomainOSStatus = + _lookup('kCFErrorDomainOSStatus'); + + CFErrorDomain get kCFErrorDomainOSStatus => _kCFErrorDomainOSStatus.value; + + set kCFErrorDomainOSStatus(CFErrorDomain value) => + _kCFErrorDomainOSStatus.value = value; + + late final ffi.Pointer _kCFErrorDomainMach = + _lookup('kCFErrorDomainMach'); + + CFErrorDomain get kCFErrorDomainMach => _kCFErrorDomainMach.value; + + set kCFErrorDomainMach(CFErrorDomain value) => + _kCFErrorDomainMach.value = value; + + late final ffi.Pointer _kCFErrorDomainCocoa = + _lookup('kCFErrorDomainCocoa'); + + CFErrorDomain get kCFErrorDomainCocoa => _kCFErrorDomainCocoa.value; + + set kCFErrorDomainCocoa(CFErrorDomain value) => + _kCFErrorDomainCocoa.value = value; + + late final ffi.Pointer _kCFErrorLocalizedDescriptionKey = + _lookup('kCFErrorLocalizedDescriptionKey'); + + CFStringRef get kCFErrorLocalizedDescriptionKey => + _kCFErrorLocalizedDescriptionKey.value; + + set kCFErrorLocalizedDescriptionKey(CFStringRef value) => + _kCFErrorLocalizedDescriptionKey.value = value; + + late final ffi.Pointer _kCFErrorLocalizedFailureKey = + _lookup('kCFErrorLocalizedFailureKey'); + + CFStringRef get kCFErrorLocalizedFailureKey => + _kCFErrorLocalizedFailureKey.value; + + set kCFErrorLocalizedFailureKey(CFStringRef value) => + _kCFErrorLocalizedFailureKey.value = value; + + late final ffi.Pointer _kCFErrorLocalizedFailureReasonKey = + _lookup('kCFErrorLocalizedFailureReasonKey'); + + CFStringRef get kCFErrorLocalizedFailureReasonKey => + _kCFErrorLocalizedFailureReasonKey.value; + + set kCFErrorLocalizedFailureReasonKey(CFStringRef value) => + _kCFErrorLocalizedFailureReasonKey.value = value; + + late final ffi.Pointer _kCFErrorLocalizedRecoverySuggestionKey = + _lookup('kCFErrorLocalizedRecoverySuggestionKey'); + + CFStringRef get kCFErrorLocalizedRecoverySuggestionKey => + _kCFErrorLocalizedRecoverySuggestionKey.value; + + set kCFErrorLocalizedRecoverySuggestionKey(CFStringRef value) => + _kCFErrorLocalizedRecoverySuggestionKey.value = value; + + late final ffi.Pointer _kCFErrorDescriptionKey = + _lookup('kCFErrorDescriptionKey'); + + CFStringRef get kCFErrorDescriptionKey => _kCFErrorDescriptionKey.value; + + set kCFErrorDescriptionKey(CFStringRef value) => + _kCFErrorDescriptionKey.value = value; + + late final ffi.Pointer _kCFErrorUnderlyingErrorKey = + _lookup('kCFErrorUnderlyingErrorKey'); + + CFStringRef get kCFErrorUnderlyingErrorKey => + _kCFErrorUnderlyingErrorKey.value; + + set kCFErrorUnderlyingErrorKey(CFStringRef value) => + _kCFErrorUnderlyingErrorKey.value = value; + + late final ffi.Pointer _kCFErrorURLKey = + _lookup('kCFErrorURLKey'); + + CFStringRef get kCFErrorURLKey => _kCFErrorURLKey.value; + + set kCFErrorURLKey(CFStringRef value) => _kCFErrorURLKey.value = value; + + late final ffi.Pointer _kCFErrorFilePathKey = + _lookup('kCFErrorFilePathKey'); + + CFStringRef get kCFErrorFilePathKey => _kCFErrorFilePathKey.value; + + set kCFErrorFilePathKey(CFStringRef value) => + _kCFErrorFilePathKey.value = value; + + CFErrorRef CFErrorCreate( + CFAllocatorRef allocator, + CFErrorDomain domain, + int code, + CFDictionaryRef 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)>(); + + CFErrorRef CFErrorCreateWithUserInfoKeysAndValues( + CFAllocatorRef allocator, + CFErrorDomain domain, + int code, + ffi.Pointer> userInfoKeys, + ffi.Pointer> userInfoValues, + int numUserInfoValues, + ) { + return _CFErrorCreateWithUserInfoKeysAndValues( + allocator, + domain, + code, + userInfoKeys, + userInfoValues, + numUserInfoValues, + ); + } + + late final _CFErrorCreateWithUserInfoKeysAndValuesPtr = _lookup< + ffi.NativeFunction< + CFErrorRef Function( + CFAllocatorRef, + CFErrorDomain, + CFIndex, + ffi.Pointer>, + ffi.Pointer>, + CFIndex)>>('CFErrorCreateWithUserInfoKeysAndValues'); + late final _CFErrorCreateWithUserInfoKeysAndValues = + _CFErrorCreateWithUserInfoKeysAndValuesPtr.asFunction< + CFErrorRef Function( + CFAllocatorRef, + CFErrorDomain, + int, + ffi.Pointer>, + ffi.Pointer>, + int)>(); + + CFErrorDomain CFErrorGetDomain( + CFErrorRef err, + ) { + return _CFErrorGetDomain( + err, + ); + } + + late final _CFErrorGetDomainPtr = + _lookup>( + 'CFErrorGetDomain'); + late final _CFErrorGetDomain = + _CFErrorGetDomainPtr.asFunction(); + + int CFErrorGetCode( + CFErrorRef err, + ) { + return _CFErrorGetCode( + err, + ); + } + + late final _CFErrorGetCodePtr = + _lookup>( + 'CFErrorGetCode'); + late final _CFErrorGetCode = + _CFErrorGetCodePtr.asFunction(); + + CFDictionaryRef CFErrorCopyUserInfo( + CFErrorRef err, + ) { + return _CFErrorCopyUserInfo( + err, + ); + } + + late final _CFErrorCopyUserInfoPtr = + _lookup>( + 'CFErrorCopyUserInfo'); + late final _CFErrorCopyUserInfo = _CFErrorCopyUserInfoPtr.asFunction< + CFDictionaryRef Function(CFErrorRef)>(); + + CFStringRef CFErrorCopyDescription( + CFErrorRef err, + ) { + return _CFErrorCopyDescription( + err, + ); + } + + late final _CFErrorCopyDescriptionPtr = + _lookup>( + 'CFErrorCopyDescription'); + late final _CFErrorCopyDescription = + _CFErrorCopyDescriptionPtr.asFunction(); + + CFStringRef CFErrorCopyFailureReason( + CFErrorRef err, + ) { + return _CFErrorCopyFailureReason( + err, + ); + } + + late final _CFErrorCopyFailureReasonPtr = + _lookup>( + 'CFErrorCopyFailureReason'); + late final _CFErrorCopyFailureReason = _CFErrorCopyFailureReasonPtr + .asFunction(); + + CFStringRef CFErrorCopyRecoverySuggestion( + CFErrorRef err, + ) { + return _CFErrorCopyRecoverySuggestion( + err, + ); + } + + late final _CFErrorCopyRecoverySuggestionPtr = + _lookup>( + 'CFErrorCopyRecoverySuggestion'); + late final _CFErrorCopyRecoverySuggestion = _CFErrorCopyRecoverySuggestionPtr + .asFunction(); + late final ffi.Pointer _kCFBooleanTrue = _lookup('kCFBooleanTrue'); @@ -31226,25 +30948,6 @@ class NativeCupertinoHttp { 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, - ); - } - - 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, @@ -33939,50 +33642,6 @@ class NativeCupertinoHttp { late final _open_dprotected_np = _open_dprotected_npPtr .asFunction, int, int, int)>(); - int openat_dprotected_np( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int 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_np = _openat_dprotected_npPtr - .asFunction, int, int, int)>(); - - int openat_authenticated_np( - int arg0, - ffi.Pointer arg1, - int arg2, - int 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_np = _openat_authenticated_npPtr - .asFunction, int, int)>(); - int flock1( int arg0, int arg1, @@ -34852,7 +34511,7 @@ class NativeCupertinoHttp { late final _dispatch_get_global_queuePtr = _lookup< ffi.NativeFunction< dispatch_queue_global_t Function( - ffi.IntPtr, ffi.UintPtr)>>('dispatch_get_global_queue'); + ffi.IntPtr, uintptr_t)>>('dispatch_get_global_queue'); late final _dispatch_get_global_queue = _dispatch_get_global_queuePtr .asFunction(); @@ -35584,8 +35243,8 @@ class NativeCupertinoHttp { 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'); + dispatch_source_t Function(dispatch_source_type_t, uintptr_t, + uintptr_t, 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)>(); @@ -35699,7 +35358,7 @@ class NativeCupertinoHttp { } late final _dispatch_source_get_handlePtr = - _lookup>( + _lookup>( 'dispatch_source_get_handle'); late final _dispatch_source_get_handle = _dispatch_source_get_handlePtr .asFunction(); @@ -35713,7 +35372,7 @@ class NativeCupertinoHttp { } late final _dispatch_source_get_maskPtr = - _lookup>( + _lookup>( 'dispatch_source_get_mask'); late final _dispatch_source_get_mask = _dispatch_source_get_maskPtr .asFunction(); @@ -35727,7 +35386,7 @@ class NativeCupertinoHttp { } late final _dispatch_source_get_dataPtr = - _lookup>( + _lookup>( 'dispatch_source_get_data'); late final _dispatch_source_get_data = _dispatch_source_get_dataPtr .asFunction(); @@ -35743,9 +35402,8 @@ class NativeCupertinoHttp { } late final _dispatch_source_merge_dataPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - dispatch_source_t, ffi.UintPtr)>>('dispatch_source_merge_data'); + ffi.NativeFunction>( + 'dispatch_source_merge_data'); late final _dispatch_source_merge_data = _dispatch_source_merge_dataPtr .asFunction(); @@ -47224,21 +46882,21 @@ class NativeCupertinoHttp { late final _class_NSURLSession1 = _getClass1("NSURLSession"); late final _sel_sharedSession1 = _registerName1("sharedSession"); - ffi.Pointer _objc_msgSend_387( + ffi.Pointer _objc_msgSend_380( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_387( + return __objc_msgSend_380( obj, sel, ); } - late final __objc_msgSend_387Ptr = _lookup< + late final __objc_msgSend_380Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< + late final __objc_msgSend_380 = __objc_msgSend_380Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -47246,21 +46904,21 @@ class NativeCupertinoHttp { _getClass1("NSURLSessionConfiguration"); late final _sel_defaultSessionConfiguration1 = _registerName1("defaultSessionConfiguration"); - ffi.Pointer _objc_msgSend_388( + ffi.Pointer _objc_msgSend_381( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_388( + return __objc_msgSend_381( obj, sel, ); } - late final __objc_msgSend_388Ptr = _lookup< + late final __objc_msgSend_381Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< + late final __objc_msgSend_381 = __objc_msgSend_381Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -47268,23 +46926,23 @@ class NativeCupertinoHttp { _registerName1("ephemeralSessionConfiguration"); late final _sel_backgroundSessionConfigurationWithIdentifier_1 = _registerName1("backgroundSessionConfigurationWithIdentifier:"); - ffi.Pointer _objc_msgSend_389( + ffi.Pointer _objc_msgSend_382( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_389( + return __objc_msgSend_382( obj, sel, identifier, ); } - late final __objc_msgSend_389Ptr = _lookup< + late final __objc_msgSend_382Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< + late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -47320,42 +46978,42 @@ class NativeCupertinoHttp { _registerName1("setConnectionProxyDictionary:"); late final _sel_TLSMinimumSupportedProtocol1 = _registerName1("TLSMinimumSupportedProtocol"); - int _objc_msgSend_390( + int _objc_msgSend_383( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_390( + return __objc_msgSend_383( obj, sel, ); } - late final __objc_msgSend_390Ptr = _lookup< + late final __objc_msgSend_383Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< + late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocol_1 = _registerName1("setTLSMinimumSupportedProtocol:"); - void _objc_msgSend_391( + void _objc_msgSend_384( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_391( + return __objc_msgSend_384( obj, sel, value, ); } - late final __objc_msgSend_391Ptr = _lookup< + late final __objc_msgSend_384Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< + late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocol1 = @@ -47364,42 +47022,42 @@ class NativeCupertinoHttp { _registerName1("setTLSMaximumSupportedProtocol:"); late final _sel_TLSMinimumSupportedProtocolVersion1 = _registerName1("TLSMinimumSupportedProtocolVersion"); - int _objc_msgSend_392( + int _objc_msgSend_385( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_392( + return __objc_msgSend_385( obj, sel, ); } - late final __objc_msgSend_392Ptr = _lookup< + late final __objc_msgSend_385Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< + late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocolVersion_1 = _registerName1("setTLSMinimumSupportedProtocolVersion:"); - void _objc_msgSend_393( + void _objc_msgSend_386( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_393( + return __objc_msgSend_386( obj, sel, value, ); } - late final __objc_msgSend_393Ptr = _lookup< + late final __objc_msgSend_386Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< + late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocolVersion1 = @@ -47425,23 +47083,23 @@ class NativeCupertinoHttp { late final _sel_HTTPCookieStorage1 = _registerName1("HTTPCookieStorage"); late final _sel_setHTTPCookieStorage_1 = _registerName1("setHTTPCookieStorage:"); - void _objc_msgSend_394( + void _objc_msgSend_387( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_394( + return __objc_msgSend_387( obj, sel, value, ); } - late final __objc_msgSend_394Ptr = _lookup< + late final __objc_msgSend_387Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< + late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -47449,84 +47107,84 @@ class NativeCupertinoHttp { _getClass1("NSURLCredentialStorage"); late final _sel_URLCredentialStorage1 = _registerName1("URLCredentialStorage"); - ffi.Pointer _objc_msgSend_395( + ffi.Pointer _objc_msgSend_388( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_395( + return __objc_msgSend_388( obj, sel, ); } - late final __objc_msgSend_395Ptr = _lookup< + late final __objc_msgSend_388Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< + late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setURLCredentialStorage_1 = _registerName1("setURLCredentialStorage:"); - void _objc_msgSend_396( + void _objc_msgSend_389( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_396( + return __objc_msgSend_389( obj, sel, value, ); } - late final __objc_msgSend_396Ptr = _lookup< + late final __objc_msgSend_389Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< + late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLCache1 = _getClass1("NSURLCache"); late final _sel_URLCache1 = _registerName1("URLCache"); - ffi.Pointer _objc_msgSend_397( + ffi.Pointer _objc_msgSend_390( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_397( + return __objc_msgSend_390( obj, sel, ); } - late final __objc_msgSend_397Ptr = _lookup< + late final __objc_msgSend_390Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< + late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setURLCache_1 = _registerName1("setURLCache:"); - void _objc_msgSend_398( + void _objc_msgSend_391( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_398( + return __objc_msgSend_391( obj, sel, value, ); } - late final __objc_msgSend_398Ptr = _lookup< + late final __objc_msgSend_391Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_398 = __objc_msgSend_398Ptr.asFunction< + late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -47536,100 +47194,100 @@ class NativeCupertinoHttp { _registerName1("setShouldUseExtendedBackgroundIdleMode:"); late final _sel_protocolClasses1 = _registerName1("protocolClasses"); late final _sel_setProtocolClasses_1 = _registerName1("setProtocolClasses:"); - void _objc_msgSend_399( + void _objc_msgSend_392( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_399( + return __objc_msgSend_392( obj, sel, value, ); } - late final __objc_msgSend_399Ptr = _lookup< + late final __objc_msgSend_392Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_399 = __objc_msgSend_399Ptr.asFunction< + late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_multipathServiceType1 = _registerName1("multipathServiceType"); - int _objc_msgSend_400( + int _objc_msgSend_393( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_400( + return __objc_msgSend_393( obj, sel, ); } - late final __objc_msgSend_400Ptr = _lookup< + late final __objc_msgSend_393Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_400 = __objc_msgSend_400Ptr.asFunction< + late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setMultipathServiceType_1 = _registerName1("setMultipathServiceType:"); - void _objc_msgSend_401( + void _objc_msgSend_394( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_401( + return __objc_msgSend_394( obj, sel, value, ); } - late final __objc_msgSend_401Ptr = _lookup< + late final __objc_msgSend_394Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_401 = __objc_msgSend_401Ptr.asFunction< + late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_backgroundSessionConfiguration_1 = _registerName1("backgroundSessionConfiguration:"); late final _sel_sessionWithConfiguration_1 = _registerName1("sessionWithConfiguration:"); - ffi.Pointer _objc_msgSend_402( + ffi.Pointer _objc_msgSend_395( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ) { - return __objc_msgSend_402( + return __objc_msgSend_395( obj, sel, configuration, ); } - late final __objc_msgSend_402Ptr = _lookup< + late final __objc_msgSend_395Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< + late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sessionWithConfiguration_delegate_delegateQueue_1 = _registerName1("sessionWithConfiguration:delegate:delegateQueue:"); - ffi.Pointer _objc_msgSend_403( + ffi.Pointer _objc_msgSend_396( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ffi.Pointer delegate, ffi.Pointer queue, ) { - return __objc_msgSend_403( + return __objc_msgSend_396( obj, sel, configuration, @@ -47638,7 +47296,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_403Ptr = _lookup< + late final __objc_msgSend_396Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -47646,7 +47304,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_403 = __objc_msgSend_403Ptr.asFunction< + late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -47655,6 +47313,7 @@ class NativeCupertinoHttp { ffi.Pointer)>(); late final _sel_delegateQueue1 = _registerName1("delegateQueue"); + late final _sel_delegate1 = _registerName1("delegate"); late final _sel_configuration1 = _registerName1("configuration"); late final _sel_sessionDescription1 = _registerName1("sessionDescription"); late final _sel_setSessionDescription_1 = @@ -47668,89 +47327,89 @@ class NativeCupertinoHttp { _registerName1("flushWithCompletionHandler:"); late final _sel_getTasksWithCompletionHandler_1 = _registerName1("getTasksWithCompletionHandler:"); - void _objc_msgSend_404( + void _objc_msgSend_397( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_404( + return __objc_msgSend_397( obj, sel, completionHandler, ); } - late final __objc_msgSend_404Ptr = _lookup< + late final __objc_msgSend_397Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< + late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_getAllTasksWithCompletionHandler_1 = _registerName1("getAllTasksWithCompletionHandler:"); - void _objc_msgSend_405( + void _objc_msgSend_398( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_405( + return __objc_msgSend_398( obj, sel, completionHandler, ); } - late final __objc_msgSend_405Ptr = _lookup< + late final __objc_msgSend_398Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_405 = __objc_msgSend_405Ptr.asFunction< + late final __objc_msgSend_398 = __objc_msgSend_398Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _class_NSURLSessionDataTask1 = _getClass1("NSURLSessionDataTask"); late final _sel_dataTaskWithRequest_1 = _registerName1("dataTaskWithRequest:"); - ffi.Pointer _objc_msgSend_406( + ffi.Pointer _objc_msgSend_399( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_406( + return __objc_msgSend_399( obj, sel, request, ); } - late final __objc_msgSend_406Ptr = _lookup< + late final __objc_msgSend_399Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_406 = __objc_msgSend_406Ptr.asFunction< + late final __objc_msgSend_399 = __objc_msgSend_399Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithURL_1 = _registerName1("dataTaskWithURL:"); - ffi.Pointer _objc_msgSend_407( + ffi.Pointer _objc_msgSend_400( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_407( + return __objc_msgSend_400( obj, sel, url, ); } - late final __objc_msgSend_407Ptr = _lookup< + late final __objc_msgSend_400Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< + late final __objc_msgSend_400 = __objc_msgSend_400Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -47758,13 +47417,13 @@ class NativeCupertinoHttp { _getClass1("NSURLSessionUploadTask"); late final _sel_uploadTaskWithRequest_fromFile_1 = _registerName1("uploadTaskWithRequest:fromFile:"); - ffi.Pointer _objc_msgSend_408( + ffi.Pointer _objc_msgSend_401( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ) { - return __objc_msgSend_408( + return __objc_msgSend_401( obj, sel, request, @@ -47772,14 +47431,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_408Ptr = _lookup< + late final __objc_msgSend_401Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_408 = __objc_msgSend_408Ptr.asFunction< + late final __objc_msgSend_401 = __objc_msgSend_401Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -47788,13 +47447,13 @@ class NativeCupertinoHttp { late final _sel_uploadTaskWithRequest_fromData_1 = _registerName1("uploadTaskWithRequest:fromData:"); - ffi.Pointer _objc_msgSend_409( + ffi.Pointer _objc_msgSend_402( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ) { - return __objc_msgSend_409( + return __objc_msgSend_402( obj, sel, request, @@ -47802,14 +47461,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_409Ptr = _lookup< + late final __objc_msgSend_402Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< + late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -47818,23 +47477,23 @@ class NativeCupertinoHttp { late final _sel_uploadTaskWithStreamedRequest_1 = _registerName1("uploadTaskWithStreamedRequest:"); - ffi.Pointer _objc_msgSend_410( + ffi.Pointer _objc_msgSend_403( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_410( + return __objc_msgSend_403( obj, sel, request, ); } - late final __objc_msgSend_410Ptr = _lookup< + late final __objc_msgSend_403Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< + late final __objc_msgSend_403 = __objc_msgSend_403Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -47842,89 +47501,89 @@ class NativeCupertinoHttp { _getClass1("NSURLSessionDownloadTask"); late final _sel_cancelByProducingResumeData_1 = _registerName1("cancelByProducingResumeData:"); - void _objc_msgSend_411( + void _objc_msgSend_404( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_411( + return __objc_msgSend_404( obj, sel, completionHandler, ); } - late final __objc_msgSend_411Ptr = _lookup< + late final __objc_msgSend_404Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< + late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_downloadTaskWithRequest_1 = _registerName1("downloadTaskWithRequest:"); - ffi.Pointer _objc_msgSend_412( + ffi.Pointer _objc_msgSend_405( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_412( + return __objc_msgSend_405( obj, sel, request, ); } - late final __objc_msgSend_412Ptr = _lookup< + late final __objc_msgSend_405Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< + late final __objc_msgSend_405 = __objc_msgSend_405Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithURL_1 = _registerName1("downloadTaskWithURL:"); - ffi.Pointer _objc_msgSend_413( + ffi.Pointer _objc_msgSend_406( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_413( + return __objc_msgSend_406( obj, sel, url, ); } - late final __objc_msgSend_413Ptr = _lookup< + late final __objc_msgSend_406Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< + late final __objc_msgSend_406 = __objc_msgSend_406Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithResumeData_1 = _registerName1("downloadTaskWithResumeData:"); - ffi.Pointer _objc_msgSend_414( + ffi.Pointer _objc_msgSend_407( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ) { - return __objc_msgSend_414( + return __objc_msgSend_407( obj, sel, resumeData, ); } - late final __objc_msgSend_414Ptr = _lookup< + late final __objc_msgSend_407Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< + late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -47933,7 +47592,7 @@ class NativeCupertinoHttp { late final _sel_readDataOfMinLength_maxLength_timeout_completionHandler_1 = _registerName1( "readDataOfMinLength:maxLength:timeout:completionHandler:"); - void _objc_msgSend_415( + void _objc_msgSend_408( ffi.Pointer obj, ffi.Pointer sel, int minBytes, @@ -47941,7 +47600,7 @@ class NativeCupertinoHttp { double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_415( + return __objc_msgSend_408( obj, sel, minBytes, @@ -47951,7 +47610,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_415Ptr = _lookup< + late final __objc_msgSend_408Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -47960,20 +47619,20 @@ class NativeCupertinoHttp { NSUInteger, NSTimeInterval, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< + late final __objc_msgSend_408 = __objc_msgSend_408Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int, double, ffi.Pointer<_ObjCBlock>)>(); late final _sel_writeData_timeout_completionHandler_1 = _registerName1("writeData:timeout:completionHandler:"); - void _objc_msgSend_416( + void _objc_msgSend_409( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_416( + return __objc_msgSend_409( obj, sel, data, @@ -47982,7 +47641,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_416Ptr = _lookup< + late final __objc_msgSend_409Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -47990,7 +47649,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSTimeInterval, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< + late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, double, ffi.Pointer<_ObjCBlock>)>(); @@ -48003,13 +47662,13 @@ class NativeCupertinoHttp { _registerName1("stopSecureConnection"); late final _sel_streamTaskWithHostName_port_1 = _registerName1("streamTaskWithHostName:port:"); - ffi.Pointer _objc_msgSend_417( + ffi.Pointer _objc_msgSend_410( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer hostname, int port, ) { - return __objc_msgSend_417( + return __objc_msgSend_410( obj, sel, hostname, @@ -48017,37 +47676,37 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_417Ptr = _lookup< + late final __objc_msgSend_410Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_417 = __objc_msgSend_417Ptr.asFunction< + late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSNetService1 = _getClass1("NSNetService"); late final _sel_streamTaskWithNetService_1 = _registerName1("streamTaskWithNetService:"); - ffi.Pointer _objc_msgSend_418( + ffi.Pointer _objc_msgSend_411( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer service, ) { - return __objc_msgSend_418( + return __objc_msgSend_411( obj, sel, service, ); } - late final __objc_msgSend_418Ptr = _lookup< + late final __objc_msgSend_411Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< + late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -48056,32 +47715,32 @@ class NativeCupertinoHttp { late final _class_NSURLSessionWebSocketMessage1 = _getClass1("NSURLSessionWebSocketMessage"); late final _sel_type1 = _registerName1("type"); - int _objc_msgSend_419( + int _objc_msgSend_412( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_419( + return __objc_msgSend_412( obj, sel, ); } - late final __objc_msgSend_419Ptr = _lookup< + late final __objc_msgSend_412Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< + late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_sendMessage_completionHandler_1 = _registerName1("sendMessage:completionHandler:"); - void _objc_msgSend_420( + void _objc_msgSend_413( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer message, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_420( + return __objc_msgSend_413( obj, sel, message, @@ -48089,70 +47748,70 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_420Ptr = _lookup< + late final __objc_msgSend_413Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< + late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_receiveMessageWithCompletionHandler_1 = _registerName1("receiveMessageWithCompletionHandler:"); - void _objc_msgSend_421( + void _objc_msgSend_414( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_421( + return __objc_msgSend_414( obj, sel, completionHandler, ); } - late final __objc_msgSend_421Ptr = _lookup< + late final __objc_msgSend_414Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< + late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_sendPingWithPongReceiveHandler_1 = _registerName1("sendPingWithPongReceiveHandler:"); - void _objc_msgSend_422( + void _objc_msgSend_415( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> pongReceiveHandler, ) { - return __objc_msgSend_422( + return __objc_msgSend_415( obj, sel, pongReceiveHandler, ); } - late final __objc_msgSend_422Ptr = _lookup< + late final __objc_msgSend_415Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_422 = __objc_msgSend_422Ptr.asFunction< + late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_cancelWithCloseCode_reason_1 = _registerName1("cancelWithCloseCode:reason:"); - void _objc_msgSend_423( + void _objc_msgSend_416( ffi.Pointer obj, ffi.Pointer sel, int closeCode, ffi.Pointer reason, ) { - return __objc_msgSend_423( + return __objc_msgSend_416( obj, sel, closeCode, @@ -48160,11 +47819,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_423Ptr = _lookup< + late final __objc_msgSend_416Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< + late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -48172,55 +47831,55 @@ class NativeCupertinoHttp { late final _sel_setMaximumMessageSize_1 = _registerName1("setMaximumMessageSize:"); late final _sel_closeCode1 = _registerName1("closeCode"); - int _objc_msgSend_424( + int _objc_msgSend_417( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_424( + return __objc_msgSend_417( obj, sel, ); } - late final __objc_msgSend_424Ptr = _lookup< + late final __objc_msgSend_417Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< + late final __objc_msgSend_417 = __objc_msgSend_417Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_closeReason1 = _registerName1("closeReason"); late final _sel_webSocketTaskWithURL_1 = _registerName1("webSocketTaskWithURL:"); - ffi.Pointer _objc_msgSend_425( + ffi.Pointer _objc_msgSend_418( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_425( + return __objc_msgSend_418( obj, sel, url, ); } - late final __objc_msgSend_425Ptr = _lookup< + late final __objc_msgSend_418Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_425 = __objc_msgSend_425Ptr.asFunction< + late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_webSocketTaskWithURL_protocols_1 = _registerName1("webSocketTaskWithURL:protocols:"); - ffi.Pointer _objc_msgSend_426( + ffi.Pointer _objc_msgSend_419( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer protocols, ) { - return __objc_msgSend_426( + return __objc_msgSend_419( obj, sel, url, @@ -48228,14 +47887,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_426Ptr = _lookup< + late final __objc_msgSend_419Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_426 = __objc_msgSend_426Ptr.asFunction< + late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48244,35 +47903,35 @@ class NativeCupertinoHttp { late final _sel_webSocketTaskWithRequest_1 = _registerName1("webSocketTaskWithRequest:"); - ffi.Pointer _objc_msgSend_427( + ffi.Pointer _objc_msgSend_420( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_427( + return __objc_msgSend_420( obj, sel, request, ); } - late final __objc_msgSend_427Ptr = _lookup< + late final __objc_msgSend_420Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< + late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithRequest_completionHandler_1 = _registerName1("dataTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_428( + ffi.Pointer _objc_msgSend_421( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_428( + return __objc_msgSend_421( obj, sel, request, @@ -48280,14 +47939,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_428Ptr = _lookup< + late final __objc_msgSend_421Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_428 = __objc_msgSend_428Ptr.asFunction< + late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48296,13 +47955,13 @@ class NativeCupertinoHttp { late final _sel_dataTaskWithURL_completionHandler_1 = _registerName1("dataTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_429( + ffi.Pointer _objc_msgSend_422( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_429( + return __objc_msgSend_422( obj, sel, url, @@ -48310,14 +47969,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_429Ptr = _lookup< + late final __objc_msgSend_422Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< + late final __objc_msgSend_422 = __objc_msgSend_422Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48326,14 +47985,14 @@ class NativeCupertinoHttp { late final _sel_uploadTaskWithRequest_fromFile_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromFile:completionHandler:"); - ffi.Pointer _objc_msgSend_430( + ffi.Pointer _objc_msgSend_423( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_430( + return __objc_msgSend_423( obj, sel, request, @@ -48342,7 +48001,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_430Ptr = _lookup< + late final __objc_msgSend_423Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -48350,7 +48009,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_430 = __objc_msgSend_430Ptr.asFunction< + late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48360,14 +48019,14 @@ class NativeCupertinoHttp { late final _sel_uploadTaskWithRequest_fromData_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromData:completionHandler:"); - ffi.Pointer _objc_msgSend_431( + ffi.Pointer _objc_msgSend_424( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_431( + return __objc_msgSend_424( obj, sel, request, @@ -48376,7 +48035,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_431Ptr = _lookup< + late final __objc_msgSend_424Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -48384,7 +48043,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_431 = __objc_msgSend_431Ptr.asFunction< + late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48394,13 +48053,13 @@ class NativeCupertinoHttp { late final _sel_downloadTaskWithRequest_completionHandler_1 = _registerName1("downloadTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_432( + ffi.Pointer _objc_msgSend_425( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_432( + return __objc_msgSend_425( obj, sel, request, @@ -48408,14 +48067,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_432Ptr = _lookup< + late final __objc_msgSend_425Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< + late final __objc_msgSend_425 = __objc_msgSend_425Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48424,13 +48083,13 @@ class NativeCupertinoHttp { late final _sel_downloadTaskWithURL_completionHandler_1 = _registerName1("downloadTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_433( + ffi.Pointer _objc_msgSend_426( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_433( + return __objc_msgSend_426( obj, sel, url, @@ -48438,14 +48097,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_433Ptr = _lookup< + late final __objc_msgSend_426Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_433 = __objc_msgSend_433Ptr.asFunction< + late final __objc_msgSend_426 = __objc_msgSend_426Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48454,13 +48113,13 @@ class NativeCupertinoHttp { late final _sel_downloadTaskWithResumeData_completionHandler_1 = _registerName1("downloadTaskWithResumeData:completionHandler:"); - ffi.Pointer _objc_msgSend_434( + ffi.Pointer _objc_msgSend_427( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_434( + return __objc_msgSend_427( obj, sel, resumeData, @@ -48468,14 +48127,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_434Ptr = _lookup< + late final __objc_msgSend_427Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< + late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48540,21 +48199,21 @@ class NativeCupertinoHttp { late final _sel_isProxyConnection1 = _registerName1("isProxyConnection"); late final _sel_isReusedConnection1 = _registerName1("isReusedConnection"); late final _sel_resourceFetchType1 = _registerName1("resourceFetchType"); - int _objc_msgSend_435( + int _objc_msgSend_428( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_435( + return __objc_msgSend_428( obj, sel, ); } - late final __objc_msgSend_435Ptr = _lookup< + late final __objc_msgSend_428Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< + late final __objc_msgSend_428 = __objc_msgSend_428Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_countOfRequestHeaderBytesSent1 = @@ -48583,21 +48242,21 @@ class NativeCupertinoHttp { late final _sel_isMultipath1 = _registerName1("isMultipath"); late final _sel_domainResolutionProtocol1 = _registerName1("domainResolutionProtocol"); - int _objc_msgSend_436( + int _objc_msgSend_429( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_436( + return __objc_msgSend_429( obj, sel, ); } - late final __objc_msgSend_436Ptr = _lookup< + late final __objc_msgSend_429Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< + late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLSessionTaskMetrics1 = @@ -48605,21 +48264,21 @@ class NativeCupertinoHttp { late final _sel_transactionMetrics1 = _registerName1("transactionMetrics"); late final _class_NSDateInterval1 = _getClass1("NSDateInterval"); late final _sel_taskInterval1 = _registerName1("taskInterval"); - ffi.Pointer _objc_msgSend_437( + ffi.Pointer _objc_msgSend_430( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_437( + return __objc_msgSend_430( obj, sel, ); } - late final __objc_msgSend_437Ptr = _lookup< + late final __objc_msgSend_430Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< + late final __objc_msgSend_430 = __objc_msgSend_430Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -48628,14 +48287,14 @@ class NativeCupertinoHttp { late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1 = _registerName1( "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"); - void _objc_msgSend_438( + void _objc_msgSend_431( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_438( + return __objc_msgSend_431( obj, sel, typeIdentifier, @@ -48644,7 +48303,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_438Ptr = _lookup< + late final __objc_msgSend_431Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -48652,14 +48311,14 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< + late final __objc_msgSend_431 = __objc_msgSend_431Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1 = _registerName1( "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:"); - void _objc_msgSend_439( + void _objc_msgSend_432( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, @@ -48667,7 +48326,7 @@ class NativeCupertinoHttp { int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_439( + return __objc_msgSend_432( obj, sel, typeIdentifier, @@ -48677,7 +48336,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_439Ptr = _lookup< + late final __objc_msgSend_432Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -48686,7 +48345,7 @@ class NativeCupertinoHttp { ffi.Int32, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< + late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); @@ -48694,23 +48353,23 @@ class NativeCupertinoHttp { _registerName1("registeredTypeIdentifiers"); late final _sel_registeredTypeIdentifiersWithFileOptions_1 = _registerName1("registeredTypeIdentifiersWithFileOptions:"); - ffi.Pointer _objc_msgSend_440( + ffi.Pointer _objc_msgSend_433( ffi.Pointer obj, ffi.Pointer sel, int fileOptions, ) { - return __objc_msgSend_440( + return __objc_msgSend_433( obj, sel, fileOptions, ); } - late final __objc_msgSend_440Ptr = _lookup< + late final __objc_msgSend_433Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< + late final __objc_msgSend_433 = __objc_msgSend_433Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -48719,13 +48378,13 @@ class NativeCupertinoHttp { late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1 = _registerName1( "hasRepresentationConformingToTypeIdentifier:fileOptions:"); - bool _objc_msgSend_441( + bool _objc_msgSend_434( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int fileOptions, ) { - return __objc_msgSend_441( + return __objc_msgSend_434( obj, sel, typeIdentifier, @@ -48733,24 +48392,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_441Ptr = _lookup< + late final __objc_msgSend_434Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< + late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadDataRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_442( + ffi.Pointer _objc_msgSend_435( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_442( + return __objc_msgSend_435( obj, sel, typeIdentifier, @@ -48758,14 +48417,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_442Ptr = _lookup< + late final __objc_msgSend_435Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< + late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48775,13 +48434,13 @@ class NativeCupertinoHttp { late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_443( + ffi.Pointer _objc_msgSend_436( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_443( + return __objc_msgSend_436( obj, sel, typeIdentifier, @@ -48789,14 +48448,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_443Ptr = _lookup< + late final __objc_msgSend_436Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< + late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48806,13 +48465,13 @@ class NativeCupertinoHttp { late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_444( + ffi.Pointer _objc_msgSend_437( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_444( + return __objc_msgSend_437( obj, sel, typeIdentifier, @@ -48820,14 +48479,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_444Ptr = _lookup< + late final __objc_msgSend_437Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< + late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48839,13 +48498,13 @@ class NativeCupertinoHttp { late final _sel_initWithObject_1 = _registerName1("initWithObject:"); late final _sel_registerObject_visibility_1 = _registerName1("registerObject:visibility:"); - void _objc_msgSend_445( + void _objc_msgSend_438( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, int visibility, ) { - return __objc_msgSend_445( + return __objc_msgSend_438( obj, sel, object, @@ -48853,24 +48512,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_445Ptr = _lookup< + late final __objc_msgSend_438Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< + late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_registerObjectOfClass_visibility_loadHandler_1 = _registerName1("registerObjectOfClass:visibility:loadHandler:"); - void _objc_msgSend_446( + void _objc_msgSend_439( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_446( + return __objc_msgSend_439( obj, sel, aClass, @@ -48879,7 +48538,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_446Ptr = _lookup< + late final __objc_msgSend_439Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -48887,7 +48546,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< + late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -48895,13 +48554,13 @@ class NativeCupertinoHttp { _registerName1("canLoadObjectOfClass:"); late final _sel_loadObjectOfClass_completionHandler_1 = _registerName1("loadObjectOfClass:completionHandler:"); - ffi.Pointer _objc_msgSend_447( + ffi.Pointer _objc_msgSend_440( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_447( + return __objc_msgSend_440( obj, sel, aClass, @@ -48909,14 +48568,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_447Ptr = _lookup< + late final __objc_msgSend_440Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< + late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48925,13 +48584,13 @@ class NativeCupertinoHttp { late final _sel_initWithItem_typeIdentifier_1 = _registerName1("initWithItem:typeIdentifier:"); - instancetype _objc_msgSend_448( + instancetype _objc_msgSend_441( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer item, ffi.Pointer typeIdentifier, ) { - return __objc_msgSend_448( + return __objc_msgSend_441( obj, sel, item, @@ -48939,26 +48598,26 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_448Ptr = _lookup< + late final __objc_msgSend_441Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< + late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_registerItemForTypeIdentifier_loadHandler_1 = _registerName1("registerItemForTypeIdentifier:loadHandler:"); - void _objc_msgSend_449( + void _objc_msgSend_442( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, NSItemProviderLoadHandler loadHandler, ) { - return __objc_msgSend_449( + return __objc_msgSend_442( obj, sel, typeIdentifier, @@ -48966,27 +48625,27 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_449Ptr = _lookup< + late final __objc_msgSend_442Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, NSItemProviderLoadHandler)>>('objc_msgSend'); - late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< + late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSItemProviderLoadHandler)>(); late final _sel_loadItemForTypeIdentifier_options_completionHandler_1 = _registerName1("loadItemForTypeIdentifier:options:completionHandler:"); - void _objc_msgSend_450( + void _objc_msgSend_443( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer options, NSItemProviderCompletionHandler completionHandler, ) { - return __objc_msgSend_450( + return __objc_msgSend_443( obj, sel, typeIdentifier, @@ -48995,7 +48654,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_450Ptr = _lookup< + late final __objc_msgSend_443Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -49003,7 +48662,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, NSItemProviderCompletionHandler)>>('objc_msgSend'); - late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< + late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -49012,55 +48671,55 @@ class NativeCupertinoHttp { NSItemProviderCompletionHandler)>(); late final _sel_previewImageHandler1 = _registerName1("previewImageHandler"); - NSItemProviderLoadHandler _objc_msgSend_451( + NSItemProviderLoadHandler _objc_msgSend_444( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_451( + return __objc_msgSend_444( obj, sel, ); } - late final __objc_msgSend_451Ptr = _lookup< + late final __objc_msgSend_444Ptr = _lookup< ffi.NativeFunction< NSItemProviderLoadHandler Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< + late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< NSItemProviderLoadHandler Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setPreviewImageHandler_1 = _registerName1("setPreviewImageHandler:"); - void _objc_msgSend_452( + void _objc_msgSend_445( ffi.Pointer obj, ffi.Pointer sel, NSItemProviderLoadHandler value, ) { - return __objc_msgSend_452( + return __objc_msgSend_445( obj, sel, value, ); } - late final __objc_msgSend_452Ptr = _lookup< + late final __objc_msgSend_445Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSItemProviderLoadHandler)>>('objc_msgSend'); - late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< + late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSItemProviderLoadHandler)>(); late final _sel_loadPreviewImageWithOptions_completionHandler_1 = _registerName1("loadPreviewImageWithOptions:completionHandler:"); - void _objc_msgSend_453( + void _objc_msgSend_446( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer options, NSItemProviderCompletionHandler completionHandler, ) { - return __objc_msgSend_453( + return __objc_msgSend_446( obj, sel, options, @@ -49068,14 +48727,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_453Ptr = _lookup< + late final __objc_msgSend_446Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, NSItemProviderCompletionHandler)>>('objc_msgSend'); - late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< + late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSItemProviderCompletionHandler)>(); @@ -49362,13 +49021,13 @@ class NativeCupertinoHttp { late final _class_NSMutableString1 = _getClass1("NSMutableString"); late final _sel_replaceCharactersInRange_withString_1 = _registerName1("replaceCharactersInRange:withString:"); - void _objc_msgSend_454( + void _objc_msgSend_447( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ffi.Pointer aString, ) { - return __objc_msgSend_454( + return __objc_msgSend_447( obj, sel, range, @@ -49376,23 +49035,23 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_454Ptr = _lookup< + late final __objc_msgSend_447Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< + late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Pointer)>(); late final _sel_insertString_atIndex_1 = _registerName1("insertString:atIndex:"); - void _objc_msgSend_455( + void _objc_msgSend_448( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, int loc, ) { - return __objc_msgSend_455( + return __objc_msgSend_448( obj, sel, aString, @@ -49400,11 +49059,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_455Ptr = _lookup< + late final __objc_msgSend_448Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< + late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -49415,7 +49074,7 @@ class NativeCupertinoHttp { late final _sel_setString_1 = _registerName1("setString:"); late final _sel_replaceOccurrencesOfString_withString_options_range_1 = _registerName1("replaceOccurrencesOfString:withString:options:range:"); - int _objc_msgSend_456( + int _objc_msgSend_449( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, @@ -49423,7 +49082,7 @@ class NativeCupertinoHttp { int options, NSRange searchRange, ) { - return __objc_msgSend_456( + return __objc_msgSend_449( obj, sel, target, @@ -49433,7 +49092,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_456Ptr = _lookup< + late final __objc_msgSend_449Ptr = _lookup< ffi.NativeFunction< NSUInteger Function( ffi.Pointer, @@ -49442,13 +49101,13 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< + late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int, NSRange)>(); late final _sel_applyTransform_reverse_range_updatedRange_1 = _registerName1("applyTransform:reverse:range:updatedRange:"); - bool _objc_msgSend_457( + bool _objc_msgSend_450( ffi.Pointer obj, ffi.Pointer sel, NSStringTransform transform, @@ -49456,7 +49115,7 @@ class NativeCupertinoHttp { NSRange range, NSRangePointer resultingRange, ) { - return __objc_msgSend_457( + return __objc_msgSend_450( obj, sel, transform, @@ -49466,7 +49125,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_457Ptr = _lookup< + late final __objc_msgSend_450Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -49475,27 +49134,27 @@ class NativeCupertinoHttp { ffi.Bool, NSRange, NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< + late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, NSStringTransform, bool, NSRange, NSRangePointer)>(); - ffi.Pointer _objc_msgSend_458( + ffi.Pointer _objc_msgSend_451( ffi.Pointer obj, ffi.Pointer sel, int capacity, ) { - return __objc_msgSend_458( + return __objc_msgSend_451( obj, sel, capacity, ); } - late final __objc_msgSend_458Ptr = _lookup< + late final __objc_msgSend_451Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< + late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -49531,86 +49190,86 @@ class NativeCupertinoHttp { _registerName1("removeCharactersInString:"); late final _sel_formUnionWithCharacterSet_1 = _registerName1("formUnionWithCharacterSet:"); - void _objc_msgSend_459( + void _objc_msgSend_452( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherSet, ) { - return __objc_msgSend_459( + return __objc_msgSend_452( obj, sel, otherSet, ); } - late final __objc_msgSend_459Ptr = _lookup< + late final __objc_msgSend_452Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< + late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_formIntersectionWithCharacterSet_1 = _registerName1("formIntersectionWithCharacterSet:"); late final _sel_invert1 = _registerName1("invert"); - ffi.Pointer _objc_msgSend_460( + ffi.Pointer _objc_msgSend_453( ffi.Pointer obj, ffi.Pointer sel, NSRange aRange, ) { - return __objc_msgSend_460( + return __objc_msgSend_453( obj, sel, aRange, ); } - late final __objc_msgSend_460Ptr = _lookup< + late final __objc_msgSend_453Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< + late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, NSRange)>(); - ffi.Pointer _objc_msgSend_461( + ffi.Pointer _objc_msgSend_454( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, ) { - return __objc_msgSend_461( + return __objc_msgSend_454( obj, sel, aString, ); } - late final __objc_msgSend_461Ptr = _lookup< + late final __objc_msgSend_454Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< + late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_462( + ffi.Pointer _objc_msgSend_455( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_462( + return __objc_msgSend_455( obj, sel, data, ); } - late final __objc_msgSend_462Ptr = _lookup< + late final __objc_msgSend_455Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< + late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -50381,7 +50040,7 @@ class NativeCupertinoHttp { set NSURLFileProtectionNone(NSURLFileProtectionType value) => _NSURLFileProtectionNone.value = value; - /// The file is stored in an encrypted format on disk and cannot be read from or written to while the device is locked or booting. Transient data files with this protection type should be excluded from backups using NSURLIsExcludedFromBackupKey. + /// The file is stored in an encrypted format on disk and cannot be read from or written to while the device is locked or booting. late final ffi.Pointer _NSURLFileProtectionComplete = _lookup('NSURLFileProtectionComplete'); @@ -50391,7 +50050,7 @@ class NativeCupertinoHttp { set NSURLFileProtectionComplete(NSURLFileProtectionType value) => _NSURLFileProtectionComplete.value = value; - /// 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. + /// 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. late final ffi.Pointer _NSURLFileProtectionCompleteUnlessOpen = _lookup('NSURLFileProtectionCompleteUnlessOpen'); @@ -51159,13 +50818,13 @@ class NativeCupertinoHttp { late final _class_NSURLQueryItem1 = _getClass1("NSURLQueryItem"); late final _sel_initWithName_value_1 = _registerName1("initWithName:value:"); - instancetype _objc_msgSend_463( + instancetype _objc_msgSend_456( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer value, ) { - return __objc_msgSend_463( + return __objc_msgSend_456( obj, sel, name, @@ -51173,14 +50832,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_463Ptr = _lookup< + late final __objc_msgSend_456Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< + late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -51195,23 +50854,23 @@ class NativeCupertinoHttp { late final _sel_componentsWithString_1 = _registerName1("componentsWithString:"); late final _sel_URLRelativeToURL_1 = _registerName1("URLRelativeToURL:"); - ffi.Pointer _objc_msgSend_464( + ffi.Pointer _objc_msgSend_457( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer baseURL, ) { - return __objc_msgSend_464( + return __objc_msgSend_457( obj, sel, baseURL, ); } - late final __objc_msgSend_464Ptr = _lookup< + late final __objc_msgSend_457Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< + late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -51243,8 +50902,6 @@ class NativeCupertinoHttp { _registerName1("percentEncodedFragment"); late final _sel_setPercentEncodedFragment_1 = _registerName1("setPercentEncodedFragment:"); - late final _sel_encodedHost1 = _registerName1("encodedHost"); - late final _sel_setEncodedHost_1 = _registerName1("setEncodedHost:"); late final _sel_rangeOfScheme1 = _registerName1("rangeOfScheme"); late final _sel_rangeOfUser1 = _registerName1("rangeOfUser"); late final _sel_rangeOfPassword1 = _registerName1("rangeOfPassword"); @@ -51263,7 +50920,7 @@ class NativeCupertinoHttp { late final _class_NSHTTPURLResponse1 = _getClass1("NSHTTPURLResponse"); late final _sel_initWithURL_statusCode_HTTPVersion_headerFields_1 = _registerName1("initWithURL:statusCode:HTTPVersion:headerFields:"); - instancetype _objc_msgSend_465( + instancetype _objc_msgSend_458( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -51271,7 +50928,7 @@ class NativeCupertinoHttp { ffi.Pointer HTTPVersion, ffi.Pointer headerFields, ) { - return __objc_msgSend_465( + return __objc_msgSend_458( obj, sel, url, @@ -51281,7 +50938,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_465Ptr = _lookup< + late final __objc_msgSend_458Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -51290,7 +50947,7 @@ class NativeCupertinoHttp { NSInteger, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< + late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -51303,23 +50960,23 @@ class NativeCupertinoHttp { late final _sel_allHeaderFields1 = _registerName1("allHeaderFields"); late final _sel_localizedStringForStatusCode_1 = _registerName1("localizedStringForStatusCode:"); - ffi.Pointer _objc_msgSend_466( + ffi.Pointer _objc_msgSend_459( ffi.Pointer obj, ffi.Pointer sel, int statusCode, ) { - return __objc_msgSend_466( + return __objc_msgSend_459( obj, sel, statusCode, ); } - late final __objc_msgSend_466Ptr = _lookup< + late final __objc_msgSend_459Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< + late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -51454,14 +51111,14 @@ class NativeCupertinoHttp { late final _class_NSException1 = _getClass1("NSException"); late final _sel_exceptionWithName_reason_userInfo_1 = _registerName1("exceptionWithName:reason:userInfo:"); - ffi.Pointer _objc_msgSend_467( + ffi.Pointer _objc_msgSend_460( ffi.Pointer obj, ffi.Pointer sel, NSExceptionName name, ffi.Pointer reason, ffi.Pointer userInfo, ) { - return __objc_msgSend_467( + return __objc_msgSend_460( obj, sel, name, @@ -51470,7 +51127,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_467Ptr = _lookup< + late final __objc_msgSend_460Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -51478,7 +51135,7 @@ class NativeCupertinoHttp { NSExceptionName, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< + late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -51488,14 +51145,14 @@ class NativeCupertinoHttp { late final _sel_initWithName_reason_userInfo_1 = _registerName1("initWithName:reason:userInfo:"); - instancetype _objc_msgSend_468( + instancetype _objc_msgSend_461( ffi.Pointer obj, ffi.Pointer sel, NSExceptionName aName, ffi.Pointer aReason, ffi.Pointer aUserInfo, ) { - return __objc_msgSend_468( + return __objc_msgSend_461( obj, sel, aName, @@ -51504,7 +51161,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_468Ptr = _lookup< + late final __objc_msgSend_461Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -51512,7 +51169,7 @@ class NativeCupertinoHttp { NSExceptionName, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< + late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, NSExceptionName, ffi.Pointer, ffi.Pointer)>(); @@ -51524,14 +51181,14 @@ class NativeCupertinoHttp { late final _sel_raise_format_1 = _registerName1("raise:format:"); late final _sel_raise_format_arguments_1 = _registerName1("raise:format:arguments:"); - void _objc_msgSend_469( + void _objc_msgSend_462( ffi.Pointer obj, ffi.Pointer sel, NSExceptionName name, ffi.Pointer format, va_list argList, ) { - return __objc_msgSend_469( + return __objc_msgSend_462( obj, sel, name, @@ -51540,7 +51197,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_469Ptr = _lookup< + late final __objc_msgSend_462Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -51548,7 +51205,7 @@ class NativeCupertinoHttp { NSExceptionName, ffi.Pointer, va_list)>>('objc_msgSend'); - late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< + late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSExceptionName, ffi.Pointer, va_list)>(); @@ -51589,28 +51246,28 @@ class NativeCupertinoHttp { late final _class_NSAssertionHandler1 = _getClass1("NSAssertionHandler"); late final _sel_currentHandler1 = _registerName1("currentHandler"); - ffi.Pointer _objc_msgSend_470( + ffi.Pointer _objc_msgSend_463( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_470( + return __objc_msgSend_463( obj, sel, ); } - late final __objc_msgSend_470Ptr = _lookup< + late final __objc_msgSend_463Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< + late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_handleFailureInMethod_object_file_lineNumber_description_1 = _registerName1( "handleFailureInMethod:object:file:lineNumber:description:"); - void _objc_msgSend_471( + void _objc_msgSend_464( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer selector, @@ -51619,7 +51276,7 @@ class NativeCupertinoHttp { int line, ffi.Pointer format, ) { - return __objc_msgSend_471( + return __objc_msgSend_464( obj, sel, selector, @@ -51630,7 +51287,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_471Ptr = _lookup< + late final __objc_msgSend_464Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -51640,7 +51297,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< + late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -51652,7 +51309,7 @@ class NativeCupertinoHttp { late final _sel_handleFailureInFunction_file_lineNumber_description_1 = _registerName1("handleFailureInFunction:file:lineNumber:description:"); - void _objc_msgSend_472( + void _objc_msgSend_465( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer functionName, @@ -51660,7 +51317,7 @@ class NativeCupertinoHttp { int line, ffi.Pointer format, ) { - return __objc_msgSend_472( + return __objc_msgSend_465( obj, sel, functionName, @@ -51670,7 +51327,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_472Ptr = _lookup< + late final __objc_msgSend_465Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -51679,7 +51336,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< + late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -51691,23 +51348,23 @@ class NativeCupertinoHttp { late final _class_NSBlockOperation1 = _getClass1("NSBlockOperation"); late final _sel_blockOperationWithBlock_1 = _registerName1("blockOperationWithBlock:"); - instancetype _objc_msgSend_473( + instancetype _objc_msgSend_466( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_473( + return __objc_msgSend_466( obj, sel, block, ); } - late final __objc_msgSend_473Ptr = _lookup< + late final __objc_msgSend_466Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< + late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -51717,14 +51374,14 @@ class NativeCupertinoHttp { _getClass1("NSInvocationOperation"); late final _sel_initWithTarget_selector_object_1 = _registerName1("initWithTarget:selector:object:"); - instancetype _objc_msgSend_474( + instancetype _objc_msgSend_467( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer sel1, ffi.Pointer arg, ) { - return __objc_msgSend_474( + return __objc_msgSend_467( obj, sel, target, @@ -51733,7 +51390,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_474Ptr = _lookup< + late final __objc_msgSend_467Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -51741,7 +51398,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< + late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -51750,42 +51407,42 @@ class NativeCupertinoHttp { ffi.Pointer)>(); late final _sel_initWithInvocation_1 = _registerName1("initWithInvocation:"); - instancetype _objc_msgSend_475( + instancetype _objc_msgSend_468( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer inv, ) { - return __objc_msgSend_475( + return __objc_msgSend_468( obj, sel, inv, ); } - late final __objc_msgSend_475Ptr = _lookup< + late final __objc_msgSend_468Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< + late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_invocation1 = _registerName1("invocation"); - ffi.Pointer _objc_msgSend_476( + ffi.Pointer _objc_msgSend_469( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_476( + return __objc_msgSend_469( obj, sel, ); } - late final __objc_msgSend_476Ptr = _lookup< + late final __objc_msgSend_469Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< + late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -58225,23 +57882,23 @@ class NativeCupertinoHttp { late final _class_CUPHTTPTaskConfiguration1 = _getClass1("CUPHTTPTaskConfiguration"); late final _sel_initWithPort_1 = _registerName1("initWithPort:"); - ffi.Pointer _objc_msgSend_477( + ffi.Pointer _objc_msgSend_470( ffi.Pointer obj, ffi.Pointer sel, int sendPort, ) { - return __objc_msgSend_477( + return __objc_msgSend_470( obj, sel, sendPort, ); } - late final __objc_msgSend_477Ptr = _lookup< + late final __objc_msgSend_470Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Dart_Port)>>('objc_msgSend'); - late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< + late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -58250,13 +57907,13 @@ class NativeCupertinoHttp { _getClass1("CUPHTTPClientDelegate"); late final _sel_registerTask_withConfiguration_1 = _registerName1("registerTask:withConfiguration:"); - void _objc_msgSend_478( + void _objc_msgSend_471( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ffi.Pointer config, ) { - return __objc_msgSend_478( + return __objc_msgSend_471( obj, sel, task, @@ -58264,14 +57921,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_478Ptr = _lookup< + late final __objc_msgSend_471Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< + late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -58279,13 +57936,13 @@ class NativeCupertinoHttp { _getClass1("CUPHTTPForwardedDelegate"); late final _sel_initWithSession_task_1 = _registerName1("initWithSession:task:"); - ffi.Pointer _objc_msgSend_479( + ffi.Pointer _objc_msgSend_472( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, ffi.Pointer task, ) { - return __objc_msgSend_479( + return __objc_msgSend_472( obj, sel, session, @@ -58293,14 +57950,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_479Ptr = _lookup< + late final __objc_msgSend_472Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< + late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -58310,41 +57967,41 @@ class NativeCupertinoHttp { late final _sel_finish1 = _registerName1("finish"); late final _sel_session1 = _registerName1("session"); late final _sel_task1 = _registerName1("task"); - ffi.Pointer _objc_msgSend_480( + ffi.Pointer _objc_msgSend_473( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_480( + return __objc_msgSend_473( obj, sel, ); } - late final __objc_msgSend_480Ptr = _lookup< + late final __objc_msgSend_473Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< + late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _class_NSLock1 = _getClass1("NSLock"); late final _sel_lock1 = _registerName1("lock"); - ffi.Pointer _objc_msgSend_481( + ffi.Pointer _objc_msgSend_474( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_481( + return __objc_msgSend_474( obj, sel, ); } - late final __objc_msgSend_481Ptr = _lookup< + late final __objc_msgSend_474Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< + late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -58352,7 +58009,7 @@ class NativeCupertinoHttp { _getClass1("CUPHTTPForwardedRedirect"); late final _sel_initWithSession_task_response_request_1 = _registerName1("initWithSession:task:response:request:"); - ffi.Pointer _objc_msgSend_482( + ffi.Pointer _objc_msgSend_475( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, @@ -58360,7 +58017,7 @@ class NativeCupertinoHttp { ffi.Pointer response, ffi.Pointer request, ) { - return __objc_msgSend_482( + return __objc_msgSend_475( obj, sel, session, @@ -58370,7 +58027,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_482Ptr = _lookup< + late final __objc_msgSend_475Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -58379,7 +58036,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< + late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -58389,41 +58046,41 @@ class NativeCupertinoHttp { ffi.Pointer)>(); late final _sel_finishWithRequest_1 = _registerName1("finishWithRequest:"); - void _objc_msgSend_483( + void _objc_msgSend_476( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_483( + return __objc_msgSend_476( obj, sel, request, ); } - late final __objc_msgSend_483Ptr = _lookup< + late final __objc_msgSend_476Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< + late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_484( + ffi.Pointer _objc_msgSend_477( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_484( + return __objc_msgSend_477( obj, sel, ); } - late final __objc_msgSend_484Ptr = _lookup< + late final __objc_msgSend_477Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< + late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -58432,14 +58089,14 @@ class NativeCupertinoHttp { _getClass1("CUPHTTPForwardedResponse"); late final _sel_initWithSession_task_response_1 = _registerName1("initWithSession:task:response:"); - ffi.Pointer _objc_msgSend_485( + ffi.Pointer _objc_msgSend_478( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, ffi.Pointer task, ffi.Pointer response, ) { - return __objc_msgSend_485( + return __objc_msgSend_478( obj, sel, session, @@ -58448,7 +58105,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_485Ptr = _lookup< + late final __objc_msgSend_478Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -58456,7 +58113,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< + late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -58466,54 +58123,54 @@ class NativeCupertinoHttp { late final _sel_finishWithDisposition_1 = _registerName1("finishWithDisposition:"); - void _objc_msgSend_486( + void _objc_msgSend_479( ffi.Pointer obj, ffi.Pointer sel, int disposition, ) { - return __objc_msgSend_486( + return __objc_msgSend_479( obj, sel, disposition, ); } - late final __objc_msgSend_486Ptr = _lookup< + late final __objc_msgSend_479Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< + late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_disposition1 = _registerName1("disposition"); - int _objc_msgSend_487( + int _objc_msgSend_480( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_487( + return __objc_msgSend_480( obj, sel, ); } - late final __objc_msgSend_487Ptr = _lookup< + late final __objc_msgSend_480Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< + late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _class_CUPHTTPForwardedData1 = _getClass1("CUPHTTPForwardedData"); late final _sel_initWithSession_task_data_1 = _registerName1("initWithSession:task:data:"); - ffi.Pointer _objc_msgSend_488( + ffi.Pointer _objc_msgSend_481( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, ffi.Pointer task, ffi.Pointer data, ) { - return __objc_msgSend_488( + return __objc_msgSend_481( obj, sel, session, @@ -58522,7 +58179,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_488Ptr = _lookup< + late final __objc_msgSend_481Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -58530,7 +58187,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< + late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -58542,14 +58199,14 @@ class NativeCupertinoHttp { _getClass1("CUPHTTPForwardedComplete"); late final _sel_initWithSession_task_error_1 = _registerName1("initWithSession:task:error:"); - ffi.Pointer _objc_msgSend_489( + ffi.Pointer _objc_msgSend_482( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, ffi.Pointer task, ffi.Pointer error, ) { - return __objc_msgSend_489( + return __objc_msgSend_482( obj, sel, session, @@ -58558,7 +58215,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_489Ptr = _lookup< + late final __objc_msgSend_482Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -58566,7 +58223,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< + late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -58578,14 +58235,14 @@ class NativeCupertinoHttp { _getClass1("CUPHTTPForwardedFinishedDownloading"); late final _sel_initWithSession_downloadTask_url_1 = _registerName1("initWithSession:downloadTask:url:"); - ffi.Pointer _objc_msgSend_490( + ffi.Pointer _objc_msgSend_483( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, ffi.Pointer downloadTask, ffi.Pointer location, ) { - return __objc_msgSend_490( + return __objc_msgSend_483( obj, sel, session, @@ -58594,7 +58251,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_490Ptr = _lookup< + late final __objc_msgSend_483Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -58602,7 +58259,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< + late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -58611,55 +58268,6 @@ class NativeCupertinoHttp { ffi.Pointer)>(); late final _sel_location1 = _registerName1("location"); - Dart_CObject NSObjectToCObject( - ffi.Pointer n, - ) { - return _NSObjectToCObject( - n, - ); - } - - late final _NSObjectToCObjectPtr = _lookup< - ffi.NativeFunction)>>( - 'NSObjectToCObject'); - late final _NSObjectToCObject = _NSObjectToCObjectPtr.asFunction< - Dart_CObject Function(ffi.Pointer)>(); - - void CUPHTTPSendMessage( - ffi.Pointer task, - ffi.Pointer message, - int sendPort, - ) { - return _CUPHTTPSendMessage( - task, - message, - sendPort, - ); - } - - late final _CUPHTTPSendMessagePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - Dart_Port)>>('CUPHTTPSendMessage'); - late final _CUPHTTPSendMessage = _CUPHTTPSendMessagePtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - void CUPHTTPReceiveMessage( - ffi.Pointer task, - int sendPort, - ) { - return _CUPHTTPReceiveMessage( - task, - sendPort, - ); - } - - late final _CUPHTTPReceiveMessagePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, Dart_Port)>>('CUPHTTPReceiveMessage'); - late final _CUPHTTPReceiveMessage = _CUPHTTPReceiveMessagePtr.asFunction< - void Function(ffi.Pointer, int)>(); } class __mbstate_t extends ffi.Union { @@ -58754,3226 +58362,4083 @@ class _opaque_pthread_t extends ffi.Struct { external ffi.Array __opaque; } -abstract class idtype_t { - static const int P_ALL = 0; - static const int P_PID = 1; - static const int P_PGID = 2; +@ffi.Packed(1) +class _OSUnalignedU16 extends ffi.Struct { + @ffi.Uint16() + external int __val; } -class __darwin_arm_exception_state extends ffi.Struct { - @__uint32_t() - external int __exception; - - @__uint32_t() - external int __fsr; - - @__uint32_t() - external int __far; +@ffi.Packed(1) +class _OSUnalignedU32 extends ffi.Struct { + @ffi.Uint32() + external int __val; } -typedef __uint32_t = ffi.UnsignedInt; - -class __darwin_arm_exception_state64 extends ffi.Struct { - @__uint64_t() - external int __far; - - @__uint32_t() - external int __esr; +@ffi.Packed(1) +class _OSUnalignedU64 extends ffi.Struct { + @ffi.Uint64() + external int __val; +} - @__uint32_t() - external int __exception; +class fd_set extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array<__int32_t> fds_bits; } -typedef __uint64_t = ffi.UnsignedLongLong; +typedef __int32_t = ffi.Int; -class __darwin_arm_thread_state extends ffi.Struct { - @ffi.Array.multi([13]) - external ffi.Array<__uint32_t> __r; +class objc_class extends ffi.Opaque {} - @__uint32_t() - external int __sp; +class objc_object extends ffi.Struct { + external ffi.Pointer isa; +} - @__uint32_t() - external int __lr; +class ObjCObject extends ffi.Opaque {} - @__uint32_t() - external int __pc; +class objc_selector extends ffi.Opaque {} - @__uint32_t() - external int __cpsr; -} +class ObjCSel extends ffi.Opaque {} -class __darwin_arm_thread_state64 extends ffi.Struct { - @ffi.Array.multi([29]) - external ffi.Array<__uint64_t> __x; +typedef objc_objectptr_t = ffi.Pointer; - @__uint64_t() - external int __fp; +class _NSZone extends ffi.Opaque {} - @__uint64_t() - external int __lr; +class _ObjCWrapper implements ffi.Finalizable { + final ffi.Pointer _id; + final NativeCupertinoHttp _lib; + bool _pendingRelease; - @__uint64_t() - external int __sp; + _ObjCWrapper._(this._id, this._lib, + {bool retain = false, bool release = false}) + : _pendingRelease = release { + if (retain) { + _lib._objc_retain(_id.cast()); + } + if (release) { + _lib._objc_releaseFinalizer2.attach(this, _id.cast(), detach: this); + } + } - @__uint64_t() - external int __pc; + /// Releases the reference to the underlying ObjC object held by this wrapper. + /// Throws a StateError if this wrapper doesn't currently hold a reference. + void release() { + if (_pendingRelease) { + _pendingRelease = false; + _lib._objc_release(_id.cast()); + _lib._objc_releaseFinalizer2.detach(this); + } else { + throw StateError( + 'Released an ObjC object that was unowned or already released.'); + } + } - @__uint32_t() - external int __cpsr; + @override + bool operator ==(Object other) { + return other is _ObjCWrapper && _id == other._id; + } - @__uint32_t() - external int __pad; + @override + int get hashCode => _id.hashCode; } -class __darwin_arm_vfp_state extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array<__uint32_t> __r; +class NSObject extends _ObjCWrapper { + NSObject._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - @__uint32_t() - external int __fpscr; -} + /// Returns a [NSObject] that points to the same underlying object as [other]. + static NSObject castFrom(T other) { + return NSObject._(other._id, other._lib, retain: true, release: true); + } -class __darwin_arm_neon_state64 extends ffi.Opaque {} + /// Returns a [NSObject] that wraps the given raw object pointer. + static NSObject castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSObject._(other, lib, retain: retain, release: release); + } -class __darwin_arm_neon_state extends ffi.Opaque {} + /// Returns whether [obj] is an instance of [NSObject]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSObject1); + } -class __arm_pagein_state extends ffi.Struct { - @ffi.Int() - external int __pagein_error; -} + static void load(NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); + } -class __arm_legacy_debug_state extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __bvr; + static void initialize(NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); + } - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __bcr; + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSObject._(_ret, _lib, retain: true, release: true); + } - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __wvr; + static NSObject new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_new1); + return NSObject._(_ret, _lib, retain: false, release: true); + } - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __wcr; -} + static NSObject allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSObject1, _lib._sel_allocWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); + } -class __darwin_arm_debug_state32 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __bvr; + static NSObject alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); + } - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __bcr; + void dealloc() { + return _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); + } - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __wvr; + void finalize() { + return _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + } - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __wcr; + NSObject copy() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_copy1); + return NSObject._(_ret, _lib, retain: false, release: true); + } - @__uint64_t() - external int __mdscr_el1; -} + NSObject mutableCopy() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_mutableCopy1); + return NSObject._(_ret, _lib, retain: false, release: true); + } -class __darwin_arm_debug_state64 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __bvr; + static NSObject copyWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSObject1, _lib._sel_copyWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); + } - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __bcr; + static NSObject mutableCopyWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSObject1, _lib._sel_mutableCopyWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); + } - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __wvr; + static bool instancesRespondToSelector_( + NativeCupertinoHttp _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4(_lib._class_NSObject1, + _lib._sel_instancesRespondToSelector_1, aSelector); + } - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __wcr; + static bool conformsToProtocol_( + NativeCupertinoHttp _lib, Protocol? protocol) { + return _lib._objc_msgSend_5(_lib._class_NSObject1, + _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); + } - @__uint64_t() - external int __mdscr_el1; -} + IMP methodForSelector_(ffi.Pointer aSelector) { + return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); + } -class __darwin_arm_cpmu_state64 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __ctrs; -} + static IMP instanceMethodForSelector_( + NativeCupertinoHttp _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_6(_lib._class_NSObject1, + _lib._sel_instanceMethodForSelector_1, aSelector); + } -class __darwin_mcontext32 extends ffi.Struct { - external __darwin_arm_exception_state __es; + void doesNotRecognizeSelector_(ffi.Pointer aSelector) { + return _lib._objc_msgSend_7( + _id, _lib._sel_doesNotRecognizeSelector_1, aSelector); + } - external __darwin_arm_thread_state __ss; + NSObject forwardingTargetForSelector_(ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_8( + _id, _lib._sel_forwardingTargetForSelector_1, aSelector); + return NSObject._(_ret, _lib, retain: true, release: true); + } - external __darwin_arm_vfp_state __fs; -} + void forwardInvocation_(NSInvocation? anInvocation) { + return _lib._objc_msgSend_9( + _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); + } -class __darwin_mcontext64 extends ffi.Opaque {} + NSMethodSignature methodSignatureForSelector_( + ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_10( + _id, _lib._sel_methodSignatureForSelector_1, aSelector); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); + } -class __darwin_sigaltstack extends ffi.Struct { - external ffi.Pointer ss_sp; + static NSMethodSignature instanceMethodSignatureForSelector_( + NativeCupertinoHttp _lib, ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_10(_lib._class_NSObject1, + _lib._sel_instanceMethodSignatureForSelector_1, aSelector); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); + } - @__darwin_size_t() - external int ss_size; + bool allowsWeakReference() { + return _lib._objc_msgSend_11(_id, _lib._sel_allowsWeakReference1); + } - @ffi.Int() - external int ss_flags; -} + bool retainWeakReference() { + return _lib._objc_msgSend_11(_id, _lib._sel_retainWeakReference1); + } -typedef __darwin_size_t = ffi.UnsignedLong; + static bool isSubclassOfClass_(NativeCupertinoHttp _lib, NSObject aClass) { + return _lib._objc_msgSend_0( + _lib._class_NSObject1, _lib._sel_isSubclassOfClass_1, aClass._id); + } -class __darwin_ucontext extends ffi.Struct { - @ffi.Int() - external int uc_onstack; + static bool resolveClassMethod_( + NativeCupertinoHttp _lib, ffi.Pointer sel) { + return _lib._objc_msgSend_4( + _lib._class_NSObject1, _lib._sel_resolveClassMethod_1, sel); + } - @__darwin_sigset_t() - external int uc_sigmask; + static bool resolveInstanceMethod_( + NativeCupertinoHttp _lib, ffi.Pointer sel) { + return _lib._objc_msgSend_4( + _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); + } - external __darwin_sigaltstack uc_stack; + static int hash(NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_12(_lib._class_NSObject1, _lib._sel_hash1); + } - external ffi.Pointer<__darwin_ucontext> uc_link; + static NSObject superclass(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_superclass1); + return NSObject._(_ret, _lib, retain: true, release: true); + } - @__darwin_size_t() - external int uc_mcsize; + static NSObject class1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_class1); + return NSObject._(_ret, _lib, retain: true, release: true); + } - external ffi.Pointer<__darwin_mcontext64> uc_mcontext; -} + static NSString description(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_32(_lib._class_NSObject1, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); + } -typedef __darwin_sigset_t = __uint32_t; + static NSString debugDescription(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_32( + _lib._class_NSObject1, _lib._sel_debugDescription1); + return NSString._(_ret, _lib, retain: true, release: true); + } -class sigval extends ffi.Union { - @ffi.Int() - external int sival_int; + static int version(NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_81(_lib._class_NSObject1, _lib._sel_version1); + } - external ffi.Pointer sival_ptr; -} + static void setVersion_(NativeCupertinoHttp _lib, int aVersion) { + return _lib._objc_msgSend_275( + _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); + } -class sigevent extends ffi.Struct { - @ffi.Int() - external int sigev_notify; + NSObject get classForCoder { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForCoder1); + return NSObject._(_ret, _lib, retain: true, release: true); + } - @ffi.Int() - external int sigev_signo; + NSObject replacementObjectForCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_14( + _id, _lib._sel_replacementObjectForCoder_1, coder?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } - external sigval sigev_value; + NSObject awakeAfterUsingCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_14( + _id, _lib._sel_awakeAfterUsingCoder_1, coder?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: false, release: true); + } - external ffi.Pointer> - sigev_notify_function; + static void poseAsClass_(NativeCupertinoHttp _lib, NSObject aClass) { + return _lib._objc_msgSend_200( + _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); + } - external ffi.Pointer sigev_notify_attributes; -} + NSObject get autoContentAccessingProxy { + final _ret = + _lib._objc_msgSend_2(_id, _lib._sel_autoContentAccessingProxy1); + return NSObject._(_ret, _lib, retain: true, release: true); + } -typedef pthread_attr_t = __darwin_pthread_attr_t; -typedef __darwin_pthread_attr_t = _opaque_pthread_attr_t; + void URL_resourceDataDidBecomeAvailable_(NSURL? sender, NSData? newBytes) { + return _lib._objc_msgSend_276( + _id, + _lib._sel_URL_resourceDataDidBecomeAvailable_1, + sender?._id ?? ffi.nullptr, + newBytes?._id ?? ffi.nullptr); + } -class __siginfo extends ffi.Struct { - @ffi.Int() - external int si_signo; + void URLResourceDidFinishLoading_(NSURL? sender) { + return _lib._objc_msgSend_277(_id, _lib._sel_URLResourceDidFinishLoading_1, + sender?._id ?? ffi.nullptr); + } - @ffi.Int() - external int si_errno; + void URLResourceDidCancelLoading_(NSURL? sender) { + return _lib._objc_msgSend_277(_id, _lib._sel_URLResourceDidCancelLoading_1, + sender?._id ?? ffi.nullptr); + } - @ffi.Int() - external int si_code; + void URL_resourceDidFailLoadingWithReason_(NSURL? sender, NSString? reason) { + return _lib._objc_msgSend_278( + _id, + _lib._sel_URL_resourceDidFailLoadingWithReason_1, + sender?._id ?? ffi.nullptr, + reason?._id ?? ffi.nullptr); + } - @pid_t() - external int si_pid; + /// Given that an error alert has been presented document-modally to the user, and the user has chosen one of the error's recovery options, attempt recovery from the error, and send the selected message to the specified delegate. The option index is an index into the error's array of localized recovery options. The method selected by didRecoverSelector must have the same signature as: + /// + /// - (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_( + NSError? error, + int recoveryOptionIndex, + NSObject delegate, + ffi.Pointer didRecoverSelector, + ffi.Pointer contextInfo) { + return _lib._objc_msgSend_279( + _id, + _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, + error?._id ?? ffi.nullptr, + recoveryOptionIndex, + delegate._id, + didRecoverSelector, + contextInfo); + } - @uid_t() - external int si_uid; + /// Given that an error alert has been presented applicaton-modally to the user, and the user has chosen one of the error's recovery options, attempt recovery from the error, and return YES if error recovery was completely successful, NO otherwise. The recovery option index is an index into the error's array of localized recovery options. + bool attemptRecoveryFromError_optionIndex_( + NSError? error, int recoveryOptionIndex) { + return _lib._objc_msgSend_280( + _id, + _lib._sel_attemptRecoveryFromError_optionIndex_1, + error?._id ?? ffi.nullptr, + recoveryOptionIndex); + } +} - @ffi.Int() - external int si_status; +typedef instancetype = ffi.Pointer; - external ffi.Pointer si_addr; +class Protocol extends _ObjCWrapper { + Protocol._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - external sigval si_value; + /// Returns a [Protocol] that points to the same underlying object as [other]. + static Protocol castFrom(T other) { + return Protocol._(other._id, other._lib, retain: true, release: true); + } - @ffi.Long() - external int si_band; + /// Returns a [Protocol] that wraps the given raw object pointer. + static Protocol castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return Protocol._(other, lib, retain: retain, release: release); + } - @ffi.Array.multi([7]) - external ffi.Array __pad; + /// Returns whether [obj] is an instance of [Protocol]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_Protocol1); + } } -typedef pid_t = __darwin_pid_t; -typedef __darwin_pid_t = __int32_t; -typedef __int32_t = ffi.Int; -typedef uid_t = __darwin_uid_t; -typedef __darwin_uid_t = __uint32_t; - -class __sigaction_u extends ffi.Union { - external ffi.Pointer> - __sa_handler; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int, ffi.Pointer<__siginfo>, ffi.Pointer)>> - __sa_sigaction; -} +typedef IMP = ffi.Pointer>; -class __sigaction extends ffi.Struct { - external __sigaction_u __sigaction_u1; +class NSInvocation extends _ObjCWrapper { + NSInvocation._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Int, - ffi.Pointer, ffi.Pointer)>> sa_tramp; + /// Returns a [NSInvocation] that points to the same underlying object as [other]. + static NSInvocation castFrom(T other) { + return NSInvocation._(other._id, other._lib, retain: true, release: true); + } - @sigset_t() - external int sa_mask; + /// Returns a [NSInvocation] that wraps the given raw object pointer. + static NSInvocation castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSInvocation._(other, lib, retain: retain, release: release); + } - @ffi.Int() - external int sa_flags; + /// Returns whether [obj] is an instance of [NSInvocation]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInvocation1); + } } -typedef siginfo_t = __siginfo; -typedef sigset_t = __darwin_sigset_t; +class NSMethodSignature extends _ObjCWrapper { + NSMethodSignature._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); -class sigaction extends ffi.Struct { - external __sigaction_u __sigaction_u1; + /// Returns a [NSMethodSignature] that points to the same underlying object as [other]. + static NSMethodSignature castFrom(T other) { + return NSMethodSignature._(other._id, other._lib, + retain: true, release: true); + } - @sigset_t() - external int sa_mask; + /// Returns a [NSMethodSignature] that wraps the given raw object pointer. + static NSMethodSignature castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMethodSignature._(other, lib, retain: retain, release: release); + } - @ffi.Int() - external int sa_flags; + /// Returns whether [obj] is an instance of [NSMethodSignature]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMethodSignature1); + } } -class sigvec extends ffi.Struct { - external ffi.Pointer> - sv_handler; +typedef NSUInteger = ffi.UnsignedLong; - @ffi.Int() - external int sv_mask; +class NSString extends NSObject { + NSString._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - @ffi.Int() - external int sv_flags; -} + /// Returns a [NSString] that points to the same underlying object as [other]. + static NSString castFrom(T other) { + return NSString._(other._id, other._lib, retain: true, release: true); + } -class sigstack extends ffi.Struct { - external ffi.Pointer ss_sp; + /// Returns a [NSString] that wraps the given raw object pointer. + static NSString castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSString._(other, lib, retain: retain, release: release); + } - @ffi.Int() - external int ss_onstack; -} + /// Returns whether [obj] is an instance of [NSString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSString1); + } -class timeval extends ffi.Struct { - @__darwin_time_t() - external int tv_sec; + factory NSString(NativeCupertinoHttp _lib, String str) { + final cstr = str.toNativeUtf16(); + final nsstr = stringWithCharacters_length_(_lib, cstr.cast(), str.length); + pkg_ffi.calloc.free(cstr); + return nsstr; + } - @__darwin_suseconds_t() - external int tv_usec; -} + @override + String toString() { + final data = + dataUsingEncoding_(0x94000100 /* NSUTF16LittleEndianStringEncoding */); + return data.bytes.cast().toDartString(length: length); + } -typedef __darwin_time_t = ffi.Long; -typedef __darwin_suseconds_t = __int32_t; + int get length { + return _lib._objc_msgSend_12(_id, _lib._sel_length1); + } -class rusage extends ffi.Struct { - external timeval ru_utime; + int characterAtIndex_(int index) { + return _lib._objc_msgSend_13(_id, _lib._sel_characterAtIndex_1, index); + } - external timeval ru_stime; + @override + NSString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Long() - external int ru_maxrss; + NSString initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_14( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Long() - external int ru_ixrss; + NSString substringFromIndex_(int from) { + final _ret = + _lib._objc_msgSend_15(_id, _lib._sel_substringFromIndex_1, from); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Long() - external int ru_idrss; + NSString substringToIndex_(int to) { + final _ret = _lib._objc_msgSend_15(_id, _lib._sel_substringToIndex_1, to); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Long() - external int ru_isrss; + NSString substringWithRange_(NSRange range) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_substringWithRange_1, range); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Long() - external int ru_minflt; + void getCharacters_range_(ffi.Pointer buffer, NSRange range) { + return _lib._objc_msgSend_17( + _id, _lib._sel_getCharacters_range_1, buffer, range); + } - @ffi.Long() - external int ru_majflt; + int compare_(NSString? string) { + return _lib._objc_msgSend_18( + _id, _lib._sel_compare_1, string?._id ?? ffi.nullptr); + } - @ffi.Long() - external int ru_nswap; + int compare_options_(NSString? string, int mask) { + return _lib._objc_msgSend_19( + _id, _lib._sel_compare_options_1, string?._id ?? ffi.nullptr, mask); + } - @ffi.Long() - external int ru_inblock; + int compare_options_range_( + NSString? string, int mask, NSRange rangeOfReceiverToCompare) { + return _lib._objc_msgSend_20(_id, _lib._sel_compare_options_range_1, + string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare); + } - @ffi.Long() - external int ru_oublock; + int compare_options_range_locale_(NSString? string, int mask, + NSRange rangeOfReceiverToCompare, NSObject locale) { + return _lib._objc_msgSend_21(_id, _lib._sel_compare_options_range_locale_1, + string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare, locale._id); + } - @ffi.Long() - external int ru_msgsnd; + int caseInsensitiveCompare_(NSString? string) { + return _lib._objc_msgSend_18( + _id, _lib._sel_caseInsensitiveCompare_1, string?._id ?? ffi.nullptr); + } - @ffi.Long() - external int ru_msgrcv; + int localizedCompare_(NSString? string) { + return _lib._objc_msgSend_18( + _id, _lib._sel_localizedCompare_1, string?._id ?? ffi.nullptr); + } - @ffi.Long() - external int ru_nsignals; + int localizedCaseInsensitiveCompare_(NSString? string) { + return _lib._objc_msgSend_18( + _id, + _lib._sel_localizedCaseInsensitiveCompare_1, + string?._id ?? ffi.nullptr); + } - @ffi.Long() - external int ru_nvcsw; + int localizedStandardCompare_(NSString? string) { + return _lib._objc_msgSend_18( + _id, _lib._sel_localizedStandardCompare_1, string?._id ?? ffi.nullptr); + } - @ffi.Long() - external int ru_nivcsw; -} + bool isEqualToString_(NSString? aString) { + return _lib._objc_msgSend_22( + _id, _lib._sel_isEqualToString_1, aString?._id ?? ffi.nullptr); + } -class rusage_info_v0 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; + bool hasPrefix_(NSString? str) { + return _lib._objc_msgSend_22( + _id, _lib._sel_hasPrefix_1, str?._id ?? ffi.nullptr); + } - @ffi.Uint64() - external int ri_user_time; + bool hasSuffix_(NSString? str) { + return _lib._objc_msgSend_22( + _id, _lib._sel_hasSuffix_1, str?._id ?? ffi.nullptr); + } - @ffi.Uint64() - external int ri_system_time; + NSString commonPrefixWithString_options_(NSString? str, int mask) { + final _ret = _lib._objc_msgSend_23( + _id, + _lib._sel_commonPrefixWithString_options_1, + str?._id ?? ffi.nullptr, + mask); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_pkg_idle_wkups; + bool containsString_(NSString? str) { + return _lib._objc_msgSend_22( + _id, _lib._sel_containsString_1, str?._id ?? ffi.nullptr); + } - @ffi.Uint64() - external int ri_interrupt_wkups; + bool localizedCaseInsensitiveContainsString_(NSString? str) { + return _lib._objc_msgSend_22( + _id, + _lib._sel_localizedCaseInsensitiveContainsString_1, + str?._id ?? ffi.nullptr); + } - @ffi.Uint64() - external int ri_pageins; + bool localizedStandardContainsString_(NSString? str) { + return _lib._objc_msgSend_22(_id, + _lib._sel_localizedStandardContainsString_1, str?._id ?? ffi.nullptr); + } - @ffi.Uint64() - external int ri_wired_size; + NSRange localizedStandardRangeOfString_(NSString? str) { + return _lib._objc_msgSend_24(_id, + _lib._sel_localizedStandardRangeOfString_1, str?._id ?? ffi.nullptr); + } - @ffi.Uint64() - external int ri_resident_size; + NSRange rangeOfString_(NSString? searchString) { + return _lib._objc_msgSend_24( + _id, _lib._sel_rangeOfString_1, searchString?._id ?? ffi.nullptr); + } - @ffi.Uint64() - external int ri_phys_footprint; + NSRange rangeOfString_options_(NSString? searchString, int mask) { + return _lib._objc_msgSend_25(_id, _lib._sel_rangeOfString_options_1, + searchString?._id ?? ffi.nullptr, mask); + } - @ffi.Uint64() - external int ri_proc_start_abstime; + NSRange rangeOfString_options_range_( + NSString? searchString, int mask, NSRange rangeOfReceiverToSearch) { + return _lib._objc_msgSend_26(_id, _lib._sel_rangeOfString_options_range_1, + searchString?._id ?? ffi.nullptr, mask, rangeOfReceiverToSearch); + } - @ffi.Uint64() - external int ri_proc_exit_abstime; -} + NSRange rangeOfString_options_range_locale_(NSString? searchString, int mask, + NSRange rangeOfReceiverToSearch, NSLocale? locale) { + return _lib._objc_msgSend_27( + _id, + _lib._sel_rangeOfString_options_range_locale_1, + searchString?._id ?? ffi.nullptr, + mask, + rangeOfReceiverToSearch, + locale?._id ?? ffi.nullptr); + } -class rusage_info_v1 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; + NSRange rangeOfCharacterFromSet_(NSCharacterSet? searchSet) { + return _lib._objc_msgSend_228(_id, _lib._sel_rangeOfCharacterFromSet_1, + searchSet?._id ?? ffi.nullptr); + } - @ffi.Uint64() - external int ri_user_time; + NSRange rangeOfCharacterFromSet_options_( + NSCharacterSet? searchSet, int mask) { + return _lib._objc_msgSend_229( + _id, + _lib._sel_rangeOfCharacterFromSet_options_1, + searchSet?._id ?? ffi.nullptr, + mask); + } - @ffi.Uint64() - external int ri_system_time; + NSRange rangeOfCharacterFromSet_options_range_( + NSCharacterSet? searchSet, int mask, NSRange rangeOfReceiverToSearch) { + return _lib._objc_msgSend_230( + _id, + _lib._sel_rangeOfCharacterFromSet_options_range_1, + searchSet?._id ?? ffi.nullptr, + mask, + rangeOfReceiverToSearch); + } - @ffi.Uint64() - external int ri_pkg_idle_wkups; + NSRange rangeOfComposedCharacterSequenceAtIndex_(int index) { + return _lib._objc_msgSend_231( + _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); + } - @ffi.Uint64() - external int ri_interrupt_wkups; + NSRange rangeOfComposedCharacterSequencesForRange_(NSRange range) { + return _lib._objc_msgSend_232( + _id, _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); + } - @ffi.Uint64() - external int ri_pageins; + NSString stringByAppendingString_(NSString? aString) { + final _ret = _lib._objc_msgSend_98( + _id, _lib._sel_stringByAppendingString_1, aString?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_wired_size; + NSString stringByAppendingFormat_(NSString? format) { + final _ret = _lib._objc_msgSend_98( + _id, _lib._sel_stringByAppendingFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_resident_size; + double get doubleValue { + return _lib._objc_msgSend_85(_id, _lib._sel_doubleValue1); + } - @ffi.Uint64() - external int ri_phys_footprint; + double get floatValue { + return _lib._objc_msgSend_84(_id, _lib._sel_floatValue1); + } - @ffi.Uint64() - external int ri_proc_start_abstime; + int get intValue { + return _lib._objc_msgSend_79(_id, _lib._sel_intValue1); + } - @ffi.Uint64() - external int ri_proc_exit_abstime; + int get integerValue { + return _lib._objc_msgSend_81(_id, _lib._sel_integerValue1); + } - @ffi.Uint64() - external int ri_child_user_time; + int get longLongValue { + return _lib._objc_msgSend_82(_id, _lib._sel_longLongValue1); + } - @ffi.Uint64() - external int ri_child_system_time; + bool get boolValue { + return _lib._objc_msgSend_11(_id, _lib._sel_boolValue1); + } - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; + NSString? get uppercaseString { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_uppercaseString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_interrupt_wkups; + NSString? get lowercaseString { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_lowercaseString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_pageins; + NSString? get capitalizedString { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_capitalizedString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_elapsed_abstime; -} + NSString? get localizedUppercaseString { + final _ret = + _lib._objc_msgSend_32(_id, _lib._sel_localizedUppercaseString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } -class rusage_info_v2 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; + NSString? get localizedLowercaseString { + final _ret = + _lib._objc_msgSend_32(_id, _lib._sel_localizedLowercaseString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_user_time; + NSString? get localizedCapitalizedString { + final _ret = + _lib._objc_msgSend_32(_id, _lib._sel_localizedCapitalizedString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; + NSString uppercaseStringWithLocale_(NSLocale? locale) { + final _ret = _lib._objc_msgSend_233( + _id, _lib._sel_uppercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_interrupt_wkups; + NSString lowercaseStringWithLocale_(NSLocale? locale) { + final _ret = _lib._objc_msgSend_233( + _id, _lib._sel_lowercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_pageins; + NSString capitalizedStringWithLocale_(NSLocale? locale) { + final _ret = _lib._objc_msgSend_233(_id, + _lib._sel_capitalizedStringWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_wired_size; + void getLineStart_end_contentsEnd_forRange_( + ffi.Pointer startPtr, + ffi.Pointer lineEndPtr, + ffi.Pointer contentsEndPtr, + NSRange range) { + return _lib._objc_msgSend_234( + _id, + _lib._sel_getLineStart_end_contentsEnd_forRange_1, + startPtr, + lineEndPtr, + contentsEndPtr, + range); + } - @ffi.Uint64() - external int ri_resident_size; + NSRange lineRangeForRange_(NSRange range) { + return _lib._objc_msgSend_232(_id, _lib._sel_lineRangeForRange_1, range); + } - @ffi.Uint64() - external int ri_phys_footprint; + void getParagraphStart_end_contentsEnd_forRange_( + ffi.Pointer startPtr, + ffi.Pointer parEndPtr, + ffi.Pointer contentsEndPtr, + NSRange range) { + return _lib._objc_msgSend_234( + _id, + _lib._sel_getParagraphStart_end_contentsEnd_forRange_1, + startPtr, + parEndPtr, + contentsEndPtr, + range); + } - @ffi.Uint64() - external int ri_proc_start_abstime; + NSRange paragraphRangeForRange_(NSRange range) { + return _lib._objc_msgSend_232( + _id, _lib._sel_paragraphRangeForRange_1, range); + } - @ffi.Uint64() - external int ri_proc_exit_abstime; + void enumerateSubstringsInRange_options_usingBlock_( + NSRange range, int opts, ObjCBlock13 block) { + return _lib._objc_msgSend_235( + _id, + _lib._sel_enumerateSubstringsInRange_options_usingBlock_1, + range, + opts, + block._id); + } - @ffi.Uint64() - external int ri_child_user_time; + void enumerateLinesUsingBlock_(ObjCBlock14 block) { + return _lib._objc_msgSend_236( + _id, _lib._sel_enumerateLinesUsingBlock_1, block._id); + } - @ffi.Uint64() - external int ri_child_system_time; + ffi.Pointer get UTF8String { + return _lib._objc_msgSend_53(_id, _lib._sel_UTF8String1); + } - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; + int get fastestEncoding { + return _lib._objc_msgSend_12(_id, _lib._sel_fastestEncoding1); + } - @ffi.Uint64() - external int ri_child_interrupt_wkups; + int get smallestEncoding { + return _lib._objc_msgSend_12(_id, _lib._sel_smallestEncoding1); + } - @ffi.Uint64() - external int ri_child_pageins; + NSData dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { + final _ret = _lib._objc_msgSend_237(_id, + _lib._sel_dataUsingEncoding_allowLossyConversion_1, encoding, lossy); + return NSData._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_elapsed_abstime; + NSData dataUsingEncoding_(int encoding) { + final _ret = + _lib._objc_msgSend_238(_id, _lib._sel_dataUsingEncoding_1, encoding); + return NSData._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_diskio_bytesread; + bool canBeConvertedToEncoding_(int encoding) { + return _lib._objc_msgSend_117( + _id, _lib._sel_canBeConvertedToEncoding_1, encoding); + } - @ffi.Uint64() - external int ri_diskio_byteswritten; -} + ffi.Pointer cStringUsingEncoding_(int encoding) { + return _lib._objc_msgSend_239( + _id, _lib._sel_cStringUsingEncoding_1, encoding); + } -class rusage_info_v3 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; + bool getCString_maxLength_encoding_( + ffi.Pointer buffer, int maxBufferCount, int encoding) { + return _lib._objc_msgSend_240( + _id, + _lib._sel_getCString_maxLength_encoding_1, + buffer, + maxBufferCount, + encoding); + } - @ffi.Uint64() - external int ri_user_time; + bool getBytes_maxLength_usedLength_encoding_options_range_remainingRange_( + ffi.Pointer buffer, + int maxBufferCount, + ffi.Pointer usedBufferCount, + int encoding, + int options, + NSRange range, + NSRangePointer leftover) { + return _lib._objc_msgSend_241( + _id, + _lib._sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1, + buffer, + maxBufferCount, + usedBufferCount, + encoding, + options, + range, + leftover); + } - @ffi.Uint64() - external int ri_system_time; + int maximumLengthOfBytesUsingEncoding_(int enc) { + return _lib._objc_msgSend_114( + _id, _lib._sel_maximumLengthOfBytesUsingEncoding_1, enc); + } - @ffi.Uint64() - external int ri_pkg_idle_wkups; + int lengthOfBytesUsingEncoding_(int enc) { + return _lib._objc_msgSend_114( + _id, _lib._sel_lengthOfBytesUsingEncoding_1, enc); + } - @ffi.Uint64() - external int ri_interrupt_wkups; + static ffi.Pointer getAvailableStringEncodings( + NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_242( + _lib._class_NSString1, _lib._sel_availableStringEncodings1); + } - @ffi.Uint64() - external int ri_pageins; + static NSString localizedNameOfStringEncoding_( + NativeCupertinoHttp _lib, int encoding) { + final _ret = _lib._objc_msgSend_15(_lib._class_NSString1, + _lib._sel_localizedNameOfStringEncoding_1, encoding); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_wired_size; + static int getDefaultCStringEncoding(NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSString1, _lib._sel_defaultCStringEncoding1); + } - @ffi.Uint64() - external int ri_resident_size; + NSString? get decomposedStringWithCanonicalMapping { + final _ret = _lib._objc_msgSend_32( + _id, _lib._sel_decomposedStringWithCanonicalMapping1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_phys_footprint; + NSString? get precomposedStringWithCanonicalMapping { + final _ret = _lib._objc_msgSend_32( + _id, _lib._sel_precomposedStringWithCanonicalMapping1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_proc_start_abstime; + NSString? get decomposedStringWithCompatibilityMapping { + final _ret = _lib._objc_msgSend_32( + _id, _lib._sel_decomposedStringWithCompatibilityMapping1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_proc_exit_abstime; + NSString? get precomposedStringWithCompatibilityMapping { + final _ret = _lib._objc_msgSend_32( + _id, _lib._sel_precomposedStringWithCompatibilityMapping1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_user_time; + NSArray componentsSeparatedByString_(NSString? separator) { + final _ret = _lib._objc_msgSend_159(_id, + _lib._sel_componentsSeparatedByString_1, separator?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_system_time; + NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet? separator) { + final _ret = _lib._objc_msgSend_243( + _id, + _lib._sel_componentsSeparatedByCharactersInSet_1, + separator?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; + NSString stringByTrimmingCharactersInSet_(NSCharacterSet? set) { + final _ret = _lib._objc_msgSend_244(_id, + _lib._sel_stringByTrimmingCharactersInSet_1, set?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_interrupt_wkups; + NSString stringByPaddingToLength_withString_startingAtIndex_( + int newLength, NSString? padString, int padIndex) { + final _ret = _lib._objc_msgSend_245( + _id, + _lib._sel_stringByPaddingToLength_withString_startingAtIndex_1, + newLength, + padString?._id ?? ffi.nullptr, + padIndex); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_pageins; + NSString stringByFoldingWithOptions_locale_(int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_246( + _id, + _lib._sel_stringByFoldingWithOptions_locale_1, + options, + locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_elapsed_abstime; + NSString stringByReplacingOccurrencesOfString_withString_options_range_( + NSString? target, + NSString? replacement, + int options, + NSRange searchRange) { + final _ret = _lib._objc_msgSend_247( + _id, + _lib._sel_stringByReplacingOccurrencesOfString_withString_options_range_1, + target?._id ?? ffi.nullptr, + replacement?._id ?? ffi.nullptr, + options, + searchRange); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_diskio_bytesread; + NSString stringByReplacingOccurrencesOfString_withString_( + NSString? target, NSString? replacement) { + final _ret = _lib._objc_msgSend_248( + _id, + _lib._sel_stringByReplacingOccurrencesOfString_withString_1, + target?._id ?? ffi.nullptr, + replacement?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_diskio_byteswritten; + NSString stringByReplacingCharactersInRange_withString_( + NSRange range, NSString? replacement) { + final _ret = _lib._objc_msgSend_249( + _id, + _lib._sel_stringByReplacingCharactersInRange_withString_1, + range, + replacement?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_default; + NSString stringByApplyingTransform_reverse_( + NSStringTransform transform, bool reverse) { + final _ret = _lib._objc_msgSend_250( + _id, _lib._sel_stringByApplyingTransform_reverse_1, transform, reverse); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_maintenance; + bool writeToURL_atomically_encoding_error_(NSURL? url, bool useAuxiliaryFile, + int enc, ffi.Pointer> error) { + return _lib._objc_msgSend_251( + _id, + _lib._sel_writeToURL_atomically_encoding_error_1, + url?._id ?? ffi.nullptr, + useAuxiliaryFile, + enc, + error); + } - @ffi.Uint64() - external int ri_cpu_time_qos_background; + bool writeToFile_atomically_encoding_error_( + NSString? path, + bool useAuxiliaryFile, + int enc, + ffi.Pointer> error) { + return _lib._objc_msgSend_252( + _id, + _lib._sel_writeToFile_atomically_encoding_error_1, + path?._id ?? ffi.nullptr, + useAuxiliaryFile, + enc, + error); + } - @ffi.Uint64() - external int ri_cpu_time_qos_utility; + NSString? get description { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_legacy; + int get hash { + return _lib._objc_msgSend_12(_id, _lib._sel_hash1); + } - @ffi.Uint64() - external int ri_cpu_time_qos_user_initiated; + NSString initWithCharactersNoCopy_length_freeWhenDone_( + ffi.Pointer characters, int length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_253( + _id, + _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, + characters, + length, + freeBuffer); + return NSString._(_ret, _lib, retain: false, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_user_interactive; + NSString initWithCharactersNoCopy_length_deallocator_( + ffi.Pointer chars, int len, ObjCBlock15 deallocator) { + final _ret = _lib._objc_msgSend_254( + _id, + _lib._sel_initWithCharactersNoCopy_length_deallocator_1, + chars, + len, + deallocator._id); + return NSString._(_ret, _lib, retain: false, release: true); + } - @ffi.Uint64() - external int ri_billed_system_time; + NSString initWithCharacters_length_( + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_255( + _id, _lib._sel_initWithCharacters_length_1, characters, length); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_serviced_system_time; -} + NSString initWithUTF8String_(ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_256( + _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); + return NSString._(_ret, _lib, retain: true, release: true); + } -class rusage_info_v4 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; + NSString initWithString_(NSString? aString) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_user_time; + NSString initWithFormat_(NSString? format) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_system_time; + NSString initWithFormat_arguments_(NSString? format, va_list argList) { + final _ret = _lib._objc_msgSend_257( + _id, + _lib._sel_initWithFormat_arguments_1, + format?._id ?? ffi.nullptr, + argList); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_pkg_idle_wkups; + NSString initWithFormat_locale_(NSString? format, NSObject locale) { + final _ret = _lib._objc_msgSend_258(_id, _lib._sel_initWithFormat_locale_1, + format?._id ?? ffi.nullptr, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_interrupt_wkups; + NSString initWithFormat_locale_arguments_( + NSString? format, NSObject locale, va_list argList) { + final _ret = _lib._objc_msgSend_259( + _id, + _lib._sel_initWithFormat_locale_arguments_1, + format?._id ?? ffi.nullptr, + locale._id, + argList); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_pageins; + NSString initWithData_encoding_(NSData? data, int encoding) { + final _ret = _lib._objc_msgSend_260(_id, _lib._sel_initWithData_encoding_1, + data?._id ?? ffi.nullptr, encoding); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_wired_size; + NSString initWithBytes_length_encoding_( + ffi.Pointer bytes, int len, int encoding) { + final _ret = _lib._objc_msgSend_261( + _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_resident_size; + NSString initWithBytesNoCopy_length_encoding_freeWhenDone_( + ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { + final _ret = _lib._objc_msgSend_262( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, + bytes, + len, + encoding, + freeBuffer); + return NSString._(_ret, _lib, retain: false, release: true); + } - @ffi.Uint64() - external int ri_phys_footprint; + NSString initWithBytesNoCopy_length_encoding_deallocator_( + ffi.Pointer bytes, + int len, + int encoding, + ObjCBlock12 deallocator) { + final _ret = _lib._objc_msgSend_263( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, + bytes, + len, + encoding, + deallocator._id); + return NSString._(_ret, _lib, retain: false, release: true); + } - @ffi.Uint64() - external int ri_proc_start_abstime; + static NSString string(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_string1); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_proc_exit_abstime; + static NSString stringWithString_( + NativeCupertinoHttp _lib, NSString? string) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSString1, + _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_user_time; + static NSString stringWithCharacters_length_( + NativeCupertinoHttp _lib, ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_255(_lib._class_NSString1, + _lib._sel_stringWithCharacters_length_1, characters, length); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_system_time; + static NSString stringWithUTF8String_( + NativeCupertinoHttp _lib, ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_256(_lib._class_NSString1, + _lib._sel_stringWithUTF8String_1, nullTerminatedCString); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_child_interrupt_wkups; + static NSString stringWithFormat_( + NativeCupertinoHttp _lib, NSString? format) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSString1, + _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_pageins; + static NSString localizedStringWithFormat_( + NativeCupertinoHttp _lib, NSString? format) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSString1, + _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_elapsed_abstime; + NSString initWithCString_encoding_( + ffi.Pointer nullTerminatedCString, int encoding) { + final _ret = _lib._objc_msgSend_264(_id, + _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_diskio_bytesread; + static NSString stringWithCString_encoding_( + NativeCupertinoHttp _lib, ffi.Pointer cString, int enc) { + final _ret = _lib._objc_msgSend_264(_lib._class_NSString1, + _lib._sel_stringWithCString_encoding_1, cString, enc); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_diskio_byteswritten; + NSString initWithContentsOfURL_encoding_error_( + NSURL? url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_265( + _id, + _lib._sel_initWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_default; + NSString initWithContentsOfFile_encoding_error_( + NSString? path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_266( + _id, + _lib._sel_initWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_maintenance; + static NSString stringWithContentsOfURL_encoding_error_( + NativeCupertinoHttp _lib, + NSURL? url, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_265( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_background; + static NSString stringWithContentsOfFile_encoding_error_( + NativeCupertinoHttp _lib, + NSString? path, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_266( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_utility; + NSString initWithContentsOfURL_usedEncoding_error_( + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_267( + _id, + _lib._sel_initWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_legacy; + NSString initWithContentsOfFile_usedEncoding_error_( + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_268( + _id, + _lib._sel_initWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_user_initiated; + static NSString stringWithContentsOfURL_usedEncoding_error_( + NativeCupertinoHttp _lib, + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_267( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_user_interactive; + static NSString stringWithContentsOfFile_usedEncoding_error_( + NativeCupertinoHttp _lib, + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_268( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_billed_system_time; + static int + stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( + NativeCupertinoHttp _lib, + NSData? data, + NSDictionary? opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion) { + return _lib._objc_msgSend_269( + _lib._class_NSString1, + _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, + data?._id ?? ffi.nullptr, + opts?._id ?? ffi.nullptr, + string, + usedLossyConversion); + } - @ffi.Uint64() - external int ri_serviced_system_time; + NSObject propertyList() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_propertyList1); + return NSObject._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_logical_writes; + NSDictionary propertyListFromStringsFileFormat() { + final _ret = _lib._objc_msgSend_180( + _id, _lib._sel_propertyListFromStringsFileFormat1); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_lifetime_max_phys_footprint; + ffi.Pointer cString() { + return _lib._objc_msgSend_53(_id, _lib._sel_cString1); + } - @ffi.Uint64() - external int ri_instructions; + ffi.Pointer lossyCString() { + return _lib._objc_msgSend_53(_id, _lib._sel_lossyCString1); + } - @ffi.Uint64() - external int ri_cycles; + int cStringLength() { + return _lib._objc_msgSend_12(_id, _lib._sel_cStringLength1); + } - @ffi.Uint64() - external int ri_billed_energy; + void getCString_(ffi.Pointer bytes) { + return _lib._objc_msgSend_270(_id, _lib._sel_getCString_1, bytes); + } - @ffi.Uint64() - external int ri_serviced_energy; + void getCString_maxLength_(ffi.Pointer bytes, int maxLength) { + return _lib._objc_msgSend_271( + _id, _lib._sel_getCString_maxLength_1, bytes, maxLength); + } - @ffi.Uint64() - external int ri_interval_max_phys_footprint; + void getCString_maxLength_range_remainingRange_(ffi.Pointer bytes, + int maxLength, NSRange aRange, NSRangePointer leftoverRange) { + return _lib._objc_msgSend_272( + _id, + _lib._sel_getCString_maxLength_range_remainingRange_1, + bytes, + maxLength, + aRange, + leftoverRange); + } - @ffi.Uint64() - external int ri_runnable_time; -} + bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_37(_id, _lib._sel_writeToFile_atomically_1, + path?._id ?? ffi.nullptr, useAuxiliaryFile); + } -class rusage_info_v5 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; + bool writeToURL_atomically_(NSURL? url, bool atomically) { + return _lib._objc_msgSend_161(_id, _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, atomically); + } - @ffi.Uint64() - external int ri_user_time; + NSObject initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_system_time; + NSObject initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_201( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_pkg_idle_wkups; + static NSObject stringWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSString1, + _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_interrupt_wkups; + static NSObject stringWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_201(_lib._class_NSString1, + _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_pageins; + NSObject initWithCStringNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, int length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_273( + _id, + _lib._sel_initWithCStringNoCopy_length_freeWhenDone_1, + bytes, + length, + freeBuffer); + return NSObject._(_ret, _lib, retain: false, release: true); + } - @ffi.Uint64() - external int ri_wired_size; + NSObject initWithCString_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_264( + _id, _lib._sel_initWithCString_length_1, bytes, length); + return NSObject._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_resident_size; + NSObject initWithCString_(ffi.Pointer bytes) { + final _ret = + _lib._objc_msgSend_256(_id, _lib._sel_initWithCString_1, bytes); + return NSObject._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_phys_footprint; + static NSObject stringWithCString_length_( + NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_264(_lib._class_NSString1, + _lib._sel_stringWithCString_length_1, bytes, length); + return NSObject._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_proc_start_abstime; + static NSObject stringWithCString_( + NativeCupertinoHttp _lib, ffi.Pointer bytes) { + final _ret = _lib._objc_msgSend_256( + _lib._class_NSString1, _lib._sel_stringWithCString_1, bytes); + return NSObject._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_proc_exit_abstime; + void getCharacters_(ffi.Pointer buffer) { + return _lib._objc_msgSend_274(_id, _lib._sel_getCharacters_1, buffer); + } - @ffi.Uint64() - external int ri_child_user_time; + /// 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 an URL component or subcomponent string, NOT the entire URL string. Any characters in allowedCharacters outside of the 7-bit ASCII range are ignored. + NSString stringByAddingPercentEncodingWithAllowedCharacters_( + NSCharacterSet? allowedCharacters) { + final _ret = _lib._objc_msgSend_244( + _id, + _lib._sel_stringByAddingPercentEncodingWithAllowedCharacters_1, + allowedCharacters?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_system_time; + /// Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters. + NSString? get stringByRemovingPercentEncoding { + final _ret = + _lib._objc_msgSend_32(_id, _lib._sel_stringByRemovingPercentEncoding1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; + NSString stringByAddingPercentEscapesUsingEncoding_(int enc) { + final _ret = _lib._objc_msgSend_15( + _id, _lib._sel_stringByAddingPercentEscapesUsingEncoding_1, enc); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_interrupt_wkups; + NSString stringByReplacingPercentEscapesUsingEncoding_(int enc) { + final _ret = _lib._objc_msgSend_15( + _id, _lib._sel_stringByReplacingPercentEscapesUsingEncoding_1, enc); + return NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_pageins; + static NSString new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_new1); + return NSString._(_ret, _lib, retain: false, release: true); + } - @ffi.Uint64() - external int ri_child_elapsed_abstime; + static NSString alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_alloc1); + return NSString._(_ret, _lib, retain: false, release: true); + } +} - @ffi.Uint64() - external int ri_diskio_bytesread; +extension StringToNSString on String { + NSString toNSString(NativeCupertinoHttp lib) => NSString(lib, this); +} - @ffi.Uint64() - external int ri_diskio_byteswritten; +typedef unichar = ffi.UnsignedShort; - @ffi.Uint64() - external int ri_cpu_time_qos_default; +class NSCoder extends _ObjCWrapper { + NSCoder._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - @ffi.Uint64() - external int ri_cpu_time_qos_maintenance; + /// Returns a [NSCoder] that points to the same underlying object as [other]. + static NSCoder castFrom(T other) { + return NSCoder._(other._id, other._lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_background; + /// Returns a [NSCoder] that wraps the given raw object pointer. + static NSCoder castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSCoder._(other, lib, retain: retain, release: release); + } - @ffi.Uint64() - external int ri_cpu_time_qos_utility; + /// Returns whether [obj] is an instance of [NSCoder]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCoder1); + } +} - @ffi.Uint64() - external int ri_cpu_time_qos_legacy; +typedef NSRange = _NSRange; - @ffi.Uint64() - external int ri_cpu_time_qos_user_initiated; +class _NSRange extends ffi.Struct { + @NSUInteger() + external int location; - @ffi.Uint64() - external int ri_cpu_time_qos_user_interactive; + @NSUInteger() + external int length; +} - @ffi.Uint64() - external int ri_billed_system_time; +abstract class NSComparisonResult { + static const int NSOrderedAscending = -1; + static const int NSOrderedSame = 0; + static const int NSOrderedDescending = 1; +} - @ffi.Uint64() - external int ri_serviced_system_time; +abstract class NSStringCompareOptions { + static const int NSCaseInsensitiveSearch = 1; + static const int NSLiteralSearch = 2; + static const int NSBackwardsSearch = 4; + static const int NSAnchoredSearch = 8; + static const int NSNumericSearch = 64; + static const int NSDiacriticInsensitiveSearch = 128; + static const int NSWidthInsensitiveSearch = 256; + static const int NSForcedOrderingSearch = 512; + static const int NSRegularExpressionSearch = 1024; +} - @ffi.Uint64() - external int ri_logical_writes; +class NSLocale extends _ObjCWrapper { + NSLocale._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - @ffi.Uint64() - external int ri_lifetime_max_phys_footprint; + /// Returns a [NSLocale] that points to the same underlying object as [other]. + static NSLocale castFrom(T other) { + return NSLocale._(other._id, other._lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_instructions; + /// Returns a [NSLocale] that wraps the given raw object pointer. + static NSLocale castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSLocale._(other, lib, retain: retain, release: release); + } - @ffi.Uint64() - external int ri_cycles; + /// Returns whether [obj] is an instance of [NSLocale]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSLocale1); + } +} - @ffi.Uint64() - external int ri_billed_energy; +class NSCharacterSet extends NSObject { + NSCharacterSet._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - @ffi.Uint64() - external int ri_serviced_energy; + /// Returns a [NSCharacterSet] that points to the same underlying object as [other]. + static NSCharacterSet castFrom(T other) { + return NSCharacterSet._(other._id, other._lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_interval_max_phys_footprint; + /// Returns a [NSCharacterSet] that wraps the given raw object pointer. + static NSCharacterSet castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSCharacterSet._(other, lib, retain: retain, release: release); + } - @ffi.Uint64() - external int ri_runnable_time; + /// Returns whether [obj] is an instance of [NSCharacterSet]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSCharacterSet1); + } - @ffi.Uint64() - external int ri_flags; -} + static NSCharacterSet? getControlCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_controlCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } -class rusage_info_v6 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; + static NSCharacterSet? getWhitespaceCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_whitespaceCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_user_time; + static NSCharacterSet? getWhitespaceAndNewlineCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSCharacterSet1, + _lib._sel_whitespaceAndNewlineCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_system_time; + static NSCharacterSet? getDecimalDigitCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_decimalDigitCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_pkg_idle_wkups; + static NSCharacterSet? getLetterCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_letterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; + static NSCharacterSet? getLowercaseLetterCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_lowercaseLetterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_phys_footprint; + static NSCharacterSet? getUppercaseLetterCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_uppercaseLetterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_proc_start_abstime; + static NSCharacterSet? getNonBaseCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_nonBaseCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_proc_exit_abstime; + static NSCharacterSet? getAlphanumericCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_alphanumericCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_user_time; + static NSCharacterSet? getDecomposableCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_decomposableCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_system_time; + static NSCharacterSet? getIllegalCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_illegalCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; + static NSCharacterSet? getPunctuationCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_punctuationCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_interrupt_wkups; + static NSCharacterSet? getCapitalizedLetterCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_capitalizedLetterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_pageins; + static NSCharacterSet? getSymbolCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_symbolCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_child_elapsed_abstime; + static NSCharacterSet? getNewlineCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_newlineCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: false, release: true); + } - @ffi.Uint64() - external int ri_diskio_bytesread; + static NSCharacterSet characterSetWithRange_( + NativeCupertinoHttp _lib, NSRange aRange) { + final _ret = _lib._objc_msgSend_29( + _lib._class_NSCharacterSet1, _lib._sel_characterSetWithRange_1, aRange); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_diskio_byteswritten; + static NSCharacterSet characterSetWithCharactersInString_( + NativeCupertinoHttp _lib, NSString? aString) { + final _ret = _lib._objc_msgSend_30( + _lib._class_NSCharacterSet1, + _lib._sel_characterSetWithCharactersInString_1, + aString?._id ?? ffi.nullptr); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_default; + static NSCharacterSet characterSetWithBitmapRepresentation_( + NativeCupertinoHttp _lib, NSData? data) { + final _ret = _lib._objc_msgSend_223( + _lib._class_NSCharacterSet1, + _lib._sel_characterSetWithBitmapRepresentation_1, + data?._id ?? ffi.nullptr); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_maintenance; + static NSCharacterSet characterSetWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString? fName) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithContentsOfFile_1, fName?._id ?? ffi.nullptr); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_background; + NSCharacterSet initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_14( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_utility; + bool characterIsMember_(int aCharacter) { + return _lib._objc_msgSend_224( + _id, _lib._sel_characterIsMember_1, aCharacter); + } - @ffi.Uint64() - external int ri_cpu_time_qos_legacy; + NSData? get bitmapRepresentation { + final _ret = _lib._objc_msgSend_51(_id, _lib._sel_bitmapRepresentation1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_user_initiated; + NSCharacterSet? get invertedSet { + final _ret = _lib._objc_msgSend_28(_id, _lib._sel_invertedSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cpu_time_qos_user_interactive; + bool longCharacterIsMember_(int theLongChar) { + return _lib._objc_msgSend_225( + _id, _lib._sel_longCharacterIsMember_1, theLongChar); + } - @ffi.Uint64() - external int ri_billed_system_time; + bool isSupersetOfSet_(NSCharacterSet? theOtherSet) { + return _lib._objc_msgSend_226( + _id, _lib._sel_isSupersetOfSet_1, theOtherSet?._id ?? ffi.nullptr); + } - @ffi.Uint64() - external int ri_serviced_system_time; + bool hasMemberInPlane_(int thePlane) { + return _lib._objc_msgSend_227(_id, _lib._sel_hasMemberInPlane_1, thePlane); + } - @ffi.Uint64() - external int ri_logical_writes; + /// Returns a character set containing the characters allowed in an URL's user subcomponent. + static NSCharacterSet? getURLUserAllowedCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_URLUserAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_lifetime_max_phys_footprint; + /// Returns a character set containing the characters allowed in an URL's password subcomponent. + static NSCharacterSet? getURLPasswordAllowedCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_URLPasswordAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_instructions; + /// Returns a character set containing the characters allowed in an URL's host subcomponent. + static NSCharacterSet? getURLHostAllowedCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_URLHostAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_cycles; + /// Returns a character set containing the characters allowed in an URL's path component. ';' is a legal path character, but it is recommended that it be percent-encoded for best compatibility with NSURL (-stringByAddingPercentEncodingWithAllowedCharacters: will percent-encode any ';' characters if you pass the URLPathAllowedCharacterSet). + static NSCharacterSet? getURLPathAllowedCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_URLPathAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_billed_energy; + /// Returns a character set containing the characters allowed in an URL's query component. + static NSCharacterSet? getURLQueryAllowedCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_URLQueryAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_serviced_energy; + /// Returns a character set containing the characters allowed in an URL's fragment component. + static NSCharacterSet? getURLFragmentAllowedCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSCharacterSet1, _lib._sel_URLFragmentAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_interval_max_phys_footprint; + static NSCharacterSet new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_new1); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); + } - @ffi.Uint64() - external int ri_runnable_time; + static NSCharacterSet alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_alloc1); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); + } +} - @ffi.Uint64() - external int ri_flags; +class NSData extends NSObject { + NSData._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - @ffi.Uint64() - external int ri_user_ptime; + /// Returns a [NSData] that points to the same underlying object as [other]. + static NSData castFrom(T other) { + return NSData._(other._id, other._lib, retain: true, release: true); + } - @ffi.Uint64() - external int ri_system_ptime; + /// Returns a [NSData] that wraps the given raw object pointer. + static NSData castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSData._(other, lib, retain: retain, release: release); + } - @ffi.Uint64() - external int ri_pinstructions; + /// Returns whether [obj] is an instance of [NSData]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSData1); + } - @ffi.Uint64() - external int ri_pcycles; + int get length { + return _lib._objc_msgSend_12(_id, _lib._sel_length1); + } - @ffi.Uint64() - external int ri_energy_nj; + /// The -bytes method returns a pointer to a contiguous region of memory managed by the receiver. + /// If the regions of memory represented by the receiver are already contiguous, it does so in O(1) time, otherwise it may take longer + /// Using -enumerateByteRangesUsingBlock: will be efficient for both contiguous and discontiguous data. + ffi.Pointer get bytes { + return _lib._objc_msgSend_31(_id, _lib._sel_bytes1); + } - @ffi.Uint64() - external int ri_penergy_nj; + NSString? get description { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @ffi.Array.multi([14]) - external ffi.Array ri_reserved; -} + void getBytes_length_(ffi.Pointer buffer, int length) { + return _lib._objc_msgSend_33( + _id, _lib._sel_getBytes_length_1, buffer, length); + } -class rlimit extends ffi.Struct { - @rlim_t() - external int rlim_cur; + void getBytes_range_(ffi.Pointer buffer, NSRange range) { + return _lib._objc_msgSend_34( + _id, _lib._sel_getBytes_range_1, buffer, range); + } - @rlim_t() - external int rlim_max; -} + bool isEqualToData_(NSData? other) { + return _lib._objc_msgSend_35( + _id, _lib._sel_isEqualToData_1, other?._id ?? ffi.nullptr); + } -typedef rlim_t = __uint64_t; + NSData subdataWithRange_(NSRange range) { + final _ret = + _lib._objc_msgSend_36(_id, _lib._sel_subdataWithRange_1, range); + return NSData._(_ret, _lib, retain: true, release: true); + } -class proc_rlimit_control_wakeupmon extends ffi.Struct { - @ffi.Uint32() - external int wm_flags; + bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_37(_id, _lib._sel_writeToFile_atomically_1, + path?._id ?? ffi.nullptr, useAuxiliaryFile); + } - @ffi.Int32() - external int wm_rate; -} + /// the atomically flag is ignored if the url is not of a type the supports atomic writes + bool writeToURL_atomically_(NSURL? url, bool atomically) { + return _lib._objc_msgSend_161(_id, _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, atomically); + } -typedef id_t = __darwin_id_t; -typedef __darwin_id_t = __uint32_t; + bool writeToFile_options_error_(NSString? path, int writeOptionsMask, + ffi.Pointer> errorPtr) { + return _lib._objc_msgSend_208(_id, _lib._sel_writeToFile_options_error_1, + path?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + } -@ffi.Packed(1) -class _OSUnalignedU16 extends ffi.Struct { - @ffi.Uint16() - external int __val; -} + bool writeToURL_options_error_(NSURL? url, int writeOptionsMask, + ffi.Pointer> errorPtr) { + return _lib._objc_msgSend_209(_id, _lib._sel_writeToURL_options_error_1, + url?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + } -@ffi.Packed(1) -class _OSUnalignedU32 extends ffi.Struct { - @ffi.Uint32() - external int __val; -} + NSRange rangeOfData_options_range_( + NSData? dataToFind, int mask, NSRange searchRange) { + return _lib._objc_msgSend_210(_id, _lib._sel_rangeOfData_options_range_1, + dataToFind?._id ?? ffi.nullptr, mask, searchRange); + } -@ffi.Packed(1) -class _OSUnalignedU64 extends ffi.Struct { - @ffi.Uint64() - external int __val; -} + /// 'block' is called once for each contiguous region of memory in the receiver (once total for contiguous NSDatas), until either all bytes have been enumerated, or the 'stop' parameter is set to YES. + void enumerateByteRangesUsingBlock_(ObjCBlock11 block) { + return _lib._objc_msgSend_211( + _id, _lib._sel_enumerateByteRangesUsingBlock_1, block._id); + } -class wait extends ffi.Opaque {} + static NSData data(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_data1); + return NSData._(_ret, _lib, retain: true, release: true); + } -class div_t extends ffi.Struct { - @ffi.Int() - external int quot; + static NSData dataWithBytes_length_( + NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_212( + _lib._class_NSData1, _lib._sel_dataWithBytes_length_1, bytes, length); + return NSData._(_ret, _lib, retain: true, release: true); + } - @ffi.Int() - external int rem; -} + static NSData dataWithBytesNoCopy_length_( + NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_212(_lib._class_NSData1, + _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); + return NSData._(_ret, _lib, retain: false, release: true); + } -class ldiv_t extends ffi.Struct { - @ffi.Long() - external int quot; + static NSData dataWithBytesNoCopy_length_freeWhenDone_( + NativeCupertinoHttp _lib, + ffi.Pointer bytes, + int length, + bool b) { + final _ret = _lib._objc_msgSend_213(_lib._class_NSData1, + _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSData._(_ret, _lib, retain: false, release: true); + } - @ffi.Long() - external int rem; -} + static NSData dataWithContentsOfFile_options_error_( + NativeCupertinoHttp _lib, + NSString? path, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_214( + _lib._class_NSData1, + _lib._sel_dataWithContentsOfFile_options_error_1, + path?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSData._(_ret, _lib, retain: true, release: true); + } -class lldiv_t extends ffi.Struct { - @ffi.LongLong() - external int quot; + static NSData dataWithContentsOfURL_options_error_( + NativeCupertinoHttp _lib, + NSURL? url, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_215( + _lib._class_NSData1, + _lib._sel_dataWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSData._(_ret, _lib, retain: true, release: true); + } - @ffi.LongLong() - external int rem; -} + static NSData dataWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSData1, + _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } -class _ObjCBlockBase implements ffi.Finalizable { - final ffi.Pointer<_ObjCBlock> _id; - final NativeCupertinoHttp _lib; - bool _pendingRelease; + static NSData dataWithContentsOfURL_(NativeCupertinoHttp _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_201(_lib._class_NSData1, + _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } - _ObjCBlockBase._(this._id, this._lib, - {bool retain = false, bool release = false}) - : _pendingRelease = release { - if (retain) { - _lib._Block_copy(_id.cast()); - } - if (release) { - _lib._objc_releaseFinalizer2.attach(this, _id.cast(), detach: this); - } + NSData initWithBytes_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_212( + _id, _lib._sel_initWithBytes_length_1, bytes, length); + return NSData._(_ret, _lib, retain: true, release: true); } - /// Releases the reference to the underlying ObjC block held by this wrapper. - /// Throws a StateError if this wrapper doesn't currently hold a reference. - void release() { - if (_pendingRelease) { - _pendingRelease = false; - _lib._Block_release(_id.cast()); - _lib._objc_releaseFinalizer2.detach(this); - } else { - throw StateError( - 'Released an ObjC block that was unowned or already released.'); - } + NSData initWithBytesNoCopy_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_212( + _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); + return NSData._(_ret, _lib, retain: false, release: true); } - @override - bool operator ==(Object other) { - return other is _ObjCBlockBase && _id == other._id; + NSData initWithBytesNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, int length, bool b) { + final _ret = _lib._objc_msgSend_213(_id, + _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSData._(_ret, _lib, retain: false, release: true); } - @override - int get hashCode => _id.hashCode; -} + NSData initWithBytesNoCopy_length_deallocator_( + ffi.Pointer bytes, int length, ObjCBlock12 deallocator) { + final _ret = _lib._objc_msgSend_216( + _id, + _lib._sel_initWithBytesNoCopy_length_deallocator_1, + bytes, + length, + deallocator._id); + return NSData._(_ret, _lib, retain: false, release: true); + } -void _ObjCBlock_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block) { - return block.ref.target - .cast>() - .asFunction()(); -} - -final _ObjCBlock_closureRegistry = {}; -int _ObjCBlock_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_registerClosure(Function fn) { - final id = ++_ObjCBlock_closureRegistryIndex; - _ObjCBlock_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_closureTrampoline(ffi.Pointer<_ObjCBlock> block) { - return _ObjCBlock_closureRegistry[block.ref.target.address]!(); -} - -class ObjCBlock extends _ObjCBlockBase { - ObjCBlock._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock.fromFunctionPointer(NativeCupertinoHttp lib, - ffi.Pointer> ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock.fromFunction(NativeCupertinoHttp lib, void Function() fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock_closureTrampoline) - .cast(), - _ObjCBlock_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call() { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>>() - .asFunction block)>()(_id); + NSData initWithContentsOfFile_options_error_(NSString? path, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_214( + _id, + _lib._sel_initWithContentsOfFile_options_error_1, + path?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSData._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -class _ObjCBlockDesc extends ffi.Struct { - @ffi.UnsignedLong() - external int reserved; - - @ffi.UnsignedLong() - external int size; - - external ffi.Pointer copy_helper; - - external ffi.Pointer dispose_helper; - - external ffi.Pointer signature; -} - -class _ObjCBlock extends ffi.Struct { - external ffi.Pointer isa; - - @ffi.Int() - external int flags; - - @ffi.Int() - external int reserved; - - external ffi.Pointer invoke; - - external ffi.Pointer<_ObjCBlockDesc> descriptor; - - external ffi.Pointer target; -} - -int _ObjCBlock1_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - int Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock1_closureRegistry = {}; -int _ObjCBlock1_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock1_registerClosure(Function fn) { - final id = ++_ObjCBlock1_closureRegistryIndex; - _ObjCBlock1_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -int _ObjCBlock1_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock1_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock1 extends _ObjCBlockBase { - ObjCBlock1._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock1.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer arg0, ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock1_fnPtrTrampoline, 0) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + NSData initWithContentsOfURL_options_error_(NSURL? url, int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_215( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSData._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock1.fromFunction(NativeCupertinoHttp lib, - int Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock1_closureTrampoline, 0) - .cast(), - _ObjCBlock1_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - int call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - int Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + NSData initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + NSData initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_201( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } -typedef dev_t = __darwin_dev_t; -typedef __darwin_dev_t = __int32_t; -typedef mode_t = __darwin_mode_t; -typedef __darwin_mode_t = __uint16_t; -typedef __uint16_t = ffi.UnsignedShort; + NSData initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_217( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } -class fd_set extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array<__int32_t> fds_bits; -} + static NSData dataWithData_(NativeCupertinoHttp _lib, NSData? data) { + final _ret = _lib._objc_msgSend_217(_lib._class_NSData1, + _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } -class objc_class extends ffi.Opaque {} + /// Create an NSData from a Base-64 encoded NSString using the given options. By default, returns nil when the input is not recognized as valid Base-64. + NSData initWithBase64EncodedString_options_( + NSString? base64String, int options) { + final _ret = _lib._objc_msgSend_218( + _id, + _lib._sel_initWithBase64EncodedString_options_1, + base64String?._id ?? ffi.nullptr, + options); + return NSData._(_ret, _lib, retain: true, release: true); + } -class objc_object extends ffi.Struct { - external ffi.Pointer isa; -} + /// Create a Base-64 encoded NSString from the receiver's contents using the given options. + NSString base64EncodedStringWithOptions_(int options) { + final _ret = _lib._objc_msgSend_219( + _id, _lib._sel_base64EncodedStringWithOptions_1, options); + return NSString._(_ret, _lib, retain: true, release: true); + } -class ObjCObject extends ffi.Opaque {} + /// Create an NSData from a Base-64, UTF-8 encoded NSData. By default, returns nil when the input is not recognized as valid Base-64. + NSData initWithBase64EncodedData_options_(NSData? base64Data, int options) { + final _ret = _lib._objc_msgSend_220( + _id, + _lib._sel_initWithBase64EncodedData_options_1, + base64Data?._id ?? ffi.nullptr, + options); + return NSData._(_ret, _lib, retain: true, release: true); + } -class objc_selector extends ffi.Opaque {} + /// Create a Base-64, UTF-8 encoded NSData from the receiver's contents using the given options. + NSData base64EncodedDataWithOptions_(int options) { + final _ret = _lib._objc_msgSend_221( + _id, _lib._sel_base64EncodedDataWithOptions_1, options); + return NSData._(_ret, _lib, retain: true, release: true); + } -class _malloc_zone_t extends ffi.Opaque {} + /// These methods return a compressed or decompressed version of the receiver using the specified algorithm. + NSData decompressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_222(_id, + _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); + return NSData._(_ret, _lib, retain: true, release: true); + } -class ObjCSel extends ffi.Opaque {} + NSData compressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_222( + _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); + return NSData._(_ret, _lib, retain: true, release: true); + } -typedef objc_objectptr_t = ffi.Pointer; + void getBytes_(ffi.Pointer buffer) { + return _lib._objc_msgSend_59(_id, _lib._sel_getBytes_1, buffer); + } -class _NSZone extends ffi.Opaque {} + static NSObject dataWithContentsOfMappedFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSData1, + _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } -class _ObjCWrapper implements ffi.Finalizable { - final ffi.Pointer _id; - final NativeCupertinoHttp _lib; - bool _pendingRelease; + NSObject initWithContentsOfMappedFile_(NSString? path) { + final _ret = _lib._objc_msgSend_42(_id, + _lib._sel_initWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } - _ObjCWrapper._(this._id, this._lib, - {bool retain = false, bool release = false}) - : _pendingRelease = release { - if (retain) { - _lib._objc_retain(_id.cast()); - } - if (release) { - _lib._objc_releaseFinalizer11.attach(this, _id.cast(), detach: this); - } + /// These methods first appeared in NSData.h on OS X 10.9 and iOS 7.0. They are deprecated in the same releases in favor of the methods in the NSDataBase64Encoding category. However, these methods have existed for several releases, so they may be used for applications targeting releases prior to OS X 10.9 and iOS 7.0. + NSObject initWithBase64Encoding_(NSString? base64String) { + final _ret = _lib._objc_msgSend_42(_id, _lib._sel_initWithBase64Encoding_1, + base64String?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - /// Releases the reference to the underlying ObjC object held by this wrapper. - /// Throws a StateError if this wrapper doesn't currently hold a reference. - void release() { - if (_pendingRelease) { - _pendingRelease = false; - _lib._objc_release(_id.cast()); - _lib._objc_releaseFinalizer11.detach(this); - } else { - throw StateError( - 'Released an ObjC object that was unowned or already released.'); - } + NSString base64Encoding() { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_base64Encoding1); + return NSString._(_ret, _lib, retain: true, release: true); } - @override - bool operator ==(Object other) { - return other is _ObjCWrapper && _id == other._id; + static NSData new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_new1); + return NSData._(_ret, _lib, retain: false, release: true); } - @override - int get hashCode => _id.hashCode; - ffi.Pointer get pointer => _id; + static NSData alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_alloc1); + return NSData._(_ret, _lib, retain: false, release: true); + } } -class NSObject extends _ObjCWrapper { - NSObject._(ffi.Pointer id, NativeCupertinoHttp lib, +class NSURL extends NSObject { + NSURL._(ffi.Pointer id, NativeCupertinoHttp lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSObject] that points to the same underlying object as [other]. - static NSObject castFrom(T other) { - return NSObject._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSURL] that points to the same underlying object as [other]. + static NSURL castFrom(T other) { + return NSURL._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSObject] that wraps the given raw object pointer. - static NSObject castFromPointer( + /// Returns a [NSURL] that wraps the given raw object pointer. + static NSURL castFromPointer( NativeCupertinoHttp lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSObject._(other, lib, retain: retain, release: release); + return NSURL._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSObject]. + /// Returns whether [obj] is an instance of [NSURL]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSObject1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURL1); } - static void load(NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); + /// this call percent-encodes both the host and path, so this cannot be used to set a username/password or port in the hostname part or with a IPv6 '[...]' type address. NSURLComponents handles IPv6 addresses correctly. + NSURL initWithScheme_host_path_( + NSString? scheme, NSString? host, NSString? path) { + final _ret = _lib._objc_msgSend_38( + _id, + _lib._sel_initWithScheme_host_path_1, + scheme?._id ?? ffi.nullptr, + host?._id ?? ffi.nullptr, + path?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - static void initialize(NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); + /// Initializes a newly created file NSURL referencing the local file or directory at path, relative to a base URL. + NSURL initFileURLWithPath_isDirectory_relativeToURL_( + NSString? path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_39( + _id, + _lib._sel_initFileURLWithPath_isDirectory_relativeToURL_1, + path?._id ?? ffi.nullptr, + isDir, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - NSObject init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Better to use initFileURLWithPath:isDirectory:relativeToURL: if you know if the path is a directory vs non-directory, as it saves an I/O. + NSURL initFileURLWithPath_relativeToURL_(NSString? path, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_40( + _id, + _lib._sel_initFileURLWithPath_relativeToURL_1, + path?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSObject new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_new1); - return NSObject._(_ret, _lib, retain: false, release: true); + NSURL initFileURLWithPath_isDirectory_(NSString? path, bool isDir) { + final _ret = _lib._objc_msgSend_41( + _id, + _lib._sel_initFileURLWithPath_isDirectory_1, + path?._id ?? ffi.nullptr, + isDir); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSObject allocWithZone_( - NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_allocWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); + /// Better to use initFileURLWithPath:isDirectory: if you know if the path is a directory vs non-directory, as it saves an i/o. + NSURL initFileURLWithPath_(NSString? path) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initFileURLWithPath_1, path?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSObject alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); + /// Initializes and returns a newly created file NSURL referencing the local file or directory at path, relative to a base URL. + static NSURL fileURLWithPath_isDirectory_relativeToURL_( + NativeCupertinoHttp _lib, NSString? path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_43( + _lib._class_NSURL1, + _lib._sel_fileURLWithPath_isDirectory_relativeToURL_1, + path?._id ?? ffi.nullptr, + isDir, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - void dealloc() { - return _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); + /// Better to use fileURLWithPath:isDirectory:relativeToURL: if you know if the path is a directory vs non-directory, as it saves an I/O. + static NSURL fileURLWithPath_relativeToURL_( + NativeCupertinoHttp _lib, NSString? path, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_44( + _lib._class_NSURL1, + _lib._sel_fileURLWithPath_relativeToURL_1, + path?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - void finalize() { - return _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + static NSURL fileURLWithPath_isDirectory_( + NativeCupertinoHttp _lib, NSString? path, bool isDir) { + final _ret = _lib._objc_msgSend_45( + _lib._class_NSURL1, + _lib._sel_fileURLWithPath_isDirectory_1, + path?._id ?? ffi.nullptr, + isDir); + return NSURL._(_ret, _lib, retain: true, release: true); } - NSObject copy() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_copy1); - return NSObject._(_ret, _lib, retain: false, release: true); + /// Better to use fileURLWithPath:isDirectory: if you know if the path is a directory vs non-directory, as it saves an i/o. + static NSURL fileURLWithPath_(NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_46(_lib._class_NSURL1, + _lib._sel_fileURLWithPath_1, path?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - NSObject mutableCopy() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_mutableCopy1); - return NSObject._(_ret, _lib, retain: false, release: true); + /// Initializes a newly created URL referencing the local file or directory at the file system representation of the path. File system representation is a null-terminated C string with canonical UTF-8 encoding. + NSURL initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( + ffi.Pointer path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_47( + _id, + _lib._sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, + path, + isDir, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSObject copyWithZone_( - NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_copyWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); + /// Initializes and returns a newly created URL referencing the local file or directory at the file system representation of the path. File system representation is a null-terminated C string with canonical UTF-8 encoding. + static NSURL fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( + NativeCupertinoHttp _lib, + ffi.Pointer path, + bool isDir, + NSURL? baseURL) { + final _ret = _lib._objc_msgSend_48( + _lib._class_NSURL1, + _lib._sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, + path, + isDir, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSObject mutableCopyWithZone_( - NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_mutableCopyWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); + /// These methods expect their string arguments to contain any percent escape codes that are necessary. It is an error for URLString to be nil. + NSURL initWithString_(NSString? URLString) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithString_1, URLString?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - static bool instancesRespondToSelector_( - NativeCupertinoHttp _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSObject1, - _lib._sel_instancesRespondToSelector_1, aSelector); + NSURL initWithString_relativeToURL_(NSString? URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_40( + _id, + _lib._sel_initWithString_relativeToURL_1, + URLString?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - static bool conformsToProtocol_( - NativeCupertinoHttp _lib, Protocol? protocol) { - return _lib._objc_msgSend_5(_lib._class_NSObject1, - _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); + static NSURL URLWithString_(NativeCupertinoHttp _lib, NSString? URLString) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSURL1, + _lib._sel_URLWithString_1, URLString?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - IMP methodForSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); + static NSURL URLWithString_relativeToURL_( + NativeCupertinoHttp _lib, NSString? URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_40( + _lib._class_NSURL1, + _lib._sel_URLWithString_relativeToURL_1, + URLString?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - static IMP instanceMethodForSelector_( - NativeCupertinoHttp _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_6(_lib._class_NSObject1, - _lib._sel_instanceMethodForSelector_1, aSelector); + /// Initializes a newly created NSURL using the contents of the given data, relative to a base URL. If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected. + NSURL initWithDataRepresentation_relativeToURL_( + NSData? data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_49( + _id, + _lib._sel_initWithDataRepresentation_relativeToURL_1, + data?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - void doesNotRecognizeSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( - _id, _lib._sel_doesNotRecognizeSelector_1, aSelector); - } - - NSObject forwardingTargetForSelector_(ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_8( - _id, _lib._sel_forwardingTargetForSelector_1, aSelector); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void forwardInvocation_(NSInvocation? anInvocation) { - return _lib._objc_msgSend_9( - _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); + /// Initializes and returns a newly created NSURL using the contents of the given data, relative to a base URL. If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected. + static NSURL URLWithDataRepresentation_relativeToURL_( + NativeCupertinoHttp _lib, NSData? data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_50( + _lib._class_NSURL1, + _lib._sel_URLWithDataRepresentation_relativeToURL_1, + data?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - NSMethodSignature methodSignatureForSelector_( - ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_10( - _id, _lib._sel_methodSignatureForSelector_1, aSelector); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + /// Initializes a newly created absolute NSURL using the contents of the given data, relative to a base URL. If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected. + NSURL initAbsoluteURLWithDataRepresentation_relativeToURL_( + NSData? data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_49( + _id, + _lib._sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1, + data?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSMethodSignature instanceMethodSignatureForSelector_( - NativeCupertinoHttp _lib, ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_10(_lib._class_NSObject1, - _lib._sel_instanceMethodSignatureForSelector_1, aSelector); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + /// Initializes and returns a newly created absolute NSURL using the contents of the given data, relative to a base URL. If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected. + static NSURL absoluteURLWithDataRepresentation_relativeToURL_( + NativeCupertinoHttp _lib, NSData? data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_50( + _lib._class_NSURL1, + _lib._sel_absoluteURLWithDataRepresentation_relativeToURL_1, + data?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - bool allowsWeakReference() { - return _lib._objc_msgSend_11(_id, _lib._sel_allowsWeakReference1); + /// Returns the data representation of the URL's relativeString. If the URL was initialized with -initWithData:relativeToURL:, the data representation returned are the same bytes as those used at initialization; otherwise, the data representation returned are the bytes of the relativeString encoded with NSUTF8StringEncoding. + NSData? get dataRepresentation { + final _ret = _lib._objc_msgSend_51(_id, _lib._sel_dataRepresentation1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - bool retainWeakReference() { - return _lib._objc_msgSend_11(_id, _lib._sel_retainWeakReference1); + NSString? get absoluteString { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_absoluteString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static bool isSubclassOfClass_(NativeCupertinoHttp _lib, NSObject aClass) { - return _lib._objc_msgSend_0( - _lib._class_NSObject1, _lib._sel_isSubclassOfClass_1, aClass._id); + /// The relative portion of a URL. If baseURL is nil, or if the receiver is itself absolute, this is the same as absoluteString + NSString? get relativeString { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_relativeString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static bool resolveClassMethod_( - NativeCupertinoHttp _lib, ffi.Pointer sel) { - return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveClassMethod_1, sel); + /// may be nil. + NSURL? get baseURL { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_baseURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static bool resolveInstanceMethod_( - NativeCupertinoHttp _lib, ffi.Pointer sel) { - return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); + /// if the receiver is itself absolute, this will return self. + NSURL? get absoluteURL { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_absoluteURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static int hash(NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_12(_lib._class_NSObject1, _lib._sel_hash1); + /// Any URL is composed of these two basic pieces. The full URL would be the concatenation of [myURL scheme], ':', [myURL resourceSpecifier] + NSString? get scheme { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_scheme1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSObject superclass(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_superclass1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString? get resourceSpecifier { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_resourceSpecifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSObject class1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_class1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// If the URL conforms to rfc 1808 (the most common form of URL), the following accessors will return the various components; otherwise they return nil. The litmus test for conformance is as recommended in RFC 1808 - whether the first two characters of resourceSpecifier is @"//". In all cases, they return the component's value after resolving the receiver against its base URL. + NSString? get host { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_host1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString description(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_32(_lib._class_NSObject1, _lib._sel_description1); - return NSString._(_ret, _lib, retain: true, release: true); + NSNumber? get port { + final _ret = _lib._objc_msgSend_89(_id, _lib._sel_port1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - static NSString debugDescription(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_32( - _lib._class_NSObject1, _lib._sel_debugDescription1); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? get user { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_user1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static int version(NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_81(_lib._class_NSObject1, _lib._sel_version1); + NSString? get password { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_password1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static void setVersion_(NativeCupertinoHttp _lib, int aVersion) { - return _lib._objc_msgSend_279( - _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); + NSString? get path { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_path1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSObject get classForCoder { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForCoder1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString? get fragment { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_fragment1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSObject replacementObjectForCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_replacementObjectForCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString? get parameterString { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_parameterString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSObject awakeAfterUsingCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_awakeAfterUsingCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); + NSString? get query { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_query1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static void poseAsClass_(NativeCupertinoHttp _lib, NSObject aClass) { - return _lib._objc_msgSend_200( - _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); + /// The same as path if baseURL is nil + NSString? get relativePath { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_relativePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSObject get autoContentAccessingProxy { - final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_autoContentAccessingProxy1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Determines if a given URL string's path represents a directory (i.e. the path component in the URL string ends with a '/' character). This does not check the resource the URL refers to. + bool get hasDirectoryPath { + return _lib._objc_msgSend_11(_id, _lib._sel_hasDirectoryPath1); } - void URL_resourceDataDidBecomeAvailable_(NSURL? sender, NSData? newBytes) { - return _lib._objc_msgSend_280( + /// Returns the URL's path in file system representation. File system representation is a null-terminated C string with canonical UTF-8 encoding. + bool getFileSystemRepresentation_maxLength_( + ffi.Pointer buffer, int maxBufferLength) { + return _lib._objc_msgSend_90( _id, - _lib._sel_URL_resourceDataDidBecomeAvailable_1, - sender?._id ?? ffi.nullptr, - newBytes?._id ?? ffi.nullptr); + _lib._sel_getFileSystemRepresentation_maxLength_1, + buffer, + maxBufferLength); } - void URLResourceDidFinishLoading_(NSURL? sender) { - return _lib._objc_msgSend_281(_id, _lib._sel_URLResourceDidFinishLoading_1, - sender?._id ?? ffi.nullptr); + /// Returns the URL's path in file system representation. File system representation is a null-terminated C string with canonical UTF-8 encoding. The returned C string will be automatically freed just as a returned object would be released; your code should copy the representation or use getFileSystemRepresentation:maxLength: if it needs to store the representation outside of the autorelease context in which the representation is created. + ffi.Pointer get fileSystemRepresentation { + return _lib._objc_msgSend_53(_id, _lib._sel_fileSystemRepresentation1); } - void URLResourceDidCancelLoading_(NSURL? sender) { - return _lib._objc_msgSend_281(_id, _lib._sel_URLResourceDidCancelLoading_1, - sender?._id ?? ffi.nullptr); + /// Whether the scheme is file:; if [myURL isFileURL] is YES, then [myURL path] is suitable for input into NSFileManager or NSPathUtilities. + bool get fileURL { + return _lib._objc_msgSend_11(_id, _lib._sel_isFileURL1); } - void URL_resourceDidFailLoadingWithReason_(NSURL? sender, NSString? reason) { - return _lib._objc_msgSend_282( - _id, - _lib._sel_URL_resourceDidFailLoadingWithReason_1, - sender?._id ?? ffi.nullptr, - reason?._id ?? ffi.nullptr); + NSURL? get standardizedURL { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_standardizedURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - /// Given that an error alert has been presented document-modally to the user, and the user has chosen one of the error's recovery options, attempt recovery from the error, and send the selected message to the specified delegate. The option index is an index into the error's array of localized recovery options. The method selected by didRecoverSelector must have the same signature as: - /// - /// - (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_( - NSError? error, - int recoveryOptionIndex, - NSObject delegate, - ffi.Pointer didRecoverSelector, - ffi.Pointer contextInfo) { - return _lib._objc_msgSend_283( - _id, - _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, - error?._id ?? ffi.nullptr, - recoveryOptionIndex, - delegate._id, - didRecoverSelector, - contextInfo); + /// Returns whether the URL's resource exists and is reachable. This method synchronously checks if the resource's backing store is reachable. Checking reachability is appropriate when making decisions that do not require other immediate operations on the resource, e.g. periodic maintenance of UI state that depends on the existence of a specific document. When performing operations such as opening a file or copying resource properties, it is more efficient to simply try the operation and handle failures. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. For other URL types, NO is returned. Symbol is present in iOS 4, but performs no operation. + bool checkResourceIsReachableAndReturnError_( + ffi.Pointer> error) { + return _lib._objc_msgSend_183( + _id, _lib._sel_checkResourceIsReachableAndReturnError_1, error); } - /// Given that an error alert has been presented applicaton-modally to the user, and the user has chosen one of the error's recovery options, attempt recovery from the error, and return YES if error recovery was completely successful, NO otherwise. The recovery option index is an index into the error's array of localized recovery options. - bool attemptRecoveryFromError_optionIndex_( - NSError? error, int recoveryOptionIndex) { - return _lib._objc_msgSend_284( - _id, - _lib._sel_attemptRecoveryFromError_optionIndex_1, - error?._id ?? ffi.nullptr, - recoveryOptionIndex); + /// Returns whether the URL is a file reference URL. Symbol is present in iOS 4, but performs no operation. + bool isFileReferenceURL() { + return _lib._objc_msgSend_11(_id, _lib._sel_isFileReferenceURL1); } -} -typedef instancetype = ffi.Pointer; - -class Protocol extends _ObjCWrapper { - Protocol._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [Protocol] that points to the same underlying object as [other]. - static Protocol castFrom(T other) { - return Protocol._(other._id, other._lib, retain: true, release: true); + /// Returns a file reference URL that refers to the same resource as a specified file URL. File reference URLs use a URL path syntax that identifies a file system object by reference, not by path. This form of file URL remains valid when the file system path of the URL’s underlying resource changes. An error will occur if the url parameter is not a file URL. File reference URLs cannot be created to file system objects which do not exist or are not reachable. In some areas of the file system hierarchy, file reference URLs cannot be generated to the leaf node of the URL path. A file reference URL's path should never be persistently stored because is not valid across system restarts, and across remounts of volumes -- if you want to create a persistent reference to a file system object, use a bookmark (see -bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:). Symbol is present in iOS 4, but performs no operation. + NSURL fileReferenceURL() { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_fileReferenceURL1); + return NSURL._(_ret, _lib, retain: true, release: true); } - /// Returns a [Protocol] that wraps the given raw object pointer. - static Protocol castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return Protocol._(other, lib, retain: retain, release: release); + /// Returns a file path URL that refers to the same resource as a specified URL. File path URLs use a file system style path. An error will occur if the url parameter is not a file URL. A file reference URL's resource must exist and be reachable to be converted to a file path URL. Symbol is present in iOS 4, but performs no operation. + NSURL? get filePathURL { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_filePathURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [Protocol]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_Protocol1); + /// Returns the resource value identified by a given resource key. This method first checks if the URL object already caches the resource value. If so, it returns the cached resource value to the caller. If not, then this method synchronously obtains the resource value from the backing store, adds the resource value to the URL object's cache, and returns the resource value to the caller. The type of the resource value varies by resource property (see resource key definitions). If this method returns YES and value is populated with nil, it means the resource property is not available for the specified resource and no errors occurred when determining the resource property was not available. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation. + bool getResourceValue_forKey_error_( + ffi.Pointer> value, + NSURLResourceKey key, + ffi.Pointer> error) { + return _lib._objc_msgSend_184( + _id, _lib._sel_getResourceValue_forKey_error_1, value, key, error); } -} - -typedef IMP = ffi.Pointer>; - -class NSInvocation extends _ObjCWrapper { - NSInvocation._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSInvocation] that points to the same underlying object as [other]. - static NSInvocation castFrom(T other) { - return NSInvocation._(other._id, other._lib, retain: true, release: true); + /// Returns the resource values identified by specified array of resource keys. This method first checks if the URL object already caches the resource values. If so, it returns the cached resource values to the caller. If not, then this method synchronously obtains the resource values from the backing store, adds the resource values to the URL object's cache, and returns the resource values to the caller. The type of the resource values vary by property (see resource key definitions). If the result dictionary does not contain a resource value for one or more of the requested resource keys, it means those resource properties are not available for the specified resource and no errors occurred when determining those resource properties were not available. If this method returns NULL, the optional error is populated. This method is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation. + NSDictionary resourceValuesForKeys_error_( + NSArray? keys, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_185( + _id, + _lib._sel_resourceValuesForKeys_error_1, + keys?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSInvocation] that wraps the given raw object pointer. - static NSInvocation castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSInvocation._(other, lib, retain: retain, release: release); + /// Sets the resource value identified by a given resource key. This method writes the new resource value out to the backing store. Attempts to set a read-only resource property or to set a resource property not supported by the resource are ignored and are not considered errors. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation. + bool setResourceValue_forKey_error_(NSObject value, NSURLResourceKey key, + ffi.Pointer> error) { + return _lib._objc_msgSend_186( + _id, _lib._sel_setResourceValue_forKey_error_1, value._id, key, error); } - /// Returns whether [obj] is an instance of [NSInvocation]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInvocation1); + /// Sets any number of resource values of a URL's resource. This method writes the new resource values out to the backing store. Attempts to set read-only resource properties or to set resource properties not supported by the resource are ignored and are not considered errors. If an error occurs after some resource properties have been successfully changed, the userInfo dictionary in the returned error contains an array of resource keys that were not set with the key kCFURLKeysOfUnsetValuesKey. The order in which the resource values are set is not defined. If you need to guarantee the order resource values are set, you should make multiple requests to this method or to -setResourceValue:forKey:error: to guarantee the order. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation. + bool setResourceValues_error_( + NSDictionary? keyedValues, ffi.Pointer> error) { + return _lib._objc_msgSend_187(_id, _lib._sel_setResourceValues_error_1, + keyedValues?._id ?? ffi.nullptr, error); } -} - -class NSMethodSignature extends _ObjCWrapper { - NSMethodSignature._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMethodSignature] that points to the same underlying object as [other]. - static NSMethodSignature castFrom(T other) { - return NSMethodSignature._(other._id, other._lib, - retain: true, release: true); + /// Removes the cached resource value identified by a given resource value key from the URL object. Removing a cached resource value may remove other cached resource values because some resource values are cached as a set of values, and because some resource values depend on other resource values (temporary resource values have no dependencies). This method is currently applicable only to URLs for file system resources. + void removeCachedResourceValueForKey_(NSURLResourceKey key) { + return _lib._objc_msgSend_188( + _id, _lib._sel_removeCachedResourceValueForKey_1, key); } - /// Returns a [NSMethodSignature] that wraps the given raw object pointer. - static NSMethodSignature castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMethodSignature._(other, lib, retain: retain, release: release); + /// Removes all cached resource values and all temporary resource values from the URL object. This method is currently applicable only to URLs for file system resources. + void removeAllCachedResourceValues() { + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); } - /// Returns whether [obj] is an instance of [NSMethodSignature]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMethodSignature1); + /// Sets a temporary resource value on the URL object. Temporary resource values are for client use. Temporary resource values exist only in memory and are never written to the resource's backing store. Once set, a temporary resource value can be copied from the URL object with -getResourceValue:forKey:error: or -resourceValuesForKeys:error:. To remove a temporary resource value from the URL object, use -removeCachedResourceValueForKey:. Care should be taken to ensure the key that identifies a temporary resource value is unique and does not conflict with system defined keys (using reverse domain name notation in your temporary resource value keys is recommended). This method is currently applicable only to URLs for file system resources. + void setTemporaryResourceValue_forKey_(NSObject value, NSURLResourceKey key) { + return _lib._objc_msgSend_189( + _id, _lib._sel_setTemporaryResourceValue_forKey_1, value._id, key); } -} - -typedef NSUInteger = ffi.UnsignedLong; -class NSString extends NSObject { - NSString._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + /// Returns bookmark data for the URL, created with specified options and resource values. If this method returns nil, the optional error is populated. + NSData + bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_( + int options, + NSArray? keys, + NSURL? relativeURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_190( + _id, + _lib._sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1, + options, + keys?._id ?? ffi.nullptr, + relativeURL?._id ?? ffi.nullptr, + error); + return NSData._(_ret, _lib, retain: true, release: true); + } - /// Returns a [NSString] that points to the same underlying object as [other]. - static NSString castFrom(T other) { - return NSString._(other._id, other._lib, retain: true, release: true); + /// Initializes a newly created NSURL that refers to a location specified by resolving bookmark data. If this method returns nil, the optional error is populated. + NSURL + initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( + NSData? bookmarkData, + int options, + NSURL? relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_191( + _id, + _lib._sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, + bookmarkData?._id ?? ffi.nullptr, + options, + relativeURL?._id ?? ffi.nullptr, + isStale, + error); + return NSURL._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSString] that wraps the given raw object pointer. - static NSString castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSString._(other, lib, retain: retain, release: release); + /// Creates and Initializes an NSURL that refers to a location specified by resolving bookmark data. If this method returns nil, the optional error is populated. + static NSURL + URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( + NativeCupertinoHttp _lib, + NSData? bookmarkData, + int options, + NSURL? relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_191( + _lib._class_NSURL1, + _lib._sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, + bookmarkData?._id ?? ffi.nullptr, + options, + relativeURL?._id ?? ffi.nullptr, + isStale, + error); + return NSURL._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSString]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSString1); + /// Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data. If the result dictionary does not contain a resource value for one or more of the requested resource keys, it means those resource properties are not available in the bookmark data. + static NSDictionary resourceValuesForKeys_fromBookmarkData_( + NativeCupertinoHttp _lib, NSArray? keys, NSData? bookmarkData) { + final _ret = _lib._objc_msgSend_192( + _lib._class_NSURL1, + _lib._sel_resourceValuesForKeys_fromBookmarkData_1, + keys?._id ?? ffi.nullptr, + bookmarkData?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - factory NSString(NativeCupertinoHttp _lib, String str) { - final cstr = str.toNativeUtf16(); - final nsstr = stringWithCharacters_length_(_lib, cstr.cast(), str.length); - pkg_ffi.calloc.free(cstr); - return nsstr; + /// Creates an alias file on disk at a specified location with specified bookmark data. bookmarkData must have been created with the NSURLBookmarkCreationSuitableForBookmarkFile option. bookmarkFileURL must either refer to an existing file (which will be overwritten), or to location in an existing directory. If this method returns NO, the optional error is populated. + static bool writeBookmarkData_toURL_options_error_( + NativeCupertinoHttp _lib, + NSData? bookmarkData, + NSURL? bookmarkFileURL, + int options, + ffi.Pointer> error) { + return _lib._objc_msgSend_193( + _lib._class_NSURL1, + _lib._sel_writeBookmarkData_toURL_options_error_1, + bookmarkData?._id ?? ffi.nullptr, + bookmarkFileURL?._id ?? ffi.nullptr, + options, + error); } - @override - String toString() { - final data = - dataUsingEncoding_(0x94000100 /* NSUTF16LittleEndianStringEncoding */); - return data.bytes.cast().toDartString(length: length); + /// Initializes and returns bookmark data derived from an alias file pointed to by a specified URL. If bookmarkFileURL refers to an alias file created prior to OS X v10.6 that contains Alias Manager information but no bookmark data, this method synthesizes bookmark data for the file. If this method returns nil, the optional error is populated. + static NSData bookmarkDataWithContentsOfURL_error_(NativeCupertinoHttp _lib, + NSURL? bookmarkFileURL, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_194( + _lib._class_NSURL1, + _lib._sel_bookmarkDataWithContentsOfURL_error_1, + bookmarkFileURL?._id ?? ffi.nullptr, + error); + return NSData._(_ret, _lib, retain: true, release: true); } - int get length { - return _lib._objc_msgSend_12(_id, _lib._sel_length1); + /// Creates and initializes a NSURL that refers to the location specified by resolving the alias file at url. If the url argument does not refer to an alias file as defined by the NSURLIsAliasFileKey property, the NSURL returned is the same as url argument. This method fails and returns nil if the url argument is unreachable, or if the original file or directory could not be located or is not reachable, or if the original file or directory is on a volume that could not be located or mounted. If this method fails, the optional error is populated. The NSURLBookmarkResolutionWithSecurityScope option is not supported by this method. + static NSURL URLByResolvingAliasFileAtURL_options_error_( + NativeCupertinoHttp _lib, + NSURL? url, + int options, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_195( + _lib._class_NSURL1, + _lib._sel_URLByResolvingAliasFileAtURL_options_error_1, + url?._id ?? ffi.nullptr, + options, + error); + return NSURL._(_ret, _lib, retain: true, release: true); } - int characterAtIndex_(int index) { - return _lib._objc_msgSend_13(_id, _lib._sel_characterAtIndex_1, index); + /// Given a NSURL created by resolving a bookmark data created with security scope, make the resource referenced by the url accessible to the process. When access to this resource is no longer needed the client must call stopAccessingSecurityScopedResource. Each call to startAccessingSecurityScopedResource must be balanced with a call to stopAccessingSecurityScopedResource (Note: this is not reference counted). + bool startAccessingSecurityScopedResource() { + return _lib._objc_msgSend_11( + _id, _lib._sel_startAccessingSecurityScopedResource1); } - @override - NSString init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSString._(_ret, _lib, retain: true, release: true); + /// Revokes the access granted to the url by a prior successful call to startAccessingSecurityScopedResource. + void stopAccessingSecurityScopedResource() { + return _lib._objc_msgSend_1( + _id, _lib._sel_stopAccessingSecurityScopedResource1); } - NSString initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString substringFromIndex_(int from) { - final _ret = - _lib._objc_msgSend_15(_id, _lib._sel_substringFromIndex_1, from); - return NSString._(_ret, _lib, retain: true, release: true); + /// Get resource values from URLs of 'promised' items. A promised item is not guaranteed to have its contents in the file system until you use NSFileCoordinator to perform a coordinated read on its URL, which causes the contents to be downloaded or otherwise generated. Promised item URLs are returned by various APIs, including currently: + /// - NSMetadataQueryUbiquitousDataScope + /// - NSMetadataQueryUbiquitousDocumentsScope + /// - An NSFilePresenter presenting the contents of the directory located by -URLForUbiquitousContainerIdentifier: or a subdirectory thereof + /// + /// The following methods behave identically to their similarly named methods above (-getResourceValue:forKey:error:, etc.), except that they allow you to get resource values and check for presence regardless of whether the promised item's contents currently exist at the URL. You must use these APIs instead of the normal NSURL resource value APIs if and only if any of the following are true: + /// - You are using a URL that you know came directly from one of the above APIs + /// - 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_( + ffi.Pointer> value, + NSURLResourceKey key, + ffi.Pointer> error) { + return _lib._objc_msgSend_184( + _id, + _lib._sel_getPromisedItemResourceValue_forKey_error_1, + value, + key, + error); } - NSString substringToIndex_(int to) { - final _ret = _lib._objc_msgSend_15(_id, _lib._sel_substringToIndex_1, to); - return NSString._(_ret, _lib, retain: true, release: true); + NSDictionary promisedItemResourceValuesForKeys_error_( + NSArray? keys, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_185( + _id, + _lib._sel_promisedItemResourceValuesForKeys_error_1, + keys?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString substringWithRange_(NSRange range) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_substringWithRange_1, range); - return NSString._(_ret, _lib, retain: true, release: true); + bool checkPromisedItemIsReachableAndReturnError_( + ffi.Pointer> error) { + return _lib._objc_msgSend_183( + _id, _lib._sel_checkPromisedItemIsReachableAndReturnError_1, error); } - void getCharacters_range_(ffi.Pointer buffer, NSRange range) { - return _lib._objc_msgSend_17( - _id, _lib._sel_getCharacters_range_1, buffer, range); + /// The following methods work on the path portion of a URL in the same manner that the NSPathUtilities methods on NSString do. + static NSURL fileURLWithPathComponents_( + NativeCupertinoHttp _lib, NSArray? components) { + final _ret = _lib._objc_msgSend_196(_lib._class_NSURL1, + _lib._sel_fileURLWithPathComponents_1, components?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - int compare_(NSString? string) { - return _lib._objc_msgSend_18( - _id, _lib._sel_compare_1, string?._id ?? ffi.nullptr); + NSArray? get pathComponents { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_pathComponents1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - int compare_options_(NSString? string, int mask) { - return _lib._objc_msgSend_19( - _id, _lib._sel_compare_options_1, string?._id ?? ffi.nullptr, mask); + NSString? get lastPathComponent { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_lastPathComponent1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - int compare_options_range_( - NSString? string, int mask, NSRange rangeOfReceiverToCompare) { - return _lib._objc_msgSend_20(_id, _lib._sel_compare_options_range_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare); + NSString? get pathExtension { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_pathExtension1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - int compare_options_range_locale_(NSString? string, int mask, - NSRange rangeOfReceiverToCompare, NSObject locale) { - return _lib._objc_msgSend_21(_id, _lib._sel_compare_options_range_locale_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare, locale._id); + NSURL URLByAppendingPathComponent_(NSString? pathComponent) { + final _ret = _lib._objc_msgSend_46( + _id, + _lib._sel_URLByAppendingPathComponent_1, + pathComponent?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - int caseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_18( - _id, _lib._sel_caseInsensitiveCompare_1, string?._id ?? ffi.nullptr); + NSURL URLByAppendingPathComponent_isDirectory_( + NSString? pathComponent, bool isDirectory) { + final _ret = _lib._objc_msgSend_45( + _id, + _lib._sel_URLByAppendingPathComponent_isDirectory_1, + pathComponent?._id ?? ffi.nullptr, + isDirectory); + return NSURL._(_ret, _lib, retain: true, release: true); } - int localizedCompare_(NSString? string) { - return _lib._objc_msgSend_18( - _id, _lib._sel_localizedCompare_1, string?._id ?? ffi.nullptr); + NSURL? get URLByDeletingLastPathComponent { + final _ret = + _lib._objc_msgSend_52(_id, _lib._sel_URLByDeletingLastPathComponent1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - int localizedCaseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_18( + NSURL URLByAppendingPathExtension_(NSString? pathExtension) { + final _ret = _lib._objc_msgSend_46( _id, - _lib._sel_localizedCaseInsensitiveCompare_1, - string?._id ?? ffi.nullptr); + _lib._sel_URLByAppendingPathExtension_1, + pathExtension?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - int localizedStandardCompare_(NSString? string) { - return _lib._objc_msgSend_18( - _id, _lib._sel_localizedStandardCompare_1, string?._id ?? ffi.nullptr); + NSURL? get URLByDeletingPathExtension { + final _ret = + _lib._objc_msgSend_52(_id, _lib._sel_URLByDeletingPathExtension1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - bool isEqualToString_(NSString? aString) { - return _lib._objc_msgSend_22( - _id, _lib._sel_isEqualToString_1, aString?._id ?? ffi.nullptr); + /// The following methods work only on `file:` scheme URLs; for non-`file:` scheme URLs, these methods return the URL unchanged. + NSURL? get URLByStandardizingPath { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URLByStandardizingPath1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - bool hasPrefix_(NSString? str) { - return _lib._objc_msgSend_22( - _id, _lib._sel_hasPrefix_1, str?._id ?? ffi.nullptr); + NSURL? get URLByResolvingSymlinksInPath { + final _ret = + _lib._objc_msgSend_52(_id, _lib._sel_URLByResolvingSymlinksInPath1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - bool hasSuffix_(NSString? str) { - return _lib._objc_msgSend_22( - _id, _lib._sel_hasSuffix_1, str?._id ?? ffi.nullptr); + /// Blocks to load the data if necessary. If shouldUseCache is YES, then if an equivalent URL has already been loaded and cached, its resource data will be returned immediately. If shouldUseCache is NO, a new load will be started + NSData resourceDataUsingCache_(bool shouldUseCache) { + final _ret = _lib._objc_msgSend_197( + _id, _lib._sel_resourceDataUsingCache_1, shouldUseCache); + return NSData._(_ret, _lib, retain: true, release: true); } - NSString commonPrefixWithString_options_(NSString? str, int mask) { - final _ret = _lib._objc_msgSend_23( + /// Starts an asynchronous load of the data, registering delegate to receive notification. Only one such background load can proceed at a time. + void loadResourceDataNotifyingClient_usingCache_( + NSObject client, bool shouldUseCache) { + return _lib._objc_msgSend_198( _id, - _lib._sel_commonPrefixWithString_options_1, - str?._id ?? ffi.nullptr, - mask); - return NSString._(_ret, _lib, retain: true, release: true); + _lib._sel_loadResourceDataNotifyingClient_usingCache_1, + client._id, + shouldUseCache); } - bool containsString_(NSString? str) { - return _lib._objc_msgSend_22( - _id, _lib._sel_containsString_1, str?._id ?? ffi.nullptr); + NSObject propertyForKey_(NSString? propertyKey) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool localizedCaseInsensitiveContainsString_(NSString? str) { - return _lib._objc_msgSend_22( - _id, - _lib._sel_localizedCaseInsensitiveContainsString_1, - str?._id ?? ffi.nullptr); + /// These attempt to write the given arguments for the resource specified by the URL; they return success or failure + bool setResourceData_(NSData? data) { + return _lib._objc_msgSend_35( + _id, _lib._sel_setResourceData_1, data?._id ?? ffi.nullptr); } - bool localizedStandardContainsString_(NSString? str) { - return _lib._objc_msgSend_22(_id, - _lib._sel_localizedStandardContainsString_1, str?._id ?? ffi.nullptr); + bool setProperty_forKey_(NSObject property, NSString? propertyKey) { + return _lib._objc_msgSend_199(_id, _lib._sel_setProperty_forKey_1, + property._id, propertyKey?._id ?? ffi.nullptr); } - NSRange localizedStandardRangeOfString_(NSString? str) { - return _lib._objc_msgSend_24(_id, - _lib._sel_localizedStandardRangeOfString_1, str?._id ?? ffi.nullptr); + /// Sophisticated clients will want to ask for this, then message the handle directly. If shouldUseCache is NO, a newly instantiated handle is returned, even if an equivalent URL has been loaded + NSURLHandle URLHandleUsingCache_(bool shouldUseCache) { + final _ret = _lib._objc_msgSend_207( + _id, _lib._sel_URLHandleUsingCache_1, shouldUseCache); + return NSURLHandle._(_ret, _lib, retain: true, release: true); } - NSRange rangeOfString_(NSString? searchString) { - return _lib._objc_msgSend_24( - _id, _lib._sel_rangeOfString_1, searchString?._id ?? ffi.nullptr); + static NSURL new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_new1); + return NSURL._(_ret, _lib, retain: false, release: true); } - NSRange rangeOfString_options_(NSString? searchString, int mask) { - return _lib._objc_msgSend_25(_id, _lib._sel_rangeOfString_options_1, - searchString?._id ?? ffi.nullptr, mask); + static NSURL alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_alloc1); + return NSURL._(_ret, _lib, retain: false, release: true); } +} - NSRange rangeOfString_options_range_( - NSString? searchString, int mask, NSRange rangeOfReceiverToSearch) { - return _lib._objc_msgSend_26(_id, _lib._sel_rangeOfString_options_range_1, - searchString?._id ?? ffi.nullptr, mask, rangeOfReceiverToSearch); +class NSNumber extends NSValue { + NSNumber._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSNumber] that points to the same underlying object as [other]. + static NSNumber castFrom(T other) { + return NSNumber._(other._id, other._lib, retain: true, release: true); } - NSRange rangeOfString_options_range_locale_(NSString? searchString, int mask, - NSRange rangeOfReceiverToSearch, NSLocale? locale) { - return _lib._objc_msgSend_27( - _id, - _lib._sel_rangeOfString_options_range_locale_1, - searchString?._id ?? ffi.nullptr, - mask, - rangeOfReceiverToSearch, - locale?._id ?? ffi.nullptr); + /// Returns a [NSNumber] that wraps the given raw object pointer. + static NSNumber castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSNumber._(other, lib, retain: retain, release: release); } - NSRange rangeOfCharacterFromSet_(NSCharacterSet? searchSet) { - return _lib._objc_msgSend_228(_id, _lib._sel_rangeOfCharacterFromSet_1, - searchSet?._id ?? ffi.nullptr); + /// Returns whether [obj] is an instance of [NSNumber]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNumber1); } - NSRange rangeOfCharacterFromSet_options_( - NSCharacterSet? searchSet, int mask) { - return _lib._objc_msgSend_229( - _id, - _lib._sel_rangeOfCharacterFromSet_options_1, - searchSet?._id ?? ffi.nullptr, - mask); + @override + NSNumber initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_14( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSRange rangeOfCharacterFromSet_options_range_( - NSCharacterSet? searchSet, int mask, NSRange rangeOfReceiverToSearch) { - return _lib._objc_msgSend_230( - _id, - _lib._sel_rangeOfCharacterFromSet_options_range_1, - searchSet?._id ?? ffi.nullptr, - mask, - rangeOfReceiverToSearch); + NSNumber initWithChar_(int value) { + final _ret = _lib._objc_msgSend_62(_id, _lib._sel_initWithChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSRange rangeOfComposedCharacterSequenceAtIndex_(int index) { - return _lib._objc_msgSend_231( - _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); + NSNumber initWithUnsignedChar_(int value) { + final _ret = + _lib._objc_msgSend_63(_id, _lib._sel_initWithUnsignedChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSRange rangeOfComposedCharacterSequencesForRange_(NSRange range) { - return _lib._objc_msgSend_232( - _id, _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); + NSNumber initWithShort_(int value) { + final _ret = _lib._objc_msgSend_64(_id, _lib._sel_initWithShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString stringByAppendingString_(NSString? aString) { - final _ret = _lib._objc_msgSend_98( - _id, _lib._sel_stringByAppendingString_1, aString?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSNumber initWithUnsignedShort_(int value) { + final _ret = + _lib._objc_msgSend_65(_id, _lib._sel_initWithUnsignedShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString stringByAppendingFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_98( - _id, _lib._sel_stringByAppendingFormat_1, format?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSNumber initWithInt_(int value) { + final _ret = _lib._objc_msgSend_66(_id, _lib._sel_initWithInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - double get doubleValue { - return _lib._objc_msgSend_85(_id, _lib._sel_doubleValue1); + NSNumber initWithUnsignedInt_(int value) { + final _ret = + _lib._objc_msgSend_67(_id, _lib._sel_initWithUnsignedInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - double get floatValue { - return _lib._objc_msgSend_84(_id, _lib._sel_floatValue1); + NSNumber initWithLong_(int value) { + final _ret = _lib._objc_msgSend_68(_id, _lib._sel_initWithLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - int get intValue { - return _lib._objc_msgSend_79(_id, _lib._sel_intValue1); + NSNumber initWithUnsignedLong_(int value) { + final _ret = + _lib._objc_msgSend_69(_id, _lib._sel_initWithUnsignedLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - int get integerValue { - return _lib._objc_msgSend_81(_id, _lib._sel_integerValue1); + NSNumber initWithLongLong_(int value) { + final _ret = + _lib._objc_msgSend_70(_id, _lib._sel_initWithLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - int get longLongValue { - return _lib._objc_msgSend_82(_id, _lib._sel_longLongValue1); + NSNumber initWithUnsignedLongLong_(int value) { + final _ret = + _lib._objc_msgSend_71(_id, _lib._sel_initWithUnsignedLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - bool get boolValue { - return _lib._objc_msgSend_11(_id, _lib._sel_boolValue1); + NSNumber initWithFloat_(double value) { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_initWithFloat_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString? get uppercaseString { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_uppercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSNumber initWithDouble_(double value) { + final _ret = _lib._objc_msgSend_73(_id, _lib._sel_initWithDouble_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString? get lowercaseString { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_lowercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSNumber initWithBool_(bool value) { + final _ret = _lib._objc_msgSend_74(_id, _lib._sel_initWithBool_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString? get capitalizedString { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_capitalizedString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSNumber initWithInteger_(int value) { + final _ret = _lib._objc_msgSend_68(_id, _lib._sel_initWithInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString? get localizedUppercaseString { + NSNumber initWithUnsignedInteger_(int value) { final _ret = - _lib._objc_msgSend_32(_id, _lib._sel_localizedUppercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_69(_id, _lib._sel_initWithUnsignedInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString? get localizedLowercaseString { - final _ret = - _lib._objc_msgSend_32(_id, _lib._sel_localizedLowercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get charValue { + return _lib._objc_msgSend_75(_id, _lib._sel_charValue1); } - NSString? get localizedCapitalizedString { - final _ret = - _lib._objc_msgSend_32(_id, _lib._sel_localizedCapitalizedString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get unsignedCharValue { + return _lib._objc_msgSend_76(_id, _lib._sel_unsignedCharValue1); } - NSString uppercaseStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_233( - _id, _lib._sel_uppercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + int get shortValue { + return _lib._objc_msgSend_77(_id, _lib._sel_shortValue1); } - NSString lowercaseStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_233( - _id, _lib._sel_lowercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + int get unsignedShortValue { + return _lib._objc_msgSend_78(_id, _lib._sel_unsignedShortValue1); } - NSString capitalizedStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_233(_id, - _lib._sel_capitalizedStringWithLocale_1, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + int get intValue { + return _lib._objc_msgSend_79(_id, _lib._sel_intValue1); } - void getLineStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer lineEndPtr, - ffi.Pointer contentsEndPtr, - NSRange range) { - return _lib._objc_msgSend_234( - _id, - _lib._sel_getLineStart_end_contentsEnd_forRange_1, - startPtr, - lineEndPtr, - contentsEndPtr, - range); + int get unsignedIntValue { + return _lib._objc_msgSend_80(_id, _lib._sel_unsignedIntValue1); } - NSRange lineRangeForRange_(NSRange range) { - return _lib._objc_msgSend_232(_id, _lib._sel_lineRangeForRange_1, range); + int get longValue { + return _lib._objc_msgSend_81(_id, _lib._sel_longValue1); } - void getParagraphStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer parEndPtr, - ffi.Pointer contentsEndPtr, - NSRange range) { - return _lib._objc_msgSend_234( - _id, - _lib._sel_getParagraphStart_end_contentsEnd_forRange_1, - startPtr, - parEndPtr, - contentsEndPtr, - range); + int get unsignedLongValue { + return _lib._objc_msgSend_12(_id, _lib._sel_unsignedLongValue1); } - NSRange paragraphRangeForRange_(NSRange range) { - return _lib._objc_msgSend_232( - _id, _lib._sel_paragraphRangeForRange_1, range); + int get longLongValue { + return _lib._objc_msgSend_82(_id, _lib._sel_longLongValue1); } - void enumerateSubstringsInRange_options_usingBlock_( - NSRange range, int opts, ObjCBlock15 block) { - return _lib._objc_msgSend_235( - _id, - _lib._sel_enumerateSubstringsInRange_options_usingBlock_1, - range, - opts, - block._id); + int get unsignedLongLongValue { + return _lib._objc_msgSend_83(_id, _lib._sel_unsignedLongLongValue1); } - void enumerateLinesUsingBlock_(ObjCBlock16 block) { - return _lib._objc_msgSend_236( - _id, _lib._sel_enumerateLinesUsingBlock_1, block._id); + double get floatValue { + return _lib._objc_msgSend_84(_id, _lib._sel_floatValue1); } - ffi.Pointer get UTF8String { - return _lib._objc_msgSend_53(_id, _lib._sel_UTF8String1); + double get doubleValue { + return _lib._objc_msgSend_85(_id, _lib._sel_doubleValue1); } - int get fastestEncoding { - return _lib._objc_msgSend_12(_id, _lib._sel_fastestEncoding1); + bool get boolValue { + return _lib._objc_msgSend_11(_id, _lib._sel_boolValue1); } - int get smallestEncoding { - return _lib._objc_msgSend_12(_id, _lib._sel_smallestEncoding1); + int get integerValue { + return _lib._objc_msgSend_81(_id, _lib._sel_integerValue1); } - NSData dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { - final _ret = _lib._objc_msgSend_237(_id, - _lib._sel_dataUsingEncoding_allowLossyConversion_1, encoding, lossy); - return NSData._(_ret, _lib, retain: true, release: true); + int get unsignedIntegerValue { + return _lib._objc_msgSend_12(_id, _lib._sel_unsignedIntegerValue1); } - NSData dataUsingEncoding_(int encoding) { - final _ret = - _lib._objc_msgSend_238(_id, _lib._sel_dataUsingEncoding_1, encoding); - return NSData._(_ret, _lib, retain: true, release: true); + NSString? get stringValue { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_stringValue1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool canBeConvertedToEncoding_(int encoding) { - return _lib._objc_msgSend_117( - _id, _lib._sel_canBeConvertedToEncoding_1, encoding); + int compare_(NSNumber? otherNumber) { + return _lib._objc_msgSend_86( + _id, _lib._sel_compare_1, otherNumber?._id ?? ffi.nullptr); } - ffi.Pointer cStringUsingEncoding_(int encoding) { - return _lib._objc_msgSend_239( - _id, _lib._sel_cStringUsingEncoding_1, encoding); + bool isEqualToNumber_(NSNumber? number) { + return _lib._objc_msgSend_87( + _id, _lib._sel_isEqualToNumber_1, number?._id ?? ffi.nullptr); } - bool getCString_maxLength_encoding_( - ffi.Pointer buffer, int maxBufferCount, int encoding) { - return _lib._objc_msgSend_240( - _id, - _lib._sel_getCString_maxLength_encoding_1, - buffer, - maxBufferCount, - encoding); + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_88( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); } - bool getBytes_maxLength_usedLength_encoding_options_range_remainingRange_( - ffi.Pointer buffer, - int maxBufferCount, - ffi.Pointer usedBufferCount, - int encoding, - int options, - NSRange range, - NSRangePointer leftover) { - return _lib._objc_msgSend_241( - _id, - _lib._sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1, - buffer, - maxBufferCount, - usedBufferCount, - encoding, - options, - range, - leftover); + static NSNumber numberWithChar_(NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_62( + _lib._class_NSNumber1, _lib._sel_numberWithChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - int maximumLengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_114( - _id, _lib._sel_maximumLengthOfBytesUsingEncoding_1, enc); + static NSNumber numberWithUnsignedChar_(NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_63( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - int lengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_114( - _id, _lib._sel_lengthOfBytesUsingEncoding_1, enc); + static NSNumber numberWithShort_(NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_64( + _lib._class_NSNumber1, _lib._sel_numberWithShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - static ffi.Pointer getAvailableStringEncodings( - NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_242( - _lib._class_NSString1, _lib._sel_availableStringEncodings1); + static NSNumber numberWithUnsignedShort_( + NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_65( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - static NSString localizedNameOfStringEncoding_( - NativeCupertinoHttp _lib, int encoding) { - final _ret = _lib._objc_msgSend_15(_lib._class_NSString1, - _lib._sel_localizedNameOfStringEncoding_1, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithInt_(NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_66( + _lib._class_NSNumber1, _lib._sel_numberWithInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - static int getDefaultCStringEncoding(NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSString1, _lib._sel_defaultCStringEncoding1); + static NSNumber numberWithUnsignedInt_(NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_67( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString? get decomposedStringWithCanonicalMapping { - final _ret = _lib._objc_msgSend_32( - _id, _lib._sel_decomposedStringWithCanonicalMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithLong_(NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_68( + _lib._class_NSNumber1, _lib._sel_numberWithLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString? get precomposedStringWithCanonicalMapping { - final _ret = _lib._objc_msgSend_32( - _id, _lib._sel_precomposedStringWithCanonicalMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithUnsignedLong_(NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_69( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString? get decomposedStringWithCompatibilityMapping { - final _ret = _lib._objc_msgSend_32( - _id, _lib._sel_decomposedStringWithCompatibilityMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithLongLong_(NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_70( + _lib._class_NSNumber1, _lib._sel_numberWithLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString? get precomposedStringWithCompatibilityMapping { - final _ret = _lib._objc_msgSend_32( - _id, _lib._sel_precomposedStringWithCompatibilityMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithUnsignedLongLong_( + NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_71( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSArray componentsSeparatedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_159(_id, - _lib._sel_componentsSeparatedByString_1, separator?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithFloat_(NativeCupertinoHttp _lib, double value) { + final _ret = _lib._objc_msgSend_72( + _lib._class_NSNumber1, _lib._sel_numberWithFloat_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet? separator) { - final _ret = _lib._objc_msgSend_243( - _id, - _lib._sel_componentsSeparatedByCharactersInSet_1, - separator?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithDouble_(NativeCupertinoHttp _lib, double value) { + final _ret = _lib._objc_msgSend_73( + _lib._class_NSNumber1, _lib._sel_numberWithDouble_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString stringByTrimmingCharactersInSet_(NSCharacterSet? set) { - final _ret = _lib._objc_msgSend_244(_id, - _lib._sel_stringByTrimmingCharactersInSet_1, set?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithBool_(NativeCupertinoHttp _lib, bool value) { + final _ret = _lib._objc_msgSend_74( + _lib._class_NSNumber1, _lib._sel_numberWithBool_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString stringByPaddingToLength_withString_startingAtIndex_( - int newLength, NSString? padString, int padIndex) { - final _ret = _lib._objc_msgSend_245( - _id, - _lib._sel_stringByPaddingToLength_withString_startingAtIndex_1, - newLength, - padString?._id ?? ffi.nullptr, - padIndex); - return NSString._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithInteger_(NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_68( + _lib._class_NSNumber1, _lib._sel_numberWithInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString stringByFoldingWithOptions_locale_(int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_246( - _id, - _lib._sel_stringByFoldingWithOptions_locale_1, - options, - locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSNumber numberWithUnsignedInteger_( + NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_69( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); } - NSString stringByReplacingOccurrencesOfString_withString_options_range_( - NSString? target, - NSString? replacement, - int options, - NSRange searchRange) { - final _ret = _lib._objc_msgSend_247( - _id, - _lib._sel_stringByReplacingOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, - options, - searchRange); - return NSString._(_ret, _lib, retain: true, release: true); + static NSValue valueWithBytes_objCType_(NativeCupertinoHttp _lib, + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_55(_lib._class_NSNumber1, + _lib._sel_valueWithBytes_objCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); } - NSString stringByReplacingOccurrencesOfString_withString_( - NSString? target, NSString? replacement) { - final _ret = _lib._objc_msgSend_248( - _id, - _lib._sel_stringByReplacingOccurrencesOfString_withString_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSValue value_withObjCType_(NativeCupertinoHttp _lib, + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_55( + _lib._class_NSNumber1, _lib._sel_value_withObjCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); } - NSString stringByReplacingCharactersInRange_withString_( - NSRange range, NSString? replacement) { - final _ret = _lib._objc_msgSend_249( - _id, - _lib._sel_stringByReplacingCharactersInRange_withString_1, - range, - replacement?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSValue valueWithNonretainedObject_( + NativeCupertinoHttp _lib, NSObject anObject) { + final _ret = _lib._objc_msgSend_56(_lib._class_NSNumber1, + _lib._sel_valueWithNonretainedObject_1, anObject._id); + return NSValue._(_ret, _lib, retain: true, release: true); } - NSString stringByApplyingTransform_reverse_( - NSStringTransform transform, bool reverse) { - final _ret = _lib._objc_msgSend_250( - _id, _lib._sel_stringByApplyingTransform_reverse_1, transform, reverse); - return NSString._(_ret, _lib, retain: true, release: true); + static NSValue valueWithPointer_( + NativeCupertinoHttp _lib, ffi.Pointer pointer) { + final _ret = _lib._objc_msgSend_57( + _lib._class_NSNumber1, _lib._sel_valueWithPointer_1, pointer); + return NSValue._(_ret, _lib, retain: true, release: true); } - bool writeToURL_atomically_encoding_error_(NSURL? url, bool useAuxiliaryFile, - int enc, ffi.Pointer> error) { - return _lib._objc_msgSend_251( - _id, - _lib._sel_writeToURL_atomically_encoding_error_1, - url?._id ?? ffi.nullptr, - useAuxiliaryFile, - enc, - error); + static NSValue valueWithRange_(NativeCupertinoHttp _lib, NSRange range) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSNumber1, _lib._sel_valueWithRange_1, range); + return NSValue._(_ret, _lib, retain: true, release: true); } - bool writeToFile_atomically_encoding_error_( - NSString? path, - bool useAuxiliaryFile, - int enc, - ffi.Pointer> error) { - return _lib._objc_msgSend_252( - _id, - _lib._sel_writeToFile_atomically_encoding_error_1, - path?._id ?? ffi.nullptr, - useAuxiliaryFile, - enc, - error); + static NSNumber new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_new1); + return NSNumber._(_ret, _lib, retain: false, release: true); } - NSString? get description { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSNumber alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_alloc1); + return NSNumber._(_ret, _lib, retain: false, release: true); } +} - int get hash { - return _lib._objc_msgSend_12(_id, _lib._sel_hash1); - } +class NSValue extends NSObject { + NSValue._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSString initWithCharactersNoCopy_length_freeWhenDone_( - ffi.Pointer characters, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_253( - _id, - _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, - characters, - length, - freeBuffer); - return NSString._(_ret, _lib, retain: false, release: true); + /// Returns a [NSValue] that points to the same underlying object as [other]. + static NSValue castFrom(T other) { + return NSValue._(other._id, other._lib, retain: true, release: true); } - NSString initWithCharactersNoCopy_length_deallocator_( - ffi.Pointer chars, int len, ObjCBlock17 deallocator) { - final _ret = _lib._objc_msgSend_254( - _id, - _lib._sel_initWithCharactersNoCopy_length_deallocator_1, - chars, - len, - deallocator._id); - return NSString._(_ret, _lib, retain: false, release: true); + /// Returns a [NSValue] that wraps the given raw object pointer. + static NSValue castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSValue._(other, lib, retain: retain, release: release); } - NSString initWithCharacters_length_( - ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_255( - _id, _lib._sel_initWithCharacters_length_1, characters, length); - return NSString._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSValue]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSValue1); } - NSString initWithUTF8String_(ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_256( - _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); - return NSString._(_ret, _lib, retain: true, release: true); + void getValue_size_(ffi.Pointer value, int size) { + return _lib._objc_msgSend_33(_id, _lib._sel_getValue_size_1, value, size); } - NSString initWithString_(NSString? aString) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + ffi.Pointer get objCType { + return _lib._objc_msgSend_53(_id, _lib._sel_objCType1); } - NSString initWithFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSValue initWithBytes_objCType_( + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_54( + _id, _lib._sel_initWithBytes_objCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); } - NSString initWithFormat_arguments_(NSString? format, va_list argList) { - final _ret = _lib._objc_msgSend_257( - _id, - _lib._sel_initWithFormat_arguments_1, - format?._id ?? ffi.nullptr, - argList); - return NSString._(_ret, _lib, retain: true, release: true); + NSValue initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_14( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSValue._(_ret, _lib, retain: true, release: true); } - NSString initWithFormat_locale_(NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_258(_id, _lib._sel_initWithFormat_locale_1, - format?._id ?? ffi.nullptr, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); + static NSValue valueWithBytes_objCType_(NativeCupertinoHttp _lib, + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_55( + _lib._class_NSValue1, _lib._sel_valueWithBytes_objCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); } - NSString initWithFormat_locale_arguments_( - NSString? format, NSObject locale, va_list argList) { - final _ret = _lib._objc_msgSend_259( - _id, - _lib._sel_initWithFormat_locale_arguments_1, - format?._id ?? ffi.nullptr, - locale._id, - argList); - return NSString._(_ret, _lib, retain: true, release: true); + static NSValue value_withObjCType_(NativeCupertinoHttp _lib, + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_55( + _lib._class_NSValue1, _lib._sel_value_withObjCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); } - NSString initWithValidatedFormat_validFormatSpecifiers_error_( - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSString._(_ret, _lib, retain: true, release: true); + static NSValue valueWithNonretainedObject_( + NativeCupertinoHttp _lib, NSObject anObject) { + final _ret = _lib._objc_msgSend_56(_lib._class_NSValue1, + _lib._sel_valueWithNonretainedObject_1, anObject._id); + return NSValue._(_ret, _lib, retain: true, release: true); } - NSString initWithValidatedFormat_validFormatSpecifiers_locale_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_261( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, - error); - return NSString._(_ret, _lib, retain: true, release: true); + NSObject get nonretainedObjectValue { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nonretainedObjectValue1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString initWithValidatedFormat_validFormatSpecifiers_arguments_error_( - NSString? format, - NSString? validFormatSpecifiers, - va_list argList, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_262( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - argList, - error); - return NSString._(_ret, _lib, retain: true, release: true); + static NSValue valueWithPointer_( + NativeCupertinoHttp _lib, ffi.Pointer pointer) { + final _ret = _lib._objc_msgSend_57( + _lib._class_NSValue1, _lib._sel_valueWithPointer_1, pointer); + return NSValue._(_ret, _lib, retain: true, release: true); } - NSString - initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, - va_list argList, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_263( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, - argList, - error); - return NSString._(_ret, _lib, retain: true, release: true); + ffi.Pointer get pointerValue { + return _lib._objc_msgSend_31(_id, _lib._sel_pointerValue1); } - NSString initWithData_encoding_(NSData? data, int encoding) { - final _ret = _lib._objc_msgSend_264(_id, _lib._sel_initWithData_encoding_1, - data?._id ?? ffi.nullptr, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + bool isEqualToValue_(NSValue? value) { + return _lib._objc_msgSend_58( + _id, _lib._sel_isEqualToValue_1, value?._id ?? ffi.nullptr); } - NSString initWithBytes_length_encoding_( - ffi.Pointer bytes, int len, int encoding) { - final _ret = _lib._objc_msgSend_265( - _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + void getValue_(ffi.Pointer value) { + return _lib._objc_msgSend_59(_id, _lib._sel_getValue_1, value); } - NSString initWithBytesNoCopy_length_encoding_freeWhenDone_( - ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { - final _ret = _lib._objc_msgSend_266( - _id, - _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, - bytes, - len, - encoding, - freeBuffer); - return NSString._(_ret, _lib, retain: false, release: true); + static NSValue valueWithRange_(NativeCupertinoHttp _lib, NSRange range) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSValue1, _lib._sel_valueWithRange_1, range); + return NSValue._(_ret, _lib, retain: true, release: true); } - NSString initWithBytesNoCopy_length_encoding_deallocator_( - ffi.Pointer bytes, - int len, - int encoding, - ObjCBlock14 deallocator) { - final _ret = _lib._objc_msgSend_267( - _id, - _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, - bytes, - len, - encoding, - deallocator._id); - return NSString._(_ret, _lib, retain: false, release: true); + NSRange get rangeValue { + return _lib._objc_msgSend_61(_id, _lib._sel_rangeValue1); } - static NSString string(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_string1); - return NSString._(_ret, _lib, retain: true, release: true); + static NSValue new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_new1); + return NSValue._(_ret, _lib, retain: false, release: true); } - static NSString stringWithString_( - NativeCupertinoHttp _lib, NSString? string) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSValue alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_alloc1); + return NSValue._(_ret, _lib, retain: false, release: true); } +} - static NSString stringWithCharacters_length_( - NativeCupertinoHttp _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_255(_lib._class_NSString1, - _lib._sel_stringWithCharacters_length_1, characters, length); - return NSString._(_ret, _lib, retain: true, release: true); - } +typedef NSInteger = ffi.Long; - static NSString stringWithUTF8String_( - NativeCupertinoHttp _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_256(_lib._class_NSString1, - _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSString._(_ret, _lib, retain: true, release: true); - } +class NSError extends NSObject { + NSError._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - static NSString stringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Returns a [NSError] that points to the same underlying object as [other]. + static NSError castFrom(T other) { + return NSError._(other._id, other._lib, retain: true, release: true); } - static NSString localizedStringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Returns a [NSError] that wraps the given raw object pointer. + static NSError castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSError._(other, lib, retain: retain, release: release); } - static NSString stringWithValidatedFormat_validFormatSpecifiers_error_( - NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( - _lib._class_NSString1, - _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSString._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSError]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSError1); } - static NSString - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( - _lib._class_NSString1, - _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSString._(_ret, _lib, retain: true, release: true); + /// Domain cannot be nil; dict may be nil if no userInfo desired. + NSError initWithDomain_code_userInfo_( + NSErrorDomain domain, int code, NSDictionary? dict) { + final _ret = _lib._objc_msgSend_179( + _id, + _lib._sel_initWithDomain_code_userInfo_1, + domain, + code, + dict?._id ?? ffi.nullptr); + return NSError._(_ret, _lib, retain: true, release: true); } - NSString initWithCString_encoding_( - ffi.Pointer nullTerminatedCString, int encoding) { - final _ret = _lib._objc_msgSend_268(_id, - _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + static NSError errorWithDomain_code_userInfo_(NativeCupertinoHttp _lib, + NSErrorDomain domain, int code, NSDictionary? dict) { + final _ret = _lib._objc_msgSend_179( + _lib._class_NSError1, + _lib._sel_errorWithDomain_code_userInfo_1, + domain, + code, + dict?._id ?? ffi.nullptr); + return NSError._(_ret, _lib, retain: true, release: true); } - static NSString stringWithCString_encoding_( - NativeCupertinoHttp _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSString1, - _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSString._(_ret, _lib, retain: true, release: true); + /// These define the error. Domains are described by names that are arbitrary strings used to differentiate groups of codes; for custom domain using reverse-DNS naming will help avoid conflicts. Codes are domain-specific. + NSErrorDomain get domain { + return _lib._objc_msgSend_32(_id, _lib._sel_domain1); } - NSString initWithContentsOfURL_encoding_error_( - NSURL? url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_269( - _id, - _lib._sel_initWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + int get code { + return _lib._objc_msgSend_81(_id, _lib._sel_code1); } - NSString initWithContentsOfFile_encoding_error_( - NSString? path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_270( - _id, - _lib._sel_initWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + /// Additional info which may be used to describe the error further. Examples of keys that might be included in here are "Line Number", "Failed URL", etc. Embedding other errors in here can also be used as a way to communicate underlying reasons for failures; for instance "File System Error" embedded in the userInfo of an NSError returned from a higher level document object. If the embedded error information is itself NSError, the standard key NSUnderlyingErrorKey can be used. + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_180(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfURL_encoding_error_( - NativeCupertinoHttp _lib, - NSURL? url, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_269( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + /// The primary user-presentable message for the error, for instance for NSFileReadNoPermissionError: "The file "File Name" couldn't be opened because you don't have permission to view it.". This message should ideally indicate what failed and why it failed. This value either comes from NSLocalizedDescriptionKey, or NSLocalizedFailureErrorKey+NSLocalizedFailureReasonErrorKey, or NSLocalizedFailureErrorKey. The steps this takes to construct the description include: + /// 1. Look for NSLocalizedDescriptionKey in userInfo, use value as-is if present. + /// 2. Look for NSLocalizedFailureErrorKey in userInfo. If present, use, combining with value for NSLocalizedFailureReasonErrorKey if available. + /// 3. Fetch NSLocalizedDescriptionKey from userInfoValueProvider, use value as-is if present. + /// 4. Fetch NSLocalizedFailureErrorKey from userInfoValueProvider. If present, use, combining with value for NSLocalizedFailureReasonErrorKey if available. + /// 5. Look for NSLocalizedFailureReasonErrorKey in userInfo or from userInfoValueProvider; combine with generic "Operation failed" message. + /// 6. Last resort localized but barely-presentable string manufactured from domain and code. The result is never nil. + NSString? get localizedDescription { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localizedDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfFile_encoding_error_( - NativeCupertinoHttp _lib, - NSString? path, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_270( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + /// Return a complete sentence which describes why the operation failed. For instance, for NSFileReadNoPermissionError: "You don't have permission.". In many cases this will be just the "because" part of the error message (but as a complete sentence, which makes localization easier). Default implementation of this picks up the value of NSLocalizedFailureReasonErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain, and if that returns nil, this also returns nil. + NSString? get localizedFailureReason { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localizedFailureReason1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfURL_usedEncoding_error_( - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_271( - _id, - _lib._sel_initWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + /// Return the string that can be displayed as the "informative" (aka "secondary") message on an alert panel. For instance, for NSFileReadNoPermissionError: "To view or change permissions, select the item in the Finder and choose File > Get Info.". Default implementation of this picks up the value of NSLocalizedRecoverySuggestionErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain, and if that returns nil, this also returns nil. + NSString? get localizedRecoverySuggestion { + final _ret = + _lib._objc_msgSend_32(_id, _lib._sel_localizedRecoverySuggestion1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfFile_usedEncoding_error_( - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_272( - _id, - _lib._sel_initWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + /// Return titles of buttons that are appropriate for displaying in an alert. These should match the string provided as a part of localizedRecoverySuggestion. The first string would be the title of the right-most and default button, the second one next to it, and so on. If used in an alert the corresponding default return values are NSAlertFirstButtonReturn + n. Default implementation of this picks up the value of NSLocalizedRecoveryOptionsErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain, and if that returns nil, this also returns nil. nil return usually implies no special suggestion, which would imply a single "OK" button. + NSArray? get localizedRecoveryOptions { + final _ret = + _lib._objc_msgSend_162(_id, _lib._sel_localizedRecoveryOptions1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfURL_usedEncoding_error_( - NativeCupertinoHttp _lib, - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_271( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + /// Return an object that conforms to the NSErrorRecoveryAttempting informal protocol. The recovery attempter must be an object that can correctly interpret an index into the array returned by localizedRecoveryOptions. The default implementation of this picks up the value of NSRecoveryAttempterErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain. If that returns nil, this also returns nil. + NSObject get recoveryAttempter { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_recoveryAttempter1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfFile_usedEncoding_error_( - NativeCupertinoHttp _lib, - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_272( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + /// Return the help anchor that can be used to create a help button to accompany the error when it's displayed to the user. This is done automatically by +[NSAlert alertWithError:], which the presentError: variants in NSApplication go through. The default implementation of this picks up the value of the NSHelpAnchorErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain. If that returns nil, this also returns nil. + NSString? get helpAnchor { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_helpAnchor1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static int - stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( - NativeCupertinoHttp _lib, - NSData? data, - NSDictionary? opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_273( - _lib._class_NSString1, - _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, - opts?._id ?? ffi.nullptr, - string, - usedLossyConversion); + /// Return a list of underlying errors, if any. It includes the values of both NSUnderlyingErrorKey and NSMultipleUnderlyingErrorsKey. If there are no underlying errors, returns an empty array. + NSArray? get underlyingErrors { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_underlyingErrors1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSObject propertyList() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_propertyList1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Specify a block which will be called from the implementations of localizedDescription, localizedFailureReason, localizedRecoverySuggestion, localizedRecoveryOptions, recoveryAttempter, helpAnchor, and debugDescription when the underlying value for these is not present in the userInfo dictionary of NSError instances with the specified domain. The provider will be called with the userInfo key corresponding to the queried property: For instance, NSLocalizedDescriptionKey for localizedDescription. The provider should return nil for any keys it is not able to provide and, very importantly, any keys it does not recognize (since we may extend the list of keys in future releases). + /// + /// The specified block will be called synchronously at the time when the above properties are queried. The results are not cached. + /// + /// This provider is optional. It enables localization and formatting of error messages to be done lazily; rather than populating the userInfo at NSError creation time, these keys will be fetched on-demand when asked for. + /// + /// It is expected that only the “owner” of an NSError domain specifies the provider for the domain, and this is done once. This facility is not meant for consumers of errors to customize the userInfo entries. This facility should not be used to customize the behaviors of error domains provided by the system. + /// + /// If an appropriate result for the requested key cannot be provided, return nil rather than choosing to manufacture a generic fallback response such as "Operation could not be completed, error 42." NSError will take care of the fallback cases. + static void setUserInfoValueProviderForDomain_provider_( + NativeCupertinoHttp _lib, + NSErrorDomain errorDomain, + ObjCBlock10 provider) { + return _lib._objc_msgSend_181( + _lib._class_NSError1, + _lib._sel_setUserInfoValueProviderForDomain_provider_1, + errorDomain, + provider._id); } - NSDictionary propertyListFromStringsFileFormat() { - final _ret = _lib._objc_msgSend_180( - _id, _lib._sel_propertyListFromStringsFileFormat1); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static ObjCBlock10 userInfoValueProviderForDomain_(NativeCupertinoHttp _lib, + NSError? err, NSErrorUserInfoKey userInfoKey, NSErrorDomain errorDomain) { + final _ret = _lib._objc_msgSend_182( + _lib._class_NSError1, + _lib._sel_userInfoValueProviderForDomain_1, + err?._id ?? ffi.nullptr, + userInfoKey, + errorDomain); + return ObjCBlock10._(_ret, _lib); } - ffi.Pointer cString() { - return _lib._objc_msgSend_53(_id, _lib._sel_cString1); + static NSError new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_new1); + return NSError._(_ret, _lib, retain: false, release: true); } - ffi.Pointer lossyCString() { - return _lib._objc_msgSend_53(_id, _lib._sel_lossyCString1); + static NSError alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_alloc1); + return NSError._(_ret, _lib, retain: false, release: true); } +} - int cStringLength() { - return _lib._objc_msgSend_12(_id, _lib._sel_cStringLength1); - } +typedef NSErrorDomain = ffi.Pointer; - void getCString_(ffi.Pointer bytes) { - return _lib._objc_msgSend_274(_id, _lib._sel_getCString_1, bytes); - } +/// Immutable Dictionary +class NSDictionary extends NSObject { + NSDictionary._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - void getCString_maxLength_(ffi.Pointer bytes, int maxLength) { - return _lib._objc_msgSend_275( - _id, _lib._sel_getCString_maxLength_1, bytes, maxLength); + /// Returns a [NSDictionary] that points to the same underlying object as [other]. + static NSDictionary castFrom(T other) { + return NSDictionary._(other._id, other._lib, retain: true, release: true); } - void getCString_maxLength_range_remainingRange_(ffi.Pointer bytes, - int maxLength, NSRange aRange, NSRangePointer leftoverRange) { - return _lib._objc_msgSend_276( - _id, - _lib._sel_getCString_maxLength_range_remainingRange_1, - bytes, - maxLength, - aRange, - leftoverRange); + /// Returns a [NSDictionary] that wraps the given raw object pointer. + static NSDictionary castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSDictionary._(other, lib, retain: retain, release: release); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_37(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + /// Returns whether [obj] is an instance of [NSDictionary]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDictionary1); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_161(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + int get count { + return _lib._objc_msgSend_12(_id, _lib._sel_count1); } - NSObject initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + NSObject objectForKey_(NSObject aKey) { + final _ret = _lib._objc_msgSend_91(_id, _lib._sel_objectForKey_1, aKey._id); return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_201( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSEnumerator keyEnumerator() { + final _ret = _lib._objc_msgSend_92(_id, _lib._sel_keyEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSDictionary init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSDictionary initWithObjects_forKeys_count_( + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_93( + _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject initWithCStringNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_277( - _id, - _lib._sel_initWithCStringNoCopy_length_freeWhenDone_1, - bytes, - length, - freeBuffer); - return NSObject._(_ret, _lib, retain: false, release: true); + NSDictionary initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_14( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject initWithCString_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_268( - _id, _lib._sel_initWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + NSArray? get allKeys { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_allKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSObject initWithCString_(ffi.Pointer bytes) { + NSArray allKeysForObject_(NSObject anObject) { final _ret = - _lib._objc_msgSend_256(_id, _lib._sel_initWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject stringWithCString_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSString1, - _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject stringWithCString_( - NativeCupertinoHttp _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_256( - _lib._class_NSString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_96(_id, _lib._sel_allKeysForObject_1, anObject._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - void getCharacters_(ffi.Pointer buffer) { - return _lib._objc_msgSend_278(_id, _lib._sel_getCharacters_1, buffer); + NSArray? get allValues { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_allValues1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - /// Returns a new string made from the receiver by replacing all characters not in the allowedCharacters set with percent encoded characters. UTF-8 encoding is used to determine the correct percent encoded characters. Entire URL strings cannot be percent-encoded. This method is intended to percent-encode a URL component or subcomponent string, NOT the entire URL string. Any characters in allowedCharacters outside of the 7-bit ASCII range are ignored. - NSString stringByAddingPercentEncodingWithAllowedCharacters_( - NSCharacterSet? allowedCharacters) { - final _ret = _lib._objc_msgSend_244( - _id, - _lib._sel_stringByAddingPercentEncodingWithAllowedCharacters_1, - allowedCharacters?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? get description { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - /// Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters. - NSString? get stringByRemovingPercentEncoding { + NSString? get descriptionInStringsFileFormat { final _ret = - _lib._objc_msgSend_32(_id, _lib._sel_stringByRemovingPercentEncoding1); + _lib._objc_msgSend_32(_id, _lib._sel_descriptionInStringsFileFormat1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByAddingPercentEscapesUsingEncoding_(int enc) { - final _ret = _lib._objc_msgSend_15( - _id, _lib._sel_stringByAddingPercentEscapesUsingEncoding_1, enc); + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_88( + _id, _lib._sel_descriptionWithLocale_1, locale._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByReplacingPercentEscapesUsingEncoding_(int enc) { - final _ret = _lib._objc_msgSend_15( - _id, _lib._sel_stringByReplacingPercentEscapesUsingEncoding_1, enc); + NSString descriptionWithLocale_indent_(NSObject locale, int level) { + final _ret = _lib._objc_msgSend_99( + _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_new1); - return NSString._(_ret, _lib, retain: false, release: true); + bool isEqualToDictionary_(NSDictionary? otherDictionary) { + return _lib._objc_msgSend_163(_id, _lib._sel_isEqualToDictionary_1, + otherDictionary?._id ?? ffi.nullptr); } - static NSString alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_alloc1); - return NSString._(_ret, _lib, retain: false, release: true); + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_92(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); } -} - -extension StringToNSString on String { - NSString toNSString(NativeCupertinoHttp lib) => NSString(lib, this); -} - -typedef unichar = ffi.UnsignedShort; - -class NSCoder extends _ObjCWrapper { - NSCoder._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSCoder] that points to the same underlying object as [other]. - static NSCoder castFrom(T other) { - return NSCoder._(other._id, other._lib, retain: true, release: true); + NSArray objectsForKeys_notFoundMarker_(NSArray? keys, NSObject marker) { + final _ret = _lib._objc_msgSend_164( + _id, + _lib._sel_objectsForKeys_notFoundMarker_1, + keys?._id ?? ffi.nullptr, + marker._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSCoder] that wraps the given raw object pointer. - static NSCoder castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSCoder._(other, lib, retain: retain, release: release); + /// Serializes this instance to the specified URL in the NSPropertyList format (using NSPropertyListXMLFormat_v1_0). For other formats use NSPropertyListSerialization directly. + bool writeToURL_error_( + NSURL? url, ffi.Pointer> error) { + return _lib._objc_msgSend_109( + _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); } - /// Returns whether [obj] is an instance of [NSCoder]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCoder1); + NSArray keysSortedByValueUsingSelector_(ffi.Pointer comparator) { + final _ret = _lib._objc_msgSend_107( + _id, _lib._sel_keysSortedByValueUsingSelector_1, comparator); + return NSArray._(_ret, _lib, retain: true, release: true); } -} -typedef NSRange = _NSRange; + /// count refers to the number of elements in the dictionary + void getObjects_andKeys_count_(ffi.Pointer> objects, + ffi.Pointer> keys, int count) { + return _lib._objc_msgSend_165( + _id, _lib._sel_getObjects_andKeys_count_1, objects, keys, count); + } -class _NSRange extends ffi.Struct { - @NSUInteger() - external int location; + NSObject objectForKeyedSubscript_(NSObject key) { + final _ret = _lib._objc_msgSend_91( + _id, _lib._sel_objectForKeyedSubscript_1, key._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } - @NSUInteger() - external int length; -} + void enumerateKeysAndObjectsUsingBlock_(ObjCBlock8 block) { + return _lib._objc_msgSend_166( + _id, _lib._sel_enumerateKeysAndObjectsUsingBlock_1, block._id); + } -abstract class NSComparisonResult { - static const int NSOrderedAscending = -1; - static const int NSOrderedSame = 0; - static const int NSOrderedDescending = 1; -} + void enumerateKeysAndObjectsWithOptions_usingBlock_( + int opts, ObjCBlock8 block) { + return _lib._objc_msgSend_167( + _id, + _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, + opts, + block._id); + } -abstract class NSStringCompareOptions { - static const int NSCaseInsensitiveSearch = 1; - static const int NSLiteralSearch = 2; - static const int NSBackwardsSearch = 4; - static const int NSAnchoredSearch = 8; - static const int NSNumericSearch = 64; - static const int NSDiacriticInsensitiveSearch = 128; - static const int NSWidthInsensitiveSearch = 256; - static const int NSForcedOrderingSearch = 512; - static const int NSRegularExpressionSearch = 1024; -} + NSArray keysSortedByValueUsingComparator_(NSComparator cmptr) { + final _ret = _lib._objc_msgSend_141( + _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } -class NSLocale extends _ObjCWrapper { - NSLocale._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSArray keysSortedByValueWithOptions_usingComparator_( + int opts, NSComparator cmptr) { + final _ret = _lib._objc_msgSend_142(_id, + _lib._sel_keysSortedByValueWithOptions_usingComparator_1, opts, cmptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } - /// Returns a [NSLocale] that points to the same underlying object as [other]. - static NSLocale castFrom(T other) { - return NSLocale._(other._id, other._lib, retain: true, release: true); + NSObject keysOfEntriesPassingTest_(ObjCBlock9 predicate) { + final _ret = _lib._objc_msgSend_168( + _id, _lib._sel_keysOfEntriesPassingTest_1, predicate._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSLocale] that wraps the given raw object pointer. - static NSLocale castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSLocale._(other, lib, retain: retain, release: release); + NSObject keysOfEntriesWithOptions_passingTest_( + int opts, ObjCBlock9 predicate) { + final _ret = _lib._objc_msgSend_169(_id, + _lib._sel_keysOfEntriesWithOptions_passingTest_1, opts, predicate._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSLocale]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSLocale1); + /// This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:andKeys:count: + void getObjects_andKeys_(ffi.Pointer> objects, + ffi.Pointer> keys) { + return _lib._objc_msgSend_170( + _id, _lib._sel_getObjects_andKeys_1, objects, keys); } -} -class NSCharacterSet extends NSObject { - NSCharacterSet._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + /// These methods are deprecated, and will be marked with API_DEPRECATED in a subsequent release. Use the variants that use errors instead. + static NSDictionary dictionaryWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_171(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } - /// Returns a [NSCharacterSet] that points to the same underlying object as [other]. - static NSCharacterSet castFrom(T other) { - return NSCharacterSet._(other._id, other._lib, retain: true, release: true); + static NSDictionary dictionaryWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_172(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSCharacterSet] that wraps the given raw object pointer. - static NSCharacterSet castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSCharacterSet._(other, lib, retain: retain, release: release); + NSDictionary initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_171( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSCharacterSet]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSCharacterSet1); + NSDictionary initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_172( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getControlCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_controlCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_37(_id, _lib._sel_writeToFile_atomically_1, + path?._id ?? ffi.nullptr, useAuxiliaryFile); } - static NSCharacterSet? getWhitespaceCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_whitespaceCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + /// the atomically flag is ignored if url of a type that cannot be written atomically. + bool writeToURL_atomically_(NSURL? url, bool atomically) { + return _lib._objc_msgSend_161(_id, _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, atomically); } - static NSCharacterSet? getWhitespaceAndNewlineCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSCharacterSet1, - _lib._sel_whitespaceAndNewlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSDictionary dictionary(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_dictionary1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getDecimalDigitCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_decimalDigitCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSDictionary dictionaryWithObject_forKey_( + NativeCupertinoHttp _lib, NSObject object, NSObject key) { + final _ret = _lib._objc_msgSend_173(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithObject_forKey_1, object._id, key._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getLetterCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_letterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSDictionary dictionaryWithObjects_forKeys_count_( + NativeCupertinoHttp _lib, + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_93(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getLowercaseLetterCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_lowercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSDictionary dictionaryWithObjectsAndKeys_( + NativeCupertinoHttp _lib, NSObject firstObject) { + final _ret = _lib._objc_msgSend_91(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getUppercaseLetterCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_uppercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSDictionary dictionaryWithDictionary_( + NativeCupertinoHttp _lib, NSDictionary? dict) { + final _ret = _lib._objc_msgSend_174(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getNonBaseCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_nonBaseCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSDictionary dictionaryWithObjects_forKeys_( + NativeCupertinoHttp _lib, NSArray? objects, NSArray? keys) { + final _ret = _lib._objc_msgSend_175( + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getAlphanumericCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_alphanumericCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + NSDictionary initWithObjectsAndKeys_(NSObject firstObject) { + final _ret = _lib._objc_msgSend_91( + _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getDecomposableCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_decomposableCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + NSDictionary initWithDictionary_(NSDictionary? otherDictionary) { + final _ret = _lib._objc_msgSend_174(_id, _lib._sel_initWithDictionary_1, + otherDictionary?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getIllegalCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_illegalCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + NSDictionary initWithDictionary_copyItems_( + NSDictionary? otherDictionary, bool flag) { + final _ret = _lib._objc_msgSend_176( + _id, + _lib._sel_initWithDictionary_copyItems_1, + otherDictionary?._id ?? ffi.nullptr, + flag); + return NSDictionary._(_ret, _lib, retain: false, release: true); } - static NSCharacterSet? getPunctuationCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_punctuationCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + NSDictionary initWithObjects_forKeys_(NSArray? objects, NSArray? keys) { + final _ret = _lib._objc_msgSend_175( + _id, + _lib._sel_initWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getCapitalizedLetterCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_capitalizedLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + /// Reads dictionary stored in NSPropertyList format from the specified url. + NSDictionary initWithContentsOfURL_error_( + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_177( + _id, + _lib._sel_initWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getSymbolCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_symbolCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + /// Reads dictionary stored in NSPropertyList format from the specified url. + static NSDictionary dictionaryWithContentsOfURL_error_( + NativeCupertinoHttp _lib, + NSURL? url, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_177( + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getNewlineCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_newlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: false, release: true); + /// Use this method to create a key set to pass to +dictionaryWithSharedKeySet:. + /// The keys are copied from the array and must be copyable. + /// If the array parameter is nil or not an NSArray, an exception is thrown. + /// If the array of keys is empty, an empty key set is returned. + /// The array of keys may contain duplicates, which are ignored (it is undefined which object of each duplicate pair is used). + /// As for any usage of hashing, is recommended that the keys have a well-distributed implementation of -hash, and the hash codes must satisfy the hash/isEqual: invariant. + /// Keys with duplicate hash codes are allowed, but will cause lower performance and increase memory usage. + static NSObject sharedKeySetForKeys_( + NativeCupertinoHttp _lib, NSArray? keys) { + final _ret = _lib._objc_msgSend_100(_lib._class_NSDictionary1, + _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet characterSetWithRange_( - NativeCupertinoHttp _lib, NSRange aRange) { - final _ret = _lib._objc_msgSend_29( - _lib._class_NSCharacterSet1, _lib._sel_characterSetWithRange_1, aRange); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + int countByEnumeratingWithState_objects_count_( + ffi.Pointer state, + ffi.Pointer> buffer, + int len) { + return _lib._objc_msgSend_178( + _id, + _lib._sel_countByEnumeratingWithState_objects_count_1, + state, + buffer, + len); } - static NSCharacterSet characterSetWithCharactersInString_( - NativeCupertinoHttp _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_30( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithCharactersInString_1, - aString?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSDictionary new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_new1); + return NSDictionary._(_ret, _lib, retain: false, release: true); } - static NSCharacterSet characterSetWithBitmapRepresentation_( - NativeCupertinoHttp _lib, NSData? data) { - final _ret = _lib._objc_msgSend_223( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithBitmapRepresentation_1, - data?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSDictionary alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_alloc1); + return NSDictionary._(_ret, _lib, retain: false, release: true); } +} - static NSCharacterSet characterSetWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? fName) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSCharacterSet1, - _lib._sel_characterSetWithContentsOfFile_1, fName?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); +class NSEnumerator extends NSObject { + NSEnumerator._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSEnumerator] that points to the same underlying object as [other]. + static NSEnumerator castFrom(T other) { + return NSEnumerator._(other._id, other._lib, retain: true, release: true); } - NSCharacterSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + /// Returns a [NSEnumerator] that wraps the given raw object pointer. + static NSEnumerator castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSEnumerator._(other, lib, retain: retain, release: release); } - bool characterIsMember_(int aCharacter) { - return _lib._objc_msgSend_224( - _id, _lib._sel_characterIsMember_1, aCharacter); + /// Returns whether [obj] is an instance of [NSEnumerator]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSEnumerator1); } - NSData? get bitmapRepresentation { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_bitmapRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSObject nextObject() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nextObject1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSCharacterSet? get invertedSet { - final _ret = _lib._objc_msgSend_28(_id, _lib._sel_invertedSet1); + NSObject? get allObjects { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_allObjects1); return _ret.address == 0 ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - bool longCharacterIsMember_(int theLongChar) { - return _lib._objc_msgSend_225( - _id, _lib._sel_longCharacterIsMember_1, theLongChar); + : NSObject._(_ret, _lib, retain: true, release: true); } - bool isSupersetOfSet_(NSCharacterSet? theOtherSet) { - return _lib._objc_msgSend_226( - _id, _lib._sel_isSupersetOfSet_1, theOtherSet?._id ?? ffi.nullptr); + static NSEnumerator new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_new1); + return NSEnumerator._(_ret, _lib, retain: false, release: true); } - bool hasMemberInPlane_(int thePlane) { - return _lib._objc_msgSend_227(_id, _lib._sel_hasMemberInPlane_1, thePlane); + static NSEnumerator alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_alloc1); + return NSEnumerator._(_ret, _lib, retain: false, release: true); } +} - /// Returns a character set containing the characters allowed in a URL's user subcomponent. - static NSCharacterSet? getURLUserAllowedCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_URLUserAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +/// Immutable Array +class NSArray extends NSObject { + NSArray._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - /// Returns a character set containing the characters allowed in a URL's password subcomponent. - static NSCharacterSet? getURLPasswordAllowedCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_URLPasswordAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + /// Returns a [NSArray] that points to the same underlying object as [other]. + static NSArray castFrom(T other) { + return NSArray._(other._id, other._lib, retain: true, release: true); } - /// Returns a character set containing the characters allowed in a URL's host subcomponent. - static NSCharacterSet? getURLHostAllowedCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_URLHostAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + /// Returns a [NSArray] that wraps the given raw object pointer. + static NSArray castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSArray._(other, lib, retain: retain, release: release); } - /// Returns a character set containing the characters allowed in a URL's path component. ';' is a legal path character, but it is recommended that it be percent-encoded for best compatibility with NSURL (-stringByAddingPercentEncodingWithAllowedCharacters: will percent-encode any ';' characters if you pass the URLPathAllowedCharacterSet). - static NSCharacterSet? getURLPathAllowedCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_URLPathAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSArray]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArray1); } - /// Returns a character set containing the characters allowed in a URL's query component. - static NSCharacterSet? getURLQueryAllowedCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_URLQueryAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + int get count { + return _lib._objc_msgSend_12(_id, _lib._sel_count1); } - /// Returns a character set containing the characters allowed in a URL's fragment component. - static NSCharacterSet? getURLFragmentAllowedCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSCharacterSet1, _lib._sel_URLFragmentAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + NSObject objectAtIndex_(int index) { + final _ret = _lib._objc_msgSend_94(_id, _lib._sel_objectAtIndex_1, index); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_new1); - return NSCharacterSet._(_ret, _lib, retain: false, release: true); + @override + NSArray init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_alloc1); - return NSCharacterSet._(_ret, _lib, retain: false, release: true); + NSArray initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_95( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSArray._(_ret, _lib, retain: true, release: true); } -} - -class NSData extends NSObject { - NSData._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSData] that points to the same underlying object as [other]. - static NSData castFrom(T other) { - return NSData._(other._id, other._lib, retain: true, release: true); + NSArray initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_14( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSData] that wraps the given raw object pointer. - static NSData castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSData._(other, lib, retain: retain, release: release); + NSArray arrayByAddingObject_(NSObject anObject) { + final _ret = _lib._objc_msgSend_96( + _id, _lib._sel_arrayByAddingObject_1, anObject._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSData]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSData1); + NSArray arrayByAddingObjectsFromArray_(NSArray? otherArray) { + final _ret = _lib._objc_msgSend_97( + _id, + _lib._sel_arrayByAddingObjectsFromArray_1, + otherArray?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get length { - return _lib._objc_msgSend_12(_id, _lib._sel_length1); + NSString componentsJoinedByString_(NSString? separator) { + final _ret = _lib._objc_msgSend_98(_id, + _lib._sel_componentsJoinedByString_1, separator?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - /// The -bytes method returns a pointer to a contiguous region of memory managed by the receiver. - /// If the regions of memory represented by the receiver are already contiguous, it does so in O(1) time, otherwise it may take longer - /// Using -enumerateByteRangesUsingBlock: will be efficient for both contiguous and discontiguous data. - ffi.Pointer get bytes { - return _lib._objc_msgSend_31(_id, _lib._sel_bytes1); + bool containsObject_(NSObject anObject) { + return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); } NSString? get description { @@ -61983,4574 +62448,4557 @@ class NSData extends NSObject { : NSString._(_ret, _lib, retain: true, release: true); } - void getBytes_length_(ffi.Pointer buffer, int length) { - return _lib._objc_msgSend_33( - _id, _lib._sel_getBytes_length_1, buffer, length); + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_88( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); } - void getBytes_range_(ffi.Pointer buffer, NSRange range) { - return _lib._objc_msgSend_34( - _id, _lib._sel_getBytes_range_1, buffer, range); + NSString descriptionWithLocale_indent_(NSObject locale, int level) { + final _ret = _lib._objc_msgSend_99( + _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + return NSString._(_ret, _lib, retain: true, release: true); } - bool isEqualToData_(NSData? other) { - return _lib._objc_msgSend_35( - _id, _lib._sel_isEqualToData_1, other?._id ?? ffi.nullptr); + NSObject firstObjectCommonWithArray_(NSArray? otherArray) { + final _ret = _lib._objc_msgSend_100(_id, + _lib._sel_firstObjectCommonWithArray_1, otherArray?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSData subdataWithRange_(NSRange range) { - final _ret = - _lib._objc_msgSend_36(_id, _lib._sel_subdataWithRange_1, range); - return NSData._(_ret, _lib, retain: true, release: true); + void getObjects_range_( + ffi.Pointer> objects, NSRange range) { + return _lib._objc_msgSend_101( + _id, _lib._sel_getObjects_range_1, objects, range); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_37(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + int indexOfObject_(NSObject anObject) { + return _lib._objc_msgSend_102(_id, _lib._sel_indexOfObject_1, anObject._id); } - /// the atomically flag is ignored if the url is not of a type the supports atomic writes - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_161(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + int indexOfObject_inRange_(NSObject anObject, NSRange range) { + return _lib._objc_msgSend_103( + _id, _lib._sel_indexOfObject_inRange_1, anObject._id, range); } - bool writeToFile_options_error_(NSString? path, int writeOptionsMask, - ffi.Pointer> errorPtr) { - return _lib._objc_msgSend_208(_id, _lib._sel_writeToFile_options_error_1, - path?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + int indexOfObjectIdenticalTo_(NSObject anObject) { + return _lib._objc_msgSend_102( + _id, _lib._sel_indexOfObjectIdenticalTo_1, anObject._id); } - bool writeToURL_options_error_(NSURL? url, int writeOptionsMask, - ffi.Pointer> errorPtr) { - return _lib._objc_msgSend_209(_id, _lib._sel_writeToURL_options_error_1, - url?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + int indexOfObjectIdenticalTo_inRange_(NSObject anObject, NSRange range) { + return _lib._objc_msgSend_103( + _id, _lib._sel_indexOfObjectIdenticalTo_inRange_1, anObject._id, range); } - NSRange rangeOfData_options_range_( - NSData? dataToFind, int mask, NSRange searchRange) { - return _lib._objc_msgSend_210(_id, _lib._sel_rangeOfData_options_range_1, - dataToFind?._id ?? ffi.nullptr, mask, searchRange); + bool isEqualToArray_(NSArray? otherArray) { + return _lib._objc_msgSend_104( + _id, _lib._sel_isEqualToArray_1, otherArray?._id ?? ffi.nullptr); } - /// 'block' is called once for each contiguous region of memory in the receiver (once total for contiguous NSDatas), until either all bytes have been enumerated, or the 'stop' parameter is set to YES. - void enumerateByteRangesUsingBlock_(ObjCBlock13 block) { - return _lib._objc_msgSend_211( - _id, _lib._sel_enumerateByteRangesUsingBlock_1, block._id); + NSObject get firstObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSData data(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_data1); - return NSData._(_ret, _lib, retain: true, release: true); + NSObject get lastObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSData dataWithBytes_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212( - _lib._class_NSData1, _lib._sel_dataWithBytes_length_1, bytes, length); - return NSData._(_ret, _lib, retain: true, release: true); + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_92(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); } - static NSData dataWithBytesNoCopy_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212(_lib._class_NSData1, - _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); - return NSData._(_ret, _lib, retain: false, release: true); + NSEnumerator reverseObjectEnumerator() { + final _ret = _lib._objc_msgSend_92(_id, _lib._sel_reverseObjectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); } - static NSData dataWithBytesNoCopy_length_freeWhenDone_( - NativeCupertinoHttp _lib, - ffi.Pointer bytes, - int length, - bool b) { - final _ret = _lib._objc_msgSend_213(_lib._class_NSData1, - _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); - return NSData._(_ret, _lib, retain: false, release: true); + NSData? get sortedArrayHint { + final _ret = _lib._objc_msgSend_51(_id, _lib._sel_sortedArrayHint1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfFile_options_error_( - NativeCupertinoHttp _lib, - NSString? path, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_214( - _lib._class_NSData1, - _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + NSArray sortedArrayUsingFunction_context_( + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + comparator, + ffi.Pointer context) { + final _ret = _lib._objc_msgSend_105( + _id, _lib._sel_sortedArrayUsingFunction_context_1, comparator, context); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfURL_options_error_( - NativeCupertinoHttp _lib, - NSURL? url, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_215( - _lib._class_NSData1, - _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + NSArray sortedArrayUsingFunction_context_hint_( + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + comparator, + ffi.Pointer context, + NSData? hint) { + final _ret = _lib._objc_msgSend_106( + _id, + _lib._sel_sortedArrayUsingFunction_context_hint_1, + comparator, + context, + hint?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + NSArray sortedArrayUsingSelector_(ffi.Pointer comparator) { + final _ret = _lib._objc_msgSend_107( + _id, _lib._sel_sortedArrayUsingSelector_1, comparator); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfURL_(NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + NSArray subarrayWithRange_(NSRange range) { + final _ret = + _lib._objc_msgSend_108(_id, _lib._sel_subarrayWithRange_1, range); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSData initWithBytes_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212( - _id, _lib._sel_initWithBytes_length_1, bytes, length); - return NSData._(_ret, _lib, retain: true, release: true); + /// Serializes this instance to the specified URL in the NSPropertyList format (using NSPropertyListXMLFormat_v1_0). For other formats use NSPropertyListSerialization directly. + bool writeToURL_error_( + NSURL? url, ffi.Pointer> error) { + return _lib._objc_msgSend_109( + _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); } - NSData initWithBytesNoCopy_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212( - _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); - return NSData._(_ret, _lib, retain: false, release: true); + void makeObjectsPerformSelector_(ffi.Pointer aSelector) { + return _lib._objc_msgSend_7( + _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); } - NSData initWithBytesNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_213(_id, - _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); - return NSData._(_ret, _lib, retain: false, release: true); + void makeObjectsPerformSelector_withObject_( + ffi.Pointer aSelector, NSObject argument) { + return _lib._objc_msgSend_110( + _id, + _lib._sel_makeObjectsPerformSelector_withObject_1, + aSelector, + argument._id); } - NSData initWithBytesNoCopy_length_deallocator_( - ffi.Pointer bytes, int length, ObjCBlock14 deallocator) { - final _ret = _lib._objc_msgSend_216( - _id, - _lib._sel_initWithBytesNoCopy_length_deallocator_1, - bytes, - length, - deallocator._id); - return NSData._(_ret, _lib, retain: false, release: true); + NSArray objectsAtIndexes_(NSIndexSet? indexes) { + final _ret = _lib._objc_msgSend_131( + _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSData initWithContentsOfFile_options_error_(NSString? path, - int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_214( - _id, - _lib._sel_initWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + NSObject objectAtIndexedSubscript_(int idx) { + final _ret = + _lib._objc_msgSend_94(_id, _lib._sel_objectAtIndexedSubscript_1, idx); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSData initWithContentsOfURL_options_error_(NSURL? url, int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_215( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + void enumerateObjectsUsingBlock_(ObjCBlock3 block) { + return _lib._objc_msgSend_132( + _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); } - NSData initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock3 block) { + return _lib._objc_msgSend_133(_id, + _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); } - NSData initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_201( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + void enumerateObjectsAtIndexes_options_usingBlock_( + NSIndexSet? s, int opts, ObjCBlock3 block) { + return _lib._objc_msgSend_134( + _id, + _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, + s?._id ?? ffi.nullptr, + opts, + block._id); } - NSData initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_217( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + int indexOfObjectPassingTest_(ObjCBlock4 predicate) { + return _lib._objc_msgSend_135( + _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); } - static NSData dataWithData_(NativeCupertinoHttp _lib, NSData? data) { - final _ret = _lib._objc_msgSend_217(_lib._class_NSData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock4 predicate) { + return _lib._objc_msgSend_136(_id, + _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); } - /// Create an NSData from a Base-64 encoded NSString using the given options. By default, returns nil when the input is not recognized as valid Base-64. - NSData initWithBase64EncodedString_options_( - NSString? base64String, int options) { - final _ret = _lib._objc_msgSend_218( + int indexOfObjectAtIndexes_options_passingTest_( + NSIndexSet? s, int opts, ObjCBlock4 predicate) { + return _lib._objc_msgSend_137( _id, - _lib._sel_initWithBase64EncodedString_options_1, - base64String?._id ?? ffi.nullptr, - options); - return NSData._(_ret, _lib, retain: true, release: true); + _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id); } - /// Create a Base-64 encoded NSString from the receiver's contents using the given options. - NSString base64EncodedStringWithOptions_(int options) { - final _ret = _lib._objc_msgSend_219( - _id, _lib._sel_base64EncodedStringWithOptions_1, options); - return NSString._(_ret, _lib, retain: true, release: true); + NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock4 predicate) { + final _ret = _lib._objc_msgSend_138( + _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - /// Create an NSData from a Base-64, UTF-8 encoded NSData. By default, returns nil when the input is not recognized as valid Base-64. - NSData initWithBase64EncodedData_options_(NSData? base64Data, int options) { - final _ret = _lib._objc_msgSend_220( + NSIndexSet indexesOfObjectsWithOptions_passingTest_( + int opts, ObjCBlock4 predicate) { + final _ret = _lib._objc_msgSend_139( _id, - _lib._sel_initWithBase64EncodedData_options_1, - base64Data?._id ?? ffi.nullptr, - options); - return NSData._(_ret, _lib, retain: true, release: true); - } - - /// Create a Base-64, UTF-8 encoded NSData from the receiver's contents using the given options. - NSData base64EncodedDataWithOptions_(int options) { - final _ret = _lib._objc_msgSend_221( - _id, _lib._sel_base64EncodedDataWithOptions_1, options); - return NSData._(_ret, _lib, retain: true, release: true); + _lib._sel_indexesOfObjectsWithOptions_passingTest_1, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - /// These methods return a compressed or decompressed version of the receiver using the specified algorithm. - NSData decompressedDataUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_222(_id, - _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); - return NSData._(_ret, _lib, retain: true, release: true); + NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( + NSIndexSet? s, int opts, ObjCBlock4 predicate) { + final _ret = _lib._objc_msgSend_140( + _id, + _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSData compressedDataUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_222( - _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); - return NSData._(_ret, _lib, retain: true, release: true); + NSArray sortedArrayUsingComparator_(NSComparator cmptr) { + final _ret = _lib._objc_msgSend_141( + _id, _lib._sel_sortedArrayUsingComparator_1, cmptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - void getBytes_(ffi.Pointer buffer) { - return _lib._objc_msgSend_59(_id, _lib._sel_getBytes_1, buffer); + NSArray sortedArrayWithOptions_usingComparator_( + int opts, NSComparator cmptr) { + final _ret = _lib._objc_msgSend_142( + _id, _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject dataWithContentsOfMappedFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// binary search + int indexOfObject_inSortedRange_options_usingComparator_( + NSObject obj, NSRange r, int opts, NSComparator cmp) { + return _lib._objc_msgSend_143( + _id, + _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, + obj._id, + r, + opts, + cmp); } - NSObject initWithContentsOfMappedFile_(NSString? path) { - final _ret = _lib._objc_msgSend_42(_id, - _lib._sel_initWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSArray array(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_array1); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// These methods first appeared in NSData.h on OS X 10.9 and iOS 7.0. They are deprecated in the same releases in favor of the methods in the NSDataBase64Encoding category. However, these methods have existed for several releases, so they may be used for applications targeting releases prior to OS X 10.9 and iOS 7.0. - NSObject initWithBase64Encoding_(NSString? base64String) { - final _ret = _lib._objc_msgSend_42(_id, _lib._sel_initWithBase64Encoding_1, - base64String?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSArray arrayWithObject_(NativeCupertinoHttp _lib, NSObject anObject) { + final _ret = _lib._objc_msgSend_91( + _lib._class_NSArray1, _lib._sel_arrayWithObject_1, anObject._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString base64Encoding() { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_base64Encoding1); - return NSString._(_ret, _lib, retain: true, release: true); + static NSArray arrayWithObjects_count_(NativeCupertinoHttp _lib, + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_95( + _lib._class_NSArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSData new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_new1); - return NSData._(_ret, _lib, retain: false, release: true); + static NSArray arrayWithObjects_( + NativeCupertinoHttp _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_91( + _lib._class_NSArray1, _lib._sel_arrayWithObjects_1, firstObj._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSData alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_alloc1); - return NSData._(_ret, _lib, retain: false, release: true); + static NSArray arrayWithArray_(NativeCupertinoHttp _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_100(_lib._class_NSArray1, + _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } -} - -class NSURL extends NSObject { - NSURL._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURL] that points to the same underlying object as [other]. - static NSURL castFrom(T other) { - return NSURL._(other._id, other._lib, retain: true, release: true); + NSArray initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_91(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSURL] that wraps the given raw object pointer. - static NSURL castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURL._(other, lib, retain: retain, release: release); + NSArray initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_100( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSURL]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURL1); + NSArray initWithArray_copyItems_(NSArray? array, bool flag) { + final _ret = _lib._objc_msgSend_144(_id, + _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); + return NSArray._(_ret, _lib, retain: false, release: true); } - /// this call percent-encodes both the host and path, so this cannot be used to set a username/password or port in the hostname part or with a IPv6 '[...]' type address. NSURLComponents handles IPv6 addresses correctly. - NSURL initWithScheme_host_path_( - NSString? scheme, NSString? host, NSString? path) { - final _ret = _lib._objc_msgSend_38( + /// Reads array stored in NSPropertyList format from the specified url. + NSArray initWithContentsOfURL_error_( + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_145( _id, - _lib._sel_initWithScheme_host_path_1, - scheme?._id ?? ffi.nullptr, - host?._id ?? ffi.nullptr, - path?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Initializes a newly created file NSURL referencing the local file or directory at path, relative to a base URL. - NSURL initFileURLWithPath_isDirectory_relativeToURL_( - NSString? path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_39( - _id, - _lib._sel_initFileURLWithPath_isDirectory_relativeToURL_1, - path?._id ?? ffi.nullptr, - isDir, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + /// Reads array stored in NSPropertyList format from the specified url. + static NSArray arrayWithContentsOfURL_error_(NativeCupertinoHttp _lib, + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_145( + _lib._class_NSArray1, + _lib._sel_arrayWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Better to use initFileURLWithPath:isDirectory:relativeToURL: if you know if the path is a directory vs non-directory, as it saves an I/O. - NSURL initFileURLWithPath_relativeToURL_(NSString? path, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_40( + NSOrderedCollectionDifference + differenceFromArray_withOptions_usingEquivalenceTest_( + NSArray? other, int options, ObjCBlock7 block) { + final _ret = _lib._objc_msgSend_154( _id, - _lib._sel_initFileURLWithPath_relativeToURL_1, - path?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, + other?._id ?? ffi.nullptr, + options, + block._id); + return NSOrderedCollectionDifference._(_ret, _lib, + retain: true, release: true); } - NSURL initFileURLWithPath_isDirectory_(NSString? path, bool isDir) { - final _ret = _lib._objc_msgSend_41( + NSOrderedCollectionDifference differenceFromArray_withOptions_( + NSArray? other, int options) { + final _ret = _lib._objc_msgSend_155( _id, - _lib._sel_initFileURLWithPath_isDirectory_1, - path?._id ?? ffi.nullptr, - isDir); - return NSURL._(_ret, _lib, retain: true, release: true); + _lib._sel_differenceFromArray_withOptions_1, + other?._id ?? ffi.nullptr, + options); + return NSOrderedCollectionDifference._(_ret, _lib, + retain: true, release: true); } - /// Better to use initFileURLWithPath:isDirectory: if you know if the path is a directory vs non-directory, as it saves an i/o. - NSURL initFileURLWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initFileURLWithPath_1, path?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + /// Uses isEqual: to determine the difference between the parameter and the receiver + NSOrderedCollectionDifference differenceFromArray_(NSArray? other) { + final _ret = _lib._objc_msgSend_156( + _id, _lib._sel_differenceFromArray_1, other?._id ?? ffi.nullptr); + return NSOrderedCollectionDifference._(_ret, _lib, + retain: true, release: true); } - /// Initializes and returns a newly created file NSURL referencing the local file or directory at path, relative to a base URL. - static NSURL fileURLWithPath_isDirectory_relativeToURL_( - NativeCupertinoHttp _lib, NSString? path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_43( - _lib._class_NSURL1, - _lib._sel_fileURLWithPath_isDirectory_relativeToURL_1, - path?._id ?? ffi.nullptr, - isDir, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSArray arrayByApplyingDifference_( + NSOrderedCollectionDifference? difference) { + final _ret = _lib._objc_msgSend_157(_id, + _lib._sel_arrayByApplyingDifference_1, difference?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Better to use fileURLWithPath:isDirectory:relativeToURL: if you know if the path is a directory vs non-directory, as it saves an I/O. - static NSURL fileURLWithPath_relativeToURL_( - NativeCupertinoHttp _lib, NSString? path, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_44( - _lib._class_NSURL1, - _lib._sel_fileURLWithPath_relativeToURL_1, - path?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + /// This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:range: instead. + void getObjects_(ffi.Pointer> objects) { + return _lib._objc_msgSend_158(_id, _lib._sel_getObjects_1, objects); } - static NSURL fileURLWithPath_isDirectory_( - NativeCupertinoHttp _lib, NSString? path, bool isDir) { - final _ret = _lib._objc_msgSend_45( - _lib._class_NSURL1, - _lib._sel_fileURLWithPath_isDirectory_1, - path?._id ?? ffi.nullptr, - isDir); - return NSURL._(_ret, _lib, retain: true, release: true); + /// These methods are deprecated, and will be marked with API_DEPRECATED in a subsequent release. Use the variants that use errors instead. + static NSArray arrayWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_159(_lib._class_NSArray1, + _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Better to use fileURLWithPath:isDirectory: if you know if the path is a directory vs non-directory, as it saves an i/o. - static NSURL fileURLWithPath_(NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_46(_lib._class_NSURL1, - _lib._sel_fileURLWithPath_1, path?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSArray arrayWithContentsOfURL_(NativeCupertinoHttp _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_160(_lib._class_NSArray1, + _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Initializes a newly created URL referencing the local file or directory at the file system representation of the path. File system representation is a null-terminated C string with canonical UTF-8 encoding. - NSURL initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( - ffi.Pointer path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_47( - _id, - _lib._sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, - path, - isDir, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSArray initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_159( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Initializes and returns a newly created URL referencing the local file or directory at the file system representation of the path. File system representation is a null-terminated C string with canonical UTF-8 encoding. - static NSURL fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( - NativeCupertinoHttp _lib, - ffi.Pointer path, - bool isDir, - NSURL? baseURL) { - final _ret = _lib._objc_msgSend_48( - _lib._class_NSURL1, - _lib._sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, - path, - isDir, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSArray initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_160( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// These methods expect their string arguments to contain any percent escape codes that are necessary. It is an error for URLString to be nil. - NSURL initWithString_(NSString? URLString) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithString_1, URLString?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_37(_id, _lib._sel_writeToFile_atomically_1, + path?._id ?? ffi.nullptr, useAuxiliaryFile); } - NSURL initWithString_relativeToURL_(NSString? URLString, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_40( - _id, - _lib._sel_initWithString_relativeToURL_1, - URLString?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + bool writeToURL_atomically_(NSURL? url, bool atomically) { + return _lib._objc_msgSend_161(_id, _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, atomically); } - static NSURL URLWithString_(NativeCupertinoHttp _lib, NSString? URLString) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSURL1, - _lib._sel_URLWithString_1, URLString?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSArray new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_new1); + return NSArray._(_ret, _lib, retain: false, release: true); } - static NSURL URLWithString_relativeToURL_( - NativeCupertinoHttp _lib, NSString? URLString, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_40( - _lib._class_NSURL1, - _lib._sel_URLWithString_relativeToURL_1, - URLString?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSArray alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_alloc1); + return NSArray._(_ret, _lib, retain: false, release: true); } +} - /// Initializes a newly created NSURL using the contents of the given data, relative to a base URL. If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected. - NSURL initWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_49( - _id, - _lib._sel_initWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - /// Initializes and returns a newly created NSURL using the contents of the given data, relative to a base URL. If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected. - static NSURL URLWithDataRepresentation_relativeToURL_( - NativeCupertinoHttp _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURL1, - _lib._sel_URLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - /// Initializes a newly created absolute NSURL using the contents of the given data, relative to a base URL. If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected. - NSURL initAbsoluteURLWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_49( - _id, - _lib._sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - /// Initializes and returns a newly created absolute NSURL using the contents of the given data, relative to a base URL. If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected. - static NSURL absoluteURLWithDataRepresentation_relativeToURL_( - NativeCupertinoHttp _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSURL1, - _lib._sel_absoluteURLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } +class NSIndexSet extends NSObject { + NSIndexSet._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - /// Returns the data representation of the URL's relativeString. If the URL was initialized with -initWithData:relativeToURL:, the data representation returned are the same bytes as those used at initialization; otherwise, the data representation returned are the bytes of the relativeString encoded with NSUTF8StringEncoding. - NSData? get dataRepresentation { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_dataRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + /// Returns a [NSIndexSet] that points to the same underlying object as [other]. + static NSIndexSet castFrom(T other) { + return NSIndexSet._(other._id, other._lib, retain: true, release: true); } - NSString? get absoluteString { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_absoluteString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Returns a [NSIndexSet] that wraps the given raw object pointer. + static NSIndexSet castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSIndexSet._(other, lib, retain: retain, release: release); } - /// The relative portion of a URL. If baseURL is nil, or if the receiver is itself absolute, this is the same as absoluteString - NSString? get relativeString { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_relativeString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSIndexSet]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSIndexSet1); } - /// may be nil. - NSURL? get baseURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_baseURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + static NSIndexSet indexSet(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_indexSet1); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - /// if the receiver is itself absolute, this will return self. - NSURL? get absoluteURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_absoluteURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + static NSIndexSet indexSetWithIndex_(NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_94( + _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndex_1, value); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - /// Any URL is composed of these two basic pieces. The full URL would be the concatenation of [myURL scheme], ':', [myURL resourceSpecifier] - NSString? get scheme { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_scheme1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSIndexSet indexSetWithIndexesInRange_( + NativeCupertinoHttp _lib, NSRange range) { + final _ret = _lib._objc_msgSend_111( + _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndexesInRange_1, range); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSString? get resourceSpecifier { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_resourceSpecifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSIndexSet initWithIndexesInRange_(NSRange range) { + final _ret = + _lib._objc_msgSend_111(_id, _lib._sel_initWithIndexesInRange_1, range); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - /// If the URL conforms to rfc 1808 (the most common form of URL), the following accessors will return the various components; otherwise they return nil. The litmus test for conformance is as recommended in RFC 1808 - whether the first two characters of resourceSpecifier is @"//". In all cases, they return the component's value after resolving the receiver against its base URL. - NSString? get host { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_host1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSIndexSet initWithIndexSet_(NSIndexSet? indexSet) { + final _ret = _lib._objc_msgSend_112( + _id, _lib._sel_initWithIndexSet_1, indexSet?._id ?? ffi.nullptr); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSNumber? get port { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_port1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + NSIndexSet initWithIndex_(int value) { + final _ret = _lib._objc_msgSend_94(_id, _lib._sel_initWithIndex_1, value); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSString? get user { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_user1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool isEqualToIndexSet_(NSIndexSet? indexSet) { + return _lib._objc_msgSend_113( + _id, _lib._sel_isEqualToIndexSet_1, indexSet?._id ?? ffi.nullptr); } - NSString? get password { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_password1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get count { + return _lib._objc_msgSend_12(_id, _lib._sel_count1); } - NSString? get path { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_path1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get firstIndex { + return _lib._objc_msgSend_12(_id, _lib._sel_firstIndex1); } - NSString? get fragment { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_fragment1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get lastIndex { + return _lib._objc_msgSend_12(_id, _lib._sel_lastIndex1); } - NSString? get parameterString { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_parameterString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int indexGreaterThanIndex_(int value) { + return _lib._objc_msgSend_114( + _id, _lib._sel_indexGreaterThanIndex_1, value); } - NSString? get query { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_query1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int indexLessThanIndex_(int value) { + return _lib._objc_msgSend_114(_id, _lib._sel_indexLessThanIndex_1, value); } - /// The same as path if baseURL is nil - NSString? get relativePath { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_relativePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int indexGreaterThanOrEqualToIndex_(int value) { + return _lib._objc_msgSend_114( + _id, _lib._sel_indexGreaterThanOrEqualToIndex_1, value); } - /// Determines if a given URL string's path represents a directory (i.e. the path component in the URL string ends with a '/' character). This does not check the resource the URL refers to. - bool get hasDirectoryPath { - return _lib._objc_msgSend_11(_id, _lib._sel_hasDirectoryPath1); + int indexLessThanOrEqualToIndex_(int value) { + return _lib._objc_msgSend_114( + _id, _lib._sel_indexLessThanOrEqualToIndex_1, value); } - /// Returns the URL's path in file system representation. File system representation is a null-terminated C string with canonical UTF-8 encoding. - bool getFileSystemRepresentation_maxLength_( - ffi.Pointer buffer, int maxBufferLength) { - return _lib._objc_msgSend_90( + int getIndexes_maxCount_inIndexRange_(ffi.Pointer indexBuffer, + int bufferSize, NSRangePointer range) { + return _lib._objc_msgSend_115( _id, - _lib._sel_getFileSystemRepresentation_maxLength_1, - buffer, - maxBufferLength); - } - - /// Returns the URL's path in file system representation. File system representation is a null-terminated C string with canonical UTF-8 encoding. The returned C string will be automatically freed just as a returned object would be released; your code should copy the representation or use getFileSystemRepresentation:maxLength: if it needs to store the representation outside of the autorelease context in which the representation is created. - ffi.Pointer get fileSystemRepresentation { - return _lib._objc_msgSend_53(_id, _lib._sel_fileSystemRepresentation1); + _lib._sel_getIndexes_maxCount_inIndexRange_1, + indexBuffer, + bufferSize, + range); } - /// Whether the scheme is file:; if [myURL isFileURL] is YES, then [myURL path] is suitable for input into NSFileManager or NSPathUtilities. - bool get fileURL { - return _lib._objc_msgSend_11(_id, _lib._sel_isFileURL1); + int countOfIndexesInRange_(NSRange range) { + return _lib._objc_msgSend_116( + _id, _lib._sel_countOfIndexesInRange_1, range); } - NSURL? get standardizedURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_standardizedURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + bool containsIndex_(int value) { + return _lib._objc_msgSend_117(_id, _lib._sel_containsIndex_1, value); } - /// Returns whether the URL's resource exists and is reachable. This method synchronously checks if the resource's backing store is reachable. Checking reachability is appropriate when making decisions that do not require other immediate operations on the resource, e.g. periodic maintenance of UI state that depends on the existence of a specific document. When performing operations such as opening a file or copying resource properties, it is more efficient to simply try the operation and handle failures. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. For other URL types, NO is returned. Symbol is present in iOS 4, but performs no operation. - bool checkResourceIsReachableAndReturnError_( - ffi.Pointer> error) { - return _lib._objc_msgSend_183( - _id, _lib._sel_checkResourceIsReachableAndReturnError_1, error); + bool containsIndexesInRange_(NSRange range) { + return _lib._objc_msgSend_118( + _id, _lib._sel_containsIndexesInRange_1, range); } - /// Returns whether the URL is a file reference URL. Symbol is present in iOS 4, but performs no operation. - bool isFileReferenceURL() { - return _lib._objc_msgSend_11(_id, _lib._sel_isFileReferenceURL1); + bool containsIndexes_(NSIndexSet? indexSet) { + return _lib._objc_msgSend_113( + _id, _lib._sel_containsIndexes_1, indexSet?._id ?? ffi.nullptr); } - /// Returns a file reference URL that refers to the same resource as a specified file URL. File reference URLs use a URL path syntax that identifies a file system object by reference, not by path. This form of file URL remains valid when the file system path of the URL’s underlying resource changes. An error will occur if the url parameter is not a file URL. File reference URLs cannot be created to file system objects which do not exist or are not reachable. In some areas of the file system hierarchy, file reference URLs cannot be generated to the leaf node of the URL path. A file reference URL's path should never be persistently stored because is not valid across system restarts, and across remounts of volumes -- if you want to create a persistent reference to a file system object, use a bookmark (see -bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:). Symbol is present in iOS 4, but performs no operation. - NSURL fileReferenceURL() { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_fileReferenceURL1); - return NSURL._(_ret, _lib, retain: true, release: true); + bool intersectsIndexesInRange_(NSRange range) { + return _lib._objc_msgSend_118( + _id, _lib._sel_intersectsIndexesInRange_1, range); } - /// Returns a file path URL that refers to the same resource as a specified URL. File path URLs use a file system style path. An error will occur if the url parameter is not a file URL. A file reference URL's resource must exist and be reachable to be converted to a file path URL. Symbol is present in iOS 4, but performs no operation. - NSURL? get filePathURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_filePathURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + void enumerateIndexesUsingBlock_(ObjCBlock block) { + return _lib._objc_msgSend_119( + _id, _lib._sel_enumerateIndexesUsingBlock_1, block._id); } - /// Returns the resource value identified by a given resource key. This method first checks if the URL object already caches the resource value. If so, it returns the cached resource value to the caller. If not, then this method synchronously obtains the resource value from the backing store, adds the resource value to the URL object's cache, and returns the resource value to the caller. The type of the resource value varies by resource property (see resource key definitions). If this method returns YES and value is populated with nil, it means the resource property is not available for the specified resource and no errors occurred when determining the resource property was not available. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation. - bool getResourceValue_forKey_error_( - ffi.Pointer> value, - NSURLResourceKey key, - ffi.Pointer> error) { - return _lib._objc_msgSend_184( - _id, _lib._sel_getResourceValue_forKey_error_1, value, key, error); + void enumerateIndexesWithOptions_usingBlock_(int opts, ObjCBlock block) { + return _lib._objc_msgSend_120(_id, + _lib._sel_enumerateIndexesWithOptions_usingBlock_1, opts, block._id); } - /// Returns the resource values identified by specified array of resource keys. This method first checks if the URL object already caches the resource values. If so, it returns the cached resource values to the caller. If not, then this method synchronously obtains the resource values from the backing store, adds the resource values to the URL object's cache, and returns the resource values to the caller. The type of the resource values vary by property (see resource key definitions). If the result dictionary does not contain a resource value for one or more of the requested resource keys, it means those resource properties are not available for the specified resource and no errors occurred when determining those resource properties were not available. If this method returns NULL, the optional error is populated. This method is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation. - NSDictionary resourceValuesForKeys_error_( - NSArray? keys, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_185( + void enumerateIndexesInRange_options_usingBlock_( + NSRange range, int opts, ObjCBlock block) { + return _lib._objc_msgSend_121( _id, - _lib._sel_resourceValuesForKeys_error_1, - keys?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + _lib._sel_enumerateIndexesInRange_options_usingBlock_1, + range, + opts, + block._id); } - /// Sets the resource value identified by a given resource key. This method writes the new resource value out to the backing store. Attempts to set a read-only resource property or to set a resource property not supported by the resource are ignored and are not considered errors. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation. - bool setResourceValue_forKey_error_(NSObject value, NSURLResourceKey key, - ffi.Pointer> error) { - return _lib._objc_msgSend_186( - _id, _lib._sel_setResourceValue_forKey_error_1, value._id, key, error); + int indexPassingTest_(ObjCBlock1 predicate) { + return _lib._objc_msgSend_122( + _id, _lib._sel_indexPassingTest_1, predicate._id); } - /// Sets any number of resource values of a URL's resource. This method writes the new resource values out to the backing store. Attempts to set read-only resource properties or to set resource properties not supported by the resource are ignored and are not considered errors. If an error occurs after some resource properties have been successfully changed, the userInfo dictionary in the returned error contains an array of resource keys that were not set with the key kCFURLKeysOfUnsetValuesKey. The order in which the resource values are set is not defined. If you need to guarantee the order resource values are set, you should make multiple requests to this method or to -setResourceValue:forKey:error: to guarantee the order. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation. - bool setResourceValues_error_( - NSDictionary? keyedValues, ffi.Pointer> error) { - return _lib._objc_msgSend_187(_id, _lib._sel_setResourceValues_error_1, - keyedValues?._id ?? ffi.nullptr, error); + int indexWithOptions_passingTest_(int opts, ObjCBlock1 predicate) { + return _lib._objc_msgSend_123( + _id, _lib._sel_indexWithOptions_passingTest_1, opts, predicate._id); } - /// Removes the cached resource value identified by a given resource value key from the URL object. Removing a cached resource value may remove other cached resource values because some resource values are cached as a set of values, and because some resource values depend on other resource values (temporary resource values have no dependencies). This method is currently applicable only to URLs for file system resources. - void removeCachedResourceValueForKey_(NSURLResourceKey key) { - return _lib._objc_msgSend_188( - _id, _lib._sel_removeCachedResourceValueForKey_1, key); + int indexInRange_options_passingTest_( + NSRange range, int opts, ObjCBlock1 predicate) { + return _lib._objc_msgSend_124( + _id, + _lib._sel_indexInRange_options_passingTest_1, + range, + opts, + predicate._id); } - /// Removes all cached resource values and all temporary resource values from the URL object. This method is currently applicable only to URLs for file system resources. - void removeAllCachedResourceValues() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); + NSIndexSet indexesPassingTest_(ObjCBlock1 predicate) { + final _ret = _lib._objc_msgSend_125( + _id, _lib._sel_indexesPassingTest_1, predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - /// NS_SWIFT_SENDABLE - void setTemporaryResourceValue_forKey_(NSObject value, NSURLResourceKey key) { - return _lib._objc_msgSend_189( - _id, _lib._sel_setTemporaryResourceValue_forKey_1, value._id, key); + NSIndexSet indexesWithOptions_passingTest_(int opts, ObjCBlock1 predicate) { + final _ret = _lib._objc_msgSend_126( + _id, _lib._sel_indexesWithOptions_passingTest_1, opts, predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - /// Returns bookmark data for the URL, created with specified options and resource values. If this method returns nil, the optional error is populated. - NSData - bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_( - int options, - NSArray? keys, - NSURL? relativeURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_190( + NSIndexSet indexesInRange_options_passingTest_( + NSRange range, int opts, ObjCBlock1 predicate) { + final _ret = _lib._objc_msgSend_127( _id, - _lib._sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1, - options, - keys?._id ?? ffi.nullptr, - relativeURL?._id ?? ffi.nullptr, - error); - return NSData._(_ret, _lib, retain: true, release: true); + _lib._sel_indexesInRange_options_passingTest_1, + range, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); } - /// Initializes a newly created NSURL that refers to a location specified by resolving bookmark data. If this method returns nil, the optional error is populated. - NSURL - initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( - NSData? bookmarkData, - int options, - NSURL? relativeURL, - ffi.Pointer isStale, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_191( - _id, - _lib._sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, - bookmarkData?._id ?? ffi.nullptr, - options, - relativeURL?._id ?? ffi.nullptr, - isStale, - error); - return NSURL._(_ret, _lib, retain: true, release: true); + void enumerateRangesUsingBlock_(ObjCBlock2 block) { + return _lib._objc_msgSend_128( + _id, _lib._sel_enumerateRangesUsingBlock_1, block._id); } - /// Creates and Initializes an NSURL that refers to a location specified by resolving bookmark data. If this method returns nil, the optional error is populated. - static NSURL - URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( - NativeCupertinoHttp _lib, - NSData? bookmarkData, - int options, - NSURL? relativeURL, - ffi.Pointer isStale, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_191( - _lib._class_NSURL1, - _lib._sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, - bookmarkData?._id ?? ffi.nullptr, - options, - relativeURL?._id ?? ffi.nullptr, - isStale, - error); - return NSURL._(_ret, _lib, retain: true, release: true); + void enumerateRangesWithOptions_usingBlock_(int opts, ObjCBlock2 block) { + return _lib._objc_msgSend_129(_id, + _lib._sel_enumerateRangesWithOptions_usingBlock_1, opts, block._id); } - /// Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data. If the result dictionary does not contain a resource value for one or more of the requested resource keys, it means those resource properties are not available in the bookmark data. - static NSDictionary resourceValuesForKeys_fromBookmarkData_( - NativeCupertinoHttp _lib, NSArray? keys, NSData? bookmarkData) { - final _ret = _lib._objc_msgSend_192( - _lib._class_NSURL1, - _lib._sel_resourceValuesForKeys_fromBookmarkData_1, - keys?._id ?? ffi.nullptr, - bookmarkData?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + void enumerateRangesInRange_options_usingBlock_( + NSRange range, int opts, ObjCBlock2 block) { + return _lib._objc_msgSend_130( + _id, + _lib._sel_enumerateRangesInRange_options_usingBlock_1, + range, + opts, + block._id); } - /// Creates an alias file on disk at a specified location with specified bookmark data. bookmarkData must have been created with the NSURLBookmarkCreationSuitableForBookmarkFile option. bookmarkFileURL must either refer to an existing file (which will be overwritten), or to location in an existing directory. If this method returns NO, the optional error is populated. - static bool writeBookmarkData_toURL_options_error_( - NativeCupertinoHttp _lib, - NSData? bookmarkData, - NSURL? bookmarkFileURL, - int options, - ffi.Pointer> error) { - return _lib._objc_msgSend_193( - _lib._class_NSURL1, - _lib._sel_writeBookmarkData_toURL_options_error_1, - bookmarkData?._id ?? ffi.nullptr, - bookmarkFileURL?._id ?? ffi.nullptr, - options, - error); + static NSIndexSet new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_new1); + return NSIndexSet._(_ret, _lib, retain: false, release: true); } - /// Initializes and returns bookmark data derived from an alias file pointed to by a specified URL. If bookmarkFileURL refers to an alias file created prior to OS X v10.6 that contains Alias Manager information but no bookmark data, this method synthesizes bookmark data for the file. If this method returns nil, the optional error is populated. - static NSData bookmarkDataWithContentsOfURL_error_(NativeCupertinoHttp _lib, - NSURL? bookmarkFileURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_194( - _lib._class_NSURL1, - _lib._sel_bookmarkDataWithContentsOfURL_error_1, - bookmarkFileURL?._id ?? ffi.nullptr, - error); - return NSData._(_ret, _lib, retain: true, release: true); + static NSIndexSet alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_alloc1); + return NSIndexSet._(_ret, _lib, retain: false, release: true); } +} - /// Creates and initializes a NSURL that refers to the location specified by resolving the alias file at url. If the url argument does not refer to an alias file as defined by the NSURLIsAliasFileKey property, the NSURL returned is the same as url argument. This method fails and returns nil if the url argument is unreachable, or if the original file or directory could not be located or is not reachable, or if the original file or directory is on a volume that could not be located or mounted. If this method fails, the optional error is populated. The NSURLBookmarkResolutionWithSecurityScope option is not supported by this method. - static NSURL URLByResolvingAliasFileAtURL_options_error_( - NativeCupertinoHttp _lib, - NSURL? url, - int options, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_195( - _lib._class_NSURL1, - _lib._sel_URLByResolvingAliasFileAtURL_options_error_1, - url?._id ?? ffi.nullptr, - options, - error); - return NSURL._(_ret, _lib, retain: true, release: true); - } +typedef NSRangePointer = ffi.Pointer; - /// Given a NSURL created by resolving a bookmark data created with security scope, make the resource referenced by the url accessible to the process. When access to this resource is no longer needed the client must call stopAccessingSecurityScopedResource. Each call to startAccessingSecurityScopedResource must be balanced with a call to stopAccessingSecurityScopedResource (Note: this is not reference counted). - bool startAccessingSecurityScopedResource() { - return _lib._objc_msgSend_11( - _id, _lib._sel_startAccessingSecurityScopedResource1); - } +class _ObjCBlockBase implements ffi.Finalizable { + final ffi.Pointer<_ObjCBlock> _id; + final NativeCupertinoHttp _lib; + bool _pendingRelease; - /// Revokes the access granted to the url by a prior successful call to startAccessingSecurityScopedResource. - void stopAccessingSecurityScopedResource() { - return _lib._objc_msgSend_1( - _id, _lib._sel_stopAccessingSecurityScopedResource1); + _ObjCBlockBase._(this._id, this._lib, + {bool retain = false, bool release = false}) + : _pendingRelease = release { + if (retain) { + _lib._Block_copy(_id.cast()); + } + if (release) { + _lib._objc_releaseFinalizer11.attach(this, _id.cast(), detach: this); + } } - /// Get resource values from URLs of 'promised' items. A promised item is not guaranteed to have its contents in the file system until you use NSFileCoordinator to perform a coordinated read on its URL, which causes the contents to be downloaded or otherwise generated. Promised item URLs are returned by various APIs, including currently: - /// - NSMetadataQueryUbiquitousDataScope - /// - NSMetadataQueryUbiquitousDocumentsScope - /// - An NSFilePresenter presenting the contents of the directory located by -URLForUbiquitousContainerIdentifier: or a subdirectory thereof - /// - /// The following methods behave identically to their similarly named methods above (-getResourceValue:forKey:error:, etc.), except that they allow you to get resource values and check for presence regardless of whether the promised item's contents currently exist at the URL. You must use these APIs instead of the normal NSURL resource value APIs if and only if any of the following are true: - /// - You are using a URL that you know came directly from one of the above APIs - /// - 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_( - ffi.Pointer> value, - NSURLResourceKey key, - ffi.Pointer> error) { - return _lib._objc_msgSend_184( - _id, - _lib._sel_getPromisedItemResourceValue_forKey_error_1, - value, - key, - error); + /// Releases the reference to the underlying ObjC block held by this wrapper. + /// Throws a StateError if this wrapper doesn't currently hold a reference. + void release() { + if (_pendingRelease) { + _pendingRelease = false; + _lib._Block_release(_id.cast()); + _lib._objc_releaseFinalizer11.detach(this); + } else { + throw StateError( + 'Released an ObjC block that was unowned or already released.'); + } } - NSDictionary promisedItemResourceValuesForKeys_error_( - NSArray? keys, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_185( - _id, - _lib._sel_promisedItemResourceValuesForKeys_error_1, - keys?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + @override + bool operator ==(Object other) { + return other is _ObjCBlockBase && _id == other._id; } - bool checkPromisedItemIsReachableAndReturnError_( - ffi.Pointer> error) { - return _lib._objc_msgSend_183( - _id, _lib._sel_checkPromisedItemIsReachableAndReturnError_1, error); - } + @override + int get hashCode => _id.hashCode; +} - /// The following methods work on the path portion of a URL in the same manner that the NSPathUtilities methods on NSString do. - static NSURL fileURLWithPathComponents_( - NativeCupertinoHttp _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_196(_lib._class_NSURL1, - _lib._sel_fileURLWithPathComponents_1, components?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(NSUInteger arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(int arg0, ffi.Pointer arg1)>()(arg0, arg1); +} - NSArray? get pathComponents { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_pathComponents1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } +final _ObjCBlock_closureRegistry = {}; +int _ObjCBlock_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_registerClosure(Function fn) { + final id = ++_ObjCBlock_closureRegistryIndex; + _ObjCBlock_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - NSString? get lastPathComponent { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_lastPathComponent1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + return _ObjCBlock_closureRegistry[block.ref.target.address]!(arg0, arg1); +} - NSString? get pathExtension { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_pathExtension1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock extends _ObjCBlockBase { + ObjCBlock._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - NSURL URLByAppendingPathComponent_(NSString? pathComponent) { - final _ret = _lib._objc_msgSend_46( - _id, - _lib._sel_URLByAppendingPathComponent_1, - pathComponent?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + NSUInteger arg0, ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + NSUInteger arg0, ffi.Pointer arg1)>( + _ObjCBlock_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSURL URLByAppendingPathComponent_isDirectory_( - NSString? pathComponent, bool isDirectory) { - final _ret = _lib._objc_msgSend_45( - _id, - _lib._sel_URLByAppendingPathComponent_isDirectory_1, - pathComponent?._id ?? ffi.nullptr, - isDirectory); - return NSURL._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock.fromFunction(NativeCupertinoHttp lib, + void Function(int arg0, ffi.Pointer arg1) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + NSUInteger arg0, ffi.Pointer arg1)>( + _ObjCBlock_closureTrampoline) + .cast(), + _ObjCBlock_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(int arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + NSUInteger arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, int arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); } - NSURL? get URLByDeletingLastPathComponent { - final _ret = - _lib._objc_msgSend_52(_id, _lib._sel_URLByDeletingLastPathComponent1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - NSURL URLByAppendingPathExtension_(NSString? pathExtension) { - final _ret = _lib._objc_msgSend_46( - _id, - _lib._sel_URLByAppendingPathExtension_1, - pathExtension?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } +class _ObjCBlockDesc extends ffi.Struct { + @ffi.UnsignedLong() + external int reserved; - NSURL? get URLByDeletingPathExtension { - final _ret = - _lib._objc_msgSend_52(_id, _lib._sel_URLByDeletingPathExtension1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } + @ffi.UnsignedLong() + external int size; - /// The following methods work only on `file:` scheme URLs; for non-`file:` scheme URLs, these methods return the URL unchanged. - NSURL? get URLByStandardizingPath { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URLByStandardizingPath1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } + external ffi.Pointer copy_helper; - NSURL? get URLByResolvingSymlinksInPath { - final _ret = - _lib._objc_msgSend_52(_id, _lib._sel_URLByResolvingSymlinksInPath1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } + external ffi.Pointer dispose_helper; - /// Blocks to load the data if necessary. If shouldUseCache is YES, then if an equivalent URL has already been loaded and cached, its resource data will be returned immediately. If shouldUseCache is NO, a new load will be started - NSData resourceDataUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_197( - _id, _lib._sel_resourceDataUsingCache_1, shouldUseCache); - return NSData._(_ret, _lib, retain: true, release: true); - } + external ffi.Pointer signature; +} - /// Starts an asynchronous load of the data, registering delegate to receive notification. Only one such background load can proceed at a time. - void loadResourceDataNotifyingClient_usingCache_( - NSObject client, bool shouldUseCache) { - return _lib._objc_msgSend_198( - _id, - _lib._sel_loadResourceDataNotifyingClient_usingCache_1, - client._id, - shouldUseCache); - } +class _ObjCBlock extends ffi.Struct { + external ffi.Pointer isa; - NSObject propertyForKey_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + @ffi.Int() + external int flags; - /// These attempt to write the given arguments for the resource specified by the URL; they return success or failure - bool setResourceData_(NSData? data) { - return _lib._objc_msgSend_35( - _id, _lib._sel_setResourceData_1, data?._id ?? ffi.nullptr); - } + @ffi.Int() + external int reserved; - bool setProperty_forKey_(NSObject property, NSString? propertyKey) { - return _lib._objc_msgSend_199(_id, _lib._sel_setProperty_forKey_1, - property._id, propertyKey?._id ?? ffi.nullptr); - } + external ffi.Pointer invoke; - /// Sophisticated clients will want to ask for this, then message the handle directly. If shouldUseCache is NO, a newly instantiated handle is returned, even if an equivalent URL has been loaded - NSURLHandle URLHandleUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_207( - _id, _lib._sel_URLHandleUsingCache_1, shouldUseCache); - return NSURLHandle._(_ret, _lib, retain: true, release: true); - } + external ffi.Pointer<_ObjCBlockDesc> descriptor; - static NSURL new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_new1); - return NSURL._(_ret, _lib, retain: false, release: true); - } + external ffi.Pointer target; +} - static NSURL alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_alloc1); - return NSURL._(_ret, _lib, retain: false, release: true); - } +abstract class NSEnumerationOptions { + static const int NSEnumerationConcurrent = 1; + static const int NSEnumerationReverse = 2; } -class NSNumber extends NSValue { - NSNumber._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +bool _ObjCBlock1_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(NSUInteger arg0, ffi.Pointer arg1)>>() + .asFunction< + bool Function(int arg0, ffi.Pointer arg1)>()(arg0, arg1); +} - /// Returns a [NSNumber] that points to the same underlying object as [other]. - static NSNumber castFrom(T other) { - return NSNumber._(other._id, other._lib, retain: true, release: true); - } +final _ObjCBlock1_closureRegistry = {}; +int _ObjCBlock1_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock1_registerClosure(Function fn) { + final id = ++_ObjCBlock1_closureRegistryIndex; + _ObjCBlock1_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - /// Returns a [NSNumber] that wraps the given raw object pointer. - static NSNumber castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSNumber._(other, lib, retain: retain, release: release); - } +bool _ObjCBlock1_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + return _ObjCBlock1_closureRegistry[block.ref.target.address]!(arg0, arg1); +} - /// Returns whether [obj] is an instance of [NSNumber]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNumber1); - } +class ObjCBlock1 extends _ObjCBlockBase { + ObjCBlock1._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - @override - NSNumber initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSNumber._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock1.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, + NSUInteger arg0, ffi.Pointer arg1)>( + _ObjCBlock1_fnPtrTrampoline, false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSNumber initWithChar_(int value) { - final _ret = _lib._objc_msgSend_62(_id, _lib._sel_initWithChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock1.fromFunction(NativeCupertinoHttp lib, + bool Function(int arg0, ffi.Pointer arg1) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, + NSUInteger arg0, ffi.Pointer arg1)>( + _ObjCBlock1_closureTrampoline, false) + .cast(), + _ObjCBlock1_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + bool call(int arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, + NSUInteger arg0, ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock> block, int arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); } - NSNumber initWithUnsignedChar_(int value) { - final _ret = - _lib._objc_msgSend_63(_id, _lib._sel_initWithUnsignedChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - NSNumber initWithShort_(int value) { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_initWithShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock2_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, NSRange arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(NSRange arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function( + NSRange arg0, ffi.Pointer arg1)>()(arg0, arg1); +} - NSNumber initWithUnsignedShort_(int value) { - final _ret = - _lib._objc_msgSend_65(_id, _lib._sel_initWithUnsignedShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } +final _ObjCBlock2_closureRegistry = {}; +int _ObjCBlock2_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock2_registerClosure(Function fn) { + final id = ++_ObjCBlock2_closureRegistryIndex; + _ObjCBlock2_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - NSNumber initWithInt_(int value) { - final _ret = _lib._objc_msgSend_66(_id, _lib._sel_initWithInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock2_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, NSRange arg0, ffi.Pointer arg1) { + return _ObjCBlock2_closureRegistry[block.ref.target.address]!(arg0, arg1); +} - NSNumber initWithUnsignedInt_(int value) { - final _ret = - _lib._objc_msgSend_67(_id, _lib._sel_initWithUnsignedInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock2 extends _ObjCBlockBase { + ObjCBlock2._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - NSNumber initWithLong_(int value) { - final _ret = _lib._objc_msgSend_68(_id, _lib._sel_initWithLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock2.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(NSRange arg0, ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + NSRange arg0, ffi.Pointer arg1)>( + _ObjCBlock2_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSNumber initWithUnsignedLong_(int value) { - final _ret = - _lib._objc_msgSend_69(_id, _lib._sel_initWithUnsignedLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock2.fromFunction(NativeCupertinoHttp lib, + void Function(NSRange arg0, ffi.Pointer arg1) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + NSRange arg0, ffi.Pointer arg1)>( + _ObjCBlock2_closureTrampoline) + .cast(), + _ObjCBlock2_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(NSRange arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, NSRange arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, NSRange arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); } - NSNumber initWithLongLong_(int value) { - final _ret = - _lib._objc_msgSend_70(_id, _lib._sel_initWithLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - NSNumber initWithUnsignedLongLong_(int value) { - final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_initWithUnsignedLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock3_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, int arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} - NSNumber initWithFloat_(double value) { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_initWithFloat_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } +final _ObjCBlock3_closureRegistry = {}; +int _ObjCBlock3_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock3_registerClosure(Function fn) { + final id = ++_ObjCBlock3_closureRegistryIndex; + _ObjCBlock3_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - NSNumber initWithDouble_(double value) { - final _ret = _lib._objc_msgSend_73(_id, _lib._sel_initWithDouble_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock3_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return _ObjCBlock3_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} - NSNumber initWithBool_(bool value) { - final _ret = _lib._objc_msgSend_74(_id, _lib._sel_initWithBool_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock3 extends _ObjCBlockBase { + ObjCBlock3._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - NSNumber initWithInteger_(int value) { - final _ret = _lib._objc_msgSend_68(_id, _lib._sel_initWithInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock3.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + NSUInteger arg1, ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSUInteger arg1, + ffi.Pointer arg2)>( + _ObjCBlock3_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSNumber initWithUnsignedInteger_(int value) { - final _ret = - _lib._objc_msgSend_69(_id, _lib._sel_initWithUnsignedInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock3.fromFunction( + NativeCupertinoHttp lib, + void Function(ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSUInteger arg1, + ffi.Pointer arg2)>( + _ObjCBlock3_closureTrampoline) + .cast(), + _ObjCBlock3_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSUInteger arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); } - int get charValue { - return _lib._objc_msgSend_75(_id, _lib._sel_charValue1); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - int get unsignedCharValue { - return _lib._objc_msgSend_76(_id, _lib._sel_unsignedCharValue1); - } +bool _ObjCBlock4_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, NSUInteger arg1, + ffi.Pointer arg2)>>() + .asFunction< + bool Function(ffi.Pointer arg0, int arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} - int get shortValue { - return _lib._objc_msgSend_77(_id, _lib._sel_shortValue1); - } +final _ObjCBlock4_closureRegistry = {}; +int _ObjCBlock4_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock4_registerClosure(Function fn) { + final id = ++_ObjCBlock4_closureRegistryIndex; + _ObjCBlock4_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - int get unsignedShortValue { - return _lib._objc_msgSend_78(_id, _lib._sel_unsignedShortValue1); - } - - int get intValue { - return _lib._objc_msgSend_79(_id, _lib._sel_intValue1); - } - - int get unsignedIntValue { - return _lib._objc_msgSend_80(_id, _lib._sel_unsignedIntValue1); - } - - int get longValue { - return _lib._objc_msgSend_81(_id, _lib._sel_longValue1); - } +bool _ObjCBlock4_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return _ObjCBlock4_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} - int get unsignedLongValue { - return _lib._objc_msgSend_12(_id, _lib._sel_unsignedLongValue1); - } +class ObjCBlock4 extends _ObjCBlockBase { + ObjCBlock4._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - int get longLongValue { - return _lib._objc_msgSend_82(_id, _lib._sel_longLongValue1); - } + /// Creates a block from a C function pointer. + ObjCBlock4.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + NSUInteger arg1, ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSUInteger arg1, + ffi.Pointer arg2)>( + _ObjCBlock4_fnPtrTrampoline, false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - int get unsignedLongLongValue { - return _lib._objc_msgSend_83(_id, _lib._sel_unsignedLongLongValue1); + /// Creates a block from a Dart function. + ObjCBlock4.fromFunction( + NativeCupertinoHttp lib, + bool Function(ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSUInteger arg1, + ffi.Pointer arg2)>( + _ObjCBlock4_closureTrampoline, false) + .cast(), + _ObjCBlock4_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + bool call( + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSUInteger arg1, + ffi.Pointer arg2)>>() + .asFunction< + bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); } - double get floatValue { - return _lib._objc_msgSend_84(_id, _lib._sel_floatValue1); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - double get doubleValue { - return _lib._objc_msgSend_85(_id, _lib._sel_doubleValue1); - } +typedef NSComparator = ffi.Pointer<_ObjCBlock>; +int _ObjCBlock5_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + int Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} - bool get boolValue { - return _lib._objc_msgSend_11(_id, _lib._sel_boolValue1); - } +final _ObjCBlock5_closureRegistry = {}; +int _ObjCBlock5_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock5_registerClosure(Function fn) { + final id = ++_ObjCBlock5_closureRegistryIndex; + _ObjCBlock5_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - int get integerValue { - return _lib._objc_msgSend_81(_id, _lib._sel_integerValue1); - } +int _ObjCBlock5_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock5_closureRegistry[block.ref.target.address]!(arg0, arg1); +} - int get unsignedIntegerValue { - return _lib._objc_msgSend_12(_id, _lib._sel_unsignedIntegerValue1); - } +class ObjCBlock5 extends _ObjCBlockBase { + ObjCBlock5._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - NSString? get stringValue { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_stringValue1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock5.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock5_fnPtrTrampoline, 0) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - int compare_(NSNumber? otherNumber) { - return _lib._objc_msgSend_86( - _id, _lib._sel_compare_1, otherNumber?._id ?? ffi.nullptr); + /// Creates a block from a Dart function. + ObjCBlock5.fromFunction( + NativeCupertinoHttp lib, + int Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock5_closureTrampoline, 0) + .cast(), + _ObjCBlock5_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + int call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + int Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); } - bool isEqualToNumber_(NSNumber? number) { - return _lib._objc_msgSend_87( - _id, _lib._sel_isEqualToNumber_1, number?._id ?? ffi.nullptr); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_88( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } +abstract class NSSortOptions { + static const int NSSortConcurrent = 1; + static const int NSSortStable = 16; +} - static NSNumber numberWithChar_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_62( - _lib._class_NSNumber1, _lib._sel_numberWithChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } +abstract class NSBinarySearchingOptions { + static const int NSBinarySearchingFirstEqual = 256; + static const int NSBinarySearchingLastEqual = 512; + static const int NSBinarySearchingInsertionIndex = 1024; +} - static NSNumber numberWithUnsignedChar_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_63( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } +class NSOrderedCollectionDifference extends NSObject { + NSOrderedCollectionDifference._( + ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - static NSNumber numberWithShort_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_64( - _lib._class_NSNumber1, _lib._sel_numberWithShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + /// Returns a [NSOrderedCollectionDifference] that points to the same underlying object as [other]. + static NSOrderedCollectionDifference castFrom( + T other) { + return NSOrderedCollectionDifference._(other._id, other._lib, + retain: true, release: true); } - static NSNumber numberWithUnsignedShort_( - NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_65( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + /// Returns a [NSOrderedCollectionDifference] that wraps the given raw object pointer. + static NSOrderedCollectionDifference castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOrderedCollectionDifference._(other, lib, + retain: retain, release: release); } - static NSNumber numberWithInt_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_66( - _lib._class_NSNumber1, _lib._sel_numberWithInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSOrderedCollectionDifference]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSOrderedCollectionDifference1); } - static NSNumber numberWithUnsignedInt_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_67( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSOrderedCollectionDifference initWithChanges_(NSObject? changes) { + final _ret = _lib._objc_msgSend_91( + _id, _lib._sel_initWithChanges_1, changes?._id ?? ffi.nullptr); + return NSOrderedCollectionDifference._(_ret, _lib, + retain: true, release: true); } - static NSNumber numberWithLong_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_68( - _lib._class_NSNumber1, _lib._sel_numberWithLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSOrderedCollectionDifference + initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_( + NSIndexSet? inserts, + NSObject? insertedObjects, + NSIndexSet? removes, + NSObject? removedObjects, + NSObject? changes) { + final _ret = _lib._objc_msgSend_146( + _id, + _lib._sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_1, + inserts?._id ?? ffi.nullptr, + insertedObjects?._id ?? ffi.nullptr, + removes?._id ?? ffi.nullptr, + removedObjects?._id ?? ffi.nullptr, + changes?._id ?? ffi.nullptr); + return NSOrderedCollectionDifference._(_ret, _lib, + retain: true, release: true); } - static NSNumber numberWithUnsignedLong_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_69( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSOrderedCollectionDifference + initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_( + NSIndexSet? inserts, + NSObject? insertedObjects, + NSIndexSet? removes, + NSObject? removedObjects) { + final _ret = _lib._objc_msgSend_147( + _id, + _lib._sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_1, + inserts?._id ?? ffi.nullptr, + insertedObjects?._id ?? ffi.nullptr, + removes?._id ?? ffi.nullptr, + removedObjects?._id ?? ffi.nullptr); + return NSOrderedCollectionDifference._(_ret, _lib, + retain: true, release: true); } - static NSNumber numberWithLongLong_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_70( - _lib._class_NSNumber1, _lib._sel_numberWithLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSObject? get insertions { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_insertions1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSNumber numberWithUnsignedLongLong_( - NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_71( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSObject? get removals { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_removals1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSNumber numberWithFloat_(NativeCupertinoHttp _lib, double value) { - final _ret = _lib._objc_msgSend_72( - _lib._class_NSNumber1, _lib._sel_numberWithFloat_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + bool get hasChanges { + return _lib._objc_msgSend_11(_id, _lib._sel_hasChanges1); } - static NSNumber numberWithDouble_(NativeCupertinoHttp _lib, double value) { - final _ret = _lib._objc_msgSend_73( - _lib._class_NSNumber1, _lib._sel_numberWithDouble_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSOrderedCollectionDifference differenceByTransformingChangesWithBlock_( + ObjCBlock6 block) { + final _ret = _lib._objc_msgSend_153( + _id, _lib._sel_differenceByTransformingChangesWithBlock_1, block._id); + return NSOrderedCollectionDifference._(_ret, _lib, + retain: true, release: true); } - static NSNumber numberWithBool_(NativeCupertinoHttp _lib, bool value) { - final _ret = _lib._objc_msgSend_74( - _lib._class_NSNumber1, _lib._sel_numberWithBool_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSOrderedCollectionDifference inverseDifference() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_inverseDifference1); + return NSOrderedCollectionDifference._(_ret, _lib, + retain: true, release: true); } - static NSNumber numberWithInteger_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_68( - _lib._class_NSNumber1, _lib._sel_numberWithInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + static NSOrderedCollectionDifference new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOrderedCollectionDifference1, _lib._sel_new1); + return NSOrderedCollectionDifference._(_ret, _lib, + retain: false, release: true); } - static NSNumber numberWithUnsignedInteger_( - NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_69( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); + static NSOrderedCollectionDifference alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOrderedCollectionDifference1, _lib._sel_alloc1); + return NSOrderedCollectionDifference._(_ret, _lib, + retain: false, release: true); } +} - static NSValue valueWithBytes_objCType_(NativeCupertinoHttp _lib, - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_55(_lib._class_NSNumber1, - _lib._sel_valueWithBytes_objCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); - } +ffi.Pointer _ObjCBlock6_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>()(arg0); +} - static NSValue value_withObjCType_(NativeCupertinoHttp _lib, - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_55( - _lib._class_NSNumber1, _lib._sel_value_withObjCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); - } +final _ObjCBlock6_closureRegistry = {}; +int _ObjCBlock6_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock6_registerClosure(Function fn) { + final id = ++_ObjCBlock6_closureRegistryIndex; + _ObjCBlock6_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - static NSValue valueWithNonretainedObject_( - NativeCupertinoHttp _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_56(_lib._class_NSNumber1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); - return NSValue._(_ret, _lib, retain: true, release: true); - } +ffi.Pointer _ObjCBlock6_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock6_closureRegistry[block.ref.target.address]!(arg0); +} - static NSValue valueWithPointer_( - NativeCupertinoHttp _lib, ffi.Pointer pointer) { - final _ret = _lib._objc_msgSend_57( - _lib._class_NSNumber1, _lib._sel_valueWithPointer_1, pointer); - return NSValue._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock6 extends _ObjCBlockBase { + ObjCBlock6._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - static NSValue valueWithRange_(NativeCupertinoHttp _lib, NSRange range) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSNumber1, _lib._sel_valueWithRange_1, range); - return NSValue._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock6.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock6_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - static NSNumber new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_new1); - return NSNumber._(_ret, _lib, retain: false, release: true); + /// Creates a block from a Dart function. + ObjCBlock6.fromFunction(NativeCupertinoHttp lib, + ffi.Pointer Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock6_closureTrampoline) + .cast(), + _ObjCBlock6_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + ffi.Pointer call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } - static NSNumber alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_alloc1); - return NSNumber._(_ret, _lib, retain: false, release: true); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; } -class NSValue extends NSObject { - NSValue._(ffi.Pointer id, NativeCupertinoHttp lib, +class NSOrderedCollectionChange extends NSObject { + NSOrderedCollectionChange._( + ffi.Pointer id, NativeCupertinoHttp lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSValue] that points to the same underlying object as [other]. - static NSValue castFrom(T other) { - return NSValue._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSOrderedCollectionChange] that points to the same underlying object as [other]. + static NSOrderedCollectionChange castFrom(T other) { + return NSOrderedCollectionChange._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSValue] that wraps the given raw object pointer. - static NSValue castFromPointer( + /// Returns a [NSOrderedCollectionChange] that wraps the given raw object pointer. + static NSOrderedCollectionChange castFromPointer( NativeCupertinoHttp lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSValue._(other, lib, retain: retain, release: release); + return NSOrderedCollectionChange._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSValue]. + /// Returns whether [obj] is an instance of [NSOrderedCollectionChange]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSValue1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSOrderedCollectionChange1); } - void getValue_size_(ffi.Pointer value, int size) { - return _lib._objc_msgSend_33(_id, _lib._sel_getValue_size_1, value, size); + static NSOrderedCollectionChange changeWithObject_type_index_( + NativeCupertinoHttp _lib, NSObject anObject, int type, int index) { + final _ret = _lib._objc_msgSend_148(_lib._class_NSOrderedCollectionChange1, + _lib._sel_changeWithObject_type_index_1, anObject._id, type, index); + return NSOrderedCollectionChange._(_ret, _lib, retain: true, release: true); } - ffi.Pointer get objCType { - return _lib._objc_msgSend_53(_id, _lib._sel_objCType1); + static NSOrderedCollectionChange changeWithObject_type_index_associatedIndex_( + NativeCupertinoHttp _lib, + NSObject anObject, + int type, + int index, + int associatedIndex) { + final _ret = _lib._objc_msgSend_149( + _lib._class_NSOrderedCollectionChange1, + _lib._sel_changeWithObject_type_index_associatedIndex_1, + anObject._id, + type, + index, + associatedIndex); + return NSOrderedCollectionChange._(_ret, _lib, retain: true, release: true); } - NSValue initWithBytes_objCType_( - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_54( - _id, _lib._sel_initWithBytes_objCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); + NSObject get object { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_object1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSValue initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSValue._(_ret, _lib, retain: true, release: true); + int get changeType { + return _lib._objc_msgSend_150(_id, _lib._sel_changeType1); } - static NSValue valueWithBytes_objCType_(NativeCupertinoHttp _lib, - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_55( - _lib._class_NSValue1, _lib._sel_valueWithBytes_objCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue value_withObjCType_(NativeCupertinoHttp _lib, - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_55( - _lib._class_NSValue1, _lib._sel_value_withObjCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); + int get index { + return _lib._objc_msgSend_12(_id, _lib._sel_index1); } - static NSValue valueWithNonretainedObject_( - NativeCupertinoHttp _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_56(_lib._class_NSValue1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); - return NSValue._(_ret, _lib, retain: true, release: true); + int get associatedIndex { + return _lib._objc_msgSend_12(_id, _lib._sel_associatedIndex1); } - NSObject get nonretainedObjectValue { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nonretainedObjectValue1); + @override + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithPointer_( - NativeCupertinoHttp _lib, ffi.Pointer pointer) { - final _ret = _lib._objc_msgSend_57( - _lib._class_NSValue1, _lib._sel_valueWithPointer_1, pointer); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer get pointerValue { - return _lib._objc_msgSend_31(_id, _lib._sel_pointerValue1); - } - - bool isEqualToValue_(NSValue? value) { - return _lib._objc_msgSend_58( - _id, _lib._sel_isEqualToValue_1, value?._id ?? ffi.nullptr); + NSOrderedCollectionChange initWithObject_type_index_( + NSObject anObject, int type, int index) { + final _ret = _lib._objc_msgSend_151( + _id, _lib._sel_initWithObject_type_index_1, anObject._id, type, index); + return NSOrderedCollectionChange._(_ret, _lib, retain: true, release: true); } - void getValue_(ffi.Pointer value) { - return _lib._objc_msgSend_59(_id, _lib._sel_getValue_1, value); + NSOrderedCollectionChange initWithObject_type_index_associatedIndex_( + NSObject anObject, int type, int index, int associatedIndex) { + final _ret = _lib._objc_msgSend_152( + _id, + _lib._sel_initWithObject_type_index_associatedIndex_1, + anObject._id, + type, + index, + associatedIndex); + return NSOrderedCollectionChange._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithRange_(NativeCupertinoHttp _lib, NSRange range) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSValue1, _lib._sel_valueWithRange_1, range); - return NSValue._(_ret, _lib, retain: true, release: true); + static NSOrderedCollectionChange new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOrderedCollectionChange1, _lib._sel_new1); + return NSOrderedCollectionChange._(_ret, _lib, + retain: false, release: true); } - NSRange get rangeValue { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeValue1); + static NSOrderedCollectionChange alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOrderedCollectionChange1, _lib._sel_alloc1); + return NSOrderedCollectionChange._(_ret, _lib, + retain: false, release: true); } +} - static NSValue new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_new1); - return NSValue._(_ret, _lib, retain: false, release: true); - } +abstract class NSCollectionChangeType { + static const int NSCollectionChangeInsert = 0; + static const int NSCollectionChangeRemove = 1; +} - static NSValue alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_alloc1); - return NSValue._(_ret, _lib, retain: false, release: true); - } +abstract class NSOrderedCollectionDifferenceCalculationOptions { + static const int NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = + 1; + static const int NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = + 2; + static const int NSOrderedCollectionDifferenceCalculationInferMoves = 4; } -typedef NSInteger = ffi.Long; +bool _ObjCBlock7_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} -class NSError extends NSObject { - NSError._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +final _ObjCBlock7_closureRegistry = {}; +int _ObjCBlock7_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock7_registerClosure(Function fn) { + final id = ++_ObjCBlock7_closureRegistryIndex; + _ObjCBlock7_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - /// Returns a [NSError] that points to the same underlying object as [other]. - static NSError castFrom(T other) { - return NSError._(other._id, other._lib, retain: true, release: true); - } +bool _ObjCBlock7_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock7_closureRegistry[block.ref.target.address]!(arg0, arg1); +} - /// Returns a [NSError] that wraps the given raw object pointer. - static NSError castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSError._(other, lib, retain: retain, release: release); - } +class ObjCBlock7 extends _ObjCBlockBase { + ObjCBlock7._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - /// Returns whether [obj] is an instance of [NSError]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSError1); - } + /// Creates a block from a C function pointer. + ObjCBlock7.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock7_fnPtrTrampoline, false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - /// Domain cannot be nil; dict may be nil if no userInfo desired. - NSError initWithDomain_code_userInfo_( - NSErrorDomain domain, int code, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_179( - _id, - _lib._sel_initWithDomain_code_userInfo_1, - domain, - code, - dict?._id ?? ffi.nullptr); - return NSError._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock7.fromFunction( + NativeCupertinoHttp lib, + bool Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock7_closureTrampoline, false) + .cast(), + _ObjCBlock7_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + bool call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); } - static NSError errorWithDomain_code_userInfo_(NativeCupertinoHttp _lib, - NSErrorDomain domain, int code, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_179( - _lib._class_NSError1, - _lib._sel_errorWithDomain_code_userInfo_1, - domain, - code, - dict?._id ?? ffi.nullptr); - return NSError._(_ret, _lib, retain: true, release: true); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - /// These define the error. Domains are described by names that are arbitrary strings used to differentiate groups of codes; for custom domain using reverse-DNS naming will help avoid conflicts. Codes are domain-specific. - NSErrorDomain get domain { - return _lib._objc_msgSend_32(_id, _lib._sel_domain1); - } +void _ObjCBlock8_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1, ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} - int get code { - return _lib._objc_msgSend_81(_id, _lib._sel_code1); - } +final _ObjCBlock8_closureRegistry = {}; +int _ObjCBlock8_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock8_registerClosure(Function fn) { + final id = ++_ObjCBlock8_closureRegistryIndex; + _ObjCBlock8_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - /// Additional info which may be used to describe the error further. Examples of keys that might be included in here are "Line Number", "Failed URL", etc. Embedding other errors in here can also be used as a way to communicate underlying reasons for failures; for instance "File System Error" embedded in the userInfo of an NSError returned from a higher level document object. If the embedded error information is itself NSError, the standard key NSUnderlyingErrorKey can be used. - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock8_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return _ObjCBlock8_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} - /// The primary user-presentable message for the error, for instance for NSFileReadNoPermissionError: "The file "File Name" couldn't be opened because you don't have permission to view it.". This message should ideally indicate what failed and why it failed. This value either comes from NSLocalizedDescriptionKey, or NSLocalizedFailureErrorKey+NSLocalizedFailureReasonErrorKey, or NSLocalizedFailureErrorKey. The steps this takes to construct the description include: - /// 1. Look for NSLocalizedDescriptionKey in userInfo, use value as-is if present. - /// 2. Look for NSLocalizedFailureErrorKey in userInfo. If present, use, combining with value for NSLocalizedFailureReasonErrorKey if available. - /// 3. Fetch NSLocalizedDescriptionKey from userInfoValueProvider, use value as-is if present. - /// 4. Fetch NSLocalizedFailureErrorKey from userInfoValueProvider. If present, use, combining with value for NSLocalizedFailureReasonErrorKey if available. - /// 5. Look for NSLocalizedFailureReasonErrorKey in userInfo or from userInfoValueProvider; combine with generic "Operation failed" message. - /// 6. Last resort localized but barely-presentable string manufactured from domain and code. The result is never nil. - NSString? get localizedDescription { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localizedDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock8 extends _ObjCBlockBase { + ObjCBlock8._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - /// Return a complete sentence which describes why the operation failed. For instance, for NSFileReadNoPermissionError: "You don't have permission.". In many cases this will be just the "because" part of the error message (but as a complete sentence, which makes localization easier). Default implementation of this picks up the value of NSLocalizedFailureReasonErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain, and if that returns nil, this also returns nil. - NSString? get localizedFailureReason { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localizedFailureReason1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock8.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock8_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - /// Return the string that can be displayed as the "informative" (aka "secondary") message on an alert panel. For instance, for NSFileReadNoPermissionError: "To view or change permissions, select the item in the Finder and choose File > Get Info.". Default implementation of this picks up the value of NSLocalizedRecoverySuggestionErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain, and if that returns nil, this also returns nil. - NSString? get localizedRecoverySuggestion { - final _ret = - _lib._objc_msgSend_32(_id, _lib._sel_localizedRecoverySuggestion1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock8.fromFunction( + NativeCupertinoHttp lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock8_closureTrampoline) + .cast(), + _ObjCBlock8_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); } - /// Return titles of buttons that are appropriate for displaying in an alert. These should match the string provided as a part of localizedRecoverySuggestion. The first string would be the title of the right-most and default button, the second one next to it, and so on. If used in an alert the corresponding default return values are NSAlertFirstButtonReturn + n. Default implementation of this picks up the value of NSLocalizedRecoveryOptionsErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain, and if that returns nil, this also returns nil. nil return usually implies no special suggestion, which would imply a single "OK" button. - NSArray? get localizedRecoveryOptions { - final _ret = - _lib._objc_msgSend_162(_id, _lib._sel_localizedRecoveryOptions1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - /// Return an object that conforms to the NSErrorRecoveryAttempting informal protocol. The recovery attempter must be an object that can correctly interpret an index into the array returned by localizedRecoveryOptions. The default implementation of this picks up the value of NSRecoveryAttempterErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain. If that returns nil, this also returns nil. - NSObject get recoveryAttempter { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_recoveryAttempter1); - return NSObject._(_ret, _lib, retain: true, release: true); - } +bool _ObjCBlock9_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1, ffi.Pointer arg2)>>() + .asFunction< + bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} - /// Return the help anchor that can be used to create a help button to accompany the error when it's displayed to the user. This is done automatically by +[NSAlert alertWithError:], which the presentError: variants in NSApplication go through. The default implementation of this picks up the value of the NSHelpAnchorErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain. If that returns nil, this also returns nil. - NSString? get helpAnchor { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_helpAnchor1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +final _ObjCBlock9_closureRegistry = {}; +int _ObjCBlock9_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock9_registerClosure(Function fn) { + final id = ++_ObjCBlock9_closureRegistryIndex; + _ObjCBlock9_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - /// Return a list of underlying errors, if any. It includes the values of both NSUnderlyingErrorKey and NSMultipleUnderlyingErrorsKey. If there are no underlying errors, returns an empty array. - NSArray? get underlyingErrors { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_underlyingErrors1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } +bool _ObjCBlock9_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return _ObjCBlock9_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} - /// Specify a block which will be called from the implementations of localizedDescription, localizedFailureReason, localizedRecoverySuggestion, localizedRecoveryOptions, recoveryAttempter, helpAnchor, and debugDescription when the underlying value for these is not present in the userInfo dictionary of NSError instances with the specified domain. The provider will be called with the userInfo key corresponding to the queried property: For instance, NSLocalizedDescriptionKey for localizedDescription. The provider should return nil for any keys it is not able to provide and, very importantly, any keys it does not recognize (since we may extend the list of keys in future releases). - /// - /// The specified block will be called synchronously at the time when the above properties are queried. The results are not cached. - /// - /// This provider is optional. It enables localization and formatting of error messages to be done lazily; rather than populating the userInfo at NSError creation time, these keys will be fetched on-demand when asked for. - /// - /// It is expected that only the “owner” of an NSError domain specifies the provider for the domain, and this is done once. This facility is not meant for consumers of errors to customize the userInfo entries. This facility should not be used to customize the behaviors of error domains provided by the system. - /// - /// If an appropriate result for the requested key cannot be provided, return nil rather than choosing to manufacture a generic fallback response such as "Operation could not be completed, error 42." NSError will take care of the fallback cases. - static void setUserInfoValueProviderForDomain_provider_( - NativeCupertinoHttp _lib, - NSErrorDomain errorDomain, - ObjCBlock12 provider) { - return _lib._objc_msgSend_181( - _lib._class_NSError1, - _lib._sel_setUserInfoValueProviderForDomain_provider_1, - errorDomain, - provider._id); - } +class ObjCBlock9 extends _ObjCBlockBase { + ObjCBlock9._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - static ObjCBlock12 userInfoValueProviderForDomain_(NativeCupertinoHttp _lib, - NSError? err, NSErrorUserInfoKey userInfoKey, NSErrorDomain errorDomain) { - final _ret = _lib._objc_msgSend_182( - _lib._class_NSError1, - _lib._sel_userInfoValueProviderForDomain_1, - err?._id ?? ffi.nullptr, - userInfoKey, - errorDomain); - return ObjCBlock12._(_ret, _lib); - } + /// Creates a block from a C function pointer. + ObjCBlock9.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock9_fnPtrTrampoline, false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - static NSError new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_new1); - return NSError._(_ret, _lib, retain: false, release: true); + /// Creates a block from a Dart function. + ObjCBlock9.fromFunction( + NativeCupertinoHttp lib, + bool Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock9_closureTrampoline, false) + .cast(), + _ObjCBlock9_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + bool call(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); } - static NSError alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_alloc1); - return NSError._(_ret, _lib, retain: false, release: true); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; } -typedef NSErrorDomain = ffi.Pointer; +class NSFastEnumerationState extends ffi.Struct { + @ffi.UnsignedLong() + external int state; -/// Immutable Dictionary -class NSDictionary extends NSObject { - NSDictionary._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + external ffi.Pointer> itemsPtr; - /// Returns a [NSDictionary] that points to the same underlying object as [other]. - static NSDictionary castFrom(T other) { - return NSDictionary._(other._id, other._lib, retain: true, release: true); - } + external ffi.Pointer mutationsPtr; - /// Returns a [NSDictionary] that wraps the given raw object pointer. - static NSDictionary castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSDictionary._(other, lib, retain: retain, release: release); - } + @ffi.Array.multi([5]) + external ffi.Array extra; +} - /// Returns whether [obj] is an instance of [NSDictionary]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDictionary1); - } - - int get count { - return _lib._objc_msgSend_12(_id, _lib._sel_count1); - } - - NSObject objectForKey_(NSObject aKey) { - final _ret = _lib._objc_msgSend_91(_id, _lib._sel_objectForKey_1, aKey._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSEnumerator keyEnumerator() { - final _ret = _lib._objc_msgSend_92(_id, _lib._sel_keyEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); - } +ffi.Pointer _ObjCBlock10_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSErrorUserInfoKey arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, NSErrorUserInfoKey arg1)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer arg0, + NSErrorUserInfoKey arg1)>()(arg0, arg1); +} - @override - NSDictionary init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } +final _ObjCBlock10_closureRegistry = {}; +int _ObjCBlock10_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock10_registerClosure(Function fn) { + final id = ++_ObjCBlock10_closureRegistryIndex; + _ObjCBlock10_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - NSDictionary initWithObjects_forKeys_count_( - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_93( - _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } +ffi.Pointer _ObjCBlock10_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSErrorUserInfoKey arg1) { + return _ObjCBlock10_closureRegistry[block.ref.target.address]!(arg0, arg1); +} - NSDictionary initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock10 extends _ObjCBlockBase { + ObjCBlock10._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - NSArray? get allKeys { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_allKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock10.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, NSErrorUserInfoKey arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSErrorUserInfoKey arg1)>( + _ObjCBlock10_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSArray allKeysForObject_(NSObject anObject) { - final _ret = - _lib._objc_msgSend_96(_id, _lib._sel_allKeysForObject_1, anObject._id); - return NSArray._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock10.fromFunction( + NativeCupertinoHttp lib, + ffi.Pointer Function( + ffi.Pointer arg0, NSErrorUserInfoKey arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSErrorUserInfoKey arg1)>( + _ObjCBlock10_closureTrampoline) + .cast(), + _ObjCBlock10_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + ffi.Pointer call( + ffi.Pointer arg0, NSErrorUserInfoKey arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, NSErrorUserInfoKey arg1)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSErrorUserInfoKey arg1)>()(_id, arg0, arg1); } - NSArray? get allValues { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_allValues1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - NSString? get description { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +typedef NSErrorUserInfoKey = ffi.Pointer; +typedef NSURLResourceKey = ffi.Pointer; - NSString? get descriptionInStringsFileFormat { - final _ret = - _lib._objc_msgSend_32(_id, _lib._sel_descriptionInStringsFileFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +/// Working with Bookmarks and alias (bookmark) files +abstract class NSURLBookmarkCreationOptions { + /// This option does nothing and has no effect on bookmark resolution + static const int NSURLBookmarkCreationPreferFileIDResolution = 256; - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_88( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } + /// creates bookmark data with "less" information, which may be smaller but still be able to resolve in certain ways + static const int NSURLBookmarkCreationMinimalBookmark = 512; - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_99( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); - return NSString._(_ret, _lib, retain: true, release: true); - } + /// include the properties required by writeBookmarkData:toURL:options: in the bookmark data created + static const int NSURLBookmarkCreationSuitableForBookmarkFile = 1024; - bool isEqualToDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_163(_id, _lib._sel_isEqualToDictionary_1, - otherDictionary?._id ?? ffi.nullptr); - } + /// include information in the bookmark data which allows the same sandboxed process to access the resource after being relaunched + static const int NSURLBookmarkCreationWithSecurityScope = 2048; - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_92(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); - } + /// if used with kCFURLBookmarkCreationWithSecurityScope, at resolution time only read access to the resource will be granted + static const int NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; +} - NSArray objectsForKeys_notFoundMarker_(NSArray? keys, NSObject marker) { - final _ret = _lib._objc_msgSend_164( - _id, - _lib._sel_objectsForKeys_notFoundMarker_1, - keys?._id ?? ffi.nullptr, - marker._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } +abstract class NSURLBookmarkResolutionOptions { + /// don't perform any user interaction during bookmark resolution + static const int NSURLBookmarkResolutionWithoutUI = 256; - /// Serializes this instance to the specified URL in the NSPropertyList format (using NSPropertyListXMLFormat_v1_0). For other formats use NSPropertyListSerialization directly. - bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_109( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); - } + /// don't mount a volume during bookmark resolution + static const int NSURLBookmarkResolutionWithoutMounting = 512; - NSArray keysSortedByValueUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_107( - _id, _lib._sel_keysSortedByValueUsingSelector_1, comparator); - return NSArray._(_ret, _lib, retain: true, release: true); - } + /// use the secure information included at creation time to provide the ability to access the resource in a sandboxed process + static const int NSURLBookmarkResolutionWithSecurityScope = 1024; +} - /// count refers to the number of elements in the dictionary - void getObjects_andKeys_count_(ffi.Pointer> objects, - ffi.Pointer> keys, int count) { - return _lib._objc_msgSend_165( - _id, _lib._sel_getObjects_andKeys_count_1, objects, keys, count); - } +typedef NSURLBookmarkFileCreationOptions = NSUInteger; - NSObject objectForKeyedSubscript_(NSObject key) { - final _ret = _lib._objc_msgSend_91( - _id, _lib._sel_objectForKeyedSubscript_1, key._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } +class NSURLHandle extends NSObject { + NSURLHandle._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - void enumerateKeysAndObjectsUsingBlock_(ObjCBlock10 block) { - return _lib._objc_msgSend_166( - _id, _lib._sel_enumerateKeysAndObjectsUsingBlock_1, block._id); + /// Returns a [NSURLHandle] that points to the same underlying object as [other]. + static NSURLHandle castFrom(T other) { + return NSURLHandle._(other._id, other._lib, retain: true, release: true); } - void enumerateKeysAndObjectsWithOptions_usingBlock_( - int opts, ObjCBlock10 block) { - return _lib._objc_msgSend_167( - _id, - _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, - opts, - block._id); + /// Returns a [NSURLHandle] that wraps the given raw object pointer. + static NSURLHandle castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLHandle._(other, lib, retain: retain, release: release); } - NSArray keysSortedByValueUsingComparator_(NSComparator cmptr) { - final _ret = _lib._objc_msgSend_141( - _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr); - return NSArray._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSURLHandle]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLHandle1); } - NSArray keysSortedByValueWithOptions_usingComparator_( - int opts, NSComparator cmptr) { - final _ret = _lib._objc_msgSend_142(_id, - _lib._sel_keysSortedByValueWithOptions_usingComparator_1, opts, cmptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static void registerURLHandleClass_( + NativeCupertinoHttp _lib, NSObject anURLHandleSubclass) { + return _lib._objc_msgSend_200(_lib._class_NSURLHandle1, + _lib._sel_registerURLHandleClass_1, anURLHandleSubclass._id); } - NSObject keysOfEntriesPassingTest_(ObjCBlock11 predicate) { - final _ret = _lib._objc_msgSend_168( - _id, _lib._sel_keysOfEntriesPassingTest_1, predicate._id); + static NSObject URLHandleClassForURL_( + NativeCupertinoHttp _lib, NSURL? anURL) { + final _ret = _lib._objc_msgSend_201(_lib._class_NSURLHandle1, + _lib._sel_URLHandleClassForURL_1, anURL?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject keysOfEntriesWithOptions_passingTest_( - int opts, ObjCBlock11 predicate) { - final _ret = _lib._objc_msgSend_169(_id, - _lib._sel_keysOfEntriesWithOptions_passingTest_1, opts, predicate._id); - return NSObject._(_ret, _lib, retain: true, release: true); + int status() { + return _lib._objc_msgSend_202(_id, _lib._sel_status1); } - /// This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:andKeys:count: - void getObjects_andKeys_(ffi.Pointer> objects, - ffi.Pointer> keys) { - return _lib._objc_msgSend_170( - _id, _lib._sel_getObjects_andKeys_1, objects, keys); + NSString failureReason() { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_failureReason1); + return NSString._(_ret, _lib, retain: true, release: true); } - /// These methods are deprecated, and will be marked with API_DEPRECATED in a subsequent release. Use the variants that use errors instead. - static NSDictionary dictionaryWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_171(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + void addClient_(NSObject? client) { + return _lib._objc_msgSend_200( + _id, _lib._sel_addClient_1, client?._id ?? ffi.nullptr); } - static NSDictionary dictionaryWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_172(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + void removeClient_(NSObject? client) { + return _lib._objc_msgSend_200( + _id, _lib._sel_removeClient_1, client?._id ?? ffi.nullptr); } - NSDictionary initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_171( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + void loadInBackground() { + return _lib._objc_msgSend_1(_id, _lib._sel_loadInBackground1); } - NSDictionary initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_172( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + void cancelLoadInBackground() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancelLoadInBackground1); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_37(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + NSData resourceData() { + final _ret = _lib._objc_msgSend_51(_id, _lib._sel_resourceData1); + return NSData._(_ret, _lib, retain: true, release: true); } - /// the atomically flag is ignored if url of a type that cannot be written atomically. - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_161(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + NSData availableResourceData() { + final _ret = _lib._objc_msgSend_51(_id, _lib._sel_availableResourceData1); + return NSData._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionary(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_dictionary1); - return NSDictionary._(_ret, _lib, retain: true, release: true); + int expectedResourceDataSize() { + return _lib._objc_msgSend_82(_id, _lib._sel_expectedResourceDataSize1); } - static NSDictionary dictionaryWithObject_forKey_( - NativeCupertinoHttp _lib, NSObject object, NSObject key) { - final _ret = _lib._objc_msgSend_173(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithObject_forKey_1, object._id, key._id); - return NSDictionary._(_ret, _lib, retain: true, release: true); + void flushCachedData() { + return _lib._objc_msgSend_1(_id, _lib._sel_flushCachedData1); } - static NSDictionary dictionaryWithObjects_forKeys_count_( - NativeCupertinoHttp _lib, - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_93(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); - return NSDictionary._(_ret, _lib, retain: true, release: true); + void backgroundLoadDidFailWithReason_(NSString? reason) { + return _lib._objc_msgSend_188( + _id, + _lib._sel_backgroundLoadDidFailWithReason_1, + reason?._id ?? ffi.nullptr); } - static NSDictionary dictionaryWithObjectsAndKeys_( - NativeCupertinoHttp _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_91(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); - return NSDictionary._(_ret, _lib, retain: true, release: true); + void didLoadBytes_loadComplete_(NSData? newBytes, bool yorn) { + return _lib._objc_msgSend_203(_id, _lib._sel_didLoadBytes_loadComplete_1, + newBytes?._id ?? ffi.nullptr, yorn); } - static NSDictionary dictionaryWithDictionary_( - NativeCupertinoHttp _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_174(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static bool canInitWithURL_(NativeCupertinoHttp _lib, NSURL? anURL) { + return _lib._objc_msgSend_204(_lib._class_NSURLHandle1, + _lib._sel_canInitWithURL_1, anURL?._id ?? ffi.nullptr); } - static NSDictionary dictionaryWithObjects_forKeys_( - NativeCupertinoHttp _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_175( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSURLHandle cachedHandleForURL_( + NativeCupertinoHttp _lib, NSURL? anURL) { + final _ret = _lib._objc_msgSend_205(_lib._class_NSURLHandle1, + _lib._sel_cachedHandleForURL_1, anURL?._id ?? ffi.nullptr); + return NSURLHandle._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithObjectsAndKeys_(NSObject firstObject) { - final _ret = _lib._objc_msgSend_91( - _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSObject initWithURL_cached_(NSURL? anURL, bool willCache) { + final _ret = _lib._objc_msgSend_206(_id, _lib._sel_initWithURL_cached_1, + anURL?._id ?? ffi.nullptr, willCache); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithDictionary_(NSDictionary? otherDictionary) { - final _ret = _lib._objc_msgSend_174(_id, _lib._sel_initWithDictionary_1, - otherDictionary?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSObject propertyForKey_(NSString? propertyKey) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithDictionary_copyItems_( - NSDictionary? otherDictionary, bool flag) { - final _ret = _lib._objc_msgSend_176( - _id, - _lib._sel_initWithDictionary_copyItems_1, - otherDictionary?._id ?? ffi.nullptr, - flag); - return NSDictionary._(_ret, _lib, retain: false, release: true); + NSObject propertyForKeyIfAvailable_(NSString? propertyKey) { + final _ret = _lib._objc_msgSend_42(_id, + _lib._sel_propertyForKeyIfAvailable_1, propertyKey?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithObjects_forKeys_(NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_175( - _id, - _lib._sel_initWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool writeProperty_forKey_(NSObject propertyValue, NSString? propertyKey) { + return _lib._objc_msgSend_199(_id, _lib._sel_writeProperty_forKey_1, + propertyValue._id, propertyKey?._id ?? ffi.nullptr); } - /// Reads dictionary stored in NSPropertyList format from the specified url. - NSDictionary initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_177( - _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + bool writeData_(NSData? data) { + return _lib._objc_msgSend_35( + _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); } - /// Reads dictionary stored in NSPropertyList format from the specified url. - static NSDictionary dictionaryWithContentsOfURL_error_( - NativeCupertinoHttp _lib, - NSURL? url, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_177( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSData loadInForeground() { + final _ret = _lib._objc_msgSend_51(_id, _lib._sel_loadInForeground1); + return NSData._(_ret, _lib, retain: true, release: true); } - /// Use this method to create a key set to pass to +dictionaryWithSharedKeySet:. - /// The keys are copied from the array and must be copyable. - /// If the array parameter is nil or not an NSArray, an exception is thrown. - /// If the array of keys is empty, an empty key set is returned. - /// The array of keys may contain duplicates, which are ignored (it is undefined which object of each duplicate pair is used). - /// As for any usage of hashing, is recommended that the keys have a well-distributed implementation of -hash, and the hash codes must satisfy the hash/isEqual: invariant. - /// Keys with duplicate hash codes are allowed, but will cause lower performance and increase memory usage. - static NSObject sharedKeySetForKeys_( - NativeCupertinoHttp _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_100(_lib._class_NSDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + void beginLoadInBackground() { + return _lib._objc_msgSend_1(_id, _lib._sel_beginLoadInBackground1); } - int countByEnumeratingWithState_objects_count_( - ffi.Pointer state, - ffi.Pointer> buffer, - int len) { - return _lib._objc_msgSend_178( - _id, - _lib._sel_countByEnumeratingWithState_objects_count_1, - state, - buffer, - len); + void endLoadInBackground() { + return _lib._objc_msgSend_1(_id, _lib._sel_endLoadInBackground1); } - static NSDictionary new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_new1); - return NSDictionary._(_ret, _lib, retain: false, release: true); + static NSURLHandle new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_new1); + return NSURLHandle._(_ret, _lib, retain: false, release: true); } - static NSDictionary alloc(NativeCupertinoHttp _lib) { + static NSURLHandle alloc(NativeCupertinoHttp _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_alloc1); - return NSDictionary._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_alloc1); + return NSURLHandle._(_ret, _lib, retain: false, release: true); } } -class NSEnumerator extends NSObject { - NSEnumerator._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +abstract class NSURLHandleStatus { + static const int NSURLHandleNotLoaded = 0; + static const int NSURLHandleLoadSucceeded = 1; + static const int NSURLHandleLoadInProgress = 2; + static const int NSURLHandleLoadFailed = 3; +} - /// Returns a [NSEnumerator] that points to the same underlying object as [other]. - static NSEnumerator castFrom(T other) { - return NSEnumerator._(other._id, other._lib, retain: true, release: true); - } +abstract class NSDataWritingOptions { + /// Hint to use auxiliary file when saving; equivalent to atomically:YES + static const int NSDataWritingAtomic = 1; - /// Returns a [NSEnumerator] that wraps the given raw object pointer. - static NSEnumerator castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSEnumerator._(other, lib, retain: retain, release: release); - } + /// Hint to prevent overwriting an existing file. Cannot be combined with NSDataWritingAtomic. + static const int NSDataWritingWithoutOverwriting = 2; + static const int NSDataWritingFileProtectionNone = 268435456; + static const int NSDataWritingFileProtectionComplete = 536870912; + static const int NSDataWritingFileProtectionCompleteUnlessOpen = 805306368; + static const int + NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication = + 1073741824; + static const int NSDataWritingFileProtectionMask = 4026531840; - /// Returns whether [obj] is an instance of [NSEnumerator]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSEnumerator1); - } + /// Deprecated name for NSDataWritingAtomic + static const int NSAtomicWrite = 1; +} - NSObject nextObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nextObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } +/// Data Search Options +abstract class NSDataSearchOptions { + static const int NSDataSearchBackwards = 1; + static const int NSDataSearchAnchored = 2; +} - NSObject? get allObjects { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_allObjects1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock11_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, NSRange arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} - static NSEnumerator new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_new1); - return NSEnumerator._(_ret, _lib, retain: false, release: true); - } +final _ObjCBlock11_closureRegistry = {}; +int _ObjCBlock11_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock11_registerClosure(Function fn) { + final id = ++_ObjCBlock11_closureRegistryIndex; + _ObjCBlock11_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - static NSEnumerator alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_alloc1); - return NSEnumerator._(_ret, _lib, retain: false, release: true); - } +void _ObjCBlock11_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { + return _ObjCBlock11_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); } -/// Immutable Array -class NSArray extends NSObject { - NSArray._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +class ObjCBlock11 extends _ObjCBlockBase { + ObjCBlock11._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - /// Returns a [NSArray] that points to the same underlying object as [other]. - static NSArray castFrom(T other) { - return NSArray._(other._id, other._lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock11.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, NSRange arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock11_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - /// Returns a [NSArray] that wraps the given raw object pointer. - static NSArray castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSArray._(other, lib, retain: retain, release: release); + /// Creates a block from a Dart function. + ObjCBlock11.fromFunction( + NativeCupertinoHttp lib, + void Function(ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock11_closureTrampoline) + .cast(), + _ObjCBlock11_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); } - /// Returns whether [obj] is an instance of [NSArray]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArray1); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - int get count { - return _lib._objc_msgSend_12(_id, _lib._sel_count1); - } +/// Read/Write Options +abstract class NSDataReadingOptions { + /// Hint to map the file in if possible and safe + static const int NSDataReadingMappedIfSafe = 1; - NSObject objectAtIndex_(int index) { - final _ret = _lib._objc_msgSend_94(_id, _lib._sel_objectAtIndex_1, index); - return NSObject._(_ret, _lib, retain: true, release: true); - } + /// Hint to get the file not to be cached in the kernel + static const int NSDataReadingUncached = 2; - @override - NSArray init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSArray._(_ret, _lib, retain: true, release: true); - } + /// Hint to map the file in if possible. This takes precedence over NSDataReadingMappedIfSafe if both are given. + static const int NSDataReadingMappedAlways = 8; - NSArray initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_95( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSArray._(_ret, _lib, retain: true, release: true); - } + /// Deprecated name for NSDataReadingMappedIfSafe + static const int NSDataReadingMapped = 1; - NSArray initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } + /// Deprecated name for NSDataReadingMapped + static const int NSMappedRead = 1; - NSArray arrayByAddingObject_(NSObject anObject) { - final _ret = _lib._objc_msgSend_96( - _id, _lib._sel_arrayByAddingObject_1, anObject._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } + /// Deprecated name for NSDataReadingUncached + static const int NSUncachedRead = 2; +} - NSArray arrayByAddingObjectsFromArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_97( - _id, - _lib._sel_arrayByAddingObjectsFromArray_1, - otherArray?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock12_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, int arg1)>()(arg0, arg1); +} - NSString componentsJoinedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_98(_id, - _lib._sel_componentsJoinedByString_1, separator?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } +final _ObjCBlock12_closureRegistry = {}; +int _ObjCBlock12_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock12_registerClosure(Function fn) { + final id = ++_ObjCBlock12_closureRegistryIndex; + _ObjCBlock12_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - bool containsObject_(NSObject anObject) { - return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); - } +void _ObjCBlock12_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { + return _ObjCBlock12_closureRegistry[block.ref.target.address]!(arg0, arg1); +} - NSString? get description { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock12 extends _ObjCBlockBase { + ObjCBlock12._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_88( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock12.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, NSUInteger arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSUInteger arg1)>(_ObjCBlock12_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_99( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); - return NSString._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock12.fromFunction(NativeCupertinoHttp lib, + void Function(ffi.Pointer arg0, int arg1) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSUInteger arg1)>(_ObjCBlock12_closureTrampoline) + .cast(), + _ObjCBlock12_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, int arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, NSUInteger arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); } - NSObject firstObjectCommonWithArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_100(_id, - _lib._sel_firstObjectCommonWithArray_1, otherArray?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - void getObjects_range_( - ffi.Pointer> objects, NSRange range) { - return _lib._objc_msgSend_101( - _id, _lib._sel_getObjects_range_1, objects, range); - } +abstract class NSDataBase64DecodingOptions { + /// Use the following option to modify the decoding algorithm so that it ignores unknown non-Base64 bytes, including line ending characters. + static const int NSDataBase64DecodingIgnoreUnknownCharacters = 1; +} - int indexOfObject_(NSObject anObject) { - return _lib._objc_msgSend_102(_id, _lib._sel_indexOfObject_1, anObject._id); - } +/// Base 64 Options +abstract class NSDataBase64EncodingOptions { + /// Use zero or one of the following to control the maximum line length after which a line ending is inserted. No line endings are inserted by default. + static const int NSDataBase64Encoding64CharacterLineLength = 1; + static const int NSDataBase64Encoding76CharacterLineLength = 2; - int indexOfObject_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_103( - _id, _lib._sel_indexOfObject_inRange_1, anObject._id, range); - } + /// Use zero or more of the following to specify which kind of line ending is inserted. The default line ending is CR LF. + static const int NSDataBase64EncodingEndLineWithCarriageReturn = 16; + static const int NSDataBase64EncodingEndLineWithLineFeed = 32; +} - int indexOfObjectIdenticalTo_(NSObject anObject) { - return _lib._objc_msgSend_102( - _id, _lib._sel_indexOfObjectIdenticalTo_1, anObject._id); - } +/// Various algorithms provided for compression APIs. See NSData and NSMutableData. +abstract class NSDataCompressionAlgorithm { + /// LZFSE is the recommended compression algorithm if you don't have a specific reason to use another algorithm. Note that LZFSE is intended for use with Apple devices only. This algorithm generally compresses better than Zlib, but not as well as LZMA. It is generally slower than LZ4. + static const int NSDataCompressionAlgorithmLZFSE = 0; - int indexOfObjectIdenticalTo_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_103( - _id, _lib._sel_indexOfObjectIdenticalTo_inRange_1, anObject._id, range); - } + /// LZ4 is appropriate if compression speed is critical. LZ4 generally sacrifices compression ratio in order to achieve its greater speed. + /// This implementation of LZ4 makes a small modification to the standard format, which is described in greater detail in . + static const int NSDataCompressionAlgorithmLZ4 = 1; - bool isEqualToArray_(NSArray? otherArray) { - return _lib._objc_msgSend_104( - _id, _lib._sel_isEqualToArray_1, otherArray?._id ?? ffi.nullptr); - } + /// LZMA is appropriate if compression ratio is critical and memory usage and compression speed are not a factor. LZMA is an order of magnitude slower for both compression and decompression than other algorithms. It can also use a very large amount of memory, so if you need to compress large amounts of data on embedded devices with limited memory you should probably avoid LZMA. + /// Encoding uses LZMA level 6 only, but decompression works with any compression level. + static const int NSDataCompressionAlgorithmLZMA = 2; - NSObject get firstObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } + /// Zlib is appropriate if you want a good balance between compression speed and compression ratio, but only if you need interoperability with non-Apple platforms. Otherwise, LZFSE is generally a better choice than Zlib. + /// Encoding uses Zlib level 5 only, but decompression works with any compression level. It uses the raw DEFLATE format as described in IETF RFC 1951. + static const int NSDataCompressionAlgorithmZlib = 3; +} - NSObject get lastObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } +typedef UTF32Char = UInt32; +typedef UInt32 = ffi.UnsignedInt; - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_92(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); - } +abstract class NSStringEnumerationOptions { + static const int NSStringEnumerationByLines = 0; + static const int NSStringEnumerationByParagraphs = 1; + static const int NSStringEnumerationByComposedCharacterSequences = 2; + static const int NSStringEnumerationByWords = 3; + static const int NSStringEnumerationBySentences = 4; + static const int NSStringEnumerationByCaretPositions = 5; + static const int NSStringEnumerationByDeletionClusters = 6; + static const int NSStringEnumerationReverse = 256; + static const int NSStringEnumerationSubstringNotRequired = 512; + static const int NSStringEnumerationLocalized = 1024; +} - NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_92(_id, _lib._sel_reverseObjectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock13_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, NSRange arg1, + NSRange arg2, ffi.Pointer arg3)>>() + .asFunction< + void Function( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3)>()(arg0, arg1, arg2, arg3); +} - NSData? get sortedArrayHint { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_sortedArrayHint1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } +final _ObjCBlock13_closureRegistry = {}; +int _ObjCBlock13_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock13_registerClosure(Function fn) { + final id = ++_ObjCBlock13_closureRegistryIndex; + _ObjCBlock13_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - NSArray sortedArrayUsingFunction_context_( - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context) { - final _ret = _lib._objc_msgSend_105( - _id, _lib._sel_sortedArrayUsingFunction_context_1, comparator, context); - return NSArray._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock13_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3) { + return _ObjCBlock13_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2, arg3); +} - NSArray sortedArrayUsingFunction_context_hint_( +class ObjCBlock13 extends _ObjCBlockBase { + ObjCBlock13._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock13.fromFunctionPointer( + NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context, - NSData? hint) { - final _ret = _lib._objc_msgSend_106( - _id, - _lib._sel_sortedArrayUsingFunction_context_hint_1, - comparator, - context, - hint?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } + ffi.Void Function(ffi.Pointer arg0, NSRange arg1, + NSRange arg2, ffi.Pointer arg3)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3)>( + _ObjCBlock13_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSArray sortedArrayUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_107( - _id, _lib._sel_sortedArrayUsingSelector_1, comparator); - return NSArray._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock13.fromFunction( + NativeCupertinoHttp lib, + void Function(ffi.Pointer arg0, NSRange arg1, NSRange arg2, + ffi.Pointer arg3) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3)>( + _ObjCBlock13_closureTrampoline) + .cast(), + _ObjCBlock13_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, NSRange arg1, NSRange arg2, + ffi.Pointer arg3) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3)>()(_id, arg0, arg1, arg2, arg3); } - NSArray subarrayWithRange_(NSRange range) { - final _ret = - _lib._objc_msgSend_108(_id, _lib._sel_subarrayWithRange_1, range); - return NSArray._(_ret, _lib, retain: true, release: true); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - /// Serializes this instance to the specified URL in the NSPropertyList format (using NSPropertyListXMLFormat_v1_0). For other formats use NSPropertyListSerialization directly. - bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_109( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); - } +void _ObjCBlock14_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} - void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( - _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); - } +final _ObjCBlock14_closureRegistry = {}; +int _ObjCBlock14_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock14_registerClosure(Function fn) { + final id = ++_ObjCBlock14_closureRegistryIndex; + _ObjCBlock14_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { - return _lib._objc_msgSend_110( - _id, - _lib._sel_makeObjectsPerformSelector_withObject_1, - aSelector, - argument._id); - } +void _ObjCBlock14_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock14_closureRegistry[block.ref.target.address]!(arg0, arg1); +} - NSArray objectsAtIndexes_(NSIndexSet? indexes) { - final _ret = _lib._objc_msgSend_131( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock14 extends _ObjCBlockBase { + ObjCBlock14._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - NSObject objectAtIndexedSubscript_(int idx) { - final _ret = - _lib._objc_msgSend_94(_id, _lib._sel_objectAtIndexedSubscript_1, idx); - return NSObject._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock14.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock14_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - void enumerateObjectsUsingBlock_(ObjCBlock5 block) { - return _lib._objc_msgSend_132( - _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); + /// Creates a block from a Dart function. + ObjCBlock14.fromFunction( + NativeCupertinoHttp lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock14_closureTrampoline) + .cast(), + _ObjCBlock14_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); } - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock5 block) { - return _lib._objc_msgSend_133(_id, - _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - void enumerateObjectsAtIndexes_options_usingBlock_( - NSIndexSet? s, int opts, ObjCBlock5 block) { - return _lib._objc_msgSend_134( - _id, - _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, - opts, - block._id); - } +typedef NSStringEncoding = NSUInteger; - int indexOfObjectPassingTest_(ObjCBlock6 predicate) { - return _lib._objc_msgSend_135( - _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); - } +abstract class NSStringEncodingConversionOptions { + static const int NSStringEncodingConversionAllowLossy = 1; + static const int NSStringEncodingConversionExternalRepresentation = 2; +} - int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock6 predicate) { - return _lib._objc_msgSend_136(_id, - _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); - } +typedef NSStringTransform = ffi.Pointer; +void _ObjCBlock15_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, int arg1)>()(arg0, arg1); +} - int indexOfObjectAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock6 predicate) { - return _lib._objc_msgSend_137( - _id, - _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - } +final _ObjCBlock15_closureRegistry = {}; +int _ObjCBlock15_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock15_registerClosure(Function fn) { + final id = ++_ObjCBlock15_closureRegistryIndex; + _ObjCBlock15_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock6 predicate) { - final _ret = _lib._objc_msgSend_138( - _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock15_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { + return _ObjCBlock15_closureRegistry[block.ref.target.address]!(arg0, arg1); +} - NSIndexSet indexesOfObjectsWithOptions_passingTest_( - int opts, ObjCBlock6 predicate) { - final _ret = _lib._objc_msgSend_139( - _id, - _lib._sel_indexesOfObjectsWithOptions_passingTest_1, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock15 extends _ObjCBlockBase { + ObjCBlock15._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock6 predicate) { - final _ret = _lib._objc_msgSend_140( - _id, - _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock15.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, NSUInteger arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSUInteger arg1)>(_ObjCBlock15_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSArray sortedArrayUsingComparator_(NSComparator cmptr) { - final _ret = _lib._objc_msgSend_141( - _id, _lib._sel_sortedArrayUsingComparator_1, cmptr); - return NSArray._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock15.fromFunction(NativeCupertinoHttp lib, + void Function(ffi.Pointer arg0, int arg1) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSUInteger arg1)>(_ObjCBlock15_closureTrampoline) + .cast(), + _ObjCBlock15_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, int arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, NSUInteger arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); } - NSArray sortedArrayWithOptions_usingComparator_( - int opts, NSComparator cmptr) { - final _ret = _lib._objc_msgSend_142( - _id, _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - /// binary search - int indexOfObject_inSortedRange_options_usingComparator_( - NSObject obj, NSRange r, int opts, NSComparator cmp) { - return _lib._objc_msgSend_143( - _id, - _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, - obj._id, - r, - opts, - cmp); - } +typedef va_list = __builtin_va_list; +typedef __builtin_va_list = ffi.Pointer; - static NSArray array(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_array1); - return NSArray._(_ret, _lib, retain: true, release: true); - } +abstract class NSQualityOfService { + static const int NSQualityOfServiceUserInteractive = 33; + static const int NSQualityOfServiceUserInitiated = 25; + static const int NSQualityOfServiceUtility = 17; + static const int NSQualityOfServiceBackground = 9; + static const int NSQualityOfServiceDefault = -1; +} - static NSArray arrayWithObject_(NativeCupertinoHttp _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_91( - _lib._class_NSArray1, _lib._sel_arrayWithObject_1, anObject._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } +abstract class ptrauth_key { + static const int ptrauth_key_asia = 0; + static const int ptrauth_key_asib = 1; + static const int ptrauth_key_asda = 2; + static const int ptrauth_key_asdb = 3; + static const int ptrauth_key_process_independent_code = 0; + static const int ptrauth_key_process_dependent_code = 1; + static const int ptrauth_key_process_independent_data = 2; + static const int ptrauth_key_process_dependent_data = 3; + static const int ptrauth_key_function_pointer = 0; + static const int ptrauth_key_return_address = 1; + static const int ptrauth_key_frame_pointer = 3; + static const int ptrauth_key_block_function = 0; + static const int ptrauth_key_cxx_vtable_pointer = 2; + static const int ptrauth_key_method_list_pointer = 2; + static const int ptrauth_key_objc_isa_pointer = 2; + static const int ptrauth_key_objc_super_pointer = 2; + static const int ptrauth_key_block_descriptor_pointer = 2; + static const int ptrauth_key_objc_sel_pointer = 3; + static const int ptrauth_key_objc_class_ro_pointer = 2; +} - static NSArray arrayWithObjects_count_(NativeCupertinoHttp _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_95( - _lib._class_NSArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); - return NSArray._(_ret, _lib, retain: true, release: true); - } +@ffi.Packed(2) +class wide extends ffi.Struct { + @UInt32() + external int lo; - static NSArray arrayWithObjects_( - NativeCupertinoHttp _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_91( - _lib._class_NSArray1, _lib._sel_arrayWithObjects_1, firstObj._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } + @SInt32() + external int hi; +} - static NSArray arrayWithArray_(NativeCupertinoHttp _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_100(_lib._class_NSArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } +typedef SInt32 = ffi.Int; - NSArray initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_91(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } +@ffi.Packed(2) +class UnsignedWide extends ffi.Struct { + @UInt32() + external int lo; - NSArray initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_100( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } + @UInt32() + external int hi; +} - NSArray initWithArray_copyItems_(NSArray? array, bool flag) { - final _ret = _lib._objc_msgSend_144(_id, - _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); - return NSArray._(_ret, _lib, retain: false, release: true); - } +class Float80 extends ffi.Struct { + @SInt16() + external int exp; - /// Reads array stored in NSPropertyList format from the specified url. - NSArray initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_145( - _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); - } + @ffi.Array.multi([4]) + external ffi.Array man; +} - /// Reads array stored in NSPropertyList format from the specified url. - static NSArray arrayWithContentsOfURL_error_(NativeCupertinoHttp _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_145( - _lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); - } +typedef SInt16 = ffi.Short; +typedef UInt16 = ffi.UnsignedShort; - NSOrderedCollectionDifference - differenceFromArray_withOptions_usingEquivalenceTest_( - NSArray? other, int options, ObjCBlock9 block) { - final _ret = _lib._objc_msgSend_154( - _id, - _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, - other?._id ?? ffi.nullptr, - options, - block._id); - return NSOrderedCollectionDifference._(_ret, _lib, - retain: true, release: true); - } +class Float96 extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array exp; - NSOrderedCollectionDifference differenceFromArray_withOptions_( - NSArray? other, int options) { - final _ret = _lib._objc_msgSend_155( - _id, - _lib._sel_differenceFromArray_withOptions_1, - other?._id ?? ffi.nullptr, - options); - return NSOrderedCollectionDifference._(_ret, _lib, - retain: true, release: true); - } + @ffi.Array.multi([4]) + external ffi.Array man; +} - /// Uses isEqual: to determine the difference between the parameter and the receiver - NSOrderedCollectionDifference differenceFromArray_(NSArray? other) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_differenceFromArray_1, other?._id ?? ffi.nullptr); - return NSOrderedCollectionDifference._(_ret, _lib, - retain: true, release: true); - } +@ffi.Packed(2) +class Float32Point extends ffi.Struct { + @Float32() + external double x; - NSArray arrayByApplyingDifference_( - NSOrderedCollectionDifference? difference) { - final _ret = _lib._objc_msgSend_157(_id, - _lib._sel_arrayByApplyingDifference_1, difference?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } + @Float32() + external double y; +} - /// This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:range: instead. - void getObjects_(ffi.Pointer> objects) { - return _lib._objc_msgSend_158(_id, _lib._sel_getObjects_1, objects); - } +typedef Float32 = ffi.Float; - /// These methods are deprecated, and will be marked with API_DEPRECATED in a subsequent release. Use the variants that use errors instead. - static NSArray arrayWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_159(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } +@ffi.Packed(2) +class ProcessSerialNumber extends ffi.Struct { + @UInt32() + external int highLongOfPSN; - static NSArray arrayWithContentsOfURL_(NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_160(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } + @UInt32() + external int lowLongOfPSN; +} - NSArray initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_159( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } +class Point extends ffi.Struct { + @ffi.Short() + external int v; - NSArray initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_160( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } + @ffi.Short() + external int h; +} - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_37(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); - } +class Rect extends ffi.Struct { + @ffi.Short() + external int top; - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_161(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); - } + @ffi.Short() + external int left; - static NSArray new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_new1); - return NSArray._(_ret, _lib, retain: false, release: true); - } + @ffi.Short() + external int bottom; - static NSArray alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_alloc1); - return NSArray._(_ret, _lib, retain: false, release: true); - } + @ffi.Short() + external int right; } -class NSIndexSet extends NSObject { - NSIndexSet._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +@ffi.Packed(2) +class FixedPoint extends ffi.Struct { + @Fixed() + external int x; - /// Returns a [NSIndexSet] that points to the same underlying object as [other]. - static NSIndexSet castFrom(T other) { - return NSIndexSet._(other._id, other._lib, retain: true, release: true); - } + @Fixed() + external int y; +} - /// Returns a [NSIndexSet] that wraps the given raw object pointer. - static NSIndexSet castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSIndexSet._(other, lib, retain: retain, release: release); - } +typedef Fixed = SInt32; - /// Returns whether [obj] is an instance of [NSIndexSet]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSIndexSet1); - } +@ffi.Packed(2) +class FixedRect extends ffi.Struct { + @Fixed() + external int left; - static NSIndexSet indexSet(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_indexSet1); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } + @Fixed() + external int top; - static NSIndexSet indexSetWithIndex_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_94( - _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndex_1, value); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } + @Fixed() + external int right; - static NSIndexSet indexSetWithIndexesInRange_( - NativeCupertinoHttp _lib, NSRange range) { - final _ret = _lib._objc_msgSend_111( - _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndexesInRange_1, range); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } + @Fixed() + external int bottom; +} - NSIndexSet initWithIndexesInRange_(NSRange range) { - final _ret = - _lib._objc_msgSend_111(_id, _lib._sel_initWithIndexesInRange_1, range); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } +class TimeBaseRecord extends ffi.Opaque {} - NSIndexSet initWithIndexSet_(NSIndexSet? indexSet) { - final _ret = _lib._objc_msgSend_112( - _id, _lib._sel_initWithIndexSet_1, indexSet?._id ?? ffi.nullptr); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } +@ffi.Packed(2) +class TimeRecord extends ffi.Struct { + external CompTimeValue value; - NSIndexSet initWithIndex_(int value) { - final _ret = _lib._objc_msgSend_94(_id, _lib._sel_initWithIndex_1, value); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } + @TimeScale() + external int scale; - bool isEqualToIndexSet_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_113( - _id, _lib._sel_isEqualToIndexSet_1, indexSet?._id ?? ffi.nullptr); - } + external TimeBase base; +} - int get count { - return _lib._objc_msgSend_12(_id, _lib._sel_count1); - } +typedef CompTimeValue = wide; +typedef TimeScale = SInt32; +typedef TimeBase = ffi.Pointer; - int get firstIndex { - return _lib._objc_msgSend_12(_id, _lib._sel_firstIndex1); +class NumVersion extends ffi.Struct { + @UInt8() + external int nonRelRev; + + @UInt8() + external int stage; + + @UInt8() + external int minorAndBugRev; + + @UInt8() + external int majorRev; +} + +typedef UInt8 = ffi.UnsignedChar; + +class NumVersionVariant extends ffi.Union { + external NumVersion parts; + + @UInt32() + external int whole; +} + +class VersRec extends ffi.Struct { + external NumVersion numericVersion; + + @ffi.Short() + external int countryCode; + + @ffi.Array.multi([256]) + external ffi.Array shortVersion; + + @ffi.Array.multi([256]) + external ffi.Array reserved; +} + +typedef ConstStr255Param = ffi.Pointer; + +class __CFString extends ffi.Opaque {} + +abstract class CFComparisonResult { + static const int kCFCompareLessThan = -1; + static const int kCFCompareEqualTo = 0; + static const int kCFCompareGreaterThan = 1; +} + +typedef CFIndex = ffi.Long; + +class CFRange extends ffi.Struct { + @CFIndex() + external int location; + + @CFIndex() + external int length; +} + +class __CFNull extends ffi.Opaque {} + +typedef CFTypeID = ffi.UnsignedLong; +typedef CFNullRef = ffi.Pointer<__CFNull>; + +class __CFAllocator extends ffi.Opaque {} + +typedef CFAllocatorRef = ffi.Pointer<__CFAllocator>; + +class CFAllocatorContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + external CFAllocatorAllocateCallBack allocate; + + external CFAllocatorReallocateCallBack reallocate; + + external CFAllocatorDeallocateCallBack deallocate; + + external CFAllocatorPreferredSizeCallBack preferredSize; +} + +typedef CFAllocatorRetainCallBack = ffi.Pointer< + ffi.NativeFunction Function(ffi.Pointer)>>; +typedef CFAllocatorReleaseCallBack + = ffi.Pointer)>>; +typedef CFAllocatorCopyDescriptionCallBack = ffi + .Pointer)>>; +typedef CFStringRef = ffi.Pointer<__CFString>; +typedef CFAllocatorAllocateCallBack = ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CFIndex, CFOptionFlags, ffi.Pointer)>>; +typedef CFOptionFlags = ffi.UnsignedLong; +typedef CFAllocatorReallocateCallBack = ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, CFIndex, + CFOptionFlags, ffi.Pointer)>>; +typedef CFAllocatorDeallocateCallBack = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; +typedef CFAllocatorPreferredSizeCallBack = ffi.Pointer< + ffi.NativeFunction< + CFIndex Function(CFIndex, CFOptionFlags, ffi.Pointer)>>; +typedef CFTypeRef = ffi.Pointer; +typedef Boolean = ffi.UnsignedChar; +typedef CFHashCode = ffi.UnsignedLong; +typedef NSZone = _NSZone; + +class NSMutableIndexSet extends NSIndexSet { + NSMutableIndexSet._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableIndexSet] that points to the same underlying object as [other]. + static NSMutableIndexSet castFrom(T other) { + return NSMutableIndexSet._(other._id, other._lib, + retain: true, release: true); } - int get lastIndex { - return _lib._objc_msgSend_12(_id, _lib._sel_lastIndex1); + /// Returns a [NSMutableIndexSet] that wraps the given raw object pointer. + static NSMutableIndexSet castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableIndexSet._(other, lib, retain: retain, release: release); } - int indexGreaterThanIndex_(int value) { - return _lib._objc_msgSend_114( - _id, _lib._sel_indexGreaterThanIndex_1, value); + /// Returns whether [obj] is an instance of [NSMutableIndexSet]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableIndexSet1); } - int indexLessThanIndex_(int value) { - return _lib._objc_msgSend_114(_id, _lib._sel_indexLessThanIndex_1, value); + void addIndexes_(NSIndexSet? indexSet) { + return _lib._objc_msgSend_281( + _id, _lib._sel_addIndexes_1, indexSet?._id ?? ffi.nullptr); } - int indexGreaterThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_114( - _id, _lib._sel_indexGreaterThanOrEqualToIndex_1, value); + void removeIndexes_(NSIndexSet? indexSet) { + return _lib._objc_msgSend_281( + _id, _lib._sel_removeIndexes_1, indexSet?._id ?? ffi.nullptr); } - int indexLessThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_114( - _id, _lib._sel_indexLessThanOrEqualToIndex_1, value); + void removeAllIndexes() { + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllIndexes1); } - int getIndexes_maxCount_inIndexRange_(ffi.Pointer indexBuffer, - int bufferSize, NSRangePointer range) { - return _lib._objc_msgSend_115( - _id, - _lib._sel_getIndexes_maxCount_inIndexRange_1, - indexBuffer, - bufferSize, - range); + void addIndex_(int value) { + return _lib._objc_msgSend_282(_id, _lib._sel_addIndex_1, value); } - int countOfIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_116( - _id, _lib._sel_countOfIndexesInRange_1, range); + void removeIndex_(int value) { + return _lib._objc_msgSend_282(_id, _lib._sel_removeIndex_1, value); } - bool containsIndex_(int value) { - return _lib._objc_msgSend_117(_id, _lib._sel_containsIndex_1, value); + void addIndexesInRange_(NSRange range) { + return _lib._objc_msgSend_283(_id, _lib._sel_addIndexesInRange_1, range); } - bool containsIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_118( - _id, _lib._sel_containsIndexesInRange_1, range); + void removeIndexesInRange_(NSRange range) { + return _lib._objc_msgSend_283(_id, _lib._sel_removeIndexesInRange_1, range); } - bool containsIndexes_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_113( - _id, _lib._sel_containsIndexes_1, indexSet?._id ?? ffi.nullptr); + void shiftIndexesStartingAtIndex_by_(int index, int delta) { + return _lib._objc_msgSend_284( + _id, _lib._sel_shiftIndexesStartingAtIndex_by_1, index, delta); } - bool intersectsIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_118( - _id, _lib._sel_intersectsIndexesInRange_1, range); + static NSMutableIndexSet indexSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableIndexSet1, _lib._sel_indexSet1); + return NSMutableIndexSet._(_ret, _lib, retain: true, release: true); } - void enumerateIndexesUsingBlock_(ObjCBlock2 block) { - return _lib._objc_msgSend_119( - _id, _lib._sel_enumerateIndexesUsingBlock_1, block._id); + static NSMutableIndexSet indexSetWithIndex_( + NativeCupertinoHttp _lib, int value) { + final _ret = _lib._objc_msgSend_94( + _lib._class_NSMutableIndexSet1, _lib._sel_indexSetWithIndex_1, value); + return NSMutableIndexSet._(_ret, _lib, retain: true, release: true); } - void enumerateIndexesWithOptions_usingBlock_(int opts, ObjCBlock2 block) { - return _lib._objc_msgSend_120(_id, - _lib._sel_enumerateIndexesWithOptions_usingBlock_1, opts, block._id); + static NSMutableIndexSet indexSetWithIndexesInRange_( + NativeCupertinoHttp _lib, NSRange range) { + final _ret = _lib._objc_msgSend_111(_lib._class_NSMutableIndexSet1, + _lib._sel_indexSetWithIndexesInRange_1, range); + return NSMutableIndexSet._(_ret, _lib, retain: true, release: true); } - void enumerateIndexesInRange_options_usingBlock_( - NSRange range, int opts, ObjCBlock2 block) { - return _lib._objc_msgSend_121( - _id, - _lib._sel_enumerateIndexesInRange_options_usingBlock_1, - range, - opts, - block._id); + static NSMutableIndexSet new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableIndexSet1, _lib._sel_new1); + return NSMutableIndexSet._(_ret, _lib, retain: false, release: true); } - int indexPassingTest_(ObjCBlock3 predicate) { - return _lib._objc_msgSend_122( - _id, _lib._sel_indexPassingTest_1, predicate._id); + static NSMutableIndexSet alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableIndexSet1, _lib._sel_alloc1); + return NSMutableIndexSet._(_ret, _lib, retain: false, release: true); } +} - int indexWithOptions_passingTest_(int opts, ObjCBlock3 predicate) { - return _lib._objc_msgSend_123( - _id, _lib._sel_indexWithOptions_passingTest_1, opts, predicate._id); +/// Mutable Array +class NSMutableArray extends NSArray { + NSMutableArray._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableArray] that points to the same underlying object as [other]. + static NSMutableArray castFrom(T other) { + return NSMutableArray._(other._id, other._lib, retain: true, release: true); } - int indexInRange_options_passingTest_( - NSRange range, int opts, ObjCBlock3 predicate) { - return _lib._objc_msgSend_124( - _id, - _lib._sel_indexInRange_options_passingTest_1, - range, - opts, - predicate._id); + /// Returns a [NSMutableArray] that wraps the given raw object pointer. + static NSMutableArray castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableArray._(other, lib, retain: retain, release: release); } - NSIndexSet indexesPassingTest_(ObjCBlock3 predicate) { - final _ret = _lib._objc_msgSend_125( - _id, _lib._sel_indexesPassingTest_1, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSMutableArray]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableArray1); } - NSIndexSet indexesWithOptions_passingTest_(int opts, ObjCBlock3 predicate) { - final _ret = _lib._objc_msgSend_126( - _id, _lib._sel_indexesWithOptions_passingTest_1, opts, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + void addObject_(NSObject anObject) { + return _lib._objc_msgSend_200(_id, _lib._sel_addObject_1, anObject._id); } - NSIndexSet indexesInRange_options_passingTest_( - NSRange range, int opts, ObjCBlock3 predicate) { - final _ret = _lib._objc_msgSend_127( - _id, - _lib._sel_indexesInRange_options_passingTest_1, - range, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + void insertObject_atIndex_(NSObject anObject, int index) { + return _lib._objc_msgSend_285( + _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); } - void enumerateRangesUsingBlock_(ObjCBlock4 block) { - return _lib._objc_msgSend_128( - _id, _lib._sel_enumerateRangesUsingBlock_1, block._id); + void removeLastObject() { + return _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); } - void enumerateRangesWithOptions_usingBlock_(int opts, ObjCBlock4 block) { - return _lib._objc_msgSend_129(_id, - _lib._sel_enumerateRangesWithOptions_usingBlock_1, opts, block._id); + void removeObjectAtIndex_(int index) { + return _lib._objc_msgSend_282(_id, _lib._sel_removeObjectAtIndex_1, index); } - void enumerateRangesInRange_options_usingBlock_( - NSRange range, int opts, ObjCBlock4 block) { - return _lib._objc_msgSend_130( - _id, - _lib._sel_enumerateRangesInRange_options_usingBlock_1, - range, - opts, - block._id); + void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { + return _lib._objc_msgSend_286( + _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); } - static NSIndexSet new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_new1); - return NSIndexSet._(_ret, _lib, retain: false, release: true); + @override + NSMutableArray init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSIndexSet alloc(NativeCupertinoHttp _lib) { + NSMutableArray initWithCapacity_(int numItems) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_alloc1); - return NSIndexSet._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_94(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } -} -typedef NSRangePointer = ffi.Pointer; -void _ObjCBlock2_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(int arg0, ffi.Pointer arg1)>()(arg0, arg1); -} + @override + NSMutableArray initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_14( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } -final _ObjCBlock2_closureRegistry = {}; -int _ObjCBlock2_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock2_registerClosure(Function fn) { - final id = ++_ObjCBlock2_closureRegistryIndex; - _ObjCBlock2_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + void addObjectsFromArray_(NSArray? otherArray) { + return _lib._objc_msgSend_287( + _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); + } -void _ObjCBlock2_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return _ObjCBlock2_closureRegistry[block.ref.target.address]!(arg0, arg1); -} + void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { + return _lib._objc_msgSend_288( + _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); + } -class ObjCBlock2 extends _ObjCBlockBase { - ObjCBlock2._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); + void removeAllObjects() { + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + } - /// Creates a block from a C function pointer. - ObjCBlock2.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - NSUInteger arg0, ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock2_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + void removeObject_inRange_(NSObject anObject, NSRange range) { + return _lib._objc_msgSend_289( + _id, _lib._sel_removeObject_inRange_1, anObject._id, range); + } - /// Creates a block from a Dart function. - ObjCBlock2.fromFunction(NativeCupertinoHttp lib, - void Function(int arg0, ffi.Pointer arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock2_closureTrampoline) - .cast(), - _ObjCBlock2_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(int arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + void removeObject_(NSObject anObject) { + return _lib._objc_msgSend_200(_id, _lib._sel_removeObject_1, anObject._id); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + void removeObjectIdenticalTo_inRange_(NSObject anObject, NSRange range) { + return _lib._objc_msgSend_289( + _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); + } -abstract class NSEnumerationOptions { - static const int NSEnumerationConcurrent = 1; - static const int NSEnumerationReverse = 2; -} + void removeObjectIdenticalTo_(NSObject anObject) { + return _lib._objc_msgSend_200( + _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); + } -bool _ObjCBlock3_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - bool Function(int arg0, ffi.Pointer arg1)>()(arg0, arg1); -} + void removeObjectsFromIndices_numIndices_( + ffi.Pointer indices, int cnt) { + return _lib._objc_msgSend_290( + _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); + } -final _ObjCBlock3_closureRegistry = {}; -int _ObjCBlock3_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock3_registerClosure(Function fn) { - final id = ++_ObjCBlock3_closureRegistryIndex; - _ObjCBlock3_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + void removeObjectsInArray_(NSArray? otherArray) { + return _lib._objc_msgSend_287( + _id, _lib._sel_removeObjectsInArray_1, otherArray?._id ?? ffi.nullptr); + } -bool _ObjCBlock3_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return _ObjCBlock3_closureRegistry[block.ref.target.address]!(arg0, arg1); -} + void removeObjectsInRange_(NSRange range) { + return _lib._objc_msgSend_283(_id, _lib._sel_removeObjectsInRange_1, range); + } -class ObjCBlock3 extends _ObjCBlockBase { - ObjCBlock3._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); + void replaceObjectsInRange_withObjectsFromArray_range_( + NSRange range, NSArray? otherArray, NSRange otherRange) { + return _lib._objc_msgSend_291( + _id, + _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, + range, + otherArray?._id ?? ffi.nullptr, + otherRange); + } - /// Creates a block from a C function pointer. - ObjCBlock3.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock3_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + void replaceObjectsInRange_withObjectsFromArray_( + NSRange range, NSArray? otherArray) { + return _lib._objc_msgSend_292( + _id, + _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, + range, + otherArray?._id ?? ffi.nullptr); + } - /// Creates a block from a Dart function. - ObjCBlock3.fromFunction(NativeCupertinoHttp lib, - bool Function(int arg0, ffi.Pointer arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock3_closureTrampoline, false) - .cast(), - _ObjCBlock3_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call(int arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + void setArray_(NSArray? otherArray) { + return _lib._objc_msgSend_287( + _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + void sortUsingFunction_context_( + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + compare, + ffi.Pointer context) { + return _lib._objc_msgSend_293( + _id, _lib._sel_sortUsingFunction_context_1, compare, context); + } -void _ObjCBlock4_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, NSRange arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(NSRange arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function( - NSRange arg0, ffi.Pointer arg1)>()(arg0, arg1); -} + void sortUsingSelector_(ffi.Pointer comparator) { + return _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); + } -final _ObjCBlock4_closureRegistry = {}; -int _ObjCBlock4_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock4_registerClosure(Function fn) { - final id = ++_ObjCBlock4_closureRegistryIndex; - _ObjCBlock4_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock4_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, NSRange arg0, ffi.Pointer arg1) { - return _ObjCBlock4_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock4 extends _ObjCBlockBase { - ObjCBlock4._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock4.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(NSRange arg0, ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock4_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock4.fromFunction(NativeCupertinoHttp lib, - void Function(NSRange arg0, ffi.Pointer arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock4_closureTrampoline) - .cast(), - _ObjCBlock4_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(NSRange arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, NSRange arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, NSRange arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { + return _lib._objc_msgSend_294(_id, _lib._sel_insertObjects_atIndexes_1, + objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock5_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock5_closureRegistry = {}; -int _ObjCBlock5_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock5_registerClosure(Function fn) { - final id = ++_ObjCBlock5_closureRegistryIndex; - _ObjCBlock5_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock5_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock5_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock5 extends _ObjCBlockBase { - ObjCBlock5._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock5.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - NSUInteger arg1, ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock5_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + void removeObjectsAtIndexes_(NSIndexSet? indexes) { + return _lib._objc_msgSend_281( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + } - /// Creates a block from a Dart function. - ObjCBlock5.fromFunction( - NativeCupertinoHttp lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock5_closureTrampoline) - .cast(), - _ObjCBlock5_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + void replaceObjectsAtIndexes_withObjects_( + NSIndexSet? indexes, NSArray? objects) { + return _lib._objc_msgSend_295( + _id, + _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes?._id ?? ffi.nullptr, + objects?._id ?? ffi.nullptr); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + void setObject_atIndexedSubscript_(NSObject obj, int idx) { + return _lib._objc_msgSend_285( + _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); + } -bool _ObjCBlock6_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, NSUInteger arg1, - ffi.Pointer arg2)>>() - .asFunction< - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} + void sortUsingComparator_(NSComparator cmptr) { + return _lib._objc_msgSend_296(_id, _lib._sel_sortUsingComparator_1, cmptr); + } -final _ObjCBlock6_closureRegistry = {}; -int _ObjCBlock6_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock6_registerClosure(Function fn) { - final id = ++_ObjCBlock6_closureRegistryIndex; - _ObjCBlock6_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + void sortWithOptions_usingComparator_(int opts, NSComparator cmptr) { + return _lib._objc_msgSend_297( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr); + } -bool _ObjCBlock6_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock6_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} + static NSMutableArray arrayWithCapacity_( + NativeCupertinoHttp _lib, int numItems) { + final _ret = _lib._objc_msgSend_94( + _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock6 extends _ObjCBlockBase { - ObjCBlock6._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); + static NSMutableArray arrayWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_298(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock6.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - NSUInteger arg1, ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock6_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + static NSMutableArray arrayWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_299(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock6.fromFunction( - NativeCupertinoHttp lib, - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock6_closureTrampoline, false) - .cast(), - _ObjCBlock6_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + NSMutableArray initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_298( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + NSMutableArray initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_299( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } -typedef NSComparator = ffi.Pointer<_ObjCBlock>; -int _ObjCBlock7_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} + void applyDifference_(NSOrderedCollectionDifference? difference) { + return _lib._objc_msgSend_300( + _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); + } -final _ObjCBlock7_closureRegistry = {}; -int _ObjCBlock7_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock7_registerClosure(Function fn) { - final id = ++_ObjCBlock7_closureRegistryIndex; - _ObjCBlock7_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + static NSMutableArray array(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_array1); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } -int _ObjCBlock7_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock7_closureRegistry[block.ref.target.address]!(arg0, arg1); -} + static NSMutableArray arrayWithObject_( + NativeCupertinoHttp _lib, NSObject anObject) { + final _ret = _lib._objc_msgSend_91( + _lib._class_NSMutableArray1, _lib._sel_arrayWithObject_1, anObject._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock7 extends _ObjCBlockBase { - ObjCBlock7._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); + static NSMutableArray arrayWithObjects_count_(NativeCupertinoHttp _lib, + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_95(_lib._class_NSMutableArray1, + _lib._sel_arrayWithObjects_count_1, objects, cnt); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock7.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock7_fnPtrTrampoline, 0) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + static NSMutableArray arrayWithObjects_( + NativeCupertinoHttp _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_91(_lib._class_NSMutableArray1, + _lib._sel_arrayWithObjects_1, firstObj._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock7.fromFunction( - NativeCupertinoHttp lib, - int Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock7_closureTrampoline, 0) - .cast(), - _ObjCBlock7_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - int call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + static NSMutableArray arrayWithArray_( + NativeCupertinoHttp _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_100(_lib._class_NSMutableArray1, + _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + /// Reads array stored in NSPropertyList format from the specified url. + static NSArray arrayWithContentsOfURL_error_(NativeCupertinoHttp _lib, + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_145( + _lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSArray._(_ret, _lib, retain: true, release: true); + } -abstract class NSSortOptions { - static const int NSSortConcurrent = 1; - static const int NSSortStable = 16; -} + static NSMutableArray new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_new1); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } -abstract class NSBinarySearchingOptions { - static const int NSBinarySearchingFirstEqual = 256; - static const int NSBinarySearchingLastEqual = 512; - static const int NSBinarySearchingInsertionIndex = 1024; + static NSMutableArray alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } } -class NSOrderedCollectionDifference extends NSObject { - NSOrderedCollectionDifference._( - ffi.Pointer id, NativeCupertinoHttp lib, +/// Mutable Data +class NSMutableData extends NSData { + NSMutableData._(ffi.Pointer id, NativeCupertinoHttp lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSOrderedCollectionDifference] that points to the same underlying object as [other]. - static NSOrderedCollectionDifference castFrom( - T other) { - return NSOrderedCollectionDifference._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSMutableData] that points to the same underlying object as [other]. + static NSMutableData castFrom(T other) { + return NSMutableData._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSOrderedCollectionDifference] that wraps the given raw object pointer. - static NSOrderedCollectionDifference castFromPointer( + /// Returns a [NSMutableData] that wraps the given raw object pointer. + static NSMutableData castFromPointer( NativeCupertinoHttp lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSOrderedCollectionDifference._(other, lib, - retain: retain, release: release); + return NSMutableData._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSOrderedCollectionDifference]. + /// Returns whether [obj] is an instance of [NSMutableData]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSOrderedCollectionDifference1); - } - - NSOrderedCollectionDifference initWithChanges_(NSObject? changes) { - final _ret = _lib._objc_msgSend_91( - _id, _lib._sel_initWithChanges_1, changes?._id ?? ffi.nullptr); - return NSOrderedCollectionDifference._(_ret, _lib, - retain: true, release: true); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableData1); } - NSOrderedCollectionDifference - initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_( - NSIndexSet? inserts, - NSObject? insertedObjects, - NSIndexSet? removes, - NSObject? removedObjects, - NSObject? changes) { - final _ret = _lib._objc_msgSend_146( - _id, - _lib._sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_1, - inserts?._id ?? ffi.nullptr, - insertedObjects?._id ?? ffi.nullptr, - removes?._id ?? ffi.nullptr, - removedObjects?._id ?? ffi.nullptr, - changes?._id ?? ffi.nullptr); - return NSOrderedCollectionDifference._(_ret, _lib, - retain: true, release: true); + ffi.Pointer get mutableBytes { + return _lib._objc_msgSend_31(_id, _lib._sel_mutableBytes1); } - NSOrderedCollectionDifference - initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_( - NSIndexSet? inserts, - NSObject? insertedObjects, - NSIndexSet? removes, - NSObject? removedObjects) { - final _ret = _lib._objc_msgSend_147( - _id, - _lib._sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_1, - inserts?._id ?? ffi.nullptr, - insertedObjects?._id ?? ffi.nullptr, - removes?._id ?? ffi.nullptr, - removedObjects?._id ?? ffi.nullptr); - return NSOrderedCollectionDifference._(_ret, _lib, - retain: true, release: true); + @override + int get length { + return _lib._objc_msgSend_12(_id, _lib._sel_length1); } - NSObject? get insertions { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_insertions1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + set length(int value) { + _lib._objc_msgSend_301(_id, _lib._sel_setLength_1, value); } - NSObject? get removals { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_removals1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + void appendBytes_length_(ffi.Pointer bytes, int length) { + return _lib._objc_msgSend_33( + _id, _lib._sel_appendBytes_length_1, bytes, length); } - bool get hasChanges { - return _lib._objc_msgSend_11(_id, _lib._sel_hasChanges1); + void appendData_(NSData? other) { + return _lib._objc_msgSend_302( + _id, _lib._sel_appendData_1, other?._id ?? ffi.nullptr); } - NSOrderedCollectionDifference differenceByTransformingChangesWithBlock_( - ObjCBlock8 block) { - final _ret = _lib._objc_msgSend_153( - _id, _lib._sel_differenceByTransformingChangesWithBlock_1, block._id); - return NSOrderedCollectionDifference._(_ret, _lib, - retain: true, release: true); + void increaseLengthBy_(int extraLength) { + return _lib._objc_msgSend_282( + _id, _lib._sel_increaseLengthBy_1, extraLength); } - NSOrderedCollectionDifference inverseDifference() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_inverseDifference1); - return NSOrderedCollectionDifference._(_ret, _lib, - retain: true, release: true); + void replaceBytesInRange_withBytes_( + NSRange range, ffi.Pointer bytes) { + return _lib._objc_msgSend_303( + _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); } - static NSOrderedCollectionDifference new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOrderedCollectionDifference1, _lib._sel_new1); - return NSOrderedCollectionDifference._(_ret, _lib, - retain: false, release: true); + void resetBytesInRange_(NSRange range) { + return _lib._objc_msgSend_283(_id, _lib._sel_resetBytesInRange_1, range); } - static NSOrderedCollectionDifference alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOrderedCollectionDifference1, _lib._sel_alloc1); - return NSOrderedCollectionDifference._(_ret, _lib, - retain: false, release: true); + void setData_(NSData? data) { + return _lib._objc_msgSend_302( + _id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); } -} -ffi.Pointer _ObjCBlock8_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>()(arg0); -} + void replaceBytesInRange_withBytes_length_(NSRange range, + ffi.Pointer replacementBytes, int replacementLength) { + return _lib._objc_msgSend_304( + _id, + _lib._sel_replaceBytesInRange_withBytes_length_1, + range, + replacementBytes, + replacementLength); + } -final _ObjCBlock8_closureRegistry = {}; -int _ObjCBlock8_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock8_registerClosure(Function fn) { - final id = ++_ObjCBlock8_closureRegistryIndex; - _ObjCBlock8_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + static NSMutableData dataWithCapacity_( + NativeCupertinoHttp _lib, int aNumItems) { + final _ret = _lib._objc_msgSend_94( + _lib._class_NSMutableData1, _lib._sel_dataWithCapacity_1, aNumItems); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } -ffi.Pointer _ObjCBlock8_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock8_closureRegistry[block.ref.target.address]!(arg0); -} + static NSMutableData dataWithLength_(NativeCupertinoHttp _lib, int length) { + final _ret = _lib._objc_msgSend_94( + _lib._class_NSMutableData1, _lib._sel_dataWithLength_1, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock8 extends _ObjCBlockBase { - ObjCBlock8._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); + NSMutableData initWithCapacity_(int capacity) { + final _ret = + _lib._objc_msgSend_94(_id, _lib._sel_initWithCapacity_1, capacity); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock8.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock8_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + NSMutableData initWithLength_(int length) { + final _ret = _lib._objc_msgSend_94(_id, _lib._sel_initWithLength_1, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock8.fromFunction(NativeCupertinoHttp lib, - ffi.Pointer Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock8_closureTrampoline) - .cast(), - _ObjCBlock8_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); + /// These methods compress or decompress the receiver's contents in-place using the specified algorithm. If the operation is not successful, these methods leave the receiver unchanged.. + bool decompressUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + return _lib._objc_msgSend_305( + _id, _lib._sel_decompressUsingAlgorithm_error_1, algorithm, error); } - ffi.Pointer<_ObjCBlock> get pointer => _id; + bool compressUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + return _lib._objc_msgSend_305( + _id, _lib._sel_compressUsingAlgorithm_error_1, algorithm, error); + } + + static NSMutableData data(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_data1); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData dataWithBytes_length_( + NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_212(_lib._class_NSMutableData1, + _lib._sel_dataWithBytes_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData dataWithBytesNoCopy_length_( + NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_212(_lib._class_NSMutableData1, + _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + static NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( + NativeCupertinoHttp _lib, + ffi.Pointer bytes, + int length, + bool b) { + final _ret = _lib._objc_msgSend_213(_lib._class_NSMutableData1, + _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + static NSMutableData dataWithContentsOfFile_options_error_( + NativeCupertinoHttp _lib, + NSString? path, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_214( + _lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfFile_options_error_1, + path?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData dataWithContentsOfURL_options_error_( + NativeCupertinoHttp _lib, + NSURL? url, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_215( + _lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData dataWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData dataWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_201(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData dataWithData_(NativeCupertinoHttp _lib, NSData? data) { + final _ret = _lib._objc_msgSend_217(_lib._class_NSMutableData1, + _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSObject dataWithContentsOfMappedFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_new1); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + static NSMutableData alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_alloc1); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } } -class NSOrderedCollectionChange extends NSObject { - NSOrderedCollectionChange._( - ffi.Pointer id, NativeCupertinoHttp lib, +/// Purgeable Data +class NSPurgeableData extends NSMutableData { + NSPurgeableData._(ffi.Pointer id, NativeCupertinoHttp lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSOrderedCollectionChange] that points to the same underlying object as [other]. - static NSOrderedCollectionChange castFrom(T other) { - return NSOrderedCollectionChange._(other._id, other._lib, + /// Returns a [NSPurgeableData] that points to the same underlying object as [other]. + static NSPurgeableData castFrom(T other) { + return NSPurgeableData._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSOrderedCollectionChange] that wraps the given raw object pointer. - static NSOrderedCollectionChange castFromPointer( + /// Returns a [NSPurgeableData] that wraps the given raw object pointer. + static NSPurgeableData castFromPointer( NativeCupertinoHttp lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSOrderedCollectionChange._(other, lib, - retain: retain, release: release); + return NSPurgeableData._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSOrderedCollectionChange]. + /// Returns whether [obj] is an instance of [NSPurgeableData]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSOrderedCollectionChange1); + obj._lib._class_NSPurgeableData1); } - static NSOrderedCollectionChange changeWithObject_type_index_( - NativeCupertinoHttp _lib, NSObject anObject, int type, int index) { - final _ret = _lib._objc_msgSend_148(_lib._class_NSOrderedCollectionChange1, - _lib._sel_changeWithObject_type_index_1, anObject._id, type, index); - return NSOrderedCollectionChange._(_ret, _lib, retain: true, release: true); + static NSPurgeableData dataWithCapacity_( + NativeCupertinoHttp _lib, int aNumItems) { + final _ret = _lib._objc_msgSend_94( + _lib._class_NSPurgeableData1, _lib._sel_dataWithCapacity_1, aNumItems); + return NSPurgeableData._(_ret, _lib, retain: true, release: true); } - static NSOrderedCollectionChange changeWithObject_type_index_associatedIndex_( - NativeCupertinoHttp _lib, - NSObject anObject, - int type, - int index, - int associatedIndex) { - final _ret = _lib._objc_msgSend_149( - _lib._class_NSOrderedCollectionChange1, - _lib._sel_changeWithObject_type_index_associatedIndex_1, - anObject._id, - type, - index, - associatedIndex); - return NSOrderedCollectionChange._(_ret, _lib, retain: true, release: true); + static NSPurgeableData dataWithLength_(NativeCupertinoHttp _lib, int length) { + final _ret = _lib._objc_msgSend_94( + _lib._class_NSPurgeableData1, _lib._sel_dataWithLength_1, length); + return NSPurgeableData._(_ret, _lib, retain: true, release: true); } - NSObject get object { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_object1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSPurgeableData data(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPurgeableData1, _lib._sel_data1); + return NSPurgeableData._(_ret, _lib, retain: true, release: true); } - int get changeType { - return _lib._objc_msgSend_150(_id, _lib._sel_changeType1); + static NSPurgeableData dataWithBytes_length_( + NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_212(_lib._class_NSPurgeableData1, + _lib._sel_dataWithBytes_length_1, bytes, length); + return NSPurgeableData._(_ret, _lib, retain: true, release: true); } - int get index { - return _lib._objc_msgSend_12(_id, _lib._sel_index1); + static NSPurgeableData dataWithBytesNoCopy_length_( + NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_212(_lib._class_NSPurgeableData1, + _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); + return NSPurgeableData._(_ret, _lib, retain: false, release: true); } - int get associatedIndex { - return _lib._objc_msgSend_12(_id, _lib._sel_associatedIndex1); + static NSPurgeableData dataWithBytesNoCopy_length_freeWhenDone_( + NativeCupertinoHttp _lib, + ffi.Pointer bytes, + int length, + bool b) { + final _ret = _lib._objc_msgSend_213(_lib._class_NSPurgeableData1, + _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSPurgeableData._(_ret, _lib, retain: false, release: true); } - @override - NSObject init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSPurgeableData dataWithContentsOfFile_options_error_( + NativeCupertinoHttp _lib, + NSString? path, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_214( + _lib._class_NSPurgeableData1, + _lib._sel_dataWithContentsOfFile_options_error_1, + path?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSPurgeableData._(_ret, _lib, retain: true, release: true); } - NSOrderedCollectionChange initWithObject_type_index_( - NSObject anObject, int type, int index) { - final _ret = _lib._objc_msgSend_151( - _id, _lib._sel_initWithObject_type_index_1, anObject._id, type, index); - return NSOrderedCollectionChange._(_ret, _lib, retain: true, release: true); + static NSPurgeableData dataWithContentsOfURL_options_error_( + NativeCupertinoHttp _lib, + NSURL? url, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_215( + _lib._class_NSPurgeableData1, + _lib._sel_dataWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSPurgeableData._(_ret, _lib, retain: true, release: true); } - NSOrderedCollectionChange initWithObject_type_index_associatedIndex_( - NSObject anObject, int type, int index, int associatedIndex) { - final _ret = _lib._objc_msgSend_152( - _id, - _lib._sel_initWithObject_type_index_associatedIndex_1, - anObject._id, - type, - index, - associatedIndex); - return NSOrderedCollectionChange._(_ret, _lib, retain: true, release: true); + static NSPurgeableData dataWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSPurgeableData1, + _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSPurgeableData._(_ret, _lib, retain: true, release: true); } - static NSOrderedCollectionChange new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOrderedCollectionChange1, _lib._sel_new1); - return NSOrderedCollectionChange._(_ret, _lib, - retain: false, release: true); + static NSPurgeableData dataWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_201(_lib._class_NSPurgeableData1, + _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSPurgeableData._(_ret, _lib, retain: true, release: true); } - static NSOrderedCollectionChange alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOrderedCollectionChange1, _lib._sel_alloc1); - return NSOrderedCollectionChange._(_ret, _lib, - retain: false, release: true); + static NSPurgeableData dataWithData_(NativeCupertinoHttp _lib, NSData? data) { + final _ret = _lib._objc_msgSend_217(_lib._class_NSPurgeableData1, + _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + return NSPurgeableData._(_ret, _lib, retain: true, release: true); } -} - -abstract class NSCollectionChangeType { - static const int NSCollectionChangeInsert = 0; - static const int NSCollectionChangeRemove = 1; -} -abstract class NSOrderedCollectionDifferenceCalculationOptions { - static const int NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = - 1; - static const int NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = - 2; - static const int NSOrderedCollectionDifferenceCalculationInferMoves = 4; -} + static NSObject dataWithContentsOfMappedFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSPurgeableData1, + _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } -bool _ObjCBlock9_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} + static NSPurgeableData new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPurgeableData1, _lib._sel_new1); + return NSPurgeableData._(_ret, _lib, retain: false, release: true); + } -final _ObjCBlock9_closureRegistry = {}; -int _ObjCBlock9_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock9_registerClosure(Function fn) { - final id = ++_ObjCBlock9_closureRegistryIndex; - _ObjCBlock9_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); + static NSPurgeableData alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPurgeableData1, _lib._sel_alloc1); + return NSPurgeableData._(_ret, _lib, retain: false, release: true); + } } -bool _ObjCBlock9_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock9_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +/// Mutable Dictionary +class NSMutableDictionary extends NSDictionary { + NSMutableDictionary._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); -class ObjCBlock9 extends _ObjCBlockBase { - ObjCBlock9._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); + /// Returns a [NSMutableDictionary] that points to the same underlying object as [other]. + static NSMutableDictionary castFrom(T other) { + return NSMutableDictionary._(other._id, other._lib, + retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock9.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock9_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + /// Returns a [NSMutableDictionary] that wraps the given raw object pointer. + static NSMutableDictionary castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableDictionary._(other, lib, retain: retain, release: release); + } - /// Creates a block from a Dart function. - ObjCBlock9.fromFunction( - NativeCupertinoHttp lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock9_closureTrampoline, false) - .cast(), - _ObjCBlock9_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + /// Returns whether [obj] is an instance of [NSMutableDictionary]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableDictionary1); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + void removeObjectForKey_(NSObject aKey) { + return _lib._objc_msgSend_200( + _id, _lib._sel_removeObjectForKey_1, aKey._id); + } -void _ObjCBlock10_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} + void setObject_forKey_(NSObject anObject, NSObject aKey) { + return _lib._objc_msgSend_306( + _id, _lib._sel_setObject_forKey_1, anObject._id, aKey._id); + } -final _ObjCBlock10_closureRegistry = {}; -int _ObjCBlock10_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock10_registerClosure(Function fn) { - final id = ++_ObjCBlock10_closureRegistryIndex; - _ObjCBlock10_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + @override + NSMutableDictionary init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock10_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock10_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} + NSMutableDictionary initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_94(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock10 extends _ObjCBlockBase { - ObjCBlock10._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock10.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock10_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock10.fromFunction( - NativeCupertinoHttp lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock10_closureTrampoline) - .cast(), - _ObjCBlock10_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + @override + NSMutableDictionary initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_14( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -bool _ObjCBlock11_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() - .asFunction< - bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock11_closureRegistry = {}; -int _ObjCBlock11_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock11_registerClosure(Function fn) { - final id = ++_ObjCBlock11_closureRegistryIndex; - _ObjCBlock11_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -bool _ObjCBlock11_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock11_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock11 extends _ObjCBlockBase { - ObjCBlock11._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock11.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock11_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock11.fromFunction( - NativeCupertinoHttp lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock11_closureTrampoline, false) - .cast(), - _ObjCBlock11_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + void addEntriesFromDictionary_(NSDictionary? otherDictionary) { + return _lib._objc_msgSend_307(_id, _lib._sel_addEntriesFromDictionary_1, + otherDictionary?._id ?? ffi.nullptr); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -class NSFastEnumerationState extends ffi.Struct { - @ffi.UnsignedLong() - external int state; - - external ffi.Pointer> itemsPtr; - - external ffi.Pointer mutationsPtr; + void removeAllObjects() { + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + } - @ffi.Array.multi([5]) - external ffi.Array extra; -} + void removeObjectsForKeys_(NSArray? keyArray) { + return _lib._objc_msgSend_287( + _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); + } -ffi.Pointer _ObjCBlock12_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSErrorUserInfoKey arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, NSErrorUserInfoKey arg1)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer arg0, - NSErrorUserInfoKey arg1)>()(arg0, arg1); -} + void setDictionary_(NSDictionary? otherDictionary) { + return _lib._objc_msgSend_307( + _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); + } -final _ObjCBlock12_closureRegistry = {}; -int _ObjCBlock12_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock12_registerClosure(Function fn) { - final id = ++_ObjCBlock12_closureRegistryIndex; - _ObjCBlock12_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + void setObject_forKeyedSubscript_(NSObject obj, NSObject key) { + return _lib._objc_msgSend_306( + _id, _lib._sel_setObject_forKeyedSubscript_1, obj._id, key._id); + } -ffi.Pointer _ObjCBlock12_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSErrorUserInfoKey arg1) { - return _ObjCBlock12_closureRegistry[block.ref.target.address]!(arg0, arg1); -} + static NSMutableDictionary dictionaryWithCapacity_( + NativeCupertinoHttp _lib, int numItems) { + final _ret = _lib._objc_msgSend_94(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithCapacity_1, numItems); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock12 extends _ObjCBlockBase { - ObjCBlock12._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); + static NSMutableDictionary dictionaryWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_308(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock12.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, NSErrorUserInfoKey arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSErrorUserInfoKey arg1)>( - _ObjCBlock12_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + static NSMutableDictionary dictionaryWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_309(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock12.fromFunction( - NativeCupertinoHttp lib, - ffi.Pointer Function( - ffi.Pointer arg0, NSErrorUserInfoKey arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSErrorUserInfoKey arg1)>( - _ObjCBlock12_closureTrampoline) - .cast(), - _ObjCBlock12_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call( - ffi.Pointer arg0, NSErrorUserInfoKey arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSErrorUserInfoKey arg1)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSErrorUserInfoKey arg1)>()(_id, arg0, arg1); + NSMutableDictionary initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_308( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + NSMutableDictionary initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_309( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } -typedef NSErrorUserInfoKey = ffi.Pointer; -typedef NSURLResourceKey = ffi.Pointer; + /// Create a mutable dictionary which is optimized for dealing with a known set of keys. + /// Keys that are not in the key set can still be set into the dictionary, but that usage is not optimal. + /// As with any dictionary, the keys must be copyable. + /// If keyset is nil, an exception is thrown. + /// If keyset is not an object returned by +sharedKeySetForKeys:, an exception is thrown. + static NSMutableDictionary dictionaryWithSharedKeySet_( + NativeCupertinoHttp _lib, NSObject keyset) { + final _ret = _lib._objc_msgSend_310(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } -/// Working with Bookmarks and alias (bookmark) files -abstract class NSURLBookmarkCreationOptions { - /// This option does nothing and has no effect on bookmark resolution - static const int NSURLBookmarkCreationPreferFileIDResolution = 256; + static NSMutableDictionary dictionary(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableDictionary1, _lib._sel_dictionary1); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } - /// creates bookmark data with "less" information, which may be smaller but still be able to resolve in certain ways - static const int NSURLBookmarkCreationMinimalBookmark = 512; + static NSMutableDictionary dictionaryWithObject_forKey_( + NativeCupertinoHttp _lib, NSObject object, NSObject key) { + final _ret = _lib._objc_msgSend_173(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObject_forKey_1, object._id, key._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } - /// include the properties required by writeBookmarkData:toURL:options: in the bookmark data created - static const int NSURLBookmarkCreationSuitableForBookmarkFile = 1024; + static NSMutableDictionary dictionaryWithObjects_forKeys_count_( + NativeCupertinoHttp _lib, + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_93(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } - /// include information in the bookmark data which allows the same sandboxed process to access the resource after being relaunched - static const int NSURLBookmarkCreationWithSecurityScope = 2048; + static NSMutableDictionary dictionaryWithObjectsAndKeys_( + NativeCupertinoHttp _lib, NSObject firstObject) { + final _ret = _lib._objc_msgSend_91(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } - /// if used with kCFURLBookmarkCreationWithSecurityScope, at resolution time only read access to the resource will be granted - static const int NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; + static NSMutableDictionary dictionaryWithDictionary_( + NativeCupertinoHttp _lib, NSDictionary? dict) { + final _ret = _lib._objc_msgSend_174(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } - /// Disable automatic embedding of an implicit security scope. The resolving process will not be able gain access to the resource by security scope, either implicitly or explicitly, through the returned URL. Not applicable to security-scoped bookmarks. - static const int NSURLBookmarkCreationWithoutImplicitSecurityScope = - 536870912; -} + static NSMutableDictionary dictionaryWithObjects_forKeys_( + NativeCupertinoHttp _lib, NSArray? objects, NSArray? keys) { + final _ret = _lib._objc_msgSend_175( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } -abstract class NSURLBookmarkResolutionOptions { - /// don't perform any user interaction during bookmark resolution - static const int NSURLBookmarkResolutionWithoutUI = 256; + /// Reads dictionary stored in NSPropertyList format from the specified url. + static NSDictionary dictionaryWithContentsOfURL_error_( + NativeCupertinoHttp _lib, + NSURL? url, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_177( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } - /// don't mount a volume during bookmark resolution - static const int NSURLBookmarkResolutionWithoutMounting = 512; + /// Use this method to create a key set to pass to +dictionaryWithSharedKeySet:. + /// The keys are copied from the array and must be copyable. + /// If the array parameter is nil or not an NSArray, an exception is thrown. + /// If the array of keys is empty, an empty key set is returned. + /// The array of keys may contain duplicates, which are ignored (it is undefined which object of each duplicate pair is used). + /// As for any usage of hashing, is recommended that the keys have a well-distributed implementation of -hash, and the hash codes must satisfy the hash/isEqual: invariant. + /// Keys with duplicate hash codes are allowed, but will cause lower performance and increase memory usage. + static NSObject sharedKeySetForKeys_( + NativeCupertinoHttp _lib, NSArray? keys) { + final _ret = _lib._objc_msgSend_100(_lib._class_NSMutableDictionary1, + _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } - /// use the secure information included at creation time to provide the ability to access the resource in a sandboxed process - static const int NSURLBookmarkResolutionWithSecurityScope = 1024; + static NSMutableDictionary new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableDictionary1, _lib._sel_new1); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + } - /// Disable implicitly starting access of the ephemeral security-scoped resource during resolution. Instead, call `-[NSURL startAccessingSecurityScopedResource]` on the returned URL when ready to use the resource. Not applicable to security-scoped bookmarks. - static const int NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768; + static NSMutableDictionary alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableDictionary1, _lib._sel_alloc1); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + } } -typedef NSURLBookmarkFileCreationOptions = NSUInteger; - -class NSURLHandle extends NSObject { - NSURLHandle._(ffi.Pointer id, NativeCupertinoHttp lib, +class NSNotification extends NSObject { + NSNotification._(ffi.Pointer id, NativeCupertinoHttp lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLHandle] that points to the same underlying object as [other]. - static NSURLHandle castFrom(T other) { - return NSURLHandle._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSNotification] that points to the same underlying object as [other]. + static NSNotification castFrom(T other) { + return NSNotification._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLHandle] that wraps the given raw object pointer. - static NSURLHandle castFromPointer( + /// Returns a [NSNotification] that wraps the given raw object pointer. + static NSNotification castFromPointer( NativeCupertinoHttp lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLHandle._(other, lib, retain: retain, release: release); + return NSNotification._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLHandle]. + /// Returns whether [obj] is an instance of [NSNotification]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLHandle1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSNotification1); } - static void registerURLHandleClass_( - NativeCupertinoHttp _lib, NSObject anURLHandleSubclass) { - return _lib._objc_msgSend_200(_lib._class_NSURLHandle1, - _lib._sel_registerURLHandleClass_1, anURLHandleSubclass._id); + NSNotificationName get name { + return _lib._objc_msgSend_32(_id, _lib._sel_name1); } - static NSObject URLHandleClassForURL_( - NativeCupertinoHttp _lib, NSURL? anURL) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSURLHandle1, - _lib._sel_URLHandleClassForURL_1, anURL?._id ?? ffi.nullptr); + NSObject get object { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_object1); return NSObject._(_ret, _lib, retain: true, release: true); } - int status() { - return _lib._objc_msgSend_202(_id, _lib._sel_status1); + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_180(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString failureReason() { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_failureReason1); - return NSString._(_ret, _lib, retain: true, release: true); + NSNotification initWithName_object_userInfo_( + NSNotificationName name, NSObject object, NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_311( + _id, + _lib._sel_initWithName_object_userInfo_1, + name, + object._id, + userInfo?._id ?? ffi.nullptr); + return NSNotification._(_ret, _lib, retain: true, release: true); } - void addClient_(NSObject? client) { - return _lib._objc_msgSend_200( - _id, _lib._sel_addClient_1, client?._id ?? ffi.nullptr); + NSNotification initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_14( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSNotification._(_ret, _lib, retain: true, release: true); } - void removeClient_(NSObject? client) { - return _lib._objc_msgSend_200( - _id, _lib._sel_removeClient_1, client?._id ?? ffi.nullptr); + static NSNotification notificationWithName_object_( + NativeCupertinoHttp _lib, NSNotificationName aName, NSObject anObject) { + final _ret = _lib._objc_msgSend_258(_lib._class_NSNotification1, + _lib._sel_notificationWithName_object_1, aName, anObject._id); + return NSNotification._(_ret, _lib, retain: true, release: true); } - void loadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_loadInBackground1); + static NSNotification notificationWithName_object_userInfo_( + NativeCupertinoHttp _lib, + NSNotificationName aName, + NSObject anObject, + NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_311( + _lib._class_NSNotification1, + _lib._sel_notificationWithName_object_userInfo_1, + aName, + anObject._id, + aUserInfo?._id ?? ffi.nullptr); + return NSNotification._(_ret, _lib, retain: true, release: true); } - void cancelLoadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancelLoadInBackground1); + @override + NSNotification init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNotification._(_ret, _lib, retain: true, release: true); } - NSData resourceData() { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_resourceData1); - return NSData._(_ret, _lib, retain: true, release: true); + static NSNotification new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_new1); + return NSNotification._(_ret, _lib, retain: false, release: true); } - NSData availableResourceData() { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_availableResourceData1); - return NSData._(_ret, _lib, retain: true, release: true); + static NSNotification alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); + return NSNotification._(_ret, _lib, retain: false, release: true); } +} - int expectedResourceDataSize() { - return _lib._objc_msgSend_82(_id, _lib._sel_expectedResourceDataSize1); - } +typedef NSNotificationName = ffi.Pointer; - void flushCachedData() { - return _lib._objc_msgSend_1(_id, _lib._sel_flushCachedData1); +class NSNotificationCenter extends NSObject { + NSNotificationCenter._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSNotificationCenter] that points to the same underlying object as [other]. + static NSNotificationCenter castFrom(T other) { + return NSNotificationCenter._(other._id, other._lib, + retain: true, release: true); } - void backgroundLoadDidFailWithReason_(NSString? reason) { - return _lib._objc_msgSend_188( + /// Returns a [NSNotificationCenter] that wraps the given raw object pointer. + static NSNotificationCenter castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSNotificationCenter._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSNotificationCenter]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSNotificationCenter1); + } + + static NSNotificationCenter? getDefaultCenter(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_312( + _lib._class_NSNotificationCenter1, _lib._sel_defaultCenter1); + return _ret.address == 0 + ? null + : NSNotificationCenter._(_ret, _lib, retain: true, release: true); + } + + void addObserver_selector_name_object_( + NSObject observer, + ffi.Pointer aSelector, + NSNotificationName aName, + NSObject anObject) { + return _lib._objc_msgSend_313( _id, - _lib._sel_backgroundLoadDidFailWithReason_1, - reason?._id ?? ffi.nullptr); + _lib._sel_addObserver_selector_name_object_1, + observer._id, + aSelector, + aName, + anObject._id); } - void didLoadBytes_loadComplete_(NSData? newBytes, bool yorn) { - return _lib._objc_msgSend_203(_id, _lib._sel_didLoadBytes_loadComplete_1, - newBytes?._id ?? ffi.nullptr, yorn); + void postNotification_(NSNotification? notification) { + return _lib._objc_msgSend_314( + _id, _lib._sel_postNotification_1, notification?._id ?? ffi.nullptr); } - static bool canInitWithURL_(NativeCupertinoHttp _lib, NSURL? anURL) { - return _lib._objc_msgSend_204(_lib._class_NSURLHandle1, - _lib._sel_canInitWithURL_1, anURL?._id ?? ffi.nullptr); + void postNotificationName_object_( + NSNotificationName aName, NSObject anObject) { + return _lib._objc_msgSend_315( + _id, _lib._sel_postNotificationName_object_1, aName, anObject._id); } - static NSURLHandle cachedHandleForURL_( - NativeCupertinoHttp _lib, NSURL? anURL) { - final _ret = _lib._objc_msgSend_205(_lib._class_NSURLHandle1, - _lib._sel_cachedHandleForURL_1, anURL?._id ?? ffi.nullptr); - return NSURLHandle._(_ret, _lib, retain: true, release: true); + void postNotificationName_object_userInfo_( + NSNotificationName aName, NSObject anObject, NSDictionary? aUserInfo) { + return _lib._objc_msgSend_316( + _id, + _lib._sel_postNotificationName_object_userInfo_1, + aName, + anObject._id, + aUserInfo?._id ?? ffi.nullptr); } - NSObject initWithURL_cached_(NSURL? anURL, bool willCache) { - final _ret = _lib._objc_msgSend_206(_id, _lib._sel_initWithURL_cached_1, - anURL?._id ?? ffi.nullptr, willCache); - return NSObject._(_ret, _lib, retain: true, release: true); + void removeObserver_(NSObject observer) { + return _lib._objc_msgSend_200( + _id, _lib._sel_removeObserver_1, observer._id); } - NSObject propertyForKey_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + void removeObserver_name_object_( + NSObject observer, NSNotificationName aName, NSObject anObject) { + return _lib._objc_msgSend_317(_id, _lib._sel_removeObserver_name_object_1, + observer._id, aName, anObject._id); } - NSObject propertyForKeyIfAvailable_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_42(_id, - _lib._sel_propertyForKeyIfAvailable_1, propertyKey?._id ?? ffi.nullptr); + NSObject addObserverForName_object_queue_usingBlock_(NSNotificationName name, + NSObject obj, NSOperationQueue? queue, ObjCBlock18 block) { + final _ret = _lib._objc_msgSend_346( + _id, + _lib._sel_addObserverForName_object_queue_usingBlock_1, + name, + obj._id, + queue?._id ?? ffi.nullptr, + block._id); return NSObject._(_ret, _lib, retain: true, release: true); } - bool writeProperty_forKey_(NSObject propertyValue, NSString? propertyKey) { - return _lib._objc_msgSend_199(_id, _lib._sel_writeProperty_forKey_1, - propertyValue._id, propertyKey?._id ?? ffi.nullptr); + static NSNotificationCenter new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNotificationCenter1, _lib._sel_new1); + return NSNotificationCenter._(_ret, _lib, retain: false, release: true); } - bool writeData_(NSData? data) { - return _lib._objc_msgSend_35( - _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); + static NSNotificationCenter alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNotificationCenter1, _lib._sel_alloc1); + return NSNotificationCenter._(_ret, _lib, retain: false, release: true); } +} - NSData loadInForeground() { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_loadInForeground1); - return NSData._(_ret, _lib, retain: true, release: true); +class NSOperationQueue extends NSObject { + NSOperationQueue._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSOperationQueue] that points to the same underlying object as [other]. + static NSOperationQueue castFrom(T other) { + return NSOperationQueue._(other._id, other._lib, + retain: true, release: true); } - void beginLoadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_beginLoadInBackground1); + /// Returns a [NSOperationQueue] that wraps the given raw object pointer. + static NSOperationQueue castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOperationQueue._(other, lib, retain: retain, release: release); } - void endLoadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_endLoadInBackground1); + /// Returns whether [obj] is an instance of [NSOperationQueue]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSOperationQueue1); } - static NSURLHandle new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_new1); - return NSURLHandle._(_ret, _lib, retain: false, release: true); + /// @property progress + /// @discussion The `progress` property represents a total progress of the operations executed in the queue. By default NSOperationQueue + /// does not report progress until the `totalUnitCount` of the progress is set. When the `totalUnitCount` property of the progress is set the + /// queue then opts into participating in progress reporting. When enabled, each operation will contribute 1 unit of completion to the + /// overall progress of the queue for operations that are finished by the end of main (operations that override start and do not invoke super + /// will not contribute to progress). Special attention to race conditions should be made when updating the `totalUnitCount` of the progress + /// as well as care should be taken to avoid 'backwards progress'. For example; when a NSOperationQueue's progress is 5/10, representing 50% + /// completed, and there are 90 more operations about to be added and the `totalUnitCount` that would then make the progress report as 5/100 + /// which represents 5%. In this example it would mean that any progress bar would jump from displaying 50% back to 5%, which might not be + /// desirable. In the cases where the `totalUnitCount` needs to be adjusted it is suggested to do this for thread-safety in a barrier by + /// using the `addBarrierBlock:` API. This ensures that no un-expected execution state occurs adjusting into a potentially backwards moving + /// progress scenario. + /// + /// @example + /// NSOperationQueue *queue = [[NSOperationQueue alloc] init]; + /// queue.progress.totalUnitCount = 10; + NSProgress? get progress { + final _ret = _lib._objc_msgSend_318(_id, _lib._sel_progress1); + return _ret.address == 0 + ? null + : NSProgress._(_ret, _lib, retain: true, release: true); } - static NSURLHandle alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_alloc1); - return NSURLHandle._(_ret, _lib, retain: false, release: true); + void addOperation_(NSOperation? op) { + return _lib._objc_msgSend_334( + _id, _lib._sel_addOperation_1, op?._id ?? ffi.nullptr); } -} -abstract class NSURLHandleStatus { - static const int NSURLHandleNotLoaded = 0; - static const int NSURLHandleLoadSucceeded = 1; - static const int NSURLHandleLoadInProgress = 2; - static const int NSURLHandleLoadFailed = 3; -} + void addOperations_waitUntilFinished_(NSArray? ops, bool wait) { + return _lib._objc_msgSend_340( + _id, + _lib._sel_addOperations_waitUntilFinished_1, + ops?._id ?? ffi.nullptr, + wait); + } -abstract class NSDataWritingOptions { - /// Hint to use auxiliary file when saving; equivalent to atomically:YES - static const int NSDataWritingAtomic = 1; + void addOperationWithBlock_(ObjCBlock16 block) { + return _lib._objc_msgSend_341( + _id, _lib._sel_addOperationWithBlock_1, block._id); + } - /// Hint to prevent overwriting an existing file. Cannot be combined with NSDataWritingAtomic. - static const int NSDataWritingWithoutOverwriting = 2; - static const int NSDataWritingFileProtectionNone = 268435456; - static const int NSDataWritingFileProtectionComplete = 536870912; - static const int NSDataWritingFileProtectionCompleteUnlessOpen = 805306368; - static const int - NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication = - 1073741824; - static const int NSDataWritingFileProtectionMask = 4026531840; + /// @method addBarrierBlock: + /// @param barrier A block to execute + /// @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_(ObjCBlock16 barrier) { + return _lib._objc_msgSend_341( + _id, _lib._sel_addBarrierBlock_1, barrier._id); + } - /// Deprecated name for NSDataWritingAtomic - static const int NSAtomicWrite = 1; -} + int get maxConcurrentOperationCount { + return _lib._objc_msgSend_81(_id, _lib._sel_maxConcurrentOperationCount1); + } -/// Data Search Options -abstract class NSDataSearchOptions { - static const int NSDataSearchBackwards = 1; - static const int NSDataSearchAnchored = 2; -} + set maxConcurrentOperationCount(int value) { + _lib._objc_msgSend_342( + _id, _lib._sel_setMaxConcurrentOperationCount_1, value); + } -void _ObjCBlock13_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} + bool get suspended { + return _lib._objc_msgSend_11(_id, _lib._sel_isSuspended1); + } -final _ObjCBlock13_closureRegistry = {}; -int _ObjCBlock13_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock13_registerClosure(Function fn) { - final id = ++_ObjCBlock13_closureRegistryIndex; - _ObjCBlock13_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + set suspended(bool value) { + _lib._objc_msgSend_328(_id, _lib._sel_setSuspended_1, value); + } -void _ObjCBlock13_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock13_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} + NSString? get name { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } -class ObjCBlock13 extends _ObjCBlockBase { - ObjCBlock13._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); + set name(NSString? value) { + _lib._objc_msgSend_327(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + } - /// Creates a block from a C function pointer. - ObjCBlock13.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock13_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + int get qualityOfService { + return _lib._objc_msgSend_338(_id, _lib._sel_qualityOfService1); + } - /// Creates a block from a Dart function. - ObjCBlock13.fromFunction( - NativeCupertinoHttp lib, - void Function(ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock13_closureTrampoline) - .cast(), - _ObjCBlock13_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + set qualityOfService(int value) { + _lib._objc_msgSend_339(_id, _lib._sel_setQualityOfService_1, value); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + /// actually retain + dispatch_queue_t get underlyingQueue { + return _lib._objc_msgSend_343(_id, _lib._sel_underlyingQueue1); + } -/// Read/Write Options -abstract class NSDataReadingOptions { - /// Hint to map the file in if possible and safe - static const int NSDataReadingMappedIfSafe = 1; + /// actually retain + set underlyingQueue(dispatch_queue_t value) { + _lib._objc_msgSend_344(_id, _lib._sel_setUnderlyingQueue_1, value); + } - /// Hint to get the file not to be cached in the kernel - static const int NSDataReadingUncached = 2; + void cancelAllOperations() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); + } - /// Hint to map the file in if possible. This takes precedence over NSDataReadingMappedIfSafe if both are given. - static const int NSDataReadingMappedAlways = 8; + void waitUntilAllOperationsAreFinished() { + return _lib._objc_msgSend_1( + _id, _lib._sel_waitUntilAllOperationsAreFinished1); + } - /// Deprecated name for NSDataReadingMappedIfSafe - static const int NSDataReadingMapped = 1; + static NSOperationQueue? getCurrentQueue(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_345( + _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); + return _ret.address == 0 + ? null + : NSOperationQueue._(_ret, _lib, retain: true, release: true); + } - /// Deprecated name for NSDataReadingMapped - static const int NSMappedRead = 1; + static NSOperationQueue? getMainQueue(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_345( + _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); + return _ret.address == 0 + ? null + : NSOperationQueue._(_ret, _lib, retain: true, release: true); + } - /// Deprecated name for NSDataReadingUncached - static const int NSUncachedRead = 2; -} + /// These two functions are inherently a race condition and should be avoided if possible + NSArray? get operations { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_operations1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock14_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, int arg1)>()(arg0, arg1); -} + int get operationCount { + return _lib._objc_msgSend_12(_id, _lib._sel_operationCount1); + } -final _ObjCBlock14_closureRegistry = {}; -int _ObjCBlock14_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock14_registerClosure(Function fn) { - final id = ++_ObjCBlock14_closureRegistryIndex; - _ObjCBlock14_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + static NSOperationQueue new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_new1); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); + } -void _ObjCBlock14_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return _ObjCBlock14_closureRegistry[block.ref.target.address]!(arg0, arg1); + static NSOperationQueue alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_alloc1); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); + } } -class ObjCBlock14 extends _ObjCBlockBase { - ObjCBlock14._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class NSProgress extends NSObject { + NSProgress._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - /// Creates a block from a C function pointer. - ObjCBlock14.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, NSUInteger arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock14_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + /// Returns a [NSProgress] that points to the same underlying object as [other]. + static NSProgress castFrom(T other) { + return NSProgress._(other._id, other._lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock14.fromFunction(NativeCupertinoHttp lib, - void Function(ffi.Pointer arg0, int arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock14_closureTrampoline) - .cast(), - _ObjCBlock14_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSUInteger arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); + /// Returns a [NSProgress] that wraps the given raw object pointer. + static NSProgress castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSProgress._(other, lib, retain: retain, release: release); } - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + /// Returns whether [obj] is an instance of [NSProgress]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); + } -abstract class NSDataBase64DecodingOptions { - /// Use the following option to modify the decoding algorithm so that it ignores unknown non-Base64 bytes, including line ending characters. - static const int NSDataBase64DecodingIgnoreUnknownCharacters = 1; -} + static NSProgress currentProgress(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_318( + _lib._class_NSProgress1, _lib._sel_currentProgress1); + return NSProgress._(_ret, _lib, retain: true, release: true); + } -/// Base 64 Options -abstract class NSDataBase64EncodingOptions { - /// Use zero or one of the following to control the maximum line length after which a line ending is inserted. No line endings are inserted by default. - static const int NSDataBase64Encoding64CharacterLineLength = 1; - static const int NSDataBase64Encoding76CharacterLineLength = 2; + static NSProgress progressWithTotalUnitCount_( + NativeCupertinoHttp _lib, int unitCount) { + final _ret = _lib._objc_msgSend_319(_lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_1, unitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); + } - /// Use zero or more of the following to specify which kind of line ending is inserted. The default line ending is CR LF. - static const int NSDataBase64EncodingEndLineWithCarriageReturn = 16; - static const int NSDataBase64EncodingEndLineWithLineFeed = 32; -} + static NSProgress discreteProgressWithTotalUnitCount_( + NativeCupertinoHttp _lib, int unitCount) { + final _ret = _lib._objc_msgSend_319(_lib._class_NSProgress1, + _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); + } -/// Various algorithms provided for compression APIs. See NSData and NSMutableData. -abstract class NSDataCompressionAlgorithm { - /// LZFSE is the recommended compression algorithm if you don't have a specific reason to use another algorithm. Note that LZFSE is intended for use with Apple devices only. This algorithm generally compresses better than Zlib, but not as well as LZMA. It is generally slower than LZ4. - static const int NSDataCompressionAlgorithmLZFSE = 0; + static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( + NativeCupertinoHttp _lib, + int unitCount, + NSProgress? parent, + int portionOfParentTotalUnitCount) { + final _ret = _lib._objc_msgSend_320( + _lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, + unitCount, + parent?._id ?? ffi.nullptr, + portionOfParentTotalUnitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); + } - /// LZ4 is appropriate if compression speed is critical. LZ4 generally sacrifices compression ratio in order to achieve its greater speed. - /// This implementation of LZ4 makes a small modification to the standard format, which is described in greater detail in . - static const int NSDataCompressionAlgorithmLZ4 = 1; + NSProgress initWithParent_userInfo_( + NSProgress? parentProgressOrNil, NSDictionary? userInfoOrNil) { + final _ret = _lib._objc_msgSend_321( + _id, + _lib._sel_initWithParent_userInfo_1, + parentProgressOrNil?._id ?? ffi.nullptr, + userInfoOrNil?._id ?? ffi.nullptr); + return NSProgress._(_ret, _lib, retain: true, release: true); + } - /// LZMA is appropriate if compression ratio is critical and memory usage and compression speed are not a factor. LZMA is an order of magnitude slower for both compression and decompression than other algorithms. It can also use a very large amount of memory, so if you need to compress large amounts of data on embedded devices with limited memory you should probably avoid LZMA. - /// Encoding uses LZMA level 6 only, but decompression works with any compression level. - static const int NSDataCompressionAlgorithmLZMA = 2; + void becomeCurrentWithPendingUnitCount_(int unitCount) { + return _lib._objc_msgSend_322( + _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); + } - /// Zlib is appropriate if you want a good balance between compression speed and compression ratio, but only if you need interoperability with non-Apple platforms. Otherwise, LZFSE is generally a better choice than Zlib. - /// Encoding uses Zlib level 5 only, but decompression works with any compression level. It uses the raw DEFLATE format as described in IETF RFC 1951. - static const int NSDataCompressionAlgorithmZlib = 3; -} + void performAsCurrentWithPendingUnitCount_usingBlock_( + int unitCount, ObjCBlock16 work) { + return _lib._objc_msgSend_323( + _id, + _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, + unitCount, + work._id); + } -typedef UTF32Char = UInt32; -typedef UInt32 = ffi.UnsignedInt; + void resignCurrent() { + return _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); + } -abstract class NSStringEnumerationOptions { - static const int NSStringEnumerationByLines = 0; - static const int NSStringEnumerationByParagraphs = 1; - static const int NSStringEnumerationByComposedCharacterSequences = 2; - static const int NSStringEnumerationByWords = 3; - static const int NSStringEnumerationBySentences = 4; - static const int NSStringEnumerationByCaretPositions = 5; - static const int NSStringEnumerationByDeletionClusters = 6; - static const int NSStringEnumerationReverse = 256; - static const int NSStringEnumerationSubstringNotRequired = 512; - static const int NSStringEnumerationLocalized = 1024; -} + void addChild_withPendingUnitCount_(NSProgress? child, int inUnitCount) { + return _lib._objc_msgSend_324( + _id, + _lib._sel_addChild_withPendingUnitCount_1, + child?._id ?? ffi.nullptr, + inUnitCount); + } -void _ObjCBlock15_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - NSRange arg2, ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>()(arg0, arg1, arg2, arg3); -} + int get totalUnitCount { + return _lib._objc_msgSend_325(_id, _lib._sel_totalUnitCount1); + } -final _ObjCBlock15_closureRegistry = {}; -int _ObjCBlock15_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock15_registerClosure(Function fn) { - final id = ++_ObjCBlock15_closureRegistryIndex; - _ObjCBlock15_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + set totalUnitCount(int value) { + _lib._objc_msgSend_326(_id, _lib._sel_setTotalUnitCount_1, value); + } -void _ObjCBlock15_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3) { - return _ObjCBlock15_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2, arg3); -} + int get completedUnitCount { + return _lib._objc_msgSend_325(_id, _lib._sel_completedUnitCount1); + } -class ObjCBlock15 extends _ObjCBlockBase { - ObjCBlock15._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); + set completedUnitCount(int value) { + _lib._objc_msgSend_326(_id, _lib._sel_setCompletedUnitCount_1, value); + } - /// Creates a block from a C function pointer. - ObjCBlock15.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - NSRange arg2, ffi.Pointer arg3)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock15_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + NSString? get localizedDescription { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localizedDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock15.fromFunction( - NativeCupertinoHttp lib, - void Function(ffi.Pointer arg0, NSRange arg1, NSRange arg2, - ffi.Pointer arg3) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock15_closureTrampoline) - .cast(), - _ObjCBlock15_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, NSRange arg1, NSRange arg2, - ffi.Pointer arg3) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>()(_id, arg0, arg1, arg2, arg3); + set localizedDescription(NSString? value) { + _lib._objc_msgSend_327( + _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); } - ffi.Pointer<_ObjCBlock> get pointer => _id; + NSString? get localizedAdditionalDescription { + final _ret = + _lib._objc_msgSend_32(_id, _lib._sel_localizedAdditionalDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set localizedAdditionalDescription(NSString? value) { + _lib._objc_msgSend_327(_id, _lib._sel_setLocalizedAdditionalDescription_1, + value?._id ?? ffi.nullptr); + } + + bool get cancellable { + return _lib._objc_msgSend_11(_id, _lib._sel_isCancellable1); + } + + set cancellable(bool value) { + _lib._objc_msgSend_328(_id, _lib._sel_setCancellable_1, value); + } + + bool get pausable { + return _lib._objc_msgSend_11(_id, _lib._sel_isPausable1); + } + + set pausable(bool value) { + _lib._objc_msgSend_328(_id, _lib._sel_setPausable_1, value); + } + + bool get cancelled { + return _lib._objc_msgSend_11(_id, _lib._sel_isCancelled1); + } + + bool get paused { + return _lib._objc_msgSend_11(_id, _lib._sel_isPaused1); + } + + ObjCBlock16 get cancellationHandler { + final _ret = _lib._objc_msgSend_329(_id, _lib._sel_cancellationHandler1); + return ObjCBlock16._(_ret, _lib); + } + + set cancellationHandler(ObjCBlock16 value) { + _lib._objc_msgSend_330(_id, _lib._sel_setCancellationHandler_1, value._id); + } + + ObjCBlock16 get pausingHandler { + final _ret = _lib._objc_msgSend_329(_id, _lib._sel_pausingHandler1); + return ObjCBlock16._(_ret, _lib); + } + + set pausingHandler(ObjCBlock16 value) { + _lib._objc_msgSend_330(_id, _lib._sel_setPausingHandler_1, value._id); + } + + ObjCBlock16 get resumingHandler { + final _ret = _lib._objc_msgSend_329(_id, _lib._sel_resumingHandler1); + return ObjCBlock16._(_ret, _lib); + } + + set resumingHandler(ObjCBlock16 value) { + _lib._objc_msgSend_330(_id, _lib._sel_setResumingHandler_1, value._id); + } + + void setUserInfoObject_forKey_( + NSObject objectOrNil, NSProgressUserInfoKey key) { + return _lib._objc_msgSend_189( + _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key); + } + + bool get indeterminate { + return _lib._objc_msgSend_11(_id, _lib._sel_isIndeterminate1); + } + + double get fractionCompleted { + return _lib._objc_msgSend_85(_id, _lib._sel_fractionCompleted1); + } + + bool get finished { + return _lib._objc_msgSend_11(_id, _lib._sel_isFinished1); + } + + void cancel() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + } + + void pause() { + return _lib._objc_msgSend_1(_id, _lib._sel_pause1); + } + + void resume() { + return _lib._objc_msgSend_1(_id, _lib._sel_resume1); + } + + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_180(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSProgressKind get kind { + return _lib._objc_msgSend_32(_id, _lib._sel_kind1); + } + + set kind(NSProgressKind value) { + _lib._objc_msgSend_327(_id, _lib._sel_setKind_1, value); + } + + NSNumber? get estimatedTimeRemaining { + final _ret = _lib._objc_msgSend_89(_id, _lib._sel_estimatedTimeRemaining1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set estimatedTimeRemaining(NSNumber? value) { + _lib._objc_msgSend_331( + _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get throughput { + final _ret = _lib._objc_msgSend_89(_id, _lib._sel_throughput1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set throughput(NSNumber? value) { + _lib._objc_msgSend_331( + _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); + } + + NSProgressFileOperationKind get fileOperationKind { + return _lib._objc_msgSend_32(_id, _lib._sel_fileOperationKind1); + } + + set fileOperationKind(NSProgressFileOperationKind value) { + _lib._objc_msgSend_327(_id, _lib._sel_setFileOperationKind_1, value); + } + + NSURL? get fileURL { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_fileURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + set fileURL(NSURL? value) { + _lib._objc_msgSend_332( + _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get fileTotalCount { + final _ret = _lib._objc_msgSend_89(_id, _lib._sel_fileTotalCount1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set fileTotalCount(NSNumber? value) { + _lib._objc_msgSend_331( + _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get fileCompletedCount { + final _ret = _lib._objc_msgSend_89(_id, _lib._sel_fileCompletedCount1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set fileCompletedCount(NSNumber? value) { + _lib._objc_msgSend_331( + _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); + } + + void publish() { + return _lib._objc_msgSend_1(_id, _lib._sel_publish1); + } + + void unpublish() { + return _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); + } + + static NSObject addSubscriberForFileURL_withPublishingHandler_( + NativeCupertinoHttp _lib, + NSURL? url, + NSProgressPublishingHandler publishingHandler) { + final _ret = _lib._objc_msgSend_333( + _lib._class_NSProgress1, + _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, + url?._id ?? ffi.nullptr, + publishingHandler); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static void removeSubscriber_(NativeCupertinoHttp _lib, NSObject subscriber) { + return _lib._objc_msgSend_200( + _lib._class_NSProgress1, _lib._sel_removeSubscriber_1, subscriber._id); + } + + bool get old { + return _lib._objc_msgSend_11(_id, _lib._sel_isOld1); + } + + static NSProgress new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_new1); + return NSProgress._(_ret, _lib, retain: false, release: true); + } + + static NSProgress alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); + return NSProgress._(_ret, _lib, retain: false, release: true); + } } -void _ObjCBlock16_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +void _ObjCBlock16_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block) { return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + .cast>() + .asFunction()(); } final _ObjCBlock16_closureRegistry = {}; @@ -66561,9 +67009,8 @@ ffi.Pointer _ObjCBlock16_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -void _ObjCBlock16_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock16_closureRegistry[block.ref.target.address]!(arg0, arg1); +void _ObjCBlock16_closureTrampoline(ffi.Pointer<_ObjCBlock> block) { + return _ObjCBlock16_closureRegistry[block.ref.target.address]!(); } class ObjCBlock16 extends _ObjCBlockBase { @@ -66571,20 +67018,12 @@ class ObjCBlock16 extends _ObjCBlockBase { : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock16.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) + ObjCBlock16.fromFunctionPointer(NativeCupertinoHttp lib, + ffi.Pointer> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( + ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( _ObjCBlock16_fnPtrTrampoline) .cast(), ptr.cast()), @@ -66592,56 +67031,41 @@ class ObjCBlock16 extends _ObjCBlockBase { static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock16.fromFunction( - NativeCupertinoHttp lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + ObjCBlock16.fromFunction(NativeCupertinoHttp lib, void Function() fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( + ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( _ObjCBlock16_closureTrampoline) .cast(), _ObjCBlock16_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { + void call() { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>>() + .asFunction block)>()(_id); } ffi.Pointer<_ObjCBlock> get pointer => _id; } -typedef NSStringEncoding = NSUInteger; - -abstract class NSStringEncodingConversionOptions { - static const int NSStringEncodingConversionAllowLossy = 1; - static const int NSStringEncodingConversionExternalRepresentation = 2; -} - -typedef NSStringTransform = ffi.Pointer; -void _ObjCBlock17_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { +typedef NSProgressUserInfoKey = ffi.Pointer; +typedef NSProgressKind = ffi.Pointer; +typedef NSProgressFileOperationKind = ffi.Pointer; +typedef NSProgressPublishingHandler = ffi.Pointer<_ObjCBlock>; +NSProgressUnpublishingHandler _ObjCBlock17_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1)>>() + NSProgressUnpublishingHandler Function( + ffi.Pointer arg0)>>() .asFunction< - void Function(ffi.Pointer arg0, int arg1)>()(arg0, arg1); + NSProgressUnpublishingHandler Function( + ffi.Pointer arg0)>()(arg0); } final _ObjCBlock17_closureRegistry = {}; @@ -66652,9 +67076,9 @@ ffi.Pointer _ObjCBlock17_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -void _ObjCBlock17_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return _ObjCBlock17_closureRegistry[block.ref.target.address]!(arg0, arg1); +NSProgressUnpublishingHandler _ObjCBlock17_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock17_closureRegistry[block.ref.target.address]!(arg0); } class ObjCBlock17 extends _ObjCBlockBase { @@ -66666,16 +67090,16 @@ class ObjCBlock17 extends _ObjCBlockBase { NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, NSUInteger arg1)>> + NSProgressUnpublishingHandler Function( + ffi.Pointer arg0)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock17_fnPtrTrampoline) + NSProgressUnpublishingHandler Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock17_fnPtrTrampoline) .cast(), ptr.cast()), lib); @@ -66683,4067 +67107,3318 @@ class ObjCBlock17 extends _ObjCBlockBase { /// Creates a block from a Dart function. ObjCBlock17.fromFunction(NativeCupertinoHttp lib, - void Function(ffi.Pointer arg0, int arg1) fn) + NSProgressUnpublishingHandler Function(ffi.Pointer arg0) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock17_closureTrampoline) + NSProgressUnpublishingHandler Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock17_closureTrampoline) .cast(), _ObjCBlock17_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, int arg1) { + NSProgressUnpublishingHandler call(ffi.Pointer arg0) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSUInteger arg1)>>() + NSProgressUnpublishingHandler Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); + NSProgressUnpublishingHandler Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } ffi.Pointer<_ObjCBlock> get pointer => _id; } -typedef va_list = __builtin_va_list; -typedef __builtin_va_list = ffi.Pointer; - -abstract class NSQualityOfService { - static const int NSQualityOfServiceUserInteractive = 33; - static const int NSQualityOfServiceUserInitiated = 25; - static const int NSQualityOfServiceUtility = 17; - static const int NSQualityOfServiceBackground = 9; - static const int NSQualityOfServiceDefault = -1; -} +typedef NSProgressUnpublishingHandler = ffi.Pointer<_ObjCBlock>; -abstract class ptrauth_key { - static const int ptrauth_key_asia = 0; - static const int ptrauth_key_asib = 1; - static const int ptrauth_key_asda = 2; - static const int ptrauth_key_asdb = 3; - static const int ptrauth_key_process_independent_code = 0; - static const int ptrauth_key_process_dependent_code = 1; - static const int ptrauth_key_process_independent_data = 2; - static const int ptrauth_key_process_dependent_data = 3; - static const int ptrauth_key_function_pointer = 0; - static const int ptrauth_key_return_address = 1; - static const int ptrauth_key_frame_pointer = 3; - static const int ptrauth_key_block_function = 0; - static const int ptrauth_key_cxx_vtable_pointer = 2; - static const int ptrauth_key_method_list_pointer = 2; - static const int ptrauth_key_objc_isa_pointer = 2; - static const int ptrauth_key_objc_super_pointer = 2; - static const int ptrauth_key_block_descriptor_pointer = 2; - static const int ptrauth_key_objc_sel_pointer = 3; - static const int ptrauth_key_objc_class_ro_pointer = 2; -} +class NSOperation extends NSObject { + NSOperation._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); -@ffi.Packed(2) -class wide extends ffi.Struct { - @UInt32() - external int lo; + /// Returns a [NSOperation] that points to the same underlying object as [other]. + static NSOperation castFrom(T other) { + return NSOperation._(other._id, other._lib, retain: true, release: true); + } - @SInt32() - external int hi; -} + /// Returns a [NSOperation] that wraps the given raw object pointer. + static NSOperation castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOperation._(other, lib, retain: retain, release: release); + } -typedef SInt32 = ffi.Int; + /// Returns whether [obj] is an instance of [NSOperation]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOperation1); + } -@ffi.Packed(2) -class UnsignedWide extends ffi.Struct { - @UInt32() - external int lo; + void start() { + return _lib._objc_msgSend_1(_id, _lib._sel_start1); + } - @UInt32() - external int hi; -} + void main() { + return _lib._objc_msgSend_1(_id, _lib._sel_main1); + } -class Float80 extends ffi.Struct { - @SInt16() - external int exp; + bool get cancelled { + return _lib._objc_msgSend_11(_id, _lib._sel_isCancelled1); + } - @ffi.Array.multi([4]) - external ffi.Array man; -} + void cancel() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + } -typedef SInt16 = ffi.Short; -typedef UInt16 = ffi.UnsignedShort; + bool get executing { + return _lib._objc_msgSend_11(_id, _lib._sel_isExecuting1); + } -class Float96 extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array exp; + bool get finished { + return _lib._objc_msgSend_11(_id, _lib._sel_isFinished1); + } - @ffi.Array.multi([4]) - external ffi.Array man; -} - -@ffi.Packed(2) -class Float32Point extends ffi.Struct { - @Float32() - external double x; - - @Float32() - external double y; -} - -typedef Float32 = ffi.Float; - -@ffi.Packed(2) -class ProcessSerialNumber extends ffi.Struct { - @UInt32() - external int highLongOfPSN; - - @UInt32() - external int lowLongOfPSN; -} - -class Point extends ffi.Struct { - @ffi.Short() - external int v; - - @ffi.Short() - external int h; -} - -class Rect extends ffi.Struct { - @ffi.Short() - external int top; - - @ffi.Short() - external int left; + /// To be deprecated; use and override 'asynchronous' below + bool get concurrent { + return _lib._objc_msgSend_11(_id, _lib._sel_isConcurrent1); + } - @ffi.Short() - external int bottom; + bool get asynchronous { + return _lib._objc_msgSend_11(_id, _lib._sel_isAsynchronous1); + } - @ffi.Short() - external int right; -} + bool get ready { + return _lib._objc_msgSend_11(_id, _lib._sel_isReady1); + } -@ffi.Packed(2) -class FixedPoint extends ffi.Struct { - @Fixed() - external int x; + void addDependency_(NSOperation? op) { + return _lib._objc_msgSend_334( + _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); + } - @Fixed() - external int y; -} + void removeDependency_(NSOperation? op) { + return _lib._objc_msgSend_334( + _id, _lib._sel_removeDependency_1, op?._id ?? ffi.nullptr); + } -typedef Fixed = SInt32; + NSArray? get dependencies { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_dependencies1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } -@ffi.Packed(2) -class FixedRect extends ffi.Struct { - @Fixed() - external int left; + int get queuePriority { + return _lib._objc_msgSend_335(_id, _lib._sel_queuePriority1); + } - @Fixed() - external int top; + set queuePriority(int value) { + _lib._objc_msgSend_336(_id, _lib._sel_setQueuePriority_1, value); + } - @Fixed() - external int right; + ObjCBlock16 get completionBlock { + final _ret = _lib._objc_msgSend_329(_id, _lib._sel_completionBlock1); + return ObjCBlock16._(_ret, _lib); + } - @Fixed() - external int bottom; -} + set completionBlock(ObjCBlock16 value) { + _lib._objc_msgSend_330(_id, _lib._sel_setCompletionBlock_1, value._id); + } -class TimeBaseRecord extends ffi.Opaque {} + void waitUntilFinished() { + return _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); + } -@ffi.Packed(2) -class TimeRecord extends ffi.Struct { - external CompTimeValue value; + double get threadPriority { + return _lib._objc_msgSend_85(_id, _lib._sel_threadPriority1); + } - @TimeScale() - external int scale; + set threadPriority(double value) { + _lib._objc_msgSend_337(_id, _lib._sel_setThreadPriority_1, value); + } - external TimeBase base; -} + int get qualityOfService { + return _lib._objc_msgSend_338(_id, _lib._sel_qualityOfService1); + } -typedef CompTimeValue = wide; -typedef TimeScale = SInt32; -typedef TimeBase = ffi.Pointer; + set qualityOfService(int value) { + _lib._objc_msgSend_339(_id, _lib._sel_setQualityOfService_1, value); + } -class NumVersion extends ffi.Struct { - @UInt8() - external int nonRelRev; + NSString? get name { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - @UInt8() - external int stage; + set name(NSString? value) { + _lib._objc_msgSend_327(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + } - @UInt8() - external int minorAndBugRev; + static NSOperation new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_new1); + return NSOperation._(_ret, _lib, retain: false, release: true); + } - @UInt8() - external int majorRev; + static NSOperation alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_alloc1); + return NSOperation._(_ret, _lib, retain: false, release: true); + } } -typedef UInt8 = ffi.UnsignedChar; - -class NumVersionVariant extends ffi.Union { - external NumVersion parts; - - @UInt32() - external int whole; +abstract class NSOperationQueuePriority { + static const int NSOperationQueuePriorityVeryLow = -8; + static const int NSOperationQueuePriorityLow = -4; + static const int NSOperationQueuePriorityNormal = 0; + static const int NSOperationQueuePriorityHigh = 4; + static const int NSOperationQueuePriorityVeryHigh = 8; } -class VersRec extends ffi.Struct { - external NumVersion numericVersion; - - @ffi.Short() - external int countryCode; - - @ffi.Array.multi([256]) - external ffi.Array shortVersion; - - @ffi.Array.multi([256]) - external ffi.Array reserved; +typedef dispatch_queue_t = ffi.Pointer; +void _ObjCBlock18_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); } -typedef ConstStr255Param = ffi.Pointer; - -class __CFString extends ffi.Opaque {} - -abstract class CFComparisonResult { - static const int kCFCompareLessThan = -1; - static const int kCFCompareEqualTo = 0; - static const int kCFCompareGreaterThan = 1; +final _ObjCBlock18_closureRegistry = {}; +int _ObjCBlock18_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock18_registerClosure(Function fn) { + final id = ++_ObjCBlock18_closureRegistryIndex; + _ObjCBlock18_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -typedef CFIndex = ffi.Long; - -class CFRange extends ffi.Struct { - @CFIndex() - external int location; - - @CFIndex() - external int length; +void _ObjCBlock18_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock18_closureRegistry[block.ref.target.address]!(arg0); } -class __CFNull extends ffi.Opaque {} - -typedef CFTypeID = ffi.UnsignedLong; -typedef CFNullRef = ffi.Pointer<__CFNull>; - -class __CFAllocator extends ffi.Opaque {} - -typedef CFAllocatorRef = ffi.Pointer<__CFAllocator>; - -class CFAllocatorContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - external CFAllocatorAllocateCallBack allocate; +class ObjCBlock18 extends _ObjCBlockBase { + ObjCBlock18._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - external CFAllocatorReallocateCallBack reallocate; + /// Creates a block from a C function pointer. + ObjCBlock18.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock18_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - external CFAllocatorDeallocateCallBack deallocate; + /// Creates a block from a Dart function. + ObjCBlock18.fromFunction( + NativeCupertinoHttp lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock18_closureTrampoline) + .cast(), + _ObjCBlock18_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } - external CFAllocatorPreferredSizeCallBack preferredSize; + ffi.Pointer<_ObjCBlock> get pointer => _id; } -typedef CFAllocatorRetainCallBack = ffi.Pointer< - ffi.NativeFunction Function(ffi.Pointer)>>; -typedef CFAllocatorReleaseCallBack - = ffi.Pointer)>>; -typedef CFAllocatorCopyDescriptionCallBack = ffi - .Pointer)>>; -typedef CFStringRef = ffi.Pointer<__CFString>; -typedef CFAllocatorAllocateCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFIndex, CFOptionFlags, ffi.Pointer)>>; -typedef CFOptionFlags = ffi.UnsignedLong; -typedef CFAllocatorReallocateCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, CFIndex, - CFOptionFlags, ffi.Pointer)>>; -typedef CFAllocatorDeallocateCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; -typedef CFAllocatorPreferredSizeCallBack = ffi.Pointer< - ffi.NativeFunction< - CFIndex Function(CFIndex, CFOptionFlags, ffi.Pointer)>>; -typedef CFTypeRef = ffi.Pointer; -typedef Boolean = ffi.UnsignedChar; -typedef CFHashCode = ffi.UnsignedLong; -typedef NSZone = _NSZone; - -class NSMutableIndexSet extends NSIndexSet { - NSMutableIndexSet._(ffi.Pointer id, NativeCupertinoHttp lib, +class NSDate extends NSObject { + NSDate._(ffi.Pointer id, NativeCupertinoHttp lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableIndexSet] that points to the same underlying object as [other]. - static NSMutableIndexSet castFrom(T other) { - return NSMutableIndexSet._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSDate] that points to the same underlying object as [other]. + static NSDate castFrom(T other) { + return NSDate._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableIndexSet] that wraps the given raw object pointer. - static NSMutableIndexSet castFromPointer( + /// Returns a [NSDate] that wraps the given raw object pointer. + static NSDate castFromPointer( NativeCupertinoHttp lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableIndexSet._(other, lib, retain: retain, release: release); + return NSDate._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableIndexSet]. + /// Returns whether [obj] is an instance of [NSDate]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableIndexSet1); - } - - void addIndexes_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_285( - _id, _lib._sel_addIndexes_1, indexSet?._id ?? ffi.nullptr); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDate1); } - void removeIndexes_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_285( - _id, _lib._sel_removeIndexes_1, indexSet?._id ?? ffi.nullptr); + double get timeIntervalSinceReferenceDate { + return _lib._objc_msgSend_85( + _id, _lib._sel_timeIntervalSinceReferenceDate1); } - void removeAllIndexes() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllIndexes1); + @override + NSDate init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDate._(_ret, _lib, retain: true, release: true); } - void addIndex_(int value) { - return _lib._objc_msgSend_286(_id, _lib._sel_addIndex_1, value); + NSDate initWithTimeIntervalSinceReferenceDate_(double ti) { + final _ret = _lib._objc_msgSend_347( + _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); + return NSDate._(_ret, _lib, retain: true, release: true); } - void removeIndex_(int value) { - return _lib._objc_msgSend_286(_id, _lib._sel_removeIndex_1, value); + NSDate initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_14( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); } - void addIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_287(_id, _lib._sel_addIndexesInRange_1, range); + double timeIntervalSinceDate_(NSDate? anotherDate) { + return _lib._objc_msgSend_348(_id, _lib._sel_timeIntervalSinceDate_1, + anotherDate?._id ?? ffi.nullptr); } - void removeIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_287(_id, _lib._sel_removeIndexesInRange_1, range); + double get timeIntervalSinceNow { + return _lib._objc_msgSend_85(_id, _lib._sel_timeIntervalSinceNow1); } - void shiftIndexesStartingAtIndex_by_(int index, int delta) { - return _lib._objc_msgSend_288( - _id, _lib._sel_shiftIndexesStartingAtIndex_by_1, index, delta); + double get timeIntervalSince1970 { + return _lib._objc_msgSend_85(_id, _lib._sel_timeIntervalSince19701); } - static NSMutableIndexSet indexSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableIndexSet1, _lib._sel_indexSet1); - return NSMutableIndexSet._(_ret, _lib, retain: true, release: true); + NSObject addTimeInterval_(double seconds) { + final _ret = + _lib._objc_msgSend_347(_id, _lib._sel_addTimeInterval_1, seconds); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSMutableIndexSet indexSetWithIndex_( - NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_94( - _lib._class_NSMutableIndexSet1, _lib._sel_indexSetWithIndex_1, value); - return NSMutableIndexSet._(_ret, _lib, retain: true, release: true); + NSDate dateByAddingTimeInterval_(double ti) { + final _ret = + _lib._objc_msgSend_347(_id, _lib._sel_dateByAddingTimeInterval_1, ti); + return NSDate._(_ret, _lib, retain: true, release: true); } - static NSMutableIndexSet indexSetWithIndexesInRange_( - NativeCupertinoHttp _lib, NSRange range) { - final _ret = _lib._objc_msgSend_111(_lib._class_NSMutableIndexSet1, - _lib._sel_indexSetWithIndexesInRange_1, range); - return NSMutableIndexSet._(_ret, _lib, retain: true, release: true); + NSDate earlierDate_(NSDate? anotherDate) { + final _ret = _lib._objc_msgSend_349( + _id, _lib._sel_earlierDate_1, anotherDate?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); } - static NSMutableIndexSet new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableIndexSet1, _lib._sel_new1); - return NSMutableIndexSet._(_ret, _lib, retain: false, release: true); + NSDate laterDate_(NSDate? anotherDate) { + final _ret = _lib._objc_msgSend_349( + _id, _lib._sel_laterDate_1, anotherDate?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); } - static NSMutableIndexSet alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableIndexSet1, _lib._sel_alloc1); - return NSMutableIndexSet._(_ret, _lib, retain: false, release: true); + int compare_(NSDate? other) { + return _lib._objc_msgSend_350( + _id, _lib._sel_compare_1, other?._id ?? ffi.nullptr); } -} - -/// Mutable Array -class NSMutableArray extends NSArray { - NSMutableArray._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableArray] that points to the same underlying object as [other]. - static NSMutableArray castFrom(T other) { - return NSMutableArray._(other._id, other._lib, retain: true, release: true); + bool isEqualToDate_(NSDate? otherDate) { + return _lib._objc_msgSend_351( + _id, _lib._sel_isEqualToDate_1, otherDate?._id ?? ffi.nullptr); } - /// Returns a [NSMutableArray] that wraps the given raw object pointer. - static NSMutableArray castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableArray._(other, lib, retain: retain, release: release); + NSString? get description { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSMutableArray]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableArray1); + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_88( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); } - void addObject_(NSObject anObject) { - return _lib._objc_msgSend_200(_id, _lib._sel_addObject_1, anObject._id); + static NSDate date(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_date1); + return NSDate._(_ret, _lib, retain: true, release: true); } - void insertObject_atIndex_(NSObject anObject, int index) { - return _lib._objc_msgSend_289( - _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); + static NSDate dateWithTimeIntervalSinceNow_( + NativeCupertinoHttp _lib, double secs) { + final _ret = _lib._objc_msgSend_347( + _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); } - void removeLastObject() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); + static NSDate dateWithTimeIntervalSinceReferenceDate_( + NativeCupertinoHttp _lib, double ti) { + final _ret = _lib._objc_msgSend_347(_lib._class_NSDate1, + _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); + return NSDate._(_ret, _lib, retain: true, release: true); } - void removeObjectAtIndex_(int index) { - return _lib._objc_msgSend_286(_id, _lib._sel_removeObjectAtIndex_1, index); + static NSDate dateWithTimeIntervalSince1970_( + NativeCupertinoHttp _lib, double secs) { + final _ret = _lib._objc_msgSend_347( + _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSince1970_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); } - void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { - return _lib._objc_msgSend_290( - _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); + static NSDate dateWithTimeInterval_sinceDate_( + NativeCupertinoHttp _lib, double secsToBeAdded, NSDate? date) { + final _ret = _lib._objc_msgSend_352( + _lib._class_NSDate1, + _lib._sel_dateWithTimeInterval_sinceDate_1, + secsToBeAdded, + date?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); } - @override - NSMutableArray init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSDate? getDistantFuture(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_353(_lib._class_NSDate1, _lib._sel_distantFuture1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSMutableArray initWithCapacity_(int numItems) { + static NSDate? getDistantPast(NativeCupertinoHttp _lib) { final _ret = - _lib._objc_msgSend_94(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_353(_lib._class_NSDate1, _lib._sel_distantPast1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - @override - NSMutableArray initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSDate? getNow(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_353(_lib._class_NSDate1, _lib._sel_now1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - void addObjectsFromArray_(NSArray? otherArray) { - return _lib._objc_msgSend_291( - _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); + NSDate initWithTimeIntervalSinceNow_(double secs) { + final _ret = _lib._objc_msgSend_347( + _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); } - void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - return _lib._objc_msgSend_292( - _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); + NSDate initWithTimeIntervalSince1970_(double secs) { + final _ret = _lib._objc_msgSend_347( + _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); } - void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate? date) { + final _ret = _lib._objc_msgSend_352( + _id, + _lib._sel_initWithTimeInterval_sinceDate_1, + secsToBeAdded, + date?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); } - void removeObject_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_293( - _id, _lib._sel_removeObject_inRange_1, anObject._id, range); + static NSDate new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_new1); + return NSDate._(_ret, _lib, retain: false, release: true); } - void removeObject_(NSObject anObject) { - return _lib._objc_msgSend_200(_id, _lib._sel_removeObject_1, anObject._id); + static NSDate alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_alloc1); + return NSDate._(_ret, _lib, retain: false, release: true); } +} - void removeObjectIdenticalTo_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_293( - _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); - } +typedef NSTimeInterval = ffi.Double; - void removeObjectIdenticalTo_(NSObject anObject) { - return _lib._objc_msgSend_200( - _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); - } +/// ! +/// @enum NSURLRequestCachePolicy +/// +/// @discussion The NSURLRequestCachePolicy enum defines constants that +/// can be used to specify the type of interactions that take place with +/// the caching system when the URL loading system processes a request. +/// Specifically, these constants cover interactions that have to do +/// with whether already-existing cache data is returned to satisfy a +/// URL load request. +/// +/// @constant NSURLRequestUseProtocolCachePolicy Specifies that the +/// caching logic defined in the protocol implementation, if any, is +/// used for a particular URL load request. This is the default policy +/// for URL load requests. +/// +/// @constant NSURLRequestReloadIgnoringLocalCacheData Specifies that the +/// data for the URL load should be loaded from the origin source. No +/// existing local cache data, regardless of its freshness or validity, +/// should be used to satisfy a URL load request. +/// +/// @constant NSURLRequestReloadIgnoringLocalAndRemoteCacheData Specifies that +/// not only should the local cache data be ignored, but that proxies and +/// other intermediates should be instructed to disregard their caches +/// so far as the protocol allows. +/// +/// @constant NSURLRequestReloadIgnoringCacheData Older name for +/// NSURLRequestReloadIgnoringLocalCacheData. +/// +/// @constant NSURLRequestReturnCacheDataElseLoad Specifies that the +/// existing cache data should be used to satisfy a URL load request, +/// regardless of its age or expiration date. However, if there is no +/// existing data in the cache corresponding to a URL load request, +/// the URL is loaded from the origin source. +/// +/// @constant NSURLRequestReturnCacheDataDontLoad Specifies that the +/// existing cache data should be used to satisfy a URL load request, +/// regardless of its age or expiration date. However, if there is no +/// existing data in the cache corresponding to a URL load request, no +/// attempt is made to load the URL from the origin source, and the +/// load is considered to have failed. This constant specifies a +/// behavior that is similar to an "offline" mode. +/// +/// @constant NSURLRequestReloadRevalidatingCacheData Specifies that +/// the existing cache data may be used provided the origin source +/// confirms its validity, otherwise the URL is loaded from the +/// origin source. +abstract class NSURLRequestCachePolicy { + static const int NSURLRequestUseProtocolCachePolicy = 0; + static const int NSURLRequestReloadIgnoringLocalCacheData = 1; + static const int NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4; + static const int NSURLRequestReloadIgnoringCacheData = 1; + static const int NSURLRequestReturnCacheDataElseLoad = 2; + static const int NSURLRequestReturnCacheDataDontLoad = 3; + static const int NSURLRequestReloadRevalidatingCacheData = 5; +} - void removeObjectsFromIndices_numIndices_( - ffi.Pointer indices, int cnt) { - return _lib._objc_msgSend_294( - _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); - } +/// ! +/// @enum NSURLRequestNetworkServiceType +/// +/// @discussion The NSURLRequestNetworkServiceType enum defines constants that +/// can be used to specify the service type to associate with this request. The +/// service type is used to provide the networking layers a hint of the purpose +/// of the request. +/// +/// @constant NSURLNetworkServiceTypeDefault Is the default value for an NSURLRequest +/// when created. This value should be left unchanged for the vast majority of requests. +/// +/// @constant NSURLNetworkServiceTypeVoIP Specifies that the request is for voice over IP +/// control traffic. +/// +/// @constant NSURLNetworkServiceTypeVideo Specifies that the request is for video +/// traffic. +/// +/// @constant NSURLNetworkServiceTypeBackground Specifies that the request is for background +/// traffic (such as a file download). +/// +/// @constant NSURLNetworkServiceTypeVoice Specifies that the request is for voice data. +/// +/// @constant NSURLNetworkServiceTypeResponsiveData Specifies that the request is for responsive (time sensitive) data. +/// +/// @constant NSURLNetworkServiceTypeAVStreaming Specifies that the request is streaming audio/video data. +/// +/// @constant NSURLNetworkServiceTypeResponsiveAV Specifies that the request is for responsive (time sensitive) audio/video data. +/// +/// @constant NSURLNetworkServiceTypeCallSignaling Specifies that the request is for call signaling. +abstract class NSURLRequestNetworkServiceType { + /// Standard internet traffic + static const int NSURLNetworkServiceTypeDefault = 0; - void removeObjectsInArray_(NSArray? otherArray) { - return _lib._objc_msgSend_291( - _id, _lib._sel_removeObjectsInArray_1, otherArray?._id ?? ffi.nullptr); - } + /// Voice over IP control traffic + static const int NSURLNetworkServiceTypeVoIP = 1; - void removeObjectsInRange_(NSRange range) { - return _lib._objc_msgSend_287(_id, _lib._sel_removeObjectsInRange_1, range); - } + /// Video traffic + static const int NSURLNetworkServiceTypeVideo = 2; - void replaceObjectsInRange_withObjectsFromArray_range_( - NSRange range, NSArray? otherArray, NSRange otherRange) { - return _lib._objc_msgSend_295( - _id, - _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, - range, - otherArray?._id ?? ffi.nullptr, - otherRange); + /// Background traffic + static const int NSURLNetworkServiceTypeBackground = 3; + + /// Voice data + static const int NSURLNetworkServiceTypeVoice = 4; + + /// Responsive data + static const int NSURLNetworkServiceTypeResponsiveData = 6; + + /// Multimedia Audio/Video Streaming + static const int NSURLNetworkServiceTypeAVStreaming = 8; + + /// Responsive Multimedia Audio/Video + static const int NSURLNetworkServiceTypeResponsiveAV = 9; + + /// Call Signaling + static const int NSURLNetworkServiceTypeCallSignaling = 11; +} + +/// ! +/// @class NSURLRequest +/// +/// @abstract An NSURLRequest object represents a URL load request in a +/// manner independent of protocol and URL scheme. +/// +/// @discussion NSURLRequest encapsulates two basic data elements about +/// a URL load request: +///
    +///
  • The URL to load. +///
  • The policy to use when consulting the URL content cache made +/// available by the implementation. +///
+/// In addition, NSURLRequest is designed to be extended to support +/// protocol-specific data by adding categories to access a property +/// object provided in an interface targeted at protocol implementors. +///
    +///
  • Protocol implementors should direct their attention to the +/// NSURLRequestExtensibility category on NSURLRequest for more +/// information on how to provide extensions on NSURLRequest to +/// support protocol-specific request information. +///
  • Clients of this API who wish to create NSURLRequest objects to +/// load URL content should consult the protocol-specific NSURLRequest +/// categories that are available. The NSHTTPURLRequest category on +/// NSURLRequest is an example. +///
+///

+/// Objects of this class are used to create NSURLConnection instances, +/// which can are used to perform the load of a URL, or as input to the +/// NSURLConnection class method which performs synchronous loads. +class NSURLRequest extends NSObject { + NSURLRequest._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLRequest] that points to the same underlying object as [other]. + static NSURLRequest castFrom(T other) { + return NSURLRequest._(other._id, other._lib, retain: true, release: true); } - void replaceObjectsInRange_withObjectsFromArray_( - NSRange range, NSArray? otherArray) { - return _lib._objc_msgSend_296( - _id, - _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, - range, - otherArray?._id ?? ffi.nullptr); + /// Returns a [NSURLRequest] that wraps the given raw object pointer. + static NSURLRequest castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLRequest._(other, lib, retain: retain, release: release); } - void setArray_(NSArray? otherArray) { - return _lib._objc_msgSend_291( - _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); + /// Returns whether [obj] is an instance of [NSURLRequest]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLRequest1); } - void sortUsingFunction_context_( - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - compare, - ffi.Pointer context) { - return _lib._objc_msgSend_297( - _id, _lib._sel_sortUsingFunction_context_1, compare, context); + /// ! + /// @method requestWithURL: + /// @abstract Allocates and initializes an NSURLRequest with the given + /// URL. + /// @discussion Default values are used for cache policy + /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 + /// seconds). + /// @param URL The URL for the request. + /// @result A newly-created and autoreleased NSURLRequest instance. + static NSURLRequest requestWithURL_(NativeCupertinoHttp _lib, NSURL? URL) { + final _ret = _lib._objc_msgSend_201(_lib._class_NSURLRequest1, + _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - void sortUsingSelector_(ffi.Pointer comparator) { - return _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); + /// ! + /// @property supportsSecureCoding + /// @abstract Indicates that NSURLRequest implements the NSSecureCoding protocol. + /// @result A BOOL value set to YES. + static bool getSupportsSecureCoding(NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_11( + _lib._class_NSURLRequest1, _lib._sel_supportsSecureCoding1); } - void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - return _lib._objc_msgSend_298(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + /// ! + /// @method requestWithURL:cachePolicy:timeoutInterval: + /// @abstract Allocates and initializes a NSURLRequest with the given + /// URL and cache policy. + /// @param URL The URL for the request. + /// @param cachePolicy The cache policy for the request. + /// @param timeoutInterval The timeout interval for the request. See the + /// commentary for the timeoutInterval for more information on + /// timeout intervals. + /// @result A newly-created and autoreleased NSURLRequest instance. + static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( + NativeCupertinoHttp _lib, + NSURL? URL, + int cachePolicy, + double timeoutInterval) { + final _ret = _lib._objc_msgSend_354( + _lib._class_NSURLRequest1, + _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - return _lib._objc_msgSend_285( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + /// ! + /// @method initWithURL: + /// @abstract Initializes an NSURLRequest with the given URL. + /// @discussion Default values are used for cache policy + /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 + /// seconds). + /// @param URL The URL for the request. + /// @result An initialized NSURLRequest. + NSURLRequest initWithURL_(NSURL? URL) { + final _ret = _lib._objc_msgSend_201( + _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - return _lib._objc_msgSend_299( + /// ! + /// @method initWithURL: + /// @abstract Initializes an NSURLRequest with the given URL and + /// cache policy. + /// @discussion This is the designated initializer for the + /// NSURLRequest class. + /// @param URL The URL for the request. + /// @param cachePolicy The cache policy for the request. + /// @param timeoutInterval The timeout interval for the request. See the + /// commentary for the timeoutInterval for more information on + /// timeout intervals. + /// @result An initialized NSURLRequest. + NSURLRequest initWithURL_cachePolicy_timeoutInterval_( + NSURL? URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_354( _id, - _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, - objects?._id ?? ffi.nullptr); + _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - void setObject_atIndexedSubscript_(NSObject obj, int idx) { - return _lib._objc_msgSend_289( - _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); + /// ! + /// @abstract Returns the URL of the receiver. + /// @result The URL of the receiver. + NSURL? get URL { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - void sortUsingComparator_(NSComparator cmptr) { - return _lib._objc_msgSend_300(_id, _lib._sel_sortUsingComparator_1, cmptr); + /// ! + /// @abstract Returns the cache policy of the receiver. + /// @result The cache policy of the receiver. + int get cachePolicy { + return _lib._objc_msgSend_355(_id, _lib._sel_cachePolicy1); } - void sortWithOptions_usingComparator_(int opts, NSComparator cmptr) { - return _lib._objc_msgSend_301( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr); + /// ! + /// @abstract Returns the timeout interval of the receiver. + /// @discussion The timeout interval specifies the limit on the idle + /// interval alloted to a request in the process of loading. The "idle + /// interval" is defined as the period of time that has passed since the + /// last instance of load activity occurred for a request that is in the + /// process of loading. Hence, when an instance of load activity occurs + /// (e.g. bytes are received from the network for a request), the idle + /// interval for a request is reset to 0. If the idle interval ever + /// becomes greater than or equal to the timeout interval, the request + /// is considered to have timed out. This timeout interval is measured + /// in seconds. + /// @result The timeout interval of the receiver. + double get timeoutInterval { + return _lib._objc_msgSend_85(_id, _lib._sel_timeoutInterval1); } - static NSMutableArray arrayWithCapacity_( - NativeCupertinoHttp _lib, int numItems) { - final _ret = _lib._objc_msgSend_94( - _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract The main document URL associated with this load. + /// @discussion This URL is used for the cookie "same domain as main + /// document" policy. There may also be other future uses. + /// See setMainDocumentURL: + /// NOTE: In the current implementation, this value is unused by the + /// framework. A fully functional version of this method will be available + /// in the future. + /// @result The main document URL. + NSURL? get mainDocumentURL { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_mainDocumentURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_302(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Returns the NSURLRequestNetworkServiceType associated with this request. + /// @discussion This will return NSURLNetworkServiceTypeDefault for requests that have + /// not explicitly set a networkServiceType (using the setNetworkServiceType method). + /// @result The NSURLRequestNetworkServiceType associated with this request. + int get networkServiceType { + return _lib._objc_msgSend_356(_id, _lib._sel_networkServiceType1); } - static NSMutableArray arrayWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_303(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract returns whether a connection created with this request is allowed to use + /// the built in cellular radios (if present). + /// @result YES if the receiver is allowed to use the built in cellular radios to + /// satify the request, NO otherwise. + bool get allowsCellularAccess { + return _lib._objc_msgSend_11(_id, _lib._sel_allowsCellularAccess1); } - NSMutableArray initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_302( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract returns whether a connection created with this request is allowed to use + /// network interfaces which have been marked as expensive. + /// @result YES if the receiver is allowed to use an interface marked as expensive to + /// satify the request, NO otherwise. + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_11(_id, _lib._sel_allowsExpensiveNetworkAccess1); } - NSMutableArray initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_303( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract returns whether a connection created with this request is allowed to use + /// network interfaces which have been marked as constrained. + /// @result YES if the receiver is allowed to use an interface marked as constrained to + /// satify the request, NO otherwise. + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_11( + _id, _lib._sel_allowsConstrainedNetworkAccess1); } - void applyDifference_(NSOrderedCollectionDifference? difference) { - return _lib._objc_msgSend_304( - _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); + /// ! + /// @abstract returns whether we assume that server supports HTTP/3. Enables QUIC + /// racing without HTTP/3 service discovery. + /// @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 { + return _lib._objc_msgSend_11(_id, _lib._sel_assumesHTTP3Capable1); } - static NSMutableArray array(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_array1); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Returns the HTTP request method of the receiver. + /// @result the HTTP request method of the receiver. + NSString? get HTTPMethod { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_HTTPMethod1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithObject_( - NativeCupertinoHttp _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_91( - _lib._class_NSMutableArray1, _lib._sel_arrayWithObject_1, anObject._id); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Returns a dictionary containing all the HTTP header fields + /// of the receiver. + /// @result a dictionary containing all the HTTP header fields of the + /// receiver. + NSDictionary? get allHTTPHeaderFields { + final _ret = _lib._objc_msgSend_180(_id, _lib._sel_allHTTPHeaderFields1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithObjects_count_(NativeCupertinoHttp _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_95(_lib._class_NSMutableArray1, - _lib._sel_arrayWithObjects_count_1, objects, cnt); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @method valueForHTTPHeaderField: + /// @abstract Returns the value which corresponds to the given header + /// field. Note that, in keeping with the HTTP RFC, HTTP header field + /// names are case-insensitive. + /// @param field the header field name to use for the lookup + /// (case-insensitive). + /// @result the value associated with the given header field, or nil if + /// there is no value associated with the given header field. + NSString valueForHTTPHeaderField_(NSString? field) { + final _ret = _lib._objc_msgSend_98( + _id, _lib._sel_valueForHTTPHeaderField_1, field?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithObjects_( - NativeCupertinoHttp _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_91(_lib._class_NSMutableArray1, - _lib._sel_arrayWithObjects_1, firstObj._id); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Returns the request body data of the receiver. + /// @discussion This data is sent as the message body of the request, as + /// in done in an HTTP POST request. + /// @result The request body data of the receiver. + NSData? get HTTPBody { + final _ret = _lib._objc_msgSend_51(_id, _lib._sel_HTTPBody1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithArray_( - NativeCupertinoHttp _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_100(_lib._class_NSMutableArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Returns the request body stream of the receiver + /// if any has been set + /// @discussion The stream is returned for examination only; it is + /// not safe for the caller to manipulate the stream in any way. Also + /// note that the HTTPBodyStream and HTTPBody are mutually exclusive - only + /// one can be set on a given request. Also note that the body stream is + /// preserved across copies, but is LOST when the request is coded via the + /// NSCoding protocol + /// @result The request body stream of the receiver. + NSInputStream? get HTTPBodyStream { + final _ret = _lib._objc_msgSend_357(_id, _lib._sel_HTTPBodyStream1); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - /// Reads array stored in NSPropertyList format from the specified url. - static NSArray arrayWithContentsOfURL_error_(NativeCupertinoHttp _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_145( - _lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Determine whether default cookie handling will happen for + /// this request. + /// @discussion NOTE: This value is not used prior to 10.3 + /// @result YES if cookies will be sent with and set for this request; + /// otherwise NO. + bool get HTTPShouldHandleCookies { + return _lib._objc_msgSend_11(_id, _lib._sel_HTTPShouldHandleCookies1); } - static NSMutableArray new1(NativeCupertinoHttp _lib) { + /// ! + /// @abstract Reports whether the receiver is not expected to wait for the + /// previous response before transmitting. + /// @result YES if the receiver should transmit before the previous response + /// is received. NO if the receiver should wait for the previous response + /// before transmitting. + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_11(_id, _lib._sel_HTTPShouldUsePipelining1); + } + + static NSURLRequest new1(NativeCupertinoHttp _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_new1); - return NSMutableArray._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_new1); + return NSURLRequest._(_ret, _lib, retain: false, release: true); } - static NSMutableArray alloc(NativeCupertinoHttp _lib) { + static NSURLRequest alloc(NativeCupertinoHttp _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); - return NSMutableArray._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_alloc1); + return NSURLRequest._(_ret, _lib, retain: false, release: true); } } -/// Mutable Data -class NSMutableData extends NSData { - NSMutableData._(ffi.Pointer id, NativeCupertinoHttp lib, +class NSInputStream extends _ObjCWrapper { + NSInputStream._(ffi.Pointer id, NativeCupertinoHttp lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableData] that points to the same underlying object as [other]. - static NSMutableData castFrom(T other) { - return NSMutableData._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSInputStream] that points to the same underlying object as [other]. + static NSInputStream castFrom(T other) { + return NSInputStream._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableData] that wraps the given raw object pointer. - static NSMutableData castFromPointer( + /// Returns a [NSInputStream] that wraps the given raw object pointer. + static NSInputStream castFromPointer( NativeCupertinoHttp lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableData._(other, lib, retain: retain, release: release); + return NSInputStream._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableData]. + /// Returns whether [obj] is an instance of [NSInputStream]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableData1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInputStream1); } +} - ffi.Pointer get mutableBytes { - return _lib._objc_msgSend_31(_id, _lib._sel_mutableBytes1); - } +/// ! +/// @class NSMutableURLRequest +/// +/// @abstract An NSMutableURLRequest object represents a mutable URL load +/// request in a manner independent of protocol and URL scheme. +/// +/// @discussion This specialization of NSURLRequest is provided to aid +/// developers who may find it more convenient to mutate a single request +/// object for a series of URL loads instead of creating an immutable +/// NSURLRequest for each load. This programming model is supported by +/// the following contract stipulation between NSMutableURLRequest and +/// NSURLConnection: NSURLConnection makes a deep copy of each +/// NSMutableURLRequest object passed to one of its initializers. +///

NSMutableURLRequest is designed to be extended to support +/// protocol-specific data by adding categories to access a property +/// object provided in an interface targeted at protocol implementors. +///

    +///
  • Protocol implementors should direct their attention to the +/// NSMutableURLRequestExtensibility category on +/// NSMutableURLRequest for more information on how to provide +/// extensions on NSMutableURLRequest to support protocol-specific +/// request information. +///
  • Clients of this API who wish to create NSMutableURLRequest +/// objects to load URL content should consult the protocol-specific +/// NSMutableURLRequest categories that are available. The +/// NSMutableHTTPURLRequest category on NSMutableURLRequest is an +/// example. +///
+class NSMutableURLRequest extends NSURLRequest { + NSMutableURLRequest._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - @override - int get length { - return _lib._objc_msgSend_12(_id, _lib._sel_length1); + /// Returns a [NSMutableURLRequest] that points to the same underlying object as [other]. + static NSMutableURLRequest castFrom(T other) { + return NSMutableURLRequest._(other._id, other._lib, + retain: true, release: true); } - set length(int value) { - _lib._objc_msgSend_305(_id, _lib._sel_setLength_1, value); + /// Returns a [NSMutableURLRequest] that wraps the given raw object pointer. + static NSMutableURLRequest castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableURLRequest._(other, lib, retain: retain, release: release); } - void appendBytes_length_(ffi.Pointer bytes, int length) { - return _lib._objc_msgSend_33( - _id, _lib._sel_appendBytes_length_1, bytes, length); + /// Returns whether [obj] is an instance of [NSMutableURLRequest]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableURLRequest1); } - void appendData_(NSData? other) { - return _lib._objc_msgSend_306( - _id, _lib._sel_appendData_1, other?._id ?? ffi.nullptr); + /// ! + /// @abstract The URL of the receiver. + @override + NSURL? get URL { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - void increaseLengthBy_(int extraLength) { - return _lib._objc_msgSend_286( - _id, _lib._sel_increaseLengthBy_1, extraLength); + /// ! + /// @abstract The URL of the receiver. + set URL(NSURL? value) { + _lib._objc_msgSend_332(_id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); } - void replaceBytesInRange_withBytes_( - NSRange range, ffi.Pointer bytes) { - return _lib._objc_msgSend_307( - _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); + /// ! + /// @abstract The cache policy of the receiver. + @override + int get cachePolicy { + return _lib._objc_msgSend_355(_id, _lib._sel_cachePolicy1); } - void resetBytesInRange_(NSRange range) { - return _lib._objc_msgSend_287(_id, _lib._sel_resetBytesInRange_1, range); + /// ! + /// @abstract The cache policy of the receiver. + set cachePolicy(int value) { + _lib._objc_msgSend_358(_id, _lib._sel_setCachePolicy_1, value); } - void setData_(NSData? data) { - return _lib._objc_msgSend_306( - _id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); + /// ! + /// @abstract Sets the timeout interval of the receiver. + /// @discussion The timeout interval specifies the limit on the idle + /// interval allotted to a request in the process of loading. The "idle + /// interval" is defined as the period of time that has passed since the + /// last instance of load activity occurred for a request that is in the + /// process of loading. Hence, when an instance of load activity occurs + /// (e.g. bytes are received from the network for a request), the idle + /// interval for a request is reset to 0. If the idle interval ever + /// becomes greater than or equal to the timeout interval, the request + /// is considered to have timed out. This timeout interval is measured + /// in seconds. + @override + double get timeoutInterval { + return _lib._objc_msgSend_85(_id, _lib._sel_timeoutInterval1); } - void replaceBytesInRange_withBytes_length_(NSRange range, - ffi.Pointer replacementBytes, int replacementLength) { - return _lib._objc_msgSend_308( - _id, - _lib._sel_replaceBytesInRange_withBytes_length_1, - range, - replacementBytes, - replacementLength); + /// ! + /// @abstract Sets the timeout interval of the receiver. + /// @discussion The timeout interval specifies the limit on the idle + /// interval allotted to a request in the process of loading. The "idle + /// interval" is defined as the period of time that has passed since the + /// last instance of load activity occurred for a request that is in the + /// process of loading. Hence, when an instance of load activity occurs + /// (e.g. bytes are received from the network for a request), the idle + /// interval for a request is reset to 0. If the idle interval ever + /// becomes greater than or equal to the timeout interval, the request + /// is considered to have timed out. This timeout interval is measured + /// in seconds. + set timeoutInterval(double value) { + _lib._objc_msgSend_337(_id, _lib._sel_setTimeoutInterval_1, value); } - static NSMutableData dataWithCapacity_( - NativeCupertinoHttp _lib, int aNumItems) { - final _ret = _lib._objc_msgSend_94( - _lib._class_NSMutableData1, _lib._sel_dataWithCapacity_1, aNumItems); - return NSMutableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the main document URL + /// @discussion The caller should pass the URL for an appropriate main + /// document, if known. For example, when loading a web page, the URL + /// of the main html document for the top-level frame should be + /// passed. This main document will be used to implement the cookie + /// "only from same domain as main document" policy, and possibly + /// other things in the future. + /// NOTE: In the current implementation, the passed-in value is unused by the + /// framework. A fully functional version of this method will be available + /// in the future. + @override + NSURL? get mainDocumentURL { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_mainDocumentURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithLength_(NativeCupertinoHttp _lib, int length) { - final _ret = _lib._objc_msgSend_94( - _lib._class_NSMutableData1, _lib._sel_dataWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the main document URL + /// @discussion The caller should pass the URL for an appropriate main + /// document, if known. For example, when loading a web page, the URL + /// of the main html document for the top-level frame should be + /// passed. This main document will be used to implement the cookie + /// "only from same domain as main document" policy, and possibly + /// other things in the future. + /// NOTE: In the current implementation, the passed-in value is unused by the + /// framework. A fully functional version of this method will be available + /// in the future. + set mainDocumentURL(NSURL? value) { + _lib._objc_msgSend_332( + _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); } - NSMutableData initWithCapacity_(int capacity) { - final _ret = - _lib._objc_msgSend_94(_id, _lib._sel_initWithCapacity_1, capacity); - return NSMutableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the NSURLRequestNetworkServiceType to associate with this request + /// @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. + @override + int get networkServiceType { + return _lib._objc_msgSend_356(_id, _lib._sel_networkServiceType1); } - NSMutableData initWithLength_(int length) { - final _ret = _lib._objc_msgSend_94(_id, _lib._sel_initWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the NSURLRequestNetworkServiceType to associate with this request + /// @discussion This method is used to provide the network layers with a hint as to the purpose + /// of the request. Most clients should not need to use this method. + set networkServiceType(int value) { + _lib._objc_msgSend_359(_id, _lib._sel_setNetworkServiceType_1, value); } - /// These methods compress or decompress the receiver's contents in-place using the specified algorithm. If the operation is not successful, these methods leave the receiver unchanged.. - bool decompressUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_309( - _id, _lib._sel_decompressUsingAlgorithm_error_1, algorithm, error); + /// ! + /// @abstract sets whether a connection created with this request is allowed to use + /// the built in cellular radios (if present). + /// @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. + @override + bool get allowsCellularAccess { + return _lib._objc_msgSend_11(_id, _lib._sel_allowsCellularAccess1); } - bool compressUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_309( - _id, _lib._sel_compressUsingAlgorithm_error_1, algorithm, error); + /// ! + /// @abstract sets whether a connection created with this request is allowed to use + /// the built in cellular radios (if present). + /// @discussion NO if the receiver should not be allowed to use the built in + /// cellular radios to satisfy the request, YES otherwise. The default is YES. + set allowsCellularAccess(bool value) { + _lib._objc_msgSend_328(_id, _lib._sel_setAllowsCellularAccess_1, value); } - static NSMutableData data(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_data1); - return NSMutableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract sets whether a connection created with this request is allowed to use + /// network interfaces which have been marked as expensive. + /// @discussion NO if the receiver should not be allowed to use an interface marked as expensive to + /// satify the request, YES otherwise. + @override + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_11(_id, _lib._sel_allowsExpensiveNetworkAccess1); } - static NSMutableData dataWithBytes_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212(_lib._class_NSMutableData1, - _lib._sel_dataWithBytes_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract sets whether a connection created with this request is allowed to use + /// network interfaces which have been marked as expensive. + /// @discussion NO if the receiver should not be allowed to use an interface marked as expensive to + /// satify the request, YES otherwise. + set allowsExpensiveNetworkAccess(bool value) { + _lib._objc_msgSend_328( + _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); } - static NSMutableData dataWithBytesNoCopy_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212(_lib._class_NSMutableData1, - _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: false, release: true); + /// ! + /// @abstract sets whether a connection created with this request is allowed to use + /// network interfaces which have been marked as constrained. + /// @discussion NO if the receiver should not be allowed to use an interface marked as constrained to + /// satify the request, YES otherwise. + @override + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_11( + _id, _lib._sel_allowsConstrainedNetworkAccess1); } - static NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( - NativeCupertinoHttp _lib, - ffi.Pointer bytes, - int length, - bool b) { - final _ret = _lib._objc_msgSend_213(_lib._class_NSMutableData1, - _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); - return NSMutableData._(_ret, _lib, retain: false, release: true); + /// ! + /// @abstract sets whether a connection created with this request is allowed to use + /// network interfaces which have been marked as constrained. + /// @discussion NO if the receiver should not be allowed to use an interface marked as constrained to + /// satify the request, YES otherwise. + set allowsConstrainedNetworkAccess(bool value) { + _lib._objc_msgSend_328( + _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); } - static NSMutableData dataWithContentsOfFile_options_error_( - NativeCupertinoHttp _lib, - NSString? path, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_214( - _lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract returns whether we assume that server supports HTTP/3. Enables QUIC + /// racing without HTTP/3 service discovery. + /// @result YES if server endpoint is known to support HTTP/3. Defaults to NO. + /// The default may be YES in a future OS update. + @override + bool get assumesHTTP3Capable { + return _lib._objc_msgSend_11(_id, _lib._sel_assumesHTTP3Capable1); } - static NSMutableData dataWithContentsOfURL_options_error_( - NativeCupertinoHttp _lib, - NSURL? url, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_215( - _lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract returns whether we assume that server supports HTTP/3. Enables QUIC + /// racing without HTTP/3 service discovery. + /// @result YES if server endpoint is known to support HTTP/3. Defaults to NO. + /// The default may be YES in a future OS update. + set assumesHTTP3Capable(bool value) { + _lib._objc_msgSend_328(_id, _lib._sel_setAssumesHTTP3Capable_1, value); } - static NSMutableData dataWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the HTTP request method of the receiver. + @override + NSString? get HTTPMethod { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_HTTPMethod1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the HTTP request method of the receiver. + set HTTPMethod(NSString? value) { + _lib._objc_msgSend_327( + _id, _lib._sel_setHTTPMethod_1, value?._id ?? ffi.nullptr); } - static NSMutableData dataWithData_(NativeCupertinoHttp _lib, NSData? data) { - final _ret = _lib._objc_msgSend_217(_lib._class_NSMutableData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the HTTP header fields of the receiver to the given + /// dictionary. + /// @discussion This method replaces all header fields that may have + /// existed before this method call. + ///

Since HTTP header fields must be string values, each object and + /// key in the dictionary passed to this method must answer YES when + /// sent an -isKindOfClass:[NSString class] message. If either + /// the key or value for a key-value pair answers NO when sent this + /// message, the key-value pair is skipped. + @override + NSDictionary? get allHTTPHeaderFields { + final _ret = _lib._objc_msgSend_180(_id, _lib._sel_allHTTPHeaderFields1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSObject dataWithContentsOfMappedFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the HTTP header fields of the receiver to the given + /// dictionary. + /// @discussion This method replaces all header fields that may have + /// existed before this method call. + ///

Since HTTP header fields must be string values, each object and + /// key in the dictionary passed to this method must answer YES when + /// sent an -isKindOfClass:[NSString class] message. If either + /// the key or value for a key-value pair answers NO when sent this + /// message, the key-value pair is skipped. + set allHTTPHeaderFields(NSDictionary? value) { + _lib._objc_msgSend_360( + _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); } - static NSMutableData new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_new1); - return NSMutableData._(_ret, _lib, retain: false, release: true); + /// ! + /// @method setValue:forHTTPHeaderField: + /// @abstract Sets the value of the given HTTP header field. + /// @discussion If a value was previously set for the given header + /// field, that value is replaced with the given value. Note that, in + /// keeping with the HTTP RFC, HTTP header field names are + /// case-insensitive. + /// @param value the header field value. + /// @param field the header field name (case-insensitive). + void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { + return _lib._objc_msgSend_361(_id, _lib._sel_setValue_forHTTPHeaderField_1, + value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); } - static NSMutableData alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_alloc1); - return NSMutableData._(_ret, _lib, retain: false, release: true); + /// ! + /// @method addValue:forHTTPHeaderField: + /// @abstract Adds an HTTP header field in the current header + /// dictionary. + /// @discussion This method provides a way to add values to header + /// fields incrementally. If a value was previously set for the given + /// header field, the given value is appended to the previously-existing + /// value. The appropriate field delimiter, a comma in the case of HTTP, + /// is added by the implementation, and should not be added to the given + /// value by the caller. Note that, in keeping with the HTTP RFC, HTTP + /// header field names are case-insensitive. + /// @param value the header field value. + /// @param field the header field name (case-insensitive). + void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { + return _lib._objc_msgSend_361(_id, _lib._sel_addValue_forHTTPHeaderField_1, + value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); } -} - -/// Purgeable Data -class NSPurgeableData extends NSMutableData { - NSPurgeableData._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSPurgeableData] that points to the same underlying object as [other]. - static NSPurgeableData castFrom(T other) { - return NSPurgeableData._(other._id, other._lib, - retain: true, release: true); + /// ! + /// @abstract Sets the request body data of the receiver. + /// @discussion This data is sent as the message body of the request, as + /// in done in an HTTP POST request. + @override + NSData? get HTTPBody { + final _ret = _lib._objc_msgSend_51(_id, _lib._sel_HTTPBody1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSPurgeableData] that wraps the given raw object pointer. - static NSPurgeableData castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSPurgeableData._(other, lib, retain: retain, release: release); + /// ! + /// @abstract Sets the request body data of the receiver. + /// @discussion This data is sent as the message body of the request, as + /// in done in an HTTP POST request. + set HTTPBody(NSData? value) { + _lib._objc_msgSend_362( + _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); } - /// Returns whether [obj] is an instance of [NSPurgeableData]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSPurgeableData1); + /// ! + /// @abstract Sets the request body to be the contents of the given stream. + /// @discussion The provided stream should be unopened; the request will take + /// over the stream's delegate. The entire stream's contents will be + /// transmitted as the HTTP body of the request. Note that the body stream + /// and the body data (set by setHTTPBody:, above) are mutually exclusive + /// - setting one will clear the other. + @override + NSInputStream? get HTTPBodyStream { + final _ret = _lib._objc_msgSend_357(_id, _lib._sel_HTTPBodyStream1); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSPurgeableData dataWithCapacity_( - NativeCupertinoHttp _lib, int aNumItems) { - final _ret = _lib._objc_msgSend_94( - _lib._class_NSPurgeableData1, _lib._sel_dataWithCapacity_1, aNumItems); - return NSPurgeableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets the request body to be the contents of the given stream. + /// @discussion The provided stream should be unopened; the request will take + /// over the stream's delegate. The entire stream's contents will be + /// transmitted as the HTTP body of the request. Note that the body stream + /// and the body data (set by setHTTPBody:, above) are mutually exclusive + /// - setting one will clear the other. + set HTTPBodyStream(NSInputStream? value) { + _lib._objc_msgSend_363( + _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); } - static NSPurgeableData dataWithLength_(NativeCupertinoHttp _lib, int length) { - final _ret = _lib._objc_msgSend_94( - _lib._class_NSPurgeableData1, _lib._sel_dataWithLength_1, length); - return NSPurgeableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Decide whether default cookie handling will happen for + /// this request (YES if cookies should be sent with and set for this request; + /// otherwise NO). + /// @discussion The default is YES - in other words, cookies are sent from and + /// stored to the cookie manager by default. + /// NOTE: In releases prior to 10.3, this value is ignored + @override + bool get HTTPShouldHandleCookies { + return _lib._objc_msgSend_11(_id, _lib._sel_HTTPShouldHandleCookies1); } - static NSPurgeableData data(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPurgeableData1, _lib._sel_data1); - return NSPurgeableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Decide whether default cookie handling will happen for + /// this request (YES if cookies should be sent with and set for this request; + /// otherwise NO). + /// @discussion The default is YES - in other words, cookies are sent from and + /// stored to the cookie manager by default. + /// NOTE: In releases prior to 10.3, this value is ignored + set HTTPShouldHandleCookies(bool value) { + _lib._objc_msgSend_328(_id, _lib._sel_setHTTPShouldHandleCookies_1, value); } - static NSPurgeableData dataWithBytes_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212(_lib._class_NSPurgeableData1, - _lib._sel_dataWithBytes_length_1, bytes, length); - return NSPurgeableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @abstract Sets whether the request should not wait for the previous response + /// before transmitting (YES if the receiver should transmit before the previous response is + /// received. NO to wait for the previous response before transmitting) + /// @discussion Calling this method with a YES value does not guarantee HTTP + /// pipelining behavior. This method may have no effect if an HTTP proxy is + /// configured, or if the HTTP request uses an unsafe request method (e.g., POST + /// requests will not pipeline). Pipelining behavior also may not begin until + /// the second request on a given TCP connection. There may be other situations + /// where pipelining does not occur even though YES was set. + /// HTTP 1.1 allows the client to send multiple requests to the server without + /// waiting for a response. Though HTTP 1.1 requires support for pipelining, + /// some servers report themselves as being HTTP 1.1 but do not support + /// pipelining (disconnecting, sending resources misordered, omitting part of + /// a resource, etc.). + @override + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_11(_id, _lib._sel_HTTPShouldUsePipelining1); } - static NSPurgeableData dataWithBytesNoCopy_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212(_lib._class_NSPurgeableData1, - _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); - return NSPurgeableData._(_ret, _lib, retain: false, release: true); + /// ! + /// @abstract Sets whether the request should not wait for the previous response + /// before transmitting (YES if the receiver should transmit before the previous response is + /// received. NO to wait for the previous response before transmitting) + /// @discussion Calling this method with a YES value does not guarantee HTTP + /// pipelining behavior. This method may have no effect if an HTTP proxy is + /// configured, or if the HTTP request uses an unsafe request method (e.g., POST + /// requests will not pipeline). Pipelining behavior also may not begin until + /// the second request on a given TCP connection. There may be other situations + /// where pipelining does not occur even though YES was set. + /// HTTP 1.1 allows the client to send multiple requests to the server without + /// waiting for a response. Though HTTP 1.1 requires support for pipelining, + /// some servers report themselves as being HTTP 1.1 but do not support + /// pipelining (disconnecting, sending resources misordered, omitting part of + /// a resource, etc.). + set HTTPShouldUsePipelining(bool value) { + _lib._objc_msgSend_328(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); } - static NSPurgeableData dataWithBytesNoCopy_length_freeWhenDone_( - NativeCupertinoHttp _lib, - ffi.Pointer bytes, - int length, - bool b) { - final _ret = _lib._objc_msgSend_213(_lib._class_NSPurgeableData1, - _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); - return NSPurgeableData._(_ret, _lib, retain: false, release: true); + /// ! + /// @method requestWithURL: + /// @abstract Allocates and initializes an NSURLRequest with the given + /// URL. + /// @discussion Default values are used for cache policy + /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 + /// seconds). + /// @param URL The URL for the request. + /// @result A newly-created and autoreleased NSURLRequest instance. + static NSMutableURLRequest requestWithURL_( + NativeCupertinoHttp _lib, NSURL? URL) { + final _ret = _lib._objc_msgSend_201(_lib._class_NSMutableURLRequest1, + _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } - static NSPurgeableData dataWithContentsOfFile_options_error_( - NativeCupertinoHttp _lib, - NSString? path, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_214( - _lib._class_NSPurgeableData1, - _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSPurgeableData._(_ret, _lib, retain: true, release: true); + /// ! + /// @property supportsSecureCoding + /// @abstract Indicates that NSURLRequest implements the NSSecureCoding protocol. + /// @result A BOOL value set to YES. + static bool getSupportsSecureCoding(NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_11( + _lib._class_NSMutableURLRequest1, _lib._sel_supportsSecureCoding1); } - static NSPurgeableData dataWithContentsOfURL_options_error_( + /// ! + /// @method requestWithURL:cachePolicy:timeoutInterval: + /// @abstract Allocates and initializes a NSURLRequest with the given + /// URL and cache policy. + /// @param URL The URL for the request. + /// @param cachePolicy The cache policy for the request. + /// @param timeoutInterval The timeout interval for the request. See the + /// commentary for the timeoutInterval for more information on + /// timeout intervals. + /// @result A newly-created and autoreleased NSURLRequest instance. + static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( NativeCupertinoHttp _lib, - NSURL? url, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_215( - _lib._class_NSPurgeableData1, - _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSPurgeableData._(_ret, _lib, retain: true, release: true); - } - - static NSPurgeableData dataWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSPurgeableData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSPurgeableData._(_ret, _lib, retain: true, release: true); - } - - static NSPurgeableData dataWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSPurgeableData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSPurgeableData._(_ret, _lib, retain: true, release: true); + NSURL? URL, + int cachePolicy, + double timeoutInterval) { + final _ret = _lib._objc_msgSend_354( + _lib._class_NSMutableURLRequest1, + _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } - static NSPurgeableData dataWithData_(NativeCupertinoHttp _lib, NSData? data) { - final _ret = _lib._objc_msgSend_217(_lib._class_NSPurgeableData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); - return NSPurgeableData._(_ret, _lib, retain: true, release: true); + static NSMutableURLRequest new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } - static NSObject dataWithContentsOfMappedFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSPurgeableData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSMutableURLRequest alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableURLRequest1, _lib._sel_alloc1); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } +} - static NSPurgeableData new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPurgeableData1, _lib._sel_new1); - return NSPurgeableData._(_ret, _lib, retain: false, release: true); - } +abstract class NSURLRequestAttribution { + static const int NSURLRequestAttributionDeveloper = 0; + static const int NSURLRequestAttributionUser = 1; +} - static NSPurgeableData alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPurgeableData1, _lib._sel_alloc1); - return NSPurgeableData._(_ret, _lib, retain: false, release: true); - } +abstract class NSHTTPCookieAcceptPolicy { + static const int NSHTTPCookieAcceptPolicyAlways = 0; + static const int NSHTTPCookieAcceptPolicyNever = 1; + static const int NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain = 2; } -/// Mutable Dictionary -class NSMutableDictionary extends NSDictionary { - NSMutableDictionary._(ffi.Pointer id, NativeCupertinoHttp lib, +class NSHTTPCookieStorage extends NSObject { + NSHTTPCookieStorage._(ffi.Pointer id, NativeCupertinoHttp lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableDictionary] that points to the same underlying object as [other]. - static NSMutableDictionary castFrom(T other) { - return NSMutableDictionary._(other._id, other._lib, + /// Returns a [NSHTTPCookieStorage] that points to the same underlying object as [other]. + static NSHTTPCookieStorage castFrom(T other) { + return NSHTTPCookieStorage._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableDictionary] that wraps the given raw object pointer. - static NSMutableDictionary castFromPointer( + /// Returns a [NSHTTPCookieStorage] that wraps the given raw object pointer. + static NSHTTPCookieStorage castFromPointer( NativeCupertinoHttp lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableDictionary._(other, lib, retain: retain, release: release); + return NSHTTPCookieStorage._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableDictionary]. + /// Returns whether [obj] is an instance of [NSHTTPCookieStorage]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableDictionary1); - } - - void removeObjectForKey_(NSObject aKey) { - return _lib._objc_msgSend_200( - _id, _lib._sel_removeObjectForKey_1, aKey._id); - } - - void setObject_forKey_(NSObject anObject, NSObject aKey) { - return _lib._objc_msgSend_310( - _id, _lib._sel_setObject_forKey_1, anObject._id, aKey._id); + obj._lib._class_NSHTTPCookieStorage1); } - @override - NSMutableDictionary init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSHTTPCookieStorage? getSharedHTTPCookieStorage( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_364( + _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedHTTPCookieStorage1); + return _ret.address == 0 + ? null + : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_94(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier_( + NativeCupertinoHttp _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_365( + _lib._class_NSHTTPCookieStorage1, + _lib._sel_sharedCookieStorageForGroupContainerIdentifier_1, + identifier?._id ?? ffi.nullptr); + return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } - @override - NSMutableDictionary initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSArray? get cookies { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_cookies1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - void addEntriesFromDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_311(_id, _lib._sel_addEntriesFromDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + void setCookie_(NSHTTPCookie? cookie) { + return _lib._objc_msgSend_366( + _id, _lib._sel_setCookie_1, cookie?._id ?? ffi.nullptr); } - void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + void deleteCookie_(NSHTTPCookie? cookie) { + return _lib._objc_msgSend_366( + _id, _lib._sel_deleteCookie_1, cookie?._id ?? ffi.nullptr); } - void removeObjectsForKeys_(NSArray? keyArray) { - return _lib._objc_msgSend_291( - _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); + void removeCookiesSinceDate_(NSDate? date) { + return _lib._objc_msgSend_367( + _id, _lib._sel_removeCookiesSinceDate_1, date?._id ?? ffi.nullptr); } - void setDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_311( - _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); + NSArray cookiesForURL_(NSURL? URL) { + final _ret = _lib._objc_msgSend_160( + _id, _lib._sel_cookiesForURL_1, URL?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - void setObject_forKeyedSubscript_(NSObject obj, NSObject key) { - return _lib._objc_msgSend_310( - _id, _lib._sel_setObject_forKeyedSubscript_1, obj._id, key._id); + void setCookies_forURL_mainDocumentURL_( + NSArray? cookies, NSURL? URL, NSURL? mainDocumentURL) { + return _lib._objc_msgSend_368( + _id, + _lib._sel_setCookies_forURL_mainDocumentURL_1, + cookies?._id ?? ffi.nullptr, + URL?._id ?? ffi.nullptr, + mainDocumentURL?._id ?? ffi.nullptr); } - static NSMutableDictionary dictionaryWithCapacity_( - NativeCupertinoHttp _lib, int numItems) { - final _ret = _lib._objc_msgSend_94(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithCapacity_1, numItems); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + int get cookieAcceptPolicy { + return _lib._objc_msgSend_369(_id, _lib._sel_cookieAcceptPolicy1); } - static NSMutableDictionary dictionaryWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_312(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + set cookieAcceptPolicy(int value) { + _lib._objc_msgSend_370(_id, _lib._sel_setCookieAcceptPolicy_1, value); } - static NSMutableDictionary dictionaryWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_313(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSArray sortedCookiesUsingDescriptors_(NSArray? sortOrder) { + final _ret = _lib._objc_msgSend_97( + _id, + _lib._sel_sortedCookiesUsingDescriptors_1, + sortOrder?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_312( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + void storeCookies_forTask_(NSArray? cookies, NSURLSessionTask? task) { + return _lib._objc_msgSend_378(_id, _lib._sel_storeCookies_forTask_1, + cookies?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); } - NSMutableDictionary initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_313( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + void getCookiesForTask_completionHandler_( + NSURLSessionTask? task, ObjCBlock19 completionHandler) { + return _lib._objc_msgSend_379( + _id, + _lib._sel_getCookiesForTask_completionHandler_1, + task?._id ?? ffi.nullptr, + completionHandler._id); } - /// Create a mutable dictionary which is optimized for dealing with a known set of keys. - /// Keys that are not in the key set can still be set into the dictionary, but that usage is not optimal. - /// As with any dictionary, the keys must be copyable. - /// If keyset is nil, an exception is thrown. - /// If keyset is not an object returned by +sharedKeySetForKeys:, an exception is thrown. - static NSMutableDictionary dictionaryWithSharedKeySet_( - NativeCupertinoHttp _lib, NSObject keyset) { - final _ret = _lib._objc_msgSend_314(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSHTTPCookieStorage new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPCookieStorage1, _lib._sel_new1); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); } - static NSMutableDictionary dictionary(NativeCupertinoHttp _lib) { + static NSHTTPCookieStorage alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_dictionary1); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithObject_forKey_( - NativeCupertinoHttp _lib, NSObject object, NSObject key) { - final _ret = _lib._objc_msgSend_173(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObject_forKey_1, object._id, key._id); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithObjects_forKeys_count_( - NativeCupertinoHttp _lib, - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_93(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithObjectsAndKeys_( - NativeCupertinoHttp _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_91(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithDictionary_( - NativeCupertinoHttp _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_174(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithObjects_forKeys_( - NativeCupertinoHttp _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_175( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); } +} - /// Reads dictionary stored in NSPropertyList format from the specified url. - static NSDictionary dictionaryWithContentsOfURL_error_( - NativeCupertinoHttp _lib, - NSURL? url, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_177( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } +class NSHTTPCookie extends _ObjCWrapper { + NSHTTPCookie._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - /// Use this method to create a key set to pass to +dictionaryWithSharedKeySet:. - /// The keys are copied from the array and must be copyable. - /// If the array parameter is nil or not an NSArray, an exception is thrown. - /// If the array of keys is empty, an empty key set is returned. - /// The array of keys may contain duplicates, which are ignored (it is undefined which object of each duplicate pair is used). - /// As for any usage of hashing, is recommended that the keys have a well-distributed implementation of -hash, and the hash codes must satisfy the hash/isEqual: invariant. - /// Keys with duplicate hash codes are allowed, but will cause lower performance and increase memory usage. - static NSObject sharedKeySetForKeys_( - NativeCupertinoHttp _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_100(_lib._class_NSMutableDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns a [NSHTTPCookie] that points to the same underlying object as [other]. + static NSHTTPCookie castFrom(T other) { + return NSHTTPCookie._(other._id, other._lib, retain: true, release: true); } - static NSMutableDictionary new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableDictionary1, _lib._sel_new1); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + /// Returns a [NSHTTPCookie] that wraps the given raw object pointer. + static NSHTTPCookie castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSHTTPCookie._(other, lib, retain: retain, release: release); } - static NSMutableDictionary alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_alloc1); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + /// Returns whether [obj] is an instance of [NSHTTPCookie]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHTTPCookie1); } } -class NSNotification extends NSObject { - NSNotification._(ffi.Pointer id, NativeCupertinoHttp lib, +/// NSURLSessionTask - a cancelable object that refers to the lifetime +/// of processing a given request. +class NSURLSessionTask extends NSObject { + NSURLSessionTask._(ffi.Pointer id, NativeCupertinoHttp lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSNotification] that points to the same underlying object as [other]. - static NSNotification castFrom(T other) { - return NSNotification._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSURLSessionTask] that points to the same underlying object as [other]. + static NSURLSessionTask castFrom(T other) { + return NSURLSessionTask._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSNotification] that wraps the given raw object pointer. - static NSNotification castFromPointer( + /// Returns a [NSURLSessionTask] that wraps the given raw object pointer. + static NSURLSessionTask castFromPointer( NativeCupertinoHttp lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSNotification._(other, lib, retain: retain, release: release); + return NSURLSessionTask._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSNotification]. + /// Returns whether [obj] is an instance of [NSURLSessionTask]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSNotification1); + obj._lib._class_NSURLSessionTask1); } - NSNotificationName get name { - return _lib._objc_msgSend_32(_id, _lib._sel_name1); + /// an identifier for this task, assigned by and unique to the owning session + int get taskIdentifier { + return _lib._objc_msgSend_12(_id, _lib._sel_taskIdentifier1); } - NSObject get object { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_object1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// may be nil if this is a stream task + NSURLRequest? get originalRequest { + final _ret = _lib._objc_msgSend_371(_id, _lib._sel_originalRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_userInfo1); + /// may differ from originalRequest due to http server redirection + NSURLRequest? get currentRequest { + final _ret = _lib._objc_msgSend_371(_id, _lib._sel_currentRequest1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSNotification initWithName_object_userInfo_( - NSNotificationName name, NSObject object, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_315( - _id, - _lib._sel_initWithName_object_userInfo_1, - name, - object._id, - userInfo?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); + /// may be nil if no response has been received + NSURLResponse? get response { + final _ret = _lib._objc_msgSend_373(_id, _lib._sel_response1); + return _ret.address == 0 + ? null + : NSURLResponse._(_ret, _lib, retain: true, release: true); } - NSNotification initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); + /// NSProgress object which represents the task progress. + /// It can be used for task progress tracking. + NSProgress? get progress { + final _ret = _lib._objc_msgSend_318(_id, _lib._sel_progress1); + return _ret.address == 0 + ? null + : NSProgress._(_ret, _lib, retain: true, release: true); } - static NSNotification notificationWithName_object_( - NativeCupertinoHttp _lib, NSNotificationName aName, NSObject anObject) { - final _ret = _lib._objc_msgSend_258(_lib._class_NSNotification1, - _lib._sel_notificationWithName_object_1, aName, anObject._id); - return NSNotification._(_ret, _lib, retain: true, release: true); + /// Start the network load for this task no earlier than the specified date. If + /// not specified, no start delay is used. + /// + /// Only applies to tasks created from background NSURLSession instances; has no + /// effect for tasks created from other session types. + NSDate? get earliestBeginDate { + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_earliestBeginDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - static NSNotification notificationWithName_object_userInfo_( - NativeCupertinoHttp _lib, - NSNotificationName aName, - NSObject anObject, - NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_315( - _lib._class_NSNotification1, - _lib._sel_notificationWithName_object_userInfo_1, - aName, - anObject._id, - aUserInfo?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); + /// Start the network load for this task no earlier than the specified date. If + /// not specified, no start delay is used. + /// + /// Only applies to tasks created from background NSURLSession instances; has no + /// effect for tasks created from other session types. + set earliestBeginDate(NSDate? value) { + _lib._objc_msgSend_374( + _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); } - @override - NSNotification init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNotification._(_ret, _lib, retain: true, release: true); + /// The number of bytes that the client expects (a best-guess upper-bound) will + /// be sent and received by this task. These values are used by system scheduling + /// policy. If unspecified, NSURLSessionTransferSizeUnknown is used. + int get countOfBytesClientExpectsToSend { + return _lib._objc_msgSend_325( + _id, _lib._sel_countOfBytesClientExpectsToSend1); } - static NSNotification new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_new1); - return NSNotification._(_ret, _lib, retain: false, release: true); + /// The number of bytes that the client expects (a best-guess upper-bound) will + /// be sent and received by this task. These values are used by system scheduling + /// policy. If unspecified, NSURLSessionTransferSizeUnknown is used. + set countOfBytesClientExpectsToSend(int value) { + _lib._objc_msgSend_326( + _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); } - static NSNotification alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); - return NSNotification._(_ret, _lib, retain: false, release: true); + int get countOfBytesClientExpectsToReceive { + return _lib._objc_msgSend_325( + _id, _lib._sel_countOfBytesClientExpectsToReceive1); } -} -typedef NSNotificationName = ffi.Pointer; + set countOfBytesClientExpectsToReceive(int value) { + _lib._objc_msgSend_326( + _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); + } -class NSNotificationCenter extends NSObject { - NSNotificationCenter._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + /// number of body bytes already received + int get countOfBytesReceived { + return _lib._objc_msgSend_325(_id, _lib._sel_countOfBytesReceived1); + } - /// Returns a [NSNotificationCenter] that points to the same underlying object as [other]. - static NSNotificationCenter castFrom(T other) { - return NSNotificationCenter._(other._id, other._lib, - retain: true, release: true); + /// number of body bytes already sent + int get countOfBytesSent { + return _lib._objc_msgSend_325(_id, _lib._sel_countOfBytesSent1); } - /// Returns a [NSNotificationCenter] that wraps the given raw object pointer. - static NSNotificationCenter castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSNotificationCenter._(other, lib, retain: retain, release: release); + /// number of body bytes we expect to send, derived from the Content-Length of the HTTP request + int get countOfBytesExpectedToSend { + return _lib._objc_msgSend_325(_id, _lib._sel_countOfBytesExpectedToSend1); } - /// Returns whether [obj] is an instance of [NSNotificationCenter]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSNotificationCenter1); + /// number of byte bytes we expect to receive, usually derived from the Content-Length header of an HTTP response. + int get countOfBytesExpectedToReceive { + return _lib._objc_msgSend_325( + _id, _lib._sel_countOfBytesExpectedToReceive1); } - static NSNotificationCenter? getDefaultCenter(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_316( - _lib._class_NSNotificationCenter1, _lib._sel_defaultCenter1); + /// The taskDescription property is available for the developer to + /// provide a descriptive label for the task. + NSString? get taskDescription { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_taskDescription1); return _ret.address == 0 ? null - : NSNotificationCenter._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - void addObserver_selector_name_object_( - NSObject observer, - ffi.Pointer aSelector, - NSNotificationName aName, - NSObject anObject) { - return _lib._objc_msgSend_317( - _id, - _lib._sel_addObserver_selector_name_object_1, - observer._id, - aSelector, - aName, - anObject._id); + /// The taskDescription property is available for the developer to + /// provide a descriptive label for the task. + set taskDescription(NSString? value) { + _lib._objc_msgSend_327( + _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); } - void postNotification_(NSNotification? notification) { - return _lib._objc_msgSend_318( - _id, _lib._sel_postNotification_1, notification?._id ?? ffi.nullptr); + /// -cancel returns immediately, but marks a task as being canceled. + /// The task will signal -URLSession:task:didCompleteWithError: with an + /// error value of { NSURLErrorDomain, NSURLErrorCancelled }. In some + /// cases, the task may signal other work before it acknowledges the + /// cancelation. -cancel may be sent to a task that has been suspended. + void cancel() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - void postNotificationName_object_( - NSNotificationName aName, NSObject anObject) { - return _lib._objc_msgSend_319( - _id, _lib._sel_postNotificationName_object_1, aName, anObject._id); + /// The current state of the task within the session. + int get state { + return _lib._objc_msgSend_375(_id, _lib._sel_state1); } - void postNotificationName_object_userInfo_( - NSNotificationName aName, NSObject anObject, NSDictionary? aUserInfo) { - return _lib._objc_msgSend_320( - _id, - _lib._sel_postNotificationName_object_userInfo_1, - aName, - anObject._id, - aUserInfo?._id ?? ffi.nullptr); + /// The error, if any, delivered via -URLSession:task:didCompleteWithError: + /// This property will be nil in the event that no error occured. + NSError? get error { + final _ret = _lib._objc_msgSend_376(_id, _lib._sel_error1); + return _ret.address == 0 + ? null + : NSError._(_ret, _lib, retain: true, release: true); } - void removeObserver_(NSObject observer) { - return _lib._objc_msgSend_200( - _id, _lib._sel_removeObserver_1, observer._id); + /// Suspending a task will prevent the NSURLSession from continuing to + /// load data. There may still be delegate calls made on behalf of + /// this task (for instance, to report data received while suspending) + /// but no further transmissions will be made on behalf of the task + /// until -resume is sent. The timeout timer associated with the task + /// will be disabled while a task is suspended. -suspend and -resume are + /// nestable. + void suspend() { + return _lib._objc_msgSend_1(_id, _lib._sel_suspend1); } - void removeObserver_name_object_( - NSObject observer, NSNotificationName aName, NSObject anObject) { - return _lib._objc_msgSend_321(_id, _lib._sel_removeObserver_name_object_1, - observer._id, aName, anObject._id); + void resume() { + return _lib._objc_msgSend_1(_id, _lib._sel_resume1); } - NSObject addObserverForName_object_queue_usingBlock_(NSNotificationName name, - NSObject obj, NSOperationQueue? queue, ObjCBlock19 block) { - final _ret = _lib._objc_msgSend_350( - _id, - _lib._sel_addObserverForName_object_queue_usingBlock_1, - name, - obj._id, - queue?._id ?? ffi.nullptr, - block._id); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Sets a scaling factor for the priority of the task. The scaling factor is a + /// value between 0.0 and 1.0 (inclusive), where 0.0 is considered the lowest + /// priority and 1.0 is considered the highest. + /// + /// The priority is a hint and not a hard requirement of task performance. The + /// priority of a task may be changed using this API at any time, but not all + /// protocols support this; in these cases, the last priority that took effect + /// will be used. + /// + /// If no priority is specified, the task will operate with the default priority + /// as defined by the constant NSURLSessionTaskPriorityDefault. Two additional + /// priority levels are provided: NSURLSessionTaskPriorityLow and + /// NSURLSessionTaskPriorityHigh, but use is not restricted to these. + double get priority { + return _lib._objc_msgSend_84(_id, _lib._sel_priority1); } - static NSNotificationCenter new1(NativeCupertinoHttp _lib) { + /// Sets a scaling factor for the priority of the task. The scaling factor is a + /// value between 0.0 and 1.0 (inclusive), where 0.0 is considered the lowest + /// priority and 1.0 is considered the highest. + /// + /// The priority is a hint and not a hard requirement of task performance. The + /// priority of a task may be changed using this API at any time, but not all + /// protocols support this; in these cases, the last priority that took effect + /// will be used. + /// + /// If no priority is specified, the task will operate with the default priority + /// as defined by the constant NSURLSessionTaskPriorityDefault. Two additional + /// priority levels are provided: NSURLSessionTaskPriorityLow and + /// NSURLSessionTaskPriorityHigh, but use is not restricted to these. + set priority(double value) { + _lib._objc_msgSend_377(_id, _lib._sel_setPriority_1, value); + } + + /// Provides a hint indicating if incremental delivery of a partial response body + /// would be useful for the application, or if it cannot process the response + /// until it is complete. Indicating that incremental delivery is not desired may + /// improve task performance. For example, if a response cannot be decoded until + /// the entire content is received, set this property to false. + /// + /// Defaults to true unless this task is created with completion-handler based + /// convenience methods, or if it is a download task. + bool get prefersIncrementalDelivery { + return _lib._objc_msgSend_11(_id, _lib._sel_prefersIncrementalDelivery1); + } + + /// Provides a hint indicating if incremental delivery of a partial response body + /// would be useful for the application, or if it cannot process the response + /// until it is complete. Indicating that incremental delivery is not desired may + /// improve task performance. For example, if a response cannot be decoded until + /// the entire content is received, set this property to false. + /// + /// Defaults to true unless this task is created with completion-handler based + /// convenience methods, or if it is a download task. + set prefersIncrementalDelivery(bool value) { + _lib._objc_msgSend_328( + _id, _lib._sel_setPrefersIncrementalDelivery_1, value); + } + + @override + NSURLSessionTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionTask._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionTask new1(NativeCupertinoHttp _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotificationCenter1, _lib._sel_new1); - return NSNotificationCenter._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_new1); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } - static NSNotificationCenter alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSNotificationCenter1, _lib._sel_alloc1); - return NSNotificationCenter._(_ret, _lib, retain: false, release: true); + static NSURLSessionTask alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_alloc1); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } } -class NSOperationQueue extends NSObject { - NSOperationQueue._(ffi.Pointer id, NativeCupertinoHttp lib, +class NSURLResponse extends NSObject { + NSURLResponse._(ffi.Pointer id, NativeCupertinoHttp lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSOperationQueue] that points to the same underlying object as [other]. - static NSOperationQueue castFrom(T other) { - return NSOperationQueue._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSURLResponse] that points to the same underlying object as [other]. + static NSURLResponse castFrom(T other) { + return NSURLResponse._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSOperationQueue] that wraps the given raw object pointer. - static NSOperationQueue castFromPointer( + /// Returns a [NSURLResponse] that wraps the given raw object pointer. + static NSURLResponse castFromPointer( NativeCupertinoHttp lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSOperationQueue._(other, lib, retain: retain, release: release); + return NSURLResponse._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSOperationQueue]. + /// Returns whether [obj] is an instance of [NSURLResponse]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSOperationQueue1); - } - - /// @property progress - /// @discussion The `progress` property represents a total progress of the operations executed in the queue. By default NSOperationQueue - /// does not report progress until the `totalUnitCount` of the progress is set. When the `totalUnitCount` property of the progress is set the - /// queue then opts into participating in progress reporting. When enabled, each operation will contribute 1 unit of completion to the - /// overall progress of the queue for operations that are finished by the end of main (operations that override start and do not invoke super - /// will not contribute to progress). Special attention to race conditions should be made when updating the `totalUnitCount` of the progress - /// as well as care should be taken to avoid 'backwards progress'. For example; when a NSOperationQueue's progress is 5/10, representing 50% - /// completed, and there are 90 more operations about to be added and the `totalUnitCount` that would then make the progress report as 5/100 - /// which represents 5%. In this example it would mean that any progress bar would jump from displaying 50% back to 5%, which might not be - /// desirable. In the cases where the `totalUnitCount` needs to be adjusted it is suggested to do this for thread-safety in a barrier by - /// using the `addBarrierBlock:` API. This ensures that no un-expected execution state occurs adjusting into a potentially backwards moving - /// progress scenario. - /// - /// @example - /// NSOperationQueue *queue = [[NSOperationQueue alloc] init]; - /// queue.progress.totalUnitCount = 10; - NSProgress? get progress { - final _ret = _lib._objc_msgSend_322(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); - } - - void addOperation_(NSOperation? op) { - return _lib._objc_msgSend_338( - _id, _lib._sel_addOperation_1, op?._id ?? ffi.nullptr); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLResponse1); } - void addOperations_waitUntilFinished_(NSArray? ops, bool wait) { - return _lib._objc_msgSend_344( + /// ! + /// @method initWithURL:MIMEType:expectedContentLength:textEncodingName: + /// @abstract Initialize an NSURLResponse with the provided values. + /// @param URL the URL + /// @param MIMEType the MIME content type of the response + /// @param length the expected content length of the associated data + /// @param name the name of the text encoding for the associated data, if applicable, else nil + /// @result The initialized NSURLResponse. + /// @discussion This is the designated initializer for NSURLResponse. + NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( + NSURL? URL, NSString? MIMEType, int length, NSString? name) { + final _ret = _lib._objc_msgSend_372( _id, - _lib._sel_addOperations_waitUntilFinished_1, - ops?._id ?? ffi.nullptr, - wait); - } - - void addOperationWithBlock_(ObjCBlock block) { - return _lib._objc_msgSend_345( - _id, _lib._sel_addOperationWithBlock_1, block._id); - } - - /// @method addBarrierBlock: - /// @param barrier A block to execute - /// @discussion The `addBarrierBlock:` method executes the block when the NSOperationQueue has finished all enqueued operations and - /// prevents any subsequent operations to be executed until the barrier has been completed. This acts similarly to the - /// `dispatch_barrier_async` function. - void addBarrierBlock_(ObjCBlock barrier) { - return _lib._objc_msgSend_345( - _id, _lib._sel_addBarrierBlock_1, barrier._id); + _lib._sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1, + URL?._id ?? ffi.nullptr, + MIMEType?._id ?? ffi.nullptr, + length, + name?._id ?? ffi.nullptr); + return NSURLResponse._(_ret, _lib, retain: true, release: true); } - int get maxConcurrentOperationCount { - return _lib._objc_msgSend_81(_id, _lib._sel_maxConcurrentOperationCount1); + /// ! + /// @abstract Returns the URL of the receiver. + /// @result The URL of the receiver. + NSURL? get URL { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - set maxConcurrentOperationCount(int value) { - _lib._objc_msgSend_346( - _id, _lib._sel_setMaxConcurrentOperationCount_1, value); + /// ! + /// @abstract Returns the MIME type of the receiver. + /// @discussion The MIME type is based on the information provided + /// from an origin source. However, that value may be changed or + /// corrected by a protocol implementation if it can be determined + /// that the origin server or source reported the information + /// incorrectly or imprecisely. An attempt to guess the MIME type may + /// be made if the origin source did not report any such information. + /// @result The MIME type of the receiver. + NSString? get MIMEType { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_MIMEType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool get suspended { - return _lib._objc_msgSend_11(_id, _lib._sel_isSuspended1); + /// ! + /// @abstract Returns the expected content length of the receiver. + /// @discussion Some protocol implementations report a content length + /// as part of delivering load metadata, but not all protocols + /// guarantee the amount of data that will be delivered in actuality. + /// Hence, this method returns an expected amount. Clients should use + /// this value as an advisory, and should be prepared to deal with + /// either more or less data. + /// @result The expected content length of the receiver, or -1 if + /// there is no expectation that can be arrived at regarding expected + /// content length. + int get expectedContentLength { + return _lib._objc_msgSend_82(_id, _lib._sel_expectedContentLength1); } - set suspended(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setSuspended_1, value); + /// ! + /// @abstract Returns the name of the text encoding of the receiver. + /// @discussion This name will be the actual string reported by the + /// origin source during the course of performing a protocol-specific + /// URL load. Clients can inspect this string and convert it to an + /// NSStringEncoding or CFStringEncoding using the methods and + /// functions made available in the appropriate framework. + /// @result The name of the text encoding of the receiver, or nil if no + /// text encoding was specified. + NSString? get textEncodingName { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_textEncodingName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get name { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_name1); + /// ! + /// @abstract Returns a suggested filename if the resource were saved to disk. + /// @discussion The method first checks if the server has specified a filename using the + /// content disposition header. If no valid filename is specified using that mechanism, + /// this method checks the last path component of the URL. If no valid filename can be + /// obtained using the last path component, this method uses the URL's host as the filename. + /// If the URL's host can't be converted to a valid filename, the filename "unknown" is used. + /// In mose cases, this method appends the proper file extension based on the MIME type. + /// This method always returns a valid filename. + /// @result A suggested filename to use if saving the resource to disk. + NSString? get suggestedFilename { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_suggestedFilename1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set name(NSString? value) { - _lib._objc_msgSend_331(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + static NSURLResponse new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_new1); + return NSURLResponse._(_ret, _lib, retain: false, release: true); } - int get qualityOfService { - return _lib._objc_msgSend_342(_id, _lib._sel_qualityOfService1); + static NSURLResponse alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); + return NSURLResponse._(_ret, _lib, retain: false, release: true); } +} - set qualityOfService(int value) { - _lib._objc_msgSend_343(_id, _lib._sel_setQualityOfService_1, value); - } +abstract class NSURLSessionTaskState { + /// The task is currently being serviced by the session + static const int NSURLSessionTaskStateRunning = 0; + static const int NSURLSessionTaskStateSuspended = 1; - /// actually retain - dispatch_queue_t get underlyingQueue { - return _lib._objc_msgSend_347(_id, _lib._sel_underlyingQueue1); - } + /// The task has been told to cancel. The session will receive a URLSession:task:didCompleteWithError: message. + static const int NSURLSessionTaskStateCanceling = 2; - /// actually retain - set underlyingQueue(dispatch_queue_t value) { - _lib._objc_msgSend_348(_id, _lib._sel_setUnderlyingQueue_1, value); - } + /// The task has completed and the session will receive no more delegate notifications + static const int NSURLSessionTaskStateCompleted = 3; +} - void cancelAllOperations() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); - } +void _ObjCBlock19_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} - void waitUntilAllOperationsAreFinished() { - return _lib._objc_msgSend_1( - _id, _lib._sel_waitUntilAllOperationsAreFinished1); - } +final _ObjCBlock19_closureRegistry = {}; +int _ObjCBlock19_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock19_registerClosure(Function fn) { + final id = ++_ObjCBlock19_closureRegistryIndex; + _ObjCBlock19_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - static NSOperationQueue? getCurrentQueue(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_349( - _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock19_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock19_closureRegistry[block.ref.target.address]!(arg0); +} - static NSOperationQueue? getMainQueue(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_349( - _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock19 extends _ObjCBlockBase { + ObjCBlock19._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) + : super._(id, lib, retain: false, release: true); - /// These two functions are inherently a race condition and should be avoided if possible - NSArray? get operations { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_operations1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock19.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock19_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - int get operationCount { - return _lib._objc_msgSend_12(_id, _lib._sel_operationCount1); + /// Creates a block from a Dart function. + ObjCBlock19.fromFunction( + NativeCupertinoHttp lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock19_closureTrampoline) + .cast(), + _ObjCBlock19_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } - static NSOperationQueue new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_new1); - return NSOperationQueue._(_ret, _lib, retain: false, release: true); - } + ffi.Pointer<_ObjCBlock> get pointer => _id; +} - static NSOperationQueue alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_alloc1); - return NSOperationQueue._(_ret, _lib, retain: false, release: true); - } +class CFArrayCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external CFArrayRetainCallBack retain; + + external CFArrayReleaseCallBack release; + + external CFArrayCopyDescriptionCallBack copyDescription; + + external CFArrayEqualCallBack equal; } -class NSProgress extends NSObject { - NSProgress._(ffi.Pointer id, NativeCupertinoHttp lib, +typedef CFArrayRetainCallBack = ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(CFAllocatorRef, ffi.Pointer)>>; +typedef CFArrayReleaseCallBack = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef, ffi.Pointer)>>; +typedef CFArrayCopyDescriptionCallBack = ffi + .Pointer)>>; +typedef CFArrayEqualCallBack = ffi.Pointer< + ffi.NativeFunction< + Boolean Function(ffi.Pointer, ffi.Pointer)>>; + +class __CFArray extends ffi.Opaque {} + +typedef CFArrayRef = ffi.Pointer<__CFArray>; +typedef CFMutableArrayRef = ffi.Pointer<__CFArray>; +typedef CFArrayApplierFunction = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; +typedef CFComparatorFunction = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>; + +class OS_object extends NSObject { + OS_object._(ffi.Pointer id, NativeCupertinoHttp lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSProgress] that points to the same underlying object as [other]. - static NSProgress castFrom(T other) { - return NSProgress._(other._id, other._lib, retain: true, release: true); + /// Returns a [OS_object] that points to the same underlying object as [other]. + static OS_object castFrom(T other) { + return OS_object._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSProgress] that wraps the given raw object pointer. - static NSProgress castFromPointer( + /// Returns a [OS_object] that wraps the given raw object pointer. + static OS_object castFromPointer( NativeCupertinoHttp lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSProgress._(other, lib, retain: retain, release: release); + return OS_object._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSProgress]. + /// Returns whether [obj] is an instance of [OS_object]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_OS_object1); } - static NSProgress currentProgress(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_322( - _lib._class_NSProgress1, _lib._sel_currentProgress1); - return NSProgress._(_ret, _lib, retain: true, release: true); + @override + OS_object init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return OS_object._(_ret, _lib, retain: true, release: true); } - static NSProgress progressWithTotalUnitCount_( - NativeCupertinoHttp _lib, int unitCount) { - final _ret = _lib._objc_msgSend_323(_lib._class_NSProgress1, - _lib._sel_progressWithTotalUnitCount_1, unitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); + static OS_object new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_OS_object1, _lib._sel_new1); + return OS_object._(_ret, _lib, retain: false, release: true); } - static NSProgress discreteProgressWithTotalUnitCount_( - NativeCupertinoHttp _lib, int unitCount) { - final _ret = _lib._objc_msgSend_323(_lib._class_NSProgress1, - _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); + static OS_object alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_OS_object1, _lib._sel_alloc1); + return OS_object._(_ret, _lib, retain: false, release: true); } +} - static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( - NativeCupertinoHttp _lib, - int unitCount, - NSProgress? parent, - int portionOfParentTotalUnitCount) { - final _ret = _lib._objc_msgSend_324( - _lib._class_NSProgress1, - _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, - unitCount, - parent?._id ?? ffi.nullptr, - portionOfParentTotalUnitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); - } +class __SecCertificate extends ffi.Opaque {} - NSProgress initWithParent_userInfo_( - NSProgress? parentProgressOrNil, NSDictionary? userInfoOrNil) { - final _ret = _lib._objc_msgSend_325( - _id, - _lib._sel_initWithParent_userInfo_1, - parentProgressOrNil?._id ?? ffi.nullptr, - userInfoOrNil?._id ?? ffi.nullptr); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - void becomeCurrentWithPendingUnitCount_(int unitCount) { - return _lib._objc_msgSend_326( - _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); - } +class __SecIdentity extends ffi.Opaque {} - void performAsCurrentWithPendingUnitCount_usingBlock_( - int unitCount, ObjCBlock work) { - return _lib._objc_msgSend_327( - _id, - _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, - unitCount, - work._id); - } +class __SecKey extends ffi.Opaque {} - void resignCurrent() { - return _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); - } +class __SecPolicy extends ffi.Opaque {} - void addChild_withPendingUnitCount_(NSProgress? child, int inUnitCount) { - return _lib._objc_msgSend_328( - _id, - _lib._sel_addChild_withPendingUnitCount_1, - child?._id ?? ffi.nullptr, - inUnitCount); - } +class __SecAccessControl extends ffi.Opaque {} - int get totalUnitCount { - return _lib._objc_msgSend_329(_id, _lib._sel_totalUnitCount1); - } +class __SecKeychain extends ffi.Opaque {} - set totalUnitCount(int value) { - _lib._objc_msgSend_330(_id, _lib._sel_setTotalUnitCount_1, value); - } +class __SecKeychainItem extends ffi.Opaque {} - int get completedUnitCount { - return _lib._objc_msgSend_329(_id, _lib._sel_completedUnitCount1); - } +class __SecKeychainSearch extends ffi.Opaque {} - set completedUnitCount(int value) { - _lib._objc_msgSend_330(_id, _lib._sel_setCompletedUnitCount_1, value); - } +class SecKeychainAttribute extends ffi.Struct { + @SecKeychainAttrType() + external int tag; - NSString? get localizedDescription { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localizedDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } + @UInt32() + external int length; - set localizedDescription(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); - } + external ffi.Pointer data; +} - NSString? get localizedAdditionalDescription { - final _ret = - _lib._objc_msgSend_32(_id, _lib._sel_localizedAdditionalDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +typedef SecKeychainAttrType = OSType; +typedef OSType = FourCharCode; +typedef FourCharCode = UInt32; - set localizedAdditionalDescription(NSString? value) { - _lib._objc_msgSend_331(_id, _lib._sel_setLocalizedAdditionalDescription_1, - value?._id ?? ffi.nullptr); - } +class SecKeychainAttributeList extends ffi.Struct { + @UInt32() + external int count; - bool get cancellable { - return _lib._objc_msgSend_11(_id, _lib._sel_isCancellable1); - } + external ffi.Pointer attr; +} - set cancellable(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setCancellable_1, value); - } +class __SecTrustedApplication extends ffi.Opaque {} - bool get pausable { - return _lib._objc_msgSend_11(_id, _lib._sel_isPausable1); - } +class __SecAccess extends ffi.Opaque {} - set pausable(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setPausable_1, value); - } +class __SecACL extends ffi.Opaque {} - bool get cancelled { - return _lib._objc_msgSend_11(_id, _lib._sel_isCancelled1); - } +class __SecPassword extends ffi.Opaque {} - bool get paused { - return _lib._objc_msgSend_11(_id, _lib._sel_isPaused1); - } +class SecKeychainAttributeInfo extends ffi.Struct { + @UInt32() + external int count; - ObjCBlock get cancellationHandler { - final _ret = _lib._objc_msgSend_333(_id, _lib._sel_cancellationHandler1); - return ObjCBlock._(_ret, _lib); - } + external ffi.Pointer tag; - set cancellationHandler(ObjCBlock value) { - _lib._objc_msgSend_334(_id, _lib._sel_setCancellationHandler_1, value._id); - } + external ffi.Pointer format; +} - ObjCBlock get pausingHandler { - final _ret = _lib._objc_msgSend_333(_id, _lib._sel_pausingHandler1); - return ObjCBlock._(_ret, _lib); - } +typedef OSStatus = SInt32; - set pausingHandler(ObjCBlock value) { - _lib._objc_msgSend_334(_id, _lib._sel_setPausingHandler_1, value._id); - } +class _RuneEntry extends ffi.Struct { + @__darwin_rune_t() + external int __min; - ObjCBlock get resumingHandler { - final _ret = _lib._objc_msgSend_333(_id, _lib._sel_resumingHandler1); - return ObjCBlock._(_ret, _lib); - } + @__darwin_rune_t() + external int __max; - set resumingHandler(ObjCBlock value) { - _lib._objc_msgSend_334(_id, _lib._sel_setResumingHandler_1, value._id); - } + @__darwin_rune_t() + external int __map; - void setUserInfoObject_forKey_( - NSObject objectOrNil, NSProgressUserInfoKey key) { - return _lib._objc_msgSend_189( - _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key); - } + external ffi.Pointer<__uint32_t> __types; +} - bool get indeterminate { - return _lib._objc_msgSend_11(_id, _lib._sel_isIndeterminate1); - } +typedef __darwin_rune_t = __darwin_wchar_t; +typedef __darwin_wchar_t = ffi.Int; +typedef __uint32_t = ffi.UnsignedInt; - double get fractionCompleted { - return _lib._objc_msgSend_85(_id, _lib._sel_fractionCompleted1); - } +class _RuneRange extends ffi.Struct { + @ffi.Int() + external int __nranges; - bool get finished { - return _lib._objc_msgSend_11(_id, _lib._sel_isFinished1); - } + external ffi.Pointer<_RuneEntry> __ranges; +} - void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); - } +class _RuneCharClass extends ffi.Struct { + @ffi.Array.multi([14]) + external ffi.Array __name; - void pause() { - return _lib._objc_msgSend_1(_id, _lib._sel_pause1); - } + @__uint32_t() + external int __mask; +} - void resume() { - return _lib._objc_msgSend_1(_id, _lib._sel_resume1); - } +class _RuneLocale extends ffi.Struct { + @ffi.Array.multi([8]) + external ffi.Array __magic; - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } + @ffi.Array.multi([32]) + external ffi.Array __encoding; - NSProgressKind get kind { - return _lib._objc_msgSend_32(_id, _lib._sel_kind1); - } + external ffi.Pointer< + ffi.NativeFunction< + __darwin_rune_t Function(ffi.Pointer, __darwin_size_t, + ffi.Pointer>)>> __sgetrune; - set kind(NSProgressKind value) { - _lib._objc_msgSend_331(_id, _lib._sel_setKind_1, value); - } + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(__darwin_rune_t, ffi.Pointer, + __darwin_size_t, ffi.Pointer>)>> __sputrune; - NSNumber? get estimatedTimeRemaining { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_estimatedTimeRemaining1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } + @__darwin_rune_t() + external int __invalid_rune; - set estimatedTimeRemaining(NSNumber? value) { - _lib._objc_msgSend_335( - _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); - } + @ffi.Array.multi([256]) + external ffi.Array<__uint32_t> __runetype; - NSNumber? get throughput { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_throughput1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } + @ffi.Array.multi([256]) + external ffi.Array<__darwin_rune_t> __maplower; - set throughput(NSNumber? value) { - _lib._objc_msgSend_335( - _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); - } + @ffi.Array.multi([256]) + external ffi.Array<__darwin_rune_t> __mapupper; - NSProgressFileOperationKind get fileOperationKind { - return _lib._objc_msgSend_32(_id, _lib._sel_fileOperationKind1); - } + external _RuneRange __runetype_ext; - set fileOperationKind(NSProgressFileOperationKind value) { - _lib._objc_msgSend_331(_id, _lib._sel_setFileOperationKind_1, value); - } + external _RuneRange __maplower_ext; - NSURL? get fileURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_fileURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } + external _RuneRange __mapupper_ext; - set fileURL(NSURL? value) { - _lib._objc_msgSend_336( - _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); - } + external ffi.Pointer __variable; - NSNumber? get fileTotalCount { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_fileTotalCount1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } + @ffi.Int() + external int __variable_len; - set fileTotalCount(NSNumber? value) { - _lib._objc_msgSend_335( - _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); - } + @ffi.Int() + external int __ncharclasses; - NSNumber? get fileCompletedCount { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_fileCompletedCount1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } + external ffi.Pointer<_RuneCharClass> __charclasses; +} - set fileCompletedCount(NSNumber? value) { - _lib._objc_msgSend_335( - _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); - } +typedef __darwin_size_t = ffi.UnsignedLong; +typedef __darwin_ct_rune_t = ffi.Int; - void publish() { - return _lib._objc_msgSend_1(_id, _lib._sel_publish1); - } +class lconv extends ffi.Struct { + external ffi.Pointer decimal_point; - void unpublish() { - return _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); - } + external ffi.Pointer thousands_sep; - static NSObject addSubscriberForFileURL_withPublishingHandler_( - NativeCupertinoHttp _lib, - NSURL? url, - NSProgressPublishingHandler publishingHandler) { - final _ret = _lib._objc_msgSend_337( - _lib._class_NSProgress1, - _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, - url?._id ?? ffi.nullptr, - publishingHandler); - return NSObject._(_ret, _lib, retain: true, release: true); - } + external ffi.Pointer grouping; - static void removeSubscriber_(NativeCupertinoHttp _lib, NSObject subscriber) { - return _lib._objc_msgSend_200( - _lib._class_NSProgress1, _lib._sel_removeSubscriber_1, subscriber._id); - } + external ffi.Pointer int_curr_symbol; - bool get old { - return _lib._objc_msgSend_11(_id, _lib._sel_isOld1); - } + external ffi.Pointer currency_symbol; - static NSProgress new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_new1); - return NSProgress._(_ret, _lib, retain: false, release: true); - } + external ffi.Pointer mon_decimal_point; - static NSProgress alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); - return NSProgress._(_ret, _lib, retain: false, release: true); - } -} + external ffi.Pointer mon_thousands_sep; -typedef NSProgressUserInfoKey = ffi.Pointer; -typedef NSProgressKind = ffi.Pointer; -typedef NSProgressFileOperationKind = ffi.Pointer; -typedef NSProgressPublishingHandler = ffi.Pointer<_ObjCBlock>; -NSProgressUnpublishingHandler _ObjCBlock18_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer arg0)>>() - .asFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer arg0)>()(arg0); -} + external ffi.Pointer mon_grouping; -final _ObjCBlock18_closureRegistry = {}; -int _ObjCBlock18_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock18_registerClosure(Function fn) { - final id = ++_ObjCBlock18_closureRegistryIndex; - _ObjCBlock18_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + external ffi.Pointer positive_sign; -NSProgressUnpublishingHandler _ObjCBlock18_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock18_closureRegistry[block.ref.target.address]!(arg0); -} + external ffi.Pointer negative_sign; -class ObjCBlock18 extends _ObjCBlockBase { - ObjCBlock18._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); + @ffi.Char() + external int int_frac_digits; - /// Creates a block from a C function pointer. - ObjCBlock18.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock18_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + @ffi.Char() + external int frac_digits; - /// Creates a block from a Dart function. - ObjCBlock18.fromFunction(NativeCupertinoHttp lib, - NSProgressUnpublishingHandler Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock18_closureTrampoline) - .cast(), - _ObjCBlock18_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - NSProgressUnpublishingHandler call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + @ffi.Char() + external int p_cs_precedes; - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + @ffi.Char() + external int p_sep_by_space; -typedef NSProgressUnpublishingHandler = ffi.Pointer<_ObjCBlock>; + @ffi.Char() + external int n_cs_precedes; -class NSOperation extends NSObject { - NSOperation._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + @ffi.Char() + external int n_sep_by_space; - /// Returns a [NSOperation] that points to the same underlying object as [other]. - static NSOperation castFrom(T other) { - return NSOperation._(other._id, other._lib, retain: true, release: true); - } + @ffi.Char() + external int p_sign_posn; - /// Returns a [NSOperation] that wraps the given raw object pointer. - static NSOperation castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSOperation._(other, lib, retain: retain, release: release); - } + @ffi.Char() + external int n_sign_posn; - /// Returns whether [obj] is an instance of [NSOperation]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOperation1); - } + @ffi.Char() + external int int_p_cs_precedes; - void start() { - return _lib._objc_msgSend_1(_id, _lib._sel_start1); - } + @ffi.Char() + external int int_n_cs_precedes; - void main() { - return _lib._objc_msgSend_1(_id, _lib._sel_main1); - } + @ffi.Char() + external int int_p_sep_by_space; - bool get cancelled { - return _lib._objc_msgSend_11(_id, _lib._sel_isCancelled1); - } + @ffi.Char() + external int int_n_sep_by_space; - void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); - } + @ffi.Char() + external int int_p_sign_posn; - bool get executing { - return _lib._objc_msgSend_11(_id, _lib._sel_isExecuting1); - } + @ffi.Char() + external int int_n_sign_posn; +} - bool get finished { - return _lib._objc_msgSend_11(_id, _lib._sel_isFinished1); - } +class __float2 extends ffi.Struct { + @ffi.Float() + external double __sinval; - /// To be deprecated; use and override 'asynchronous' below - bool get concurrent { - return _lib._objc_msgSend_11(_id, _lib._sel_isConcurrent1); - } + @ffi.Float() + external double __cosval; +} - bool get asynchronous { - return _lib._objc_msgSend_11(_id, _lib._sel_isAsynchronous1); - } +class __double2 extends ffi.Struct { + @ffi.Double() + external double __sinval; - bool get ready { - return _lib._objc_msgSend_11(_id, _lib._sel_isReady1); - } + @ffi.Double() + external double __cosval; +} - void addDependency_(NSOperation? op) { - return _lib._objc_msgSend_338( - _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); - } +class exception extends ffi.Struct { + @ffi.Int() + external int type; - void removeDependency_(NSOperation? op) { - return _lib._objc_msgSend_338( - _id, _lib._sel_removeDependency_1, op?._id ?? ffi.nullptr); - } + external ffi.Pointer name; - NSArray? get dependencies { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_dependencies1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } + @ffi.Double() + external double arg1; - int get queuePriority { - return _lib._objc_msgSend_339(_id, _lib._sel_queuePriority1); - } + @ffi.Double() + external double arg2; - set queuePriority(int value) { - _lib._objc_msgSend_340(_id, _lib._sel_setQueuePriority_1, value); - } + @ffi.Double() + external double retval; +} - ObjCBlock get completionBlock { - final _ret = _lib._objc_msgSend_333(_id, _lib._sel_completionBlock1); - return ObjCBlock._(_ret, _lib); - } +class __darwin_arm_exception_state extends ffi.Struct { + @__uint32_t() + external int __exception; - set completionBlock(ObjCBlock value) { - _lib._objc_msgSend_334(_id, _lib._sel_setCompletionBlock_1, value._id); - } + @__uint32_t() + external int __fsr; - void waitUntilFinished() { - return _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); - } + @__uint32_t() + external int __far; +} - double get threadPriority { - return _lib._objc_msgSend_85(_id, _lib._sel_threadPriority1); - } +class __darwin_arm_exception_state64 extends ffi.Struct { + @__uint64_t() + external int __far; - set threadPriority(double value) { - _lib._objc_msgSend_341(_id, _lib._sel_setThreadPriority_1, value); - } + @__uint32_t() + external int __esr; - int get qualityOfService { - return _lib._objc_msgSend_342(_id, _lib._sel_qualityOfService1); - } + @__uint32_t() + external int __exception; +} - set qualityOfService(int value) { - _lib._objc_msgSend_343(_id, _lib._sel_setQualityOfService_1, value); - } +typedef __uint64_t = ffi.UnsignedLongLong; - NSString? get name { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +class __darwin_arm_thread_state extends ffi.Struct { + @ffi.Array.multi([13]) + external ffi.Array<__uint32_t> __r; - set name(NSString? value) { - _lib._objc_msgSend_331(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); - } + @__uint32_t() + external int __sp; - static NSOperation new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_new1); - return NSOperation._(_ret, _lib, retain: false, release: true); - } + @__uint32_t() + external int __lr; - static NSOperation alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_alloc1); - return NSOperation._(_ret, _lib, retain: false, release: true); - } -} + @__uint32_t() + external int __pc; -abstract class NSOperationQueuePriority { - static const int NSOperationQueuePriorityVeryLow = -8; - static const int NSOperationQueuePriorityLow = -4; - static const int NSOperationQueuePriorityNormal = 0; - static const int NSOperationQueuePriorityHigh = 4; - static const int NSOperationQueuePriorityVeryHigh = 8; + @__uint32_t() + external int __cpsr; } -typedef dispatch_queue_t = ffi.Pointer; -void _ObjCBlock19_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); +class __darwin_arm_thread_state64 extends ffi.Struct { + @ffi.Array.multi([29]) + external ffi.Array<__uint64_t> __x; + + @__uint64_t() + external int __fp; + + @__uint64_t() + external int __lr; + + @__uint64_t() + external int __sp; + + @__uint64_t() + external int __pc; + + @__uint32_t() + external int __cpsr; + + @__uint32_t() + external int __pad; } -final _ObjCBlock19_closureRegistry = {}; -int _ObjCBlock19_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock19_registerClosure(Function fn) { - final id = ++_ObjCBlock19_closureRegistryIndex; - _ObjCBlock19_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); +class __darwin_arm_vfp_state extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array<__uint32_t> __r; + + @__uint32_t() + external int __fpscr; } -void _ObjCBlock19_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock19_closureRegistry[block.ref.target.address]!(arg0); +class __darwin_arm_neon_state64 extends ffi.Opaque {} + +class __darwin_arm_neon_state extends ffi.Opaque {} + +class __arm_pagein_state extends ffi.Struct { + @ffi.Int() + external int __pagein_error; } -class ObjCBlock19 extends _ObjCBlockBase { - ObjCBlock19._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class __arm_legacy_debug_state extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __bvr; - /// Creates a block from a C function pointer. - ObjCBlock19.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock19_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __bcr; - /// Creates a block from a Dart function. - ObjCBlock19.fromFunction( - NativeCupertinoHttp lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock19_closureTrampoline) - .cast(), - _ObjCBlock19_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __wvr; - ffi.Pointer<_ObjCBlock> get pointer => _id; + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __wcr; } -class NSDate extends NSObject { - NSDate._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +class __darwin_arm_debug_state32 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __bvr; - /// Returns a [NSDate] that points to the same underlying object as [other]. - static NSDate castFrom(T other) { - return NSDate._(other._id, other._lib, retain: true, release: true); - } + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __bcr; - /// Returns a [NSDate] that wraps the given raw object pointer. - static NSDate castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSDate._(other, lib, retain: retain, release: release); - } + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __wvr; - /// Returns whether [obj] is an instance of [NSDate]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDate1); - } + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __wcr; - double get timeIntervalSinceReferenceDate { - return _lib._objc_msgSend_85( - _id, _lib._sel_timeIntervalSinceReferenceDate1); - } + @__uint64_t() + external int __mdscr_el1; +} - @override - NSDate init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDate._(_ret, _lib, retain: true, release: true); - } +class __darwin_arm_debug_state64 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __bvr; - NSDate initWithTimeIntervalSinceReferenceDate_(double ti) { - final _ret = _lib._objc_msgSend_351( - _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); - return NSDate._(_ret, _lib, retain: true, release: true); - } + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __bcr; - NSDate initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __wvr; - double timeIntervalSinceDate_(NSDate? anotherDate) { - return _lib._objc_msgSend_352(_id, _lib._sel_timeIntervalSinceDate_1, - anotherDate?._id ?? ffi.nullptr); - } + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __wcr; - double get timeIntervalSinceNow { - return _lib._objc_msgSend_85(_id, _lib._sel_timeIntervalSinceNow1); - } + @__uint64_t() + external int __mdscr_el1; +} - double get timeIntervalSince1970 { - return _lib._objc_msgSend_85(_id, _lib._sel_timeIntervalSince19701); - } +class __darwin_arm_cpmu_state64 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __ctrs; +} - NSObject addTimeInterval_(double seconds) { - final _ret = - _lib._objc_msgSend_351(_id, _lib._sel_addTimeInterval_1, seconds); - return NSObject._(_ret, _lib, retain: true, release: true); - } +class __darwin_mcontext32 extends ffi.Struct { + external __darwin_arm_exception_state __es; - NSDate dateByAddingTimeInterval_(double ti) { - final _ret = - _lib._objc_msgSend_351(_id, _lib._sel_dateByAddingTimeInterval_1, ti); - return NSDate._(_ret, _lib, retain: true, release: true); - } + external __darwin_arm_thread_state __ss; - NSDate earlierDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_353( - _id, _lib._sel_earlierDate_1, anotherDate?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } + external __darwin_arm_vfp_state __fs; +} - NSDate laterDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_353( - _id, _lib._sel_laterDate_1, anotherDate?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } +class __darwin_mcontext64 extends ffi.Opaque {} - int compare_(NSDate? other) { - return _lib._objc_msgSend_354( - _id, _lib._sel_compare_1, other?._id ?? ffi.nullptr); - } +class __darwin_sigaltstack extends ffi.Struct { + external ffi.Pointer ss_sp; - bool isEqualToDate_(NSDate? otherDate) { - return _lib._objc_msgSend_355( - _id, _lib._sel_isEqualToDate_1, otherDate?._id ?? ffi.nullptr); - } + @__darwin_size_t() + external int ss_size; - NSString? get description { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } + @ffi.Int() + external int ss_flags; +} - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_88( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } +class __darwin_ucontext extends ffi.Struct { + @ffi.Int() + external int uc_onstack; - static NSDate date(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_date1); - return NSDate._(_ret, _lib, retain: true, release: true); - } + @__darwin_sigset_t() + external int uc_sigmask; - static NSDate dateWithTimeIntervalSinceNow_( - NativeCupertinoHttp _lib, double secs) { - final _ret = _lib._objc_msgSend_351( - _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); - } + external __darwin_sigaltstack uc_stack; - static NSDate dateWithTimeIntervalSinceReferenceDate_( - NativeCupertinoHttp _lib, double ti) { - final _ret = _lib._objc_msgSend_351(_lib._class_NSDate1, - _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); - return NSDate._(_ret, _lib, retain: true, release: true); - } + external ffi.Pointer<__darwin_ucontext> uc_link; - static NSDate dateWithTimeIntervalSince1970_( - NativeCupertinoHttp _lib, double secs) { - final _ret = _lib._objc_msgSend_351( - _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSince1970_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); - } + @__darwin_size_t() + external int uc_mcsize; - static NSDate dateWithTimeInterval_sinceDate_( - NativeCupertinoHttp _lib, double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_356( - _lib._class_NSDate1, - _lib._sel_dateWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } + external ffi.Pointer<__darwin_mcontext64> uc_mcontext; +} - static NSDate? getDistantFuture(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_357(_lib._class_NSDate1, _lib._sel_distantFuture1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } +typedef __darwin_sigset_t = __uint32_t; - static NSDate? getDistantPast(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_357(_lib._class_NSDate1, _lib._sel_distantPast1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } +class sigval extends ffi.Union { + @ffi.Int() + external int sival_int; - static NSDate? getNow(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_357(_lib._class_NSDate1, _lib._sel_now1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } + external ffi.Pointer sival_ptr; +} - NSDate initWithTimeIntervalSinceNow_(double secs) { - final _ret = _lib._objc_msgSend_351( - _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); - } +class sigevent extends ffi.Struct { + @ffi.Int() + external int sigev_notify; - NSDate initWithTimeIntervalSince1970_(double secs) { - final _ret = _lib._objc_msgSend_351( - _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); - } + @ffi.Int() + external int sigev_signo; - NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_356( - _id, - _lib._sel_initWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } + external sigval sigev_value; - static NSDate new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_new1); - return NSDate._(_ret, _lib, retain: false, release: true); - } + external ffi.Pointer> + sigev_notify_function; - static NSDate alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_alloc1); - return NSDate._(_ret, _lib, retain: false, release: true); - } + external ffi.Pointer sigev_notify_attributes; } -typedef NSTimeInterval = ffi.Double; +typedef pthread_attr_t = __darwin_pthread_attr_t; +typedef __darwin_pthread_attr_t = _opaque_pthread_attr_t; -/// ! -/// @enum NSURLRequestCachePolicy -/// -/// @discussion The NSURLRequestCachePolicy enum defines constants that -/// can be used to specify the type of interactions that take place with -/// the caching system when the URL loading system processes a request. -/// Specifically, these constants cover interactions that have to do -/// with whether already-existing cache data is returned to satisfy a -/// URL load request. -/// -/// @constant NSURLRequestUseProtocolCachePolicy Specifies that the -/// caching logic defined in the protocol implementation, if any, is -/// used for a particular URL load request. This is the default policy -/// for URL load requests. -/// -/// @constant NSURLRequestReloadIgnoringLocalCacheData Specifies that the -/// data for the URL load should be loaded from the origin source. No -/// existing local cache data, regardless of its freshness or validity, -/// should be used to satisfy a URL load request. -/// -/// @constant NSURLRequestReloadIgnoringLocalAndRemoteCacheData Specifies that -/// not only should the local cache data be ignored, but that proxies and -/// other intermediates should be instructed to disregard their caches -/// so far as the protocol allows. -/// -/// @constant NSURLRequestReloadIgnoringCacheData Older name for -/// NSURLRequestReloadIgnoringLocalCacheData. -/// -/// @constant NSURLRequestReturnCacheDataElseLoad Specifies that the -/// existing cache data should be used to satisfy a URL load request, -/// regardless of its age or expiration date. However, if there is no -/// existing data in the cache corresponding to a URL load request, -/// the URL is loaded from the origin source. -/// -/// @constant NSURLRequestReturnCacheDataDontLoad Specifies that the -/// existing cache data should be used to satisfy a URL load request, -/// regardless of its age or expiration date. However, if there is no -/// existing data in the cache corresponding to a URL load request, no -/// attempt is made to load the URL from the origin source, and the -/// load is considered to have failed. This constant specifies a -/// behavior that is similar to an "offline" mode. -/// -/// @constant NSURLRequestReloadRevalidatingCacheData Specifies that -/// the existing cache data may be used provided the origin source -/// confirms its validity, otherwise the URL is loaded from the -/// origin source. -abstract class NSURLRequestCachePolicy { - static const int NSURLRequestUseProtocolCachePolicy = 0; - static const int NSURLRequestReloadIgnoringLocalCacheData = 1; - static const int NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4; - static const int NSURLRequestReloadIgnoringCacheData = 1; - static const int NSURLRequestReturnCacheDataElseLoad = 2; - static const int NSURLRequestReturnCacheDataDontLoad = 3; - static const int NSURLRequestReloadRevalidatingCacheData = 5; -} +class __siginfo extends ffi.Struct { + @ffi.Int() + external int si_signo; -/// ! -/// @enum NSURLRequestNetworkServiceType -/// -/// @discussion The NSURLRequestNetworkServiceType enum defines constants that -/// can be used to specify the service type to associate with this request. The -/// service type is used to provide the networking layers a hint of the purpose -/// of the request. -/// -/// @constant NSURLNetworkServiceTypeDefault Is the default value for an NSURLRequest -/// when created. This value should be left unchanged for the vast majority of requests. -/// -/// @constant NSURLNetworkServiceTypeVoIP Specifies that the request is for voice over IP -/// control traffic. -/// -/// @constant NSURLNetworkServiceTypeVideo Specifies that the request is for video -/// traffic. -/// -/// @constant NSURLNetworkServiceTypeBackground Specifies that the request is for background -/// traffic (such as a file download). -/// -/// @constant NSURLNetworkServiceTypeVoice Specifies that the request is for voice data. -/// -/// @constant NSURLNetworkServiceTypeResponsiveData Specifies that the request is for responsive (time sensitive) data. -/// -/// @constant NSURLNetworkServiceTypeAVStreaming Specifies that the request is streaming audio/video data. -/// -/// @constant NSURLNetworkServiceTypeResponsiveAV Specifies that the request is for responsive (time sensitive) audio/video data. -/// -/// @constant NSURLNetworkServiceTypeCallSignaling Specifies that the request is for call signaling. -abstract class NSURLRequestNetworkServiceType { - /// Standard internet traffic - static const int NSURLNetworkServiceTypeDefault = 0; + @ffi.Int() + external int si_errno; - /// Voice over IP control traffic - static const int NSURLNetworkServiceTypeVoIP = 1; + @ffi.Int() + external int si_code; - /// Video traffic - static const int NSURLNetworkServiceTypeVideo = 2; + @pid_t() + external int si_pid; - /// Background traffic - static const int NSURLNetworkServiceTypeBackground = 3; + @uid_t() + external int si_uid; - /// Voice data - static const int NSURLNetworkServiceTypeVoice = 4; + @ffi.Int() + external int si_status; - /// Responsive data - static const int NSURLNetworkServiceTypeResponsiveData = 6; + external ffi.Pointer si_addr; - /// Multimedia Audio/Video Streaming - static const int NSURLNetworkServiceTypeAVStreaming = 8; + external sigval si_value; - /// Responsive Multimedia Audio/Video - static const int NSURLNetworkServiceTypeResponsiveAV = 9; + @ffi.Long() + external int si_band; - /// Call Signaling - static const int NSURLNetworkServiceTypeCallSignaling = 11; + @ffi.Array.multi([7]) + external ffi.Array __pad; } -/// ! -/// @enum NSURLRequestAttribution -/// -/// @discussion The NSURLRequestAttribution enum is used to indicate whether the -/// user or developer specified the URL. -/// -/// @constant NSURLRequestAttributionDeveloper Indicates that the URL was specified -/// by the developer. This is the default value for an NSURLRequest when created. -/// -/// @constant NSURLRequestAttributionUser Indicates that the URL was specified by -/// the user. -abstract class NSURLRequestAttribution { - static const int NSURLRequestAttributionDeveloper = 0; - static const int NSURLRequestAttributionUser = 1; +typedef pid_t = __darwin_pid_t; +typedef __darwin_pid_t = __int32_t; +typedef uid_t = __darwin_uid_t; +typedef __darwin_uid_t = __uint32_t; + +class __sigaction_u extends ffi.Union { + external ffi.Pointer> + __sa_handler; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int, ffi.Pointer<__siginfo>, ffi.Pointer)>> + __sa_sigaction; } -/// ! -/// @class NSURLRequest -/// -/// @abstract An NSURLRequest object represents a URL load request in a -/// manner independent of protocol and URL scheme. -/// -/// @discussion NSURLRequest encapsulates two basic data elements about -/// a URL load request: -///

    -///
  • The URL to load. -///
  • The policy to use when consulting the URL content cache made -/// available by the implementation. -///
-/// In addition, NSURLRequest is designed to be extended to support -/// protocol-specific data by adding categories to access a property -/// object provided in an interface targeted at protocol implementors. -///
    -///
  • Protocol implementors should direct their attention to the -/// NSURLRequestExtensibility category on NSURLRequest for more -/// information on how to provide extensions on NSURLRequest to -/// support protocol-specific request information. -///
  • Clients of this API who wish to create NSURLRequest objects to -/// load URL content should consult the protocol-specific NSURLRequest -/// categories that are available. The NSHTTPURLRequest category on -/// NSURLRequest is an example. -///
-///

-/// Objects of this class are used to create NSURLConnection instances, -/// which can are used to perform the load of a URL, or as input to the -/// NSURLConnection class method which performs synchronous loads. -class NSURLRequest extends NSObject { - NSURLRequest._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +class __sigaction extends ffi.Struct { + external __sigaction_u __sigaction_u1; - /// Returns a [NSURLRequest] that points to the same underlying object as [other]. - static NSURLRequest castFrom(T other) { - return NSURLRequest._(other._id, other._lib, retain: true, release: true); - } + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Int, + ffi.Pointer, ffi.Pointer)>> sa_tramp; - /// Returns a [NSURLRequest] that wraps the given raw object pointer. - static NSURLRequest castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLRequest._(other, lib, retain: retain, release: release); - } + @sigset_t() + external int sa_mask; - /// Returns whether [obj] is an instance of [NSURLRequest]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLRequest1); - } + @ffi.Int() + external int sa_flags; +} - /// ! - /// @method requestWithURL: - /// @abstract Allocates and initializes an NSURLRequest with the given - /// URL. - /// @discussion Default values are used for cache policy - /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 - /// seconds). - /// @param URL The URL for the request. - /// @result A newly-created and autoreleased NSURLRequest instance. - static NSURLRequest requestWithURL_(NativeCupertinoHttp _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); - return NSURLRequest._(_ret, _lib, retain: true, release: true); - } +typedef siginfo_t = __siginfo; +typedef sigset_t = __darwin_sigset_t; - /// ! - /// @property supportsSecureCoding - /// @abstract Indicates that NSURLRequest implements the NSSecureCoding protocol. - /// @result A BOOL value set to YES. - static bool getSupportsSecureCoding(NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_11( - _lib._class_NSURLRequest1, _lib._sel_supportsSecureCoding1); - } +class sigaction extends ffi.Struct { + external __sigaction_u __sigaction_u1; - /// ! - /// @method requestWithURL:cachePolicy:timeoutInterval: - /// @abstract Allocates and initializes a NSURLRequest with the given - /// URL and cache policy. - /// @param URL The URL for the request. - /// @param cachePolicy The cache policy for the request. - /// @param timeoutInterval The timeout interval for the request. See the - /// commentary for the timeoutInterval for more information on - /// timeout intervals. - /// @result A newly-created and autoreleased NSURLRequest instance. - static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( - NativeCupertinoHttp _lib, - NSURL? URL, - int cachePolicy, - double timeoutInterval) { - final _ret = _lib._objc_msgSend_358( - _lib._class_NSURLRequest1, - _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSURLRequest._(_ret, _lib, retain: true, release: true); - } + @sigset_t() + external int sa_mask; - /// ! - /// @method initWithURL: - /// @abstract Initializes an NSURLRequest with the given URL. - /// @discussion Default values are used for cache policy - /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 - /// seconds). - /// @param URL The URL for the request. - /// @result An initialized NSURLRequest. - NSURLRequest initWithURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_201( - _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); - return NSURLRequest._(_ret, _lib, retain: true, release: true); - } + @ffi.Int() + external int sa_flags; +} - /// ! - /// @method initWithURL: - /// @abstract Initializes an NSURLRequest with the given URL and - /// cache policy. - /// @discussion This is the designated initializer for the - /// NSURLRequest class. - /// @param URL The URL for the request. - /// @param cachePolicy The cache policy for the request. - /// @param timeoutInterval The timeout interval for the request. See the - /// commentary for the timeoutInterval for more information on - /// timeout intervals. - /// @result An initialized NSURLRequest. - NSURLRequest initWithURL_cachePolicy_timeoutInterval_( - NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_358( - _id, - _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSURLRequest._(_ret, _lib, retain: true, release: true); - } +class sigvec extends ffi.Struct { + external ffi.Pointer> + sv_handler; - /// ! - /// @abstract Returns the URL of the receiver. - /// @result The URL of the receiver. - NSURL? get URL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } + @ffi.Int() + external int sv_mask; - /// ! - /// @abstract Returns the cache policy of the receiver. - /// @result The cache policy of the receiver. - int get cachePolicy { - return _lib._objc_msgSend_359(_id, _lib._sel_cachePolicy1); - } + @ffi.Int() + external int sv_flags; +} - /// ! - /// @abstract Returns the timeout interval of the receiver. - /// @discussion The timeout interval specifies the limit on the idle - /// interval allotted to a request in the process of loading. The "idle - /// interval" is defined as the period of time that has passed since the - /// last instance of load activity occurred for a request that is in the - /// process of loading. Hence, when an instance of load activity occurs - /// (e.g. bytes are received from the network for a request), the idle - /// interval for a request is reset to 0. If the idle interval ever - /// becomes greater than or equal to the timeout interval, the request - /// is considered to have timed out. This timeout interval is measured - /// in seconds. - /// @result The timeout interval of the receiver. - double get timeoutInterval { - return _lib._objc_msgSend_85(_id, _lib._sel_timeoutInterval1); - } +class sigstack extends ffi.Struct { + external ffi.Pointer ss_sp; - /// ! - /// @abstract The main document URL associated with this load. - /// @discussion This URL is used for the cookie "same domain as main - /// document" policy, and attributing the request as a sub-resource - /// of a user-specified URL. There may also be other future uses. - /// See setMainDocumentURL: - /// @result The main document URL. - NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_mainDocumentURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } + @ffi.Int() + external int ss_onstack; +} - /// ! - /// @abstract Returns the NSURLRequestNetworkServiceType associated with this request. - /// @discussion This will return NSURLNetworkServiceTypeDefault for requests that have - /// not explicitly set a networkServiceType (using the setNetworkServiceType method). - /// @result The NSURLRequestNetworkServiceType associated with this request. - int get networkServiceType { - return _lib._objc_msgSend_360(_id, _lib._sel_networkServiceType1); - } +typedef pthread_t = __darwin_pthread_t; +typedef __darwin_pthread_t = ffi.Pointer<_opaque_pthread_t>; +typedef stack_t = __darwin_sigaltstack; - /// ! - /// @abstract returns whether a connection created with this request is allowed to use - /// the built in cellular radios (if present). - /// @result YES if the receiver is allowed to use the built in cellular radios to - /// satisfy the request, NO otherwise. - bool get allowsCellularAccess { - return _lib._objc_msgSend_11(_id, _lib._sel_allowsCellularAccess1); - } +class __sbuf extends ffi.Struct { + external ffi.Pointer _base; - /// ! - /// @abstract returns whether a connection created with this request is allowed to use - /// network interfaces which have been marked as expensive. - /// @result YES if the receiver is allowed to use an interface marked as expensive to - /// satisfy the request, NO otherwise. - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_11(_id, _lib._sel_allowsExpensiveNetworkAccess1); - } + @ffi.Int() + external int _size; +} - /// ! - /// @abstract returns whether a connection created with this request is allowed to use - /// network interfaces which have been marked as constrained. - /// @result YES if the receiver is allowed to use an interface marked as constrained to - /// satisfy the request, NO otherwise. - bool get allowsConstrainedNetworkAccess { - return _lib._objc_msgSend_11( - _id, _lib._sel_allowsConstrainedNetworkAccess1); - } +class __sFILEX extends ffi.Opaque {} - /// ! - /// @abstract returns whether we assume that server supports HTTP/3. Enables QUIC - /// racing without HTTP/3 service discovery. - /// @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 { - return _lib._objc_msgSend_11(_id, _lib._sel_assumesHTTP3Capable1); - } +class __sFILE extends ffi.Struct { + external ffi.Pointer _p; - /// ! - /// @abstract Returns the NSURLRequestAttribution associated with this request. - /// @discussion This will return NSURLRequestAttributionDeveloper for requests that - /// have not explicitly set an attribution. - /// @result The NSURLRequestAttribution associated with this request. - int get attribution { - return _lib._objc_msgSend_361(_id, _lib._sel_attribution1); - } + @ffi.Int() + external int _r; - /// ! - /// @abstract sets whether a request is required to do DNSSEC validation during DNS lookup. - /// @discussion YES, if the DNS lookup for this request should require DNSSEC validation, - /// No otherwise. Defaults to NO. - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_11(_id, _lib._sel_requiresDNSSECValidation1); - } + @ffi.Int() + external int _w; - /// ! - /// @abstract Returns the HTTP request method of the receiver. - /// @result the HTTP request method of the receiver. - NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_HTTPMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } + @ffi.Short() + external int _flags; - /// ! - /// @abstract Returns a dictionary containing all the HTTP header fields - /// of the receiver. - /// @result a dictionary containing all the HTTP header fields of the - /// receiver. - NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_allHTTPHeaderFields1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } + @ffi.Short() + external int _file; - /// ! - /// @method valueForHTTPHeaderField: - /// @abstract Returns the value which corresponds to the given header - /// field. Note that, in keeping with the HTTP RFC, HTTP header field - /// names are case-insensitive. - /// @param field the header field name to use for the lookup - /// (case-insensitive). - /// @result the value associated with the given header field, or nil if - /// there is no value associated with the given header field. - NSString valueForHTTPHeaderField_(NSString? field) { - final _ret = _lib._objc_msgSend_98( - _id, _lib._sel_valueForHTTPHeaderField_1, field?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } + external __sbuf _bf; - /// ! - /// @abstract Returns the request body data of the receiver. - /// @discussion This data is sent as the message body of the request, as - /// in done in an HTTP POST request. - /// @result The request body data of the receiver. - NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_HTTPBody1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } + @ffi.Int() + external int _lbfsize; - /// ! - /// @abstract Returns the request body stream of the receiver - /// if any has been set - /// @discussion The stream is returned for examination only; it is - /// not safe for the caller to manipulate the stream in any way. Also - /// note that the HTTPBodyStream and HTTPBody are mutually exclusive - only - /// one can be set on a given request. Also note that the body stream is - /// preserved across copies, but is LOST when the request is coded via the - /// NSCoding protocol - /// @result The request body stream of the receiver. - NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_362(_id, _lib._sel_HTTPBodyStream1); - return _ret.address == 0 - ? null - : NSInputStream._(_ret, _lib, retain: true, release: true); - } + external ffi.Pointer _cookie; - /// ! - /// @abstract Determine whether default cookie handling will happen for - /// this request. - /// @discussion NOTE: This value is not used prior to 10.3 - /// @result YES if cookies will be sent with and set for this request; - /// otherwise NO. - bool get HTTPShouldHandleCookies { - return _lib._objc_msgSend_11(_id, _lib._sel_HTTPShouldHandleCookies1); - } + external ffi + .Pointer)>> + _close; - /// ! - /// @abstract Reports whether the receiver is not expected to wait for the - /// previous response before transmitting. - /// @result YES if the receiver should transmit before the previous response - /// is received. NO if the receiver should wait for the previous response - /// before transmitting. - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_11(_id, _lib._sel_HTTPShouldUsePipelining1); - } + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer, ffi.Int)>> _read; - static NSURLRequest new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_new1); - return NSURLRequest._(_ret, _lib, retain: false, release: true); - } + external ffi.Pointer< + ffi.NativeFunction< + fpos_t Function(ffi.Pointer, fpos_t, ffi.Int)>> _seek; - static NSURLRequest alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_alloc1); - return NSURLRequest._(_ret, _lib, retain: false, release: true); - } + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer, ffi.Int)>> _write; + + external __sbuf _ub; + + external ffi.Pointer<__sFILEX> _extra; + + @ffi.Int() + external int _ur; + + @ffi.Array.multi([3]) + external ffi.Array _ubuf; + + @ffi.Array.multi([1]) + external ffi.Array _nbuf; + + external __sbuf _lb; + + @ffi.Int() + external int _blksize; + + @fpos_t() + external int _offset; } -class NSInputStream extends _ObjCWrapper { - NSInputStream._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +typedef fpos_t = __darwin_off_t; +typedef __darwin_off_t = __int64_t; +typedef __int64_t = ffi.LongLong; +typedef FILE = __sFILE; +typedef off_t = __darwin_off_t; +typedef ssize_t = __darwin_ssize_t; +typedef __darwin_ssize_t = ffi.Long; - /// Returns a [NSInputStream] that points to the same underlying object as [other]. - static NSInputStream castFrom(T other) { - return NSInputStream._(other._id, other._lib, retain: true, release: true); - } +abstract class idtype_t { + static const int P_ALL = 0; + static const int P_PID = 1; + static const int P_PGID = 2; +} - /// Returns a [NSInputStream] that wraps the given raw object pointer. - static NSInputStream castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSInputStream._(other, lib, retain: retain, release: release); - } +class timeval extends ffi.Struct { + @__darwin_time_t() + external int tv_sec; - /// Returns whether [obj] is an instance of [NSInputStream]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInputStream1); - } + @__darwin_suseconds_t() + external int tv_usec; } -/// ! -/// @class NSMutableURLRequest -/// -/// @abstract An NSMutableURLRequest object represents a mutable URL load -/// request in a manner independent of protocol and URL scheme. -/// -/// @discussion This specialization of NSURLRequest is provided to aid -/// developers who may find it more convenient to mutate a single request -/// object for a series of URL loads instead of creating an immutable -/// NSURLRequest for each load. This programming model is supported by -/// the following contract stipulation between NSMutableURLRequest and -/// NSURLConnection: NSURLConnection makes a deep copy of each -/// NSMutableURLRequest object passed to one of its initializers. -///

NSMutableURLRequest is designed to be extended to support -/// protocol-specific data by adding categories to access a property -/// object provided in an interface targeted at protocol implementors. -///

    -///
  • Protocol implementors should direct their attention to the -/// NSMutableURLRequestExtensibility category on -/// NSMutableURLRequest for more information on how to provide -/// extensions on NSMutableURLRequest to support protocol-specific -/// request information. -///
  • Clients of this API who wish to create NSMutableURLRequest -/// objects to load URL content should consult the protocol-specific -/// NSMutableURLRequest categories that are available. The -/// NSMutableHTTPURLRequest category on NSMutableURLRequest is an -/// example. -///
-class NSMutableURLRequest extends NSURLRequest { - NSMutableURLRequest._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +typedef __darwin_time_t = ffi.Long; +typedef __darwin_suseconds_t = __int32_t; - /// Returns a [NSMutableURLRequest] that points to the same underlying object as [other]. - static NSMutableURLRequest castFrom(T other) { - return NSMutableURLRequest._(other._id, other._lib, - retain: true, release: true); - } +class rusage extends ffi.Struct { + external timeval ru_utime; - /// Returns a [NSMutableURLRequest] that wraps the given raw object pointer. - static NSMutableURLRequest castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableURLRequest._(other, lib, retain: retain, release: release); - } + external timeval ru_stime; - /// Returns whether [obj] is an instance of [NSMutableURLRequest]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableURLRequest1); - } + @ffi.Long() + external int ru_maxrss; - /// ! - /// @abstract The URL of the receiver. - @override - NSURL? get URL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } + @ffi.Long() + external int ru_ixrss; - /// ! - /// @abstract The URL of the receiver. - set URL(NSURL? value) { - _lib._objc_msgSend_336(_id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); - } + @ffi.Long() + external int ru_idrss; - /// ! - /// @abstract The cache policy of the receiver. - @override - int get cachePolicy { - return _lib._objc_msgSend_359(_id, _lib._sel_cachePolicy1); - } + @ffi.Long() + external int ru_isrss; - /// ! - /// @abstract The cache policy of the receiver. - set cachePolicy(int value) { - _lib._objc_msgSend_363(_id, _lib._sel_setCachePolicy_1, value); - } + @ffi.Long() + external int ru_minflt; - /// ! - /// @abstract Sets the timeout interval of the receiver. - /// @discussion The timeout interval specifies the limit on the idle - /// interval allotted to a request in the process of loading. The "idle - /// interval" is defined as the period of time that has passed since the - /// last instance of load activity occurred for a request that is in the - /// process of loading. Hence, when an instance of load activity occurs - /// (e.g. bytes are received from the network for a request), the idle - /// interval for a request is reset to 0. If the idle interval ever - /// becomes greater than or equal to the timeout interval, the request - /// is considered to have timed out. This timeout interval is measured - /// in seconds. - @override - double get timeoutInterval { - return _lib._objc_msgSend_85(_id, _lib._sel_timeoutInterval1); - } + @ffi.Long() + external int ru_majflt; - /// ! - /// @abstract Sets the timeout interval of the receiver. - /// @discussion The timeout interval specifies the limit on the idle - /// interval allotted to a request in the process of loading. The "idle - /// interval" is defined as the period of time that has passed since the - /// last instance of load activity occurred for a request that is in the - /// process of loading. Hence, when an instance of load activity occurs - /// (e.g. bytes are received from the network for a request), the idle - /// interval for a request is reset to 0. If the idle interval ever - /// becomes greater than or equal to the timeout interval, the request - /// is considered to have timed out. This timeout interval is measured - /// in seconds. - set timeoutInterval(double value) { - _lib._objc_msgSend_341(_id, _lib._sel_setTimeoutInterval_1, value); - } + @ffi.Long() + external int ru_nswap; - /// ! - /// @abstract Sets the main document URL - /// @discussion The caller should pass the URL for an appropriate main - /// document, if known. For example, when loading a web page, the URL - /// of the main html document for the top-level frame should be - /// passed. This main document is used to implement the cookie "only - /// from same domain as main document" policy, attributing this request - /// as a sub-resource of a user-specified URL, and possibly other things - /// in the future. - @override - NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_mainDocumentURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } + @ffi.Long() + external int ru_inblock; - /// ! - /// @abstract Sets the main document URL - /// @discussion The caller should pass the URL for an appropriate main - /// document, if known. For example, when loading a web page, the URL - /// of the main html document for the top-level frame should be - /// passed. This main document is used to implement the cookie "only - /// from same domain as main document" policy, attributing this request - /// as a sub-resource of a user-specified URL, and possibly other things - /// in the future. - set mainDocumentURL(NSURL? value) { - _lib._objc_msgSend_336( - _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); - } + @ffi.Long() + external int ru_oublock; - /// ! - /// @abstract Sets the NSURLRequestNetworkServiceType to associate with this request - /// @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. - @override - int get networkServiceType { - return _lib._objc_msgSend_360(_id, _lib._sel_networkServiceType1); - } + @ffi.Long() + external int ru_msgsnd; - /// ! - /// @abstract Sets the NSURLRequestNetworkServiceType to associate with this request - /// @discussion This method is used to provide the network layers with a hint as to the purpose - /// of the request. Most clients should not need to use this method. - set networkServiceType(int value) { - _lib._objc_msgSend_364(_id, _lib._sel_setNetworkServiceType_1, value); - } + @ffi.Long() + external int ru_msgrcv; - /// ! - /// @abstract sets whether a connection created with this request is allowed to use - /// the built in cellular radios (if present). - /// @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. - @override - bool get allowsCellularAccess { - return _lib._objc_msgSend_11(_id, _lib._sel_allowsCellularAccess1); - } + @ffi.Long() + external int ru_nsignals; - /// ! - /// @abstract sets whether a connection created with this request is allowed to use - /// the built in cellular radios (if present). - /// @discussion NO if the receiver should not be allowed to use the built in - /// cellular radios to satisfy the request, YES otherwise. The default is YES. - set allowsCellularAccess(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setAllowsCellularAccess_1, value); - } + @ffi.Long() + external int ru_nvcsw; - /// ! - /// @abstract sets whether a connection created with this request is allowed to use - /// network interfaces which have been marked as expensive. - /// @discussion NO if the receiver should not be allowed to use an interface marked as expensive to - /// satisfy the request, YES otherwise. - @override - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_11(_id, _lib._sel_allowsExpensiveNetworkAccess1); - } + @ffi.Long() + external int ru_nivcsw; +} - /// ! - /// @abstract sets whether a connection created with this request is allowed to use - /// network interfaces which have been marked as expensive. - /// @discussion NO if the receiver should not be allowed to use an interface marked as expensive to - /// satisfy the request, YES otherwise. - set allowsExpensiveNetworkAccess(bool value) { - _lib._objc_msgSend_332( - _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); - } +class rusage_info_v0 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; - /// ! - /// @abstract sets whether a connection created with this request is allowed to use - /// network interfaces which have been marked as constrained. - /// @discussion NO if the receiver should not be allowed to use an interface marked as constrained to - /// satisfy the request, YES otherwise. - @override - bool get allowsConstrainedNetworkAccess { - return _lib._objc_msgSend_11( - _id, _lib._sel_allowsConstrainedNetworkAccess1); - } + @ffi.Uint64() + external int ri_user_time; - /// ! - /// @abstract sets whether a connection created with this request is allowed to use - /// network interfaces which have been marked as constrained. - /// @discussion NO if the receiver should not be allowed to use an interface marked as constrained to - /// satisfy the request, YES otherwise. - set allowsConstrainedNetworkAccess(bool value) { - _lib._objc_msgSend_332( - _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); - } + @ffi.Uint64() + external int ri_system_time; - /// ! - /// @abstract returns whether we assume that server supports HTTP/3. Enables QUIC - /// racing without HTTP/3 service discovery. - /// @result YES if server endpoint is known to support HTTP/3. Defaults to NO. - /// The default may be YES in a future OS update. - @override - bool get assumesHTTP3Capable { - return _lib._objc_msgSend_11(_id, _lib._sel_assumesHTTP3Capable1); - } + @ffi.Uint64() + external int ri_pkg_idle_wkups; - /// ! - /// @abstract returns whether we assume that server supports HTTP/3. Enables QUIC - /// racing without HTTP/3 service discovery. - /// @result YES if server endpoint is known to support HTTP/3. Defaults to NO. - /// The default may be YES in a future OS update. - set assumesHTTP3Capable(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setAssumesHTTP3Capable_1, value); - } + @ffi.Uint64() + external int ri_interrupt_wkups; - /// ! - /// @abstract Sets the NSURLRequestAttribution to associate with this request. - /// @discussion Set to NSURLRequestAttributionUser if the URL was specified by the - /// user. Defaults to NSURLRequestAttributionDeveloper. - @override - int get attribution { - return _lib._objc_msgSend_361(_id, _lib._sel_attribution1); - } + @ffi.Uint64() + external int ri_pageins; - /// ! - /// @abstract Sets the NSURLRequestAttribution to associate with this request. - /// @discussion Set to NSURLRequestAttributionUser if the URL was specified by the - /// user. Defaults to NSURLRequestAttributionDeveloper. - set attribution(int value) { - _lib._objc_msgSend_365(_id, _lib._sel_setAttribution_1, value); - } + @ffi.Uint64() + external int ri_wired_size; - /// ! - /// @abstract sets whether a request is required to do DNSSEC validation during DNS lookup. - /// @discussion YES, if the DNS lookup for this request should require DNSSEC validation, - /// No otherwise. Defaults to NO. - @override - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_11(_id, _lib._sel_requiresDNSSECValidation1); - } + @ffi.Uint64() + external int ri_resident_size; - /// ! - /// @abstract sets whether a request is required to do DNSSEC validation during DNS lookup. - /// @discussion YES, if the DNS lookup for this request should require DNSSEC validation, - /// No otherwise. Defaults to NO. - set requiresDNSSECValidation(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setRequiresDNSSECValidation_1, value); - } + @ffi.Uint64() + external int ri_phys_footprint; - /// ! - /// @abstract Sets the HTTP request method of the receiver. - @override - NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_HTTPMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_proc_start_abstime; - /// ! - /// @abstract Sets the HTTP request method of the receiver. - set HTTPMethod(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setHTTPMethod_1, value?._id ?? ffi.nullptr); - } + @ffi.Uint64() + external int ri_proc_exit_abstime; +} - /// ! - /// @abstract Sets the HTTP header fields of the receiver to the given - /// dictionary. - /// @discussion This method replaces all header fields that may have - /// existed before this method call. - ///

Since HTTP header fields must be string values, each object and - /// key in the dictionary passed to this method must answer YES when - /// sent an -isKindOfClass:[NSString class] message. If either - /// the key or value for a key-value pair answers NO when sent this - /// message, the key-value pair is skipped. - @override - NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_allHTTPHeaderFields1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } +class rusage_info_v1 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; - /// ! - /// @abstract Sets the HTTP header fields of the receiver to the given - /// dictionary. - /// @discussion This method replaces all header fields that may have - /// existed before this method call. - ///

Since HTTP header fields must be string values, each object and - /// key in the dictionary passed to this method must answer YES when - /// sent an -isKindOfClass:[NSString class] message. If either - /// the key or value for a key-value pair answers NO when sent this - /// message, the key-value pair is skipped. - set allHTTPHeaderFields(NSDictionary? value) { - _lib._objc_msgSend_366( - _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); - } + @ffi.Uint64() + external int ri_user_time; - /// ! - /// @method setValue:forHTTPHeaderField: - /// @abstract Sets the value of the given HTTP header field. - /// @discussion If a value was previously set for the given header - /// field, that value is replaced with the given value. Note that, in - /// keeping with the HTTP RFC, HTTP header field names are - /// case-insensitive. - /// @param value the header field value. - /// @param field the header field name (case-insensitive). - void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { - return _lib._objc_msgSend_367(_id, _lib._sel_setValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); - } + @ffi.Uint64() + external int ri_system_time; - /// ! - /// @method addValue:forHTTPHeaderField: - /// @abstract Adds an HTTP header field in the current header - /// dictionary. - /// @discussion This method provides a way to add values to header - /// fields incrementally. If a value was previously set for the given - /// header field, the given value is appended to the previously-existing - /// value. The appropriate field delimiter, a comma in the case of HTTP, - /// is added by the implementation, and should not be added to the given - /// value by the caller. Note that, in keeping with the HTTP RFC, HTTP - /// header field names are case-insensitive. - /// @param value the header field value. - /// @param field the header field name (case-insensitive). - void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { - return _lib._objc_msgSend_367(_id, _lib._sel_addValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); - } + @ffi.Uint64() + external int ri_pkg_idle_wkups; - /// ! - /// @abstract Sets the request body data of the receiver. - /// @discussion This data is sent as the message body of the request, as - /// in done in an HTTP POST request. - @override - NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_HTTPBody1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_interrupt_wkups; - /// ! - /// @abstract Sets the request body data of the receiver. - /// @discussion This data is sent as the message body of the request, as - /// in done in an HTTP POST request. - set HTTPBody(NSData? value) { - _lib._objc_msgSend_368( - _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); - } + @ffi.Uint64() + external int ri_pageins; - /// ! - /// @abstract Sets the request body to be the contents of the given stream. - /// @discussion The provided stream should be unopened; the request will take - /// over the stream's delegate. The entire stream's contents will be - /// transmitted as the HTTP body of the request. Note that the body stream - /// and the body data (set by setHTTPBody:, above) are mutually exclusive - /// - setting one will clear the other. - @override - NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_362(_id, _lib._sel_HTTPBodyStream1); - return _ret.address == 0 - ? null - : NSInputStream._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_wired_size; - /// ! - /// @abstract Sets the request body to be the contents of the given stream. - /// @discussion The provided stream should be unopened; the request will take - /// over the stream's delegate. The entire stream's contents will be - /// transmitted as the HTTP body of the request. Note that the body stream - /// and the body data (set by setHTTPBody:, above) are mutually exclusive - /// - setting one will clear the other. - set HTTPBodyStream(NSInputStream? value) { - _lib._objc_msgSend_369( - _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); - } + @ffi.Uint64() + external int ri_resident_size; - /// ! - /// @abstract Decide whether default cookie handling will happen for - /// this request (YES if cookies should be sent with and set for this request; - /// otherwise NO). - /// @discussion The default is YES - in other words, cookies are sent from and - /// stored to the cookie manager by default. - /// NOTE: In releases prior to 10.3, this value is ignored - @override - bool get HTTPShouldHandleCookies { - return _lib._objc_msgSend_11(_id, _lib._sel_HTTPShouldHandleCookies1); - } + @ffi.Uint64() + external int ri_phys_footprint; - /// ! - /// @abstract Decide whether default cookie handling will happen for - /// this request (YES if cookies should be sent with and set for this request; - /// otherwise NO). - /// @discussion The default is YES - in other words, cookies are sent from and - /// stored to the cookie manager by default. - /// NOTE: In releases prior to 10.3, this value is ignored - set HTTPShouldHandleCookies(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setHTTPShouldHandleCookies_1, value); - } + @ffi.Uint64() + external int ri_proc_start_abstime; - /// ! - /// @abstract Sets whether the request should not wait for the previous response - /// before transmitting (YES if the receiver should transmit before the previous response is - /// received. NO to wait for the previous response before transmitting) - /// @discussion Calling this method with a YES value does not guarantee HTTP - /// pipelining behavior. This method may have no effect if an HTTP proxy is - /// configured, or if the HTTP request uses an unsafe request method (e.g., POST - /// requests will not pipeline). Pipelining behavior also may not begin until - /// the second request on a given TCP connection. There may be other situations - /// where pipelining does not occur even though YES was set. - /// HTTP 1.1 allows the client to send multiple requests to the server without - /// waiting for a response. Though HTTP 1.1 requires support for pipelining, - /// some servers report themselves as being HTTP 1.1 but do not support - /// pipelining (disconnecting, sending resources misordered, omitting part of - /// a resource, etc.). - @override - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_11(_id, _lib._sel_HTTPShouldUsePipelining1); - } + @ffi.Uint64() + external int ri_proc_exit_abstime; - /// ! - /// @abstract Sets whether the request should not wait for the previous response - /// before transmitting (YES if the receiver should transmit before the previous response is - /// received. NO to wait for the previous response before transmitting) - /// @discussion Calling this method with a YES value does not guarantee HTTP - /// pipelining behavior. This method may have no effect if an HTTP proxy is - /// configured, or if the HTTP request uses an unsafe request method (e.g., POST - /// requests will not pipeline). Pipelining behavior also may not begin until - /// the second request on a given TCP connection. There may be other situations - /// where pipelining does not occur even though YES was set. - /// HTTP 1.1 allows the client to send multiple requests to the server without - /// waiting for a response. Though HTTP 1.1 requires support for pipelining, - /// some servers report themselves as being HTTP 1.1 but do not support - /// pipelining (disconnecting, sending resources misordered, omitting part of - /// a resource, etc.). - set HTTPShouldUsePipelining(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); - } + @ffi.Uint64() + external int ri_child_user_time; - /// ! - /// @method requestWithURL: - /// @abstract Allocates and initializes an NSURLRequest with the given - /// URL. - /// @discussion Default values are used for cache policy - /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 - /// seconds). - /// @param URL The URL for the request. - /// @result A newly-created and autoreleased NSURLRequest instance. - static NSMutableURLRequest requestWithURL_( - NativeCupertinoHttp _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_child_system_time; - /// ! - /// @property supportsSecureCoding - /// @abstract Indicates that NSURLRequest implements the NSSecureCoding protocol. - /// @result A BOOL value set to YES. - static bool getSupportsSecureCoding(NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_11( - _lib._class_NSMutableURLRequest1, _lib._sel_supportsSecureCoding1); - } + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; - /// ! - /// @method requestWithURL:cachePolicy:timeoutInterval: - /// @abstract Allocates and initializes a NSURLRequest with the given - /// URL and cache policy. - /// @param URL The URL for the request. - /// @param cachePolicy The cache policy for the request. - /// @param timeoutInterval The timeout interval for the request. See the - /// commentary for the timeoutInterval for more information on - /// timeout intervals. - /// @result A newly-created and autoreleased NSURLRequest instance. - static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( - NativeCupertinoHttp _lib, - NSURL? URL, - int cachePolicy, - double timeoutInterval) { - final _ret = _lib._objc_msgSend_358( - _lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_child_interrupt_wkups; - static NSMutableURLRequest new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); - return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); - } + @ffi.Uint64() + external int ri_child_pageins; - static NSMutableURLRequest alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableURLRequest1, _lib._sel_alloc1); - return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); - } + @ffi.Uint64() + external int ri_child_elapsed_abstime; } -abstract class NSHTTPCookieAcceptPolicy { - static const int NSHTTPCookieAcceptPolicyAlways = 0; - static const int NSHTTPCookieAcceptPolicyNever = 1; - static const int NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain = 2; -} +class rusage_info_v2 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; -class NSHTTPCookieStorage extends NSObject { - NSHTTPCookieStorage._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + @ffi.Uint64() + external int ri_user_time; - /// Returns a [NSHTTPCookieStorage] that points to the same underlying object as [other]. - static NSHTTPCookieStorage castFrom(T other) { - return NSHTTPCookieStorage._(other._id, other._lib, - retain: true, release: true); - } + @ffi.Uint64() + external int ri_system_time; - /// Returns a [NSHTTPCookieStorage] that wraps the given raw object pointer. - static NSHTTPCookieStorage castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSHTTPCookieStorage._(other, lib, retain: retain, release: release); - } + @ffi.Uint64() + external int ri_pkg_idle_wkups; - /// Returns whether [obj] is an instance of [NSHTTPCookieStorage]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSHTTPCookieStorage1); - } + @ffi.Uint64() + external int ri_interrupt_wkups; - static NSHTTPCookieStorage? getSharedHTTPCookieStorage( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_370( - _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedHTTPCookieStorage1); - return _ret.address == 0 - ? null - : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_pageins; - static NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier_( - NativeCupertinoHttp _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_371( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_sharedCookieStorageForGroupContainerIdentifier_1, - identifier?._id ?? ffi.nullptr); - return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_wired_size; - NSArray? get cookies { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_cookies1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_resident_size; - void setCookie_(NSHTTPCookie? cookie) { - return _lib._objc_msgSend_372( - _id, _lib._sel_setCookie_1, cookie?._id ?? ffi.nullptr); - } + @ffi.Uint64() + external int ri_phys_footprint; - void deleteCookie_(NSHTTPCookie? cookie) { - return _lib._objc_msgSend_372( - _id, _lib._sel_deleteCookie_1, cookie?._id ?? ffi.nullptr); - } + @ffi.Uint64() + external int ri_proc_start_abstime; - void removeCookiesSinceDate_(NSDate? date) { - return _lib._objc_msgSend_373( - _id, _lib._sel_removeCookiesSinceDate_1, date?._id ?? ffi.nullptr); - } + @ffi.Uint64() + external int ri_proc_exit_abstime; - NSArray cookiesForURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_160( - _id, _lib._sel_cookiesForURL_1, URL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_child_user_time; - void setCookies_forURL_mainDocumentURL_( - NSArray? cookies, NSURL? URL, NSURL? mainDocumentURL) { - return _lib._objc_msgSend_374( - _id, - _lib._sel_setCookies_forURL_mainDocumentURL_1, - cookies?._id ?? ffi.nullptr, - URL?._id ?? ffi.nullptr, - mainDocumentURL?._id ?? ffi.nullptr); - } - - int get cookieAcceptPolicy { - return _lib._objc_msgSend_375(_id, _lib._sel_cookieAcceptPolicy1); - } + @ffi.Uint64() + external int ri_child_system_time; - set cookieAcceptPolicy(int value) { - _lib._objc_msgSend_376(_id, _lib._sel_setCookieAcceptPolicy_1, value); - } + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; - NSArray sortedCookiesUsingDescriptors_(NSArray? sortOrder) { - final _ret = _lib._objc_msgSend_97( - _id, - _lib._sel_sortedCookiesUsingDescriptors_1, - sortOrder?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_child_interrupt_wkups; - void storeCookies_forTask_(NSArray? cookies, NSURLSessionTask? task) { - return _lib._objc_msgSend_385(_id, _lib._sel_storeCookies_forTask_1, - cookies?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); - } + @ffi.Uint64() + external int ri_child_pageins; - void getCookiesForTask_completionHandler_( - NSURLSessionTask? task, ObjCBlock20 completionHandler) { - return _lib._objc_msgSend_386( - _id, - _lib._sel_getCookiesForTask_completionHandler_1, - task?._id ?? ffi.nullptr, - completionHandler._id); - } + @ffi.Uint64() + external int ri_child_elapsed_abstime; - static NSHTTPCookieStorage new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPCookieStorage1, _lib._sel_new1); - return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); - } + @ffi.Uint64() + external int ri_diskio_bytesread; - static NSHTTPCookieStorage alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); - return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); - } + @ffi.Uint64() + external int ri_diskio_byteswritten; } -class NSHTTPCookie extends _ObjCWrapper { - NSHTTPCookie._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +class rusage_info_v3 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; - /// Returns a [NSHTTPCookie] that points to the same underlying object as [other]. - static NSHTTPCookie castFrom(T other) { - return NSHTTPCookie._(other._id, other._lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_user_time; - /// Returns a [NSHTTPCookie] that wraps the given raw object pointer. - static NSHTTPCookie castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSHTTPCookie._(other, lib, retain: retain, release: release); - } + @ffi.Uint64() + external int ri_system_time; - /// Returns whether [obj] is an instance of [NSHTTPCookie]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHTTPCookie1); - } -} + @ffi.Uint64() + external int ri_pkg_idle_wkups; -/// NSURLSessionTask - a cancelable object that refers to the lifetime -/// of processing a given request. -class NSURLSessionTask extends NSObject { - NSURLSessionTask._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + @ffi.Uint64() + external int ri_interrupt_wkups; - /// Returns a [NSURLSessionTask] that points to the same underlying object as [other]. - static NSURLSessionTask castFrom(T other) { - return NSURLSessionTask._(other._id, other._lib, - retain: true, release: true); - } + @ffi.Uint64() + external int ri_pageins; - /// Returns a [NSURLSessionTask] that wraps the given raw object pointer. - static NSURLSessionTask castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionTask._(other, lib, retain: retain, release: release); - } + @ffi.Uint64() + external int ri_wired_size; - /// Returns whether [obj] is an instance of [NSURLSessionTask]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionTask1); - } + @ffi.Uint64() + external int ri_resident_size; - /// an identifier for this task, assigned by and unique to the owning session - int get taskIdentifier { - return _lib._objc_msgSend_12(_id, _lib._sel_taskIdentifier1); - } + @ffi.Uint64() + external int ri_phys_footprint; - /// may be nil if this is a stream task - NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_377(_id, _lib._sel_originalRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_proc_start_abstime; - /// may differ from originalRequest due to http server redirection - NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_377(_id, _lib._sel_currentRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_proc_exit_abstime; - /// may be nil if no response has been received - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_379(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_child_user_time; - /// Sets a task-specific delegate. Methods not implemented on this delegate will - /// still be forwarded to the session delegate. - /// - /// Cannot be modified after task resumes. Not supported on background session. - /// - /// Delegate is strongly referenced until the task completes, after which it is - /// reset to `nil`. - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_child_system_time; - /// Sets a task-specific delegate. Methods not implemented on this delegate will - /// still be forwarded to the session delegate. - /// - /// Cannot be modified after task resumes. Not supported on background session. - /// - /// Delegate is strongly referenced until the task completes, after which it is - /// reset to `nil`. - set delegate(NSObject? value) { - _lib._objc_msgSend_380( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); - } + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; - /// NSProgress object which represents the task progress. - /// It can be used for task progress tracking. - NSProgress? get progress { - final _ret = _lib._objc_msgSend_322(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_child_interrupt_wkups; - /// Start the network load for this task no earlier than the specified date. If - /// not specified, no start delay is used. - /// - /// Only applies to tasks created from background NSURLSession instances; has no - /// effect for tasks created from other session types. - NSDate? get earliestBeginDate { - final _ret = _lib._objc_msgSend_357(_id, _lib._sel_earliestBeginDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_child_pageins; - /// Start the network load for this task no earlier than the specified date. If - /// not specified, no start delay is used. - /// - /// Only applies to tasks created from background NSURLSession instances; has no - /// effect for tasks created from other session types. - set earliestBeginDate(NSDate? value) { - _lib._objc_msgSend_381( - _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); - } + @ffi.Uint64() + external int ri_child_elapsed_abstime; - /// The number of bytes that the client expects (a best-guess upper-bound) will - /// be sent and received by this task. These values are used by system scheduling - /// policy. If unspecified, NSURLSessionTransferSizeUnknown is used. - int get countOfBytesClientExpectsToSend { - return _lib._objc_msgSend_329( - _id, _lib._sel_countOfBytesClientExpectsToSend1); - } + @ffi.Uint64() + external int ri_diskio_bytesread; - /// The number of bytes that the client expects (a best-guess upper-bound) will - /// be sent and received by this task. These values are used by system scheduling - /// policy. If unspecified, NSURLSessionTransferSizeUnknown is used. - set countOfBytesClientExpectsToSend(int value) { - _lib._objc_msgSend_330( - _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); - } + @ffi.Uint64() + external int ri_diskio_byteswritten; - int get countOfBytesClientExpectsToReceive { - return _lib._objc_msgSend_329( - _id, _lib._sel_countOfBytesClientExpectsToReceive1); - } + @ffi.Uint64() + external int ri_cpu_time_qos_default; - set countOfBytesClientExpectsToReceive(int value) { - _lib._objc_msgSend_330( - _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); - } + @ffi.Uint64() + external int ri_cpu_time_qos_maintenance; - /// number of body bytes already sent - int get countOfBytesSent { - return _lib._objc_msgSend_329(_id, _lib._sel_countOfBytesSent1); - } + @ffi.Uint64() + external int ri_cpu_time_qos_background; - /// number of body bytes already received - int get countOfBytesReceived { - return _lib._objc_msgSend_329(_id, _lib._sel_countOfBytesReceived1); - } + @ffi.Uint64() + external int ri_cpu_time_qos_utility; - /// number of body bytes we expect to send, derived from the Content-Length of the HTTP request - int get countOfBytesExpectedToSend { - return _lib._objc_msgSend_329(_id, _lib._sel_countOfBytesExpectedToSend1); - } + @ffi.Uint64() + external int ri_cpu_time_qos_legacy; - /// number of byte bytes we expect to receive, usually derived from the Content-Length header of an HTTP response. - int get countOfBytesExpectedToReceive { - return _lib._objc_msgSend_329( - _id, _lib._sel_countOfBytesExpectedToReceive1); - } + @ffi.Uint64() + external int ri_cpu_time_qos_user_initiated; - /// The taskDescription property is available for the developer to - /// provide a descriptive label for the task. - NSString? get taskDescription { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_taskDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_cpu_time_qos_user_interactive; - /// The taskDescription property is available for the developer to - /// provide a descriptive label for the task. - set taskDescription(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); - } + @ffi.Uint64() + external int ri_billed_system_time; - /// -cancel returns immediately, but marks a task as being canceled. - /// The task will signal -URLSession:task:didCompleteWithError: with an - /// error value of { NSURLErrorDomain, NSURLErrorCancelled }. In some - /// cases, the task may signal other work before it acknowledges the - /// cancelation. -cancel may be sent to a task that has been suspended. - void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); - } + @ffi.Uint64() + external int ri_serviced_system_time; +} - /// The current state of the task within the session. - int get state { - return _lib._objc_msgSend_382(_id, _lib._sel_state1); - } +class rusage_info_v4 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; - /// The error, if any, delivered via -URLSession:task:didCompleteWithError: - /// This property will be nil in the event that no error occurred. - NSError? get error { - final _ret = _lib._objc_msgSend_383(_id, _lib._sel_error1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_user_time; - /// Suspending a task will prevent the NSURLSession from continuing to - /// load data. There may still be delegate calls made on behalf of - /// this task (for instance, to report data received while suspending) - /// but no further transmissions will be made on behalf of the task - /// until -resume is sent. The timeout timer associated with the task - /// will be disabled while a task is suspended. -suspend and -resume are - /// nestable. - void suspend() { - return _lib._objc_msgSend_1(_id, _lib._sel_suspend1); - } + @ffi.Uint64() + external int ri_system_time; - void resume() { - return _lib._objc_msgSend_1(_id, _lib._sel_resume1); - } + @ffi.Uint64() + external int ri_pkg_idle_wkups; - /// Sets a scaling factor for the priority of the task. The scaling factor is a - /// value between 0.0 and 1.0 (inclusive), where 0.0 is considered the lowest - /// priority and 1.0 is considered the highest. - /// - /// The priority is a hint and not a hard requirement of task performance. The - /// priority of a task may be changed using this API at any time, but not all - /// protocols support this; in these cases, the last priority that took effect - /// will be used. - /// - /// If no priority is specified, the task will operate with the default priority - /// as defined by the constant NSURLSessionTaskPriorityDefault. Two additional - /// priority levels are provided: NSURLSessionTaskPriorityLow and - /// NSURLSessionTaskPriorityHigh, but use is not restricted to these. - double get priority { - return _lib._objc_msgSend_84(_id, _lib._sel_priority1); - } + @ffi.Uint64() + external int ri_interrupt_wkups; - /// Sets a scaling factor for the priority of the task. The scaling factor is a - /// value between 0.0 and 1.0 (inclusive), where 0.0 is considered the lowest - /// priority and 1.0 is considered the highest. - /// - /// The priority is a hint and not a hard requirement of task performance. The - /// priority of a task may be changed using this API at any time, but not all - /// protocols support this; in these cases, the last priority that took effect - /// will be used. - /// - /// If no priority is specified, the task will operate with the default priority - /// as defined by the constant NSURLSessionTaskPriorityDefault. Two additional - /// priority levels are provided: NSURLSessionTaskPriorityLow and - /// NSURLSessionTaskPriorityHigh, but use is not restricted to these. - set priority(double value) { - _lib._objc_msgSend_384(_id, _lib._sel_setPriority_1, value); - } + @ffi.Uint64() + external int ri_pageins; - /// Provides a hint indicating if incremental delivery of a partial response body - /// would be useful for the application, or if it cannot process the response - /// until it is complete. Indicating that incremental delivery is not desired may - /// improve task performance. For example, if a response cannot be decoded until - /// the entire content is received, set this property to false. - /// - /// Defaults to true unless this task is created with completion-handler based - /// convenience methods, or if it is a download task. - bool get prefersIncrementalDelivery { - return _lib._objc_msgSend_11(_id, _lib._sel_prefersIncrementalDelivery1); - } + @ffi.Uint64() + external int ri_wired_size; - /// Provides a hint indicating if incremental delivery of a partial response body - /// would be useful for the application, or if it cannot process the response - /// until it is complete. Indicating that incremental delivery is not desired may - /// improve task performance. For example, if a response cannot be decoded until - /// the entire content is received, set this property to false. - /// - /// Defaults to true unless this task is created with completion-handler based - /// convenience methods, or if it is a download task. - set prefersIncrementalDelivery(bool value) { - _lib._objc_msgSend_332( - _id, _lib._sel_setPrefersIncrementalDelivery_1, value); - } + @ffi.Uint64() + external int ri_resident_size; - @override - NSURLSessionTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionTask._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_phys_footprint; - static NSURLSessionTask new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_new1); - return NSURLSessionTask._(_ret, _lib, retain: false, release: true); - } + @ffi.Uint64() + external int ri_proc_start_abstime; - static NSURLSessionTask alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_alloc1); - return NSURLSessionTask._(_ret, _lib, retain: false, release: true); - } -} + @ffi.Uint64() + external int ri_proc_exit_abstime; -class NSURLResponse extends NSObject { - NSURLResponse._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + @ffi.Uint64() + external int ri_child_user_time; - /// Returns a [NSURLResponse] that points to the same underlying object as [other]. - static NSURLResponse castFrom(T other) { - return NSURLResponse._(other._id, other._lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_child_system_time; - /// Returns a [NSURLResponse] that wraps the given raw object pointer. - static NSURLResponse castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLResponse._(other, lib, retain: retain, release: release); - } + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; - /// Returns whether [obj] is an instance of [NSURLResponse]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLResponse1); - } + @ffi.Uint64() + external int ri_child_interrupt_wkups; - /// ! - /// @method initWithURL:MIMEType:expectedContentLength:textEncodingName: - /// @abstract Initialize an NSURLResponse with the provided values. - /// @param URL the URL - /// @param MIMEType the MIME content type of the response - /// @param length the expected content length of the associated data - /// @param name the name of the text encoding for the associated data, if applicable, else nil - /// @result The initialized NSURLResponse. - /// @discussion This is the designated initializer for NSURLResponse. - NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( - NSURL? URL, NSString? MIMEType, int length, NSString? name) { - final _ret = _lib._objc_msgSend_378( - _id, - _lib._sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1, - URL?._id ?? ffi.nullptr, - MIMEType?._id ?? ffi.nullptr, - length, - name?._id ?? ffi.nullptr); - return NSURLResponse._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_child_pageins; - /// ! - /// @abstract Returns the URL of the receiver. - /// @result The URL of the receiver. - NSURL? get URL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_child_elapsed_abstime; - /// ! - /// @abstract Returns the MIME type of the receiver. - /// @discussion The MIME type is based on the information provided - /// from an origin source. However, that value may be changed or - /// corrected by a protocol implementation if it can be determined - /// that the origin server or source reported the information - /// incorrectly or imprecisely. An attempt to guess the MIME type may - /// be made if the origin source did not report any such information. - /// @result The MIME type of the receiver. - NSString? get MIMEType { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_MIMEType1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_diskio_bytesread; - /// ! - /// @abstract Returns the expected content length of the receiver. - /// @discussion Some protocol implementations report a content length - /// as part of delivering load metadata, but not all protocols - /// guarantee the amount of data that will be delivered in actuality. - /// Hence, this method returns an expected amount. Clients should use - /// this value as an advisory, and should be prepared to deal with - /// either more or less data. - /// @result The expected content length of the receiver, or -1 if - /// there is no expectation that can be arrived at regarding expected - /// content length. - int get expectedContentLength { - return _lib._objc_msgSend_82(_id, _lib._sel_expectedContentLength1); - } + @ffi.Uint64() + external int ri_diskio_byteswritten; - /// ! - /// @abstract Returns the name of the text encoding of the receiver. - /// @discussion This name will be the actual string reported by the - /// origin source during the course of performing a protocol-specific - /// URL load. Clients can inspect this string and convert it to an - /// NSStringEncoding or CFStringEncoding using the methods and - /// functions made available in the appropriate framework. - /// @result The name of the text encoding of the receiver, or nil if no - /// text encoding was specified. - NSString? get textEncodingName { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_textEncodingName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_cpu_time_qos_default; - /// ! - /// @abstract Returns a suggested filename if the resource were saved to disk. - /// @discussion The method first checks if the server has specified a filename using the - /// content disposition header. If no valid filename is specified using that mechanism, - /// this method checks the last path component of the URL. If no valid filename can be - /// obtained using the last path component, this method uses the URL's host as the filename. - /// If the URL's host can't be converted to a valid filename, the filename "unknown" is used. - /// In most cases, this method appends the proper file extension based on the MIME type. - /// This method always returns a valid filename. - /// @result A suggested filename to use if saving the resource to disk. - NSString? get suggestedFilename { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_suggestedFilename1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } + @ffi.Uint64() + external int ri_cpu_time_qos_maintenance; - static NSURLResponse new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_new1); - return NSURLResponse._(_ret, _lib, retain: false, release: true); - } + @ffi.Uint64() + external int ri_cpu_time_qos_background; - static NSURLResponse alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); - return NSURLResponse._(_ret, _lib, retain: false, release: true); - } + @ffi.Uint64() + external int ri_cpu_time_qos_utility; + + @ffi.Uint64() + external int ri_cpu_time_qos_legacy; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_initiated; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_interactive; + + @ffi.Uint64() + external int ri_billed_system_time; + + @ffi.Uint64() + external int ri_serviced_system_time; + + @ffi.Uint64() + external int ri_logical_writes; + + @ffi.Uint64() + external int ri_lifetime_max_phys_footprint; + + @ffi.Uint64() + external int ri_instructions; + + @ffi.Uint64() + external int ri_cycles; + + @ffi.Uint64() + external int ri_billed_energy; + + @ffi.Uint64() + external int ri_serviced_energy; + + @ffi.Uint64() + external int ri_interval_max_phys_footprint; + + @ffi.Uint64() + external int ri_runnable_time; } -abstract class NSURLSessionTaskState { - /// The task is currently being serviced by the session - static const int NSURLSessionTaskStateRunning = 0; - static const int NSURLSessionTaskStateSuspended = 1; +class rusage_info_v5 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; - /// The task has been told to cancel. The session will receive a URLSession:task:didCompleteWithError: message. - static const int NSURLSessionTaskStateCanceling = 2; + @ffi.Uint64() + external int ri_user_time; - /// The task has completed and the session will receive no more delegate notifications - static const int NSURLSessionTaskStateCompleted = 3; + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; + + @ffi.Uint64() + external int ri_child_user_time; + + @ffi.Uint64() + external int ri_child_system_time; + + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_child_interrupt_wkups; + + @ffi.Uint64() + external int ri_child_pageins; + + @ffi.Uint64() + external int ri_child_elapsed_abstime; + + @ffi.Uint64() + external int ri_diskio_bytesread; + + @ffi.Uint64() + external int ri_diskio_byteswritten; + + @ffi.Uint64() + external int ri_cpu_time_qos_default; + + @ffi.Uint64() + external int ri_cpu_time_qos_maintenance; + + @ffi.Uint64() + external int ri_cpu_time_qos_background; + + @ffi.Uint64() + external int ri_cpu_time_qos_utility; + + @ffi.Uint64() + external int ri_cpu_time_qos_legacy; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_initiated; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_interactive; + + @ffi.Uint64() + external int ri_billed_system_time; + + @ffi.Uint64() + external int ri_serviced_system_time; + + @ffi.Uint64() + external int ri_logical_writes; + + @ffi.Uint64() + external int ri_lifetime_max_phys_footprint; + + @ffi.Uint64() + external int ri_instructions; + + @ffi.Uint64() + external int ri_cycles; + + @ffi.Uint64() + external int ri_billed_energy; + + @ffi.Uint64() + external int ri_serviced_energy; + + @ffi.Uint64() + external int ri_interval_max_phys_footprint; + + @ffi.Uint64() + external int ri_runnable_time; + + @ffi.Uint64() + external int ri_flags; } -void _ObjCBlock20_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { +class rlimit extends ffi.Struct { + @rlim_t() + external int rlim_cur; + + @rlim_t() + external int rlim_max; +} + +typedef rlim_t = __uint64_t; + +class proc_rlimit_control_wakeupmon extends ffi.Struct { + @ffi.Uint32() + external int wm_flags; + + @ffi.Int32() + external int wm_rate; +} + +typedef id_t = __darwin_id_t; +typedef __darwin_id_t = __uint32_t; + +class wait extends ffi.Opaque {} + +class div_t extends ffi.Struct { + @ffi.Int() + external int quot; + + @ffi.Int() + external int rem; +} + +class ldiv_t extends ffi.Struct { + @ffi.Long() + external int quot; + + @ffi.Long() + external int rem; +} + +class lldiv_t extends ffi.Struct { + @ffi.LongLong() + external int quot; + + @ffi.LongLong() + external int rem; +} + +int _ObjCBlock20_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { return block.ref.target .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction< + int Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); } final _ObjCBlock20_closureRegistry = {}; @@ -70754,9 +70429,9 @@ ffi.Pointer _ObjCBlock20_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -void _ObjCBlock20_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock20_closureRegistry[block.ref.target.address]!(arg0); +int _ObjCBlock20_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock20_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock20 extends _ObjCBlockBase { @@ -70768,599 +70443,221 @@ class ObjCBlock20 extends _ObjCBlockBase { NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> + ffi.Int Function( + ffi.Pointer arg0, ffi.Pointer arg1)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock20_fnPtrTrampoline) + ffi.Int Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock20_fnPtrTrampoline, 0) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock20.fromFunction( - NativeCupertinoHttp lib, void Function(ffi.Pointer arg0) fn) + ObjCBlock20.fromFunction(NativeCupertinoHttp lib, + int Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock20_closureTrampoline) + ffi.Int Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock20_closureTrampoline, 0) .cast(), _ObjCBlock20_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { + int call(ffi.Pointer arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() + ffi.Int Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1)>>() .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); + int Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); } ffi.Pointer<_ObjCBlock> get pointer => _id; } -class CFArrayCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFArrayRetainCallBack retain; - - external CFArrayReleaseCallBack release; +typedef dev_t = __darwin_dev_t; +typedef __darwin_dev_t = __int32_t; +typedef mode_t = __darwin_mode_t; +typedef __darwin_mode_t = __uint16_t; +typedef __uint16_t = ffi.UnsignedShort; +typedef errno_t = ffi.Int; +typedef rsize_t = __darwin_size_t; - external CFArrayCopyDescriptionCallBack copyDescription; +class timespec extends ffi.Struct { + @__darwin_time_t() + external int tv_sec; - external CFArrayEqualCallBack equal; + @ffi.Long() + external int tv_nsec; } -typedef CFArrayRetainCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(CFAllocatorRef, ffi.Pointer)>>; -typedef CFArrayReleaseCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFAllocatorRef, ffi.Pointer)>>; -typedef CFArrayCopyDescriptionCallBack = ffi - .Pointer)>>; -typedef CFArrayEqualCallBack = ffi.Pointer< - ffi.NativeFunction< - Boolean Function(ffi.Pointer, ffi.Pointer)>>; - -class __CFArray extends ffi.Opaque {} - -typedef CFArrayRef = ffi.Pointer<__CFArray>; -typedef CFMutableArrayRef = ffi.Pointer<__CFArray>; -typedef CFArrayApplierFunction = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; -typedef CFComparatorFunction = ffi.Pointer< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>; - -class OS_object extends NSObject { - OS_object._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [OS_object] that points to the same underlying object as [other]. - static OS_object castFrom(T other) { - return OS_object._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [OS_object] that wraps the given raw object pointer. - static OS_object castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return OS_object._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [OS_object]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_OS_object1); - } - - @override - OS_object init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return OS_object._(_ret, _lib, retain: true, release: true); - } - - static OS_object new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_OS_object1, _lib._sel_new1); - return OS_object._(_ret, _lib, retain: false, release: true); - } +class tm extends ffi.Struct { + @ffi.Int() + external int tm_sec; - static OS_object alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_OS_object1, _lib._sel_alloc1); - return OS_object._(_ret, _lib, retain: false, release: true); - } -} + @ffi.Int() + external int tm_min; -class __SecCertificate extends ffi.Opaque {} + @ffi.Int() + external int tm_hour; -class __SecIdentity extends ffi.Opaque {} + @ffi.Int() + external int tm_mday; -class __SecKey extends ffi.Opaque {} + @ffi.Int() + external int tm_mon; -class __SecPolicy extends ffi.Opaque {} + @ffi.Int() + external int tm_year; -class __SecAccessControl extends ffi.Opaque {} + @ffi.Int() + external int tm_wday; -class __SecKeychain extends ffi.Opaque {} + @ffi.Int() + external int tm_yday; -class __SecKeychainItem extends ffi.Opaque {} + @ffi.Int() + external int tm_isdst; -class __SecKeychainSearch extends ffi.Opaque {} + @ffi.Long() + external int tm_gmtoff; -class SecKeychainAttribute extends ffi.Struct { - @SecKeychainAttrType() - external int tag; + external ffi.Pointer tm_zone; +} - @UInt32() - external int length; +typedef clock_t = __darwin_clock_t; +typedef __darwin_clock_t = ffi.UnsignedLong; +typedef time_t = __darwin_time_t; - external ffi.Pointer data; +abstract class clockid_t { + static const int _CLOCK_REALTIME = 0; + static const int _CLOCK_MONOTONIC = 6; + static const int _CLOCK_MONOTONIC_RAW = 4; + static const int _CLOCK_MONOTONIC_RAW_APPROX = 5; + static const int _CLOCK_UPTIME_RAW = 8; + static const int _CLOCK_UPTIME_RAW_APPROX = 9; + static const int _CLOCK_PROCESS_CPUTIME_ID = 12; + static const int _CLOCK_THREAD_CPUTIME_ID = 16; } -typedef SecKeychainAttrType = OSType; -typedef OSType = FourCharCode; -typedef FourCharCode = UInt32; +typedef intmax_t = ffi.Long; -class SecKeychainAttributeList extends ffi.Struct { - @UInt32() - external int count; +class imaxdiv_t extends ffi.Struct { + @intmax_t() + external int quot; - external ffi.Pointer attr; + @intmax_t() + external int rem; } -class __SecTrustedApplication extends ffi.Opaque {} +typedef uintmax_t = ffi.UnsignedLong; -class __SecAccess extends ffi.Opaque {} +class CFBagCallBacks extends ffi.Struct { + @CFIndex() + external int version; -class __SecACL extends ffi.Opaque {} + external CFBagRetainCallBack retain; -class __SecPassword extends ffi.Opaque {} + external CFBagReleaseCallBack release; -class SecKeychainAttributeInfo extends ffi.Struct { - @UInt32() - external int count; + external CFBagCopyDescriptionCallBack copyDescription; - external ffi.Pointer tag; + external CFBagEqualCallBack equal; - external ffi.Pointer format; + external CFBagHashCallBack hash; } -typedef OSStatus = SInt32; - -class _RuneEntry extends ffi.Struct { - @__darwin_rune_t() - external int __min; - - @__darwin_rune_t() - external int __max; +typedef CFBagRetainCallBack = ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(CFAllocatorRef, ffi.Pointer)>>; +typedef CFBagReleaseCallBack = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef, ffi.Pointer)>>; +typedef CFBagCopyDescriptionCallBack = ffi + .Pointer)>>; +typedef CFBagEqualCallBack = ffi.Pointer< + ffi.NativeFunction< + Boolean Function(ffi.Pointer, ffi.Pointer)>>; +typedef CFBagHashCallBack = ffi + .Pointer)>>; - @__darwin_rune_t() - external int __map; +class __CFBag extends ffi.Opaque {} - external ffi.Pointer<__uint32_t> __types; -} +typedef CFBagRef = ffi.Pointer<__CFBag>; +typedef CFMutableBagRef = ffi.Pointer<__CFBag>; +typedef CFBagApplierFunction = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; -typedef __darwin_rune_t = __darwin_wchar_t; -typedef __darwin_wchar_t = ffi.Int; +class CFBinaryHeapCompareContext extends ffi.Struct { + @CFIndex() + external int version; -class _RuneRange extends ffi.Struct { - @ffi.Int() - external int __nranges; + external ffi.Pointer info; - external ffi.Pointer<_RuneEntry> __ranges; -} + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> retain; -class _RuneCharClass extends ffi.Struct { - @ffi.Array.multi([14]) - external ffi.Array __name; + external ffi + .Pointer)>> + release; - @__uint32_t() - external int __mask; + external ffi.Pointer< + ffi.NativeFunction)>> + copyDescription; } -class _RuneLocale extends ffi.Struct { - @ffi.Array.multi([8]) - external ffi.Array __magic; - - @ffi.Array.multi([32]) - external ffi.Array __encoding; +class CFBinaryHeapCallBacks extends ffi.Struct { + @CFIndex() + external int version; external ffi.Pointer< ffi.NativeFunction< - __darwin_rune_t Function(ffi.Pointer, __darwin_size_t, - ffi.Pointer>)>> __sgetrune; + ffi.Pointer Function( + CFAllocatorRef, ffi.Pointer)>> retain; external ffi.Pointer< ffi.NativeFunction< - ffi.Int Function(__darwin_rune_t, ffi.Pointer, - __darwin_size_t, ffi.Pointer>)>> __sputrune; - - @__darwin_rune_t() - external int __invalid_rune; + ffi.Void Function(CFAllocatorRef, ffi.Pointer)>> release; - @ffi.Array.multi([256]) - external ffi.Array<__uint32_t> __runetype; + external ffi.Pointer< + ffi.NativeFunction)>> + copyDescription; - @ffi.Array.multi([256]) - external ffi.Array<__darwin_rune_t> __maplower; + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>> compare; +} - @ffi.Array.multi([256]) - external ffi.Array<__darwin_rune_t> __mapupper; +class __CFBinaryHeap extends ffi.Opaque {} - external _RuneRange __runetype_ext; +typedef CFBinaryHeapRef = ffi.Pointer<__CFBinaryHeap>; +typedef CFBinaryHeapApplierFunction = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; - external _RuneRange __maplower_ext; +class __CFBitVector extends ffi.Opaque {} - external _RuneRange __mapupper_ext; - - external ffi.Pointer __variable; - - @ffi.Int() - external int __variable_len; - - @ffi.Int() - external int __ncharclasses; - - external ffi.Pointer<_RuneCharClass> __charclasses; -} - -typedef __darwin_ct_rune_t = ffi.Int; - -class lconv extends ffi.Struct { - external ffi.Pointer decimal_point; - - external ffi.Pointer thousands_sep; - - external ffi.Pointer grouping; - - external ffi.Pointer int_curr_symbol; - - external ffi.Pointer currency_symbol; - - external ffi.Pointer mon_decimal_point; - - external ffi.Pointer mon_thousands_sep; - - external ffi.Pointer mon_grouping; - - external ffi.Pointer positive_sign; - - external ffi.Pointer negative_sign; - - @ffi.Char() - external int int_frac_digits; - - @ffi.Char() - external int frac_digits; - - @ffi.Char() - external int p_cs_precedes; - - @ffi.Char() - external int p_sep_by_space; - - @ffi.Char() - external int n_cs_precedes; - - @ffi.Char() - external int n_sep_by_space; - - @ffi.Char() - external int p_sign_posn; - - @ffi.Char() - external int n_sign_posn; - - @ffi.Char() - external int int_p_cs_precedes; - - @ffi.Char() - external int int_n_cs_precedes; - - @ffi.Char() - external int int_p_sep_by_space; - - @ffi.Char() - external int int_n_sep_by_space; - - @ffi.Char() - external int int_p_sign_posn; - - @ffi.Char() - external int int_n_sign_posn; -} - -class __float2 extends ffi.Struct { - @ffi.Float() - external double __sinval; - - @ffi.Float() - external double __cosval; -} - -class __double2 extends ffi.Struct { - @ffi.Double() - external double __sinval; - - @ffi.Double() - external double __cosval; -} - -class exception extends ffi.Struct { - @ffi.Int() - external int type; - - external ffi.Pointer name; - - @ffi.Double() - external double arg1; - - @ffi.Double() - external double arg2; - - @ffi.Double() - external double retval; -} - -typedef pthread_t = __darwin_pthread_t; -typedef __darwin_pthread_t = ffi.Pointer<_opaque_pthread_t>; -typedef stack_t = __darwin_sigaltstack; - -class __sbuf extends ffi.Struct { - external ffi.Pointer _base; - - @ffi.Int() - external int _size; -} - -class __sFILEX extends ffi.Opaque {} - -class __sFILE extends ffi.Struct { - external ffi.Pointer _p; - - @ffi.Int() - external int _r; - - @ffi.Int() - external int _w; - - @ffi.Short() - external int _flags; - - @ffi.Short() - external int _file; - - external __sbuf _bf; - - @ffi.Int() - external int _lbfsize; - - external ffi.Pointer _cookie; - - external ffi - .Pointer)>> - _close; - - external ffi.Pointer< - 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; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>> _write; - - external __sbuf _ub; - - external ffi.Pointer<__sFILEX> _extra; - - @ffi.Int() - external int _ur; - - @ffi.Array.multi([3]) - external ffi.Array _ubuf; - - @ffi.Array.multi([1]) - external ffi.Array _nbuf; - - external __sbuf _lb; - - @ffi.Int() - external int _blksize; - - @fpos_t() - external int _offset; -} - -typedef fpos_t = __darwin_off_t; -typedef __darwin_off_t = __int64_t; -typedef __int64_t = ffi.LongLong; -typedef FILE = __sFILE; -typedef off_t = __darwin_off_t; -typedef ssize_t = __darwin_ssize_t; -typedef __darwin_ssize_t = ffi.Long; -typedef errno_t = ffi.Int; -typedef rsize_t = ffi.UnsignedLong; - -class timespec extends ffi.Struct { - @__darwin_time_t() - external int tv_sec; - - @ffi.Long() - external int tv_nsec; -} - -class tm extends ffi.Struct { - @ffi.Int() - external int tm_sec; - - @ffi.Int() - external int tm_min; - - @ffi.Int() - external int tm_hour; - - @ffi.Int() - external int tm_mday; - - @ffi.Int() - external int tm_mon; - - @ffi.Int() - external int tm_year; - - @ffi.Int() - external int tm_wday; - - @ffi.Int() - external int tm_yday; - - @ffi.Int() - external int tm_isdst; - - @ffi.Long() - external int tm_gmtoff; - - external ffi.Pointer tm_zone; -} - -typedef clock_t = __darwin_clock_t; -typedef __darwin_clock_t = ffi.UnsignedLong; -typedef time_t = __darwin_time_t; - -abstract class clockid_t { - static const int _CLOCK_REALTIME = 0; - static const int _CLOCK_MONOTONIC = 6; - static const int _CLOCK_MONOTONIC_RAW = 4; - static const int _CLOCK_MONOTONIC_RAW_APPROX = 5; - static const int _CLOCK_UPTIME_RAW = 8; - static const int _CLOCK_UPTIME_RAW_APPROX = 9; - static const int _CLOCK_PROCESS_CPUTIME_ID = 12; - static const int _CLOCK_THREAD_CPUTIME_ID = 16; -} - -typedef intmax_t = ffi.Long; - -class imaxdiv_t extends ffi.Struct { - @intmax_t() - external int quot; - - @intmax_t() - external int rem; -} - -typedef uintmax_t = ffi.UnsignedLong; - -class CFBagCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFBagRetainCallBack retain; - - external CFBagReleaseCallBack release; - - external CFBagCopyDescriptionCallBack copyDescription; - - external CFBagEqualCallBack equal; - - external CFBagHashCallBack hash; -} - -typedef CFBagRetainCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(CFAllocatorRef, ffi.Pointer)>>; -typedef CFBagReleaseCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFAllocatorRef, ffi.Pointer)>>; -typedef CFBagCopyDescriptionCallBack = ffi - .Pointer)>>; -typedef CFBagEqualCallBack = ffi.Pointer< - ffi.NativeFunction< - Boolean Function(ffi.Pointer, ffi.Pointer)>>; -typedef CFBagHashCallBack = ffi - .Pointer)>>; - -class __CFBag extends ffi.Opaque {} - -typedef CFBagRef = ffi.Pointer<__CFBag>; -typedef CFMutableBagRef = ffi.Pointer<__CFBag>; -typedef CFBagApplierFunction = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; - -class CFBinaryHeapCompareContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> retain; - - external ffi - .Pointer)>> - release; - - external ffi.Pointer< - ffi.NativeFunction)>> - copyDescription; -} - -class CFBinaryHeapCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef, ffi.Pointer)>> retain; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFAllocatorRef, ffi.Pointer)>> release; - - external ffi.Pointer< - ffi.NativeFunction)>> - copyDescription; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>> compare; -} - -class __CFBinaryHeap extends ffi.Opaque {} - -typedef CFBinaryHeapRef = ffi.Pointer<__CFBinaryHeap>; -typedef CFBinaryHeapApplierFunction = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; - -class __CFBitVector extends ffi.Opaque {} - -typedef CFBitVectorRef = ffi.Pointer<__CFBitVector>; -typedef CFMutableBitVectorRef = ffi.Pointer<__CFBitVector>; -typedef CFBit = UInt32; +typedef CFBitVectorRef = ffi.Pointer<__CFBitVector>; +typedef CFMutableBitVectorRef = ffi.Pointer<__CFBitVector>; +typedef CFBit = UInt32; abstract class __CFByteOrder { static const int CFByteOrderUnknown = 0; @@ -71559,11 +70856,6 @@ typedef CFCharacterSetRef = ffi.Pointer<__CFCharacterSet>; typedef CFMutableCharacterSetRef = ffi.Pointer<__CFCharacterSet>; typedef UniChar = UInt16; -class __CFError extends ffi.Opaque {} - -typedef CFErrorDomain = CFStringRef; -typedef CFErrorRef = ffi.Pointer<__CFError>; - abstract class CFStringBuiltInEncodings { static const int kCFStringEncodingMacRoman = 0; static const int kCFStringEncodingWindowsLatin1 = 1280; @@ -71654,77 +70946,6 @@ abstract class CFCalendarUnit { static const int kCFCalendarUnitYearForWeekOfYear = 16384; } -class CGPoint extends ffi.Struct { - @CGFloat() - external double x; - - @CGFloat() - external double y; -} - -typedef CGFloat = ffi.Double; - -class CGSize extends ffi.Struct { - @CGFloat() - external double width; - - @CGFloat() - external double height; -} - -class CGVector extends ffi.Struct { - @CGFloat() - external double dx; - - @CGFloat() - external double dy; -} - -class CGRect extends ffi.Struct { - external CGPoint origin; - - external CGSize size; -} - -abstract class CGRectEdge { - static const int CGRectMinXEdge = 0; - static const int CGRectMinYEdge = 1; - static const int CGRectMaxXEdge = 2; - static const int CGRectMaxYEdge = 3; -} - -class CGAffineTransform extends ffi.Struct { - @CGFloat() - external double a; - - @CGFloat() - external double b; - - @CGFloat() - external double c; - - @CGFloat() - external double d; - - @CGFloat() - external double tx; - - @CGFloat() - external double ty; -} - -class CGAffineTransformComponents extends ffi.Struct { - external CGSize scale; - - @CGFloat() - external double horizontalShear; - - @CGFloat() - external double rotation; - - external CGVector translation; -} - class __CFDateFormatter extends ffi.Opaque {} abstract class CFDateFormatterStyle { @@ -71755,6 +70976,11 @@ abstract class CFISO8601DateFormatOptions { typedef CFDateFormatterRef = ffi.Pointer<__CFDateFormatter>; typedef CFDateFormatterKey = CFStringRef; +class __CFError extends ffi.Opaque {} + +typedef CFErrorDomain = CFStringRef; +typedef CFErrorRef = ffi.Pointer<__CFError>; + class __CFBoolean extends ffi.Opaque {} typedef CFBooleanRef = ffi.Pointer<__CFBoolean>; @@ -71952,32 +71178,13 @@ class mach_port_options extends ffi.Struct { external int flags; external mach_port_limits_t mpl; - - external UnnamedUnion1 unnamed; } typedef mach_port_limits_t = mach_port_limits; -class UnnamedUnion1 extends ffi.Union { - @ffi.Array.multi([2]) - external ffi.Array reserved; - - @mach_port_name_t() - external int work_interval_port; - - external mach_service_port_info_t service_port_info; - - @mach_port_name_t() - external int service_port_name; -} - -typedef mach_port_name_t = natural_t; -typedef mach_service_port_info_t = ffi.Pointer; - abstract class mach_port_guard_exception_codes { static const int kGUARD_EXC_DESTROY = 1; static const int kGUARD_EXC_MOD_REFS = 2; - static const int kGUARD_EXC_INVALID_OPTIONS = 3; static const int kGUARD_EXC_SET_CONTEXT = 4; static const int kGUARD_EXC_UNGUARDED = 8; static const int kGUARD_EXC_INCORRECT_GUARD = 16; @@ -71999,7 +71206,6 @@ abstract class mach_port_guard_exception_codes { static const int kGUARD_EXC_RCV_GUARDED_DESC = 1048576; static const int kGUARD_EXC_MOD_REFS_NON_FATAL = 2097152; static const int kGUARD_EXC_IMMOVABLE_NON_FATAL = 4194304; - static const int kGUARD_EXC_REQUIRE_REPLY_PORT_SEMANTICS = 8388608; } class __CFRunLoop extends ffi.Opaque {} @@ -72514,6 +71720,16 @@ class fspecread extends ffi.Struct { external int fsr_length; } +class fbootstraptransfer extends ffi.Struct { + @off_t() + external int fbt_offset; + + @ffi.Size() + external int fbt_length; + + external ffi.Pointer fbt_buffer; +} + @ffi.Packed(4) class log2phys extends ffi.Struct { @ffi.UnsignedInt() @@ -72818,6 +72034,7 @@ class ObjCBlock23 extends _ObjCBlockBase { class dispatch_queue_s extends ffi.Opaque {} typedef dispatch_queue_global_t = ffi.Pointer; +typedef uintptr_t = ffi.UnsignedLong; class dispatch_queue_attr_s extends ffi.Opaque {} @@ -72890,6 +72107,7 @@ class mach_msg_header_t extends ffi.Struct { } typedef mach_msg_bits_t = ffi.UnsignedInt; +typedef mach_port_name_t = natural_t; typedef mach_msg_id_t = integer_t; class mach_msg_base_t extends ffi.Struct { @@ -72978,7 +72196,7 @@ class mach_msg_context_trailer_t extends ffi.Struct { } typedef mach_port_context_t = vm_offset_t; -typedef vm_offset_t = ffi.UintPtr; +typedef vm_offset_t = uintptr_t; class msg_labels_t extends ffi.Struct { @mach_port_name_t() @@ -74539,13 +73757,13 @@ class cssm_list_element extends ffi.Struct { @CSSM_LIST_ELEMENT_TYPE() external int ElementType; - external UnnamedUnion2 Element; + external UnnamedUnion1 Element; } typedef CSSM_WORDID_TYPE = sint32; typedef CSSM_LIST_ELEMENT_TYPE = uint32; -class UnnamedUnion2 extends ffi.Union { +class UnnamedUnion1 extends ffi.Union { external CSSM_LIST Sublist; external SecAsn1Item Word; @@ -74678,7 +73896,7 @@ class cssm_certgroup extends ffi.Struct { @uint32() external int NumCerts; - external UnnamedUnion3 GroupList; + external UnnamedUnion2 GroupList; @CSSM_CERTGROUP_TYPE() external int CertGroupType; @@ -74686,7 +73904,7 @@ class cssm_certgroup extends ffi.Struct { external ffi.Pointer Reserved; } -class UnnamedUnion3 extends ffi.Union { +class UnnamedUnion2 extends ffi.Union { external CSSM_DATA_PTR CertList; external CSSM_ENCODED_CERT_PTR EncodedCertList; @@ -75200,13 +74418,13 @@ class cssm_crlgroup extends ffi.Struct { @uint32() external int NumberOfCrls; - external UnnamedUnion4 GroupCrlList; + external UnnamedUnion3 GroupCrlList; @CSSM_CRLGROUP_TYPE() external int CrlGroupType; } -class UnnamedUnion4 extends ffi.Union { +class UnnamedUnion3 extends ffi.Union { external CSSM_DATA_PTR CrlList; external CSSM_ENCODED_CRL_PTR EncodedCrlList; @@ -76020,10 +75238,10 @@ class __CE_DistributionPointName extends ffi.Struct { @ffi.Int32() external int nameType; - external UnnamedUnion5 dpn; + external UnnamedUnion4 dpn; } -class UnnamedUnion5 extends ffi.Union { +class UnnamedUnion4 extends ffi.Union { external ffi.Pointer fullName; external CSSM_X509_RDN_PTR rdn; @@ -77319,7 +76537,7 @@ abstract class SSLAuthenticate { /// server authentication or determining whether a resource to be loaded /// should be converted into a download. /// -/// NSURLSession instances are thread-safe. +/// NSURLSession instances are threadsafe. /// /// The default NSURLSession uses a system provided delegate and is /// appropriate to use in place of existing code that uses @@ -77394,7 +76612,7 @@ class NSURLSession extends NSObject { /// The shared session uses the currently set global NSURLCache, /// NSHTTPCookieStorage and NSURLCredentialStorage objects. static NSURLSession? getSharedSession(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_387( + final _ret = _lib._objc_msgSend_380( _lib._class_NSURLSession1, _lib._sel_sharedSession1); return _ret.address == 0 ? null @@ -77408,7 +76626,7 @@ class NSURLSession extends NSObject { /// the delegate has been sent the URLSession:didBecomeInvalidWithError: message. static NSURLSession sessionWithConfiguration_( NativeCupertinoHttp _lib, NSURLSessionConfiguration? configuration) { - final _ret = _lib._objc_msgSend_402( + final _ret = _lib._objc_msgSend_395( _lib._class_NSURLSession1, _lib._sel_sessionWithConfiguration_1, configuration?._id ?? ffi.nullptr); @@ -77420,7 +76638,7 @@ class NSURLSession extends NSObject { NSURLSessionConfiguration? configuration, NSObject? delegate, NSOperationQueue? queue) { - final _ret = _lib._objc_msgSend_403( + final _ret = _lib._objc_msgSend_396( _lib._class_NSURLSession1, _lib._sel_sessionWithConfiguration_delegate_delegateQueue_1, configuration?._id ?? ffi.nullptr, @@ -77430,7 +76648,7 @@ class NSURLSession extends NSObject { } NSOperationQueue? get delegateQueue { - final _ret = _lib._objc_msgSend_349(_id, _lib._sel_delegateQueue1); + final _ret = _lib._objc_msgSend_345(_id, _lib._sel_delegateQueue1); return _ret.address == 0 ? null : NSOperationQueue._(_ret, _lib, retain: true, release: true); @@ -77444,7 +76662,7 @@ class NSURLSession extends NSObject { } NSURLSessionConfiguration? get configuration { - final _ret = _lib._objc_msgSend_388(_id, _lib._sel_configuration1); + final _ret = _lib._objc_msgSend_381(_id, _lib._sel_configuration1); return _ret.address == 0 ? null : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); @@ -77462,7 +76680,7 @@ class NSURLSession extends NSObject { /// The sessionDescription property is available for the developer to /// provide a descriptive label for the session. set sessionDescription(NSString? value) { - _lib._objc_msgSend_331( + _lib._objc_msgSend_327( _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); } @@ -77489,40 +76707,40 @@ class NSURLSession extends NSObject { return _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); } - /// empty all cookies, cache and credential stores, removes disk files, issues -flushWithCompletionHandler:. Invokes completionHandler() on the delegate queue. - void resetWithCompletionHandler_(ObjCBlock completionHandler) { - return _lib._objc_msgSend_345( + /// empty all cookies, cache and credential stores, removes disk files, issues -flushWithCompletionHandler:. Invokes completionHandler() on the delegate queue if not nil. + void resetWithCompletionHandler_(ObjCBlock16 completionHandler) { + return _lib._objc_msgSend_341( _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); } - /// flush storage to disk and clear transient network caches. Invokes completionHandler() on the delegate queue. - void flushWithCompletionHandler_(ObjCBlock completionHandler) { - return _lib._objc_msgSend_345( + /// flush storage to disk and clear transient network caches. Invokes completionHandler() on the delegate queue if not nil. + void flushWithCompletionHandler_(ObjCBlock16 completionHandler) { + return _lib._objc_msgSend_341( _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); } /// invokes completionHandler with outstanding data, upload and download tasks. void getTasksWithCompletionHandler_(ObjCBlock38 completionHandler) { - return _lib._objc_msgSend_404( + return _lib._objc_msgSend_397( _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); } /// invokes completionHandler with all outstanding tasks. - void getAllTasksWithCompletionHandler_(ObjCBlock20 completionHandler) { - return _lib._objc_msgSend_405(_id, + void getAllTasksWithCompletionHandler_(ObjCBlock19 completionHandler) { + return _lib._objc_msgSend_398(_id, _lib._sel_getAllTasksWithCompletionHandler_1, completionHandler._id); } /// Creates a data task with the given request. The request may have a body stream. NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_406( + final _ret = _lib._objc_msgSend_399( _id, _lib._sel_dataTaskWithRequest_1, request?._id ?? ffi.nullptr); return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } /// Creates a data task to retrieve the contents of the given URL. NSURLSessionDataTask dataTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_407( + final _ret = _lib._objc_msgSend_400( _id, _lib._sel_dataTaskWithURL_1, url?._id ?? ffi.nullptr); return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } @@ -77530,7 +76748,7 @@ class NSURLSession extends 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, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_408( + final _ret = _lib._objc_msgSend_401( _id, _lib._sel_uploadTaskWithRequest_fromFile_1, request?._id ?? ffi.nullptr, @@ -77541,7 +76759,7 @@ class NSURLSession extends NSObject { /// Creates an upload task with the given request. The body of the request is provided from the bodyData. NSURLSessionUploadTask uploadTaskWithRequest_fromData_( NSURLRequest? request, NSData? bodyData) { - final _ret = _lib._objc_msgSend_409( + final _ret = _lib._objc_msgSend_402( _id, _lib._sel_uploadTaskWithRequest_fromData_1, request?._id ?? ffi.nullptr, @@ -77551,28 +76769,28 @@ class NSURLSession extends 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) { - final _ret = _lib._objc_msgSend_410(_id, + final _ret = _lib._objc_msgSend_403(_id, _lib._sel_uploadTaskWithStreamedRequest_1, request?._id ?? ffi.nullptr); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } /// Creates a download task with the given request. NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_412( + final _ret = _lib._objc_msgSend_405( _id, _lib._sel_downloadTaskWithRequest_1, request?._id ?? ffi.nullptr); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } /// Creates a download task to download the contents of the given URL. NSURLSessionDownloadTask downloadTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_413( + final _ret = _lib._objc_msgSend_406( _id, _lib._sel_downloadTaskWithURL_1, url?._id ?? ffi.nullptr); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } /// Creates a download task with the resume data. If the download cannot be successfully resumed, URLSession:task:didCompleteWithError: will be called. NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData? resumeData) { - final _ret = _lib._objc_msgSend_414(_id, + final _ret = _lib._objc_msgSend_407(_id, _lib._sel_downloadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } @@ -77580,7 +76798,7 @@ class NSURLSession extends NSObject { /// Creates a bidirectional stream task to a given host and port. NSURLSessionStreamTask streamTaskWithHostName_port_( NSString? hostname, int port) { - final _ret = _lib._objc_msgSend_417( + final _ret = _lib._objc_msgSend_410( _id, _lib._sel_streamTaskWithHostName_port_1, hostname?._id ?? ffi.nullptr, @@ -77591,24 +76809,24 @@ class NSURLSession extends 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) { - final _ret = _lib._objc_msgSend_418( + final _ret = _lib._objc_msgSend_411( _id, _lib._sel_streamTaskWithNetService_1, service?._id ?? ffi.nullptr); return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } /// Creates a WebSocket task given the url. The given url must have a ws or wss scheme. NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_425( + final _ret = _lib._objc_msgSend_418( _id, _lib._sel_webSocketTaskWithURL_1, url?._id ?? ffi.nullptr); return NSURLSessionWebSocketTask._(_ret, _lib, 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 + /// negotiate a prefered protocol with the server /// Note - The protocol will not affect the WebSocket framing. More details on the protocol can be found by reading the WebSocket RFC NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( NSURL? url, NSArray? protocols) { - final _ret = _lib._objc_msgSend_426( + final _ret = _lib._objc_msgSend_419( _id, _lib._sel_webSocketTaskWithURL_protocols_1, url?._id ?? ffi.nullptr, @@ -77620,7 +76838,7 @@ class NSURLSession extends NSObject { /// Clients who want to add custom protocols can do so by directly adding headers with the key Sec-WebSocket-Protocol /// and a comma separated list of protocols they wish to negotiate with the server. The custom HTTP headers provided by the client will remain unchanged for the handshake with the server. NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_427( + final _ret = _lib._objc_msgSend_420( _id, _lib._sel_webSocketTaskWithRequest_1, request?._id ?? ffi.nullptr); return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } @@ -77645,7 +76863,7 @@ class NSURLSession extends NSObject { /// called for authentication challenges. NSURLSessionDataTask dataTaskWithRequest_completionHandler_( NSURLRequest? request, ObjCBlock43 completionHandler) { - final _ret = _lib._objc_msgSend_428( + final _ret = _lib._objc_msgSend_421( _id, _lib._sel_dataTaskWithRequest_completionHandler_1, request?._id ?? ffi.nullptr, @@ -77655,7 +76873,7 @@ class NSURLSession extends NSObject { NSURLSessionDataTask dataTaskWithURL_completionHandler_( NSURL? url, ObjCBlock43 completionHandler) { - final _ret = _lib._objc_msgSend_429( + final _ret = _lib._objc_msgSend_422( _id, _lib._sel_dataTaskWithURL_completionHandler_1, url?._id ?? ffi.nullptr, @@ -77666,7 +76884,7 @@ class NSURLSession extends NSObject { /// upload convenience method. NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( NSURLRequest? request, NSURL? fileURL, ObjCBlock43 completionHandler) { - final _ret = _lib._objc_msgSend_430( + final _ret = _lib._objc_msgSend_423( _id, _lib._sel_uploadTaskWithRequest_fromFile_completionHandler_1, request?._id ?? ffi.nullptr, @@ -77677,7 +76895,7 @@ class NSURLSession extends NSObject { NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( NSURLRequest? request, NSData? bodyData, ObjCBlock43 completionHandler) { - final _ret = _lib._objc_msgSend_431( + final _ret = _lib._objc_msgSend_424( _id, _lib._sel_uploadTaskWithRequest_fromData_completionHandler_1, request?._id ?? ffi.nullptr, @@ -77692,7 +76910,7 @@ class NSURLSession extends NSObject { /// will be removed automatically. NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( NSURLRequest? request, ObjCBlock44 completionHandler) { - final _ret = _lib._objc_msgSend_432( + final _ret = _lib._objc_msgSend_425( _id, _lib._sel_downloadTaskWithRequest_completionHandler_1, request?._id ?? ffi.nullptr, @@ -77702,7 +76920,7 @@ class NSURLSession extends NSObject { NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_( NSURL? url, ObjCBlock44 completionHandler) { - final _ret = _lib._objc_msgSend_433( + final _ret = _lib._objc_msgSend_426( _id, _lib._sel_downloadTaskWithURL_completionHandler_1, url?._id ?? ffi.nullptr, @@ -77712,7 +76930,7 @@ class NSURLSession extends NSObject { NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( NSData? resumeData, ObjCBlock44 completionHandler) { - final _ret = _lib._objc_msgSend_434( + final _ret = _lib._objc_msgSend_427( _id, _lib._sel_downloadTaskWithResumeData_completionHandler_1, resumeData?._id ?? ffi.nullptr, @@ -77767,7 +76985,7 @@ class NSURLSessionConfiguration extends NSObject { static NSURLSessionConfiguration? getDefaultSessionConfiguration( NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_388(_lib._class_NSURLSessionConfiguration1, + final _ret = _lib._objc_msgSend_381(_lib._class_NSURLSessionConfiguration1, _lib._sel_defaultSessionConfiguration1); return _ret.address == 0 ? null @@ -77776,7 +76994,7 @@ class NSURLSessionConfiguration extends NSObject { static NSURLSessionConfiguration? getEphemeralSessionConfiguration( NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_388(_lib._class_NSURLSessionConfiguration1, + final _ret = _lib._objc_msgSend_381(_lib._class_NSURLSessionConfiguration1, _lib._sel_ephemeralSessionConfiguration1); return _ret.address == 0 ? null @@ -77786,7 +77004,7 @@ class NSURLSessionConfiguration extends NSObject { static NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier_( NativeCupertinoHttp _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_389( + final _ret = _lib._objc_msgSend_382( _lib._class_NSURLSessionConfiguration1, _lib._sel_backgroundSessionConfigurationWithIdentifier_1, identifier?._id ?? ffi.nullptr); @@ -77803,12 +77021,12 @@ class NSURLSessionConfiguration extends NSObject { /// default cache policy for requests int get requestCachePolicy { - return _lib._objc_msgSend_359(_id, _lib._sel_requestCachePolicy1); + return _lib._objc_msgSend_355(_id, _lib._sel_requestCachePolicy1); } /// default cache policy for requests set requestCachePolicy(int value) { - _lib._objc_msgSend_363(_id, _lib._sel_setRequestCachePolicy_1, value); + _lib._objc_msgSend_358(_id, _lib._sel_setRequestCachePolicy_1, value); } /// default timeout for requests. This will cause a timeout if no data is transmitted for the given timeout value, and is reset whenever data is transmitted. @@ -77818,7 +77036,7 @@ class NSURLSessionConfiguration extends NSObject { /// default timeout for requests. This will cause a timeout if no data is transmitted for the given timeout value, and is reset whenever data is transmitted. set timeoutIntervalForRequest(double value) { - _lib._objc_msgSend_341( + _lib._objc_msgSend_337( _id, _lib._sel_setTimeoutIntervalForRequest_1, value); } @@ -77829,18 +77047,18 @@ class NSURLSessionConfiguration extends NSObject { /// default timeout for requests. This will cause a timeout if a resource is not able to be retrieved within a given timeout. set timeoutIntervalForResource(double value) { - _lib._objc_msgSend_341( + _lib._objc_msgSend_337( _id, _lib._sel_setTimeoutIntervalForResource_1, value); } /// type of service for requests. int get networkServiceType { - return _lib._objc_msgSend_360(_id, _lib._sel_networkServiceType1); + return _lib._objc_msgSend_356(_id, _lib._sel_networkServiceType1); } /// type of service for requests. set networkServiceType(int value) { - _lib._objc_msgSend_364(_id, _lib._sel_setNetworkServiceType_1, value); + _lib._objc_msgSend_359(_id, _lib._sel_setNetworkServiceType_1, value); } /// allow request to route over cellular. @@ -77850,7 +77068,7 @@ class NSURLSessionConfiguration extends NSObject { /// allow request to route over cellular. set allowsCellularAccess(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setAllowsCellularAccess_1, value); + _lib._objc_msgSend_328(_id, _lib._sel_setAllowsCellularAccess_1, value); } /// allow request to route over expensive networks. Defaults to YES. @@ -77860,7 +77078,7 @@ class NSURLSessionConfiguration extends NSObject { /// allow request to route over expensive networks. Defaults to YES. set allowsExpensiveNetworkAccess(bool value) { - _lib._objc_msgSend_332( + _lib._objc_msgSend_328( _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); } @@ -77872,20 +77090,10 @@ class NSURLSessionConfiguration extends NSObject { /// allow request to route over networks in constrained mode. Defaults to YES. set allowsConstrainedNetworkAccess(bool value) { - _lib._objc_msgSend_332( + _lib._objc_msgSend_328( _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); } - /// requires requests from the session to be made with DNSSEC validation enabled. Defaults to NO. - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_11(_id, _lib._sel_requiresDNSSECValidation1); - } - - /// requires requests from the session to be made with DNSSEC validation enabled. Defaults to NO. - set requiresDNSSECValidation(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setRequiresDNSSECValidation_1, value); - } - /// Causes tasks to wait for network connectivity to become available, rather /// than immediately failing with an error (such as NSURLErrorNotConnectedToInternet) /// when it is not. When waiting for connectivity, the timeoutIntervalForRequest @@ -77915,7 +77123,7 @@ class NSURLSessionConfiguration extends NSObject { /// Default value is NO. Ignored by background sessions, as background sessions /// always wait for connectivity. set waitsForConnectivity(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setWaitsForConnectivity_1, value); + _lib._objc_msgSend_328(_id, _lib._sel_setWaitsForConnectivity_1, value); } /// allows background tasks to be scheduled at the discretion of the system for optimal performance. @@ -77925,7 +77133,7 @@ class NSURLSessionConfiguration extends NSObject { /// allows background tasks to be scheduled at the discretion of the system for optimal performance. set discretionary(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setDiscretionary_1, value); + _lib._objc_msgSend_328(_id, _lib._sel_setDiscretionary_1, value); } /// The identifier of the shared data container into which files in background sessions should be downloaded. @@ -77943,7 +77151,7 @@ class NSURLSessionConfiguration extends NSObject { /// App extensions wishing to use background sessions *must* set this property to a valid container identifier, or /// all transfers in that session will fail with NSURLErrorBackgroundSessionRequiresSharedContainer. set sharedContainerIdentifier(NSString? value) { - _lib._objc_msgSend_331(_id, _lib._sel_setSharedContainerIdentifier_1, + _lib._objc_msgSend_327(_id, _lib._sel_setSharedContainerIdentifier_1, value?._id ?? ffi.nullptr); } @@ -77962,7 +77170,7 @@ class NSURLSessionConfiguration extends NSObject { /// /// NOTE: macOS apps based on AppKit do not support background launch. set sessionSendsLaunchEvents(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setSessionSendsLaunchEvents_1, value); + _lib._objc_msgSend_328(_id, _lib._sel_setSessionSendsLaunchEvents_1, value); } /// The proxy dictionary, as described by @@ -77976,53 +77184,53 @@ class NSURLSessionConfiguration extends NSObject { /// The proxy dictionary, as described by set connectionProxyDictionary(NSDictionary? value) { - _lib._objc_msgSend_366(_id, _lib._sel_setConnectionProxyDictionary_1, + _lib._objc_msgSend_360(_id, _lib._sel_setConnectionProxyDictionary_1, value?._id ?? ffi.nullptr); } /// The minimum allowable versions of the TLS protocol, from int get TLSMinimumSupportedProtocol { - return _lib._objc_msgSend_390(_id, _lib._sel_TLSMinimumSupportedProtocol1); + return _lib._objc_msgSend_383(_id, _lib._sel_TLSMinimumSupportedProtocol1); } /// The minimum allowable versions of the TLS protocol, from set TLSMinimumSupportedProtocol(int value) { - _lib._objc_msgSend_391( + _lib._objc_msgSend_384( _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); } /// The maximum allowable versions of the TLS protocol, from int get TLSMaximumSupportedProtocol { - return _lib._objc_msgSend_390(_id, _lib._sel_TLSMaximumSupportedProtocol1); + return _lib._objc_msgSend_383(_id, _lib._sel_TLSMaximumSupportedProtocol1); } /// The maximum allowable versions of the TLS protocol, from set TLSMaximumSupportedProtocol(int value) { - _lib._objc_msgSend_391( + _lib._objc_msgSend_384( _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); } /// The minimum allowable versions of the TLS protocol, from int get TLSMinimumSupportedProtocolVersion { - return _lib._objc_msgSend_392( + return _lib._objc_msgSend_385( _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); } /// The minimum allowable versions of the TLS protocol, from set TLSMinimumSupportedProtocolVersion(int value) { - _lib._objc_msgSend_393( + _lib._objc_msgSend_386( _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_1, value); } /// The maximum allowable versions of the TLS protocol, from int get TLSMaximumSupportedProtocolVersion { - return _lib._objc_msgSend_392( + return _lib._objc_msgSend_385( _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); } /// The maximum allowable versions of the TLS protocol, from set TLSMaximumSupportedProtocolVersion(int value) { - _lib._objc_msgSend_393( + _lib._objc_msgSend_386( _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); } @@ -78033,7 +77241,7 @@ class NSURLSessionConfiguration extends NSObject { /// Allow the use of HTTP pipelining set HTTPShouldUsePipelining(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); + _lib._objc_msgSend_328(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); } /// Allow the session to set cookies on requests @@ -78043,17 +77251,17 @@ class NSURLSessionConfiguration extends NSObject { /// Allow the session to set cookies on requests set HTTPShouldSetCookies(bool value) { - _lib._objc_msgSend_332(_id, _lib._sel_setHTTPShouldSetCookies_1, value); + _lib._objc_msgSend_328(_id, _lib._sel_setHTTPShouldSetCookies_1, value); } /// Policy for accepting cookies. This overrides the policy otherwise specified by the cookie storage. int get HTTPCookieAcceptPolicy { - return _lib._objc_msgSend_375(_id, _lib._sel_HTTPCookieAcceptPolicy1); + return _lib._objc_msgSend_369(_id, _lib._sel_HTTPCookieAcceptPolicy1); } /// Policy for accepting cookies. This overrides the policy otherwise specified by the cookie storage. set HTTPCookieAcceptPolicy(int value) { - _lib._objc_msgSend_376(_id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); + _lib._objc_msgSend_370(_id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); } /// Specifies additional headers which will be set on outgoing requests. @@ -78068,24 +77276,24 @@ class NSURLSessionConfiguration extends NSObject { /// Specifies additional headers which will be set on outgoing requests. /// Note that these headers are added to the request only if not already present. set HTTPAdditionalHeaders(NSDictionary? value) { - _lib._objc_msgSend_366( + _lib._objc_msgSend_360( _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); } - /// The maximum number of simultaneous persistent connections per host + /// The maximum number of simultanous persistent connections per host int get HTTPMaximumConnectionsPerHost { return _lib._objc_msgSend_81(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); } - /// The maximum number of simultaneous persistent connections per host + /// The maximum number of simultanous persistent connections per host set HTTPMaximumConnectionsPerHost(int value) { - _lib._objc_msgSend_346( + _lib._objc_msgSend_342( _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); } /// The cookie storage object to use, or nil to indicate that no cookies should be handled NSHTTPCookieStorage? get HTTPCookieStorage { - final _ret = _lib._objc_msgSend_370(_id, _lib._sel_HTTPCookieStorage1); + final _ret = _lib._objc_msgSend_364(_id, _lib._sel_HTTPCookieStorage1); return _ret.address == 0 ? null : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); @@ -78093,13 +77301,13 @@ class NSURLSessionConfiguration extends NSObject { /// The cookie storage object to use, or nil to indicate that no cookies should be handled set HTTPCookieStorage(NSHTTPCookieStorage? value) { - _lib._objc_msgSend_394( + _lib._objc_msgSend_387( _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); } /// The credential storage object, or nil to indicate that no credential storage is to be used NSURLCredentialStorage? get URLCredentialStorage { - final _ret = _lib._objc_msgSend_395(_id, _lib._sel_URLCredentialStorage1); + final _ret = _lib._objc_msgSend_388(_id, _lib._sel_URLCredentialStorage1); return _ret.address == 0 ? null : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); @@ -78107,13 +77315,13 @@ class NSURLSessionConfiguration extends NSObject { /// The credential storage object, or nil to indicate that no credential storage is to be used set URLCredentialStorage(NSURLCredentialStorage? value) { - _lib._objc_msgSend_396( + _lib._objc_msgSend_389( _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); } /// The URL resource cache, or nil to indicate that no caching is to be performed NSURLCache? get URLCache { - final _ret = _lib._objc_msgSend_397(_id, _lib._sel_URLCache1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_URLCache1); return _ret.address == 0 ? null : NSURLCache._(_ret, _lib, retain: true, release: true); @@ -78121,7 +77329,7 @@ class NSURLSessionConfiguration extends NSObject { /// The URL resource cache, or nil to indicate that no caching is to be performed set URLCache(NSURLCache? value) { - _lib._objc_msgSend_398( + _lib._objc_msgSend_391( _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); } @@ -78135,7 +77343,7 @@ class NSURLSessionConfiguration extends NSObject { /// Enable extended background idle mode for any tcp sockets created. Enabling this mode asks the system to keep the socket open /// and delay reclaiming it when the process moves to the background (see https://developer.apple.com/library/ios/technotes/tn2277/_index.html) set shouldUseExtendedBackgroundIdleMode(bool value) { - _lib._objc_msgSend_332( + _lib._objc_msgSend_328( _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); } @@ -78163,18 +77371,18 @@ class NSURLSessionConfiguration extends NSObject { /// Custom NSURLProtocol subclasses are not available to background /// sessions. set protocolClasses(NSArray? value) { - _lib._objc_msgSend_399( + _lib._objc_msgSend_392( _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); } /// multipath service type to use for connections. The default is NSURLSessionMultipathServiceTypeNone int get multipathServiceType { - return _lib._objc_msgSend_400(_id, _lib._sel_multipathServiceType1); + return _lib._objc_msgSend_393(_id, _lib._sel_multipathServiceType1); } /// multipath service type to use for connections. The default is NSURLSessionMultipathServiceTypeNone set multipathServiceType(int value) { - _lib._objc_msgSend_401(_id, _lib._sel_setMultipathServiceType_1, value); + _lib._objc_msgSend_394(_id, _lib._sel_setMultipathServiceType_1, value); } @override @@ -78192,7 +77400,7 @@ class NSURLSessionConfiguration extends NSObject { static NSURLSessionConfiguration backgroundSessionConfiguration_( NativeCupertinoHttp _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_389( + final _ret = _lib._objc_msgSend_382( _lib._class_NSURLSessionConfiguration1, _lib._sel_backgroundSessionConfiguration_1, identifier?._id ?? ffi.nullptr); @@ -78270,9 +77478,9 @@ class NSURLCache extends _ObjCWrapper { /// This is the default value. No entitlement is required to set this value. /// /// @constant NSURLSessionMultipathServiceTypeHandover Specifies that a secondary subflow should only be used -/// when the primary subflow is not performing adequately. Requires the com.apple.developer.networking.multipath entitlement. +/// when the primary subflow is not performing adequately. Requires the com.apple.developer.networking.multipath entilement. /// -/// @constant NSURLSessionMultipathServiceTypeInteractive Specifies that a secondary subflow should be used if the +/// @constant NSURLSessionMultipathServiceTypeInteractive Specifies that a secodary subflow should be used if the /// primary subflow is not performing adequately (packet loss, high round trip times, bandwidth issues). The secondary /// subflow will be created more aggressively than with NSURLSessionMultipathServiceTypeHandover. Requires the com.apple.developer.networking.multipath entitlement. /// @@ -78289,7 +77497,7 @@ abstract class NSURLSessionMultipathServiceType { /// Interactive - secondary flows created more aggressively. static const int NSURLSessionMultipathServiceTypeInteractive = 2; - /// Aggregate - multiple subflows used for greater bandwidth. + /// Aggregate - multiple subflows used for greater bandwitdh. static const int NSURLSessionMultipathServiceTypeAggregate = 3; } @@ -78526,7 +77734,7 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { /// If resume data cannot be created, the completion handler will be /// called with nil resumeData. void cancelByProducingResumeData_(ObjCBlock39 completionHandler) { - return _lib._objc_msgSend_411( + return _lib._objc_msgSend_404( _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); } @@ -78626,18 +77834,18 @@ class ObjCBlock39 extends _ObjCBlockBase { /// -URLSession:dataTask:didReceiveResponse: delegate message. /// /// NSURLSessionStreamTask can be used to perform asynchronous reads -/// and writes. Reads and writes are enqueued and executed serially, +/// and writes. Reads and writes are enquened and executed serially, /// with the completion handler being invoked on the sessions delegate -/// queue. If an error occurs, or the task is canceled, all +/// queuee. If an error occurs, or the task is canceled, all /// outstanding read and write calls will have their completion /// handlers invoked with an appropriate error. /// /// It is also possible to create NSInputStream and NSOutputStream /// instances from an NSURLSessionTask by sending -/// -captureStreams to the task. All outstanding reads and writes are +/// -captureStreams to the task. All outstanding read and writess are /// completed before the streams are created. Once the streams are /// delivered to the session delegate, the task is considered complete -/// and will receive no more messages. These streams are +/// and will receive no more messsages. These streams are /// disassociated from the underlying session. class NSURLSessionStreamTask extends NSURLSessionTask { NSURLSessionStreamTask._(ffi.Pointer id, NativeCupertinoHttp lib, @@ -78670,7 +77878,7 @@ class NSURLSessionStreamTask extends NSURLSessionTask { /// read requests will error out immediately. void readDataOfMinLength_maxLength_timeout_completionHandler_(int minBytes, int maxBytes, double timeout, ObjCBlock40 completionHandler) { - return _lib._objc_msgSend_415( + return _lib._objc_msgSend_408( _id, _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, minBytes, @@ -78686,7 +77894,7 @@ class NSURLSessionStreamTask extends NSURLSessionTask { /// that they have been written to the kernel. void writeData_timeout_completionHandler_( NSData? data, double timeout, ObjCBlock41 completionHandler) { - return _lib._objc_msgSend_416( + return _lib._objc_msgSend_409( _id, _lib._sel_writeData_timeout_completionHandler_1, data?._id ?? ffi.nullptr, @@ -78720,7 +77928,7 @@ class NSURLSessionStreamTask extends NSURLSessionTask { return _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); } - /// Begin encrypted handshake. The handshake begins after all pending + /// Begin encrypted handshake. The hanshake begins after all pending /// IO has completed. TLS authentication callbacks are sent to the /// session's -URLSession:task:didReceiveChallenge:completionHandler: void startSecureConnection() { @@ -78944,7 +78152,7 @@ class NSNetService extends _ObjCWrapper { /// a list of protocols it wishes to advertise during the WebSocket handshake phase. /// Once the handshake is successfully completed the client will be notified through an optional delegate. /// All reads and writes enqueued before the completion of the handshake will be queued up and -/// executed once the handshake succeeds. Before the handshake completes, the client can be called to handle +/// executed once the hanshake succeeds. Before the handshake completes, the client can be called to handle /// redirection or authentication using the same delegates as NSURLSessionTask. WebSocket task will also provide /// support for cookies and will store cookies to the cookie storage on the session and will attach cookies to /// outgoing HTTP handshake requests. @@ -78980,7 +78188,7 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { /// that they have been written to the kernel. void sendMessage_completionHandler_( NSURLSessionWebSocketMessage? message, ObjCBlock41 completionHandler) { - return _lib._objc_msgSend_420( + return _lib._objc_msgSend_413( _id, _lib._sel_sendMessage_completionHandler_1, message?._id ?? ffi.nullptr, @@ -78991,7 +78199,7 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { /// 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_(ObjCBlock42 completionHandler) { - return _lib._objc_msgSend_421(_id, + return _lib._objc_msgSend_414(_id, _lib._sel_receiveMessageWithCompletionHandler_1, completionHandler._id); } @@ -79000,30 +78208,30 @@ 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_(ObjCBlock41 pongReceiveHandler) { - return _lib._objc_msgSend_422(_id, + return _lib._objc_msgSend_415(_id, _lib._sel_sendPingWithPongReceiveHandler_1, pongReceiveHandler._id); } /// Sends a close frame with the given closeCode. An optional reason can be provided while sending the close frame. /// Simply calling cancel on the task will result in a cancellation frame being sent without any reason. void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { - return _lib._objc_msgSend_423(_id, _lib._sel_cancelWithCloseCode_reason_1, + return _lib._objc_msgSend_416(_id, _lib._sel_cancelWithCloseCode_reason_1, closeCode, reason?._id ?? ffi.nullptr); } - /// The maximum number of bytes to be buffered before erroring out. This includes the sum of all bytes from continuation frames. Receive calls will error out if this value is reached + /// The maximum number of bytes to be buffered before erroring out. This includes the sum of all bytes from continuation frames. Recieve calls will error out if this value is reached int get maximumMessageSize { return _lib._objc_msgSend_81(_id, _lib._sel_maximumMessageSize1); } - /// The maximum number of bytes to be buffered before erroring out. This includes the sum of all bytes from continuation frames. Receive calls will error out if this value is reached + /// The maximum number of bytes to be buffered before erroring out. This includes the sum of all bytes from continuation frames. Recieve calls will error out if this value is reached set maximumMessageSize(int value) { - _lib._objc_msgSend_346(_id, _lib._sel_setMaximumMessageSize_1, value); + _lib._objc_msgSend_342(_id, _lib._sel_setMaximumMessageSize_1, value); } /// A task can be queried for it's close code at any point. When the task is not closed, it will be set to NSURLSessionWebSocketCloseCodeInvalid int get closeCode { - return _lib._objc_msgSend_424(_id, _lib._sel_closeCode1); + return _lib._objc_msgSend_417(_id, _lib._sel_closeCode1); } /// A task can be queried for it's close reason at any point. A nil value indicates no closeReason or that the task is still running @@ -79102,7 +78310,7 @@ class NSURLSessionWebSocketMessage extends NSObject { } int get type { - return _lib._objc_msgSend_419(_id, _lib._sel_type1); + return _lib._objc_msgSend_412(_id, _lib._sel_type1); } NSData? get data { @@ -79558,7 +78766,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// Represents the transaction request. NSURLRequest? get request { - final _ret = _lib._objc_msgSend_377(_id, _lib._sel_request1); + final _ret = _lib._objc_msgSend_371(_id, _lib._sel_request1); return _ret.address == 0 ? null : NSURLRequest._(_ret, _lib, retain: true, release: true); @@ -79566,7 +78774,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// Represents the transaction response. Can be nil if error occurred and no response was generated. NSURLResponse? get response { - final _ret = _lib._objc_msgSend_379(_id, _lib._sel_response1); + final _ret = _lib._objc_msgSend_373(_id, _lib._sel_response1); return _ret.address == 0 ? null : NSURLResponse._(_ret, _lib, retain: true, release: true); @@ -79583,7 +78791,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// secureConnectionStartDate /// secureConnectionEndDate NSDate? get fetchStartDate { - final _ret = _lib._objc_msgSend_357(_id, _lib._sel_fetchStartDate1); + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_fetchStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -79591,7 +78799,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// domainLookupStartDate returns the time immediately before the user agent started the name lookup for the resource. NSDate? get domainLookupStartDate { - final _ret = _lib._objc_msgSend_357(_id, _lib._sel_domainLookupStartDate1); + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_domainLookupStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -79599,7 +78807,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// domainLookupEndDate returns the time after the name lookup was completed. NSDate? get domainLookupEndDate { - final _ret = _lib._objc_msgSend_357(_id, _lib._sel_domainLookupEndDate1); + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_domainLookupEndDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -79609,7 +78817,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// /// For example, this would correspond to the time immediately before the user agent started trying to establish the TCP connection. NSDate? get connectStartDate { - final _ret = _lib._objc_msgSend_357(_id, _lib._sel_connectStartDate1); + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_connectStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -79622,7 +78830,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// If an encrypted connection was not used, this attribute is set to nil. NSDate? get secureConnectionStartDate { final _ret = - _lib._objc_msgSend_357(_id, _lib._sel_secureConnectionStartDate1); + _lib._objc_msgSend_353(_id, _lib._sel_secureConnectionStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -79633,7 +78841,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// If an encrypted connection was not used, this attribute is set to nil. NSDate? get secureConnectionEndDate { final _ret = - _lib._objc_msgSend_357(_id, _lib._sel_secureConnectionEndDate1); + _lib._objc_msgSend_353(_id, _lib._sel_secureConnectionEndDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -79641,7 +78849,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// connectEndDate is the time immediately after the user agent finished establishing the connection to the server, including completion of security-related and other handshakes. NSDate? get connectEndDate { - final _ret = _lib._objc_msgSend_357(_id, _lib._sel_connectEndDate1); + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_connectEndDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -79651,7 +78859,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// /// For example, this would correspond to the time immediately before the user agent sent an HTTP GET request. NSDate? get requestStartDate { - final _ret = _lib._objc_msgSend_357(_id, _lib._sel_requestStartDate1); + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_requestStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -79661,7 +78869,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// /// For example, this would correspond to the time immediately after the user agent finished sending the last byte of the request. NSDate? get requestEndDate { - final _ret = _lib._objc_msgSend_357(_id, _lib._sel_requestEndDate1); + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_requestEndDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -79671,7 +78879,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// /// For example, this would correspond to the time immediately after the user agent received the first byte of an HTTP response. NSDate? get responseStartDate { - final _ret = _lib._objc_msgSend_357(_id, _lib._sel_responseStartDate1); + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_responseStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -79679,14 +78887,14 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// responseEndDate is the time immediately after the user agent received the last byte of the resource. NSDate? get responseEndDate { - final _ret = _lib._objc_msgSend_357(_id, _lib._sel_responseEndDate1); + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_responseEndDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } /// The network protocol used to fetch the resource, as identified by the ALPN Protocol ID Identification Sequence [RFC7301]. - /// E.g., h3, h2, http/1.1. + /// E.g., h2, http/1.1, spdy/3.1. /// /// When a proxy is configured AND a tunnel connection is established, then this attribute returns the value for the tunneled protocol. /// @@ -79713,43 +78921,43 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// Indicates whether the resource was loaded, pushed or retrieved from the local cache. int get resourceFetchType { - return _lib._objc_msgSend_435(_id, _lib._sel_resourceFetchType1); + return _lib._objc_msgSend_428(_id, _lib._sel_resourceFetchType1); } /// countOfRequestHeaderBytesSent is the number of bytes transferred for request header. int get countOfRequestHeaderBytesSent { - return _lib._objc_msgSend_329( + return _lib._objc_msgSend_325( _id, _lib._sel_countOfRequestHeaderBytesSent1); } /// countOfRequestBodyBytesSent is the number of bytes transferred for request body. /// It includes protocol-specific framing, transfer encoding, and content encoding. int get countOfRequestBodyBytesSent { - return _lib._objc_msgSend_329(_id, _lib._sel_countOfRequestBodyBytesSent1); + return _lib._objc_msgSend_325(_id, _lib._sel_countOfRequestBodyBytesSent1); } /// countOfRequestBodyBytesBeforeEncoding is the size of upload body data, file, or stream. int get countOfRequestBodyBytesBeforeEncoding { - return _lib._objc_msgSend_329( + return _lib._objc_msgSend_325( _id, _lib._sel_countOfRequestBodyBytesBeforeEncoding1); } /// countOfResponseHeaderBytesReceived is the number of bytes transferred for response header. int get countOfResponseHeaderBytesReceived { - return _lib._objc_msgSend_329( + return _lib._objc_msgSend_325( _id, _lib._sel_countOfResponseHeaderBytesReceived1); } /// countOfResponseBodyBytesReceived is the number of bytes transferred for response header. /// It includes protocol-specific framing, transfer encoding, and content encoding. int get countOfResponseBodyBytesReceived { - return _lib._objc_msgSend_329( + return _lib._objc_msgSend_325( _id, _lib._sel_countOfResponseBodyBytesReceived1); } /// countOfResponseBodyBytesAfterDecoding is the size of data delivered to your delegate or completion handler. int get countOfResponseBodyBytesAfterDecoding { - return _lib._objc_msgSend_329( + return _lib._objc_msgSend_325( _id, _lib._sel_countOfResponseBodyBytesAfterDecoding1); } @@ -79851,7 +79059,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// DNS protocol used for domain resolution. int get domainResolutionProtocol { - return _lib._objc_msgSend_436(_id, _lib._sel_domainResolutionProtocol1); + return _lib._objc_msgSend_429(_id, _lib._sel_domainResolutionProtocol1); } @override @@ -79913,7 +79121,7 @@ class NSURLSessionTaskMetrics extends NSObject { /// Task creation time is the time when the task was instantiated. /// Task completion time is the time when the task is about to change its internal state to completed. NSDateInterval? get taskInterval { - final _ret = _lib._objc_msgSend_437(_id, _lib._sel_taskInterval1); + final _ret = _lib._objc_msgSend_430(_id, _lib._sel_taskInterval1); return _ret.address == 0 ? null : NSDateInterval._(_ret, _lib, retain: true, release: true); @@ -80009,7 +79217,7 @@ class NSItemProvider extends NSObject { void registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( NSString? typeIdentifier, int visibility, ObjCBlock45 loadHandler) { - return _lib._objc_msgSend_438( + return _lib._objc_msgSend_431( _id, _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, typeIdentifier?._id ?? ffi.nullptr, @@ -80023,7 +79231,7 @@ class NSItemProvider extends NSObject { int fileOptions, int visibility, ObjCBlock47 loadHandler) { - return _lib._objc_msgSend_439( + return _lib._objc_msgSend_432( _id, _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, typeIdentifier?._id ?? ffi.nullptr, @@ -80041,7 +79249,7 @@ class NSItemProvider extends NSObject { } NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { - final _ret = _lib._objc_msgSend_440( + final _ret = _lib._objc_msgSend_433( _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -80055,7 +79263,7 @@ class NSItemProvider extends NSObject { bool hasRepresentationConformingToTypeIdentifier_fileOptions_( NSString? typeIdentifier, int fileOptions) { - return _lib._objc_msgSend_441( + return _lib._objc_msgSend_434( _id, _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, typeIdentifier?._id ?? ffi.nullptr, @@ -80064,7 +79272,7 @@ class NSItemProvider extends NSObject { NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( NSString? typeIdentifier, ObjCBlock46 completionHandler) { - final _ret = _lib._objc_msgSend_442( + final _ret = _lib._objc_msgSend_435( _id, _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, typeIdentifier?._id ?? ffi.nullptr, @@ -80074,7 +79282,7 @@ class NSItemProvider extends NSObject { NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( NSString? typeIdentifier, ObjCBlock49 completionHandler) { - final _ret = _lib._objc_msgSend_443( + final _ret = _lib._objc_msgSend_436( _id, _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, typeIdentifier?._id ?? ffi.nullptr, @@ -80084,7 +79292,7 @@ class NSItemProvider extends NSObject { NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( NSString? typeIdentifier, ObjCBlock48 completionHandler) { - final _ret = _lib._objc_msgSend_444( + final _ret = _lib._objc_msgSend_437( _id, _lib._sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1, typeIdentifier?._id ?? ffi.nullptr, @@ -80100,7 +79308,7 @@ class NSItemProvider extends NSObject { } set suggestedName(NSString? value) { - _lib._objc_msgSend_331( + _lib._objc_msgSend_327( _id, _lib._sel_setSuggestedName_1, value?._id ?? ffi.nullptr); } @@ -80111,13 +79319,13 @@ class NSItemProvider extends NSObject { } void registerObject_visibility_(NSObject? object, int visibility) { - return _lib._objc_msgSend_445(_id, _lib._sel_registerObject_visibility_1, + return _lib._objc_msgSend_438(_id, _lib._sel_registerObject_visibility_1, object?._id ?? ffi.nullptr, visibility); } void registerObjectOfClass_visibility_loadHandler_( NSObject? aClass, int visibility, ObjCBlock50 loadHandler) { - return _lib._objc_msgSend_446( + return _lib._objc_msgSend_439( _id, _lib._sel_registerObjectOfClass_visibility_loadHandler_1, aClass?._id ?? ffi.nullptr, @@ -80132,7 +79340,7 @@ class NSItemProvider extends NSObject { NSProgress loadObjectOfClass_completionHandler_( NSObject? aClass, ObjCBlock51 completionHandler) { - final _ret = _lib._objc_msgSend_447( + final _ret = _lib._objc_msgSend_440( _id, _lib._sel_loadObjectOfClass_completionHandler_1, aClass?._id ?? ffi.nullptr, @@ -80142,7 +79350,7 @@ class NSItemProvider extends NSObject { NSItemProvider initWithItem_typeIdentifier_( NSObject? item, NSString? typeIdentifier) { - final _ret = _lib._objc_msgSend_448( + final _ret = _lib._objc_msgSend_441( _id, _lib._sel_initWithItem_typeIdentifier_1, item?._id ?? ffi.nullptr, @@ -80158,7 +79366,7 @@ class NSItemProvider extends NSObject { void registerItemForTypeIdentifier_loadHandler_( NSString? typeIdentifier, NSItemProviderLoadHandler loadHandler) { - return _lib._objc_msgSend_449( + return _lib._objc_msgSend_442( _id, _lib._sel_registerItemForTypeIdentifier_loadHandler_1, typeIdentifier?._id ?? ffi.nullptr, @@ -80169,7 +79377,7 @@ class NSItemProvider extends NSObject { NSString? typeIdentifier, NSDictionary? options, NSItemProviderCompletionHandler completionHandler) { - return _lib._objc_msgSend_450( + return _lib._objc_msgSend_443( _id, _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, typeIdentifier?._id ?? ffi.nullptr, @@ -80178,16 +79386,16 @@ class NSItemProvider extends NSObject { } NSItemProviderLoadHandler get previewImageHandler { - return _lib._objc_msgSend_451(_id, _lib._sel_previewImageHandler1); + return _lib._objc_msgSend_444(_id, _lib._sel_previewImageHandler1); } set previewImageHandler(NSItemProviderLoadHandler value) { - _lib._objc_msgSend_452(_id, _lib._sel_setPreviewImageHandler_1, value); + _lib._objc_msgSend_445(_id, _lib._sel_setPreviewImageHandler_1, value); } void loadPreviewImageWithOptions_completionHandler_(NSDictionary? options, NSItemProviderCompletionHandler completionHandler) { - return _lib._objc_msgSend_453( + return _lib._objc_msgSend_446( _id, _lib._sel_loadPreviewImageWithOptions_completionHandler_1, options?._id ?? ffi.nullptr, @@ -80847,8692 +80055,9844 @@ class ObjCBlock52 extends _ObjCBlockBase { lib); static ffi.Pointer? _cFuncTrampoline; - /// Creates a block from a Dart function. - ObjCBlock52.fromFunction( - NativeCupertinoHttp lib, - void Function(NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock52_closureTrampoline) - .cast(), - _ObjCBlock52_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(NSItemProviderCompletionHandler arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + /// Creates a block from a Dart function. + ObjCBlock52.fromFunction( + NativeCupertinoHttp lib, + void Function(NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock52_closureTrampoline) + .cast(), + _ObjCBlock52_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(NSItemProviderCompletionHandler arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } + + ffi.Pointer<_ObjCBlock> get pointer => _id; +} + +typedef NSItemProviderCompletionHandler = ffi.Pointer<_ObjCBlock>; + +abstract class NSItemProviderErrorCode { + static const int NSItemProviderUnknownError = -1; + static const int NSItemProviderItemUnavailableError = -1000; + static const int NSItemProviderUnexpectedValueClassError = -1100; + static const int NSItemProviderUnavailableCoercionError = -1200; +} + +typedef NSStringEncodingDetectionOptionsKey = ffi.Pointer; + +class NSMutableString extends NSString { + NSMutableString._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableString] that points to the same underlying object as [other]. + static NSMutableString castFrom(T other) { + return NSMutableString._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSMutableString] that wraps the given raw object pointer. + static NSMutableString castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableString._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMutableString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableString1); + } + + void replaceCharactersInRange_withString_(NSRange range, NSString? aString) { + return _lib._objc_msgSend_447( + _id, + _lib._sel_replaceCharactersInRange_withString_1, + range, + aString?._id ?? ffi.nullptr); + } + + void insertString_atIndex_(NSString? aString, int loc) { + return _lib._objc_msgSend_448(_id, _lib._sel_insertString_atIndex_1, + aString?._id ?? ffi.nullptr, loc); + } + + void deleteCharactersInRange_(NSRange range) { + return _lib._objc_msgSend_283( + _id, _lib._sel_deleteCharactersInRange_1, range); + } + + void appendString_(NSString? aString) { + return _lib._objc_msgSend_188( + _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); + } + + void appendFormat_(NSString? format) { + return _lib._objc_msgSend_188( + _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); + } + + void setString_(NSString? aString) { + return _lib._objc_msgSend_188( + _id, _lib._sel_setString_1, aString?._id ?? ffi.nullptr); + } + + int replaceOccurrencesOfString_withString_options_range_(NSString? target, + NSString? replacement, int options, NSRange searchRange) { + return _lib._objc_msgSend_449( + _id, + _lib._sel_replaceOccurrencesOfString_withString_options_range_1, + target?._id ?? ffi.nullptr, + replacement?._id ?? ffi.nullptr, + options, + searchRange); + } + + bool applyTransform_reverse_range_updatedRange_(NSStringTransform transform, + bool reverse, NSRange range, NSRangePointer resultingRange) { + return _lib._objc_msgSend_450( + _id, + _lib._sel_applyTransform_reverse_range_updatedRange_1, + transform, + reverse, + range, + resultingRange); + } + + NSMutableString initWithCapacity_(int capacity) { + final _ret = + _lib._objc_msgSend_451(_id, _lib._sel_initWithCapacity_1, capacity); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithCapacity_( + NativeCupertinoHttp _lib, int capacity) { + final _ret = _lib._objc_msgSend_451( + _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static ffi.Pointer getAvailableStringEncodings( + NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_242( + _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); + } + + static NSString localizedNameOfStringEncoding_( + NativeCupertinoHttp _lib, int encoding) { + final _ret = _lib._objc_msgSend_15(_lib._class_NSMutableString1, + _lib._sel_localizedNameOfStringEncoding_1, encoding); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int getDefaultCStringEncoding(NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); + } + + static NSMutableString string(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithString_( + NativeCupertinoHttp _lib, NSString? string) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableString1, + _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithCharacters_length_( + NativeCupertinoHttp _lib, ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_255(_lib._class_NSMutableString1, + _lib._sel_stringWithCharacters_length_1, characters, length); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithUTF8String_( + NativeCupertinoHttp _lib, ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_256(_lib._class_NSMutableString1, + _lib._sel_stringWithUTF8String_1, nullTerminatedCString); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithFormat_( + NativeCupertinoHttp _lib, NSString? format) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableString1, + _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString localizedStringWithFormat_( + NativeCupertinoHttp _lib, NSString? format) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableString1, + _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithCString_encoding_( + NativeCupertinoHttp _lib, ffi.Pointer cString, int enc) { + final _ret = _lib._objc_msgSend_264(_lib._class_NSMutableString1, + _lib._sel_stringWithCString_encoding_1, cString, enc); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithContentsOfURL_encoding_error_( + NativeCupertinoHttp _lib, + NSURL? url, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_265( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithContentsOfFile_encoding_error_( + NativeCupertinoHttp _lib, + NSString? path, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_266( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithContentsOfURL_usedEncoding_error_( + NativeCupertinoHttp _lib, + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_267( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithContentsOfFile_usedEncoding_error_( + NativeCupertinoHttp _lib, + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_268( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static int + stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( + NativeCupertinoHttp _lib, + NSData? data, + NSDictionary? opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion) { + return _lib._objc_msgSend_269( + _lib._class_NSMutableString1, + _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, + data?._id ?? ffi.nullptr, + opts?._id ?? ffi.nullptr, + string, + usedLossyConversion); + } + + static NSObject stringWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_201(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithCString_length_( + NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_264(_lib._class_NSMutableString1, + _lib._sel_stringWithCString_length_1, bytes, length); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithCString_( + NativeCupertinoHttp _lib, ffi.Pointer bytes) { + final _ret = _lib._objc_msgSend_256( + _lib._class_NSMutableString1, _lib._sel_stringWithCString_1, bytes); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_new1); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + static NSMutableString alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } +} + +typedef NSExceptionName = ffi.Pointer; + +class NSSimpleCString extends NSString { + NSSimpleCString._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSSimpleCString] that points to the same underlying object as [other]. + static NSSimpleCString castFrom(T other) { + return NSSimpleCString._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSSimpleCString] that wraps the given raw object pointer. + static NSSimpleCString castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSSimpleCString._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSSimpleCString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSSimpleCString1); + } + + static ffi.Pointer getAvailableStringEncodings( + NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_242( + _lib._class_NSSimpleCString1, _lib._sel_availableStringEncodings1); + } + + static NSString localizedNameOfStringEncoding_( + NativeCupertinoHttp _lib, int encoding) { + final _ret = _lib._objc_msgSend_15(_lib._class_NSSimpleCString1, + _lib._sel_localizedNameOfStringEncoding_1, encoding); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int getDefaultCStringEncoding(NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSSimpleCString1, _lib._sel_defaultCStringEncoding1); + } + + static NSSimpleCString string(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSSimpleCString1, _lib._sel_string1); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString stringWithString_( + NativeCupertinoHttp _lib, NSString? string) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSSimpleCString1, + _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString stringWithCharacters_length_( + NativeCupertinoHttp _lib, ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_255(_lib._class_NSSimpleCString1, + _lib._sel_stringWithCharacters_length_1, characters, length); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString stringWithUTF8String_( + NativeCupertinoHttp _lib, ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_256(_lib._class_NSSimpleCString1, + _lib._sel_stringWithUTF8String_1, nullTerminatedCString); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString stringWithFormat_( + NativeCupertinoHttp _lib, NSString? format) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSSimpleCString1, + _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString localizedStringWithFormat_( + NativeCupertinoHttp _lib, NSString? format) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSSimpleCString1, + _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString stringWithCString_encoding_( + NativeCupertinoHttp _lib, ffi.Pointer cString, int enc) { + final _ret = _lib._objc_msgSend_264(_lib._class_NSSimpleCString1, + _lib._sel_stringWithCString_encoding_1, cString, enc); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString stringWithContentsOfURL_encoding_error_( + NativeCupertinoHttp _lib, + NSURL? url, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_265( + _lib._class_NSSimpleCString1, + _lib._sel_stringWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString stringWithContentsOfFile_encoding_error_( + NativeCupertinoHttp _lib, + NSString? path, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_266( + _lib._class_NSSimpleCString1, + _lib._sel_stringWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString stringWithContentsOfURL_usedEncoding_error_( + NativeCupertinoHttp _lib, + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_267( + _lib._class_NSSimpleCString1, + _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString stringWithContentsOfFile_usedEncoding_error_( + NativeCupertinoHttp _lib, + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_268( + _lib._class_NSSimpleCString1, + _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static int + stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( + NativeCupertinoHttp _lib, + NSData? data, + NSDictionary? opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion) { + return _lib._objc_msgSend_269( + _lib._class_NSSimpleCString1, + _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, + data?._id ?? ffi.nullptr, + opts?._id ?? ffi.nullptr, + string, + usedLossyConversion); + } + + static NSObject stringWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSSimpleCString1, + _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_201(_lib._class_NSSimpleCString1, + _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithCString_length_( + NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_264(_lib._class_NSSimpleCString1, + _lib._sel_stringWithCString_length_1, bytes, length); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithCString_( + NativeCupertinoHttp _lib, ffi.Pointer bytes) { + final _ret = _lib._objc_msgSend_256( + _lib._class_NSSimpleCString1, _lib._sel_stringWithCString_1, bytes); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSSimpleCString1, _lib._sel_new1); + return NSSimpleCString._(_ret, _lib, retain: false, release: true); + } + + static NSSimpleCString alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSSimpleCString1, _lib._sel_alloc1); + return NSSimpleCString._(_ret, _lib, retain: false, release: true); + } +} + +class NSConstantString extends NSSimpleCString { + NSConstantString._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSConstantString] that points to the same underlying object as [other]. + static NSConstantString castFrom(T other) { + return NSConstantString._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSConstantString] that wraps the given raw object pointer. + static NSConstantString castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSConstantString._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSConstantString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSConstantString1); + } + + static ffi.Pointer getAvailableStringEncodings( + NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_242( + _lib._class_NSConstantString1, _lib._sel_availableStringEncodings1); + } + + static NSString localizedNameOfStringEncoding_( + NativeCupertinoHttp _lib, int encoding) { + final _ret = _lib._objc_msgSend_15(_lib._class_NSConstantString1, + _lib._sel_localizedNameOfStringEncoding_1, encoding); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int getDefaultCStringEncoding(NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSConstantString1, _lib._sel_defaultCStringEncoding1); + } + + static NSConstantString string(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSConstantString1, _lib._sel_string1); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + static NSConstantString stringWithString_( + NativeCupertinoHttp _lib, NSString? string) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSConstantString1, + _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + static NSConstantString stringWithCharacters_length_( + NativeCupertinoHttp _lib, ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_255(_lib._class_NSConstantString1, + _lib._sel_stringWithCharacters_length_1, characters, length); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + static NSConstantString stringWithUTF8String_( + NativeCupertinoHttp _lib, ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_256(_lib._class_NSConstantString1, + _lib._sel_stringWithUTF8String_1, nullTerminatedCString); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + static NSConstantString stringWithFormat_( + NativeCupertinoHttp _lib, NSString? format) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSConstantString1, + _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + static NSConstantString localizedStringWithFormat_( + NativeCupertinoHttp _lib, NSString? format) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSConstantString1, + _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + static NSConstantString stringWithCString_encoding_( + NativeCupertinoHttp _lib, ffi.Pointer cString, int enc) { + final _ret = _lib._objc_msgSend_264(_lib._class_NSConstantString1, + _lib._sel_stringWithCString_encoding_1, cString, enc); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + static NSConstantString stringWithContentsOfURL_encoding_error_( + NativeCupertinoHttp _lib, + NSURL? url, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_265( + _lib._class_NSConstantString1, + _lib._sel_stringWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + static NSConstantString stringWithContentsOfFile_encoding_error_( + NativeCupertinoHttp _lib, + NSString? path, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_266( + _lib._class_NSConstantString1, + _lib._sel_stringWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + static NSConstantString stringWithContentsOfURL_usedEncoding_error_( + NativeCupertinoHttp _lib, + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_267( + _lib._class_NSConstantString1, + _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + static NSConstantString stringWithContentsOfFile_usedEncoding_error_( + NativeCupertinoHttp _lib, + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_268( + _lib._class_NSConstantString1, + _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + static int + stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( + NativeCupertinoHttp _lib, + NSData? data, + NSDictionary? opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion) { + return _lib._objc_msgSend_269( + _lib._class_NSConstantString1, + _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, + data?._id ?? ffi.nullptr, + opts?._id ?? ffi.nullptr, + string, + usedLossyConversion); + } + + static NSObject stringWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString? path) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSConstantString1, + _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_201(_lib._class_NSConstantString1, + _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithCString_length_( + NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_264(_lib._class_NSConstantString1, + _lib._sel_stringWithCString_length_1, bytes, length); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithCString_( + NativeCupertinoHttp _lib, ffi.Pointer bytes) { + final _ret = _lib._objc_msgSend_256( + _lib._class_NSConstantString1, _lib._sel_stringWithCString_1, bytes); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSConstantString new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSConstantString1, _lib._sel_new1); + return NSConstantString._(_ret, _lib, retain: false, release: true); + } + + static NSConstantString alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSConstantString1, _lib._sel_alloc1); + return NSConstantString._(_ret, _lib, retain: false, release: true); + } +} + +class NSMutableCharacterSet extends NSCharacterSet { + NSMutableCharacterSet._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableCharacterSet] that points to the same underlying object as [other]. + static NSMutableCharacterSet castFrom(T other) { + return NSMutableCharacterSet._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSMutableCharacterSet] that wraps the given raw object pointer. + static NSMutableCharacterSet castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableCharacterSet._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMutableCharacterSet]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableCharacterSet1); + } + + void addCharactersInRange_(NSRange aRange) { + return _lib._objc_msgSend_283( + _id, _lib._sel_addCharactersInRange_1, aRange); + } + + void removeCharactersInRange_(NSRange aRange) { + return _lib._objc_msgSend_283( + _id, _lib._sel_removeCharactersInRange_1, aRange); + } + + void addCharactersInString_(NSString? aString) { + return _lib._objc_msgSend_188( + _id, _lib._sel_addCharactersInString_1, aString?._id ?? ffi.nullptr); + } + + void removeCharactersInString_(NSString? aString) { + return _lib._objc_msgSend_188( + _id, _lib._sel_removeCharactersInString_1, aString?._id ?? ffi.nullptr); + } + + void formUnionWithCharacterSet_(NSCharacterSet? otherSet) { + return _lib._objc_msgSend_452(_id, _lib._sel_formUnionWithCharacterSet_1, + otherSet?._id ?? ffi.nullptr); + } + + void formIntersectionWithCharacterSet_(NSCharacterSet? otherSet) { + return _lib._objc_msgSend_452( + _id, + _lib._sel_formIntersectionWithCharacterSet_1, + otherSet?._id ?? ffi.nullptr); + } + + void invert() { + return _lib._objc_msgSend_1(_id, _lib._sel_invert1); + } + + static NSCharacterSet? getControlCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSMutableCharacterSet1, _lib._sel_controlCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getWhitespaceCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSMutableCharacterSet1, _lib._sel_whitespaceCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getWhitespaceAndNewlineCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, + _lib._sel_whitespaceAndNewlineCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getDecimalDigitCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, + _lib._sel_decimalDigitCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getLetterCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSMutableCharacterSet1, _lib._sel_letterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getLowercaseLetterCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, + _lib._sel_lowercaseLetterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getUppercaseLetterCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, + _lib._sel_uppercaseLetterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getNonBaseCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSMutableCharacterSet1, _lib._sel_nonBaseCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getAlphanumericCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, + _lib._sel_alphanumericCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getDecomposableCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, + _lib._sel_decomposableCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getIllegalCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSMutableCharacterSet1, _lib._sel_illegalCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getPunctuationCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSMutableCharacterSet1, _lib._sel_punctuationCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getCapitalizedLetterCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, + _lib._sel_capitalizedLetterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getSymbolCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSMutableCharacterSet1, _lib._sel_symbolCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getNewlineCharacterSet(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSMutableCharacterSet1, _lib._sel_newlineCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: false, release: true); + } + + static NSMutableCharacterSet characterSetWithRange_( + NativeCupertinoHttp _lib, NSRange aRange) { + final _ret = _lib._objc_msgSend_453(_lib._class_NSMutableCharacterSet1, + _lib._sel_characterSetWithRange_1, aRange); + return NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableCharacterSet characterSetWithCharactersInString_( + NativeCupertinoHttp _lib, NSString? aString) { + final _ret = _lib._objc_msgSend_454( + _lib._class_NSMutableCharacterSet1, + _lib._sel_characterSetWithCharactersInString_1, + aString?._id ?? ffi.nullptr); + return NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableCharacterSet characterSetWithBitmapRepresentation_( + NativeCupertinoHttp _lib, NSData? data) { + final _ret = _lib._objc_msgSend_455( + _lib._class_NSMutableCharacterSet1, + _lib._sel_characterSetWithBitmapRepresentation_1, + data?._id ?? ffi.nullptr); + return NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableCharacterSet characterSetWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString? fName) { + final _ret = _lib._objc_msgSend_454(_lib._class_NSMutableCharacterSet1, + _lib._sel_characterSetWithContentsOfFile_1, fName?._id ?? ffi.nullptr); + return NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); + } + + /// Returns a character set containing the characters allowed in an URL's user subcomponent. + static NSCharacterSet? getURLUserAllowedCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, + _lib._sel_URLUserAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + /// Returns a character set containing the characters allowed in an URL's password subcomponent. + static NSCharacterSet? getURLPasswordAllowedCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, + _lib._sel_URLPasswordAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + /// Returns a character set containing the characters allowed in an URL's host subcomponent. + static NSCharacterSet? getURLHostAllowedCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, + _lib._sel_URLHostAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + /// Returns a character set containing the characters allowed in an URL's path component. ';' is a legal path character, but it is recommended that it be percent-encoded for best compatibility with NSURL (-stringByAddingPercentEncodingWithAllowedCharacters: will percent-encode any ';' characters if you pass the URLPathAllowedCharacterSet). + static NSCharacterSet? getURLPathAllowedCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, + _lib._sel_URLPathAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + /// Returns a character set containing the characters allowed in an URL's query component. + static NSCharacterSet? getURLQueryAllowedCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, + _lib._sel_URLQueryAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + /// Returns a character set containing the characters allowed in an URL's fragment component. + static NSCharacterSet? getURLFragmentAllowedCharacterSet( + NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, + _lib._sel_URLFragmentAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableCharacterSet new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableCharacterSet1, _lib._sel_new1); + return NSMutableCharacterSet._(_ret, _lib, retain: false, release: true); + } + + static NSMutableCharacterSet alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableCharacterSet1, _lib._sel_alloc1); + return NSMutableCharacterSet._(_ret, _lib, retain: false, release: true); + } +} + +typedef NSURLFileResourceType = ffi.Pointer; +typedef NSURLThumbnailDictionaryItem = ffi.Pointer; +typedef NSURLFileProtectionType = ffi.Pointer; +typedef NSURLUbiquitousItemDownloadingStatus = ffi.Pointer; +typedef NSURLUbiquitousSharedItemRole = ffi.Pointer; +typedef NSURLUbiquitousSharedItemPermissions = ffi.Pointer; + +/// NSURLQueryItem encapsulates a single query name-value pair. The name and value strings of a query name-value pair are not percent encoded. For use with the NSURLComponents queryItems property. +class NSURLQueryItem extends NSObject { + NSURLQueryItem._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLQueryItem] that points to the same underlying object as [other]. + static NSURLQueryItem castFrom(T other) { + return NSURLQueryItem._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSURLQueryItem] that wraps the given raw object pointer. + static NSURLQueryItem castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLQueryItem._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLQueryItem]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLQueryItem1); + } + + NSURLQueryItem initWithName_value_(NSString? name, NSString? value) { + final _ret = _lib._objc_msgSend_456(_id, _lib._sel_initWithName_value_1, + name?._id ?? ffi.nullptr, value?._id ?? ffi.nullptr); + return NSURLQueryItem._(_ret, _lib, retain: true, release: true); + } + + static NSURLQueryItem queryItemWithName_value_( + NativeCupertinoHttp _lib, NSString? name, NSString? value) { + final _ret = _lib._objc_msgSend_456( + _lib._class_NSURLQueryItem1, + _lib._sel_queryItemWithName_value_1, + name?._id ?? ffi.nullptr, + value?._id ?? ffi.nullptr); + return NSURLQueryItem._(_ret, _lib, retain: true, release: true); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get value { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_value1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static NSURLQueryItem new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLQueryItem1, _lib._sel_new1); + return NSURLQueryItem._(_ret, _lib, retain: false, release: true); + } + + static NSURLQueryItem alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLQueryItem1, _lib._sel_alloc1); + return NSURLQueryItem._(_ret, _lib, retain: false, release: true); + } +} + +class NSURLComponents extends NSObject { + NSURLComponents._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLComponents] that points to the same underlying object as [other]. + static NSURLComponents castFrom(T other) { + return NSURLComponents._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLComponents] that wraps the given raw object pointer. + static NSURLComponents castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLComponents._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLComponents]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLComponents1); + } + + /// Initialize a NSURLComponents with all components undefined. Designated initializer. + @override + NSURLComponents init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLComponents._(_ret, _lib, retain: true, release: true); + } + + /// Initialize a NSURLComponents with the components of a URL. If resolvingAgainstBaseURL is YES and url is a relative URL, the components of [url absoluteURL] are used. If the url string from the NSURL is malformed, nil is returned. + NSURLComponents initWithURL_resolvingAgainstBaseURL_( + NSURL? url, bool resolve) { + final _ret = _lib._objc_msgSend_206( + _id, + _lib._sel_initWithURL_resolvingAgainstBaseURL_1, + url?._id ?? ffi.nullptr, + resolve); + return NSURLComponents._(_ret, _lib, retain: true, release: true); + } + + /// Initializes and returns a newly created NSURLComponents with the components of a URL. If resolvingAgainstBaseURL is YES and url is a relative URL, the components of [url absoluteURL] are used. If the url string from the NSURL is malformed, nil is returned. + static NSURLComponents componentsWithURL_resolvingAgainstBaseURL_( + NativeCupertinoHttp _lib, NSURL? url, bool resolve) { + final _ret = _lib._objc_msgSend_206( + _lib._class_NSURLComponents1, + _lib._sel_componentsWithURL_resolvingAgainstBaseURL_1, + url?._id ?? ffi.nullptr, + resolve); + return NSURLComponents._(_ret, _lib, retain: true, release: true); + } + + /// Initialize a NSURLComponents with a URL string. If the URLString is malformed, nil is returned. + NSURLComponents initWithString_(NSString? URLString) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithString_1, URLString?._id ?? ffi.nullptr); + return NSURLComponents._(_ret, _lib, retain: true, release: true); + } + + /// Initializes and returns a newly created NSURLComponents with a URL string. If the URLString is malformed, nil is returned. + static NSURLComponents componentsWithString_( + NativeCupertinoHttp _lib, NSString? URLString) { + final _ret = _lib._objc_msgSend_42(_lib._class_NSURLComponents1, + _lib._sel_componentsWithString_1, URLString?._id ?? ffi.nullptr); + return NSURLComponents._(_ret, _lib, retain: true, release: true); + } + + /// Returns a URL created from the NSURLComponents. If the NSURLComponents has an authority component (user, password, host or port) and a path component, then the path must either begin with "/" or be an empty string. If the NSURLComponents does not have an authority component (user, password, host or port) and has a path component, the path component must not start with "//". If those requirements are not met, nil is returned. + NSURL? get URL { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + /// Returns a URL created from the NSURLComponents relative to a base URL. If the NSURLComponents has an authority component (user, password, host or port) and a path component, then the path must either begin with "/" or be an empty string. If the NSURLComponents does not have an authority component (user, password, host or port) and has a path component, the path component must not start with "//". If those requirements are not met, nil is returned. + NSURL URLRelativeToURL_(NSURL? baseURL) { + final _ret = _lib._objc_msgSend_457( + _id, _lib._sel_URLRelativeToURL_1, baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + /// Returns a URL string created from the NSURLComponents. If the NSURLComponents has an authority component (user, password, host or port) and a path component, then the path must either begin with "/" or be an empty string. If the NSURLComponents does not have an authority component (user, password, host or port) and has a path component, the path component must not start with "//". If those requirements are not met, nil is returned. + NSString? get string { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_string1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + /// Attempting to set the scheme with an invalid scheme string will cause an exception. + NSString? get scheme { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_scheme1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + /// Attempting to set the scheme with an invalid scheme string will cause an exception. + set scheme(NSString? value) { + _lib._objc_msgSend_327( + _id, _lib._sel_setScheme_1, value?._id ?? ffi.nullptr); + } + + NSString? get user { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_user1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set user(NSString? value) { + _lib._objc_msgSend_327(_id, _lib._sel_setUser_1, value?._id ?? ffi.nullptr); + } + + NSString? get password { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_password1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set password(NSString? value) { + _lib._objc_msgSend_327( + _id, _lib._sel_setPassword_1, value?._id ?? ffi.nullptr); + } + + NSString? get host { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_host1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set host(NSString? value) { + _lib._objc_msgSend_327(_id, _lib._sel_setHost_1, value?._id ?? ffi.nullptr); + } + + /// Attempting to set a negative port number will cause an exception. + NSNumber? get port { + final _ret = _lib._objc_msgSend_89(_id, _lib._sel_port1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + /// Attempting to set a negative port number will cause an exception. + set port(NSNumber? value) { + _lib._objc_msgSend_331(_id, _lib._sel_setPort_1, value?._id ?? ffi.nullptr); + } + + NSString? get path { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_path1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set path(NSString? value) { + _lib._objc_msgSend_327(_id, _lib._sel_setPath_1, value?._id ?? ffi.nullptr); + } + + NSString? get query { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_query1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set query(NSString? value) { + _lib._objc_msgSend_327( + _id, _lib._sel_setQuery_1, value?._id ?? ffi.nullptr); + } + + NSString? get fragment { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_fragment1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set fragment(NSString? value) { + _lib._objc_msgSend_327( + _id, _lib._sel_setFragment_1, value?._id ?? ffi.nullptr); + } + + /// Getting these properties retains any percent encoding these components may have. Setting these properties assumes the component string is already correctly percent encoded. Attempting to set an incorrectly percent encoded string will cause an exception. Although ';' is a legal path character, it is recommended that it be percent-encoded for best compatibility with NSURL (-stringByAddingPercentEncodingWithAllowedCharacters: will percent-encode any ';' characters if you pass the URLPathAllowedCharacterSet). + NSString? get percentEncodedUser { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedUser1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + /// Getting these properties retains any percent encoding these components may have. Setting these properties assumes the component string is already correctly percent encoded. Attempting to set an incorrectly percent encoded string will cause an exception. Although ';' is a legal path character, it is recommended that it be percent-encoded for best compatibility with NSURL (-stringByAddingPercentEncodingWithAllowedCharacters: will percent-encode any ';' characters if you pass the URLPathAllowedCharacterSet). + set percentEncodedUser(NSString? value) { + _lib._objc_msgSend_327( + _id, _lib._sel_setPercentEncodedUser_1, value?._id ?? ffi.nullptr); + } + + NSString? get percentEncodedPassword { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedPassword1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set percentEncodedPassword(NSString? value) { + _lib._objc_msgSend_327( + _id, _lib._sel_setPercentEncodedPassword_1, value?._id ?? ffi.nullptr); + } + + NSString? get percentEncodedHost { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedHost1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set percentEncodedHost(NSString? value) { + _lib._objc_msgSend_327( + _id, _lib._sel_setPercentEncodedHost_1, value?._id ?? ffi.nullptr); + } + + NSString? get percentEncodedPath { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set percentEncodedPath(NSString? value) { + _lib._objc_msgSend_327( + _id, _lib._sel_setPercentEncodedPath_1, value?._id ?? ffi.nullptr); + } + + NSString? get percentEncodedQuery { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedQuery1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set percentEncodedQuery(NSString? value) { + _lib._objc_msgSend_327( + _id, _lib._sel_setPercentEncodedQuery_1, value?._id ?? ffi.nullptr); + } + + NSString? get percentEncodedFragment { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedFragment1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set percentEncodedFragment(NSString? value) { + _lib._objc_msgSend_327( + _id, _lib._sel_setPercentEncodedFragment_1, value?._id ?? ffi.nullptr); + } + + /// These properties return the character range of a component in the URL string returned by -[NSURLComponents string]. If the component does not exist in the NSURLComponents object, {NSNotFound, 0} is returned. Note: Zero length components are legal. For example, the URL string "scheme://:@/?#" has a zero length user, password, host, query and fragment; the URL strings "scheme:" and "" both have a zero length path. + NSRange get rangeOfScheme { + return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfScheme1); + } + + NSRange get rangeOfUser { + return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfUser1); + } + + NSRange get rangeOfPassword { + return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfPassword1); + } + + NSRange get rangeOfHost { + return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfHost1); + } + + NSRange get rangeOfPort { + return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfPort1); + } + + NSRange get rangeOfPath { + return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfPath1); + } + + NSRange get rangeOfQuery { + return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfQuery1); + } + + NSRange get rangeOfFragment { + return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfFragment1); + } + + /// The query component as an array of NSURLQueryItems for this NSURLComponents. + /// + /// Each NSURLQueryItem represents a single key-value pair, + /// + /// Note that a name may appear more than once in a single query string, so the name values are not guaranteed to be unique. If the NSURLComponents has an empty query component, returns an empty array. If the NSURLComponents has no query component, returns nil. + /// + /// The queryItems getter returns an array of NSURLQueryItems in the order in which they appear in the original query string. Any percent-encoding in a NSURLQueryItem name or value is removed. + /// + /// The queryItems setter combines an array containing any number of NSURLQueryItems, each of which represents a single key-value pair, into a query string and sets the NSURLComponents query property. If the NSURLQueryItems name or value strings contain any characters not allowed in a URL's query component, those characters are percent-encoded. In addition, any '&' and '=' characters in a NSURLQueryItem name are percent-encoded. Passing an empty array sets the query component of the NSURLComponents to an empty string. Passing nil removes the query component of the NSURLComponents. + /// + /// - note: If a NSURLQueryItem name-value pair is empty (i.e. the query string starts with '&', ends with '&', or has "&&" within it), you get a NSURLQueryItem with a zero-length name and a nil value. If a NSURLQueryItem name-value pair has nothing before the equals sign, you get a zero-length name. If a NSURLQueryItem name-value pair has nothing after the equals sign, you get a zero-length value. If a NSURLQueryItem name-value pair has no equals sign, the NSURLQueryItem name-value pair string is the name and you get a nil value. + NSArray? get queryItems { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_queryItems1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + /// The query component as an array of NSURLQueryItems for this NSURLComponents. + /// + /// Each NSURLQueryItem represents a single key-value pair, + /// + /// Note that a name may appear more than once in a single query string, so the name values are not guaranteed to be unique. If the NSURLComponents has an empty query component, returns an empty array. If the NSURLComponents has no query component, returns nil. + /// + /// The queryItems getter returns an array of NSURLQueryItems in the order in which they appear in the original query string. Any percent-encoding in a NSURLQueryItem name or value is removed. + /// + /// The queryItems setter combines an array containing any number of NSURLQueryItems, each of which represents a single key-value pair, into a query string and sets the NSURLComponents query property. If the NSURLQueryItems name or value strings contain any characters not allowed in a URL's query component, those characters are percent-encoded. In addition, any '&' and '=' characters in a NSURLQueryItem name are percent-encoded. Passing an empty array sets the query component of the NSURLComponents to an empty string. Passing nil removes the query component of the NSURLComponents. + /// + /// - note: If a NSURLQueryItem name-value pair is empty (i.e. the query string starts with '&', ends with '&', or has "&&" within it), you get a NSURLQueryItem with a zero-length name and a nil value. If a NSURLQueryItem name-value pair has nothing before the equals sign, you get a zero-length name. If a NSURLQueryItem name-value pair has nothing after the equals sign, you get a zero-length value. If a NSURLQueryItem name-value pair has no equals sign, the NSURLQueryItem name-value pair string is the name and you get a nil value. + set queryItems(NSArray? value) { + _lib._objc_msgSend_392( + _id, _lib._sel_setQueryItems_1, value?._id ?? ffi.nullptr); + } + + /// The percentEncodedQueryItems getter returns an array of NSURLQueryItems in the order in which they appear in the original query string. Any percent-encoding in a NSURLQueryItem name or value is retained. + /// + /// The percentEncodedQueryItems setter combines an array containing any number of NSURLQueryItems, each of which represents a single key-value pair, into a query string and sets the NSURLComponents query property. This property assumes the NSURLQueryItem names and values are already correctly percent-encoded, and that the NSURLQueryItem names do not contain the query item delimiter characters '&' and '='. Attempting to set an incorrectly percent-encoded NSURLQueryItem or a NSURLQueryItem name with the query item delimiter characters '&' and '=' will cause an exception. + NSArray? get percentEncodedQueryItems { + final _ret = + _lib._objc_msgSend_162(_id, _lib._sel_percentEncodedQueryItems1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + /// The percentEncodedQueryItems getter returns an array of NSURLQueryItems in the order in which they appear in the original query string. Any percent-encoding in a NSURLQueryItem name or value is retained. + /// + /// The percentEncodedQueryItems setter combines an array containing any number of NSURLQueryItems, each of which represents a single key-value pair, into a query string and sets the NSURLComponents query property. This property assumes the NSURLQueryItem names and values are already correctly percent-encoded, and that the NSURLQueryItem names do not contain the query item delimiter characters '&' and '='. Attempting to set an incorrectly percent-encoded NSURLQueryItem or a NSURLQueryItem name with the query item delimiter characters '&' and '=' will cause an exception. + set percentEncodedQueryItems(NSArray? value) { + _lib._objc_msgSend_392(_id, _lib._sel_setPercentEncodedQueryItems_1, + value?._id ?? ffi.nullptr); + } + + static NSURLComponents new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLComponents1, _lib._sel_new1); + return NSURLComponents._(_ret, _lib, retain: false, release: true); + } + + static NSURLComponents alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLComponents1, _lib._sel_alloc1); + return NSURLComponents._(_ret, _lib, retain: false, release: true); + } +} + +/// NSFileSecurity encapsulates a file system object's security information. NSFileSecurity and CFFileSecurity are toll-free bridged. Use the CFFileSecurity API for access to the low-level file security properties encapsulated by NSFileSecurity. +class NSFileSecurity extends NSObject { + NSFileSecurity._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSFileSecurity] that points to the same underlying object as [other]. + static NSFileSecurity castFrom(T other) { + return NSFileSecurity._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSFileSecurity] that wraps the given raw object pointer. + static NSFileSecurity castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSFileSecurity._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSFileSecurity]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSFileSecurity1); + } + + NSFileSecurity initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_14( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSFileSecurity._(_ret, _lib, retain: true, release: true); + } + + static NSFileSecurity new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSFileSecurity1, _lib._sel_new1); + return NSFileSecurity._(_ret, _lib, retain: false, release: true); + } + + static NSFileSecurity alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSFileSecurity1, _lib._sel_alloc1); + return NSFileSecurity._(_ret, _lib, retain: false, release: true); + } +} + +/// ! +/// @class NSHTTPURLResponse +/// +/// @abstract An NSHTTPURLResponse object represents a response to an +/// HTTP URL load. It is a specialization of NSURLResponse which +/// provides conveniences for accessing information specific to HTTP +/// protocol responses. +class NSHTTPURLResponse extends NSURLResponse { + NSHTTPURLResponse._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSHTTPURLResponse] that points to the same underlying object as [other]. + static NSHTTPURLResponse castFrom(T other) { + return NSHTTPURLResponse._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSHTTPURLResponse] that wraps the given raw object pointer. + static NSHTTPURLResponse castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSHTTPURLResponse._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSHTTPURLResponse]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSHTTPURLResponse1); + } + + /// ! + /// @method initWithURL:statusCode:HTTPVersion:headerFields: + /// @abstract initializer for NSHTTPURLResponse objects. + /// @param url the URL from which the response was generated. + /// @param statusCode an HTTP status code. + /// @param HTTPVersion The version of the HTTP response as represented by the server. This is typically represented as "HTTP/1.1". + /// @param headerFields A dictionary representing the header keys and values of the server response. + /// @result the instance of the object, or NULL if an error occurred during initialization. + /// @discussion This API was introduced in Mac OS X 10.7.2 and iOS 5.0 and is not available prior to those releases. + NSHTTPURLResponse initWithURL_statusCode_HTTPVersion_headerFields_(NSURL? url, + int statusCode, NSString? HTTPVersion, NSDictionary? headerFields) { + final _ret = _lib._objc_msgSend_458( + _id, + _lib._sel_initWithURL_statusCode_HTTPVersion_headerFields_1, + url?._id ?? ffi.nullptr, + statusCode, + HTTPVersion?._id ?? ffi.nullptr, + headerFields?._id ?? ffi.nullptr); + return NSHTTPURLResponse._(_ret, _lib, retain: true, release: true); + } + + /// ! + /// @abstract Returns the HTTP status code of the receiver. + /// @result The HTTP status code of the receiver. + int get statusCode { + return _lib._objc_msgSend_81(_id, _lib._sel_statusCode1); + } + + /// ! + /// @abstract Returns a dictionary containing all the HTTP header fields + /// of the receiver. + /// @discussion By examining this header dictionary, clients can see + /// the "raw" header information which was reported to the protocol + /// implementation by the HTTP server. This may be of use to + /// sophisticated or special-purpose HTTP clients. + /// @result A dictionary containing all the HTTP header fields of the + /// receiver. + NSDictionary? get allHeaderFields { + final _ret = _lib._objc_msgSend_180(_id, _lib._sel_allHeaderFields1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + /// ! + /// @method valueForHTTPHeaderField: + /// @abstract Returns the value which corresponds to the given header + /// field. Note that, in keeping with the HTTP RFC, HTTP header field + /// names are case-insensitive. + /// @param field the header field name to use for the lookup + /// (case-insensitive). + /// @result the value associated with the given header field, or nil if + /// there is no value associated with the given header field. + NSString valueForHTTPHeaderField_(NSString? field) { + final _ret = _lib._objc_msgSend_98( + _id, _lib._sel_valueForHTTPHeaderField_1, field?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + /// ! + /// @method localizedStringForStatusCode: + /// @abstract Convenience method which returns a localized string + /// 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 NSString localizedStringForStatusCode_( + NativeCupertinoHttp _lib, int statusCode) { + final _ret = _lib._objc_msgSend_459(_lib._class_NSHTTPURLResponse1, + _lib._sel_localizedStringForStatusCode_1, statusCode); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSHTTPURLResponse new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPURLResponse1, _lib._sel_new1); + return NSHTTPURLResponse._(_ret, _lib, retain: false, release: true); + } + + static NSHTTPURLResponse alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPURLResponse1, _lib._sel_alloc1); + return NSHTTPURLResponse._(_ret, _lib, retain: false, release: true); + } +} + +class NSException extends NSObject { + NSException._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSException] that points to the same underlying object as [other]. + static NSException castFrom(T other) { + return NSException._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSException] that wraps the given raw object pointer. + static NSException castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSException._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSException]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSException1); + } + + static NSException exceptionWithName_reason_userInfo_( + NativeCupertinoHttp _lib, + NSExceptionName name, + NSString? reason, + NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_460( + _lib._class_NSException1, + _lib._sel_exceptionWithName_reason_userInfo_1, + name, + reason?._id ?? ffi.nullptr, + userInfo?._id ?? ffi.nullptr); + return NSException._(_ret, _lib, retain: true, release: true); + } + + NSException initWithName_reason_userInfo_( + NSExceptionName aName, NSString? aReason, NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_461( + _id, + _lib._sel_initWithName_reason_userInfo_1, + aName, + aReason?._id ?? ffi.nullptr, + aUserInfo?._id ?? ffi.nullptr); + return NSException._(_ret, _lib, retain: true, release: true); + } + + NSExceptionName get name { + return _lib._objc_msgSend_32(_id, _lib._sel_name1); + } + + NSString? get reason { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_reason1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_180(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSArray? get callStackReturnAddresses { + final _ret = + _lib._objc_msgSend_162(_id, _lib._sel_callStackReturnAddresses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get callStackSymbols { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_callStackSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + void raise() { + return _lib._objc_msgSend_1(_id, _lib._sel_raise1); + } + + static void raise_format_( + NativeCupertinoHttp _lib, NSExceptionName name, NSString? format) { + return _lib._objc_msgSend_361(_lib._class_NSException1, + _lib._sel_raise_format_1, name, format?._id ?? ffi.nullptr); + } + + static void raise_format_arguments_(NativeCupertinoHttp _lib, + NSExceptionName name, NSString? format, va_list argList) { + return _lib._objc_msgSend_462( + _lib._class_NSException1, + _lib._sel_raise_format_arguments_1, + name, + format?._id ?? ffi.nullptr, + argList); + } + + static NSException new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_new1); + return NSException._(_ret, _lib, retain: false, release: true); + } + + static NSException alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); + return NSException._(_ret, _lib, retain: false, release: true); + } +} + +typedef NSUncaughtExceptionHandler + = ffi.NativeFunction)>; + +class NSAssertionHandler extends NSObject { + NSAssertionHandler._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSAssertionHandler] that points to the same underlying object as [other]. + static NSAssertionHandler castFrom(T other) { + return NSAssertionHandler._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSAssertionHandler] that wraps the given raw object pointer. + static NSAssertionHandler castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSAssertionHandler._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSAssertionHandler]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSAssertionHandler1); + } + + static NSAssertionHandler? getCurrentHandler(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_463( + _lib._class_NSAssertionHandler1, _lib._sel_currentHandler1); + return _ret.address == 0 + ? null + : NSAssertionHandler._(_ret, _lib, retain: true, release: true); + } + + void handleFailureInMethod_object_file_lineNumber_description_( + ffi.Pointer selector, + NSObject object, + NSString? fileName, + int line, + NSString? format) { + return _lib._objc_msgSend_464( + _id, + _lib._sel_handleFailureInMethod_object_file_lineNumber_description_1, + selector, + object._id, + fileName?._id ?? ffi.nullptr, + line, + format?._id ?? ffi.nullptr); + } + + void handleFailureInFunction_file_lineNumber_description_( + NSString? functionName, NSString? fileName, int line, NSString? format) { + return _lib._objc_msgSend_465( + _id, + _lib._sel_handleFailureInFunction_file_lineNumber_description_1, + functionName?._id ?? ffi.nullptr, + fileName?._id ?? ffi.nullptr, + line, + format?._id ?? ffi.nullptr); + } + + static NSAssertionHandler new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSAssertionHandler1, _lib._sel_new1); + return NSAssertionHandler._(_ret, _lib, retain: false, release: true); + } + + static NSAssertionHandler alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSAssertionHandler1, _lib._sel_alloc1); + return NSAssertionHandler._(_ret, _lib, retain: false, release: true); + } +} + +class NSBlockOperation extends NSOperation { + NSBlockOperation._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSBlockOperation] that points to the same underlying object as [other]. + static NSBlockOperation castFrom(T other) { + return NSBlockOperation._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSBlockOperation] that wraps the given raw object pointer. + static NSBlockOperation castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSBlockOperation._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSBlockOperation]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSBlockOperation1); + } + + static NSBlockOperation blockOperationWithBlock_( + NativeCupertinoHttp _lib, ObjCBlock16 block) { + final _ret = _lib._objc_msgSend_466(_lib._class_NSBlockOperation1, + _lib._sel_blockOperationWithBlock_1, block._id); + return NSBlockOperation._(_ret, _lib, retain: true, release: true); + } + + void addExecutionBlock_(ObjCBlock16 block) { + return _lib._objc_msgSend_341( + _id, _lib._sel_addExecutionBlock_1, block._id); + } + + NSArray? get executionBlocks { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_executionBlocks1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSBlockOperation new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSBlockOperation1, _lib._sel_new1); + return NSBlockOperation._(_ret, _lib, retain: false, release: true); + } + + static NSBlockOperation alloc(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSBlockOperation1, _lib._sel_alloc1); + return NSBlockOperation._(_ret, _lib, retain: false, release: true); + } +} + +class NSInvocationOperation extends NSOperation { + NSInvocationOperation._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSInvocationOperation] that points to the same underlying object as [other]. + static NSInvocationOperation castFrom(T other) { + return NSInvocationOperation._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSInvocationOperation] that wraps the given raw object pointer. + static NSInvocationOperation castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSInvocationOperation._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSInvocationOperation]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSInvocationOperation1); + } + + NSInvocationOperation initWithTarget_selector_object_( + NSObject target, ffi.Pointer sel, NSObject arg) { + final _ret = _lib._objc_msgSend_467(_id, + _lib._sel_initWithTarget_selector_object_1, target._id, sel, arg._id); + return NSInvocationOperation._(_ret, _lib, retain: true, release: true); + } + + NSInvocationOperation initWithInvocation_(NSInvocation? inv) { + final _ret = _lib._objc_msgSend_468( + _id, _lib._sel_initWithInvocation_1, inv?._id ?? ffi.nullptr); + return NSInvocationOperation._(_ret, _lib, retain: true, release: true); + } + + NSInvocation? get invocation { + final _ret = _lib._objc_msgSend_469(_id, _lib._sel_invocation1); + return _ret.address == 0 + ? null + : NSInvocation._(_ret, _lib, retain: true, release: true); + } + + NSObject get result { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_result1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSInvocationOperation new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSInvocationOperation1, _lib._sel_new1); + return NSInvocationOperation._(_ret, _lib, retain: false, release: true); + } + + static NSInvocationOperation alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSInvocationOperation1, _lib._sel_alloc1); + return NSInvocationOperation._(_ret, _lib, retain: false, release: true); + } +} + +class _Dart_Isolate extends ffi.Opaque {} + +class _Dart_IsolateGroup extends ffi.Opaque {} + +class _Dart_Handle extends ffi.Opaque {} + +class _Dart_WeakPersistentHandle extends ffi.Opaque {} + +class _Dart_FinalizableHandle extends ffi.Opaque {} + +typedef Dart_WeakPersistentHandle = ffi.Pointer<_Dart_WeakPersistentHandle>; + +/// These structs are versioned by DART_API_DL_MAJOR_VERSION, bump the +/// version when changing this struct. +typedef Dart_HandleFinalizer = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; +typedef Dart_FinalizableHandle = ffi.Pointer<_Dart_FinalizableHandle>; + +class Dart_IsolateFlags extends ffi.Struct { + @ffi.Int32() + external int version; + + @ffi.Bool() + external bool enable_asserts; + + @ffi.Bool() + external bool use_field_guards; + + @ffi.Bool() + external bool use_osr; + + @ffi.Bool() + external bool obfuscate; + + @ffi.Bool() + external bool load_vmservice_library; + + @ffi.Bool() + external bool copy_parent_code; + + @ffi.Bool() + external bool null_safety; + + @ffi.Bool() + external bool is_system_isolate; +} + +/// Forward declaration +class Dart_CodeObserver extends ffi.Struct { + external ffi.Pointer data; + + external Dart_OnNewCodeCallback on_new_code; +} + +/// Callback provided by the embedder that is used by the VM to notify on code +/// object creation, *before* it is invoked the first time. +/// This is useful for embedders wanting to e.g. keep track of PCs beyond +/// the lifetime of the garbage collected code objects. +/// Note that an address range may be used by more than one code object over the +/// lifecycle of a process. Clients of this function should record timestamps for +/// these compilation events and when collecting PCs to disambiguate reused +/// address ranges. +typedef Dart_OnNewCodeCallback = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + uintptr_t, uintptr_t)>>; + +/// Describes how to initialize the VM. Used with Dart_Initialize. +/// +/// \param version Identifies the version of the struct used by the client. +/// should be initialized to DART_INITIALIZE_PARAMS_CURRENT_VERSION. +/// \param vm_isolate_snapshot A buffer containing a snapshot of the VM isolate +/// or NULL if no snapshot is provided. If provided, the buffer must remain +/// valid until Dart_Cleanup returns. +/// \param instructions_snapshot A buffer containing a snapshot of precompiled +/// instructions, or NULL if no snapshot is provided. If provided, the buffer +/// must remain valid until Dart_Cleanup returns. +/// \param initialize_isolate A function to be called during isolate +/// initialization inside an existing isolate group. +/// See Dart_InitializeIsolateCallback. +/// \param create_group A function to be called during isolate group creation. +/// See Dart_IsolateGroupCreateCallback. +/// \param shutdown A function to be called right before an isolate is shutdown. +/// See Dart_IsolateShutdownCallback. +/// \param cleanup A function to be called after an isolate was shutdown. +/// See Dart_IsolateCleanupCallback. +/// \param cleanup_group A function to be called after an isolate group is shutdown. +/// See Dart_IsolateGroupCleanupCallback. +/// \param get_service_assets A function to be called by the service isolate when +/// it requires the vmservice assets archive. +/// See Dart_GetVMServiceAssetsArchive. +/// \param code_observer An external code observer callback function. +/// The observer can be invoked as early as during the Dart_Initialize() call. +class Dart_InitializeParams extends ffi.Struct { + @ffi.Int32() + external int version; + + external ffi.Pointer vm_snapshot_data; + + external ffi.Pointer vm_snapshot_instructions; + + external Dart_IsolateGroupCreateCallback create_group; + + external Dart_InitializeIsolateCallback initialize_isolate; + + external Dart_IsolateShutdownCallback shutdown_isolate; + + external Dart_IsolateCleanupCallback cleanup_isolate; + + external Dart_IsolateGroupCleanupCallback cleanup_group; + + external Dart_ThreadExitCallback thread_exit; + + external Dart_FileOpenCallback file_open; + + external Dart_FileReadCallback file_read; + + external Dart_FileWriteCallback file_write; + + external Dart_FileCloseCallback file_close; + + external Dart_EntropySource entropy_source; + + external Dart_GetVMServiceAssetsArchive get_service_assets; + + @ffi.Bool() + external bool start_kernel_isolate; + + external ffi.Pointer code_observer; +} + +/// An isolate creation and initialization callback function. +/// +/// This callback, provided by the embedder, is called when the VM +/// needs to create an isolate. The callback should create an isolate +/// by calling Dart_CreateIsolateGroup and load any scripts required for +/// execution. +/// +/// This callback may be called on a different thread than the one +/// running the parent isolate. +/// +/// When the function returns NULL, it is the responsibility of this +/// function to ensure that Dart_ShutdownIsolate has been called if +/// required (for example, if the isolate was created successfully by +/// Dart_CreateIsolateGroup() but the root library fails to load +/// successfully, then the function should call Dart_ShutdownIsolate +/// before returning). +/// +/// When the function returns NULL, the function should set *error to +/// a malloc-allocated buffer containing a useful error message. The +/// caller of this function (the VM) will make sure that the buffer is +/// freed. +/// +/// \param script_uri The uri of the main source file or snapshot to load. +/// Either the URI of the parent isolate set in Dart_CreateIsolateGroup for +/// Isolate.spawn, or the argument to Isolate.spawnUri canonicalized by the +/// library tag handler of the parent isolate. +/// The callback is responsible for loading the program by a call to +/// Dart_LoadScriptFromKernel. +/// \param main The name of the main entry point this isolate will +/// eventually run. This is provided for advisory purposes only to +/// improve debugging messages. The main function is not invoked by +/// this function. +/// \param package_root Ignored. +/// \param package_config Uri of the package configuration file (either in format +/// of .packages or .dart_tool/package_config.json) for this isolate +/// to resolve package imports against. If this parameter is not passed the +/// package resolution of the parent isolate should be used. +/// \param flags Default flags for this isolate being spawned. Either inherited +/// from the spawning isolate or passed as parameters when spawning the +/// isolate from Dart code. +/// \param isolate_data The isolate data which was passed to the +/// parent isolate when it was created by calling Dart_CreateIsolateGroup(). +/// \param error A structure into which the embedder can place a +/// C string containing an error message in the case of failures. +/// +/// \return The embedder returns NULL if the creation and +/// initialization was not successful and the isolate if successful. +typedef Dart_IsolateGroupCreateCallback = ffi.Pointer< + ffi.NativeFunction< + Dart_Isolate Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>; + +/// An isolate is the unit of concurrency in Dart. Each isolate has +/// its own memory and thread of control. No state is shared between +/// isolates. Instead, isolates communicate by message passing. +/// +/// Each thread keeps track of its current isolate, which is the +/// isolate which is ready to execute on the current thread. The +/// current isolate may be NULL, in which case no isolate is ready to +/// execute. Most of the Dart apis require there to be a current +/// isolate in order to function without error. The current isolate is +/// set by any call to Dart_CreateIsolateGroup or Dart_EnterIsolate. +typedef Dart_Isolate = ffi.Pointer<_Dart_Isolate>; + +/// An isolate initialization callback function. +/// +/// This callback, provided by the embedder, is called when the VM has created an +/// isolate within an existing isolate group (i.e. from the same source as an +/// existing isolate). +/// +/// The callback should setup native resolvers and might want to set a custom +/// message handler via [Dart_SetMessageNotifyCallback] and mark the isolate as +/// runnable. +/// +/// This callback may be called on a different thread than the one +/// running the parent isolate. +/// +/// When the function returns `false`, it is the responsibility of this +/// function to ensure that `Dart_ShutdownIsolate` has been called. +/// +/// When the function returns `false`, the function should set *error to +/// a malloc-allocated buffer containing a useful error message. The +/// caller of this function (the VM) will make sure that the buffer is +/// freed. +/// +/// \param child_isolate_data The callback data to associate with the new +/// child isolate. +/// \param error A structure into which the embedder can place a +/// C string containing an error message in the case the initialization fails. +/// +/// \return The embedder returns true if the initialization was successful and +/// false otherwise (in which case the VM will terminate the isolate). +typedef Dart_InitializeIsolateCallback = ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer>, + ffi.Pointer>)>>; + +/// An isolate shutdown callback function. +/// +/// This callback, provided by the embedder, is called before the vm +/// shuts down an isolate. The isolate being shutdown will be the current +/// isolate. It is safe to run Dart code. +/// +/// This function should be used to dispose of native resources that +/// are allocated to an isolate in order to avoid leaks. +/// +/// \param isolate_group_data The same callback data which was passed to the +/// isolate group when it was created. +/// \param isolate_data The same callback data which was passed to the isolate +/// when it was created. +typedef Dart_IsolateShutdownCallback = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; + +/// An isolate cleanup callback function. +/// +/// This callback, provided by the embedder, is called after the vm +/// shuts down an isolate. There will be no current isolate and it is *not* +/// safe to run Dart code. +/// +/// This function should be used to dispose of native resources that +/// are allocated to an isolate in order to avoid leaks. +/// +/// \param isolate_group_data The same callback data which was passed to the +/// isolate group when it was created. +/// \param isolate_data The same callback data which was passed to the isolate +/// when it was created. +typedef Dart_IsolateCleanupCallback = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; + +/// An isolate group cleanup callback function. +/// +/// This callback, provided by the embedder, is called after the vm +/// shuts down an isolate group. +/// +/// This function should be used to dispose of native resources that +/// are allocated to an isolate in order to avoid leaks. +/// +/// \param isolate_group_data The same callback data which was passed to the +/// isolate group when it was created. +typedef Dart_IsolateGroupCleanupCallback + = ffi.Pointer)>>; + +/// A thread death callback function. +/// This callback, provided by the embedder, is called before a thread in the +/// vm thread pool exits. +/// This function could be used to dispose of native resources that +/// are associated and attached to the thread, in order to avoid leaks. +typedef Dart_ThreadExitCallback + = ffi.Pointer>; + +/// Callbacks provided by the embedder for file operations. If the +/// embedder does not allow file operations these callbacks can be +/// NULL. +/// +/// Dart_FileOpenCallback - opens a file for reading or writing. +/// \param name The name of the file to open. +/// \param write A boolean variable which indicates if the file is to +/// opened for writing. If there is an existing file it needs to truncated. +/// +/// Dart_FileReadCallback - Read contents of file. +/// \param data Buffer allocated in the callback into which the contents +/// of the file are read into. It is the responsibility of the caller to +/// free this buffer. +/// \param file_length A variable into which the length of the file is returned. +/// In the case of an error this value would be -1. +/// \param stream Handle to the opened file. +/// +/// Dart_FileWriteCallback - Write data into file. +/// \param data Buffer which needs to be written into the file. +/// \param length Length of the buffer. +/// \param stream Handle to the opened file. +/// +/// Dart_FileCloseCallback - Closes the opened file. +/// \param stream Handle to the opened file. +typedef Dart_FileOpenCallback = ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Bool)>>; +typedef Dart_FileReadCallback = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>>; +typedef Dart_FileWriteCallback = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, ffi.IntPtr, ffi.Pointer)>>; +typedef Dart_FileCloseCallback + = ffi.Pointer)>>; +typedef Dart_EntropySource = ffi.Pointer< + ffi.NativeFunction, ffi.IntPtr)>>; + +/// Callback provided by the embedder that is used by the vmservice isolate +/// to request the asset archive. The asset archive must be an uncompressed tar +/// archive that is stored in a Uint8List. +/// +/// If the embedder has no vmservice isolate assets, the callback can be NULL. +/// +/// \return The embedder must return a handle to a Uint8List containing an +/// uncompressed tar archive or null. +typedef Dart_GetVMServiceAssetsArchive + = ffi.Pointer>; +typedef Dart_IsolateGroup = ffi.Pointer<_Dart_IsolateGroup>; + +/// A message notification callback. +/// +/// This callback allows the embedder to provide an alternate wakeup +/// mechanism for the delivery of inter-isolate messages. It is the +/// responsibility of the embedder to call Dart_HandleMessage to +/// process the message. +typedef Dart_MessageNotifyCallback + = ffi.Pointer>; + +/// A port is used to send or receive inter-isolate messages +typedef Dart_Port = ffi.Int64; + +abstract class Dart_CoreType_Id { + static const int Dart_CoreType_Dynamic = 0; + static const int Dart_CoreType_Int = 1; + static const int Dart_CoreType_String = 2; +} + +/// ========== +/// Typed Data +/// ========== +abstract class Dart_TypedData_Type { + static const int Dart_TypedData_kByteData = 0; + static const int Dart_TypedData_kInt8 = 1; + static const int Dart_TypedData_kUint8 = 2; + static const int Dart_TypedData_kUint8Clamped = 3; + static const int Dart_TypedData_kInt16 = 4; + static const int Dart_TypedData_kUint16 = 5; + static const int Dart_TypedData_kInt32 = 6; + static const int Dart_TypedData_kUint32 = 7; + static const int Dart_TypedData_kInt64 = 8; + static const int Dart_TypedData_kUint64 = 9; + static const int Dart_TypedData_kFloat32 = 10; + static const int Dart_TypedData_kFloat64 = 11; + static const int Dart_TypedData_kInt32x4 = 12; + static const int Dart_TypedData_kFloat32x4 = 13; + static const int Dart_TypedData_kFloat64x2 = 14; + static const int Dart_TypedData_kInvalid = 15; +} + +class _Dart_NativeArguments extends ffi.Opaque {} + +/// The arguments to a native function. +/// +/// This object is passed to a native function to represent its +/// arguments and return value. It allows access to the arguments to a +/// native function by index. It also allows the return value of a +/// native function to be set. +typedef Dart_NativeArguments = ffi.Pointer<_Dart_NativeArguments>; + +abstract class Dart_NativeArgument_Type { + static const int Dart_NativeArgument_kBool = 0; + static const int Dart_NativeArgument_kInt32 = 1; + static const int Dart_NativeArgument_kUint32 = 2; + static const int Dart_NativeArgument_kInt64 = 3; + static const int Dart_NativeArgument_kUint64 = 4; + static const int Dart_NativeArgument_kDouble = 5; + static const int Dart_NativeArgument_kString = 6; + static const int Dart_NativeArgument_kInstance = 7; + static const int Dart_NativeArgument_kNativeFields = 8; +} + +class _Dart_NativeArgument_Descriptor extends ffi.Struct { + @ffi.Uint8() + external int type; + + @ffi.Uint8() + external int index; +} + +class _Dart_NativeArgument_Value extends ffi.Opaque {} + +typedef Dart_NativeArgument_Descriptor = _Dart_NativeArgument_Descriptor; +typedef Dart_NativeArgument_Value = _Dart_NativeArgument_Value; + +/// An environment lookup callback function. +/// +/// \param name The name of the value to lookup in the environment. +/// +/// \return A valid handle to a string if the name exists in the +/// current environment or Dart_Null() if not. +typedef Dart_EnvironmentCallback + = ffi.Pointer>; + +/// Native entry resolution callback. +/// +/// For libraries and scripts which have native functions, the embedder +/// can provide a native entry resolver. This callback is used to map a +/// name/arity to a Dart_NativeFunction. If no function is found, the +/// callback should return NULL. +/// +/// The parameters to the native resolver function are: +/// \param name a Dart string which is the name of the native function. +/// \param num_of_arguments is the number of arguments expected by the +/// native function. +/// \param auto_setup_scope is a boolean flag that can be set by the resolver +/// to indicate if this function needs a Dart API scope (see Dart_EnterScope/ +/// Dart_ExitScope) to be setup automatically by the VM before calling into +/// the native function. By default most native functions would require this +/// to be true but some light weight native functions which do not call back +/// into the VM through the Dart API may not require a Dart scope to be +/// setup automatically. +/// +/// \return A valid Dart_NativeFunction which resolves to a native entry point +/// for the native function. +/// +/// See Dart_SetNativeResolver. +typedef Dart_NativeEntryResolver = ffi.Pointer< + ffi.NativeFunction< + Dart_NativeFunction Function( + ffi.Handle, ffi.Int, ffi.Pointer)>>; + +/// A native function. +typedef Dart_NativeFunction + = ffi.Pointer>; + +/// Native entry symbol lookup callback. +/// +/// For libraries and scripts which have native functions, the embedder +/// can provide a callback for mapping a native entry to a symbol. This callback +/// maps a native function entry PC to the native function name. If no native +/// entry symbol can be found, the callback should return NULL. +/// +/// The parameters to the native reverse resolver function are: +/// \param nf A Dart_NativeFunction. +/// +/// \return A const UTF-8 string containing the symbol name or NULL. +/// +/// See Dart_SetNativeResolver. +typedef Dart_NativeEntrySymbol = ffi.Pointer< + ffi.NativeFunction Function(Dart_NativeFunction)>>; + +/// FFI Native C function pointer resolver callback. +/// +/// See Dart_SetFfiNativeResolver. +typedef Dart_FfiNativeResolver = ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, uintptr_t)>>; + +/// ===================== +/// Scripts and Libraries +/// ===================== +abstract class Dart_LibraryTag { + static const int Dart_kCanonicalizeUrl = 0; + static const int Dart_kImportTag = 1; + static const int Dart_kKernelTag = 2; +} + +/// The library tag handler is a multi-purpose callback provided by the +/// embedder to the Dart VM. The embedder implements the tag handler to +/// provide the ability to load Dart scripts and imports. +/// +/// -- TAGS -- +/// +/// Dart_kCanonicalizeUrl +/// +/// This tag indicates that the embedder should canonicalize 'url' with +/// respect to 'library'. For most embedders, the +/// Dart_DefaultCanonicalizeUrl function is a sufficient implementation +/// of this tag. The return value should be a string holding the +/// canonicalized url. +/// +/// Dart_kImportTag +/// +/// This tag is used to load a library from IsolateMirror.loadUri. The embedder +/// should call Dart_LoadLibraryFromKernel to provide the library to the VM. The +/// return value should be an error or library (the result from +/// Dart_LoadLibraryFromKernel). +/// +/// Dart_kKernelTag +/// +/// This tag is used to load the intermediate file (kernel) generated by +/// the Dart front end. This tag is typically used when a 'hot-reload' +/// of an application is needed and the VM is 'use dart front end' mode. +/// The dart front end typically compiles all the scripts, imports and part +/// files into one intermediate file hence we don't use the source/import or +/// script tags. The return value should be an error or a TypedData containing +/// the kernel bytes. +typedef Dart_LibraryTagHandler = ffi.Pointer< + ffi.NativeFunction>; + +/// Handles deferred loading requests. When this handler is invoked, it should +/// eventually load the deferred loading unit with the given id and call +/// Dart_DeferredLoadComplete or Dart_DeferredLoadCompleteError. It is +/// recommended that the loading occur asynchronously, but it is permitted to +/// call Dart_DeferredLoadComplete or Dart_DeferredLoadCompleteError before the +/// handler returns. +/// +/// If an error is returned, it will be propogated through +/// `prefix.loadLibrary()`. This is useful for synchronous +/// implementations, which must propogate any unwind errors from +/// Dart_DeferredLoadComplete or Dart_DeferredLoadComplete. Otherwise the handler +/// should return a non-error such as `Dart_Null()`. +typedef Dart_DeferredLoadHandler + = ffi.Pointer>; + +/// TODO(33433): Remove kernel service from the embedding API. +abstract class Dart_KernelCompilationStatus { + static const int Dart_KernelCompilationStatus_Unknown = -1; + static const int Dart_KernelCompilationStatus_Ok = 0; + static const int Dart_KernelCompilationStatus_Error = 1; + static const int Dart_KernelCompilationStatus_Crash = 2; + static const int Dart_KernelCompilationStatus_MsgFailed = 3; +} + +class Dart_KernelCompilationResult extends ffi.Struct { + @ffi.Int32() + external int status; + + @ffi.Bool() + external bool null_safety; + + external ffi.Pointer error; + + external ffi.Pointer kernel; + + @ffi.IntPtr() + external int kernel_size; +} + +abstract class Dart_KernelCompilationVerbosityLevel { + static const int Dart_KernelCompilationVerbosityLevel_Error = 0; + static const int Dart_KernelCompilationVerbosityLevel_Warning = 1; + static const int Dart_KernelCompilationVerbosityLevel_Info = 2; + static const int Dart_KernelCompilationVerbosityLevel_All = 3; +} + +class Dart_SourceFile extends ffi.Struct { + external ffi.Pointer uri; + + external ffi.Pointer source; +} + +typedef Dart_StreamingWriteCallback = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.IntPtr)>>; +typedef Dart_CreateLoadingUnitCallback = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.IntPtr, + ffi.Pointer>, + ffi.Pointer>)>>; +typedef Dart_StreamingCloseCallback + = ffi.Pointer)>>; + +/// A Dart_CObject is used for representing Dart objects as native C +/// data outside the Dart heap. These objects are totally detached from +/// the Dart heap. Only a subset of the Dart objects have a +/// representation as a Dart_CObject. +/// +/// The string encoding in the 'value.as_string' is UTF-8. +/// +/// All the different types from dart:typed_data are exposed as type +/// kTypedData. The specific type from dart:typed_data is in the type +/// field of the as_typed_data structure. The length in the +/// as_typed_data structure is always in bytes. +/// +/// The data for kTypedData is copied on message send and ownership remains with +/// the caller. The ownership of data for kExternalTyped is passed to the VM on +/// message send and returned when the VM invokes the +/// Dart_HandleFinalizer callback; a non-NULL callback must be provided. +abstract class Dart_CObject_Type { + static const int Dart_CObject_kNull = 0; + static const int Dart_CObject_kBool = 1; + static const int Dart_CObject_kInt32 = 2; + static const int Dart_CObject_kInt64 = 3; + static const int Dart_CObject_kDouble = 4; + static const int Dart_CObject_kString = 5; + static const int Dart_CObject_kArray = 6; + static const int Dart_CObject_kTypedData = 7; + static const int Dart_CObject_kExternalTypedData = 8; + static const int Dart_CObject_kSendPort = 9; + static const int Dart_CObject_kCapability = 10; + static const int Dart_CObject_kNativePointer = 11; + static const int Dart_CObject_kUnsupported = 12; + static const int Dart_CObject_kNumberOfTypes = 13; +} + +class _Dart_CObject extends ffi.Struct { + @ffi.Int32() + external int type; + + external UnnamedUnion5 value; +} + +class UnnamedUnion5 extends ffi.Union { + @ffi.Bool() + external bool as_bool; + + @ffi.Int32() + external int as_int32; + + @ffi.Int64() + external int as_int64; + + @ffi.Double() + external double as_double; + + external ffi.Pointer as_string; + + external UnnamedStruct5 as_send_port; + + external UnnamedStruct6 as_capability; + + external UnnamedStruct7 as_array; + + external UnnamedStruct8 as_typed_data; + + external UnnamedStruct9 as_external_typed_data; + + external UnnamedStruct10 as_native_pointer; +} + +class UnnamedStruct5 extends ffi.Struct { + @Dart_Port() + external int id; + + @Dart_Port() + external int origin_id; +} + +class UnnamedStruct6 extends ffi.Struct { + @ffi.Int64() + external int id; +} + +class UnnamedStruct7 extends ffi.Struct { + @ffi.IntPtr() + external int length; + + external ffi.Pointer> values; +} + +class UnnamedStruct8 extends ffi.Struct { + @ffi.Int32() + external int type; + + /// in elements, not bytes + @ffi.IntPtr() + external int length; + + external ffi.Pointer values; +} + +class UnnamedStruct9 extends ffi.Struct { + @ffi.Int32() + external int type; + + /// in elements, not bytes + @ffi.IntPtr() + external int length; + + external ffi.Pointer data; + + external ffi.Pointer peer; + + external Dart_HandleFinalizer callback; +} + +class UnnamedStruct10 extends ffi.Struct { + @ffi.IntPtr() + external int ptr; + + @ffi.IntPtr() + external int size; + + external Dart_HandleFinalizer callback; +} + +typedef Dart_CObject = _Dart_CObject; + +/// A native message handler. +/// +/// This handler is associated with a native port by calling +/// Dart_NewNativePort. +/// +/// The message received is decoded into the message structure. The +/// lifetime of the message data is controlled by the caller. All the +/// data references from the message are allocated by the caller and +/// will be reclaimed when returning to it. +typedef Dart_NativeMessageHandler = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(Dart_Port, ffi.Pointer)>>; +typedef Dart_PostCObject_Type = ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(Dart_Port_DL, ffi.Pointer)>>; + +/// ============================================================================ +/// IMPORTANT! Never update these signatures without properly updating +/// DART_API_DL_MAJOR_VERSION and DART_API_DL_MINOR_VERSION. +/// +/// Verbatim copy of `dart_native_api.h` and `dart_api.h` symbol names and types +/// to trigger compile-time errors if the sybols in those files are updated +/// without updating these. +/// +/// Function return and argument types, and typedefs are carbon copied. Structs +/// are typechecked nominally in C/C++, so they are not copied, instead a +/// comment is added to their definition. +typedef Dart_Port_DL = ffi.Int64; +typedef Dart_PostInteger_Type = ffi + .Pointer>; +typedef Dart_NewNativePort_Type = ffi.Pointer< + ffi.NativeFunction< + Dart_Port_DL Function( + ffi.Pointer, Dart_NativeMessageHandler_DL, ffi.Bool)>>; +typedef Dart_NativeMessageHandler_DL = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(Dart_Port_DL, ffi.Pointer)>>; +typedef Dart_CloseNativePort_Type + = ffi.Pointer>; +typedef Dart_IsError_Type + = ffi.Pointer>; +typedef Dart_IsApiError_Type + = ffi.Pointer>; +typedef Dart_IsUnhandledExceptionError_Type + = ffi.Pointer>; +typedef Dart_IsCompilationError_Type + = ffi.Pointer>; +typedef Dart_IsFatalError_Type + = ffi.Pointer>; +typedef Dart_GetError_Type = ffi + .Pointer Function(ffi.Handle)>>; +typedef Dart_ErrorHasException_Type + = ffi.Pointer>; +typedef Dart_ErrorGetException_Type + = ffi.Pointer>; +typedef Dart_ErrorGetStackTrace_Type + = ffi.Pointer>; +typedef Dart_NewApiError_Type = ffi + .Pointer)>>; +typedef Dart_NewCompilationError_Type = ffi + .Pointer)>>; +typedef Dart_NewUnhandledExceptionError_Type + = ffi.Pointer>; +typedef Dart_PropagateError_Type + = ffi.Pointer>; +typedef Dart_HandleFromPersistent_Type + = ffi.Pointer>; +typedef Dart_HandleFromWeakPersistent_Type = ffi.Pointer< + ffi.NativeFunction>; +typedef Dart_NewPersistentHandle_Type + = ffi.Pointer>; +typedef Dart_SetPersistentHandle_Type = ffi + .Pointer>; +typedef Dart_DeletePersistentHandle_Type + = ffi.Pointer>; +typedef Dart_NewWeakPersistentHandle_Type = ffi.Pointer< + ffi.NativeFunction< + Dart_WeakPersistentHandle Function(ffi.Handle, ffi.Pointer, + ffi.IntPtr, Dart_HandleFinalizer)>>; +typedef Dart_DeleteWeakPersistentHandle_Type = ffi + .Pointer>; +typedef Dart_UpdateExternalSize_Type = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(Dart_WeakPersistentHandle, ffi.IntPtr)>>; +typedef Dart_NewFinalizableHandle_Type = ffi.Pointer< + ffi.NativeFunction< + Dart_FinalizableHandle Function(ffi.Handle, ffi.Pointer, + ffi.IntPtr, Dart_HandleFinalizer)>>; +typedef Dart_DeleteFinalizableHandle_Type = ffi.Pointer< + ffi.NativeFunction>; +typedef Dart_UpdateFinalizableExternalSize_Type = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(Dart_FinalizableHandle, ffi.Handle, ffi.IntPtr)>>; +typedef Dart_Post_Type = ffi + .Pointer>; +typedef Dart_NewSendPort_Type + = ffi.Pointer>; +typedef Dart_SendPortGetId_Type = ffi.Pointer< + ffi.NativeFunction< + ffi.Handle Function(ffi.Handle, ffi.Pointer)>>; +typedef Dart_EnterScope_Type + = ffi.Pointer>; +typedef Dart_ExitScope_Type + = ffi.Pointer>; + +/// The type of message being sent to a Dart port. See CUPHTTPClientDelegate. +abstract class MessageType { + static const int ResponseMessage = 0; + static const int DataMessage = 1; + static const int CompletedMessage = 2; + static const int RedirectMessage = 3; + static const int FinishedDownloading = 4; +} + +/// The configuration associated with a NSURLSessionTask. +/// See CUPHTTPClientDelegate. +class CUPHTTPTaskConfiguration extends NSObject { + CUPHTTPTaskConfiguration._( + ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [CUPHTTPTaskConfiguration] that points to the same underlying object as [other]. + static CUPHTTPTaskConfiguration castFrom(T other) { + return CUPHTTPTaskConfiguration._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [CUPHTTPTaskConfiguration] that wraps the given raw object pointer. + static CUPHTTPTaskConfiguration castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CUPHTTPTaskConfiguration._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [CUPHTTPTaskConfiguration]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_CUPHTTPTaskConfiguration1); + } + + NSObject initWithPort_(int sendPort) { + final _ret = + _lib._objc_msgSend_470(_id, _lib._sel_initWithPort_1, sendPort); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + int get sendPort { + return _lib._objc_msgSend_325(_id, _lib._sel_sendPort1); + } + + static CUPHTTPTaskConfiguration new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPTaskConfiguration1, _lib._sel_new1); + return CUPHTTPTaskConfiguration._(_ret, _lib, retain: false, release: true); + } + + static CUPHTTPTaskConfiguration alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPTaskConfiguration1, _lib._sel_alloc1); + return CUPHTTPTaskConfiguration._(_ret, _lib, retain: false, release: true); + } +} + +/// A delegate for NSURLSession that forwards events for registered +/// NSURLSessionTasks and forwards them to a port for consumption in Dart. +/// +/// The messages sent to the port are contained in a List with one of 3 +/// possible formats: +/// +/// 1. When the delegate receives a HTTP redirect response: +/// [MessageType::RedirectMessage, ] +/// +/// 2. When the delegate receives a HTTP response: +/// [MessageType::ResponseMessage, ] +/// +/// 3. When the delegate receives some HTTP data: +/// [MessageType::DataMessage, ] +/// +/// 4. When the delegate is informed that the response is complete: +/// [MessageType::CompletedMessage, ] +class CUPHTTPClientDelegate extends NSObject { + CUPHTTPClientDelegate._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [CUPHTTPClientDelegate] that points to the same underlying object as [other]. + static CUPHTTPClientDelegate castFrom(T other) { + return CUPHTTPClientDelegate._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [CUPHTTPClientDelegate] that wraps the given raw object pointer. + static CUPHTTPClientDelegate castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CUPHTTPClientDelegate._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [CUPHTTPClientDelegate]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_CUPHTTPClientDelegate1); + } + + /// Instruct the delegate to forward events for the given task to the port + /// specified in the configuration. + void registerTask_withConfiguration_( + NSURLSessionTask? task, CUPHTTPTaskConfiguration? config) { + return _lib._objc_msgSend_471( + _id, + _lib._sel_registerTask_withConfiguration_1, + task?._id ?? ffi.nullptr, + config?._id ?? ffi.nullptr); + } + + static CUPHTTPClientDelegate new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPClientDelegate1, _lib._sel_new1); + return CUPHTTPClientDelegate._(_ret, _lib, retain: false, release: true); + } + + static CUPHTTPClientDelegate alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPClientDelegate1, _lib._sel_alloc1); + return CUPHTTPClientDelegate._(_ret, _lib, retain: false, release: true); + } +} + +/// An object used to communicate redirect information to Dart code. +/// +/// The flow is: +/// 1. CUPHTTPClientDelegate receives a message from the URL Loading System. +/// 2. CUPHTTPClientDelegate creates a new CUPHTTPForwardedDelegate subclass. +/// 3. CUPHTTPClientDelegate sends the CUPHTTPForwardedDelegate to the +/// configured Dart_Port. +/// 4. CUPHTTPClientDelegate waits on CUPHTTPForwardedDelegate.lock +/// 5. When the Dart code is done process the message received on the port, +/// it calls [CUPHTTPForwardedDelegate finish*], which releases the lock. +/// 6. CUPHTTPClientDelegate continues running. +class CUPHTTPForwardedDelegate extends NSObject { + CUPHTTPForwardedDelegate._( + ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [CUPHTTPForwardedDelegate] that points to the same underlying object as [other]. + static CUPHTTPForwardedDelegate castFrom(T other) { + return CUPHTTPForwardedDelegate._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [CUPHTTPForwardedDelegate] that wraps the given raw object pointer. + static CUPHTTPForwardedDelegate castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CUPHTTPForwardedDelegate._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [CUPHTTPForwardedDelegate]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_CUPHTTPForwardedDelegate1); + } + + NSObject initWithSession_task_( + NSURLSession? session, NSURLSessionTask? task) { + final _ret = _lib._objc_msgSend_472(_id, _lib._sel_initWithSession_task_1, + session?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + /// Indicates that the task should continue executing using the given request. + void finish() { + return _lib._objc_msgSend_1(_id, _lib._sel_finish1); + } + + NSURLSession? get session { + final _ret = _lib._objc_msgSend_380(_id, _lib._sel_session1); + return _ret.address == 0 + ? null + : NSURLSession._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionTask? get task { + final _ret = _lib._objc_msgSend_473(_id, _lib._sel_task1); + return _ret.address == 0 + ? null + : NSURLSessionTask._(_ret, _lib, retain: true, release: true); + } + + /// This property is meant to be used only by CUPHTTPClientDelegate. + NSLock? get lock { + final _ret = _lib._objc_msgSend_474(_id, _lib._sel_lock1); + return _ret.address == 0 + ? null + : NSLock._(_ret, _lib, retain: true, release: true); + } + + static CUPHTTPForwardedDelegate new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPForwardedDelegate1, _lib._sel_new1); + return CUPHTTPForwardedDelegate._(_ret, _lib, retain: false, release: true); + } + + static CUPHTTPForwardedDelegate alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPForwardedDelegate1, _lib._sel_alloc1); + return CUPHTTPForwardedDelegate._(_ret, _lib, retain: false, release: true); + } +} + +class NSLock extends _ObjCWrapper { + NSLock._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSLock] that points to the same underlying object as [other]. + static NSLock castFrom(T other) { + return NSLock._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSLock] that wraps the given raw object pointer. + static NSLock castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSLock._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSLock]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSLock1); + } +} + +class CUPHTTPForwardedRedirect extends CUPHTTPForwardedDelegate { + CUPHTTPForwardedRedirect._( + ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [CUPHTTPForwardedRedirect] that points to the same underlying object as [other]. + static CUPHTTPForwardedRedirect castFrom(T other) { + return CUPHTTPForwardedRedirect._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [CUPHTTPForwardedRedirect] that wraps the given raw object pointer. + static CUPHTTPForwardedRedirect castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CUPHTTPForwardedRedirect._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [CUPHTTPForwardedRedirect]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_CUPHTTPForwardedRedirect1); + } + + NSObject initWithSession_task_response_request_( + NSURLSession? session, + NSURLSessionTask? task, + NSHTTPURLResponse? response, + NSURLRequest? request) { + final _ret = _lib._objc_msgSend_475( + _id, + _lib._sel_initWithSession_task_response_request_1, + session?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr, + response?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + /// Indicates that the task should continue executing using the given request. + /// If the request is NIL then the redirect is not followed and the task is + /// complete. + void finishWithRequest_(NSURLRequest? request) { + return _lib._objc_msgSend_476( + _id, _lib._sel_finishWithRequest_1, request?._id ?? ffi.nullptr); + } + + NSHTTPURLResponse? get response { + final _ret = _lib._objc_msgSend_477(_id, _lib._sel_response1); + return _ret.address == 0 + ? null + : NSHTTPURLResponse._(_ret, _lib, retain: true, release: true); + } + + NSURLRequest? get request { + final _ret = _lib._objc_msgSend_371(_id, _lib._sel_request1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + /// This property is meant to be used only by CUPHTTPClientDelegate. + NSURLRequest? get redirectRequest { + final _ret = _lib._objc_msgSend_371(_id, _lib._sel_redirectRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + static CUPHTTPForwardedRedirect new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPForwardedRedirect1, _lib._sel_new1); + return CUPHTTPForwardedRedirect._(_ret, _lib, retain: false, release: true); + } + + static CUPHTTPForwardedRedirect alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPForwardedRedirect1, _lib._sel_alloc1); + return CUPHTTPForwardedRedirect._(_ret, _lib, retain: false, release: true); + } +} + +class CUPHTTPForwardedResponse extends CUPHTTPForwardedDelegate { + CUPHTTPForwardedResponse._( + ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [CUPHTTPForwardedResponse] that points to the same underlying object as [other]. + static CUPHTTPForwardedResponse castFrom(T other) { + return CUPHTTPForwardedResponse._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [CUPHTTPForwardedResponse] that wraps the given raw object pointer. + static CUPHTTPForwardedResponse castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CUPHTTPForwardedResponse._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [CUPHTTPForwardedResponse]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_CUPHTTPForwardedResponse1); + } + + NSObject initWithSession_task_response_( + NSURLSession? session, NSURLSessionTask? task, NSURLResponse? response) { + final _ret = _lib._objc_msgSend_478( + _id, + _lib._sel_initWithSession_task_response_1, + session?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr, + response?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void finishWithDisposition_(int disposition) { + return _lib._objc_msgSend_479( + _id, _lib._sel_finishWithDisposition_1, disposition); + } + + NSURLResponse? get response { + final _ret = _lib._objc_msgSend_373(_id, _lib._sel_response1); + return _ret.address == 0 + ? null + : NSURLResponse._(_ret, _lib, retain: true, release: true); + } + + /// This property is meant to be used only by CUPHTTPClientDelegate. + int get disposition { + return _lib._objc_msgSend_480(_id, _lib._sel_disposition1); + } + + static CUPHTTPForwardedResponse new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPForwardedResponse1, _lib._sel_new1); + return CUPHTTPForwardedResponse._(_ret, _lib, retain: false, release: true); + } + + static CUPHTTPForwardedResponse alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPForwardedResponse1, _lib._sel_alloc1); + return CUPHTTPForwardedResponse._(_ret, _lib, retain: false, release: true); + } +} + +class CUPHTTPForwardedData extends CUPHTTPForwardedDelegate { + CUPHTTPForwardedData._(ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [CUPHTTPForwardedData] that points to the same underlying object as [other]. + static CUPHTTPForwardedData castFrom(T other) { + return CUPHTTPForwardedData._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [CUPHTTPForwardedData] that wraps the given raw object pointer. + static CUPHTTPForwardedData castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CUPHTTPForwardedData._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [CUPHTTPForwardedData]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_CUPHTTPForwardedData1); + } + + NSObject initWithSession_task_data_( + NSURLSession? session, NSURLSessionTask? task, NSData? data) { + final _ret = _lib._objc_msgSend_481( + _id, + _lib._sel_initWithSession_task_data_1, + session?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr, + data?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSData? get data { + final _ret = _lib._objc_msgSend_51(_id, _lib._sel_data1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + static CUPHTTPForwardedData new1(NativeCupertinoHttp _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_CUPHTTPForwardedData1, _lib._sel_new1); + return CUPHTTPForwardedData._(_ret, _lib, retain: false, release: true); + } + + static CUPHTTPForwardedData alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPForwardedData1, _lib._sel_alloc1); + return CUPHTTPForwardedData._(_ret, _lib, retain: false, release: true); + } +} + +class CUPHTTPForwardedComplete extends CUPHTTPForwardedDelegate { + CUPHTTPForwardedComplete._( + ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [CUPHTTPForwardedComplete] that points to the same underlying object as [other]. + static CUPHTTPForwardedComplete castFrom(T other) { + return CUPHTTPForwardedComplete._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [CUPHTTPForwardedComplete] that wraps the given raw object pointer. + static CUPHTTPForwardedComplete castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CUPHTTPForwardedComplete._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [CUPHTTPForwardedComplete]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_CUPHTTPForwardedComplete1); + } + + NSObject initWithSession_task_error_( + NSURLSession? session, NSURLSessionTask? task, NSError? error) { + final _ret = _lib._objc_msgSend_482( + _id, + _lib._sel_initWithSession_task_error_1, + session?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr, + error?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSError? get error { + final _ret = _lib._objc_msgSend_376(_id, _lib._sel_error1); + return _ret.address == 0 + ? null + : NSError._(_ret, _lib, retain: true, release: true); + } + + static CUPHTTPForwardedComplete new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPForwardedComplete1, _lib._sel_new1); + return CUPHTTPForwardedComplete._(_ret, _lib, retain: false, release: true); + } + + static CUPHTTPForwardedComplete alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPForwardedComplete1, _lib._sel_alloc1); + return CUPHTTPForwardedComplete._(_ret, _lib, retain: false, release: true); + } +} + +class CUPHTTPForwardedFinishedDownloading extends CUPHTTPForwardedDelegate { + CUPHTTPForwardedFinishedDownloading._( + ffi.Pointer id, NativeCupertinoHttp lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [CUPHTTPForwardedFinishedDownloading] that points to the same underlying object as [other]. + static CUPHTTPForwardedFinishedDownloading castFrom( + T other) { + return CUPHTTPForwardedFinishedDownloading._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [CUPHTTPForwardedFinishedDownloading] that wraps the given raw object pointer. + static CUPHTTPForwardedFinishedDownloading castFromPointer( + NativeCupertinoHttp lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return CUPHTTPForwardedFinishedDownloading._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [CUPHTTPForwardedFinishedDownloading]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_CUPHTTPForwardedFinishedDownloading1); + } + + NSObject initWithSession_downloadTask_url_(NSURLSession? session, + NSURLSessionDownloadTask? downloadTask, NSURL? location) { + final _ret = _lib._objc_msgSend_483( + _id, + _lib._sel_initWithSession_downloadTask_url_1, + session?._id ?? ffi.nullptr, + downloadTask?._id ?? ffi.nullptr, + location?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSURL? get location { + final _ret = _lib._objc_msgSend_52(_id, _lib._sel_location1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + static CUPHTTPForwardedFinishedDownloading new1(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPForwardedFinishedDownloading1, _lib._sel_new1); + return CUPHTTPForwardedFinishedDownloading._(_ret, _lib, + retain: false, release: true); + } + + static CUPHTTPForwardedFinishedDownloading alloc(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_CUPHTTPForwardedFinishedDownloading1, _lib._sel_alloc1); + return CUPHTTPForwardedFinishedDownloading._(_ret, _lib, + retain: false, release: true); + } +} + +const int noErr = 0; + +const int kNilOptions = 0; + +const int kVariableLengthArray = 1; + +const int kUnknownType = 1061109567; + +const int normal = 0; + +const int bold = 1; + +const int italic = 2; + +const int underline = 4; + +const int outline = 8; + +const int shadow = 16; + +const int condense = 32; + +const int extend = 64; + +const int developStage = 32; + +const int alphaStage = 64; + +const int betaStage = 96; + +const int finalStage = 128; + +const int NSScannedOption = 1; + +const int NSCollectorDisabledOption = 2; + +const int errSecSuccess = 0; + +const int errSecUnimplemented = -4; + +const int errSecDiskFull = -34; + +const int errSecDskFull = -34; + +const int errSecIO = -36; + +const int errSecOpWr = -49; + +const int errSecParam = -50; + +const int errSecWrPerm = -61; + +const int errSecAllocate = -108; + +const int errSecUserCanceled = -128; + +const int errSecBadReq = -909; + +const int errSecInternalComponent = -2070; + +const int errSecCoreFoundationUnknown = -4960; + +const int errSecMissingEntitlement = -34018; + +const int errSecRestrictedAPI = -34020; + +const int errSecNotAvailable = -25291; + +const int errSecReadOnly = -25292; + +const int errSecAuthFailed = -25293; + +const int errSecNoSuchKeychain = -25294; + +const int errSecInvalidKeychain = -25295; + +const int errSecDuplicateKeychain = -25296; + +const int errSecDuplicateCallback = -25297; + +const int errSecInvalidCallback = -25298; + +const int errSecDuplicateItem = -25299; + +const int errSecItemNotFound = -25300; + +const int errSecBufferTooSmall = -25301; + +const int errSecDataTooLarge = -25302; + +const int errSecNoSuchAttr = -25303; + +const int errSecInvalidItemRef = -25304; + +const int errSecInvalidSearchRef = -25305; + +const int errSecNoSuchClass = -25306; + +const int errSecNoDefaultKeychain = -25307; + +const int errSecInteractionNotAllowed = -25308; + +const int errSecReadOnlyAttr = -25309; + +const int errSecWrongSecVersion = -25310; + +const int errSecKeySizeNotAllowed = -25311; + +const int errSecNoStorageModule = -25312; + +const int errSecNoCertificateModule = -25313; + +const int errSecNoPolicyModule = -25314; + +const int errSecInteractionRequired = -25315; + +const int errSecDataNotAvailable = -25316; + +const int errSecDataNotModifiable = -25317; + +const int errSecCreateChainFailed = -25318; + +const int errSecInvalidPrefsDomain = -25319; + +const int errSecInDarkWake = -25320; + +const int errSecACLNotSimple = -25240; + +const int errSecPolicyNotFound = -25241; + +const int errSecInvalidTrustSetting = -25242; + +const int errSecNoAccessForItem = -25243; + +const int errSecInvalidOwnerEdit = -25244; + +const int errSecTrustNotAvailable = -25245; + +const int errSecUnsupportedFormat = -25256; + +const int errSecUnknownFormat = -25257; + +const int errSecKeyIsSensitive = -25258; + +const int errSecMultiplePrivKeys = -25259; + +const int errSecPassphraseRequired = -25260; + +const int errSecInvalidPasswordRef = -25261; + +const int errSecInvalidTrustSettings = -25262; + +const int errSecNoTrustSettings = -25263; + +const int errSecPkcs12VerifyFailure = -25264; + +const int errSecNotSigner = -26267; + +const int errSecDecode = -26275; + +const int errSecServiceNotAvailable = -67585; + +const int errSecInsufficientClientID = -67586; + +const int errSecDeviceReset = -67587; + +const int errSecDeviceFailed = -67588; + +const int errSecAppleAddAppACLSubject = -67589; + +const int errSecApplePublicKeyIncomplete = -67590; + +const int errSecAppleSignatureMismatch = -67591; + +const int errSecAppleInvalidKeyStartDate = -67592; + +const int errSecAppleInvalidKeyEndDate = -67593; + +const int errSecConversionError = -67594; + +const int errSecAppleSSLv2Rollback = -67595; + +const int errSecQuotaExceeded = -67596; + +const int errSecFileTooBig = -67597; + +const int errSecInvalidDatabaseBlob = -67598; + +const int errSecInvalidKeyBlob = -67599; + +const int errSecIncompatibleDatabaseBlob = -67600; + +const int errSecIncompatibleKeyBlob = -67601; + +const int errSecHostNameMismatch = -67602; + +const int errSecUnknownCriticalExtensionFlag = -67603; + +const int errSecNoBasicConstraints = -67604; + +const int errSecNoBasicConstraintsCA = -67605; + +const int errSecInvalidAuthorityKeyID = -67606; + +const int errSecInvalidSubjectKeyID = -67607; + +const int errSecInvalidKeyUsageForPolicy = -67608; + +const int errSecInvalidExtendedKeyUsage = -67609; + +const int errSecInvalidIDLinkage = -67610; + +const int errSecPathLengthConstraintExceeded = -67611; + +const int errSecInvalidRoot = -67612; + +const int errSecCRLExpired = -67613; + +const int errSecCRLNotValidYet = -67614; + +const int errSecCRLNotFound = -67615; + +const int errSecCRLServerDown = -67616; + +const int errSecCRLBadURI = -67617; + +const int errSecUnknownCertExtension = -67618; + +const int errSecUnknownCRLExtension = -67619; + +const int errSecCRLNotTrusted = -67620; + +const int errSecCRLPolicyFailed = -67621; + +const int errSecIDPFailure = -67622; + +const int errSecSMIMEEmailAddressesNotFound = -67623; + +const int errSecSMIMEBadExtendedKeyUsage = -67624; + +const int errSecSMIMEBadKeyUsage = -67625; + +const int errSecSMIMEKeyUsageNotCritical = -67626; + +const int errSecSMIMENoEmailAddress = -67627; + +const int errSecSMIMESubjAltNameNotCritical = -67628; + +const int errSecSSLBadExtendedKeyUsage = -67629; + +const int errSecOCSPBadResponse = -67630; + +const int errSecOCSPBadRequest = -67631; + +const int errSecOCSPUnavailable = -67632; + +const int errSecOCSPStatusUnrecognized = -67633; + +const int errSecEndOfData = -67634; + +const int errSecIncompleteCertRevocationCheck = -67635; + +const int errSecNetworkFailure = -67636; + +const int errSecOCSPNotTrustedToAnchor = -67637; + +const int errSecRecordModified = -67638; + +const int errSecOCSPSignatureError = -67639; + +const int errSecOCSPNoSigner = -67640; + +const int errSecOCSPResponderMalformedReq = -67641; + +const int errSecOCSPResponderInternalError = -67642; + +const int errSecOCSPResponderTryLater = -67643; + +const int errSecOCSPResponderSignatureRequired = -67644; + +const int errSecOCSPResponderUnauthorized = -67645; + +const int errSecOCSPResponseNonceMismatch = -67646; + +const int errSecCodeSigningBadCertChainLength = -67647; + +const int errSecCodeSigningNoBasicConstraints = -67648; + +const int errSecCodeSigningBadPathLengthConstraint = -67649; + +const int errSecCodeSigningNoExtendedKeyUsage = -67650; + +const int errSecCodeSigningDevelopment = -67651; + +const int errSecResourceSignBadCertChainLength = -67652; + +const int errSecResourceSignBadExtKeyUsage = -67653; + +const int errSecTrustSettingDeny = -67654; + +const int errSecInvalidSubjectName = -67655; + +const int errSecUnknownQualifiedCertStatement = -67656; + +const int errSecMobileMeRequestQueued = -67657; + +const int errSecMobileMeRequestRedirected = -67658; + +const int errSecMobileMeServerError = -67659; + +const int errSecMobileMeServerNotAvailable = -67660; + +const int errSecMobileMeServerAlreadyExists = -67661; + +const int errSecMobileMeServerServiceErr = -67662; + +const int errSecMobileMeRequestAlreadyPending = -67663; + +const int errSecMobileMeNoRequestPending = -67664; - ffi.Pointer<_ObjCBlock> get pointer => _id; -} +const int errSecMobileMeCSRVerifyFailure = -67665; -typedef NSItemProviderCompletionHandler = ffi.Pointer<_ObjCBlock>; +const int errSecMobileMeFailedConsistencyCheck = -67666; -abstract class NSItemProviderErrorCode { - static const int NSItemProviderUnknownError = -1; - static const int NSItemProviderItemUnavailableError = -1000; - static const int NSItemProviderUnexpectedValueClassError = -1100; - static const int NSItemProviderUnavailableCoercionError = -1200; -} +const int errSecNotInitialized = -67667; -typedef NSStringEncodingDetectionOptionsKey = ffi.Pointer; +const int errSecInvalidHandleUsage = -67668; -class NSMutableString extends NSString { - NSMutableString._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int errSecPVCReferentNotFound = -67669; - /// Returns a [NSMutableString] that points to the same underlying object as [other]. - static NSMutableString castFrom(T other) { - return NSMutableString._(other._id, other._lib, - retain: true, release: true); - } +const int errSecFunctionIntegrityFail = -67670; - /// Returns a [NSMutableString] that wraps the given raw object pointer. - static NSMutableString castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableString._(other, lib, retain: retain, release: release); - } +const int errSecInternalError = -67671; - /// Returns whether [obj] is an instance of [NSMutableString]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableString1); - } +const int errSecMemoryError = -67672; - void replaceCharactersInRange_withString_(NSRange range, NSString? aString) { - return _lib._objc_msgSend_454( - _id, - _lib._sel_replaceCharactersInRange_withString_1, - range, - aString?._id ?? ffi.nullptr); - } +const int errSecInvalidData = -67673; - void insertString_atIndex_(NSString? aString, int loc) { - return _lib._objc_msgSend_455(_id, _lib._sel_insertString_atIndex_1, - aString?._id ?? ffi.nullptr, loc); - } +const int errSecMDSError = -67674; - void deleteCharactersInRange_(NSRange range) { - return _lib._objc_msgSend_287( - _id, _lib._sel_deleteCharactersInRange_1, range); - } +const int errSecInvalidPointer = -67675; - void appendString_(NSString? aString) { - return _lib._objc_msgSend_188( - _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); - } +const int errSecSelfCheckFailed = -67676; - void appendFormat_(NSString? format) { - return _lib._objc_msgSend_188( - _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); - } +const int errSecFunctionFailed = -67677; - void setString_(NSString? aString) { - return _lib._objc_msgSend_188( - _id, _lib._sel_setString_1, aString?._id ?? ffi.nullptr); - } +const int errSecModuleManifestVerifyFailed = -67678; - int replaceOccurrencesOfString_withString_options_range_(NSString? target, - NSString? replacement, int options, NSRange searchRange) { - return _lib._objc_msgSend_456( - _id, - _lib._sel_replaceOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, - options, - searchRange); - } +const int errSecInvalidGUID = -67679; - bool applyTransform_reverse_range_updatedRange_(NSStringTransform transform, - bool reverse, NSRange range, NSRangePointer resultingRange) { - return _lib._objc_msgSend_457( - _id, - _lib._sel_applyTransform_reverse_range_updatedRange_1, - transform, - reverse, - range, - resultingRange); - } +const int errSecInvalidHandle = -67680; - NSMutableString initWithCapacity_(int capacity) { - final _ret = - _lib._objc_msgSend_458(_id, _lib._sel_initWithCapacity_1, capacity); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidDBList = -67681; - static NSMutableString stringWithCapacity_( - NativeCupertinoHttp _lib, int capacity) { - final _ret = _lib._objc_msgSend_458( - _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidPassthroughID = -67682; - static ffi.Pointer getAvailableStringEncodings( - NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_242( - _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); - } +const int errSecInvalidNetworkAddress = -67683; - static NSString localizedNameOfStringEncoding_( - NativeCupertinoHttp _lib, int encoding) { - final _ret = _lib._objc_msgSend_15(_lib._class_NSMutableString1, - _lib._sel_localizedNameOfStringEncoding_1, encoding); - return NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecCRLAlreadySigned = -67684; - static int getDefaultCStringEncoding(NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); - } +const int errSecInvalidNumberOfFields = -67685; - static NSMutableString string(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecVerificationFailure = -67686; - static NSMutableString stringWithString_( - NativeCupertinoHttp _lib, NSString? string) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecUnknownTag = -67687; - static NSMutableString stringWithCharacters_length_( - NativeCupertinoHttp _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_255(_lib._class_NSMutableString1, - _lib._sel_stringWithCharacters_length_1, characters, length); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidSignature = -67688; - static NSMutableString stringWithUTF8String_( - NativeCupertinoHttp _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_256(_lib._class_NSMutableString1, - _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidName = -67689; - static NSMutableString stringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidCertificateRef = -67690; - static NSMutableString localizedStringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidCertificateGroup = -67691; - static NSMutableString stringWithValidatedFormat_validFormatSpecifiers_error_( - NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( - _lib._class_NSMutableString1, - _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecTagNotFound = -67692; - static NSMutableString - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( - _lib._class_NSMutableString1, - _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidQuery = -67693; - static NSMutableString stringWithCString_encoding_( - NativeCupertinoHttp _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSMutableString1, - _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidValue = -67694; - static NSMutableString stringWithContentsOfURL_encoding_error_( - NativeCupertinoHttp _lib, - NSURL? url, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_269( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecCallbackFailed = -67695; - static NSMutableString stringWithContentsOfFile_encoding_error_( - NativeCupertinoHttp _lib, - NSString? path, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_270( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecACLDeleteFailed = -67696; - static NSMutableString stringWithContentsOfURL_usedEncoding_error_( - NativeCupertinoHttp _lib, - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_271( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecACLReplaceFailed = -67697; - static NSMutableString stringWithContentsOfFile_usedEncoding_error_( - NativeCupertinoHttp _lib, - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_272( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } +const int errSecACLAddFailed = -67698; - static int - stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( - NativeCupertinoHttp _lib, - NSData? data, - NSDictionary? opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_273( - _lib._class_NSMutableString1, - _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, - opts?._id ?? ffi.nullptr, - string, - usedLossyConversion); - } +const int errSecACLChangeFailed = -67699; - static NSObject stringWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAccessCredentials = -67700; - static NSObject stringWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidRecord = -67701; - static NSObject stringWithCString_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSMutableString1, - _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidACL = -67702; - static NSObject stringWithCString_( - NativeCupertinoHttp _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_256( - _lib._class_NSMutableString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidSampleValue = -67703; - static NSMutableString new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_new1); - return NSMutableString._(_ret, _lib, retain: false, release: true); - } +const int errSecIncompatibleVersion = -67704; - static NSMutableString alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); - return NSMutableString._(_ret, _lib, retain: false, release: true); - } -} +const int errSecPrivilegeNotGranted = -67705; -typedef NSExceptionName = ffi.Pointer; +const int errSecInvalidScope = -67706; -class NSSimpleCString extends NSString { - NSSimpleCString._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int errSecPVCAlreadyConfigured = -67707; - /// Returns a [NSSimpleCString] that points to the same underlying object as [other]. - static NSSimpleCString castFrom(T other) { - return NSSimpleCString._(other._id, other._lib, - retain: true, release: true); - } +const int errSecInvalidPVC = -67708; - /// Returns a [NSSimpleCString] that wraps the given raw object pointer. - static NSSimpleCString castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSSimpleCString._(other, lib, retain: retain, release: release); - } +const int errSecEMMLoadFailed = -67709; - /// Returns whether [obj] is an instance of [NSSimpleCString]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSSimpleCString1); - } +const int errSecEMMUnloadFailed = -67710; - static ffi.Pointer getAvailableStringEncodings( - NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_242( - _lib._class_NSSimpleCString1, _lib._sel_availableStringEncodings1); - } +const int errSecAddinLoadFailed = -67711; - static NSString localizedNameOfStringEncoding_( - NativeCupertinoHttp _lib, int encoding) { - final _ret = _lib._objc_msgSend_15(_lib._class_NSSimpleCString1, - _lib._sel_localizedNameOfStringEncoding_1, encoding); - return NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidKeyRef = -67712; - static int getDefaultCStringEncoding(NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSSimpleCString1, _lib._sel_defaultCStringEncoding1); - } +const int errSecInvalidKeyHierarchy = -67713; - static NSSimpleCString string(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSSimpleCString1, _lib._sel_string1); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); - } +const int errSecAddinUnloadFailed = -67714; - static NSSimpleCString stringWithString_( - NativeCupertinoHttp _lib, NSString? string) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSSimpleCString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); - } +const int errSecLibraryReferenceNotFound = -67715; - static NSSimpleCString stringWithCharacters_length_( - NativeCupertinoHttp _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_255(_lib._class_NSSimpleCString1, - _lib._sel_stringWithCharacters_length_1, characters, length); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAddinFunctionTable = -67716; - static NSSimpleCString stringWithUTF8String_( - NativeCupertinoHttp _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_256(_lib._class_NSSimpleCString1, - _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidServiceMask = -67717; - static NSSimpleCString stringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSSimpleCString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); - } +const int errSecModuleNotLoaded = -67718; - static NSSimpleCString localizedStringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSSimpleCString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidSubServiceID = -67719; - static NSSimpleCString stringWithValidatedFormat_validFormatSpecifiers_error_( - NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( - _lib._class_NSSimpleCString1, - _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); - } +const int errSecAttributeNotInContext = -67720; - static NSSimpleCString - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( - _lib._class_NSSimpleCString1, - _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); - } +const int errSecModuleManagerInitializeFailed = -67721; - static NSSimpleCString stringWithCString_encoding_( - NativeCupertinoHttp _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSSimpleCString1, - _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); - } +const int errSecModuleManagerNotFound = -67722; - static NSSimpleCString stringWithContentsOfURL_encoding_error_( - NativeCupertinoHttp _lib, - NSURL? url, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_269( - _lib._class_NSSimpleCString1, - _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); - } +const int errSecEventNotificationCallbackNotFound = -67723; - static NSSimpleCString stringWithContentsOfFile_encoding_error_( - NativeCupertinoHttp _lib, - NSString? path, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_270( - _lib._class_NSSimpleCString1, - _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); - } +const int errSecInputLengthError = -67724; - static NSSimpleCString stringWithContentsOfURL_usedEncoding_error_( - NativeCupertinoHttp _lib, - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_271( - _lib._class_NSSimpleCString1, - _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); - } +const int errSecOutputLengthError = -67725; - static NSSimpleCString stringWithContentsOfFile_usedEncoding_error_( - NativeCupertinoHttp _lib, - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_272( - _lib._class_NSSimpleCString1, - _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); - } +const int errSecPrivilegeNotSupported = -67726; - static int - stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( - NativeCupertinoHttp _lib, - NSData? data, - NSDictionary? opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_273( - _lib._class_NSSimpleCString1, - _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, - opts?._id ?? ffi.nullptr, - string, - usedLossyConversion); - } +const int errSecDeviceError = -67727; + +const int errSecAttachHandleBusy = -67728; + +const int errSecNotLoggedIn = -67729; + +const int errSecAlgorithmMismatch = -67730; + +const int errSecKeyUsageIncorrect = -67731; + +const int errSecKeyBlobTypeIncorrect = -67732; + +const int errSecKeyHeaderInconsistent = -67733; - static NSObject stringWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSSimpleCString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int errSecUnsupportedKeyFormat = -67734; - static NSObject stringWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSSimpleCString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int errSecUnsupportedKeySize = -67735; - static NSObject stringWithCString_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSSimpleCString1, - _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidKeyUsageMask = -67736; - static NSObject stringWithCString_( - NativeCupertinoHttp _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_256( - _lib._class_NSSimpleCString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int errSecUnsupportedKeyUsageMask = -67737; - static NSSimpleCString new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSSimpleCString1, _lib._sel_new1); - return NSSimpleCString._(_ret, _lib, retain: false, release: true); - } +const int errSecInvalidKeyAttributeMask = -67738; - static NSSimpleCString alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSSimpleCString1, _lib._sel_alloc1); - return NSSimpleCString._(_ret, _lib, retain: false, release: true); - } -} +const int errSecUnsupportedKeyAttributeMask = -67739; -class NSConstantString extends NSSimpleCString { - NSConstantString._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int errSecInvalidKeyLabel = -67740; - /// Returns a [NSConstantString] that points to the same underlying object as [other]. - static NSConstantString castFrom(T other) { - return NSConstantString._(other._id, other._lib, - retain: true, release: true); - } +const int errSecUnsupportedKeyLabel = -67741; - /// Returns a [NSConstantString] that wraps the given raw object pointer. - static NSConstantString castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSConstantString._(other, lib, retain: retain, release: release); - } +const int errSecInvalidKeyFormat = -67742; - /// Returns whether [obj] is an instance of [NSConstantString]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSConstantString1); - } +const int errSecUnsupportedVectorOfBuffers = -67743; - static ffi.Pointer getAvailableStringEncodings( - NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_242( - _lib._class_NSConstantString1, _lib._sel_availableStringEncodings1); - } +const int errSecInvalidInputVector = -67744; - static NSString localizedNameOfStringEncoding_( - NativeCupertinoHttp _lib, int encoding) { - final _ret = _lib._objc_msgSend_15(_lib._class_NSConstantString1, - _lib._sel_localizedNameOfStringEncoding_1, encoding); - return NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidOutputVector = -67745; - static int getDefaultCStringEncoding(NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSConstantString1, _lib._sel_defaultCStringEncoding1); - } +const int errSecInvalidContext = -67746; - static NSConstantString string(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSConstantString1, _lib._sel_string1); - return NSConstantString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAlgorithm = -67747; - static NSConstantString stringWithString_( - NativeCupertinoHttp _lib, NSString? string) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSConstantString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); - return NSConstantString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeKey = -67748; - static NSConstantString stringWithCharacters_length_( - NativeCupertinoHttp _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_255(_lib._class_NSConstantString1, - _lib._sel_stringWithCharacters_length_1, characters, length); - return NSConstantString._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeKey = -67749; - static NSConstantString stringWithUTF8String_( - NativeCupertinoHttp _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_256(_lib._class_NSConstantString1, - _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSConstantString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeInitVector = -67750; - static NSConstantString stringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSConstantString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); - return NSConstantString._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeInitVector = -67751; - static NSConstantString localizedStringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSConstantString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); - return NSConstantString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeSalt = -67752; - static NSConstantString - stringWithValidatedFormat_validFormatSpecifiers_error_( - NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( - _lib._class_NSConstantString1, - _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSConstantString._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeSalt = -67753; - static NSConstantString - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( - _lib._class_NSConstantString1, - _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSConstantString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributePadding = -67754; - static NSConstantString stringWithCString_encoding_( - NativeCupertinoHttp _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSConstantString1, - _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSConstantString._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributePadding = -67755; - static NSConstantString stringWithContentsOfURL_encoding_error_( - NativeCupertinoHttp _lib, - NSURL? url, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_269( - _lib._class_NSConstantString1, - _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSConstantString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeRandom = -67756; - static NSConstantString stringWithContentsOfFile_encoding_error_( - NativeCupertinoHttp _lib, - NSString? path, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_270( - _lib._class_NSConstantString1, - _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSConstantString._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeRandom = -67757; - static NSConstantString stringWithContentsOfURL_usedEncoding_error_( - NativeCupertinoHttp _lib, - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_271( - _lib._class_NSConstantString1, - _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSConstantString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeSeed = -67758; - static NSConstantString stringWithContentsOfFile_usedEncoding_error_( - NativeCupertinoHttp _lib, - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_272( - _lib._class_NSConstantString1, - _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSConstantString._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeSeed = -67759; - static int - stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( - NativeCupertinoHttp _lib, - NSData? data, - NSDictionary? opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_273( - _lib._class_NSConstantString1, - _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, - opts?._id ?? ffi.nullptr, - string, - usedLossyConversion); - } +const int errSecInvalidAttributePassphrase = -67760; - static NSObject stringWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSConstantString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributePassphrase = -67761; - static NSObject stringWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSConstantString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeKeyLength = -67762; - static NSObject stringWithCString_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSConstantString1, - _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeKeyLength = -67763; - static NSObject stringWithCString_( - NativeCupertinoHttp _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_256( - _lib._class_NSConstantString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeBlockSize = -67764; - static NSConstantString new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSConstantString1, _lib._sel_new1); - return NSConstantString._(_ret, _lib, retain: false, release: true); - } +const int errSecMissingAttributeBlockSize = -67765; - static NSConstantString alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSConstantString1, _lib._sel_alloc1); - return NSConstantString._(_ret, _lib, retain: false, release: true); - } -} +const int errSecInvalidAttributeOutputSize = -67766; -class NSMutableCharacterSet extends NSCharacterSet { - NSMutableCharacterSet._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int errSecMissingAttributeOutputSize = -67767; - /// Returns a [NSMutableCharacterSet] that points to the same underlying object as [other]. - static NSMutableCharacterSet castFrom(T other) { - return NSMutableCharacterSet._(other._id, other._lib, - retain: true, release: true); - } +const int errSecInvalidAttributeRounds = -67768; - /// Returns a [NSMutableCharacterSet] that wraps the given raw object pointer. - static NSMutableCharacterSet castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableCharacterSet._(other, lib, - retain: retain, release: release); - } +const int errSecMissingAttributeRounds = -67769; - /// Returns whether [obj] is an instance of [NSMutableCharacterSet]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableCharacterSet1); - } +const int errSecInvalidAlgorithmParms = -67770; - void addCharactersInRange_(NSRange aRange) { - return _lib._objc_msgSend_287( - _id, _lib._sel_addCharactersInRange_1, aRange); - } +const int errSecMissingAlgorithmParms = -67771; - void removeCharactersInRange_(NSRange aRange) { - return _lib._objc_msgSend_287( - _id, _lib._sel_removeCharactersInRange_1, aRange); - } +const int errSecInvalidAttributeLabel = -67772; - void addCharactersInString_(NSString? aString) { - return _lib._objc_msgSend_188( - _id, _lib._sel_addCharactersInString_1, aString?._id ?? ffi.nullptr); - } +const int errSecMissingAttributeLabel = -67773; - void removeCharactersInString_(NSString? aString) { - return _lib._objc_msgSend_188( - _id, _lib._sel_removeCharactersInString_1, aString?._id ?? ffi.nullptr); - } +const int errSecInvalidAttributeKeyType = -67774; - void formUnionWithCharacterSet_(NSCharacterSet? otherSet) { - return _lib._objc_msgSend_459(_id, _lib._sel_formUnionWithCharacterSet_1, - otherSet?._id ?? ffi.nullptr); - } +const int errSecMissingAttributeKeyType = -67775; - void formIntersectionWithCharacterSet_(NSCharacterSet? otherSet) { - return _lib._objc_msgSend_459( - _id, - _lib._sel_formIntersectionWithCharacterSet_1, - otherSet?._id ?? ffi.nullptr); - } +const int errSecInvalidAttributeMode = -67776; - void invert() { - return _lib._objc_msgSend_1(_id, _lib._sel_invert1); - } +const int errSecMissingAttributeMode = -67777; - static NSCharacterSet? getControlCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSMutableCharacterSet1, _lib._sel_controlCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeEffectiveBits = -67778; - static NSCharacterSet? getWhitespaceCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSMutableCharacterSet1, _lib._sel_whitespaceCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeEffectiveBits = -67779; - static NSCharacterSet? getWhitespaceAndNewlineCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, - _lib._sel_whitespaceAndNewlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeStartDate = -67780; - static NSCharacterSet? getDecimalDigitCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, - _lib._sel_decimalDigitCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeStartDate = -67781; - static NSCharacterSet? getLetterCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSMutableCharacterSet1, _lib._sel_letterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeEndDate = -67782; - static NSCharacterSet? getLowercaseLetterCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, - _lib._sel_lowercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeEndDate = -67783; - static NSCharacterSet? getUppercaseLetterCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, - _lib._sel_uppercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeVersion = -67784; - static NSCharacterSet? getNonBaseCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSMutableCharacterSet1, _lib._sel_nonBaseCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeVersion = -67785; - static NSCharacterSet? getAlphanumericCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, - _lib._sel_alphanumericCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributePrime = -67786; - static NSCharacterSet? getDecomposableCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, - _lib._sel_decomposableCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributePrime = -67787; - static NSCharacterSet? getIllegalCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSMutableCharacterSet1, _lib._sel_illegalCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeBase = -67788; - static NSCharacterSet? getPunctuationCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSMutableCharacterSet1, _lib._sel_punctuationCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeBase = -67789; - static NSCharacterSet? getCapitalizedLetterCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, - _lib._sel_capitalizedLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeSubprime = -67790; - static NSCharacterSet? getSymbolCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSMutableCharacterSet1, _lib._sel_symbolCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeSubprime = -67791; - static NSCharacterSet? getNewlineCharacterSet(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSMutableCharacterSet1, _lib._sel_newlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: false, release: true); - } +const int errSecInvalidAttributeIterationCount = -67792; - static NSMutableCharacterSet characterSetWithRange_( - NativeCupertinoHttp _lib, NSRange aRange) { - final _ret = _lib._objc_msgSend_460(_lib._class_NSMutableCharacterSet1, - _lib._sel_characterSetWithRange_1, aRange); - return NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeIterationCount = -67793; - static NSMutableCharacterSet characterSetWithCharactersInString_( - NativeCupertinoHttp _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_461( - _lib._class_NSMutableCharacterSet1, - _lib._sel_characterSetWithCharactersInString_1, - aString?._id ?? ffi.nullptr); - return NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeDLDBHandle = -67794; - static NSMutableCharacterSet characterSetWithBitmapRepresentation_( - NativeCupertinoHttp _lib, NSData? data) { - final _ret = _lib._objc_msgSend_462( - _lib._class_NSMutableCharacterSet1, - _lib._sel_characterSetWithBitmapRepresentation_1, - data?._id ?? ffi.nullptr); - return NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeDLDBHandle = -67795; - static NSMutableCharacterSet characterSetWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? fName) { - final _ret = _lib._objc_msgSend_461(_lib._class_NSMutableCharacterSet1, - _lib._sel_characterSetWithContentsOfFile_1, fName?._id ?? ffi.nullptr); - return NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributeAccessCredentials = -67796; - /// Returns a character set containing the characters allowed in a URL's user subcomponent. - static NSCharacterSet? getURLUserAllowedCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, - _lib._sel_URLUserAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeAccessCredentials = -67797; - /// Returns a character set containing the characters allowed in a URL's password subcomponent. - static NSCharacterSet? getURLPasswordAllowedCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, - _lib._sel_URLPasswordAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributePublicKeyFormat = -67798; - /// Returns a character set containing the characters allowed in a URL's host subcomponent. - static NSCharacterSet? getURLHostAllowedCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, - _lib._sel_URLHostAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributePublicKeyFormat = -67799; - /// Returns a character set containing the characters allowed in a URL's path component. ';' is a legal path character, but it is recommended that it be percent-encoded for best compatibility with NSURL (-stringByAddingPercentEncodingWithAllowedCharacters: will percent-encode any ';' characters if you pass the URLPathAllowedCharacterSet). - static NSCharacterSet? getURLPathAllowedCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, - _lib._sel_URLPathAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAttributePrivateKeyFormat = -67800; - /// Returns a character set containing the characters allowed in a URL's query component. - static NSCharacterSet? getURLQueryAllowedCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, - _lib._sel_URLQueryAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributePrivateKeyFormat = -67801; + +const int errSecInvalidAttributeSymmetricKeyFormat = -67802; - /// Returns a character set containing the characters allowed in a URL's fragment component. - static NSCharacterSet? getURLFragmentAllowedCharacterSet( - NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, - _lib._sel_URLFragmentAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } +const int errSecMissingAttributeSymmetricKeyFormat = -67803; - static NSMutableCharacterSet new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableCharacterSet1, _lib._sel_new1); - return NSMutableCharacterSet._(_ret, _lib, retain: false, release: true); - } +const int errSecInvalidAttributeWrappedKeyFormat = -67804; - static NSMutableCharacterSet alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableCharacterSet1, _lib._sel_alloc1); - return NSMutableCharacterSet._(_ret, _lib, retain: false, release: true); - } -} +const int errSecMissingAttributeWrappedKeyFormat = -67805; -typedef NSURLFileResourceType = ffi.Pointer; -typedef NSURLThumbnailDictionaryItem = ffi.Pointer; -typedef NSURLFileProtectionType = ffi.Pointer; -typedef NSURLUbiquitousItemDownloadingStatus = ffi.Pointer; -typedef NSURLUbiquitousSharedItemRole = ffi.Pointer; -typedef NSURLUbiquitousSharedItemPermissions = ffi.Pointer; +const int errSecStagedOperationInProgress = -67806; -/// NSURLQueryItem encapsulates a single query name-value pair. The name and value strings of a query name-value pair are not percent encoded. For use with the NSURLComponents queryItems property. -class NSURLQueryItem extends NSObject { - NSURLQueryItem._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int errSecStagedOperationNotStarted = -67807; - /// Returns a [NSURLQueryItem] that points to the same underlying object as [other]. - static NSURLQueryItem castFrom(T other) { - return NSURLQueryItem._(other._id, other._lib, retain: true, release: true); - } +const int errSecVerifyFailed = -67808; - /// Returns a [NSURLQueryItem] that wraps the given raw object pointer. - static NSURLQueryItem castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLQueryItem._(other, lib, retain: retain, release: release); - } +const int errSecQuerySizeUnknown = -67809; - /// Returns whether [obj] is an instance of [NSURLQueryItem]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLQueryItem1); - } +const int errSecBlockSizeMismatch = -67810; - NSURLQueryItem initWithName_value_(NSString? name, NSString? value) { - final _ret = _lib._objc_msgSend_463(_id, _lib._sel_initWithName_value_1, - name?._id ?? ffi.nullptr, value?._id ?? ffi.nullptr); - return NSURLQueryItem._(_ret, _lib, retain: true, release: true); - } +const int errSecPublicKeyInconsistent = -67811; - static NSURLQueryItem queryItemWithName_value_( - NativeCupertinoHttp _lib, NSString? name, NSString? value) { - final _ret = _lib._objc_msgSend_463( - _lib._class_NSURLQueryItem1, - _lib._sel_queryItemWithName_value_1, - name?._id ?? ffi.nullptr, - value?._id ?? ffi.nullptr); - return NSURLQueryItem._(_ret, _lib, retain: true, release: true); - } +const int errSecDeviceVerifyFailed = -67812; - NSString? get name { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidLoginName = -67813; - NSString? get value { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_value1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecAlreadyLoggedIn = -67814; - static NSURLQueryItem new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLQueryItem1, _lib._sel_new1); - return NSURLQueryItem._(_ret, _lib, retain: false, release: true); - } +const int errSecInvalidDigestAlgorithm = -67815; - static NSURLQueryItem alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLQueryItem1, _lib._sel_alloc1); - return NSURLQueryItem._(_ret, _lib, retain: false, release: true); - } -} +const int errSecInvalidCRLGroup = -67816; -class NSURLComponents extends NSObject { - NSURLComponents._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int errSecCertificateCannotOperate = -67817; - /// Returns a [NSURLComponents] that points to the same underlying object as [other]. - static NSURLComponents castFrom(T other) { - return NSURLComponents._(other._id, other._lib, - retain: true, release: true); - } +const int errSecCertificateExpired = -67818; - /// Returns a [NSURLComponents] that wraps the given raw object pointer. - static NSURLComponents castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLComponents._(other, lib, retain: retain, release: release); - } +const int errSecCertificateNotValidYet = -67819; - /// Returns whether [obj] is an instance of [NSURLComponents]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLComponents1); - } +const int errSecCertificateRevoked = -67820; - /// Initialize a NSURLComponents with all components undefined. Designated initializer. - @override - NSURLComponents init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLComponents._(_ret, _lib, retain: true, release: true); - } +const int errSecCertificateSuspended = -67821; - /// Initialize a NSURLComponents with the components of a URL. If resolvingAgainstBaseURL is YES and url is a relative URL, the components of [url absoluteURL] are used. If the url string from the NSURL is malformed, nil is returned. - NSURLComponents initWithURL_resolvingAgainstBaseURL_( - NSURL? url, bool resolve) { - final _ret = _lib._objc_msgSend_206( - _id, - _lib._sel_initWithURL_resolvingAgainstBaseURL_1, - url?._id ?? ffi.nullptr, - resolve); - return NSURLComponents._(_ret, _lib, retain: true, release: true); - } +const int errSecInsufficientCredentials = -67822; - /// Initializes and returns a newly created NSURLComponents with the components of a URL. If resolvingAgainstBaseURL is YES and url is a relative URL, the components of [url absoluteURL] are used. If the url string from the NSURL is malformed, nil is returned. - static NSURLComponents componentsWithURL_resolvingAgainstBaseURL_( - NativeCupertinoHttp _lib, NSURL? url, bool resolve) { - final _ret = _lib._objc_msgSend_206( - _lib._class_NSURLComponents1, - _lib._sel_componentsWithURL_resolvingAgainstBaseURL_1, - url?._id ?? ffi.nullptr, - resolve); - return NSURLComponents._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAction = -67823; - /// Initialize a NSURLComponents with a URL string. If the URLString is malformed, nil is returned. - NSURLComponents initWithString_(NSString? URLString) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithString_1, URLString?._id ?? ffi.nullptr); - return NSURLComponents._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidAuthority = -67824; - /// Initializes and returns a newly created NSURLComponents with a URL string. If the URLString is malformed, nil is returned. - static NSURLComponents componentsWithString_( - NativeCupertinoHttp _lib, NSString? URLString) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSURLComponents1, - _lib._sel_componentsWithString_1, URLString?._id ?? ffi.nullptr); - return NSURLComponents._(_ret, _lib, retain: true, release: true); - } +const int errSecVerifyActionFailed = -67825; - /// Returns a URL created from the NSURLComponents. If the NSURLComponents has an authority component (user, password, host or port) and a path component, then the path must either begin with "/" or be an empty string. If the NSURLComponents does not have an authority component (user, password, host or port) and has a path component, the path component must not start with "//". If those requirements are not met, nil is returned. - NSURL? get URL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidCertAuthority = -67826; - /// Returns a URL created from the NSURLComponents relative to a base URL. If the NSURLComponents has an authority component (user, password, host or port) and a path component, then the path must either begin with "/" or be an empty string. If the NSURLComponents does not have an authority component (user, password, host or port) and has a path component, the path component must not start with "//". If those requirements are not met, nil is returned. - NSURL URLRelativeToURL_(NSURL? baseURL) { - final _ret = _lib._objc_msgSend_464( - _id, _lib._sel_URLRelativeToURL_1, baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidCRLAuthority = -67827; - /// Returns a URL string created from the NSURLComponents. If the NSURLComponents has an authority component (user, password, host or port) and a path component, then the path must either begin with "/" or be an empty string. If the NSURLComponents does not have an authority component (user, password, host or port) and has a path component, the path component must not start with "//". If those requirements are not met, nil is returned. - NSString? get string { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_string1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvaldCRLAuthority = -67827; - /// Attempting to set the scheme with an invalid scheme string will cause an exception. - NSString? get scheme { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_scheme1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidCRLEncoding = -67828; - /// Attempting to set the scheme with an invalid scheme string will cause an exception. - set scheme(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setScheme_1, value?._id ?? ffi.nullptr); - } +const int errSecInvalidCRLType = -67829; - NSString? get user { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_user1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidCRL = -67830; - set user(NSString? value) { - _lib._objc_msgSend_331(_id, _lib._sel_setUser_1, value?._id ?? ffi.nullptr); - } +const int errSecInvalidFormType = -67831; - NSString? get password { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_password1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidID = -67832; - set password(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setPassword_1, value?._id ?? ffi.nullptr); - } +const int errSecInvalidIdentifier = -67833; - NSString? get host { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_host1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidIndex = -67834; - set host(NSString? value) { - _lib._objc_msgSend_331(_id, _lib._sel_setHost_1, value?._id ?? ffi.nullptr); - } +const int errSecInvalidPolicyIdentifiers = -67835; - /// Attempting to set a negative port number will cause an exception. - NSNumber? get port { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_port1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidTimeString = -67836; - /// Attempting to set a negative port number will cause an exception. - set port(NSNumber? value) { - _lib._objc_msgSend_335(_id, _lib._sel_setPort_1, value?._id ?? ffi.nullptr); - } +const int errSecInvalidReason = -67837; - NSString? get path { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_path1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidRequestInputs = -67838; - set path(NSString? value) { - _lib._objc_msgSend_331(_id, _lib._sel_setPath_1, value?._id ?? ffi.nullptr); - } +const int errSecInvalidResponseVector = -67839; - NSString? get query { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_query1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidStopOnPolicy = -67840; - set query(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setQuery_1, value?._id ?? ffi.nullptr); - } +const int errSecInvalidTuple = -67841; - NSString? get fragment { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_fragment1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecMultipleValuesUnsupported = -67842; - set fragment(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setFragment_1, value?._id ?? ffi.nullptr); - } +const int errSecNotTrusted = -67843; - /// Getting these properties retains any percent encoding these components may have. Setting these properties assumes the component string is already correctly percent encoded. Attempting to set an incorrectly percent encoded string will cause an exception. Although ';' is a legal path character, it is recommended that it be percent-encoded for best compatibility with NSURL (-stringByAddingPercentEncodingWithAllowedCharacters: will percent-encode any ';' characters if you pass the URLPathAllowedCharacterSet). - NSString? get percentEncodedUser { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedUser1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecNoDefaultAuthority = -67844; - /// Getting these properties retains any percent encoding these components may have. Setting these properties assumes the component string is already correctly percent encoded. Attempting to set an incorrectly percent encoded string will cause an exception. Although ';' is a legal path character, it is recommended that it be percent-encoded for best compatibility with NSURL (-stringByAddingPercentEncodingWithAllowedCharacters: will percent-encode any ';' characters if you pass the URLPathAllowedCharacterSet). - set percentEncodedUser(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setPercentEncodedUser_1, value?._id ?? ffi.nullptr); - } +const int errSecRejectedForm = -67845; - NSString? get percentEncodedPassword { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedPassword1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecRequestLost = -67846; - set percentEncodedPassword(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setPercentEncodedPassword_1, value?._id ?? ffi.nullptr); - } +const int errSecRequestRejected = -67847; - NSString? get percentEncodedHost { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedHost1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecUnsupportedAddressType = -67848; - set percentEncodedHost(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setPercentEncodedHost_1, value?._id ?? ffi.nullptr); - } +const int errSecUnsupportedService = -67849; - NSString? get percentEncodedPath { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidTupleGroup = -67850; - set percentEncodedPath(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setPercentEncodedPath_1, value?._id ?? ffi.nullptr); - } +const int errSecInvalidBaseACLs = -67851; - NSString? get percentEncodedQuery { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedQuery1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidTupleCredentials = -67852; - set percentEncodedQuery(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setPercentEncodedQuery_1, value?._id ?? ffi.nullptr); - } +const int errSecInvalidTupleCredendtials = -67852; - NSString? get percentEncodedFragment { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedFragment1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidEncoding = -67853; - set percentEncodedFragment(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setPercentEncodedFragment_1, value?._id ?? ffi.nullptr); - } +const int errSecInvalidValidityPeriod = -67854; - NSString? get encodedHost { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_encodedHost1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidRequestor = -67855; - set encodedHost(NSString? value) { - _lib._objc_msgSend_331( - _id, _lib._sel_setEncodedHost_1, value?._id ?? ffi.nullptr); - } +const int errSecRequestDescriptor = -67856; - /// These properties return the character range of a component in the URL string returned by -[NSURLComponents string]. If the component does not exist in the NSURLComponents object, {NSNotFound, 0} is returned. Note: Zero length components are legal. For example, the URL string "scheme://:@/?#" has a zero length user, password, host, query and fragment; the URL strings "scheme:" and "" both have a zero length path. - NSRange get rangeOfScheme { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfScheme1); - } +const int errSecInvalidBundleInfo = -67857; - NSRange get rangeOfUser { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfUser1); - } +const int errSecInvalidCRLIndex = -67858; - NSRange get rangeOfPassword { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfPassword1); - } +const int errSecNoFieldValues = -67859; - NSRange get rangeOfHost { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfHost1); - } +const int errSecUnsupportedFieldFormat = -67860; - NSRange get rangeOfPort { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfPort1); - } +const int errSecUnsupportedIndexInfo = -67861; - NSRange get rangeOfPath { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfPath1); - } +const int errSecUnsupportedLocality = -67862; - NSRange get rangeOfQuery { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfQuery1); - } +const int errSecUnsupportedNumAttributes = -67863; - NSRange get rangeOfFragment { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfFragment1); - } +const int errSecUnsupportedNumIndexes = -67864; - /// The query component as an array of NSURLQueryItems for this NSURLComponents. - /// - /// Each NSURLQueryItem represents a single key-value pair, - /// - /// Note that a name may appear more than once in a single query string, so the name values are not guaranteed to be unique. If the NSURLComponents has an empty query component, returns an empty array. If the NSURLComponents has no query component, returns nil. - /// - /// The queryItems getter returns an array of NSURLQueryItems in the order in which they appear in the original query string. Any percent-encoding in a NSURLQueryItem name or value is removed. - /// - /// The queryItems setter combines an array containing any number of NSURLQueryItems, each of which represents a single key-value pair, into a query string and sets the NSURLComponents query property. If the NSURLQueryItems name or value strings contain any characters not allowed in a URL's query component, those characters are percent-encoded. In addition, any '&' and '=' characters in a NSURLQueryItem name are percent-encoded. Passing an empty array sets the query component of the NSURLComponents to an empty string. Passing nil removes the query component of the NSURLComponents. - /// - /// - note: If a NSURLQueryItem name-value pair is empty (i.e. the query string starts with '&', ends with '&', or has "&&" within it), you get a NSURLQueryItem with a zero-length name and a nil value. If a NSURLQueryItem name-value pair has nothing before the equals sign, you get a zero-length name. If a NSURLQueryItem name-value pair has nothing after the equals sign, you get a zero-length value. If a NSURLQueryItem name-value pair has no equals sign, the NSURLQueryItem name-value pair string is the name and you get a nil value. - NSArray? get queryItems { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_queryItems1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } +const int errSecUnsupportedNumRecordTypes = -67865; - /// The query component as an array of NSURLQueryItems for this NSURLComponents. - /// - /// Each NSURLQueryItem represents a single key-value pair, - /// - /// Note that a name may appear more than once in a single query string, so the name values are not guaranteed to be unique. If the NSURLComponents has an empty query component, returns an empty array. If the NSURLComponents has no query component, returns nil. - /// - /// The queryItems getter returns an array of NSURLQueryItems in the order in which they appear in the original query string. Any percent-encoding in a NSURLQueryItem name or value is removed. - /// - /// The queryItems setter combines an array containing any number of NSURLQueryItems, each of which represents a single key-value pair, into a query string and sets the NSURLComponents query property. If the NSURLQueryItems name or value strings contain any characters not allowed in a URL's query component, those characters are percent-encoded. In addition, any '&' and '=' characters in a NSURLQueryItem name are percent-encoded. Passing an empty array sets the query component of the NSURLComponents to an empty string. Passing nil removes the query component of the NSURLComponents. - /// - /// - note: If a NSURLQueryItem name-value pair is empty (i.e. the query string starts with '&', ends with '&', or has "&&" within it), you get a NSURLQueryItem with a zero-length name and a nil value. If a NSURLQueryItem name-value pair has nothing before the equals sign, you get a zero-length name. If a NSURLQueryItem name-value pair has nothing after the equals sign, you get a zero-length value. If a NSURLQueryItem name-value pair has no equals sign, the NSURLQueryItem name-value pair string is the name and you get a nil value. - set queryItems(NSArray? value) { - _lib._objc_msgSend_399( - _id, _lib._sel_setQueryItems_1, value?._id ?? ffi.nullptr); - } +const int errSecFieldSpecifiedMultiple = -67866; - /// The percentEncodedQueryItems getter returns an array of NSURLQueryItems in the order in which they appear in the original query string. Any percent-encoding in a NSURLQueryItem name or value is retained. - /// - /// The percentEncodedQueryItems setter combines an array containing any number of NSURLQueryItems, each of which represents a single key-value pair, into a query string and sets the NSURLComponents query property. This property assumes the NSURLQueryItem names and values are already correctly percent-encoded, and that the NSURLQueryItem names do not contain the query item delimiter characters '&' and '='. Attempting to set an incorrectly percent-encoded NSURLQueryItem or a NSURLQueryItem name with the query item delimiter characters '&' and '=' will cause an exception. - NSArray? get percentEncodedQueryItems { - final _ret = - _lib._objc_msgSend_162(_id, _lib._sel_percentEncodedQueryItems1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } +const int errSecIncompatibleFieldFormat = -67867; - /// The percentEncodedQueryItems getter returns an array of NSURLQueryItems in the order in which they appear in the original query string. Any percent-encoding in a NSURLQueryItem name or value is retained. - /// - /// The percentEncodedQueryItems setter combines an array containing any number of NSURLQueryItems, each of which represents a single key-value pair, into a query string and sets the NSURLComponents query property. This property assumes the NSURLQueryItem names and values are already correctly percent-encoded, and that the NSURLQueryItem names do not contain the query item delimiter characters '&' and '='. Attempting to set an incorrectly percent-encoded NSURLQueryItem or a NSURLQueryItem name with the query item delimiter characters '&' and '=' will cause an exception. - set percentEncodedQueryItems(NSArray? value) { - _lib._objc_msgSend_399(_id, _lib._sel_setPercentEncodedQueryItems_1, - value?._id ?? ffi.nullptr); - } +const int errSecInvalidParsingModule = -67868; - static NSURLComponents new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLComponents1, _lib._sel_new1); - return NSURLComponents._(_ret, _lib, retain: false, release: true); - } +const int errSecDatabaseLocked = -67869; - static NSURLComponents alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLComponents1, _lib._sel_alloc1); - return NSURLComponents._(_ret, _lib, retain: false, release: true); - } -} +const int errSecDatastoreIsOpen = -67870; -/// NSFileSecurity encapsulates a file system object's security information. NSFileSecurity and CFFileSecurity are toll-free bridged. Use the CFFileSecurity API for access to the low-level file security properties encapsulated by NSFileSecurity. -class NSFileSecurity extends NSObject { - NSFileSecurity._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int errSecMissingValue = -67871; - /// Returns a [NSFileSecurity] that points to the same underlying object as [other]. - static NSFileSecurity castFrom(T other) { - return NSFileSecurity._(other._id, other._lib, retain: true, release: true); - } +const int errSecUnsupportedQueryLimits = -67872; - /// Returns a [NSFileSecurity] that wraps the given raw object pointer. - static NSFileSecurity castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSFileSecurity._(other, lib, retain: retain, release: release); - } +const int errSecUnsupportedNumSelectionPreds = -67873; - /// Returns whether [obj] is an instance of [NSFileSecurity]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSFileSecurity1); - } +const int errSecUnsupportedOperator = -67874; - NSFileSecurity initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSFileSecurity._(_ret, _lib, retain: true, release: true); - } +const int errSecInvalidDBLocation = -67875; - static NSFileSecurity new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileSecurity1, _lib._sel_new1); - return NSFileSecurity._(_ret, _lib, retain: false, release: true); - } +const int errSecInvalidAccessRequest = -67876; - static NSFileSecurity alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileSecurity1, _lib._sel_alloc1); - return NSFileSecurity._(_ret, _lib, retain: false, release: true); - } -} +const int errSecInvalidIndexInfo = -67877; -/// ! -/// @class NSHTTPURLResponse -/// -/// @abstract An NSHTTPURLResponse object represents a response to an -/// HTTP URL load. It is a specialization of NSURLResponse which -/// provides conveniences for accessing information specific to HTTP -/// protocol responses. -class NSHTTPURLResponse extends NSURLResponse { - NSHTTPURLResponse._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int errSecInvalidNewOwner = -67878; + +const int errSecInvalidModifyMode = -67879; - /// Returns a [NSHTTPURLResponse] that points to the same underlying object as [other]. - static NSHTTPURLResponse castFrom(T other) { - return NSHTTPURLResponse._(other._id, other._lib, - retain: true, release: true); - } +const int errSecMissingRequiredExtension = -67880; - /// Returns a [NSHTTPURLResponse] that wraps the given raw object pointer. - static NSHTTPURLResponse castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSHTTPURLResponse._(other, lib, retain: retain, release: release); - } +const int errSecExtendedKeyUsageNotCritical = -67881; - /// Returns whether [obj] is an instance of [NSHTTPURLResponse]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSHTTPURLResponse1); - } +const int errSecTimestampMissing = -67882; - /// ! - /// @method initWithURL:statusCode:HTTPVersion:headerFields: - /// @abstract initializer for NSHTTPURLResponse objects. - /// @param url the URL from which the response was generated. - /// @param statusCode an HTTP status code. - /// @param HTTPVersion The version of the HTTP response as represented by the server. This is typically represented as "HTTP/1.1". - /// @param headerFields A dictionary representing the header keys and values of the server response. - /// @result the instance of the object, or NULL if an error occurred during initialization. - /// @discussion This API was introduced in Mac OS X 10.7.2 and iOS 5.0 and is not available prior to those releases. - NSHTTPURLResponse initWithURL_statusCode_HTTPVersion_headerFields_(NSURL? url, - int statusCode, NSString? HTTPVersion, NSDictionary? headerFields) { - final _ret = _lib._objc_msgSend_465( - _id, - _lib._sel_initWithURL_statusCode_HTTPVersion_headerFields_1, - url?._id ?? ffi.nullptr, - statusCode, - HTTPVersion?._id ?? ffi.nullptr, - headerFields?._id ?? ffi.nullptr); - return NSHTTPURLResponse._(_ret, _lib, retain: true, release: true); - } +const int errSecTimestampInvalid = -67883; - /// ! - /// @abstract Returns the HTTP status code of the receiver. - /// @result The HTTP status code of the receiver. - int get statusCode { - return _lib._objc_msgSend_81(_id, _lib._sel_statusCode1); - } +const int errSecTimestampNotTrusted = -67884; - /// ! - /// @abstract Returns a dictionary containing all the HTTP header fields - /// of the receiver. - /// @discussion By examining this header dictionary, clients can see - /// the "raw" header information which was reported to the protocol - /// implementation by the HTTP server. This may be of use to - /// sophisticated or special-purpose HTTP clients. - /// @result A dictionary containing all the HTTP header fields of the - /// receiver. - NSDictionary? get allHeaderFields { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_allHeaderFields1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } +const int errSecTimestampServiceNotAvailable = -67885; - /// ! - /// @method valueForHTTPHeaderField: - /// @abstract Returns the value which corresponds to the given header - /// field. Note that, in keeping with the HTTP RFC, HTTP header field - /// names are case-insensitive. - /// @param field the header field name to use for the lookup - /// (case-insensitive). - /// @result the value associated with the given header field, or nil if - /// there is no value associated with the given header field. - NSString valueForHTTPHeaderField_(NSString? field) { - final _ret = _lib._objc_msgSend_98( - _id, _lib._sel_valueForHTTPHeaderField_1, field?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecTimestampBadAlg = -67886; - /// ! - /// @method localizedStringForStatusCode: - /// @abstract Convenience method which returns a localized string - /// 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 NSString localizedStringForStatusCode_( - NativeCupertinoHttp _lib, int statusCode) { - final _ret = _lib._objc_msgSend_466(_lib._class_NSHTTPURLResponse1, - _lib._sel_localizedStringForStatusCode_1, statusCode); - return NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecTimestampBadRequest = -67887; - static NSHTTPURLResponse new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPURLResponse1, _lib._sel_new1); - return NSHTTPURLResponse._(_ret, _lib, retain: false, release: true); - } +const int errSecTimestampBadDataFormat = -67888; - static NSHTTPURLResponse alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPURLResponse1, _lib._sel_alloc1); - return NSHTTPURLResponse._(_ret, _lib, retain: false, release: true); - } -} +const int errSecTimestampTimeNotAvailable = -67889; -class NSException extends NSObject { - NSException._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int errSecTimestampUnacceptedPolicy = -67890; - /// Returns a [NSException] that points to the same underlying object as [other]. - static NSException castFrom(T other) { - return NSException._(other._id, other._lib, retain: true, release: true); - } +const int errSecTimestampUnacceptedExtension = -67891; - /// Returns a [NSException] that wraps the given raw object pointer. - static NSException castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSException._(other, lib, retain: retain, release: release); - } +const int errSecTimestampAddInfoNotAvailable = -67892; - /// Returns whether [obj] is an instance of [NSException]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSException1); - } +const int errSecTimestampSystemFailure = -67893; - static NSException exceptionWithName_reason_userInfo_( - NativeCupertinoHttp _lib, - NSExceptionName name, - NSString? reason, - NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_467( - _lib._class_NSException1, - _lib._sel_exceptionWithName_reason_userInfo_1, - name, - reason?._id ?? ffi.nullptr, - userInfo?._id ?? ffi.nullptr); - return NSException._(_ret, _lib, retain: true, release: true); - } +const int errSecSigningTimeMissing = -67894; - NSException initWithName_reason_userInfo_( - NSExceptionName aName, NSString? aReason, NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_468( - _id, - _lib._sel_initWithName_reason_userInfo_1, - aName, - aReason?._id ?? ffi.nullptr, - aUserInfo?._id ?? ffi.nullptr); - return NSException._(_ret, _lib, retain: true, release: true); - } +const int errSecTimestampRejection = -67895; - NSExceptionName get name { - return _lib._objc_msgSend_32(_id, _lib._sel_name1); - } +const int errSecTimestampWaiting = -67896; - NSString? get reason { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_reason1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } +const int errSecTimestampRevocationWarning = -67897; - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } +const int errSecTimestampRevocationNotification = -67898; - NSArray? get callStackReturnAddresses { - final _ret = - _lib._objc_msgSend_162(_id, _lib._sel_callStackReturnAddresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } +const int errSecCertificatePolicyNotAllowed = -67899; - NSArray? get callStackSymbols { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_callStackSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } +const int errSecCertificateNameNotAllowed = -67900; - void raise() { - return _lib._objc_msgSend_1(_id, _lib._sel_raise1); - } +const int errSecCertificateValidityPeriodTooLong = -67901; - static void raise_format_( - NativeCupertinoHttp _lib, NSExceptionName name, NSString? format) { - return _lib._objc_msgSend_367(_lib._class_NSException1, - _lib._sel_raise_format_1, name, format?._id ?? ffi.nullptr); - } +const int errSecCertificateIsCA = -67902; - static void raise_format_arguments_(NativeCupertinoHttp _lib, - NSExceptionName name, NSString? format, va_list argList) { - return _lib._objc_msgSend_469( - _lib._class_NSException1, - _lib._sel_raise_format_arguments_1, - name, - format?._id ?? ffi.nullptr, - argList); - } +const int errSecCertificateDuplicateExtension = -67903; - static NSException new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_new1); - return NSException._(_ret, _lib, retain: false, release: true); - } +const int errSSLProtocol = -9800; - static NSException alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); - return NSException._(_ret, _lib, retain: false, release: true); - } -} +const int errSSLNegotiation = -9801; -typedef NSUncaughtExceptionHandler - = ffi.NativeFunction)>; +const int errSSLFatalAlert = -9802; -class NSAssertionHandler extends NSObject { - NSAssertionHandler._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int errSSLWouldBlock = -9803; - /// Returns a [NSAssertionHandler] that points to the same underlying object as [other]. - static NSAssertionHandler castFrom(T other) { - return NSAssertionHandler._(other._id, other._lib, - retain: true, release: true); - } +const int errSSLSessionNotFound = -9804; - /// Returns a [NSAssertionHandler] that wraps the given raw object pointer. - static NSAssertionHandler castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSAssertionHandler._(other, lib, retain: retain, release: release); - } +const int errSSLClosedGraceful = -9805; - /// Returns whether [obj] is an instance of [NSAssertionHandler]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSAssertionHandler1); - } +const int errSSLClosedAbort = -9806; - static NSAssertionHandler? getCurrentHandler(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_470( - _lib._class_NSAssertionHandler1, _lib._sel_currentHandler1); - return _ret.address == 0 - ? null - : NSAssertionHandler._(_ret, _lib, retain: true, release: true); - } +const int errSSLXCertChainInvalid = -9807; - void handleFailureInMethod_object_file_lineNumber_description_( - ffi.Pointer selector, - NSObject object, - NSString? fileName, - int line, - NSString? format) { - return _lib._objc_msgSend_471( - _id, - _lib._sel_handleFailureInMethod_object_file_lineNumber_description_1, - selector, - object._id, - fileName?._id ?? ffi.nullptr, - line, - format?._id ?? ffi.nullptr); - } +const int errSSLBadCert = -9808; - void handleFailureInFunction_file_lineNumber_description_( - NSString? functionName, NSString? fileName, int line, NSString? format) { - return _lib._objc_msgSend_472( - _id, - _lib._sel_handleFailureInFunction_file_lineNumber_description_1, - functionName?._id ?? ffi.nullptr, - fileName?._id ?? ffi.nullptr, - line, - format?._id ?? ffi.nullptr); - } +const int errSSLCrypto = -9809; - static NSAssertionHandler new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSAssertionHandler1, _lib._sel_new1); - return NSAssertionHandler._(_ret, _lib, retain: false, release: true); - } +const int errSSLInternal = -9810; - static NSAssertionHandler alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSAssertionHandler1, _lib._sel_alloc1); - return NSAssertionHandler._(_ret, _lib, retain: false, release: true); - } -} +const int errSSLModuleAttach = -9811; -class NSBlockOperation extends NSOperation { - NSBlockOperation._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int errSSLUnknownRootCert = -9812; - /// Returns a [NSBlockOperation] that points to the same underlying object as [other]. - static NSBlockOperation castFrom(T other) { - return NSBlockOperation._(other._id, other._lib, - retain: true, release: true); - } +const int errSSLNoRootCert = -9813; - /// Returns a [NSBlockOperation] that wraps the given raw object pointer. - static NSBlockOperation castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSBlockOperation._(other, lib, retain: retain, release: release); - } +const int errSSLCertExpired = -9814; - /// Returns whether [obj] is an instance of [NSBlockOperation]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSBlockOperation1); - } +const int errSSLCertNotYetValid = -9815; - static NSBlockOperation blockOperationWithBlock_( - NativeCupertinoHttp _lib, ObjCBlock block) { - final _ret = _lib._objc_msgSend_473(_lib._class_NSBlockOperation1, - _lib._sel_blockOperationWithBlock_1, block._id); - return NSBlockOperation._(_ret, _lib, retain: true, release: true); - } +const int errSSLClosedNoNotify = -9816; - void addExecutionBlock_(ObjCBlock block) { - return _lib._objc_msgSend_345( - _id, _lib._sel_addExecutionBlock_1, block._id); - } +const int errSSLBufferOverflow = -9817; - NSArray? get executionBlocks { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_executionBlocks1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } +const int errSSLBadCipherSuite = -9818; - static NSBlockOperation new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSBlockOperation1, _lib._sel_new1); - return NSBlockOperation._(_ret, _lib, retain: false, release: true); - } +const int errSSLPeerUnexpectedMsg = -9819; - static NSBlockOperation alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSBlockOperation1, _lib._sel_alloc1); - return NSBlockOperation._(_ret, _lib, retain: false, release: true); - } -} +const int errSSLPeerBadRecordMac = -9820; -class NSInvocationOperation extends NSOperation { - NSInvocationOperation._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int errSSLPeerDecryptionFail = -9821; - /// Returns a [NSInvocationOperation] that points to the same underlying object as [other]. - static NSInvocationOperation castFrom(T other) { - return NSInvocationOperation._(other._id, other._lib, - retain: true, release: true); - } +const int errSSLPeerRecordOverflow = -9822; - /// Returns a [NSInvocationOperation] that wraps the given raw object pointer. - static NSInvocationOperation castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSInvocationOperation._(other, lib, - retain: retain, release: release); - } +const int errSSLPeerDecompressFail = -9823; - /// Returns whether [obj] is an instance of [NSInvocationOperation]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSInvocationOperation1); - } +const int errSSLPeerHandshakeFail = -9824; - NSInvocationOperation initWithTarget_selector_object_( - NSObject target, ffi.Pointer sel, NSObject arg) { - final _ret = _lib._objc_msgSend_474(_id, - _lib._sel_initWithTarget_selector_object_1, target._id, sel, arg._id); - return NSInvocationOperation._(_ret, _lib, retain: true, release: true); - } +const int errSSLPeerBadCert = -9825; - NSInvocationOperation initWithInvocation_(NSInvocation? inv) { - final _ret = _lib._objc_msgSend_475( - _id, _lib._sel_initWithInvocation_1, inv?._id ?? ffi.nullptr); - return NSInvocationOperation._(_ret, _lib, retain: true, release: true); - } +const int errSSLPeerUnsupportedCert = -9826; - NSInvocation? get invocation { - final _ret = _lib._objc_msgSend_476(_id, _lib._sel_invocation1); - return _ret.address == 0 - ? null - : NSInvocation._(_ret, _lib, retain: true, release: true); - } +const int errSSLPeerCertRevoked = -9827; - NSObject get result { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_result1); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int errSSLPeerCertExpired = -9828; - static NSInvocationOperation new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSInvocationOperation1, _lib._sel_new1); - return NSInvocationOperation._(_ret, _lib, retain: false, release: true); - } +const int errSSLPeerCertUnknown = -9829; - static NSInvocationOperation alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSInvocationOperation1, _lib._sel_alloc1); - return NSInvocationOperation._(_ret, _lib, retain: false, release: true); - } -} +const int errSSLIllegalParam = -9830; -class _Dart_Isolate extends ffi.Opaque {} +const int errSSLPeerUnknownCA = -9831; -class _Dart_IsolateGroup extends ffi.Opaque {} +const int errSSLPeerAccessDenied = -9832; -class _Dart_Handle extends ffi.Opaque {} +const int errSSLPeerDecodeError = -9833; -class _Dart_WeakPersistentHandle extends ffi.Opaque {} +const int errSSLPeerDecryptError = -9834; -class _Dart_FinalizableHandle extends ffi.Opaque {} +const int errSSLPeerExportRestriction = -9835; -typedef Dart_WeakPersistentHandle = ffi.Pointer<_Dart_WeakPersistentHandle>; +const int errSSLPeerProtocolVersion = -9836; -/// These structs are versioned by DART_API_DL_MAJOR_VERSION, bump the -/// version when changing this struct. -typedef Dart_HandleFinalizer = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; -typedef Dart_FinalizableHandle = ffi.Pointer<_Dart_FinalizableHandle>; +const int errSSLPeerInsufficientSecurity = -9837; -class Dart_IsolateFlags extends ffi.Struct { - @ffi.Int32() - external int version; +const int errSSLPeerInternalError = -9838; - @ffi.Bool() - external bool enable_asserts; +const int errSSLPeerUserCancelled = -9839; - @ffi.Bool() - external bool use_field_guards; +const int errSSLPeerNoRenegotiation = -9840; - @ffi.Bool() - external bool use_osr; +const int errSSLPeerAuthCompleted = -9841; - @ffi.Bool() - external bool obfuscate; +const int errSSLClientCertRequested = -9842; - @ffi.Bool() - external bool load_vmservice_library; +const int errSSLHostNameMismatch = -9843; - @ffi.Bool() - external bool copy_parent_code; +const int errSSLConnectionRefused = -9844; - @ffi.Bool() - external bool null_safety; +const int errSSLDecryptionFail = -9845; - @ffi.Bool() - external bool is_system_isolate; -} +const int errSSLBadRecordMac = -9846; -/// Forward declaration -class Dart_CodeObserver extends ffi.Struct { - external ffi.Pointer data; +const int errSSLRecordOverflow = -9847; - external Dart_OnNewCodeCallback on_new_code; -} +const int errSSLBadConfiguration = -9848; -/// Callback provided by the embedder that is used by the VM to notify on code -/// object creation, *before* it is invoked the first time. -/// This is useful for embedders wanting to e.g. keep track of PCs beyond -/// the lifetime of the garbage collected code objects. -/// Note that an address range may be used by more than one code object over the -/// lifecycle of a process. Clients of this function should record timestamps for -/// these compilation events and when collecting PCs to disambiguate reused -/// address ranges. -typedef Dart_OnNewCodeCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UintPtr, ffi.UintPtr)>>; +const int errSSLUnexpectedRecord = -9849; -/// Describes how to initialize the VM. Used with Dart_Initialize. -/// -/// \param version Identifies the version of the struct used by the client. -/// should be initialized to DART_INITIALIZE_PARAMS_CURRENT_VERSION. -/// \param vm_isolate_snapshot A buffer containing a snapshot of the VM isolate -/// or NULL if no snapshot is provided. If provided, the buffer must remain -/// valid until Dart_Cleanup returns. -/// \param instructions_snapshot A buffer containing a snapshot of precompiled -/// instructions, or NULL if no snapshot is provided. If provided, the buffer -/// must remain valid until Dart_Cleanup returns. -/// \param initialize_isolate A function to be called during isolate -/// initialization inside an existing isolate group. -/// See Dart_InitializeIsolateCallback. -/// \param create_group A function to be called during isolate group creation. -/// See Dart_IsolateGroupCreateCallback. -/// \param shutdown A function to be called right before an isolate is shutdown. -/// See Dart_IsolateShutdownCallback. -/// \param cleanup A function to be called after an isolate was shutdown. -/// See Dart_IsolateCleanupCallback. -/// \param cleanup_group A function to be called after an isolate group is shutdown. -/// See Dart_IsolateGroupCleanupCallback. -/// \param get_service_assets A function to be called by the service isolate when -/// it requires the vmservice assets archive. -/// See Dart_GetVMServiceAssetsArchive. -/// \param code_observer An external code observer callback function. -/// The observer can be invoked as early as during the Dart_Initialize() call. -class Dart_InitializeParams extends ffi.Struct { - @ffi.Int32() - external int version; +const int errSSLWeakPeerEphemeralDHKey = -9850; - external ffi.Pointer vm_snapshot_data; +const int errSSLClientHelloReceived = -9851; - external ffi.Pointer vm_snapshot_instructions; +const int errSSLTransportReset = -9852; - external Dart_IsolateGroupCreateCallback create_group; +const int errSSLNetworkTimeout = -9853; - external Dart_InitializeIsolateCallback initialize_isolate; +const int errSSLConfigurationFailed = -9854; - external Dart_IsolateShutdownCallback shutdown_isolate; +const int errSSLUnsupportedExtension = -9855; + +const int errSSLUnexpectedMessage = -9856; + +const int errSSLDecompressFail = -9857; + +const int errSSLHandshakeFail = -9858; - external Dart_IsolateCleanupCallback cleanup_isolate; +const int errSSLDecodeError = -9859; - external Dart_IsolateGroupCleanupCallback cleanup_group; +const int errSSLInappropriateFallback = -9860; - external Dart_ThreadExitCallback thread_exit; +const int errSSLMissingExtension = -9861; - external Dart_FileOpenCallback file_open; +const int errSSLBadCertificateStatusResponse = -9862; - external Dart_FileReadCallback file_read; +const int errSSLCertificateRequired = -9863; - external Dart_FileWriteCallback file_write; +const int errSSLUnknownPSKIdentity = -9864; - external Dart_FileCloseCallback file_close; +const int errSSLUnrecognizedName = -9865; - external Dart_EntropySource entropy_source; +const int errSSLATSViolation = -9880; - external Dart_GetVMServiceAssetsArchive get_service_assets; +const int errSSLATSMinimumVersionViolation = -9881; - @ffi.Bool() - external bool start_kernel_isolate; +const int errSSLATSCiphersuiteViolation = -9882; - external ffi.Pointer code_observer; -} +const int errSSLATSMinimumKeySizeViolation = -9883; -/// An isolate creation and initialization callback function. -/// -/// This callback, provided by the embedder, is called when the VM -/// needs to create an isolate. The callback should create an isolate -/// by calling Dart_CreateIsolateGroup and load any scripts required for -/// execution. -/// -/// This callback may be called on a different thread than the one -/// running the parent isolate. -/// -/// When the function returns NULL, it is the responsibility of this -/// function to ensure that Dart_ShutdownIsolate has been called if -/// required (for example, if the isolate was created successfully by -/// Dart_CreateIsolateGroup() but the root library fails to load -/// successfully, then the function should call Dart_ShutdownIsolate -/// before returning). -/// -/// When the function returns NULL, the function should set *error to -/// a malloc-allocated buffer containing a useful error message. The -/// caller of this function (the VM) will make sure that the buffer is -/// freed. -/// -/// \param script_uri The uri of the main source file or snapshot to load. -/// Either the URI of the parent isolate set in Dart_CreateIsolateGroup for -/// Isolate.spawn, or the argument to Isolate.spawnUri canonicalized by the -/// library tag handler of the parent isolate. -/// The callback is responsible for loading the program by a call to -/// Dart_LoadScriptFromKernel. -/// \param main The name of the main entry point this isolate will -/// eventually run. This is provided for advisory purposes only to -/// improve debugging messages. The main function is not invoked by -/// this function. -/// \param package_root Ignored. -/// \param package_config Uri of the package configuration file (either in format -/// of .packages or .dart_tool/package_config.json) for this isolate -/// to resolve package imports against. If this parameter is not passed the -/// package resolution of the parent isolate should be used. -/// \param flags Default flags for this isolate being spawned. Either inherited -/// from the spawning isolate or passed as parameters when spawning the -/// isolate from Dart code. -/// \param isolate_data The isolate data which was passed to the -/// parent isolate when it was created by calling Dart_CreateIsolateGroup(). -/// \param error A structure into which the embedder can place a -/// C string containing an error message in the case of failures. -/// -/// \return The embedder returns NULL if the creation and -/// initialization was not successful and the isolate if successful. -typedef Dart_IsolateGroupCreateCallback = ffi.Pointer< - ffi.NativeFunction< - Dart_Isolate Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>; +const int errSSLATSLeafCertificateHashAlgorithmViolation = -9884; -/// An isolate is the unit of concurrency in Dart. Each isolate has -/// its own memory and thread of control. No state is shared between -/// isolates. Instead, isolates communicate by message passing. -/// -/// Each thread keeps track of its current isolate, which is the -/// isolate which is ready to execute on the current thread. The -/// current isolate may be NULL, in which case no isolate is ready to -/// execute. Most of the Dart apis require there to be a current -/// isolate in order to function without error. The current isolate is -/// set by any call to Dart_CreateIsolateGroup or Dart_EnterIsolate. -typedef Dart_Isolate = ffi.Pointer<_Dart_Isolate>; +const int errSSLATSCertificateHashAlgorithmViolation = -9885; -/// An isolate initialization callback function. -/// -/// This callback, provided by the embedder, is called when the VM has created an -/// isolate within an existing isolate group (i.e. from the same source as an -/// existing isolate). -/// -/// The callback should setup native resolvers and might want to set a custom -/// message handler via [Dart_SetMessageNotifyCallback] and mark the isolate as -/// runnable. -/// -/// This callback may be called on a different thread than the one -/// running the parent isolate. -/// -/// When the function returns `false`, it is the responsibility of this -/// function to ensure that `Dart_ShutdownIsolate` has been called. -/// -/// When the function returns `false`, the function should set *error to -/// a malloc-allocated buffer containing a useful error message. The -/// caller of this function (the VM) will make sure that the buffer is -/// freed. -/// -/// \param child_isolate_data The callback data to associate with the new -/// child isolate. -/// \param error A structure into which the embedder can place a -/// C string containing an error message in the case the initialization fails. -/// -/// \return The embedder returns true if the initialization was successful and -/// false otherwise (in which case the VM will terminate the isolate). -typedef Dart_InitializeIsolateCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer>, - ffi.Pointer>)>>; +const int errSSLATSCertificateTrustViolation = -9886; -/// An isolate shutdown callback function. -/// -/// This callback, provided by the embedder, is called before the vm -/// shuts down an isolate. The isolate being shutdown will be the current -/// isolate. It is safe to run Dart code. -/// -/// This function should be used to dispose of native resources that -/// are allocated to an isolate in order to avoid leaks. -/// -/// \param isolate_group_data The same callback data which was passed to the -/// isolate group when it was created. -/// \param isolate_data The same callback data which was passed to the isolate -/// when it was created. -typedef Dart_IsolateShutdownCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; +const int errSSLEarlyDataRejected = -9890; -/// An isolate cleanup callback function. -/// -/// This callback, provided by the embedder, is called after the vm -/// shuts down an isolate. There will be no current isolate and it is *not* -/// safe to run Dart code. -/// -/// This function should be used to dispose of native resources that -/// are allocated to an isolate in order to avoid leaks. -/// -/// \param isolate_group_data The same callback data which was passed to the -/// isolate group when it was created. -/// \param isolate_data The same callback data which was passed to the isolate -/// when it was created. -typedef Dart_IsolateCleanupCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer)>>; +const int OSUnknownByteOrder = 0; -/// An isolate group cleanup callback function. -/// -/// This callback, provided by the embedder, is called after the vm -/// shuts down an isolate group. -/// -/// This function should be used to dispose of native resources that -/// are allocated to an isolate in order to avoid leaks. -/// -/// \param isolate_group_data The same callback data which was passed to the -/// isolate group when it was created. -typedef Dart_IsolateGroupCleanupCallback - = ffi.Pointer)>>; +const int OSLittleEndian = 1; -/// A thread death callback function. -/// This callback, provided by the embedder, is called before a thread in the -/// vm thread pool exits. -/// This function could be used to dispose of native resources that -/// are associated and attached to the thread, in order to avoid leaks. -typedef Dart_ThreadExitCallback - = ffi.Pointer>; +const int OSBigEndian = 2; -/// Callbacks provided by the embedder for file operations. If the -/// embedder does not allow file operations these callbacks can be -/// NULL. -/// -/// Dart_FileOpenCallback - opens a file for reading or writing. -/// \param name The name of the file to open. -/// \param write A boolean variable which indicates if the file is to -/// opened for writing. If there is an existing file it needs to truncated. -/// -/// Dart_FileReadCallback - Read contents of file. -/// \param data Buffer allocated in the callback into which the contents -/// of the file are read into. It is the responsibility of the caller to -/// free this buffer. -/// \param file_length A variable into which the length of the file is returned. -/// In the case of an error this value would be -1. -/// \param stream Handle to the opened file. -/// -/// Dart_FileWriteCallback - Write data into file. -/// \param data Buffer which needs to be written into the file. -/// \param length Length of the buffer. -/// \param stream Handle to the opened file. -/// -/// Dart_FileCloseCallback - Closes the opened file. -/// \param stream Handle to the opened file. -typedef Dart_FileOpenCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Bool)>>; -typedef Dart_FileReadCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer>, - ffi.Pointer, ffi.Pointer)>>; -typedef Dart_FileWriteCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.IntPtr, ffi.Pointer)>>; -typedef Dart_FileCloseCallback - = ffi.Pointer)>>; -typedef Dart_EntropySource = ffi.Pointer< - ffi.NativeFunction, ffi.IntPtr)>>; +const int kCFNotificationDeliverImmediately = 1; -/// Callback provided by the embedder that is used by the vmservice isolate -/// to request the asset archive. The asset archive must be an uncompressed tar -/// archive that is stored in a Uint8List. -/// -/// If the embedder has no vmservice isolate assets, the callback can be NULL. -/// -/// \return The embedder must return a handle to a Uint8List containing an -/// uncompressed tar archive or null. -typedef Dart_GetVMServiceAssetsArchive - = ffi.Pointer>; -typedef Dart_IsolateGroup = ffi.Pointer<_Dart_IsolateGroup>; +const int kCFNotificationPostToAllSessions = 2; -/// A message notification callback. -/// -/// This callback allows the embedder to provide an alternate wakeup -/// mechanism for the delivery of inter-isolate messages. It is the -/// responsibility of the embedder to call Dart_HandleMessage to -/// process the message. -typedef Dart_MessageNotifyCallback - = ffi.Pointer>; +const int kCFCalendarComponentsWrap = 1; -/// A port is used to send or receive inter-isolate messages -typedef Dart_Port = ffi.Int64; +const int kCFSocketAutomaticallyReenableReadCallBack = 1; -abstract class Dart_CoreType_Id { - static const int Dart_CoreType_Dynamic = 0; - static const int Dart_CoreType_Int = 1; - static const int Dart_CoreType_String = 2; -} +const int kCFSocketAutomaticallyReenableAcceptCallBack = 2; -/// ========== -/// Typed Data -/// ========== -abstract class Dart_TypedData_Type { - static const int Dart_TypedData_kByteData = 0; - static const int Dart_TypedData_kInt8 = 1; - static const int Dart_TypedData_kUint8 = 2; - static const int Dart_TypedData_kUint8Clamped = 3; - static const int Dart_TypedData_kInt16 = 4; - static const int Dart_TypedData_kUint16 = 5; - static const int Dart_TypedData_kInt32 = 6; - static const int Dart_TypedData_kUint32 = 7; - static const int Dart_TypedData_kInt64 = 8; - static const int Dart_TypedData_kUint64 = 9; - static const int Dart_TypedData_kFloat32 = 10; - static const int Dart_TypedData_kFloat64 = 11; - static const int Dart_TypedData_kInt32x4 = 12; - static const int Dart_TypedData_kFloat32x4 = 13; - static const int Dart_TypedData_kFloat64x2 = 14; - static const int Dart_TypedData_kInvalid = 15; -} +const int kCFSocketAutomaticallyReenableDataCallBack = 3; -class _Dart_NativeArguments extends ffi.Opaque {} +const int kCFSocketAutomaticallyReenableWriteCallBack = 8; -/// The arguments to a native function. -/// -/// This object is passed to a native function to represent its -/// arguments and return value. It allows access to the arguments to a -/// native function by index. It also allows the return value of a -/// native function to be set. -typedef Dart_NativeArguments = ffi.Pointer<_Dart_NativeArguments>; +const int kCFSocketLeaveErrors = 64; -abstract class Dart_NativeArgument_Type { - static const int Dart_NativeArgument_kBool = 0; - static const int Dart_NativeArgument_kInt32 = 1; - static const int Dart_NativeArgument_kUint32 = 2; - static const int Dart_NativeArgument_kInt64 = 3; - static const int Dart_NativeArgument_kUint64 = 4; - static const int Dart_NativeArgument_kDouble = 5; - static const int Dart_NativeArgument_kString = 6; - static const int Dart_NativeArgument_kInstance = 7; - static const int Dart_NativeArgument_kNativeFields = 8; -} +const int kCFSocketCloseOnInvalidate = 128; -class _Dart_NativeArgument_Descriptor extends ffi.Struct { - @ffi.Uint8() - external int type; +const int DISPATCH_WALLTIME_NOW = -2; - @ffi.Uint8() - external int index; -} +const int kCFPropertyListReadCorruptError = 3840; -class _Dart_NativeArgument_Value extends ffi.Opaque {} +const int kCFPropertyListReadUnknownVersionError = 3841; -typedef Dart_NativeArgument_Descriptor = _Dart_NativeArgument_Descriptor; -typedef Dart_NativeArgument_Value = _Dart_NativeArgument_Value; +const int kCFPropertyListReadStreamError = 3842; -/// An environment lookup callback function. -/// -/// \param name The name of the value to lookup in the environment. -/// -/// \return A valid handle to a string if the name exists in the -/// current environment or Dart_Null() if not. -typedef Dart_EnvironmentCallback - = ffi.Pointer>; +const int kCFPropertyListWriteStreamError = 3851; -/// Native entry resolution callback. -/// -/// For libraries and scripts which have native functions, the embedder -/// can provide a native entry resolver. This callback is used to map a -/// name/arity to a Dart_NativeFunction. If no function is found, the -/// callback should return NULL. -/// -/// The parameters to the native resolver function are: -/// \param name a Dart string which is the name of the native function. -/// \param num_of_arguments is the number of arguments expected by the -/// native function. -/// \param auto_setup_scope is a boolean flag that can be set by the resolver -/// to indicate if this function needs a Dart API scope (see Dart_EnterScope/ -/// Dart_ExitScope) to be setup automatically by the VM before calling into -/// the native function. By default most native functions would require this -/// to be true but some light weight native functions which do not call back -/// into the VM through the Dart API may not require a Dart scope to be -/// setup automatically. -/// -/// \return A valid Dart_NativeFunction which resolves to a native entry point -/// for the native function. -/// -/// See Dart_SetNativeResolver. -typedef Dart_NativeEntryResolver = ffi.Pointer< - ffi.NativeFunction< - Dart_NativeFunction Function( - ffi.Handle, ffi.Int, ffi.Pointer)>>; +const int kCFBundleExecutableArchitectureI386 = 7; -/// A native function. -typedef Dart_NativeFunction - = ffi.Pointer>; +const int kCFBundleExecutableArchitecturePPC = 18; -/// Native entry symbol lookup callback. -/// -/// For libraries and scripts which have native functions, the embedder -/// can provide a callback for mapping a native entry to a symbol. This callback -/// maps a native function entry PC to the native function name. If no native -/// entry symbol can be found, the callback should return NULL. -/// -/// The parameters to the native reverse resolver function are: -/// \param nf A Dart_NativeFunction. -/// -/// \return A const UTF-8 string containing the symbol name or NULL. -/// -/// See Dart_SetNativeResolver. -typedef Dart_NativeEntrySymbol = ffi.Pointer< - ffi.NativeFunction Function(Dart_NativeFunction)>>; +const int kCFBundleExecutableArchitectureX86_64 = 16777223; -/// FFI Native C function pointer resolver callback. -/// -/// See Dart_SetFfiNativeResolver. -typedef Dart_FfiNativeResolver = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.UintPtr)>>; +const int kCFBundleExecutableArchitecturePPC64 = 16777234; -/// ===================== -/// Scripts and Libraries -/// ===================== -abstract class Dart_LibraryTag { - static const int Dart_kCanonicalizeUrl = 0; - static const int Dart_kImportTag = 1; - static const int Dart_kKernelTag = 2; -} +const int kCFBundleExecutableArchitectureARM64 = 16777228; -/// The library tag handler is a multi-purpose callback provided by the -/// embedder to the Dart VM. The embedder implements the tag handler to -/// provide the ability to load Dart scripts and imports. -/// -/// -- TAGS -- -/// -/// Dart_kCanonicalizeUrl -/// -/// This tag indicates that the embedder should canonicalize 'url' with -/// respect to 'library'. For most embedders, the -/// Dart_DefaultCanonicalizeUrl function is a sufficient implementation -/// of this tag. The return value should be a string holding the -/// canonicalized url. -/// -/// Dart_kImportTag -/// -/// This tag is used to load a library from IsolateMirror.loadUri. The embedder -/// should call Dart_LoadLibraryFromKernel to provide the library to the VM. The -/// return value should be an error or library (the result from -/// Dart_LoadLibraryFromKernel). -/// -/// Dart_kKernelTag -/// -/// This tag is used to load the intermediate file (kernel) generated by -/// the Dart front end. This tag is typically used when a 'hot-reload' -/// of an application is needed and the VM is 'use dart front end' mode. -/// The dart front end typically compiles all the scripts, imports and part -/// files into one intermediate file hence we don't use the source/import or -/// script tags. The return value should be an error or a TypedData containing -/// the kernel bytes. -typedef Dart_LibraryTagHandler = ffi.Pointer< - ffi.NativeFunction>; +const int kCFMessagePortSuccess = 0; -/// Handles deferred loading requests. When this handler is invoked, it should -/// eventually load the deferred loading unit with the given id and call -/// Dart_DeferredLoadComplete or Dart_DeferredLoadCompleteError. It is -/// recommended that the loading occur asynchronously, but it is permitted to -/// call Dart_DeferredLoadComplete or Dart_DeferredLoadCompleteError before the -/// handler returns. -/// -/// If an error is returned, it will be propogated through -/// `prefix.loadLibrary()`. This is useful for synchronous -/// implementations, which must propogate any unwind errors from -/// Dart_DeferredLoadComplete or Dart_DeferredLoadComplete. Otherwise the handler -/// should return a non-error such as `Dart_Null()`. -typedef Dart_DeferredLoadHandler - = ffi.Pointer>; +const int kCFMessagePortSendTimeout = -1; -/// TODO(33433): Remove kernel service from the embedding API. -abstract class Dart_KernelCompilationStatus { - static const int Dart_KernelCompilationStatus_Unknown = -1; - static const int Dart_KernelCompilationStatus_Ok = 0; - static const int Dart_KernelCompilationStatus_Error = 1; - static const int Dart_KernelCompilationStatus_Crash = 2; - static const int Dart_KernelCompilationStatus_MsgFailed = 3; -} +const int kCFMessagePortReceiveTimeout = -2; -class Dart_KernelCompilationResult extends ffi.Struct { - @ffi.Int32() - external int status; +const int kCFMessagePortIsInvalid = -3; - @ffi.Bool() - external bool null_safety; +const int kCFMessagePortTransportError = -4; - external ffi.Pointer error; +const int kCFMessagePortBecameInvalidError = -5; - external ffi.Pointer kernel; +const int kCFStringTokenizerUnitWord = 0; - @ffi.IntPtr() - external int kernel_size; -} +const int kCFStringTokenizerUnitSentence = 1; -abstract class Dart_KernelCompilationVerbosityLevel { - static const int Dart_KernelCompilationVerbosityLevel_Error = 0; - static const int Dart_KernelCompilationVerbosityLevel_Warning = 1; - static const int Dart_KernelCompilationVerbosityLevel_Info = 2; - static const int Dart_KernelCompilationVerbosityLevel_All = 3; -} +const int kCFStringTokenizerUnitParagraph = 2; -class Dart_SourceFile extends ffi.Struct { - external ffi.Pointer uri; +const int kCFStringTokenizerUnitLineBreak = 3; - external ffi.Pointer source; -} +const int kCFStringTokenizerUnitWordBoundary = 4; -typedef Dart_StreamingWriteCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.IntPtr)>>; -typedef Dart_CreateLoadingUnitCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.IntPtr, - ffi.Pointer>, - ffi.Pointer>)>>; -typedef Dart_StreamingCloseCallback - = ffi.Pointer)>>; +const int kCFStringTokenizerAttributeLatinTranscription = 65536; -/// A Dart_CObject is used for representing Dart objects as native C -/// data outside the Dart heap. These objects are totally detached from -/// the Dart heap. Only a subset of the Dart objects have a -/// representation as a Dart_CObject. -/// -/// The string encoding in the 'value.as_string' is UTF-8. -/// -/// All the different types from dart:typed_data are exposed as type -/// kTypedData. The specific type from dart:typed_data is in the type -/// field of the as_typed_data structure. The length in the -/// as_typed_data structure is always in bytes. -/// -/// The data for kTypedData is copied on message send and ownership remains with -/// the caller. The ownership of data for kExternalTyped is passed to the VM on -/// message send and returned when the VM invokes the -/// Dart_HandleFinalizer callback; a non-NULL callback must be provided. -abstract class Dart_CObject_Type { - static const int Dart_CObject_kNull = 0; - static const int Dart_CObject_kBool = 1; - static const int Dart_CObject_kInt32 = 2; - static const int Dart_CObject_kInt64 = 3; - static const int Dart_CObject_kDouble = 4; - static const int Dart_CObject_kString = 5; - static const int Dart_CObject_kArray = 6; - static const int Dart_CObject_kTypedData = 7; - static const int Dart_CObject_kExternalTypedData = 8; - static const int Dart_CObject_kSendPort = 9; - static const int Dart_CObject_kCapability = 10; - static const int Dart_CObject_kNativePointer = 11; - static const int Dart_CObject_kUnsupported = 12; - static const int Dart_CObject_kNumberOfTypes = 13; -} +const int kCFStringTokenizerAttributeLanguage = 131072; -class _Dart_CObject extends ffi.Struct { - @ffi.Int32() - external int type; +const int kCFFileDescriptorReadCallBack = 1; - external UnnamedUnion6 value; -} +const int kCFFileDescriptorWriteCallBack = 2; -class UnnamedUnion6 extends ffi.Union { - @ffi.Bool() - external bool as_bool; +const int kCFUserNotificationStopAlertLevel = 0; - @ffi.Int32() - external int as_int32; +const int kCFUserNotificationNoteAlertLevel = 1; - @ffi.Int64() - external int as_int64; +const int kCFUserNotificationCautionAlertLevel = 2; - @ffi.Double() - external double as_double; +const int kCFUserNotificationPlainAlertLevel = 3; - external ffi.Pointer as_string; +const int kCFUserNotificationDefaultResponse = 0; - external UnnamedStruct5 as_send_port; +const int kCFUserNotificationAlternateResponse = 1; - external UnnamedStruct6 as_capability; +const int kCFUserNotificationOtherResponse = 2; - external UnnamedStruct7 as_array; +const int kCFUserNotificationCancelResponse = 3; - external UnnamedStruct8 as_typed_data; +const int kCFUserNotificationNoDefaultButtonFlag = 32; - external UnnamedStruct9 as_external_typed_data; +const int kCFUserNotificationUseRadioButtonsFlag = 64; - external UnnamedStruct10 as_native_pointer; -} +const int kCFXMLNodeCurrentVersion = 1; -class UnnamedStruct5 extends ffi.Struct { - @Dart_Port() - external int id; +const int CSSM_INVALID_HANDLE = 0; - @Dart_Port() - external int origin_id; -} +const int CSSM_FALSE = 0; -class UnnamedStruct6 extends ffi.Struct { - @ffi.Int64() - external int id; -} +const int CSSM_TRUE = 1; -class UnnamedStruct7 extends ffi.Struct { - @ffi.IntPtr() - external int length; +const int CSSM_OK = 0; - external ffi.Pointer> values; -} +const int CSSM_MODULE_STRING_SIZE = 64; -class UnnamedStruct8 extends ffi.Struct { - @ffi.Int32() - external int type; +const int CSSM_KEY_HIERARCHY_NONE = 0; - /// in elements, not bytes - @ffi.IntPtr() - external int length; +const int CSSM_KEY_HIERARCHY_INTEG = 1; - external ffi.Pointer values; -} +const int CSSM_KEY_HIERARCHY_EXPORT = 2; -class UnnamedStruct9 extends ffi.Struct { - @ffi.Int32() - external int type; +const int CSSM_PVC_NONE = 0; - /// in elements, not bytes - @ffi.IntPtr() - external int length; +const int CSSM_PVC_APP = 1; - external ffi.Pointer data; +const int CSSM_PVC_SP = 2; - external ffi.Pointer peer; +const int CSSM_PRIVILEGE_SCOPE_NONE = 0; - external Dart_HandleFinalizer callback; -} +const int CSSM_PRIVILEGE_SCOPE_PROCESS = 1; -class UnnamedStruct10 extends ffi.Struct { - @ffi.IntPtr() - external int ptr; +const int CSSM_PRIVILEGE_SCOPE_THREAD = 2; - @ffi.IntPtr() - external int size; +const int CSSM_SERVICE_CSSM = 1; - external Dart_HandleFinalizer callback; -} +const int CSSM_SERVICE_CSP = 2; -typedef Dart_CObject = _Dart_CObject; +const int CSSM_SERVICE_DL = 4; -/// A native message handler. -/// -/// This handler is associated with a native port by calling -/// Dart_NewNativePort. -/// -/// The message received is decoded into the message structure. The -/// lifetime of the message data is controlled by the caller. All the -/// data references from the message are allocated by the caller and -/// will be reclaimed when returning to it. -typedef Dart_NativeMessageHandler = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(Dart_Port, ffi.Pointer)>>; -typedef Dart_PostCObject_Type = ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(Dart_Port_DL, ffi.Pointer)>>; +const int CSSM_SERVICE_CL = 8; -/// ============================================================================ -/// IMPORTANT! Never update these signatures without properly updating -/// DART_API_DL_MAJOR_VERSION and DART_API_DL_MINOR_VERSION. -/// -/// Verbatim copy of `dart_native_api.h` and `dart_api.h` symbol names and types -/// to trigger compile-time errors if the sybols in those files are updated -/// without updating these. -/// -/// Function return and argument types, and typedefs are carbon copied. Structs -/// are typechecked nominally in C/C++, so they are not copied, instead a -/// comment is added to their definition. -typedef Dart_Port_DL = ffi.Int64; -typedef Dart_PostInteger_Type = ffi - .Pointer>; -typedef Dart_NewNativePort_Type = ffi.Pointer< - ffi.NativeFunction< - Dart_Port_DL Function( - ffi.Pointer, Dart_NativeMessageHandler_DL, ffi.Bool)>>; -typedef Dart_NativeMessageHandler_DL = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(Dart_Port_DL, ffi.Pointer)>>; -typedef Dart_CloseNativePort_Type - = ffi.Pointer>; -typedef Dart_IsError_Type - = ffi.Pointer>; -typedef Dart_IsApiError_Type - = ffi.Pointer>; -typedef Dart_IsUnhandledExceptionError_Type - = ffi.Pointer>; -typedef Dart_IsCompilationError_Type - = ffi.Pointer>; -typedef Dart_IsFatalError_Type - = ffi.Pointer>; -typedef Dart_GetError_Type = ffi - .Pointer Function(ffi.Handle)>>; -typedef Dart_ErrorHasException_Type - = ffi.Pointer>; -typedef Dart_ErrorGetException_Type - = ffi.Pointer>; -typedef Dart_ErrorGetStackTrace_Type - = ffi.Pointer>; -typedef Dart_NewApiError_Type = ffi - .Pointer)>>; -typedef Dart_NewCompilationError_Type = ffi - .Pointer)>>; -typedef Dart_NewUnhandledExceptionError_Type - = ffi.Pointer>; -typedef Dart_PropagateError_Type - = ffi.Pointer>; -typedef Dart_HandleFromPersistent_Type - = ffi.Pointer>; -typedef Dart_HandleFromWeakPersistent_Type = ffi.Pointer< - ffi.NativeFunction>; -typedef Dart_NewPersistentHandle_Type - = ffi.Pointer>; -typedef Dart_SetPersistentHandle_Type = ffi - .Pointer>; -typedef Dart_DeletePersistentHandle_Type - = ffi.Pointer>; -typedef Dart_NewWeakPersistentHandle_Type = ffi.Pointer< - ffi.NativeFunction< - Dart_WeakPersistentHandle Function(ffi.Handle, ffi.Pointer, - ffi.IntPtr, Dart_HandleFinalizer)>>; -typedef Dart_DeleteWeakPersistentHandle_Type = ffi - .Pointer>; -typedef Dart_UpdateExternalSize_Type = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(Dart_WeakPersistentHandle, ffi.IntPtr)>>; -typedef Dart_NewFinalizableHandle_Type = ffi.Pointer< - ffi.NativeFunction< - Dart_FinalizableHandle Function(ffi.Handle, ffi.Pointer, - ffi.IntPtr, Dart_HandleFinalizer)>>; -typedef Dart_DeleteFinalizableHandle_Type = ffi.Pointer< - ffi.NativeFunction>; -typedef Dart_UpdateFinalizableExternalSize_Type = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(Dart_FinalizableHandle, ffi.Handle, ffi.IntPtr)>>; -typedef Dart_Post_Type = ffi - .Pointer>; -typedef Dart_NewSendPort_Type - = ffi.Pointer>; -typedef Dart_SendPortGetId_Type = ffi.Pointer< - ffi.NativeFunction< - ffi.Handle Function(ffi.Handle, ffi.Pointer)>>; -typedef Dart_EnterScope_Type - = ffi.Pointer>; -typedef Dart_ExitScope_Type - = ffi.Pointer>; +const int CSSM_SERVICE_TP = 16; -/// The type of message being sent to a Dart port. See CUPHTTPClientDelegate. -abstract class MessageType { - static const int ResponseMessage = 0; - static const int DataMessage = 1; - static const int CompletedMessage = 2; - static const int RedirectMessage = 3; - static const int FinishedDownloading = 4; -} +const int CSSM_SERVICE_AC = 32; -/// The configuration associated with a NSURLSessionTask. -/// See CUPHTTPClientDelegate. -class CUPHTTPTaskConfiguration extends NSObject { - CUPHTTPTaskConfiguration._( - ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int CSSM_SERVICE_KR = 64; - /// Returns a [CUPHTTPTaskConfiguration] that points to the same underlying object as [other]. - static CUPHTTPTaskConfiguration castFrom(T other) { - return CUPHTTPTaskConfiguration._(other._id, other._lib, - retain: true, release: true); - } +const int CSSM_NOTIFY_INSERT = 1; - /// Returns a [CUPHTTPTaskConfiguration] that wraps the given raw object pointer. - static CUPHTTPTaskConfiguration castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return CUPHTTPTaskConfiguration._(other, lib, - retain: retain, release: release); - } +const int CSSM_NOTIFY_REMOVE = 2; - /// Returns whether [obj] is an instance of [CUPHTTPTaskConfiguration]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_CUPHTTPTaskConfiguration1); - } +const int CSSM_NOTIFY_FAULT = 3; - NSObject initWithPort_(int sendPort) { - final _ret = - _lib._objc_msgSend_477(_id, _lib._sel_initWithPort_1, sendPort); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int CSSM_ATTACH_READ_ONLY = 1; - int get sendPort { - return _lib._objc_msgSend_329(_id, _lib._sel_sendPort1); - } +const int CSSM_USEE_LAST = 255; - static CUPHTTPTaskConfiguration new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPTaskConfiguration1, _lib._sel_new1); - return CUPHTTPTaskConfiguration._(_ret, _lib, retain: false, release: true); - } +const int CSSM_USEE_NONE = 0; - static CUPHTTPTaskConfiguration alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPTaskConfiguration1, _lib._sel_alloc1); - return CUPHTTPTaskConfiguration._(_ret, _lib, retain: false, release: true); - } -} +const int CSSM_USEE_DOMESTIC = 1; -/// A delegate for NSURLSession that forwards events for registered -/// NSURLSessionTasks and forwards them to a port for consumption in Dart. -/// -/// The messages sent to the port are contained in a List with one of 3 -/// possible formats: -/// -/// 1. When the delegate receives a HTTP redirect response: -/// [MessageType::RedirectMessage, ] -/// -/// 2. When the delegate receives a HTTP response: -/// [MessageType::ResponseMessage, ] -/// -/// 3. When the delegate receives some HTTP data: -/// [MessageType::DataMessage, ] -/// -/// 4. When the delegate is informed that the response is complete: -/// [MessageType::CompletedMessage, ] -class CUPHTTPClientDelegate extends NSObject { - CUPHTTPClientDelegate._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int CSSM_USEE_FINANCIAL = 2; - /// Returns a [CUPHTTPClientDelegate] that points to the same underlying object as [other]. - static CUPHTTPClientDelegate castFrom(T other) { - return CUPHTTPClientDelegate._(other._id, other._lib, - retain: true, release: true); - } +const int CSSM_USEE_KRLE = 3; - /// Returns a [CUPHTTPClientDelegate] that wraps the given raw object pointer. - static CUPHTTPClientDelegate castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return CUPHTTPClientDelegate._(other, lib, - retain: retain, release: release); - } +const int CSSM_USEE_KRENT = 4; - /// Returns whether [obj] is an instance of [CUPHTTPClientDelegate]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_CUPHTTPClientDelegate1); - } +const int CSSM_USEE_SSL = 5; - /// Instruct the delegate to forward events for the given task to the port - /// specified in the configuration. - void registerTask_withConfiguration_( - NSURLSessionTask? task, CUPHTTPTaskConfiguration? config) { - return _lib._objc_msgSend_478( - _id, - _lib._sel_registerTask_withConfiguration_1, - task?._id ?? ffi.nullptr, - config?._id ?? ffi.nullptr); - } +const int CSSM_USEE_AUTHENTICATION = 6; - static CUPHTTPClientDelegate new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPClientDelegate1, _lib._sel_new1); - return CUPHTTPClientDelegate._(_ret, _lib, retain: false, release: true); - } +const int CSSM_USEE_KEYEXCH = 7; - static CUPHTTPClientDelegate alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPClientDelegate1, _lib._sel_alloc1); - return CUPHTTPClientDelegate._(_ret, _lib, retain: false, release: true); - } -} +const int CSSM_USEE_MEDICAL = 8; -/// An object used to communicate redirect information to Dart code. -/// -/// The flow is: -/// 1. CUPHTTPClientDelegate receives a message from the URL Loading System. -/// 2. CUPHTTPClientDelegate creates a new CUPHTTPForwardedDelegate subclass. -/// 3. CUPHTTPClientDelegate sends the CUPHTTPForwardedDelegate to the -/// configured Dart_Port. -/// 4. CUPHTTPClientDelegate waits on CUPHTTPForwardedDelegate.lock -/// 5. When the Dart code is done process the message received on the port, -/// it calls [CUPHTTPForwardedDelegate finish*], which releases the lock. -/// 6. CUPHTTPClientDelegate continues running. -class CUPHTTPForwardedDelegate extends NSObject { - CUPHTTPForwardedDelegate._( - ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int CSSM_USEE_INSURANCE = 9; - /// Returns a [CUPHTTPForwardedDelegate] that points to the same underlying object as [other]. - static CUPHTTPForwardedDelegate castFrom(T other) { - return CUPHTTPForwardedDelegate._(other._id, other._lib, - retain: true, release: true); - } +const int CSSM_USEE_WEAK = 10; - /// Returns a [CUPHTTPForwardedDelegate] that wraps the given raw object pointer. - static CUPHTTPForwardedDelegate castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return CUPHTTPForwardedDelegate._(other, lib, - retain: retain, release: release); - } +const int CSSM_ADDR_NONE = 0; - /// Returns whether [obj] is an instance of [CUPHTTPForwardedDelegate]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_CUPHTTPForwardedDelegate1); - } +const int CSSM_ADDR_CUSTOM = 1; - NSObject initWithSession_task_( - NSURLSession? session, NSURLSessionTask? task) { - final _ret = _lib._objc_msgSend_479(_id, _lib._sel_initWithSession_task_1, - session?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int CSSM_ADDR_URL = 2; - /// Indicates that the task should continue executing using the given request. - void finish() { - return _lib._objc_msgSend_1(_id, _lib._sel_finish1); - } +const int CSSM_ADDR_SOCKADDR = 3; - NSURLSession? get session { - final _ret = _lib._objc_msgSend_387(_id, _lib._sel_session1); - return _ret.address == 0 - ? null - : NSURLSession._(_ret, _lib, retain: true, release: true); - } +const int CSSM_ADDR_NAME = 4; - NSURLSessionTask? get task { - final _ret = _lib._objc_msgSend_480(_id, _lib._sel_task1); - return _ret.address == 0 - ? null - : NSURLSessionTask._(_ret, _lib, retain: true, release: true); - } +const int CSSM_NET_PROTO_NONE = 0; - /// This property is meant to be used only by CUPHTTPClientDelegate. - NSLock? get lock { - final _ret = _lib._objc_msgSend_481(_id, _lib._sel_lock1); - return _ret.address == 0 - ? null - : NSLock._(_ret, _lib, retain: true, release: true); - } +const int CSSM_NET_PROTO_CUSTOM = 1; - static CUPHTTPForwardedDelegate new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPForwardedDelegate1, _lib._sel_new1); - return CUPHTTPForwardedDelegate._(_ret, _lib, retain: false, release: true); - } +const int CSSM_NET_PROTO_UNSPECIFIED = 2; - static CUPHTTPForwardedDelegate alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPForwardedDelegate1, _lib._sel_alloc1); - return CUPHTTPForwardedDelegate._(_ret, _lib, retain: false, release: true); - } -} +const int CSSM_NET_PROTO_LDAP = 3; -class NSLock extends _ObjCWrapper { - NSLock._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int CSSM_NET_PROTO_LDAPS = 4; - /// Returns a [NSLock] that points to the same underlying object as [other]. - static NSLock castFrom(T other) { - return NSLock._(other._id, other._lib, retain: true, release: true); - } +const int CSSM_NET_PROTO_LDAPNS = 5; - /// Returns a [NSLock] that wraps the given raw object pointer. - static NSLock castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSLock._(other, lib, retain: retain, release: release); - } +const int CSSM_NET_PROTO_X500DAP = 6; - /// Returns whether [obj] is an instance of [NSLock]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSLock1); - } -} +const int CSSM_NET_PROTO_FTP = 7; -class CUPHTTPForwardedRedirect extends CUPHTTPForwardedDelegate { - CUPHTTPForwardedRedirect._( - ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int CSSM_NET_PROTO_FTPS = 8; - /// Returns a [CUPHTTPForwardedRedirect] that points to the same underlying object as [other]. - static CUPHTTPForwardedRedirect castFrom(T other) { - return CUPHTTPForwardedRedirect._(other._id, other._lib, - retain: true, release: true); - } +const int CSSM_NET_PROTO_OCSP = 9; - /// Returns a [CUPHTTPForwardedRedirect] that wraps the given raw object pointer. - static CUPHTTPForwardedRedirect castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return CUPHTTPForwardedRedirect._(other, lib, - retain: retain, release: release); - } +const int CSSM_NET_PROTO_CMP = 10; - /// Returns whether [obj] is an instance of [CUPHTTPForwardedRedirect]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_CUPHTTPForwardedRedirect1); - } +const int CSSM_NET_PROTO_CMPS = 11; - NSObject initWithSession_task_response_request_( - NSURLSession? session, - NSURLSessionTask? task, - NSHTTPURLResponse? response, - NSURLRequest? request) { - final _ret = _lib._objc_msgSend_482( - _id, - _lib._sel_initWithSession_task_response_request_1, - session?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - response?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int CSSM_WORDID__UNK_ = -1; - /// Indicates that the task should continue executing using the given request. - /// If the request is NIL then the redirect is not followed and the task is - /// complete. - void finishWithRequest_(NSURLRequest? request) { - return _lib._objc_msgSend_483( - _id, _lib._sel_finishWithRequest_1, request?._id ?? ffi.nullptr); - } +const int CSSM_WORDID__NLU_ = 0; - NSHTTPURLResponse? get response { - final _ret = _lib._objc_msgSend_484(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSHTTPURLResponse._(_ret, _lib, retain: true, release: true); - } +const int CSSM_WORDID__STAR_ = 1; - NSURLRequest? get request { - final _ret = _lib._objc_msgSend_377(_id, _lib._sel_request1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } +const int CSSM_WORDID_A = 2; - /// This property is meant to be used only by CUPHTTPClientDelegate. - NSURLRequest? get redirectRequest { - final _ret = _lib._objc_msgSend_377(_id, _lib._sel_redirectRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } +const int CSSM_WORDID_ACL = 3; - static CUPHTTPForwardedRedirect new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPForwardedRedirect1, _lib._sel_new1); - return CUPHTTPForwardedRedirect._(_ret, _lib, retain: false, release: true); - } +const int CSSM_WORDID_ALPHA = 4; + +const int CSSM_WORDID_B = 5; + +const int CSSM_WORDID_BER = 6; + +const int CSSM_WORDID_BINARY = 7; + +const int CSSM_WORDID_BIOMETRIC = 8; + +const int CSSM_WORDID_C = 9; + +const int CSSM_WORDID_CANCELED = 10; + +const int CSSM_WORDID_CERT = 11; + +const int CSSM_WORDID_COMMENT = 12; - static CUPHTTPForwardedRedirect alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPForwardedRedirect1, _lib._sel_alloc1); - return CUPHTTPForwardedRedirect._(_ret, _lib, retain: false, release: true); - } -} +const int CSSM_WORDID_CRL = 13; -class CUPHTTPForwardedResponse extends CUPHTTPForwardedDelegate { - CUPHTTPForwardedResponse._( - ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int CSSM_WORDID_CUSTOM = 14; - /// Returns a [CUPHTTPForwardedResponse] that points to the same underlying object as [other]. - static CUPHTTPForwardedResponse castFrom(T other) { - return CUPHTTPForwardedResponse._(other._id, other._lib, - retain: true, release: true); - } +const int CSSM_WORDID_D = 15; - /// Returns a [CUPHTTPForwardedResponse] that wraps the given raw object pointer. - static CUPHTTPForwardedResponse castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return CUPHTTPForwardedResponse._(other, lib, - retain: retain, release: release); - } +const int CSSM_WORDID_DATE = 16; - /// Returns whether [obj] is an instance of [CUPHTTPForwardedResponse]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_CUPHTTPForwardedResponse1); - } +const int CSSM_WORDID_DB_DELETE = 17; - NSObject initWithSession_task_response_( - NSURLSession? session, NSURLSessionTask? task, NSURLResponse? response) { - final _ret = _lib._objc_msgSend_485( - _id, - _lib._sel_initWithSession_task_response_1, - session?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - response?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int CSSM_WORDID_DB_EXEC_STORED_QUERY = 18; - void finishWithDisposition_(int disposition) { - return _lib._objc_msgSend_486( - _id, _lib._sel_finishWithDisposition_1, disposition); - } +const int CSSM_WORDID_DB_INSERT = 19; - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_379(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); - } +const int CSSM_WORDID_DB_MODIFY = 20; - /// This property is meant to be used only by CUPHTTPClientDelegate. - int get disposition { - return _lib._objc_msgSend_487(_id, _lib._sel_disposition1); - } +const int CSSM_WORDID_DB_READ = 21; - static CUPHTTPForwardedResponse new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPForwardedResponse1, _lib._sel_new1); - return CUPHTTPForwardedResponse._(_ret, _lib, retain: false, release: true); - } +const int CSSM_WORDID_DBS_CREATE = 22; - static CUPHTTPForwardedResponse alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPForwardedResponse1, _lib._sel_alloc1); - return CUPHTTPForwardedResponse._(_ret, _lib, retain: false, release: true); - } -} +const int CSSM_WORDID_DBS_DELETE = 23; -class CUPHTTPForwardedData extends CUPHTTPForwardedDelegate { - CUPHTTPForwardedData._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int CSSM_WORDID_DECRYPT = 24; - /// Returns a [CUPHTTPForwardedData] that points to the same underlying object as [other]. - static CUPHTTPForwardedData castFrom(T other) { - return CUPHTTPForwardedData._(other._id, other._lib, - retain: true, release: true); - } +const int CSSM_WORDID_DELETE = 25; - /// Returns a [CUPHTTPForwardedData] that wraps the given raw object pointer. - static CUPHTTPForwardedData castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return CUPHTTPForwardedData._(other, lib, retain: retain, release: release); - } +const int CSSM_WORDID_DELTA_CRL = 26; - /// Returns whether [obj] is an instance of [CUPHTTPForwardedData]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_CUPHTTPForwardedData1); - } +const int CSSM_WORDID_DER = 27; - NSObject initWithSession_task_data_( - NSURLSession? session, NSURLSessionTask? task, NSData? data) { - final _ret = _lib._objc_msgSend_488( - _id, - _lib._sel_initWithSession_task_data_1, - session?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - data?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int CSSM_WORDID_DERIVE = 28; - NSData? get data { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } +const int CSSM_WORDID_DISPLAY = 29; - static CUPHTTPForwardedData new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_CUPHTTPForwardedData1, _lib._sel_new1); - return CUPHTTPForwardedData._(_ret, _lib, retain: false, release: true); - } +const int CSSM_WORDID_DO = 30; - static CUPHTTPForwardedData alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPForwardedData1, _lib._sel_alloc1); - return CUPHTTPForwardedData._(_ret, _lib, retain: false, release: true); - } -} +const int CSSM_WORDID_DSA = 31; -class CUPHTTPForwardedComplete extends CUPHTTPForwardedDelegate { - CUPHTTPForwardedComplete._( - ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int CSSM_WORDID_DSA_SHA1 = 32; - /// Returns a [CUPHTTPForwardedComplete] that points to the same underlying object as [other]. - static CUPHTTPForwardedComplete castFrom(T other) { - return CUPHTTPForwardedComplete._(other._id, other._lib, - retain: true, release: true); - } +const int CSSM_WORDID_E = 33; - /// Returns a [CUPHTTPForwardedComplete] that wraps the given raw object pointer. - static CUPHTTPForwardedComplete castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return CUPHTTPForwardedComplete._(other, lib, - retain: retain, release: release); - } +const int CSSM_WORDID_ELGAMAL = 34; - /// Returns whether [obj] is an instance of [CUPHTTPForwardedComplete]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_CUPHTTPForwardedComplete1); - } +const int CSSM_WORDID_ENCRYPT = 35; - NSObject initWithSession_task_error_( - NSURLSession? session, NSURLSessionTask? task, NSError? error) { - final _ret = _lib._objc_msgSend_489( - _id, - _lib._sel_initWithSession_task_error_1, - session?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - error?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int CSSM_WORDID_ENTRY = 36; - NSError? get error { - final _ret = _lib._objc_msgSend_383(_id, _lib._sel_error1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); - } +const int CSSM_WORDID_EXPORT_CLEAR = 37; - static CUPHTTPForwardedComplete new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPForwardedComplete1, _lib._sel_new1); - return CUPHTTPForwardedComplete._(_ret, _lib, retain: false, release: true); - } +const int CSSM_WORDID_EXPORT_WRAPPED = 38; - static CUPHTTPForwardedComplete alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPForwardedComplete1, _lib._sel_alloc1); - return CUPHTTPForwardedComplete._(_ret, _lib, retain: false, release: true); - } -} +const int CSSM_WORDID_G = 39; -class CUPHTTPForwardedFinishedDownloading extends CUPHTTPForwardedDelegate { - CUPHTTPForwardedFinishedDownloading._( - ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +const int CSSM_WORDID_GE = 40; - /// Returns a [CUPHTTPForwardedFinishedDownloading] that points to the same underlying object as [other]. - static CUPHTTPForwardedFinishedDownloading castFrom( - T other) { - return CUPHTTPForwardedFinishedDownloading._(other._id, other._lib, - retain: true, release: true); - } +const int CSSM_WORDID_GENKEY = 41; - /// Returns a [CUPHTTPForwardedFinishedDownloading] that wraps the given raw object pointer. - static CUPHTTPForwardedFinishedDownloading castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return CUPHTTPForwardedFinishedDownloading._(other, lib, - retain: retain, release: release); - } +const int CSSM_WORDID_HASH = 42; - /// Returns whether [obj] is an instance of [CUPHTTPForwardedFinishedDownloading]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_CUPHTTPForwardedFinishedDownloading1); - } +const int CSSM_WORDID_HASHED_PASSWORD = 43; - NSObject initWithSession_downloadTask_url_(NSURLSession? session, - NSURLSessionDownloadTask? downloadTask, NSURL? location) { - final _ret = _lib._objc_msgSend_490( - _id, - _lib._sel_initWithSession_downloadTask_url_1, - session?._id ?? ffi.nullptr, - downloadTask?._id ?? ffi.nullptr, - location?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +const int CSSM_WORDID_HASHED_SUBJECT = 44; - NSURL? get location { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_location1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } +const int CSSM_WORDID_HAVAL = 45; - static CUPHTTPForwardedFinishedDownloading new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPForwardedFinishedDownloading1, _lib._sel_new1); - return CUPHTTPForwardedFinishedDownloading._(_ret, _lib, - retain: false, release: true); - } +const int CSSM_WORDID_IBCHASH = 46; - static CUPHTTPForwardedFinishedDownloading alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_CUPHTTPForwardedFinishedDownloading1, _lib._sel_alloc1); - return CUPHTTPForwardedFinishedDownloading._(_ret, _lib, - retain: false, release: true); - } -} +const int CSSM_WORDID_IMPORT_CLEAR = 47; -const int noErr = 0; +const int CSSM_WORDID_IMPORT_WRAPPED = 48; -const int kNilOptions = 0; +const int CSSM_WORDID_INTEL = 49; -const int kVariableLengthArray = 1; +const int CSSM_WORDID_ISSUER = 50; -const int kUnknownType = 1061109567; +const int CSSM_WORDID_ISSUER_INFO = 51; -const int normal = 0; +const int CSSM_WORDID_K_OF_N = 52; -const int bold = 1; +const int CSSM_WORDID_KEA = 53; -const int italic = 2; +const int CSSM_WORDID_KEYHOLDER = 54; -const int underline = 4; +const int CSSM_WORDID_L = 55; -const int outline = 8; +const int CSSM_WORDID_LE = 56; -const int shadow = 16; +const int CSSM_WORDID_LOGIN = 57; -const int condense = 32; +const int CSSM_WORDID_LOGIN_NAME = 58; -const int extend = 64; +const int CSSM_WORDID_MAC = 59; -const int developStage = 32; +const int CSSM_WORDID_MD2 = 60; -const int alphaStage = 64; +const int CSSM_WORDID_MD2WITHRSA = 61; -const int betaStage = 96; +const int CSSM_WORDID_MD4 = 62; -const int finalStage = 128; +const int CSSM_WORDID_MD5 = 63; -const int NSScannedOption = 1; +const int CSSM_WORDID_MD5WITHRSA = 64; -const int NSCollectorDisabledOption = 2; +const int CSSM_WORDID_N = 65; -const int errSecSuccess = 0; +const int CSSM_WORDID_NAME = 66; -const int errSecUnimplemented = -4; +const int CSSM_WORDID_NDR = 67; -const int errSecDiskFull = -34; +const int CSSM_WORDID_NHASH = 68; -const int errSecDskFull = -34; +const int CSSM_WORDID_NOT_AFTER = 69; -const int errSecIO = -36; +const int CSSM_WORDID_NOT_BEFORE = 70; -const int errSecOpWr = -49; +const int CSSM_WORDID_NULL = 71; -const int errSecParam = -50; +const int CSSM_WORDID_NUMERIC = 72; -const int errSecWrPerm = -61; +const int CSSM_WORDID_OBJECT_HASH = 73; -const int errSecAllocate = -108; +const int CSSM_WORDID_ONE_TIME = 74; -const int errSecUserCanceled = -128; +const int CSSM_WORDID_ONLINE = 75; -const int errSecBadReq = -909; +const int CSSM_WORDID_OWNER = 76; -const int errSecInternalComponent = -2070; +const int CSSM_WORDID_P = 77; -const int errSecCoreFoundationUnknown = -4960; +const int CSSM_WORDID_PAM_NAME = 78; -const int errSecMissingEntitlement = -34018; +const int CSSM_WORDID_PASSWORD = 79; -const int errSecRestrictedAPI = -34020; +const int CSSM_WORDID_PGP = 80; -const int errSecNotAvailable = -25291; +const int CSSM_WORDID_PREFIX = 81; -const int errSecReadOnly = -25292; +const int CSSM_WORDID_PRIVATE_KEY = 82; -const int errSecAuthFailed = -25293; +const int CSSM_WORDID_PROMPTED_BIOMETRIC = 83; -const int errSecNoSuchKeychain = -25294; +const int CSSM_WORDID_PROMPTED_PASSWORD = 84; -const int errSecInvalidKeychain = -25295; +const int CSSM_WORDID_PROPAGATE = 85; -const int errSecDuplicateKeychain = -25296; +const int CSSM_WORDID_PROTECTED_BIOMETRIC = 86; -const int errSecDuplicateCallback = -25297; +const int CSSM_WORDID_PROTECTED_PASSWORD = 87; -const int errSecInvalidCallback = -25298; +const int CSSM_WORDID_PROTECTED_PIN = 88; -const int errSecDuplicateItem = -25299; +const int CSSM_WORDID_PUBLIC_KEY = 89; -const int errSecItemNotFound = -25300; +const int CSSM_WORDID_PUBLIC_KEY_FROM_CERT = 90; -const int errSecBufferTooSmall = -25301; +const int CSSM_WORDID_Q = 91; -const int errSecDataTooLarge = -25302; +const int CSSM_WORDID_RANGE = 92; -const int errSecNoSuchAttr = -25303; +const int CSSM_WORDID_REVAL = 93; -const int errSecInvalidItemRef = -25304; +const int CSSM_WORDID_RIPEMAC = 94; -const int errSecInvalidSearchRef = -25305; +const int CSSM_WORDID_RIPEMD = 95; -const int errSecNoSuchClass = -25306; +const int CSSM_WORDID_RIPEMD160 = 96; -const int errSecNoDefaultKeychain = -25307; +const int CSSM_WORDID_RSA = 97; -const int errSecInteractionNotAllowed = -25308; +const int CSSM_WORDID_RSA_ISO9796 = 98; -const int errSecReadOnlyAttr = -25309; +const int CSSM_WORDID_RSA_PKCS = 99; -const int errSecWrongSecVersion = -25310; +const int CSSM_WORDID_RSA_PKCS_MD5 = 100; -const int errSecKeySizeNotAllowed = -25311; +const int CSSM_WORDID_RSA_PKCS_SHA1 = 101; -const int errSecNoStorageModule = -25312; +const int CSSM_WORDID_RSA_PKCS1 = 102; -const int errSecNoCertificateModule = -25313; +const int CSSM_WORDID_RSA_PKCS1_MD5 = 103; -const int errSecNoPolicyModule = -25314; +const int CSSM_WORDID_RSA_PKCS1_SHA1 = 104; -const int errSecInteractionRequired = -25315; +const int CSSM_WORDID_RSA_PKCS1_SIG = 105; -const int errSecDataNotAvailable = -25316; +const int CSSM_WORDID_RSA_RAW = 106; -const int errSecDataNotModifiable = -25317; +const int CSSM_WORDID_SDSIV1 = 107; -const int errSecCreateChainFailed = -25318; +const int CSSM_WORDID_SEQUENCE = 108; -const int errSecInvalidPrefsDomain = -25319; +const int CSSM_WORDID_SET = 109; -const int errSecInDarkWake = -25320; +const int CSSM_WORDID_SEXPR = 110; -const int errSecACLNotSimple = -25240; +const int CSSM_WORDID_SHA1 = 111; -const int errSecPolicyNotFound = -25241; +const int CSSM_WORDID_SHA1WITHDSA = 112; -const int errSecInvalidTrustSetting = -25242; +const int CSSM_WORDID_SHA1WITHECDSA = 113; -const int errSecNoAccessForItem = -25243; +const int CSSM_WORDID_SHA1WITHRSA = 114; -const int errSecInvalidOwnerEdit = -25244; +const int CSSM_WORDID_SIGN = 115; -const int errSecTrustNotAvailable = -25245; +const int CSSM_WORDID_SIGNATURE = 116; -const int errSecUnsupportedFormat = -25256; +const int CSSM_WORDID_SIGNED_NONCE = 117; -const int errSecUnknownFormat = -25257; +const int CSSM_WORDID_SIGNED_SECRET = 118; -const int errSecKeyIsSensitive = -25258; +const int CSSM_WORDID_SPKI = 119; -const int errSecMultiplePrivKeys = -25259; +const int CSSM_WORDID_SUBJECT = 120; -const int errSecPassphraseRequired = -25260; +const int CSSM_WORDID_SUBJECT_INFO = 121; -const int errSecInvalidPasswordRef = -25261; +const int CSSM_WORDID_TAG = 122; -const int errSecInvalidTrustSettings = -25262; +const int CSSM_WORDID_THRESHOLD = 123; -const int errSecNoTrustSettings = -25263; +const int CSSM_WORDID_TIME = 124; -const int errSecPkcs12VerifyFailure = -25264; +const int CSSM_WORDID_URI = 125; -const int errSecNotSigner = -26267; +const int CSSM_WORDID_VERSION = 126; -const int errSecDecode = -26275; +const int CSSM_WORDID_X509_ATTRIBUTE = 127; -const int errSecServiceNotAvailable = -67585; +const int CSSM_WORDID_X509V1 = 128; -const int errSecInsufficientClientID = -67586; +const int CSSM_WORDID_X509V2 = 129; -const int errSecDeviceReset = -67587; +const int CSSM_WORDID_X509V3 = 130; -const int errSecDeviceFailed = -67588; +const int CSSM_WORDID_X9_ATTRIBUTE = 131; -const int errSecAppleAddAppACLSubject = -67589; +const int CSSM_WORDID_VENDOR_START = 65536; -const int errSecApplePublicKeyIncomplete = -67590; +const int CSSM_WORDID_VENDOR_END = 2147418112; -const int errSecAppleSignatureMismatch = -67591; +const int CSSM_LIST_ELEMENT_DATUM = 0; -const int errSecAppleInvalidKeyStartDate = -67592; +const int CSSM_LIST_ELEMENT_SUBLIST = 1; -const int errSecAppleInvalidKeyEndDate = -67593; +const int CSSM_LIST_ELEMENT_WORDID = 2; -const int errSecConversionError = -67594; +const int CSSM_LIST_TYPE_UNKNOWN = 0; -const int errSecAppleSSLv2Rollback = -67595; +const int CSSM_LIST_TYPE_CUSTOM = 1; -const int errSecQuotaExceeded = -67596; +const int CSSM_LIST_TYPE_SEXPR = 2; -const int errSecFileTooBig = -67597; +const int CSSM_SAMPLE_TYPE_PASSWORD = 79; -const int errSecInvalidDatabaseBlob = -67598; +const int CSSM_SAMPLE_TYPE_HASHED_PASSWORD = 43; -const int errSecInvalidKeyBlob = -67599; +const int CSSM_SAMPLE_TYPE_PROTECTED_PASSWORD = 87; -const int errSecIncompatibleDatabaseBlob = -67600; +const int CSSM_SAMPLE_TYPE_PROMPTED_PASSWORD = 84; -const int errSecIncompatibleKeyBlob = -67601; +const int CSSM_SAMPLE_TYPE_SIGNED_NONCE = 117; -const int errSecHostNameMismatch = -67602; +const int CSSM_SAMPLE_TYPE_SIGNED_SECRET = 118; -const int errSecUnknownCriticalExtensionFlag = -67603; +const int CSSM_SAMPLE_TYPE_BIOMETRIC = 8; -const int errSecNoBasicConstraints = -67604; +const int CSSM_SAMPLE_TYPE_PROTECTED_BIOMETRIC = 86; -const int errSecNoBasicConstraintsCA = -67605; +const int CSSM_SAMPLE_TYPE_PROMPTED_BIOMETRIC = 83; -const int errSecInvalidAuthorityKeyID = -67606; +const int CSSM_SAMPLE_TYPE_THRESHOLD = 123; -const int errSecInvalidSubjectKeyID = -67607; +const int CSSM_CERT_UNKNOWN = 0; -const int errSecInvalidKeyUsageForPolicy = -67608; +const int CSSM_CERT_X_509v1 = 1; -const int errSecInvalidExtendedKeyUsage = -67609; +const int CSSM_CERT_X_509v2 = 2; -const int errSecInvalidIDLinkage = -67610; +const int CSSM_CERT_X_509v3 = 3; -const int errSecPathLengthConstraintExceeded = -67611; +const int CSSM_CERT_PGP = 4; -const int errSecInvalidRoot = -67612; +const int CSSM_CERT_SPKI = 5; -const int errSecCRLExpired = -67613; +const int CSSM_CERT_SDSIv1 = 6; -const int errSecCRLNotValidYet = -67614; +const int CSSM_CERT_Intel = 8; -const int errSecCRLNotFound = -67615; +const int CSSM_CERT_X_509_ATTRIBUTE = 9; -const int errSecCRLServerDown = -67616; +const int CSSM_CERT_X9_ATTRIBUTE = 10; -const int errSecCRLBadURI = -67617; +const int CSSM_CERT_TUPLE = 11; -const int errSecUnknownCertExtension = -67618; +const int CSSM_CERT_ACL_ENTRY = 12; -const int errSecUnknownCRLExtension = -67619; +const int CSSM_CERT_MULTIPLE = 32766; -const int errSecCRLNotTrusted = -67620; +const int CSSM_CERT_LAST = 32767; -const int errSecCRLPolicyFailed = -67621; +const int CSSM_CL_CUSTOM_CERT_TYPE = 32768; -const int errSecIDPFailure = -67622; +const int CSSM_CERT_ENCODING_UNKNOWN = 0; -const int errSecSMIMEEmailAddressesNotFound = -67623; +const int CSSM_CERT_ENCODING_CUSTOM = 1; -const int errSecSMIMEBadExtendedKeyUsage = -67624; +const int CSSM_CERT_ENCODING_BER = 2; -const int errSecSMIMEBadKeyUsage = -67625; +const int CSSM_CERT_ENCODING_DER = 3; -const int errSecSMIMEKeyUsageNotCritical = -67626; +const int CSSM_CERT_ENCODING_NDR = 4; -const int errSecSMIMENoEmailAddress = -67627; +const int CSSM_CERT_ENCODING_SEXPR = 5; -const int errSecSMIMESubjAltNameNotCritical = -67628; +const int CSSM_CERT_ENCODING_PGP = 6; -const int errSecSSLBadExtendedKeyUsage = -67629; +const int CSSM_CERT_ENCODING_MULTIPLE = 32766; -const int errSecOCSPBadResponse = -67630; +const int CSSM_CERT_ENCODING_LAST = 32767; -const int errSecOCSPBadRequest = -67631; +const int CSSM_CL_CUSTOM_CERT_ENCODING = 32768; -const int errSecOCSPUnavailable = -67632; +const int CSSM_CERT_PARSE_FORMAT_NONE = 0; -const int errSecOCSPStatusUnrecognized = -67633; +const int CSSM_CERT_PARSE_FORMAT_CUSTOM = 1; -const int errSecEndOfData = -67634; +const int CSSM_CERT_PARSE_FORMAT_SEXPR = 2; -const int errSecIncompleteCertRevocationCheck = -67635; +const int CSSM_CERT_PARSE_FORMAT_COMPLEX = 3; -const int errSecNetworkFailure = -67636; +const int CSSM_CERT_PARSE_FORMAT_OID_NAMED = 4; -const int errSecOCSPNotTrustedToAnchor = -67637; +const int CSSM_CERT_PARSE_FORMAT_TUPLE = 5; -const int errSecRecordModified = -67638; +const int CSSM_CERT_PARSE_FORMAT_MULTIPLE = 32766; -const int errSecOCSPSignatureError = -67639; +const int CSSM_CERT_PARSE_FORMAT_LAST = 32767; -const int errSecOCSPNoSigner = -67640; +const int CSSM_CL_CUSTOM_CERT_PARSE_FORMAT = 32768; -const int errSecOCSPResponderMalformedReq = -67641; +const int CSSM_CERTGROUP_DATA = 0; -const int errSecOCSPResponderInternalError = -67642; +const int CSSM_CERTGROUP_ENCODED_CERT = 1; -const int errSecOCSPResponderTryLater = -67643; +const int CSSM_CERTGROUP_PARSED_CERT = 2; -const int errSecOCSPResponderSignatureRequired = -67644; +const int CSSM_CERTGROUP_CERT_PAIR = 3; -const int errSecOCSPResponderUnauthorized = -67645; +const int CSSM_ACL_SUBJECT_TYPE_ANY = 1; -const int errSecOCSPResponseNonceMismatch = -67646; +const int CSSM_ACL_SUBJECT_TYPE_THRESHOLD = 123; -const int errSecCodeSigningBadCertChainLength = -67647; +const int CSSM_ACL_SUBJECT_TYPE_PASSWORD = 79; -const int errSecCodeSigningNoBasicConstraints = -67648; +const int CSSM_ACL_SUBJECT_TYPE_PROTECTED_PASSWORD = 87; -const int errSecCodeSigningBadPathLengthConstraint = -67649; +const int CSSM_ACL_SUBJECT_TYPE_PROMPTED_PASSWORD = 84; -const int errSecCodeSigningNoExtendedKeyUsage = -67650; +const int CSSM_ACL_SUBJECT_TYPE_PUBLIC_KEY = 89; -const int errSecCodeSigningDevelopment = -67651; +const int CSSM_ACL_SUBJECT_TYPE_HASHED_SUBJECT = 44; -const int errSecResourceSignBadCertChainLength = -67652; +const int CSSM_ACL_SUBJECT_TYPE_BIOMETRIC = 8; -const int errSecResourceSignBadExtKeyUsage = -67653; +const int CSSM_ACL_SUBJECT_TYPE_PROTECTED_BIOMETRIC = 86; -const int errSecTrustSettingDeny = -67654; +const int CSSM_ACL_SUBJECT_TYPE_PROMPTED_BIOMETRIC = 83; -const int errSecInvalidSubjectName = -67655; +const int CSSM_ACL_SUBJECT_TYPE_LOGIN_NAME = 58; -const int errSecUnknownQualifiedCertStatement = -67656; +const int CSSM_ACL_SUBJECT_TYPE_EXT_PAM_NAME = 78; -const int errSecMobileMeRequestQueued = -67657; +const int CSSM_ACL_AUTHORIZATION_TAG_VENDOR_DEFINED_START = 65536; -const int errSecMobileMeRequestRedirected = -67658; +const int CSSM_ACL_AUTHORIZATION_ANY = 1; -const int errSecMobileMeServerError = -67659; +const int CSSM_ACL_AUTHORIZATION_LOGIN = 57; -const int errSecMobileMeServerNotAvailable = -67660; +const int CSSM_ACL_AUTHORIZATION_GENKEY = 41; -const int errSecMobileMeServerAlreadyExists = -67661; +const int CSSM_ACL_AUTHORIZATION_DELETE = 25; -const int errSecMobileMeServerServiceErr = -67662; +const int CSSM_ACL_AUTHORIZATION_EXPORT_WRAPPED = 38; -const int errSecMobileMeRequestAlreadyPending = -67663; +const int CSSM_ACL_AUTHORIZATION_EXPORT_CLEAR = 37; -const int errSecMobileMeNoRequestPending = -67664; +const int CSSM_ACL_AUTHORIZATION_IMPORT_WRAPPED = 48; -const int errSecMobileMeCSRVerifyFailure = -67665; +const int CSSM_ACL_AUTHORIZATION_IMPORT_CLEAR = 47; -const int errSecMobileMeFailedConsistencyCheck = -67666; +const int CSSM_ACL_AUTHORIZATION_SIGN = 115; -const int errSecNotInitialized = -67667; +const int CSSM_ACL_AUTHORIZATION_ENCRYPT = 35; -const int errSecInvalidHandleUsage = -67668; +const int CSSM_ACL_AUTHORIZATION_DECRYPT = 24; -const int errSecPVCReferentNotFound = -67669; +const int CSSM_ACL_AUTHORIZATION_MAC = 59; -const int errSecFunctionIntegrityFail = -67670; +const int CSSM_ACL_AUTHORIZATION_DERIVE = 28; -const int errSecInternalError = -67671; +const int CSSM_ACL_AUTHORIZATION_DBS_CREATE = 22; -const int errSecMemoryError = -67672; +const int CSSM_ACL_AUTHORIZATION_DBS_DELETE = 23; -const int errSecInvalidData = -67673; +const int CSSM_ACL_AUTHORIZATION_DB_READ = 21; -const int errSecMDSError = -67674; +const int CSSM_ACL_AUTHORIZATION_DB_INSERT = 19; -const int errSecInvalidPointer = -67675; +const int CSSM_ACL_AUTHORIZATION_DB_MODIFY = 20; -const int errSecSelfCheckFailed = -67676; +const int CSSM_ACL_AUTHORIZATION_DB_DELETE = 17; -const int errSecFunctionFailed = -67677; +const int CSSM_ACL_EDIT_MODE_ADD = 1; -const int errSecModuleManifestVerifyFailed = -67678; +const int CSSM_ACL_EDIT_MODE_DELETE = 2; -const int errSecInvalidGUID = -67679; +const int CSSM_ACL_EDIT_MODE_REPLACE = 3; -const int errSecInvalidHandle = -67680; +const int CSSM_KEYHEADER_VERSION = 2; -const int errSecInvalidDBList = -67681; +const int CSSM_KEYBLOB_RAW = 0; -const int errSecInvalidPassthroughID = -67682; +const int CSSM_KEYBLOB_REFERENCE = 2; -const int errSecInvalidNetworkAddress = -67683; +const int CSSM_KEYBLOB_WRAPPED = 3; -const int errSecCRLAlreadySigned = -67684; +const int CSSM_KEYBLOB_OTHER = -1; -const int errSecInvalidNumberOfFields = -67685; +const int CSSM_KEYBLOB_RAW_FORMAT_NONE = 0; -const int errSecVerificationFailure = -67686; +const int CSSM_KEYBLOB_RAW_FORMAT_PKCS1 = 1; -const int errSecUnknownTag = -67687; +const int CSSM_KEYBLOB_RAW_FORMAT_PKCS3 = 2; -const int errSecInvalidSignature = -67688; +const int CSSM_KEYBLOB_RAW_FORMAT_MSCAPI = 3; -const int errSecInvalidName = -67689; +const int CSSM_KEYBLOB_RAW_FORMAT_PGP = 4; -const int errSecInvalidCertificateRef = -67690; +const int CSSM_KEYBLOB_RAW_FORMAT_FIPS186 = 5; -const int errSecInvalidCertificateGroup = -67691; +const int CSSM_KEYBLOB_RAW_FORMAT_BSAFE = 6; -const int errSecTagNotFound = -67692; +const int CSSM_KEYBLOB_RAW_FORMAT_CCA = 9; -const int errSecInvalidQuery = -67693; +const int CSSM_KEYBLOB_RAW_FORMAT_PKCS8 = 10; -const int errSecInvalidValue = -67694; +const int CSSM_KEYBLOB_RAW_FORMAT_SPKI = 11; -const int errSecCallbackFailed = -67695; +const int CSSM_KEYBLOB_RAW_FORMAT_OCTET_STRING = 12; -const int errSecACLDeleteFailed = -67696; +const int CSSM_KEYBLOB_RAW_FORMAT_OTHER = -1; -const int errSecACLReplaceFailed = -67697; +const int CSSM_KEYBLOB_WRAPPED_FORMAT_NONE = 0; -const int errSecACLAddFailed = -67698; +const int CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS8 = 1; -const int errSecACLChangeFailed = -67699; +const int CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS7 = 2; -const int errSecInvalidAccessCredentials = -67700; +const int CSSM_KEYBLOB_WRAPPED_FORMAT_MSCAPI = 3; -const int errSecInvalidRecord = -67701; +const int CSSM_KEYBLOB_WRAPPED_FORMAT_OTHER = -1; -const int errSecInvalidACL = -67702; +const int CSSM_KEYBLOB_REF_FORMAT_INTEGER = 0; -const int errSecInvalidSampleValue = -67703; +const int CSSM_KEYBLOB_REF_FORMAT_STRING = 1; -const int errSecIncompatibleVersion = -67704; +const int CSSM_KEYBLOB_REF_FORMAT_SPKI = 2; -const int errSecPrivilegeNotGranted = -67705; +const int CSSM_KEYBLOB_REF_FORMAT_OTHER = -1; -const int errSecInvalidScope = -67706; +const int CSSM_KEYCLASS_PUBLIC_KEY = 0; -const int errSecPVCAlreadyConfigured = -67707; +const int CSSM_KEYCLASS_PRIVATE_KEY = 1; -const int errSecInvalidPVC = -67708; +const int CSSM_KEYCLASS_SESSION_KEY = 2; -const int errSecEMMLoadFailed = -67709; +const int CSSM_KEYCLASS_SECRET_PART = 3; -const int errSecEMMUnloadFailed = -67710; +const int CSSM_KEYCLASS_OTHER = -1; -const int errSecAddinLoadFailed = -67711; +const int CSSM_KEYATTR_RETURN_DEFAULT = 0; -const int errSecInvalidKeyRef = -67712; +const int CSSM_KEYATTR_RETURN_DATA = 268435456; -const int errSecInvalidKeyHierarchy = -67713; +const int CSSM_KEYATTR_RETURN_REF = 536870912; -const int errSecAddinUnloadFailed = -67714; +const int CSSM_KEYATTR_RETURN_NONE = 1073741824; -const int errSecLibraryReferenceNotFound = -67715; +const int CSSM_KEYATTR_PERMANENT = 1; -const int errSecInvalidAddinFunctionTable = -67716; +const int CSSM_KEYATTR_PRIVATE = 2; -const int errSecInvalidServiceMask = -67717; +const int CSSM_KEYATTR_MODIFIABLE = 4; -const int errSecModuleNotLoaded = -67718; +const int CSSM_KEYATTR_SENSITIVE = 8; -const int errSecInvalidSubServiceID = -67719; +const int CSSM_KEYATTR_EXTRACTABLE = 32; -const int errSecAttributeNotInContext = -67720; +const int CSSM_KEYATTR_ALWAYS_SENSITIVE = 16; -const int errSecModuleManagerInitializeFailed = -67721; +const int CSSM_KEYATTR_NEVER_EXTRACTABLE = 64; -const int errSecModuleManagerNotFound = -67722; +const int CSSM_KEYUSE_ANY = -2147483648; -const int errSecEventNotificationCallbackNotFound = -67723; +const int CSSM_KEYUSE_ENCRYPT = 1; -const int errSecInputLengthError = -67724; +const int CSSM_KEYUSE_DECRYPT = 2; -const int errSecOutputLengthError = -67725; +const int CSSM_KEYUSE_SIGN = 4; -const int errSecPrivilegeNotSupported = -67726; +const int CSSM_KEYUSE_VERIFY = 8; -const int errSecDeviceError = -67727; +const int CSSM_KEYUSE_SIGN_RECOVER = 16; -const int errSecAttachHandleBusy = -67728; +const int CSSM_KEYUSE_VERIFY_RECOVER = 32; -const int errSecNotLoggedIn = -67729; +const int CSSM_KEYUSE_WRAP = 64; -const int errSecAlgorithmMismatch = -67730; +const int CSSM_KEYUSE_UNWRAP = 128; -const int errSecKeyUsageIncorrect = -67731; +const int CSSM_KEYUSE_DERIVE = 256; -const int errSecKeyBlobTypeIncorrect = -67732; +const int CSSM_ALGID_NONE = 0; -const int errSecKeyHeaderInconsistent = -67733; +const int CSSM_ALGID_CUSTOM = 1; -const int errSecUnsupportedKeyFormat = -67734; +const int CSSM_ALGID_DH = 2; -const int errSecUnsupportedKeySize = -67735; +const int CSSM_ALGID_PH = 3; -const int errSecInvalidKeyUsageMask = -67736; +const int CSSM_ALGID_KEA = 4; -const int errSecUnsupportedKeyUsageMask = -67737; +const int CSSM_ALGID_MD2 = 5; -const int errSecInvalidKeyAttributeMask = -67738; +const int CSSM_ALGID_MD4 = 6; -const int errSecUnsupportedKeyAttributeMask = -67739; +const int CSSM_ALGID_MD5 = 7; -const int errSecInvalidKeyLabel = -67740; +const int CSSM_ALGID_SHA1 = 8; -const int errSecUnsupportedKeyLabel = -67741; +const int CSSM_ALGID_NHASH = 9; -const int errSecInvalidKeyFormat = -67742; +const int CSSM_ALGID_HAVAL = 10; -const int errSecUnsupportedVectorOfBuffers = -67743; +const int CSSM_ALGID_RIPEMD = 11; -const int errSecInvalidInputVector = -67744; +const int CSSM_ALGID_IBCHASH = 12; -const int errSecInvalidOutputVector = -67745; +const int CSSM_ALGID_RIPEMAC = 13; -const int errSecInvalidContext = -67746; +const int CSSM_ALGID_DES = 14; -const int errSecInvalidAlgorithm = -67747; +const int CSSM_ALGID_DESX = 15; -const int errSecInvalidAttributeKey = -67748; +const int CSSM_ALGID_RDES = 16; -const int errSecMissingAttributeKey = -67749; +const int CSSM_ALGID_3DES_3KEY_EDE = 17; -const int errSecInvalidAttributeInitVector = -67750; +const int CSSM_ALGID_3DES_2KEY_EDE = 18; -const int errSecMissingAttributeInitVector = -67751; +const int CSSM_ALGID_3DES_1KEY_EEE = 19; -const int errSecInvalidAttributeSalt = -67752; +const int CSSM_ALGID_3DES_3KEY = 17; -const int errSecMissingAttributeSalt = -67753; +const int CSSM_ALGID_3DES_3KEY_EEE = 20; -const int errSecInvalidAttributePadding = -67754; +const int CSSM_ALGID_3DES_2KEY = 18; -const int errSecMissingAttributePadding = -67755; +const int CSSM_ALGID_3DES_2KEY_EEE = 21; -const int errSecInvalidAttributeRandom = -67756; +const int CSSM_ALGID_3DES_1KEY = 20; -const int errSecMissingAttributeRandom = -67757; +const int CSSM_ALGID_IDEA = 22; -const int errSecInvalidAttributeSeed = -67758; +const int CSSM_ALGID_RC2 = 23; -const int errSecMissingAttributeSeed = -67759; +const int CSSM_ALGID_RC5 = 24; -const int errSecInvalidAttributePassphrase = -67760; +const int CSSM_ALGID_RC4 = 25; -const int errSecMissingAttributePassphrase = -67761; +const int CSSM_ALGID_SEAL = 26; -const int errSecInvalidAttributeKeyLength = -67762; +const int CSSM_ALGID_CAST = 27; -const int errSecMissingAttributeKeyLength = -67763; +const int CSSM_ALGID_BLOWFISH = 28; -const int errSecInvalidAttributeBlockSize = -67764; +const int CSSM_ALGID_SKIPJACK = 29; -const int errSecMissingAttributeBlockSize = -67765; +const int CSSM_ALGID_LUCIFER = 30; -const int errSecInvalidAttributeOutputSize = -67766; +const int CSSM_ALGID_MADRYGA = 31; -const int errSecMissingAttributeOutputSize = -67767; +const int CSSM_ALGID_FEAL = 32; -const int errSecInvalidAttributeRounds = -67768; +const int CSSM_ALGID_REDOC = 33; -const int errSecMissingAttributeRounds = -67769; +const int CSSM_ALGID_REDOC3 = 34; -const int errSecInvalidAlgorithmParms = -67770; +const int CSSM_ALGID_LOKI = 35; -const int errSecMissingAlgorithmParms = -67771; +const int CSSM_ALGID_KHUFU = 36; -const int errSecInvalidAttributeLabel = -67772; +const int CSSM_ALGID_KHAFRE = 37; -const int errSecMissingAttributeLabel = -67773; +const int CSSM_ALGID_MMB = 38; -const int errSecInvalidAttributeKeyType = -67774; +const int CSSM_ALGID_GOST = 39; -const int errSecMissingAttributeKeyType = -67775; +const int CSSM_ALGID_SAFER = 40; -const int errSecInvalidAttributeMode = -67776; +const int CSSM_ALGID_CRAB = 41; -const int errSecMissingAttributeMode = -67777; +const int CSSM_ALGID_RSA = 42; -const int errSecInvalidAttributeEffectiveBits = -67778; +const int CSSM_ALGID_DSA = 43; -const int errSecMissingAttributeEffectiveBits = -67779; +const int CSSM_ALGID_MD5WithRSA = 44; -const int errSecInvalidAttributeStartDate = -67780; +const int CSSM_ALGID_MD2WithRSA = 45; -const int errSecMissingAttributeStartDate = -67781; +const int CSSM_ALGID_ElGamal = 46; -const int errSecInvalidAttributeEndDate = -67782; +const int CSSM_ALGID_MD2Random = 47; -const int errSecMissingAttributeEndDate = -67783; +const int CSSM_ALGID_MD5Random = 48; -const int errSecInvalidAttributeVersion = -67784; +const int CSSM_ALGID_SHARandom = 49; -const int errSecMissingAttributeVersion = -67785; +const int CSSM_ALGID_DESRandom = 50; -const int errSecInvalidAttributePrime = -67786; +const int CSSM_ALGID_SHA1WithRSA = 51; -const int errSecMissingAttributePrime = -67787; +const int CSSM_ALGID_CDMF = 52; -const int errSecInvalidAttributeBase = -67788; +const int CSSM_ALGID_CAST3 = 53; -const int errSecMissingAttributeBase = -67789; +const int CSSM_ALGID_CAST5 = 54; -const int errSecInvalidAttributeSubprime = -67790; +const int CSSM_ALGID_GenericSecret = 55; -const int errSecMissingAttributeSubprime = -67791; +const int CSSM_ALGID_ConcatBaseAndKey = 56; -const int errSecInvalidAttributeIterationCount = -67792; +const int CSSM_ALGID_ConcatKeyAndBase = 57; -const int errSecMissingAttributeIterationCount = -67793; +const int CSSM_ALGID_ConcatBaseAndData = 58; -const int errSecInvalidAttributeDLDBHandle = -67794; +const int CSSM_ALGID_ConcatDataAndBase = 59; -const int errSecMissingAttributeDLDBHandle = -67795; +const int CSSM_ALGID_XORBaseAndData = 60; -const int errSecInvalidAttributeAccessCredentials = -67796; +const int CSSM_ALGID_ExtractFromKey = 61; -const int errSecMissingAttributeAccessCredentials = -67797; +const int CSSM_ALGID_SSL3PrePrimaryGen = 62; -const int errSecInvalidAttributePublicKeyFormat = -67798; +const int CSSM_ALGID_SSL3PreMasterGen = 62; -const int errSecMissingAttributePublicKeyFormat = -67799; +const int CSSM_ALGID_SSL3PrimaryDerive = 63; -const int errSecInvalidAttributePrivateKeyFormat = -67800; +const int CSSM_ALGID_SSL3MasterDerive = 63; -const int errSecMissingAttributePrivateKeyFormat = -67801; +const int CSSM_ALGID_SSL3KeyAndMacDerive = 64; -const int errSecInvalidAttributeSymmetricKeyFormat = -67802; +const int CSSM_ALGID_SSL3MD5_MAC = 65; -const int errSecMissingAttributeSymmetricKeyFormat = -67803; +const int CSSM_ALGID_SSL3SHA1_MAC = 66; -const int errSecInvalidAttributeWrappedKeyFormat = -67804; +const int CSSM_ALGID_PKCS5_PBKDF1_MD5 = 67; -const int errSecMissingAttributeWrappedKeyFormat = -67805; +const int CSSM_ALGID_PKCS5_PBKDF1_MD2 = 68; -const int errSecStagedOperationInProgress = -67806; +const int CSSM_ALGID_PKCS5_PBKDF1_SHA1 = 69; -const int errSecStagedOperationNotStarted = -67807; +const int CSSM_ALGID_WrapLynks = 70; -const int errSecVerifyFailed = -67808; +const int CSSM_ALGID_WrapSET_OAEP = 71; -const int errSecQuerySizeUnknown = -67809; +const int CSSM_ALGID_BATON = 72; -const int errSecBlockSizeMismatch = -67810; +const int CSSM_ALGID_ECDSA = 73; -const int errSecPublicKeyInconsistent = -67811; +const int CSSM_ALGID_MAYFLY = 74; -const int errSecDeviceVerifyFailed = -67812; +const int CSSM_ALGID_JUNIPER = 75; -const int errSecInvalidLoginName = -67813; +const int CSSM_ALGID_FASTHASH = 76; -const int errSecAlreadyLoggedIn = -67814; +const int CSSM_ALGID_3DES = 77; -const int errSecInvalidDigestAlgorithm = -67815; +const int CSSM_ALGID_SSL3MD5 = 78; -const int errSecInvalidCRLGroup = -67816; +const int CSSM_ALGID_SSL3SHA1 = 79; -const int errSecCertificateCannotOperate = -67817; +const int CSSM_ALGID_FortezzaTimestamp = 80; -const int errSecCertificateExpired = -67818; +const int CSSM_ALGID_SHA1WithDSA = 81; -const int errSecCertificateNotValidYet = -67819; +const int CSSM_ALGID_SHA1WithECDSA = 82; -const int errSecCertificateRevoked = -67820; +const int CSSM_ALGID_DSA_BSAFE = 83; -const int errSecCertificateSuspended = -67821; +const int CSSM_ALGID_ECDH = 84; -const int errSecInsufficientCredentials = -67822; +const int CSSM_ALGID_ECMQV = 85; -const int errSecInvalidAction = -67823; +const int CSSM_ALGID_PKCS12_SHA1_PBE = 86; -const int errSecInvalidAuthority = -67824; +const int CSSM_ALGID_ECNRA = 87; -const int errSecVerifyActionFailed = -67825; +const int CSSM_ALGID_SHA1WithECNRA = 88; -const int errSecInvalidCertAuthority = -67826; +const int CSSM_ALGID_ECES = 89; -const int errSecInvalidCRLAuthority = -67827; +const int CSSM_ALGID_ECAES = 90; -const int errSecInvaldCRLAuthority = -67827; +const int CSSM_ALGID_SHA1HMAC = 91; -const int errSecInvalidCRLEncoding = -67828; +const int CSSM_ALGID_FIPS186Random = 92; -const int errSecInvalidCRLType = -67829; +const int CSSM_ALGID_ECC = 93; -const int errSecInvalidCRL = -67830; +const int CSSM_ALGID_MQV = 94; -const int errSecInvalidFormType = -67831; +const int CSSM_ALGID_NRA = 95; -const int errSecInvalidID = -67832; +const int CSSM_ALGID_IntelPlatformRandom = 96; -const int errSecInvalidIdentifier = -67833; +const int CSSM_ALGID_UTC = 97; -const int errSecInvalidIndex = -67834; +const int CSSM_ALGID_HAVAL3 = 98; -const int errSecInvalidPolicyIdentifiers = -67835; +const int CSSM_ALGID_HAVAL4 = 99; -const int errSecInvalidTimeString = -67836; +const int CSSM_ALGID_HAVAL5 = 100; -const int errSecInvalidReason = -67837; +const int CSSM_ALGID_TIGER = 101; -const int errSecInvalidRequestInputs = -67838; +const int CSSM_ALGID_MD5HMAC = 102; -const int errSecInvalidResponseVector = -67839; +const int CSSM_ALGID_PKCS5_PBKDF2 = 103; -const int errSecInvalidStopOnPolicy = -67840; +const int CSSM_ALGID_RUNNING_COUNTER = 104; -const int errSecInvalidTuple = -67841; +const int CSSM_ALGID_LAST = 2147483647; -const int errSecMultipleValuesUnsupported = -67842; +const int CSSM_ALGID_VENDOR_DEFINED = -2147483648; -const int errSecNotTrusted = -67843; +const int CSSM_ALGMODE_NONE = 0; -const int errSecNoDefaultAuthority = -67844; +const int CSSM_ALGMODE_CUSTOM = 1; -const int errSecRejectedForm = -67845; +const int CSSM_ALGMODE_ECB = 2; -const int errSecRequestLost = -67846; +const int CSSM_ALGMODE_ECBPad = 3; -const int errSecRequestRejected = -67847; +const int CSSM_ALGMODE_CBC = 4; -const int errSecUnsupportedAddressType = -67848; +const int CSSM_ALGMODE_CBC_IV8 = 5; -const int errSecUnsupportedService = -67849; +const int CSSM_ALGMODE_CBCPadIV8 = 6; -const int errSecInvalidTupleGroup = -67850; +const int CSSM_ALGMODE_CFB = 7; -const int errSecInvalidBaseACLs = -67851; +const int CSSM_ALGMODE_CFB_IV8 = 8; -const int errSecInvalidTupleCredentials = -67852; +const int CSSM_ALGMODE_CFBPadIV8 = 9; -const int errSecInvalidTupleCredendtials = -67852; +const int CSSM_ALGMODE_OFB = 10; -const int errSecInvalidEncoding = -67853; +const int CSSM_ALGMODE_OFB_IV8 = 11; -const int errSecInvalidValidityPeriod = -67854; +const int CSSM_ALGMODE_OFBPadIV8 = 12; -const int errSecInvalidRequestor = -67855; +const int CSSM_ALGMODE_COUNTER = 13; -const int errSecRequestDescriptor = -67856; +const int CSSM_ALGMODE_BC = 14; -const int errSecInvalidBundleInfo = -67857; +const int CSSM_ALGMODE_PCBC = 15; -const int errSecInvalidCRLIndex = -67858; +const int CSSM_ALGMODE_CBCC = 16; -const int errSecNoFieldValues = -67859; +const int CSSM_ALGMODE_OFBNLF = 17; -const int errSecUnsupportedFieldFormat = -67860; +const int CSSM_ALGMODE_PBC = 18; -const int errSecUnsupportedIndexInfo = -67861; +const int CSSM_ALGMODE_PFB = 19; -const int errSecUnsupportedLocality = -67862; +const int CSSM_ALGMODE_CBCPD = 20; -const int errSecUnsupportedNumAttributes = -67863; +const int CSSM_ALGMODE_PUBLIC_KEY = 21; -const int errSecUnsupportedNumIndexes = -67864; +const int CSSM_ALGMODE_PRIVATE_KEY = 22; -const int errSecUnsupportedNumRecordTypes = -67865; +const int CSSM_ALGMODE_SHUFFLE = 23; -const int errSecFieldSpecifiedMultiple = -67866; +const int CSSM_ALGMODE_ECB64 = 24; -const int errSecIncompatibleFieldFormat = -67867; +const int CSSM_ALGMODE_CBC64 = 25; -const int errSecInvalidParsingModule = -67868; +const int CSSM_ALGMODE_OFB64 = 26; -const int errSecDatabaseLocked = -67869; +const int CSSM_ALGMODE_CFB32 = 28; -const int errSecDatastoreIsOpen = -67870; +const int CSSM_ALGMODE_CFB16 = 29; -const int errSecMissingValue = -67871; +const int CSSM_ALGMODE_CFB8 = 30; -const int errSecUnsupportedQueryLimits = -67872; +const int CSSM_ALGMODE_WRAP = 31; -const int errSecUnsupportedNumSelectionPreds = -67873; +const int CSSM_ALGMODE_PRIVATE_WRAP = 32; -const int errSecUnsupportedOperator = -67874; +const int CSSM_ALGMODE_RELAYX = 33; -const int errSecInvalidDBLocation = -67875; +const int CSSM_ALGMODE_ECB128 = 34; -const int errSecInvalidAccessRequest = -67876; +const int CSSM_ALGMODE_ECB96 = 35; -const int errSecInvalidIndexInfo = -67877; +const int CSSM_ALGMODE_CBC128 = 36; -const int errSecInvalidNewOwner = -67878; +const int CSSM_ALGMODE_OAEP_HASH = 37; -const int errSecInvalidModifyMode = -67879; +const int CSSM_ALGMODE_PKCS1_EME_V15 = 38; -const int errSecMissingRequiredExtension = -67880; +const int CSSM_ALGMODE_PKCS1_EME_OAEP = 39; -const int errSecExtendedKeyUsageNotCritical = -67881; +const int CSSM_ALGMODE_PKCS1_EMSA_V15 = 40; -const int errSecTimestampMissing = -67882; +const int CSSM_ALGMODE_ISO_9796 = 41; -const int errSecTimestampInvalid = -67883; +const int CSSM_ALGMODE_X9_31 = 42; -const int errSecTimestampNotTrusted = -67884; +const int CSSM_ALGMODE_LAST = 2147483647; -const int errSecTimestampServiceNotAvailable = -67885; +const int CSSM_ALGMODE_VENDOR_DEFINED = -2147483648; -const int errSecTimestampBadAlg = -67886; +const int CSSM_CSP_SOFTWARE = 1; -const int errSecTimestampBadRequest = -67887; +const int CSSM_CSP_HARDWARE = 2; -const int errSecTimestampBadDataFormat = -67888; +const int CSSM_CSP_HYBRID = 3; -const int errSecTimestampTimeNotAvailable = -67889; +const int CSSM_ALGCLASS_NONE = 0; -const int errSecTimestampUnacceptedPolicy = -67890; +const int CSSM_ALGCLASS_CUSTOM = 1; -const int errSecTimestampUnacceptedExtension = -67891; +const int CSSM_ALGCLASS_SIGNATURE = 2; -const int errSecTimestampAddInfoNotAvailable = -67892; +const int CSSM_ALGCLASS_SYMMETRIC = 3; -const int errSecTimestampSystemFailure = -67893; +const int CSSM_ALGCLASS_DIGEST = 4; -const int errSecSigningTimeMissing = -67894; +const int CSSM_ALGCLASS_RANDOMGEN = 5; -const int errSecTimestampRejection = -67895; +const int CSSM_ALGCLASS_UNIQUEGEN = 6; -const int errSecTimestampWaiting = -67896; +const int CSSM_ALGCLASS_MAC = 7; -const int errSecTimestampRevocationWarning = -67897; +const int CSSM_ALGCLASS_ASYMMETRIC = 8; -const int errSecTimestampRevocationNotification = -67898; +const int CSSM_ALGCLASS_KEYGEN = 9; -const int errSecCertificatePolicyNotAllowed = -67899; +const int CSSM_ALGCLASS_DERIVEKEY = 10; -const int errSecCertificateNameNotAllowed = -67900; +const int CSSM_ATTRIBUTE_DATA_NONE = 0; -const int errSecCertificateValidityPeriodTooLong = -67901; +const int CSSM_ATTRIBUTE_DATA_UINT32 = 268435456; -const int errSecCertificateIsCA = -67902; +const int CSSM_ATTRIBUTE_DATA_CSSM_DATA = 536870912; -const int errSecCertificateDuplicateExtension = -67903; +const int CSSM_ATTRIBUTE_DATA_CRYPTO_DATA = 805306368; -const int errSSLProtocol = -9800; +const int CSSM_ATTRIBUTE_DATA_KEY = 1073741824; -const int errSSLNegotiation = -9801; +const int CSSM_ATTRIBUTE_DATA_STRING = 1342177280; -const int errSSLFatalAlert = -9802; +const int CSSM_ATTRIBUTE_DATA_DATE = 1610612736; -const int errSSLWouldBlock = -9803; +const int CSSM_ATTRIBUTE_DATA_RANGE = 1879048192; -const int errSSLSessionNotFound = -9804; +const int CSSM_ATTRIBUTE_DATA_ACCESS_CREDENTIALS = -2147483648; -const int errSSLClosedGraceful = -9805; +const int CSSM_ATTRIBUTE_DATA_VERSION = 16777216; -const int errSSLClosedAbort = -9806; +const int CSSM_ATTRIBUTE_DATA_DL_DB_HANDLE = 33554432; -const int errSSLXCertChainInvalid = -9807; +const int CSSM_ATTRIBUTE_DATA_KR_PROFILE = 50331648; -const int errSSLBadCert = -9808; +const int CSSM_ATTRIBUTE_TYPE_MASK = -16777216; -const int errSSLCrypto = -9809; +const int CSSM_ATTRIBUTE_NONE = 0; -const int errSSLInternal = -9810; +const int CSSM_ATTRIBUTE_CUSTOM = 536870913; -const int errSSLModuleAttach = -9811; +const int CSSM_ATTRIBUTE_DESCRIPTION = 1342177282; -const int errSSLUnknownRootCert = -9812; +const int CSSM_ATTRIBUTE_KEY = 1073741827; -const int errSSLNoRootCert = -9813; +const int CSSM_ATTRIBUTE_INIT_VECTOR = 536870916; -const int errSSLCertExpired = -9814; +const int CSSM_ATTRIBUTE_SALT = 536870917; -const int errSSLCertNotYetValid = -9815; +const int CSSM_ATTRIBUTE_PADDING = 268435462; -const int errSSLClosedNoNotify = -9816; +const int CSSM_ATTRIBUTE_RANDOM = 536870919; -const int errSSLBufferOverflow = -9817; +const int CSSM_ATTRIBUTE_SEED = 805306376; -const int errSSLBadCipherSuite = -9818; +const int CSSM_ATTRIBUTE_PASSPHRASE = 805306377; -const int errSSLPeerUnexpectedMsg = -9819; +const int CSSM_ATTRIBUTE_KEY_LENGTH = 268435466; -const int errSSLPeerBadRecordMac = -9820; +const int CSSM_ATTRIBUTE_KEY_LENGTH_RANGE = 1879048203; -const int errSSLPeerDecryptionFail = -9821; +const int CSSM_ATTRIBUTE_BLOCK_SIZE = 268435468; -const int errSSLPeerRecordOverflow = -9822; +const int CSSM_ATTRIBUTE_OUTPUT_SIZE = 268435469; -const int errSSLPeerDecompressFail = -9823; +const int CSSM_ATTRIBUTE_ROUNDS = 268435470; -const int errSSLPeerHandshakeFail = -9824; +const int CSSM_ATTRIBUTE_IV_SIZE = 268435471; -const int errSSLPeerBadCert = -9825; +const int CSSM_ATTRIBUTE_ALG_PARAMS = 536870928; -const int errSSLPeerUnsupportedCert = -9826; +const int CSSM_ATTRIBUTE_LABEL = 536870929; -const int errSSLPeerCertRevoked = -9827; +const int CSSM_ATTRIBUTE_KEY_TYPE = 268435474; -const int errSSLPeerCertExpired = -9828; +const int CSSM_ATTRIBUTE_MODE = 268435475; -const int errSSLPeerCertUnknown = -9829; +const int CSSM_ATTRIBUTE_EFFECTIVE_BITS = 268435476; -const int errSSLIllegalParam = -9830; +const int CSSM_ATTRIBUTE_START_DATE = 1610612757; -const int errSSLPeerUnknownCA = -9831; +const int CSSM_ATTRIBUTE_END_DATE = 1610612758; -const int errSSLPeerAccessDenied = -9832; +const int CSSM_ATTRIBUTE_KEYUSAGE = 268435479; -const int errSSLPeerDecodeError = -9833; +const int CSSM_ATTRIBUTE_KEYATTR = 268435480; -const int errSSLPeerDecryptError = -9834; +const int CSSM_ATTRIBUTE_VERSION = 16777241; -const int errSSLPeerExportRestriction = -9835; +const int CSSM_ATTRIBUTE_PRIME = 536870938; -const int errSSLPeerProtocolVersion = -9836; +const int CSSM_ATTRIBUTE_BASE = 536870939; -const int errSSLPeerInsufficientSecurity = -9837; +const int CSSM_ATTRIBUTE_SUBPRIME = 536870940; -const int errSSLPeerInternalError = -9838; +const int CSSM_ATTRIBUTE_ALG_ID = 268435485; -const int errSSLPeerUserCancelled = -9839; +const int CSSM_ATTRIBUTE_ITERATION_COUNT = 268435486; -const int errSSLPeerNoRenegotiation = -9840; +const int CSSM_ATTRIBUTE_ROUNDS_RANGE = 1879048223; -const int errSSLPeerAuthCompleted = -9841; +const int CSSM_ATTRIBUTE_KRPROFILE_LOCAL = 50331680; -const int errSSLClientCertRequested = -9842; +const int CSSM_ATTRIBUTE_KRPROFILE_REMOTE = 50331681; -const int errSSLHostNameMismatch = -9843; +const int CSSM_ATTRIBUTE_CSP_HANDLE = 268435490; -const int errSSLConnectionRefused = -9844; +const int CSSM_ATTRIBUTE_DL_DB_HANDLE = 33554467; -const int errSSLDecryptionFail = -9845; +const int CSSM_ATTRIBUTE_ACCESS_CREDENTIALS = -2147483612; -const int errSSLBadRecordMac = -9846; +const int CSSM_ATTRIBUTE_PUBLIC_KEY_FORMAT = 268435493; -const int errSSLRecordOverflow = -9847; +const int CSSM_ATTRIBUTE_PRIVATE_KEY_FORMAT = 268435494; -const int errSSLBadConfiguration = -9848; +const int CSSM_ATTRIBUTE_SYMMETRIC_KEY_FORMAT = 268435495; -const int errSSLUnexpectedRecord = -9849; +const int CSSM_ATTRIBUTE_WRAPPED_KEY_FORMAT = 268435496; -const int errSSLWeakPeerEphemeralDHKey = -9850; +const int CSSM_PADDING_NONE = 0; -const int errSSLClientHelloReceived = -9851; +const int CSSM_PADDING_CUSTOM = 1; -const int errSSLTransportReset = -9852; +const int CSSM_PADDING_ZERO = 2; -const int errSSLNetworkTimeout = -9853; +const int CSSM_PADDING_ONE = 3; -const int errSSLConfigurationFailed = -9854; +const int CSSM_PADDING_ALTERNATE = 4; -const int errSSLUnsupportedExtension = -9855; +const int CSSM_PADDING_FF = 5; -const int errSSLUnexpectedMessage = -9856; +const int CSSM_PADDING_PKCS5 = 6; -const int errSSLDecompressFail = -9857; +const int CSSM_PADDING_PKCS7 = 7; -const int errSSLHandshakeFail = -9858; +const int CSSM_PADDING_CIPHERSTEALING = 8; -const int errSSLDecodeError = -9859; +const int CSSM_PADDING_RANDOM = 9; -const int errSSLInappropriateFallback = -9860; +const int CSSM_PADDING_PKCS1 = 10; -const int errSSLMissingExtension = -9861; +const int CSSM_PADDING_SIGRAW = 11; -const int errSSLBadCertificateStatusResponse = -9862; +const int CSSM_PADDING_VENDOR_DEFINED = -2147483648; -const int errSSLCertificateRequired = -9863; +const int CSSM_CSP_TOK_RNG = 1; -const int errSSLUnknownPSKIdentity = -9864; +const int CSSM_CSP_TOK_CLOCK_EXISTS = 64; -const int errSSLUnrecognizedName = -9865; +const int CSSM_CSP_RDR_TOKENPRESENT = 1; -const int errSSLATSViolation = -9880; +const int CSSM_CSP_RDR_EXISTS = 2; -const int errSSLATSMinimumVersionViolation = -9881; +const int CSSM_CSP_RDR_HW = 4; -const int errSSLATSCiphersuiteViolation = -9882; +const int CSSM_CSP_TOK_WRITE_PROTECTED = 2; -const int errSSLATSMinimumKeySizeViolation = -9883; +const int CSSM_CSP_TOK_LOGIN_REQUIRED = 4; -const int errSSLATSLeafCertificateHashAlgorithmViolation = -9884; +const int CSSM_CSP_TOK_USER_PIN_INITIALIZED = 8; -const int errSSLATSCertificateHashAlgorithmViolation = -9885; +const int CSSM_CSP_TOK_PROT_AUTHENTICATION = 256; -const int errSSLATSCertificateTrustViolation = -9886; +const int CSSM_CSP_TOK_USER_PIN_EXPIRED = 1048576; -const int errSSLEarlyDataRejected = -9890; +const int CSSM_CSP_TOK_SESSION_KEY_PASSWORD = 2097152; -const int OSUnknownByteOrder = 0; +const int CSSM_CSP_TOK_PRIVATE_KEY_PASSWORD = 4194304; -const int OSLittleEndian = 1; +const int CSSM_CSP_STORES_PRIVATE_KEYS = 16777216; -const int OSBigEndian = 2; +const int CSSM_CSP_STORES_PUBLIC_KEYS = 33554432; -const int kCFNotificationDeliverImmediately = 1; +const int CSSM_CSP_STORES_SESSION_KEYS = 67108864; -const int kCFNotificationPostToAllSessions = 2; +const int CSSM_CSP_STORES_CERTIFICATES = 134217728; -const int kCFCalendarComponentsWrap = 1; +const int CSSM_CSP_STORES_GENERIC = 268435456; -const int kCFSocketAutomaticallyReenableReadCallBack = 1; +const int CSSM_PKCS_OAEP_MGF_NONE = 0; -const int kCFSocketAutomaticallyReenableAcceptCallBack = 2; +const int CSSM_PKCS_OAEP_MGF1_SHA1 = 1; -const int kCFSocketAutomaticallyReenableDataCallBack = 3; +const int CSSM_PKCS_OAEP_MGF1_MD5 = 2; -const int kCFSocketAutomaticallyReenableWriteCallBack = 8; +const int CSSM_PKCS_OAEP_PSOURCE_NONE = 0; -const int kCFSocketLeaveErrors = 64; +const int CSSM_PKCS_OAEP_PSOURCE_Pspecified = 1; -const int kCFSocketCloseOnInvalidate = 128; +const int CSSM_VALUE_NOT_AVAILABLE = -1; -const int DISPATCH_WALLTIME_NOW = -2; +const int CSSM_PKCS5_PBKDF2_PRF_HMAC_SHA1 = 0; -const int kCFPropertyListReadCorruptError = 3840; +const int CSSM_TP_AUTHORITY_REQUEST_CERTISSUE = 1; -const int kCFPropertyListReadUnknownVersionError = 3841; +const int CSSM_TP_AUTHORITY_REQUEST_CERTREVOKE = 2; -const int kCFPropertyListReadStreamError = 3842; +const int CSSM_TP_AUTHORITY_REQUEST_CERTSUSPEND = 3; -const int kCFPropertyListWriteStreamError = 3851; +const int CSSM_TP_AUTHORITY_REQUEST_CERTRESUME = 4; -const int kCFBundleExecutableArchitectureI386 = 7; +const int CSSM_TP_AUTHORITY_REQUEST_CERTVERIFY = 5; -const int kCFBundleExecutableArchitecturePPC = 18; +const int CSSM_TP_AUTHORITY_REQUEST_CERTNOTARIZE = 6; -const int kCFBundleExecutableArchitectureX86_64 = 16777223; +const int CSSM_TP_AUTHORITY_REQUEST_CERTUSERECOVER = 7; -const int kCFBundleExecutableArchitecturePPC64 = 16777234; +const int CSSM_TP_AUTHORITY_REQUEST_CRLISSUE = 256; -const int kCFBundleExecutableArchitectureARM64 = 16777228; +const int CSSM_TP_KEY_ARCHIVE = 1; -const int kCFMessagePortSuccess = 0; +const int CSSM_TP_CERT_PUBLISH = 2; -const int kCFMessagePortSendTimeout = -1; +const int CSSM_TP_CERT_NOTIFY_RENEW = 4; -const int kCFMessagePortReceiveTimeout = -2; +const int CSSM_TP_CERT_DIR_UPDATE = 8; -const int kCFMessagePortIsInvalid = -3; +const int CSSM_TP_CRL_DISTRIBUTE = 16; -const int kCFMessagePortTransportError = -4; +const int CSSM_TP_ACTION_DEFAULT = 0; -const int kCFMessagePortBecameInvalidError = -5; +const int CSSM_TP_STOP_ON_POLICY = 0; -const int kCFStringTokenizerUnitWord = 0; +const int CSSM_TP_STOP_ON_NONE = 1; -const int kCFStringTokenizerUnitSentence = 1; +const int CSSM_TP_STOP_ON_FIRST_PASS = 2; -const int kCFStringTokenizerUnitParagraph = 2; +const int CSSM_TP_STOP_ON_FIRST_FAIL = 3; -const int kCFStringTokenizerUnitLineBreak = 3; +const int CSSM_CRL_PARSE_FORMAT_NONE = 0; -const int kCFStringTokenizerUnitWordBoundary = 4; +const int CSSM_CRL_PARSE_FORMAT_CUSTOM = 1; -const int kCFStringTokenizerAttributeLatinTranscription = 65536; +const int CSSM_CRL_PARSE_FORMAT_SEXPR = 2; -const int kCFStringTokenizerAttributeLanguage = 131072; +const int CSSM_CRL_PARSE_FORMAT_COMPLEX = 3; -const int kCFFileDescriptorReadCallBack = 1; +const int CSSM_CRL_PARSE_FORMAT_OID_NAMED = 4; -const int kCFFileDescriptorWriteCallBack = 2; +const int CSSM_CRL_PARSE_FORMAT_TUPLE = 5; -const int kCFUserNotificationStopAlertLevel = 0; +const int CSSM_CRL_PARSE_FORMAT_MULTIPLE = 32766; -const int kCFUserNotificationNoteAlertLevel = 1; +const int CSSM_CRL_PARSE_FORMAT_LAST = 32767; -const int kCFUserNotificationCautionAlertLevel = 2; +const int CSSM_CL_CUSTOM_CRL_PARSE_FORMAT = 32768; -const int kCFUserNotificationPlainAlertLevel = 3; +const int CSSM_CRL_TYPE_UNKNOWN = 0; -const int kCFUserNotificationDefaultResponse = 0; +const int CSSM_CRL_TYPE_X_509v1 = 1; -const int kCFUserNotificationAlternateResponse = 1; +const int CSSM_CRL_TYPE_X_509v2 = 2; -const int kCFUserNotificationOtherResponse = 2; +const int CSSM_CRL_TYPE_SPKI = 3; -const int kCFUserNotificationCancelResponse = 3; +const int CSSM_CRL_TYPE_MULTIPLE = 32766; -const int kCFUserNotificationNoDefaultButtonFlag = 32; +const int CSSM_CRL_ENCODING_UNKNOWN = 0; -const int kCFUserNotificationUseRadioButtonsFlag = 64; +const int CSSM_CRL_ENCODING_CUSTOM = 1; -const int kCFXMLNodeCurrentVersion = 1; +const int CSSM_CRL_ENCODING_BER = 2; -const int CSSM_INVALID_HANDLE = 0; +const int CSSM_CRL_ENCODING_DER = 3; -const int CSSM_FALSE = 0; +const int CSSM_CRL_ENCODING_BLOOM = 4; -const int CSSM_TRUE = 1; +const int CSSM_CRL_ENCODING_SEXPR = 5; -const int CSSM_OK = 0; +const int CSSM_CRL_ENCODING_MULTIPLE = 32766; -const int CSSM_MODULE_STRING_SIZE = 64; +const int CSSM_CRLGROUP_DATA = 0; -const int CSSM_KEY_HIERARCHY_NONE = 0; +const int CSSM_CRLGROUP_ENCODED_CRL = 1; -const int CSSM_KEY_HIERARCHY_INTEG = 1; +const int CSSM_CRLGROUP_PARSED_CRL = 2; -const int CSSM_KEY_HIERARCHY_EXPORT = 2; +const int CSSM_CRLGROUP_CRL_PAIR = 3; -const int CSSM_PVC_NONE = 0; +const int CSSM_EVIDENCE_FORM_UNSPECIFIC = 0; -const int CSSM_PVC_APP = 1; +const int CSSM_EVIDENCE_FORM_CERT = 1; -const int CSSM_PVC_SP = 2; +const int CSSM_EVIDENCE_FORM_CRL = 2; -const int CSSM_PRIVILEGE_SCOPE_NONE = 0; +const int CSSM_EVIDENCE_FORM_CERT_ID = 3; -const int CSSM_PRIVILEGE_SCOPE_PROCESS = 1; +const int CSSM_EVIDENCE_FORM_CRL_ID = 4; -const int CSSM_PRIVILEGE_SCOPE_THREAD = 2; +const int CSSM_EVIDENCE_FORM_VERIFIER_TIME = 5; -const int CSSM_SERVICE_CSSM = 1; +const int CSSM_EVIDENCE_FORM_CRL_THISTIME = 6; -const int CSSM_SERVICE_CSP = 2; +const int CSSM_EVIDENCE_FORM_CRL_NEXTTIME = 7; -const int CSSM_SERVICE_DL = 4; +const int CSSM_EVIDENCE_FORM_POLICYINFO = 8; -const int CSSM_SERVICE_CL = 8; +const int CSSM_EVIDENCE_FORM_TUPLEGROUP = 9; -const int CSSM_SERVICE_TP = 16; +const int CSSM_TP_CONFIRM_STATUS_UNKNOWN = 0; -const int CSSM_SERVICE_AC = 32; +const int CSSM_TP_CONFIRM_ACCEPT = 1; -const int CSSM_SERVICE_KR = 64; +const int CSSM_TP_CONFIRM_REJECT = 2; -const int CSSM_NOTIFY_INSERT = 1; +const int CSSM_ESTIMATED_TIME_UNKNOWN = -1; -const int CSSM_NOTIFY_REMOVE = 2; +const int CSSM_ELAPSED_TIME_UNKNOWN = -1; -const int CSSM_NOTIFY_FAULT = 3; +const int CSSM_ELAPSED_TIME_COMPLETE = -2; -const int CSSM_ATTACH_READ_ONLY = 1; +const int CSSM_TP_CERTISSUE_STATUS_UNKNOWN = 0; -const int CSSM_USEE_LAST = 255; +const int CSSM_TP_CERTISSUE_OK = 1; -const int CSSM_USEE_NONE = 0; +const int CSSM_TP_CERTISSUE_OKWITHCERTMODS = 2; -const int CSSM_USEE_DOMESTIC = 1; +const int CSSM_TP_CERTISSUE_OKWITHSERVICEMODS = 3; -const int CSSM_USEE_FINANCIAL = 2; +const int CSSM_TP_CERTISSUE_REJECTED = 4; -const int CSSM_USEE_KRLE = 3; +const int CSSM_TP_CERTISSUE_NOT_AUTHORIZED = 5; -const int CSSM_USEE_KRENT = 4; +const int CSSM_TP_CERTISSUE_WILL_BE_REVOKED = 6; -const int CSSM_USEE_SSL = 5; +const int CSSM_TP_CERTCHANGE_NONE = 0; -const int CSSM_USEE_AUTHENTICATION = 6; +const int CSSM_TP_CERTCHANGE_REVOKE = 1; -const int CSSM_USEE_KEYEXCH = 7; +const int CSSM_TP_CERTCHANGE_HOLD = 2; -const int CSSM_USEE_MEDICAL = 8; +const int CSSM_TP_CERTCHANGE_RELEASE = 3; -const int CSSM_USEE_INSURANCE = 9; +const int CSSM_TP_CERTCHANGE_REASON_UNKNOWN = 0; -const int CSSM_USEE_WEAK = 10; +const int CSSM_TP_CERTCHANGE_REASON_KEYCOMPROMISE = 1; -const int CSSM_ADDR_NONE = 0; +const int CSSM_TP_CERTCHANGE_REASON_CACOMPROMISE = 2; -const int CSSM_ADDR_CUSTOM = 1; +const int CSSM_TP_CERTCHANGE_REASON_CEASEOPERATION = 3; -const int CSSM_ADDR_URL = 2; +const int CSSM_TP_CERTCHANGE_REASON_AFFILIATIONCHANGE = 4; -const int CSSM_ADDR_SOCKADDR = 3; +const int CSSM_TP_CERTCHANGE_REASON_SUPERCEDED = 5; -const int CSSM_ADDR_NAME = 4; +const int CSSM_TP_CERTCHANGE_REASON_SUSPECTEDCOMPROMISE = 6; -const int CSSM_NET_PROTO_NONE = 0; +const int CSSM_TP_CERTCHANGE_REASON_HOLDRELEASE = 7; -const int CSSM_NET_PROTO_CUSTOM = 1; +const int CSSM_TP_CERTCHANGE_STATUS_UNKNOWN = 0; -const int CSSM_NET_PROTO_UNSPECIFIED = 2; +const int CSSM_TP_CERTCHANGE_OK = 1; -const int CSSM_NET_PROTO_LDAP = 3; +const int CSSM_TP_CERTCHANGE_OKWITHNEWTIME = 2; -const int CSSM_NET_PROTO_LDAPS = 4; +const int CSSM_TP_CERTCHANGE_WRONGCA = 3; -const int CSSM_NET_PROTO_LDAPNS = 5; +const int CSSM_TP_CERTCHANGE_REJECTED = 4; -const int CSSM_NET_PROTO_X500DAP = 6; +const int CSSM_TP_CERTCHANGE_NOT_AUTHORIZED = 5; -const int CSSM_NET_PROTO_FTP = 7; +const int CSSM_TP_CERTVERIFY_UNKNOWN = 0; -const int CSSM_NET_PROTO_FTPS = 8; +const int CSSM_TP_CERTVERIFY_VALID = 1; -const int CSSM_NET_PROTO_OCSP = 9; +const int CSSM_TP_CERTVERIFY_INVALID = 2; -const int CSSM_NET_PROTO_CMP = 10; +const int CSSM_TP_CERTVERIFY_REVOKED = 3; -const int CSSM_NET_PROTO_CMPS = 11; +const int CSSM_TP_CERTVERIFY_SUSPENDED = 4; -const int CSSM_WORDID__UNK_ = -1; +const int CSSM_TP_CERTVERIFY_EXPIRED = 5; -const int CSSM_WORDID__NLU_ = 0; +const int CSSM_TP_CERTVERIFY_NOT_VALID_YET = 6; -const int CSSM_WORDID__STAR_ = 1; +const int CSSM_TP_CERTVERIFY_INVALID_AUTHORITY = 7; -const int CSSM_WORDID_A = 2; +const int CSSM_TP_CERTVERIFY_INVALID_SIGNATURE = 8; -const int CSSM_WORDID_ACL = 3; +const int CSSM_TP_CERTVERIFY_INVALID_CERT_VALUE = 9; -const int CSSM_WORDID_ALPHA = 4; +const int CSSM_TP_CERTVERIFY_INVALID_CERTGROUP = 10; -const int CSSM_WORDID_B = 5; +const int CSSM_TP_CERTVERIFY_INVALID_POLICY = 11; -const int CSSM_WORDID_BER = 6; +const int CSSM_TP_CERTVERIFY_INVALID_POLICY_IDS = 12; -const int CSSM_WORDID_BINARY = 7; +const int CSSM_TP_CERTVERIFY_INVALID_BASIC_CONSTRAINTS = 13; -const int CSSM_WORDID_BIOMETRIC = 8; +const int CSSM_TP_CERTVERIFY_INVALID_CRL_DIST_PT = 14; -const int CSSM_WORDID_C = 9; +const int CSSM_TP_CERTVERIFY_INVALID_NAME_TREE = 15; -const int CSSM_WORDID_CANCELED = 10; +const int CSSM_TP_CERTVERIFY_UNKNOWN_CRITICAL_EXT = 16; -const int CSSM_WORDID_CERT = 11; +const int CSSM_TP_CERTNOTARIZE_STATUS_UNKNOWN = 0; -const int CSSM_WORDID_COMMENT = 12; +const int CSSM_TP_CERTNOTARIZE_OK = 1; -const int CSSM_WORDID_CRL = 13; +const int CSSM_TP_CERTNOTARIZE_OKWITHOUTFIELDS = 2; -const int CSSM_WORDID_CUSTOM = 14; +const int CSSM_TP_CERTNOTARIZE_OKWITHSERVICEMODS = 3; -const int CSSM_WORDID_D = 15; +const int CSSM_TP_CERTNOTARIZE_REJECTED = 4; -const int CSSM_WORDID_DATE = 16; +const int CSSM_TP_CERTNOTARIZE_NOT_AUTHORIZED = 5; -const int CSSM_WORDID_DB_DELETE = 17; +const int CSSM_TP_CERTRECLAIM_STATUS_UNKNOWN = 0; -const int CSSM_WORDID_DB_EXEC_STORED_QUERY = 18; +const int CSSM_TP_CERTRECLAIM_OK = 1; -const int CSSM_WORDID_DB_INSERT = 19; +const int CSSM_TP_CERTRECLAIM_NOMATCH = 2; -const int CSSM_WORDID_DB_MODIFY = 20; +const int CSSM_TP_CERTRECLAIM_REJECTED = 3; -const int CSSM_WORDID_DB_READ = 21; +const int CSSM_TP_CERTRECLAIM_NOT_AUTHORIZED = 4; -const int CSSM_WORDID_DBS_CREATE = 22; +const int CSSM_TP_CRLISSUE_STATUS_UNKNOWN = 0; -const int CSSM_WORDID_DBS_DELETE = 23; +const int CSSM_TP_CRLISSUE_OK = 1; -const int CSSM_WORDID_DECRYPT = 24; +const int CSSM_TP_CRLISSUE_NOT_CURRENT = 2; -const int CSSM_WORDID_DELETE = 25; +const int CSSM_TP_CRLISSUE_INVALID_DOMAIN = 3; -const int CSSM_WORDID_DELTA_CRL = 26; +const int CSSM_TP_CRLISSUE_UNKNOWN_IDENTIFIER = 4; -const int CSSM_WORDID_DER = 27; +const int CSSM_TP_CRLISSUE_REJECTED = 5; -const int CSSM_WORDID_DERIVE = 28; +const int CSSM_TP_CRLISSUE_NOT_AUTHORIZED = 6; -const int CSSM_WORDID_DISPLAY = 29; +const int CSSM_TP_FORM_TYPE_GENERIC = 0; -const int CSSM_WORDID_DO = 30; +const int CSSM_TP_FORM_TYPE_REGISTRATION = 1; -const int CSSM_WORDID_DSA = 31; +const int CSSM_CL_TEMPLATE_INTERMEDIATE_CERT = 1; -const int CSSM_WORDID_DSA_SHA1 = 32; +const int CSSM_CL_TEMPLATE_PKIX_CERTTEMPLATE = 2; -const int CSSM_WORDID_E = 33; +const int CSSM_CERT_BUNDLE_UNKNOWN = 0; -const int CSSM_WORDID_ELGAMAL = 34; +const int CSSM_CERT_BUNDLE_CUSTOM = 1; -const int CSSM_WORDID_ENCRYPT = 35; +const int CSSM_CERT_BUNDLE_PKCS7_SIGNED_DATA = 2; -const int CSSM_WORDID_ENTRY = 36; +const int CSSM_CERT_BUNDLE_PKCS7_SIGNED_ENVELOPED_DATA = 3; -const int CSSM_WORDID_EXPORT_CLEAR = 37; +const int CSSM_CERT_BUNDLE_PKCS12 = 4; -const int CSSM_WORDID_EXPORT_WRAPPED = 38; +const int CSSM_CERT_BUNDLE_PFX = 5; -const int CSSM_WORDID_G = 39; +const int CSSM_CERT_BUNDLE_SPKI_SEQUENCE = 6; -const int CSSM_WORDID_GE = 40; +const int CSSM_CERT_BUNDLE_PGP_KEYRING = 7; -const int CSSM_WORDID_GENKEY = 41; +const int CSSM_CERT_BUNDLE_LAST = 32767; -const int CSSM_WORDID_HASH = 42; +const int CSSM_CL_CUSTOM_CERT_BUNDLE_TYPE = 32768; -const int CSSM_WORDID_HASHED_PASSWORD = 43; +const int CSSM_CERT_BUNDLE_ENCODING_UNKNOWN = 0; -const int CSSM_WORDID_HASHED_SUBJECT = 44; +const int CSSM_CERT_BUNDLE_ENCODING_CUSTOM = 1; -const int CSSM_WORDID_HAVAL = 45; +const int CSSM_CERT_BUNDLE_ENCODING_BER = 2; -const int CSSM_WORDID_IBCHASH = 46; +const int CSSM_CERT_BUNDLE_ENCODING_DER = 3; -const int CSSM_WORDID_IMPORT_CLEAR = 47; +const int CSSM_CERT_BUNDLE_ENCODING_SEXPR = 4; -const int CSSM_WORDID_IMPORT_WRAPPED = 48; +const int CSSM_CERT_BUNDLE_ENCODING_PGP = 5; -const int CSSM_WORDID_INTEL = 49; +const int CSSM_FIELDVALUE_COMPLEX_DATA_TYPE = -1; -const int CSSM_WORDID_ISSUER = 50; +const int CSSM_DB_ATTRIBUTE_NAME_AS_STRING = 0; -const int CSSM_WORDID_ISSUER_INFO = 51; +const int CSSM_DB_ATTRIBUTE_NAME_AS_OID = 1; -const int CSSM_WORDID_K_OF_N = 52; +const int CSSM_DB_ATTRIBUTE_NAME_AS_INTEGER = 2; -const int CSSM_WORDID_KEA = 53; +const int CSSM_DB_ATTRIBUTE_FORMAT_STRING = 0; -const int CSSM_WORDID_KEYHOLDER = 54; +const int CSSM_DB_ATTRIBUTE_FORMAT_SINT32 = 1; -const int CSSM_WORDID_L = 55; +const int CSSM_DB_ATTRIBUTE_FORMAT_UINT32 = 2; -const int CSSM_WORDID_LE = 56; +const int CSSM_DB_ATTRIBUTE_FORMAT_BIG_NUM = 3; -const int CSSM_WORDID_LOGIN = 57; +const int CSSM_DB_ATTRIBUTE_FORMAT_REAL = 4; -const int CSSM_WORDID_LOGIN_NAME = 58; +const int CSSM_DB_ATTRIBUTE_FORMAT_TIME_DATE = 5; -const int CSSM_WORDID_MAC = 59; +const int CSSM_DB_ATTRIBUTE_FORMAT_BLOB = 6; -const int CSSM_WORDID_MD2 = 60; +const int CSSM_DB_ATTRIBUTE_FORMAT_MULTI_UINT32 = 7; -const int CSSM_WORDID_MD2WITHRSA = 61; +const int CSSM_DB_ATTRIBUTE_FORMAT_COMPLEX = 8; -const int CSSM_WORDID_MD4 = 62; +const int CSSM_DB_RECORDTYPE_SCHEMA_START = 0; -const int CSSM_WORDID_MD5 = 63; +const int CSSM_DB_RECORDTYPE_SCHEMA_END = 4; -const int CSSM_WORDID_MD5WITHRSA = 64; +const int CSSM_DB_RECORDTYPE_OPEN_GROUP_START = 10; -const int CSSM_WORDID_N = 65; +const int CSSM_DB_RECORDTYPE_OPEN_GROUP_END = 18; -const int CSSM_WORDID_NAME = 66; +const int CSSM_DB_RECORDTYPE_APP_DEFINED_START = -2147483648; -const int CSSM_WORDID_NDR = 67; +const int CSSM_DB_RECORDTYPE_APP_DEFINED_END = -1; -const int CSSM_WORDID_NHASH = 68; +const int CSSM_DL_DB_SCHEMA_INFO = 0; -const int CSSM_WORDID_NOT_AFTER = 69; +const int CSSM_DL_DB_SCHEMA_INDEXES = 1; -const int CSSM_WORDID_NOT_BEFORE = 70; +const int CSSM_DL_DB_SCHEMA_ATTRIBUTES = 2; -const int CSSM_WORDID_NULL = 71; +const int CSSM_DL_DB_SCHEMA_PARSING_MODULE = 3; -const int CSSM_WORDID_NUMERIC = 72; +const int CSSM_DL_DB_RECORD_ANY = 10; -const int CSSM_WORDID_OBJECT_HASH = 73; +const int CSSM_DL_DB_RECORD_CERT = 11; -const int CSSM_WORDID_ONE_TIME = 74; +const int CSSM_DL_DB_RECORD_CRL = 12; -const int CSSM_WORDID_ONLINE = 75; +const int CSSM_DL_DB_RECORD_POLICY = 13; -const int CSSM_WORDID_OWNER = 76; +const int CSSM_DL_DB_RECORD_GENERIC = 14; -const int CSSM_WORDID_P = 77; +const int CSSM_DL_DB_RECORD_PUBLIC_KEY = 15; -const int CSSM_WORDID_PAM_NAME = 78; +const int CSSM_DL_DB_RECORD_PRIVATE_KEY = 16; -const int CSSM_WORDID_PASSWORD = 79; +const int CSSM_DL_DB_RECORD_SYMMETRIC_KEY = 17; -const int CSSM_WORDID_PGP = 80; +const int CSSM_DL_DB_RECORD_ALL_KEYS = 18; -const int CSSM_WORDID_PREFIX = 81; +const int CSSM_DB_CERT_USE_TRUSTED = 1; -const int CSSM_WORDID_PRIVATE_KEY = 82; +const int CSSM_DB_CERT_USE_SYSTEM = 2; -const int CSSM_WORDID_PROMPTED_BIOMETRIC = 83; +const int CSSM_DB_CERT_USE_OWNER = 4; -const int CSSM_WORDID_PROMPTED_PASSWORD = 84; +const int CSSM_DB_CERT_USE_REVOKED = 8; -const int CSSM_WORDID_PROPAGATE = 85; +const int CSSM_DB_CERT_USE_SIGNING = 16; -const int CSSM_WORDID_PROTECTED_BIOMETRIC = 86; +const int CSSM_DB_CERT_USE_PRIVACY = 32; -const int CSSM_WORDID_PROTECTED_PASSWORD = 87; +const int CSSM_DB_INDEX_UNIQUE = 0; -const int CSSM_WORDID_PROTECTED_PIN = 88; +const int CSSM_DB_INDEX_NONUNIQUE = 1; -const int CSSM_WORDID_PUBLIC_KEY = 89; +const int CSSM_DB_INDEX_ON_UNKNOWN = 0; -const int CSSM_WORDID_PUBLIC_KEY_FROM_CERT = 90; +const int CSSM_DB_INDEX_ON_ATTRIBUTE = 1; -const int CSSM_WORDID_Q = 91; +const int CSSM_DB_INDEX_ON_RECORD = 2; -const int CSSM_WORDID_RANGE = 92; +const int CSSM_DB_ACCESS_READ = 1; -const int CSSM_WORDID_REVAL = 93; +const int CSSM_DB_ACCESS_WRITE = 2; -const int CSSM_WORDID_RIPEMAC = 94; +const int CSSM_DB_ACCESS_PRIVILEGED = 4; -const int CSSM_WORDID_RIPEMD = 95; +const int CSSM_DB_MODIFY_ATTRIBUTE_NONE = 0; -const int CSSM_WORDID_RIPEMD160 = 96; +const int CSSM_DB_MODIFY_ATTRIBUTE_ADD = 1; -const int CSSM_WORDID_RSA = 97; +const int CSSM_DB_MODIFY_ATTRIBUTE_DELETE = 2; -const int CSSM_WORDID_RSA_ISO9796 = 98; +const int CSSM_DB_MODIFY_ATTRIBUTE_REPLACE = 3; -const int CSSM_WORDID_RSA_PKCS = 99; +const int CSSM_DB_EQUAL = 0; -const int CSSM_WORDID_RSA_PKCS_MD5 = 100; +const int CSSM_DB_NOT_EQUAL = 1; -const int CSSM_WORDID_RSA_PKCS_SHA1 = 101; +const int CSSM_DB_LESS_THAN = 2; -const int CSSM_WORDID_RSA_PKCS1 = 102; +const int CSSM_DB_GREATER_THAN = 3; -const int CSSM_WORDID_RSA_PKCS1_MD5 = 103; +const int CSSM_DB_CONTAINS = 4; -const int CSSM_WORDID_RSA_PKCS1_SHA1 = 104; +const int CSSM_DB_CONTAINS_INITIAL_SUBSTRING = 5; -const int CSSM_WORDID_RSA_PKCS1_SIG = 105; +const int CSSM_DB_CONTAINS_FINAL_SUBSTRING = 6; -const int CSSM_WORDID_RSA_RAW = 106; +const int CSSM_DB_NONE = 0; -const int CSSM_WORDID_SDSIV1 = 107; +const int CSSM_DB_AND = 1; -const int CSSM_WORDID_SEQUENCE = 108; +const int CSSM_DB_OR = 2; -const int CSSM_WORDID_SET = 109; +const int CSSM_QUERY_TIMELIMIT_NONE = 0; -const int CSSM_WORDID_SEXPR = 110; +const int CSSM_QUERY_SIZELIMIT_NONE = 0; -const int CSSM_WORDID_SHA1 = 111; +const int CSSM_QUERY_RETURN_DATA = 1; -const int CSSM_WORDID_SHA1WITHDSA = 112; +const int CSSM_DL_UNKNOWN = 0; -const int CSSM_WORDID_SHA1WITHECDSA = 113; +const int CSSM_DL_CUSTOM = 1; -const int CSSM_WORDID_SHA1WITHRSA = 114; +const int CSSM_DL_LDAP = 2; -const int CSSM_WORDID_SIGN = 115; +const int CSSM_DL_ODBC = 3; -const int CSSM_WORDID_SIGNATURE = 116; +const int CSSM_DL_PKCS11 = 4; -const int CSSM_WORDID_SIGNED_NONCE = 117; +const int CSSM_DL_FFS = 5; -const int CSSM_WORDID_SIGNED_SECRET = 118; +const int CSSM_DL_MEMORY = 6; -const int CSSM_WORDID_SPKI = 119; +const int CSSM_DL_REMOTEDIR = 7; -const int CSSM_WORDID_SUBJECT = 120; +const int CSSM_DB_DATASTORES_UNKNOWN = -1; -const int CSSM_WORDID_SUBJECT_INFO = 121; +const int CSSM_DB_TRANSACTIONAL_MODE = 0; -const int CSSM_WORDID_TAG = 122; +const int CSSM_DB_FILESYSTEMSCAN_MODE = 1; -const int CSSM_WORDID_THRESHOLD = 123; +const int CSSM_BASE_ERROR = -2147418112; -const int CSSM_WORDID_TIME = 124; +const int CSSM_ERRORCODE_MODULE_EXTENT = 2048; -const int CSSM_WORDID_URI = 125; +const int CSSM_ERRORCODE_CUSTOM_OFFSET = 1024; -const int CSSM_WORDID_VERSION = 126; +const int CSSM_ERRORCODE_COMMON_EXTENT = 256; -const int CSSM_WORDID_X509_ATTRIBUTE = 127; +const int CSSM_CSSM_BASE_ERROR = -2147418112; -const int CSSM_WORDID_X509V1 = 128; +const int CSSM_CSSM_PRIVATE_ERROR = -2147417088; -const int CSSM_WORDID_X509V2 = 129; +const int CSSM_CSP_BASE_ERROR = -2147416064; -const int CSSM_WORDID_X509V3 = 130; +const int CSSM_CSP_PRIVATE_ERROR = -2147415040; -const int CSSM_WORDID_X9_ATTRIBUTE = 131; +const int CSSM_DL_BASE_ERROR = -2147414016; -const int CSSM_WORDID_VENDOR_START = 65536; +const int CSSM_DL_PRIVATE_ERROR = -2147412992; -const int CSSM_WORDID_VENDOR_END = 2147418112; +const int CSSM_CL_BASE_ERROR = -2147411968; -const int CSSM_LIST_ELEMENT_DATUM = 0; +const int CSSM_CL_PRIVATE_ERROR = -2147410944; -const int CSSM_LIST_ELEMENT_SUBLIST = 1; +const int CSSM_TP_BASE_ERROR = -2147409920; -const int CSSM_LIST_ELEMENT_WORDID = 2; +const int CSSM_TP_PRIVATE_ERROR = -2147408896; -const int CSSM_LIST_TYPE_UNKNOWN = 0; +const int CSSM_KR_BASE_ERROR = -2147407872; -const int CSSM_LIST_TYPE_CUSTOM = 1; +const int CSSM_KR_PRIVATE_ERROR = -2147406848; -const int CSSM_LIST_TYPE_SEXPR = 2; +const int CSSM_AC_BASE_ERROR = -2147405824; -const int CSSM_SAMPLE_TYPE_PASSWORD = 79; +const int CSSM_AC_PRIVATE_ERROR = -2147404800; -const int CSSM_SAMPLE_TYPE_HASHED_PASSWORD = 43; +const int CSSM_MDS_BASE_ERROR = -2147414016; -const int CSSM_SAMPLE_TYPE_PROTECTED_PASSWORD = 87; +const int CSSM_MDS_PRIVATE_ERROR = -2147412992; -const int CSSM_SAMPLE_TYPE_PROMPTED_PASSWORD = 84; +const int CSSMERR_CSSM_INVALID_ADDIN_HANDLE = -2147417855; -const int CSSM_SAMPLE_TYPE_SIGNED_NONCE = 117; +const int CSSMERR_CSSM_NOT_INITIALIZED = -2147417854; -const int CSSM_SAMPLE_TYPE_SIGNED_SECRET = 118; +const int CSSMERR_CSSM_INVALID_HANDLE_USAGE = -2147417853; -const int CSSM_SAMPLE_TYPE_BIOMETRIC = 8; +const int CSSMERR_CSSM_PVC_REFERENT_NOT_FOUND = -2147417852; -const int CSSM_SAMPLE_TYPE_PROTECTED_BIOMETRIC = 86; +const int CSSMERR_CSSM_FUNCTION_INTEGRITY_FAIL = -2147417851; -const int CSSM_SAMPLE_TYPE_PROMPTED_BIOMETRIC = 83; +const int CSSM_ERRCODE_INTERNAL_ERROR = 1; -const int CSSM_SAMPLE_TYPE_THRESHOLD = 123; +const int CSSM_ERRCODE_MEMORY_ERROR = 2; -const int CSSM_CERT_UNKNOWN = 0; +const int CSSM_ERRCODE_MDS_ERROR = 3; -const int CSSM_CERT_X_509v1 = 1; +const int CSSM_ERRCODE_INVALID_POINTER = 4; -const int CSSM_CERT_X_509v2 = 2; +const int CSSM_ERRCODE_INVALID_INPUT_POINTER = 5; -const int CSSM_CERT_X_509v3 = 3; +const int CSSM_ERRCODE_INVALID_OUTPUT_POINTER = 6; -const int CSSM_CERT_PGP = 4; +const int CSSM_ERRCODE_FUNCTION_NOT_IMPLEMENTED = 7; -const int CSSM_CERT_SPKI = 5; +const int CSSM_ERRCODE_SELF_CHECK_FAILED = 8; -const int CSSM_CERT_SDSIv1 = 6; +const int CSSM_ERRCODE_OS_ACCESS_DENIED = 9; -const int CSSM_CERT_Intel = 8; +const int CSSM_ERRCODE_FUNCTION_FAILED = 10; -const int CSSM_CERT_X_509_ATTRIBUTE = 9; +const int CSSM_ERRCODE_MODULE_MANIFEST_VERIFY_FAILED = 11; -const int CSSM_CERT_X9_ATTRIBUTE = 10; +const int CSSM_ERRCODE_INVALID_GUID = 12; -const int CSSM_CERT_TUPLE = 11; +const int CSSM_ERRCODE_OPERATION_AUTH_DENIED = 32; -const int CSSM_CERT_ACL_ENTRY = 12; +const int CSSM_ERRCODE_OBJECT_USE_AUTH_DENIED = 33; -const int CSSM_CERT_MULTIPLE = 32766; +const int CSSM_ERRCODE_OBJECT_MANIP_AUTH_DENIED = 34; -const int CSSM_CERT_LAST = 32767; +const int CSSM_ERRCODE_OBJECT_ACL_NOT_SUPPORTED = 35; -const int CSSM_CL_CUSTOM_CERT_TYPE = 32768; +const int CSSM_ERRCODE_OBJECT_ACL_REQUIRED = 36; -const int CSSM_CERT_ENCODING_UNKNOWN = 0; +const int CSSM_ERRCODE_INVALID_ACCESS_CREDENTIALS = 37; -const int CSSM_CERT_ENCODING_CUSTOM = 1; +const int CSSM_ERRCODE_INVALID_ACL_BASE_CERTS = 38; -const int CSSM_CERT_ENCODING_BER = 2; +const int CSSM_ERRCODE_ACL_BASE_CERTS_NOT_SUPPORTED = 39; -const int CSSM_CERT_ENCODING_DER = 3; +const int CSSM_ERRCODE_INVALID_SAMPLE_VALUE = 40; -const int CSSM_CERT_ENCODING_NDR = 4; +const int CSSM_ERRCODE_SAMPLE_VALUE_NOT_SUPPORTED = 41; -const int CSSM_CERT_ENCODING_SEXPR = 5; +const int CSSM_ERRCODE_INVALID_ACL_SUBJECT_VALUE = 42; -const int CSSM_CERT_ENCODING_PGP = 6; +const int CSSM_ERRCODE_ACL_SUBJECT_TYPE_NOT_SUPPORTED = 43; -const int CSSM_CERT_ENCODING_MULTIPLE = 32766; +const int CSSM_ERRCODE_INVALID_ACL_CHALLENGE_CALLBACK = 44; -const int CSSM_CERT_ENCODING_LAST = 32767; +const int CSSM_ERRCODE_ACL_CHALLENGE_CALLBACK_FAILED = 45; -const int CSSM_CL_CUSTOM_CERT_ENCODING = 32768; +const int CSSM_ERRCODE_INVALID_ACL_ENTRY_TAG = 46; -const int CSSM_CERT_PARSE_FORMAT_NONE = 0; +const int CSSM_ERRCODE_ACL_ENTRY_TAG_NOT_FOUND = 47; -const int CSSM_CERT_PARSE_FORMAT_CUSTOM = 1; +const int CSSM_ERRCODE_INVALID_ACL_EDIT_MODE = 48; -const int CSSM_CERT_PARSE_FORMAT_SEXPR = 2; +const int CSSM_ERRCODE_ACL_CHANGE_FAILED = 49; -const int CSSM_CERT_PARSE_FORMAT_COMPLEX = 3; +const int CSSM_ERRCODE_INVALID_NEW_ACL_ENTRY = 50; -const int CSSM_CERT_PARSE_FORMAT_OID_NAMED = 4; +const int CSSM_ERRCODE_INVALID_NEW_ACL_OWNER = 51; -const int CSSM_CERT_PARSE_FORMAT_TUPLE = 5; +const int CSSM_ERRCODE_ACL_DELETE_FAILED = 52; -const int CSSM_CERT_PARSE_FORMAT_MULTIPLE = 32766; +const int CSSM_ERRCODE_ACL_REPLACE_FAILED = 53; -const int CSSM_CERT_PARSE_FORMAT_LAST = 32767; +const int CSSM_ERRCODE_ACL_ADD_FAILED = 54; -const int CSSM_CL_CUSTOM_CERT_PARSE_FORMAT = 32768; +const int CSSM_ERRCODE_INVALID_CONTEXT_HANDLE = 64; -const int CSSM_CERTGROUP_DATA = 0; +const int CSSM_ERRCODE_INCOMPATIBLE_VERSION = 65; -const int CSSM_CERTGROUP_ENCODED_CERT = 1; +const int CSSM_ERRCODE_INVALID_CERTGROUP_POINTER = 66; -const int CSSM_CERTGROUP_PARSED_CERT = 2; +const int CSSM_ERRCODE_INVALID_CERT_POINTER = 67; -const int CSSM_CERTGROUP_CERT_PAIR = 3; +const int CSSM_ERRCODE_INVALID_CRL_POINTER = 68; -const int CSSM_ACL_SUBJECT_TYPE_ANY = 1; +const int CSSM_ERRCODE_INVALID_FIELD_POINTER = 69; -const int CSSM_ACL_SUBJECT_TYPE_THRESHOLD = 123; +const int CSSM_ERRCODE_INVALID_DATA = 70; -const int CSSM_ACL_SUBJECT_TYPE_PASSWORD = 79; +const int CSSM_ERRCODE_CRL_ALREADY_SIGNED = 71; -const int CSSM_ACL_SUBJECT_TYPE_PROTECTED_PASSWORD = 87; +const int CSSM_ERRCODE_INVALID_NUMBER_OF_FIELDS = 72; -const int CSSM_ACL_SUBJECT_TYPE_PROMPTED_PASSWORD = 84; +const int CSSM_ERRCODE_VERIFICATION_FAILURE = 73; -const int CSSM_ACL_SUBJECT_TYPE_PUBLIC_KEY = 89; +const int CSSM_ERRCODE_INVALID_DB_HANDLE = 74; -const int CSSM_ACL_SUBJECT_TYPE_HASHED_SUBJECT = 44; +const int CSSM_ERRCODE_PRIVILEGE_NOT_GRANTED = 75; -const int CSSM_ACL_SUBJECT_TYPE_BIOMETRIC = 8; +const int CSSM_ERRCODE_INVALID_DB_LIST = 76; -const int CSSM_ACL_SUBJECT_TYPE_PROTECTED_BIOMETRIC = 86; +const int CSSM_ERRCODE_INVALID_DB_LIST_POINTER = 77; -const int CSSM_ACL_SUBJECT_TYPE_PROMPTED_BIOMETRIC = 83; +const int CSSM_ERRCODE_UNKNOWN_FORMAT = 78; -const int CSSM_ACL_SUBJECT_TYPE_LOGIN_NAME = 58; +const int CSSM_ERRCODE_UNKNOWN_TAG = 79; -const int CSSM_ACL_SUBJECT_TYPE_EXT_PAM_NAME = 78; +const int CSSM_ERRCODE_INVALID_CSP_HANDLE = 80; -const int CSSM_ACL_AUTHORIZATION_TAG_VENDOR_DEFINED_START = 65536; +const int CSSM_ERRCODE_INVALID_DL_HANDLE = 81; -const int CSSM_ACL_AUTHORIZATION_ANY = 1; +const int CSSM_ERRCODE_INVALID_CL_HANDLE = 82; -const int CSSM_ACL_AUTHORIZATION_LOGIN = 57; +const int CSSM_ERRCODE_INVALID_TP_HANDLE = 83; -const int CSSM_ACL_AUTHORIZATION_GENKEY = 41; +const int CSSM_ERRCODE_INVALID_KR_HANDLE = 84; -const int CSSM_ACL_AUTHORIZATION_DELETE = 25; +const int CSSM_ERRCODE_INVALID_AC_HANDLE = 85; -const int CSSM_ACL_AUTHORIZATION_EXPORT_WRAPPED = 38; +const int CSSM_ERRCODE_INVALID_PASSTHROUGH_ID = 86; -const int CSSM_ACL_AUTHORIZATION_EXPORT_CLEAR = 37; +const int CSSM_ERRCODE_INVALID_NETWORK_ADDR = 87; -const int CSSM_ACL_AUTHORIZATION_IMPORT_WRAPPED = 48; +const int CSSM_ERRCODE_INVALID_CRYPTO_DATA = 88; -const int CSSM_ACL_AUTHORIZATION_IMPORT_CLEAR = 47; +const int CSSMERR_CSSM_INTERNAL_ERROR = -2147418111; -const int CSSM_ACL_AUTHORIZATION_SIGN = 115; +const int CSSMERR_CSSM_MEMORY_ERROR = -2147418110; -const int CSSM_ACL_AUTHORIZATION_ENCRYPT = 35; +const int CSSMERR_CSSM_MDS_ERROR = -2147418109; -const int CSSM_ACL_AUTHORIZATION_DECRYPT = 24; +const int CSSMERR_CSSM_INVALID_POINTER = -2147418108; -const int CSSM_ACL_AUTHORIZATION_MAC = 59; +const int CSSMERR_CSSM_INVALID_INPUT_POINTER = -2147418107; -const int CSSM_ACL_AUTHORIZATION_DERIVE = 28; +const int CSSMERR_CSSM_INVALID_OUTPUT_POINTER = -2147418106; -const int CSSM_ACL_AUTHORIZATION_DBS_CREATE = 22; +const int CSSMERR_CSSM_FUNCTION_NOT_IMPLEMENTED = -2147418105; -const int CSSM_ACL_AUTHORIZATION_DBS_DELETE = 23; +const int CSSMERR_CSSM_SELF_CHECK_FAILED = -2147418104; -const int CSSM_ACL_AUTHORIZATION_DB_READ = 21; +const int CSSMERR_CSSM_OS_ACCESS_DENIED = -2147418103; -const int CSSM_ACL_AUTHORIZATION_DB_INSERT = 19; +const int CSSMERR_CSSM_FUNCTION_FAILED = -2147418102; -const int CSSM_ACL_AUTHORIZATION_DB_MODIFY = 20; +const int CSSMERR_CSSM_MODULE_MANIFEST_VERIFY_FAILED = -2147418101; -const int CSSM_ACL_AUTHORIZATION_DB_DELETE = 17; +const int CSSMERR_CSSM_INVALID_GUID = -2147418100; -const int CSSM_ACL_EDIT_MODE_ADD = 1; +const int CSSMERR_CSSM_INVALID_CONTEXT_HANDLE = -2147418048; -const int CSSM_ACL_EDIT_MODE_DELETE = 2; +const int CSSMERR_CSSM_INCOMPATIBLE_VERSION = -2147418047; -const int CSSM_ACL_EDIT_MODE_REPLACE = 3; +const int CSSMERR_CSSM_PRIVILEGE_NOT_GRANTED = -2147418037; -const int CSSM_KEYHEADER_VERSION = 2; +const int CSSM_CSSM_BASE_CSSM_ERROR = -2147417840; -const int CSSM_KEYBLOB_RAW = 0; +const int CSSMERR_CSSM_SCOPE_NOT_SUPPORTED = -2147417839; -const int CSSM_KEYBLOB_REFERENCE = 2; +const int CSSMERR_CSSM_PVC_ALREADY_CONFIGURED = -2147417838; -const int CSSM_KEYBLOB_WRAPPED = 3; +const int CSSMERR_CSSM_INVALID_PVC = -2147417837; -const int CSSM_KEYBLOB_OTHER = -1; +const int CSSMERR_CSSM_EMM_LOAD_FAILED = -2147417836; -const int CSSM_KEYBLOB_RAW_FORMAT_NONE = 0; +const int CSSMERR_CSSM_EMM_UNLOAD_FAILED = -2147417835; -const int CSSM_KEYBLOB_RAW_FORMAT_PKCS1 = 1; +const int CSSMERR_CSSM_ADDIN_LOAD_FAILED = -2147417834; -const int CSSM_KEYBLOB_RAW_FORMAT_PKCS3 = 2; +const int CSSMERR_CSSM_INVALID_KEY_HIERARCHY = -2147417833; -const int CSSM_KEYBLOB_RAW_FORMAT_MSCAPI = 3; +const int CSSMERR_CSSM_ADDIN_UNLOAD_FAILED = -2147417832; -const int CSSM_KEYBLOB_RAW_FORMAT_PGP = 4; +const int CSSMERR_CSSM_LIB_REF_NOT_FOUND = -2147417831; -const int CSSM_KEYBLOB_RAW_FORMAT_FIPS186 = 5; +const int CSSMERR_CSSM_INVALID_ADDIN_FUNCTION_TABLE = -2147417830; -const int CSSM_KEYBLOB_RAW_FORMAT_BSAFE = 6; +const int CSSMERR_CSSM_EMM_AUTHENTICATE_FAILED = -2147417829; -const int CSSM_KEYBLOB_RAW_FORMAT_CCA = 9; +const int CSSMERR_CSSM_ADDIN_AUTHENTICATE_FAILED = -2147417828; -const int CSSM_KEYBLOB_RAW_FORMAT_PKCS8 = 10; +const int CSSMERR_CSSM_INVALID_SERVICE_MASK = -2147417827; -const int CSSM_KEYBLOB_RAW_FORMAT_SPKI = 11; +const int CSSMERR_CSSM_MODULE_NOT_LOADED = -2147417826; -const int CSSM_KEYBLOB_RAW_FORMAT_OCTET_STRING = 12; +const int CSSMERR_CSSM_INVALID_SUBSERVICEID = -2147417825; -const int CSSM_KEYBLOB_RAW_FORMAT_OTHER = -1; +const int CSSMERR_CSSM_BUFFER_TOO_SMALL = -2147417824; -const int CSSM_KEYBLOB_WRAPPED_FORMAT_NONE = 0; +const int CSSMERR_CSSM_INVALID_ATTRIBUTE = -2147417823; -const int CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS8 = 1; +const int CSSMERR_CSSM_ATTRIBUTE_NOT_IN_CONTEXT = -2147417822; -const int CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS7 = 2; +const int CSSMERR_CSSM_MODULE_MANAGER_INITIALIZE_FAIL = -2147417821; -const int CSSM_KEYBLOB_WRAPPED_FORMAT_MSCAPI = 3; +const int CSSMERR_CSSM_MODULE_MANAGER_NOT_FOUND = -2147417820; -const int CSSM_KEYBLOB_WRAPPED_FORMAT_OTHER = -1; +const int CSSMERR_CSSM_EVENT_NOTIFICATION_CALLBACK_NOT_FOUND = -2147417819; -const int CSSM_KEYBLOB_REF_FORMAT_INTEGER = 0; +const int CSSMERR_CSP_INTERNAL_ERROR = -2147416063; -const int CSSM_KEYBLOB_REF_FORMAT_STRING = 1; +const int CSSMERR_CSP_MEMORY_ERROR = -2147416062; -const int CSSM_KEYBLOB_REF_FORMAT_SPKI = 2; +const int CSSMERR_CSP_MDS_ERROR = -2147416061; -const int CSSM_KEYBLOB_REF_FORMAT_OTHER = -1; +const int CSSMERR_CSP_INVALID_POINTER = -2147416060; -const int CSSM_KEYCLASS_PUBLIC_KEY = 0; +const int CSSMERR_CSP_INVALID_INPUT_POINTER = -2147416059; -const int CSSM_KEYCLASS_PRIVATE_KEY = 1; +const int CSSMERR_CSP_INVALID_OUTPUT_POINTER = -2147416058; -const int CSSM_KEYCLASS_SESSION_KEY = 2; +const int CSSMERR_CSP_FUNCTION_NOT_IMPLEMENTED = -2147416057; -const int CSSM_KEYCLASS_SECRET_PART = 3; +const int CSSMERR_CSP_SELF_CHECK_FAILED = -2147416056; -const int CSSM_KEYCLASS_OTHER = -1; +const int CSSMERR_CSP_OS_ACCESS_DENIED = -2147416055; -const int CSSM_KEYATTR_RETURN_DEFAULT = 0; +const int CSSMERR_CSP_FUNCTION_FAILED = -2147416054; -const int CSSM_KEYATTR_RETURN_DATA = 268435456; +const int CSSMERR_CSP_OPERATION_AUTH_DENIED = -2147416032; -const int CSSM_KEYATTR_RETURN_REF = 536870912; +const int CSSMERR_CSP_OBJECT_USE_AUTH_DENIED = -2147416031; -const int CSSM_KEYATTR_RETURN_NONE = 1073741824; +const int CSSMERR_CSP_OBJECT_MANIP_AUTH_DENIED = -2147416030; -const int CSSM_KEYATTR_PERMANENT = 1; +const int CSSMERR_CSP_OBJECT_ACL_NOT_SUPPORTED = -2147416029; -const int CSSM_KEYATTR_PRIVATE = 2; +const int CSSMERR_CSP_OBJECT_ACL_REQUIRED = -2147416028; -const int CSSM_KEYATTR_MODIFIABLE = 4; +const int CSSMERR_CSP_INVALID_ACCESS_CREDENTIALS = -2147416027; -const int CSSM_KEYATTR_SENSITIVE = 8; +const int CSSMERR_CSP_INVALID_ACL_BASE_CERTS = -2147416026; -const int CSSM_KEYATTR_EXTRACTABLE = 32; +const int CSSMERR_CSP_ACL_BASE_CERTS_NOT_SUPPORTED = -2147416025; -const int CSSM_KEYATTR_ALWAYS_SENSITIVE = 16; +const int CSSMERR_CSP_INVALID_SAMPLE_VALUE = -2147416024; -const int CSSM_KEYATTR_NEVER_EXTRACTABLE = 64; +const int CSSMERR_CSP_SAMPLE_VALUE_NOT_SUPPORTED = -2147416023; -const int CSSM_KEYUSE_ANY = -2147483648; +const int CSSMERR_CSP_INVALID_ACL_SUBJECT_VALUE = -2147416022; -const int CSSM_KEYUSE_ENCRYPT = 1; +const int CSSMERR_CSP_ACL_SUBJECT_TYPE_NOT_SUPPORTED = -2147416021; -const int CSSM_KEYUSE_DECRYPT = 2; +const int CSSMERR_CSP_INVALID_ACL_CHALLENGE_CALLBACK = -2147416020; -const int CSSM_KEYUSE_SIGN = 4; +const int CSSMERR_CSP_ACL_CHALLENGE_CALLBACK_FAILED = -2147416019; -const int CSSM_KEYUSE_VERIFY = 8; +const int CSSMERR_CSP_INVALID_ACL_ENTRY_TAG = -2147416018; -const int CSSM_KEYUSE_SIGN_RECOVER = 16; +const int CSSMERR_CSP_ACL_ENTRY_TAG_NOT_FOUND = -2147416017; -const int CSSM_KEYUSE_VERIFY_RECOVER = 32; +const int CSSMERR_CSP_INVALID_ACL_EDIT_MODE = -2147416016; -const int CSSM_KEYUSE_WRAP = 64; +const int CSSMERR_CSP_ACL_CHANGE_FAILED = -2147416015; -const int CSSM_KEYUSE_UNWRAP = 128; +const int CSSMERR_CSP_INVALID_NEW_ACL_ENTRY = -2147416014; -const int CSSM_KEYUSE_DERIVE = 256; +const int CSSMERR_CSP_INVALID_NEW_ACL_OWNER = -2147416013; -const int CSSM_ALGID_NONE = 0; +const int CSSMERR_CSP_ACL_DELETE_FAILED = -2147416012; -const int CSSM_ALGID_CUSTOM = 1; +const int CSSMERR_CSP_ACL_REPLACE_FAILED = -2147416011; -const int CSSM_ALGID_DH = 2; +const int CSSMERR_CSP_ACL_ADD_FAILED = -2147416010; -const int CSSM_ALGID_PH = 3; +const int CSSMERR_CSP_INVALID_CONTEXT_HANDLE = -2147416000; -const int CSSM_ALGID_KEA = 4; +const int CSSMERR_CSP_PRIVILEGE_NOT_GRANTED = -2147415989; -const int CSSM_ALGID_MD2 = 5; +const int CSSMERR_CSP_INVALID_DATA = -2147415994; -const int CSSM_ALGID_MD4 = 6; +const int CSSMERR_CSP_INVALID_PASSTHROUGH_ID = -2147415978; -const int CSSM_ALGID_MD5 = 7; +const int CSSMERR_CSP_INVALID_CRYPTO_DATA = -2147415976; -const int CSSM_ALGID_SHA1 = 8; +const int CSSM_CSP_BASE_CSP_ERROR = -2147415808; -const int CSSM_ALGID_NHASH = 9; +const int CSSMERR_CSP_INPUT_LENGTH_ERROR = -2147415807; -const int CSSM_ALGID_HAVAL = 10; +const int CSSMERR_CSP_OUTPUT_LENGTH_ERROR = -2147415806; -const int CSSM_ALGID_RIPEMD = 11; +const int CSSMERR_CSP_PRIVILEGE_NOT_SUPPORTED = -2147415805; -const int CSSM_ALGID_IBCHASH = 12; +const int CSSMERR_CSP_DEVICE_ERROR = -2147415804; -const int CSSM_ALGID_RIPEMAC = 13; +const int CSSMERR_CSP_DEVICE_MEMORY_ERROR = -2147415803; -const int CSSM_ALGID_DES = 14; +const int CSSMERR_CSP_ATTACH_HANDLE_BUSY = -2147415802; -const int CSSM_ALGID_DESX = 15; +const int CSSMERR_CSP_NOT_LOGGED_IN = -2147415801; -const int CSSM_ALGID_RDES = 16; +const int CSSMERR_CSP_INVALID_KEY = -2147415792; -const int CSSM_ALGID_3DES_3KEY_EDE = 17; +const int CSSMERR_CSP_INVALID_KEY_REFERENCE = -2147415791; -const int CSSM_ALGID_3DES_2KEY_EDE = 18; +const int CSSMERR_CSP_INVALID_KEY_CLASS = -2147415790; -const int CSSM_ALGID_3DES_1KEY_EEE = 19; +const int CSSMERR_CSP_ALGID_MISMATCH = -2147415789; -const int CSSM_ALGID_3DES_3KEY = 17; +const int CSSMERR_CSP_KEY_USAGE_INCORRECT = -2147415788; -const int CSSM_ALGID_3DES_3KEY_EEE = 20; +const int CSSMERR_CSP_KEY_BLOB_TYPE_INCORRECT = -2147415787; -const int CSSM_ALGID_3DES_2KEY = 18; +const int CSSMERR_CSP_KEY_HEADER_INCONSISTENT = -2147415786; -const int CSSM_ALGID_3DES_2KEY_EEE = 21; +const int CSSMERR_CSP_UNSUPPORTED_KEY_FORMAT = -2147415785; -const int CSSM_ALGID_3DES_1KEY = 20; +const int CSSMERR_CSP_UNSUPPORTED_KEY_SIZE = -2147415784; -const int CSSM_ALGID_IDEA = 22; +const int CSSMERR_CSP_INVALID_KEY_POINTER = -2147415783; -const int CSSM_ALGID_RC2 = 23; +const int CSSMERR_CSP_INVALID_KEYUSAGE_MASK = -2147415782; -const int CSSM_ALGID_RC5 = 24; +const int CSSMERR_CSP_UNSUPPORTED_KEYUSAGE_MASK = -2147415781; -const int CSSM_ALGID_RC4 = 25; +const int CSSMERR_CSP_INVALID_KEYATTR_MASK = -2147415780; -const int CSSM_ALGID_SEAL = 26; +const int CSSMERR_CSP_UNSUPPORTED_KEYATTR_MASK = -2147415779; -const int CSSM_ALGID_CAST = 27; +const int CSSMERR_CSP_INVALID_KEY_LABEL = -2147415778; -const int CSSM_ALGID_BLOWFISH = 28; +const int CSSMERR_CSP_UNSUPPORTED_KEY_LABEL = -2147415777; -const int CSSM_ALGID_SKIPJACK = 29; +const int CSSMERR_CSP_INVALID_KEY_FORMAT = -2147415776; -const int CSSM_ALGID_LUCIFER = 30; +const int CSSMERR_CSP_INVALID_DATA_COUNT = -2147415768; -const int CSSM_ALGID_MADRYGA = 31; +const int CSSMERR_CSP_VECTOR_OF_BUFS_UNSUPPORTED = -2147415767; -const int CSSM_ALGID_FEAL = 32; +const int CSSMERR_CSP_INVALID_INPUT_VECTOR = -2147415766; -const int CSSM_ALGID_REDOC = 33; +const int CSSMERR_CSP_INVALID_OUTPUT_VECTOR = -2147415765; -const int CSSM_ALGID_REDOC3 = 34; +const int CSSMERR_CSP_INVALID_CONTEXT = -2147415760; -const int CSSM_ALGID_LOKI = 35; +const int CSSMERR_CSP_INVALID_ALGORITHM = -2147415759; -const int CSSM_ALGID_KHUFU = 36; +const int CSSMERR_CSP_INVALID_ATTR_KEY = -2147415754; -const int CSSM_ALGID_KHAFRE = 37; +const int CSSMERR_CSP_MISSING_ATTR_KEY = -2147415753; -const int CSSM_ALGID_MMB = 38; +const int CSSMERR_CSP_INVALID_ATTR_INIT_VECTOR = -2147415752; -const int CSSM_ALGID_GOST = 39; +const int CSSMERR_CSP_MISSING_ATTR_INIT_VECTOR = -2147415751; -const int CSSM_ALGID_SAFER = 40; +const int CSSMERR_CSP_INVALID_ATTR_SALT = -2147415750; -const int CSSM_ALGID_CRAB = 41; +const int CSSMERR_CSP_MISSING_ATTR_SALT = -2147415749; -const int CSSM_ALGID_RSA = 42; +const int CSSMERR_CSP_INVALID_ATTR_PADDING = -2147415748; -const int CSSM_ALGID_DSA = 43; +const int CSSMERR_CSP_MISSING_ATTR_PADDING = -2147415747; -const int CSSM_ALGID_MD5WithRSA = 44; +const int CSSMERR_CSP_INVALID_ATTR_RANDOM = -2147415746; -const int CSSM_ALGID_MD2WithRSA = 45; +const int CSSMERR_CSP_MISSING_ATTR_RANDOM = -2147415745; -const int CSSM_ALGID_ElGamal = 46; +const int CSSMERR_CSP_INVALID_ATTR_SEED = -2147415744; -const int CSSM_ALGID_MD2Random = 47; +const int CSSMERR_CSP_MISSING_ATTR_SEED = -2147415743; -const int CSSM_ALGID_MD5Random = 48; +const int CSSMERR_CSP_INVALID_ATTR_PASSPHRASE = -2147415742; -const int CSSM_ALGID_SHARandom = 49; +const int CSSMERR_CSP_MISSING_ATTR_PASSPHRASE = -2147415741; -const int CSSM_ALGID_DESRandom = 50; +const int CSSMERR_CSP_INVALID_ATTR_KEY_LENGTH = -2147415740; -const int CSSM_ALGID_SHA1WithRSA = 51; +const int CSSMERR_CSP_MISSING_ATTR_KEY_LENGTH = -2147415739; -const int CSSM_ALGID_CDMF = 52; +const int CSSMERR_CSP_INVALID_ATTR_BLOCK_SIZE = -2147415738; -const int CSSM_ALGID_CAST3 = 53; +const int CSSMERR_CSP_MISSING_ATTR_BLOCK_SIZE = -2147415737; -const int CSSM_ALGID_CAST5 = 54; +const int CSSMERR_CSP_INVALID_ATTR_OUTPUT_SIZE = -2147415708; -const int CSSM_ALGID_GenericSecret = 55; +const int CSSMERR_CSP_MISSING_ATTR_OUTPUT_SIZE = -2147415707; -const int CSSM_ALGID_ConcatBaseAndKey = 56; +const int CSSMERR_CSP_INVALID_ATTR_ROUNDS = -2147415706; -const int CSSM_ALGID_ConcatKeyAndBase = 57; +const int CSSMERR_CSP_MISSING_ATTR_ROUNDS = -2147415705; -const int CSSM_ALGID_ConcatBaseAndData = 58; +const int CSSMERR_CSP_INVALID_ATTR_ALG_PARAMS = -2147415704; -const int CSSM_ALGID_ConcatDataAndBase = 59; +const int CSSMERR_CSP_MISSING_ATTR_ALG_PARAMS = -2147415703; -const int CSSM_ALGID_XORBaseAndData = 60; +const int CSSMERR_CSP_INVALID_ATTR_LABEL = -2147415702; -const int CSSM_ALGID_ExtractFromKey = 61; +const int CSSMERR_CSP_MISSING_ATTR_LABEL = -2147415701; -const int CSSM_ALGID_SSL3PrePrimaryGen = 62; +const int CSSMERR_CSP_INVALID_ATTR_KEY_TYPE = -2147415700; -const int CSSM_ALGID_SSL3PreMasterGen = 62; +const int CSSMERR_CSP_MISSING_ATTR_KEY_TYPE = -2147415699; -const int CSSM_ALGID_SSL3PrimaryDerive = 63; +const int CSSMERR_CSP_INVALID_ATTR_MODE = -2147415698; -const int CSSM_ALGID_SSL3MasterDerive = 63; +const int CSSMERR_CSP_MISSING_ATTR_MODE = -2147415697; -const int CSSM_ALGID_SSL3KeyAndMacDerive = 64; +const int CSSMERR_CSP_INVALID_ATTR_EFFECTIVE_BITS = -2147415696; -const int CSSM_ALGID_SSL3MD5_MAC = 65; +const int CSSMERR_CSP_MISSING_ATTR_EFFECTIVE_BITS = -2147415695; -const int CSSM_ALGID_SSL3SHA1_MAC = 66; +const int CSSMERR_CSP_INVALID_ATTR_START_DATE = -2147415694; -const int CSSM_ALGID_PKCS5_PBKDF1_MD5 = 67; +const int CSSMERR_CSP_MISSING_ATTR_START_DATE = -2147415693; -const int CSSM_ALGID_PKCS5_PBKDF1_MD2 = 68; +const int CSSMERR_CSP_INVALID_ATTR_END_DATE = -2147415692; -const int CSSM_ALGID_PKCS5_PBKDF1_SHA1 = 69; +const int CSSMERR_CSP_MISSING_ATTR_END_DATE = -2147415691; -const int CSSM_ALGID_WrapLynks = 70; +const int CSSMERR_CSP_INVALID_ATTR_VERSION = -2147415690; -const int CSSM_ALGID_WrapSET_OAEP = 71; +const int CSSMERR_CSP_MISSING_ATTR_VERSION = -2147415689; -const int CSSM_ALGID_BATON = 72; +const int CSSMERR_CSP_INVALID_ATTR_PRIME = -2147415688; -const int CSSM_ALGID_ECDSA = 73; +const int CSSMERR_CSP_MISSING_ATTR_PRIME = -2147415687; -const int CSSM_ALGID_MAYFLY = 74; +const int CSSMERR_CSP_INVALID_ATTR_BASE = -2147415686; -const int CSSM_ALGID_JUNIPER = 75; +const int CSSMERR_CSP_MISSING_ATTR_BASE = -2147415685; -const int CSSM_ALGID_FASTHASH = 76; +const int CSSMERR_CSP_INVALID_ATTR_SUBPRIME = -2147415684; -const int CSSM_ALGID_3DES = 77; +const int CSSMERR_CSP_MISSING_ATTR_SUBPRIME = -2147415683; -const int CSSM_ALGID_SSL3MD5 = 78; +const int CSSMERR_CSP_INVALID_ATTR_ITERATION_COUNT = -2147415682; -const int CSSM_ALGID_SSL3SHA1 = 79; +const int CSSMERR_CSP_MISSING_ATTR_ITERATION_COUNT = -2147415681; -const int CSSM_ALGID_FortezzaTimestamp = 80; +const int CSSMERR_CSP_INVALID_ATTR_DL_DB_HANDLE = -2147415680; -const int CSSM_ALGID_SHA1WithDSA = 81; +const int CSSMERR_CSP_MISSING_ATTR_DL_DB_HANDLE = -2147415679; -const int CSSM_ALGID_SHA1WithECDSA = 82; +const int CSSMERR_CSP_INVALID_ATTR_ACCESS_CREDENTIALS = -2147415678; -const int CSSM_ALGID_DSA_BSAFE = 83; +const int CSSMERR_CSP_MISSING_ATTR_ACCESS_CREDENTIALS = -2147415677; -const int CSSM_ALGID_ECDH = 84; +const int CSSMERR_CSP_INVALID_ATTR_PUBLIC_KEY_FORMAT = -2147415676; -const int CSSM_ALGID_ECMQV = 85; +const int CSSMERR_CSP_MISSING_ATTR_PUBLIC_KEY_FORMAT = -2147415675; -const int CSSM_ALGID_PKCS12_SHA1_PBE = 86; +const int CSSMERR_CSP_INVALID_ATTR_PRIVATE_KEY_FORMAT = -2147415674; -const int CSSM_ALGID_ECNRA = 87; +const int CSSMERR_CSP_MISSING_ATTR_PRIVATE_KEY_FORMAT = -2147415673; -const int CSSM_ALGID_SHA1WithECNRA = 88; +const int CSSMERR_CSP_INVALID_ATTR_SYMMETRIC_KEY_FORMAT = -2147415672; -const int CSSM_ALGID_ECES = 89; +const int CSSMERR_CSP_MISSING_ATTR_SYMMETRIC_KEY_FORMAT = -2147415671; -const int CSSM_ALGID_ECAES = 90; +const int CSSMERR_CSP_INVALID_ATTR_WRAPPED_KEY_FORMAT = -2147415670; -const int CSSM_ALGID_SHA1HMAC = 91; +const int CSSMERR_CSP_MISSING_ATTR_WRAPPED_KEY_FORMAT = -2147415669; -const int CSSM_ALGID_FIPS186Random = 92; +const int CSSMERR_CSP_STAGED_OPERATION_IN_PROGRESS = -2147415736; -const int CSSM_ALGID_ECC = 93; +const int CSSMERR_CSP_STAGED_OPERATION_NOT_STARTED = -2147415735; -const int CSSM_ALGID_MQV = 94; +const int CSSMERR_CSP_VERIFY_FAILED = -2147415734; -const int CSSM_ALGID_NRA = 95; +const int CSSMERR_CSP_INVALID_SIGNATURE = -2147415733; -const int CSSM_ALGID_IntelPlatformRandom = 96; +const int CSSMERR_CSP_QUERY_SIZE_UNKNOWN = -2147415732; -const int CSSM_ALGID_UTC = 97; +const int CSSMERR_CSP_BLOCK_SIZE_MISMATCH = -2147415731; -const int CSSM_ALGID_HAVAL3 = 98; +const int CSSMERR_CSP_PRIVATE_KEY_NOT_FOUND = -2147415730; -const int CSSM_ALGID_HAVAL4 = 99; +const int CSSMERR_CSP_PUBLIC_KEY_INCONSISTENT = -2147415729; -const int CSSM_ALGID_HAVAL5 = 100; +const int CSSMERR_CSP_DEVICE_VERIFY_FAILED = -2147415728; -const int CSSM_ALGID_TIGER = 101; +const int CSSMERR_CSP_INVALID_LOGIN_NAME = -2147415727; -const int CSSM_ALGID_MD5HMAC = 102; +const int CSSMERR_CSP_ALREADY_LOGGED_IN = -2147415726; -const int CSSM_ALGID_PKCS5_PBKDF2 = 103; +const int CSSMERR_CSP_PRIVATE_KEY_ALREADY_EXISTS = -2147415725; -const int CSSM_ALGID_RUNNING_COUNTER = 104; +const int CSSMERR_CSP_KEY_LABEL_ALREADY_EXISTS = -2147415724; -const int CSSM_ALGID_LAST = 2147483647; +const int CSSMERR_CSP_INVALID_DIGEST_ALGORITHM = -2147415723; -const int CSSM_ALGID_VENDOR_DEFINED = -2147483648; +const int CSSMERR_CSP_CRYPTO_DATA_CALLBACK_FAILED = -2147415722; -const int CSSM_ALGMODE_NONE = 0; +const int CSSMERR_TP_INTERNAL_ERROR = -2147409919; -const int CSSM_ALGMODE_CUSTOM = 1; +const int CSSMERR_TP_MEMORY_ERROR = -2147409918; -const int CSSM_ALGMODE_ECB = 2; +const int CSSMERR_TP_MDS_ERROR = -2147409917; -const int CSSM_ALGMODE_ECBPad = 3; +const int CSSMERR_TP_INVALID_POINTER = -2147409916; -const int CSSM_ALGMODE_CBC = 4; +const int CSSMERR_TP_INVALID_INPUT_POINTER = -2147409915; -const int CSSM_ALGMODE_CBC_IV8 = 5; +const int CSSMERR_TP_INVALID_OUTPUT_POINTER = -2147409914; -const int CSSM_ALGMODE_CBCPadIV8 = 6; +const int CSSMERR_TP_FUNCTION_NOT_IMPLEMENTED = -2147409913; -const int CSSM_ALGMODE_CFB = 7; +const int CSSMERR_TP_SELF_CHECK_FAILED = -2147409912; -const int CSSM_ALGMODE_CFB_IV8 = 8; +const int CSSMERR_TP_OS_ACCESS_DENIED = -2147409911; -const int CSSM_ALGMODE_CFBPadIV8 = 9; +const int CSSMERR_TP_FUNCTION_FAILED = -2147409910; -const int CSSM_ALGMODE_OFB = 10; +const int CSSMERR_TP_INVALID_CONTEXT_HANDLE = -2147409856; -const int CSSM_ALGMODE_OFB_IV8 = 11; +const int CSSMERR_TP_INVALID_DATA = -2147409850; -const int CSSM_ALGMODE_OFBPadIV8 = 12; +const int CSSMERR_TP_INVALID_DB_LIST = -2147409844; -const int CSSM_ALGMODE_COUNTER = 13; +const int CSSMERR_TP_INVALID_CERTGROUP_POINTER = -2147409854; -const int CSSM_ALGMODE_BC = 14; +const int CSSMERR_TP_INVALID_CERT_POINTER = -2147409853; -const int CSSM_ALGMODE_PCBC = 15; +const int CSSMERR_TP_INVALID_CRL_POINTER = -2147409852; -const int CSSM_ALGMODE_CBCC = 16; +const int CSSMERR_TP_INVALID_FIELD_POINTER = -2147409851; -const int CSSM_ALGMODE_OFBNLF = 17; +const int CSSMERR_TP_INVALID_NETWORK_ADDR = -2147409833; -const int CSSM_ALGMODE_PBC = 18; +const int CSSMERR_TP_CRL_ALREADY_SIGNED = -2147409849; -const int CSSM_ALGMODE_PFB = 19; +const int CSSMERR_TP_INVALID_NUMBER_OF_FIELDS = -2147409848; -const int CSSM_ALGMODE_CBCPD = 20; +const int CSSMERR_TP_VERIFICATION_FAILURE = -2147409847; -const int CSSM_ALGMODE_PUBLIC_KEY = 21; +const int CSSMERR_TP_INVALID_DB_HANDLE = -2147409846; -const int CSSM_ALGMODE_PRIVATE_KEY = 22; +const int CSSMERR_TP_UNKNOWN_FORMAT = -2147409842; -const int CSSM_ALGMODE_SHUFFLE = 23; +const int CSSMERR_TP_UNKNOWN_TAG = -2147409841; -const int CSSM_ALGMODE_ECB64 = 24; +const int CSSMERR_TP_INVALID_PASSTHROUGH_ID = -2147409834; -const int CSSM_ALGMODE_CBC64 = 25; +const int CSSMERR_TP_INVALID_CSP_HANDLE = -2147409840; -const int CSSM_ALGMODE_OFB64 = 26; +const int CSSMERR_TP_INVALID_DL_HANDLE = -2147409839; -const int CSSM_ALGMODE_CFB32 = 28; +const int CSSMERR_TP_INVALID_CL_HANDLE = -2147409838; -const int CSSM_ALGMODE_CFB16 = 29; +const int CSSMERR_TP_INVALID_DB_LIST_POINTER = -2147409843; -const int CSSM_ALGMODE_CFB8 = 30; +const int CSSM_TP_BASE_TP_ERROR = -2147409664; -const int CSSM_ALGMODE_WRAP = 31; +const int CSSMERR_TP_INVALID_CALLERAUTH_CONTEXT_POINTER = -2147409663; -const int CSSM_ALGMODE_PRIVATE_WRAP = 32; +const int CSSMERR_TP_INVALID_IDENTIFIER_POINTER = -2147409662; -const int CSSM_ALGMODE_RELAYX = 33; +const int CSSMERR_TP_INVALID_KEYCACHE_HANDLE = -2147409661; -const int CSSM_ALGMODE_ECB128 = 34; +const int CSSMERR_TP_INVALID_CERTGROUP = -2147409660; -const int CSSM_ALGMODE_ECB96 = 35; +const int CSSMERR_TP_INVALID_CRLGROUP = -2147409659; -const int CSSM_ALGMODE_CBC128 = 36; +const int CSSMERR_TP_INVALID_CRLGROUP_POINTER = -2147409658; -const int CSSM_ALGMODE_OAEP_HASH = 37; +const int CSSMERR_TP_AUTHENTICATION_FAILED = -2147409657; -const int CSSM_ALGMODE_PKCS1_EME_V15 = 38; +const int CSSMERR_TP_CERTGROUP_INCOMPLETE = -2147409656; -const int CSSM_ALGMODE_PKCS1_EME_OAEP = 39; +const int CSSMERR_TP_CERTIFICATE_CANT_OPERATE = -2147409655; -const int CSSM_ALGMODE_PKCS1_EMSA_V15 = 40; +const int CSSMERR_TP_CERT_EXPIRED = -2147409654; -const int CSSM_ALGMODE_ISO_9796 = 41; +const int CSSMERR_TP_CERT_NOT_VALID_YET = -2147409653; -const int CSSM_ALGMODE_X9_31 = 42; +const int CSSMERR_TP_CERT_REVOKED = -2147409652; -const int CSSM_ALGMODE_LAST = 2147483647; +const int CSSMERR_TP_CERT_SUSPENDED = -2147409651; -const int CSSM_ALGMODE_VENDOR_DEFINED = -2147483648; +const int CSSMERR_TP_INSUFFICIENT_CREDENTIALS = -2147409650; -const int CSSM_CSP_SOFTWARE = 1; +const int CSSMERR_TP_INVALID_ACTION = -2147409649; -const int CSSM_CSP_HARDWARE = 2; +const int CSSMERR_TP_INVALID_ACTION_DATA = -2147409648; -const int CSSM_CSP_HYBRID = 3; +const int CSSMERR_TP_INVALID_ANCHOR_CERT = -2147409646; -const int CSSM_ALGCLASS_NONE = 0; +const int CSSMERR_TP_INVALID_AUTHORITY = -2147409645; -const int CSSM_ALGCLASS_CUSTOM = 1; +const int CSSMERR_TP_VERIFY_ACTION_FAILED = -2147409644; -const int CSSM_ALGCLASS_SIGNATURE = 2; +const int CSSMERR_TP_INVALID_CERTIFICATE = -2147409643; -const int CSSM_ALGCLASS_SYMMETRIC = 3; +const int CSSMERR_TP_INVALID_CERT_AUTHORITY = -2147409642; -const int CSSM_ALGCLASS_DIGEST = 4; +const int CSSMERR_TP_INVALID_CRL_AUTHORITY = -2147409641; -const int CSSM_ALGCLASS_RANDOMGEN = 5; +const int CSSMERR_TP_INVALID_CRL_ENCODING = -2147409640; -const int CSSM_ALGCLASS_UNIQUEGEN = 6; +const int CSSMERR_TP_INVALID_CRL_TYPE = -2147409639; -const int CSSM_ALGCLASS_MAC = 7; +const int CSSMERR_TP_INVALID_CRL = -2147409638; -const int CSSM_ALGCLASS_ASYMMETRIC = 8; +const int CSSMERR_TP_INVALID_FORM_TYPE = -2147409637; -const int CSSM_ALGCLASS_KEYGEN = 9; +const int CSSMERR_TP_INVALID_ID = -2147409636; -const int CSSM_ALGCLASS_DERIVEKEY = 10; +const int CSSMERR_TP_INVALID_IDENTIFIER = -2147409635; -const int CSSM_ATTRIBUTE_DATA_NONE = 0; +const int CSSMERR_TP_INVALID_INDEX = -2147409634; -const int CSSM_ATTRIBUTE_DATA_UINT32 = 268435456; +const int CSSMERR_TP_INVALID_NAME = -2147409633; -const int CSSM_ATTRIBUTE_DATA_CSSM_DATA = 536870912; +const int CSSMERR_TP_INVALID_POLICY_IDENTIFIERS = -2147409632; -const int CSSM_ATTRIBUTE_DATA_CRYPTO_DATA = 805306368; +const int CSSMERR_TP_INVALID_TIMESTRING = -2147409631; -const int CSSM_ATTRIBUTE_DATA_KEY = 1073741824; +const int CSSMERR_TP_INVALID_REASON = -2147409630; -const int CSSM_ATTRIBUTE_DATA_STRING = 1342177280; +const int CSSMERR_TP_INVALID_REQUEST_INPUTS = -2147409629; -const int CSSM_ATTRIBUTE_DATA_DATE = 1610612736; +const int CSSMERR_TP_INVALID_RESPONSE_VECTOR = -2147409628; -const int CSSM_ATTRIBUTE_DATA_RANGE = 1879048192; +const int CSSMERR_TP_INVALID_SIGNATURE = -2147409627; -const int CSSM_ATTRIBUTE_DATA_ACCESS_CREDENTIALS = -2147483648; +const int CSSMERR_TP_INVALID_STOP_ON_POLICY = -2147409626; -const int CSSM_ATTRIBUTE_DATA_VERSION = 16777216; +const int CSSMERR_TP_INVALID_CALLBACK = -2147409625; -const int CSSM_ATTRIBUTE_DATA_DL_DB_HANDLE = 33554432; +const int CSSMERR_TP_INVALID_TUPLE = -2147409624; -const int CSSM_ATTRIBUTE_DATA_KR_PROFILE = 50331648; +const int CSSMERR_TP_NOT_SIGNER = -2147409623; -const int CSSM_ATTRIBUTE_TYPE_MASK = -16777216; +const int CSSMERR_TP_NOT_TRUSTED = -2147409622; -const int CSSM_ATTRIBUTE_NONE = 0; +const int CSSMERR_TP_NO_DEFAULT_AUTHORITY = -2147409621; -const int CSSM_ATTRIBUTE_CUSTOM = 536870913; +const int CSSMERR_TP_REJECTED_FORM = -2147409620; -const int CSSM_ATTRIBUTE_DESCRIPTION = 1342177282; +const int CSSMERR_TP_REQUEST_LOST = -2147409619; -const int CSSM_ATTRIBUTE_KEY = 1073741827; +const int CSSMERR_TP_REQUEST_REJECTED = -2147409618; -const int CSSM_ATTRIBUTE_INIT_VECTOR = 536870916; +const int CSSMERR_TP_UNSUPPORTED_ADDR_TYPE = -2147409617; -const int CSSM_ATTRIBUTE_SALT = 536870917; +const int CSSMERR_TP_UNSUPPORTED_SERVICE = -2147409616; -const int CSSM_ATTRIBUTE_PADDING = 268435462; +const int CSSMERR_TP_INVALID_TUPLEGROUP_POINTER = -2147409615; -const int CSSM_ATTRIBUTE_RANDOM = 536870919; +const int CSSMERR_TP_INVALID_TUPLEGROUP = -2147409614; -const int CSSM_ATTRIBUTE_SEED = 805306376; +const int CSSMERR_AC_INTERNAL_ERROR = -2147405823; -const int CSSM_ATTRIBUTE_PASSPHRASE = 805306377; +const int CSSMERR_AC_MEMORY_ERROR = -2147405822; -const int CSSM_ATTRIBUTE_KEY_LENGTH = 268435466; +const int CSSMERR_AC_MDS_ERROR = -2147405821; -const int CSSM_ATTRIBUTE_KEY_LENGTH_RANGE = 1879048203; +const int CSSMERR_AC_INVALID_POINTER = -2147405820; -const int CSSM_ATTRIBUTE_BLOCK_SIZE = 268435468; +const int CSSMERR_AC_INVALID_INPUT_POINTER = -2147405819; -const int CSSM_ATTRIBUTE_OUTPUT_SIZE = 268435469; +const int CSSMERR_AC_INVALID_OUTPUT_POINTER = -2147405818; -const int CSSM_ATTRIBUTE_ROUNDS = 268435470; +const int CSSMERR_AC_FUNCTION_NOT_IMPLEMENTED = -2147405817; -const int CSSM_ATTRIBUTE_IV_SIZE = 268435471; +const int CSSMERR_AC_SELF_CHECK_FAILED = -2147405816; -const int CSSM_ATTRIBUTE_ALG_PARAMS = 536870928; +const int CSSMERR_AC_OS_ACCESS_DENIED = -2147405815; -const int CSSM_ATTRIBUTE_LABEL = 536870929; +const int CSSMERR_AC_FUNCTION_FAILED = -2147405814; -const int CSSM_ATTRIBUTE_KEY_TYPE = 268435474; +const int CSSMERR_AC_INVALID_CONTEXT_HANDLE = -2147405760; -const int CSSM_ATTRIBUTE_MODE = 268435475; +const int CSSMERR_AC_INVALID_DATA = -2147405754; -const int CSSM_ATTRIBUTE_EFFECTIVE_BITS = 268435476; +const int CSSMERR_AC_INVALID_DB_LIST = -2147405748; -const int CSSM_ATTRIBUTE_START_DATE = 1610612757; +const int CSSMERR_AC_INVALID_PASSTHROUGH_ID = -2147405738; -const int CSSM_ATTRIBUTE_END_DATE = 1610612758; +const int CSSMERR_AC_INVALID_DL_HANDLE = -2147405743; -const int CSSM_ATTRIBUTE_KEYUSAGE = 268435479; +const int CSSMERR_AC_INVALID_CL_HANDLE = -2147405742; -const int CSSM_ATTRIBUTE_KEYATTR = 268435480; +const int CSSMERR_AC_INVALID_TP_HANDLE = -2147405741; -const int CSSM_ATTRIBUTE_VERSION = 16777241; +const int CSSMERR_AC_INVALID_DB_HANDLE = -2147405750; -const int CSSM_ATTRIBUTE_PRIME = 536870938; +const int CSSMERR_AC_INVALID_DB_LIST_POINTER = -2147405747; -const int CSSM_ATTRIBUTE_BASE = 536870939; +const int CSSM_AC_BASE_AC_ERROR = -2147405568; -const int CSSM_ATTRIBUTE_SUBPRIME = 536870940; +const int CSSMERR_AC_INVALID_BASE_ACLS = -2147405567; -const int CSSM_ATTRIBUTE_ALG_ID = 268435485; +const int CSSMERR_AC_INVALID_TUPLE_CREDENTIALS = -2147405566; -const int CSSM_ATTRIBUTE_ITERATION_COUNT = 268435486; +const int CSSMERR_AC_INVALID_ENCODING = -2147405565; -const int CSSM_ATTRIBUTE_ROUNDS_RANGE = 1879048223; +const int CSSMERR_AC_INVALID_VALIDITY_PERIOD = -2147405564; -const int CSSM_ATTRIBUTE_KRPROFILE_LOCAL = 50331680; +const int CSSMERR_AC_INVALID_REQUESTOR = -2147405563; -const int CSSM_ATTRIBUTE_KRPROFILE_REMOTE = 50331681; +const int CSSMERR_AC_INVALID_REQUEST_DESCRIPTOR = -2147405562; -const int CSSM_ATTRIBUTE_CSP_HANDLE = 268435490; +const int CSSMERR_CL_INTERNAL_ERROR = -2147411967; -const int CSSM_ATTRIBUTE_DL_DB_HANDLE = 33554467; +const int CSSMERR_CL_MEMORY_ERROR = -2147411966; -const int CSSM_ATTRIBUTE_ACCESS_CREDENTIALS = -2147483612; +const int CSSMERR_CL_MDS_ERROR = -2147411965; -const int CSSM_ATTRIBUTE_PUBLIC_KEY_FORMAT = 268435493; +const int CSSMERR_CL_INVALID_POINTER = -2147411964; -const int CSSM_ATTRIBUTE_PRIVATE_KEY_FORMAT = 268435494; +const int CSSMERR_CL_INVALID_INPUT_POINTER = -2147411963; -const int CSSM_ATTRIBUTE_SYMMETRIC_KEY_FORMAT = 268435495; +const int CSSMERR_CL_INVALID_OUTPUT_POINTER = -2147411962; -const int CSSM_ATTRIBUTE_WRAPPED_KEY_FORMAT = 268435496; +const int CSSMERR_CL_FUNCTION_NOT_IMPLEMENTED = -2147411961; -const int CSSM_PADDING_NONE = 0; +const int CSSMERR_CL_SELF_CHECK_FAILED = -2147411960; -const int CSSM_PADDING_CUSTOM = 1; +const int CSSMERR_CL_OS_ACCESS_DENIED = -2147411959; -const int CSSM_PADDING_ZERO = 2; +const int CSSMERR_CL_FUNCTION_FAILED = -2147411958; -const int CSSM_PADDING_ONE = 3; +const int CSSMERR_CL_INVALID_CONTEXT_HANDLE = -2147411904; -const int CSSM_PADDING_ALTERNATE = 4; +const int CSSMERR_CL_INVALID_CERTGROUP_POINTER = -2147411902; -const int CSSM_PADDING_FF = 5; +const int CSSMERR_CL_INVALID_CERT_POINTER = -2147411901; -const int CSSM_PADDING_PKCS5 = 6; +const int CSSMERR_CL_INVALID_CRL_POINTER = -2147411900; -const int CSSM_PADDING_PKCS7 = 7; +const int CSSMERR_CL_INVALID_FIELD_POINTER = -2147411899; -const int CSSM_PADDING_CIPHERSTEALING = 8; +const int CSSMERR_CL_INVALID_DATA = -2147411898; -const int CSSM_PADDING_RANDOM = 9; +const int CSSMERR_CL_CRL_ALREADY_SIGNED = -2147411897; -const int CSSM_PADDING_PKCS1 = 10; +const int CSSMERR_CL_INVALID_NUMBER_OF_FIELDS = -2147411896; -const int CSSM_PADDING_SIGRAW = 11; +const int CSSMERR_CL_VERIFICATION_FAILURE = -2147411895; -const int CSSM_PADDING_VENDOR_DEFINED = -2147483648; +const int CSSMERR_CL_UNKNOWN_FORMAT = -2147411890; -const int CSSM_CSP_TOK_RNG = 1; +const int CSSMERR_CL_UNKNOWN_TAG = -2147411889; -const int CSSM_CSP_TOK_CLOCK_EXISTS = 64; +const int CSSMERR_CL_INVALID_PASSTHROUGH_ID = -2147411882; -const int CSSM_CSP_RDR_TOKENPRESENT = 1; +const int CSSM_CL_BASE_CL_ERROR = -2147411712; -const int CSSM_CSP_RDR_EXISTS = 2; +const int CSSMERR_CL_INVALID_BUNDLE_POINTER = -2147411711; -const int CSSM_CSP_RDR_HW = 4; +const int CSSMERR_CL_INVALID_CACHE_HANDLE = -2147411710; -const int CSSM_CSP_TOK_WRITE_PROTECTED = 2; +const int CSSMERR_CL_INVALID_RESULTS_HANDLE = -2147411709; -const int CSSM_CSP_TOK_LOGIN_REQUIRED = 4; +const int CSSMERR_CL_INVALID_BUNDLE_INFO = -2147411708; -const int CSSM_CSP_TOK_USER_PIN_INITIALIZED = 8; +const int CSSMERR_CL_INVALID_CRL_INDEX = -2147411707; -const int CSSM_CSP_TOK_PROT_AUTHENTICATION = 256; +const int CSSMERR_CL_INVALID_SCOPE = -2147411706; -const int CSSM_CSP_TOK_USER_PIN_EXPIRED = 1048576; +const int CSSMERR_CL_NO_FIELD_VALUES = -2147411705; -const int CSSM_CSP_TOK_SESSION_KEY_PASSWORD = 2097152; +const int CSSMERR_CL_SCOPE_NOT_SUPPORTED = -2147411704; -const int CSSM_CSP_TOK_PRIVATE_KEY_PASSWORD = 4194304; +const int CSSMERR_DL_INTERNAL_ERROR = -2147414015; -const int CSSM_CSP_STORES_PRIVATE_KEYS = 16777216; +const int CSSMERR_DL_MEMORY_ERROR = -2147414014; -const int CSSM_CSP_STORES_PUBLIC_KEYS = 33554432; +const int CSSMERR_DL_MDS_ERROR = -2147414013; -const int CSSM_CSP_STORES_SESSION_KEYS = 67108864; +const int CSSMERR_DL_INVALID_POINTER = -2147414012; -const int CSSM_CSP_STORES_CERTIFICATES = 134217728; +const int CSSMERR_DL_INVALID_INPUT_POINTER = -2147414011; -const int CSSM_CSP_STORES_GENERIC = 268435456; +const int CSSMERR_DL_INVALID_OUTPUT_POINTER = -2147414010; -const int CSSM_PKCS_OAEP_MGF_NONE = 0; +const int CSSMERR_DL_FUNCTION_NOT_IMPLEMENTED = -2147414009; -const int CSSM_PKCS_OAEP_MGF1_SHA1 = 1; +const int CSSMERR_DL_SELF_CHECK_FAILED = -2147414008; -const int CSSM_PKCS_OAEP_MGF1_MD5 = 2; +const int CSSMERR_DL_OS_ACCESS_DENIED = -2147414007; -const int CSSM_PKCS_OAEP_PSOURCE_NONE = 0; +const int CSSMERR_DL_FUNCTION_FAILED = -2147414006; -const int CSSM_PKCS_OAEP_PSOURCE_Pspecified = 1; +const int CSSMERR_DL_INVALID_CSP_HANDLE = -2147413936; -const int CSSM_VALUE_NOT_AVAILABLE = -1; +const int CSSMERR_DL_INVALID_DL_HANDLE = -2147413935; -const int CSSM_PKCS5_PBKDF2_PRF_HMAC_SHA1 = 0; +const int CSSMERR_DL_INVALID_CL_HANDLE = -2147413934; -const int CSSM_TP_AUTHORITY_REQUEST_CERTISSUE = 1; +const int CSSMERR_DL_INVALID_DB_LIST_POINTER = -2147413939; -const int CSSM_TP_AUTHORITY_REQUEST_CERTREVOKE = 2; +const int CSSMERR_DL_OPERATION_AUTH_DENIED = -2147413984; -const int CSSM_TP_AUTHORITY_REQUEST_CERTSUSPEND = 3; +const int CSSMERR_DL_OBJECT_USE_AUTH_DENIED = -2147413983; -const int CSSM_TP_AUTHORITY_REQUEST_CERTRESUME = 4; +const int CSSMERR_DL_OBJECT_MANIP_AUTH_DENIED = -2147413982; -const int CSSM_TP_AUTHORITY_REQUEST_CERTVERIFY = 5; +const int CSSMERR_DL_OBJECT_ACL_NOT_SUPPORTED = -2147413981; -const int CSSM_TP_AUTHORITY_REQUEST_CERTNOTARIZE = 6; +const int CSSMERR_DL_OBJECT_ACL_REQUIRED = -2147413980; -const int CSSM_TP_AUTHORITY_REQUEST_CERTUSERECOVER = 7; +const int CSSMERR_DL_INVALID_ACCESS_CREDENTIALS = -2147413979; -const int CSSM_TP_AUTHORITY_REQUEST_CRLISSUE = 256; +const int CSSMERR_DL_INVALID_ACL_BASE_CERTS = -2147413978; -const int CSSM_TP_KEY_ARCHIVE = 1; +const int CSSMERR_DL_ACL_BASE_CERTS_NOT_SUPPORTED = -2147413977; -const int CSSM_TP_CERT_PUBLISH = 2; +const int CSSMERR_DL_INVALID_SAMPLE_VALUE = -2147413976; -const int CSSM_TP_CERT_NOTIFY_RENEW = 4; +const int CSSMERR_DL_SAMPLE_VALUE_NOT_SUPPORTED = -2147413975; -const int CSSM_TP_CERT_DIR_UPDATE = 8; +const int CSSMERR_DL_INVALID_ACL_SUBJECT_VALUE = -2147413974; -const int CSSM_TP_CRL_DISTRIBUTE = 16; +const int CSSMERR_DL_ACL_SUBJECT_TYPE_NOT_SUPPORTED = -2147413973; -const int CSSM_TP_ACTION_DEFAULT = 0; +const int CSSMERR_DL_INVALID_ACL_CHALLENGE_CALLBACK = -2147413972; -const int CSSM_TP_STOP_ON_POLICY = 0; +const int CSSMERR_DL_ACL_CHALLENGE_CALLBACK_FAILED = -2147413971; -const int CSSM_TP_STOP_ON_NONE = 1; +const int CSSMERR_DL_INVALID_ACL_ENTRY_TAG = -2147413970; -const int CSSM_TP_STOP_ON_FIRST_PASS = 2; +const int CSSMERR_DL_ACL_ENTRY_TAG_NOT_FOUND = -2147413969; -const int CSSM_TP_STOP_ON_FIRST_FAIL = 3; +const int CSSMERR_DL_INVALID_ACL_EDIT_MODE = -2147413968; -const int CSSM_CRL_PARSE_FORMAT_NONE = 0; +const int CSSMERR_DL_ACL_CHANGE_FAILED = -2147413967; -const int CSSM_CRL_PARSE_FORMAT_CUSTOM = 1; +const int CSSMERR_DL_INVALID_NEW_ACL_ENTRY = -2147413966; -const int CSSM_CRL_PARSE_FORMAT_SEXPR = 2; +const int CSSMERR_DL_INVALID_NEW_ACL_OWNER = -2147413965; -const int CSSM_CRL_PARSE_FORMAT_COMPLEX = 3; +const int CSSMERR_DL_ACL_DELETE_FAILED = -2147413964; -const int CSSM_CRL_PARSE_FORMAT_OID_NAMED = 4; +const int CSSMERR_DL_ACL_REPLACE_FAILED = -2147413963; -const int CSSM_CRL_PARSE_FORMAT_TUPLE = 5; +const int CSSMERR_DL_ACL_ADD_FAILED = -2147413962; -const int CSSM_CRL_PARSE_FORMAT_MULTIPLE = 32766; +const int CSSMERR_DL_INVALID_DB_HANDLE = -2147413942; -const int CSSM_CRL_PARSE_FORMAT_LAST = 32767; +const int CSSMERR_DL_INVALID_PASSTHROUGH_ID = -2147413930; -const int CSSM_CL_CUSTOM_CRL_PARSE_FORMAT = 32768; +const int CSSMERR_DL_INVALID_NETWORK_ADDR = -2147413929; -const int CSSM_CRL_TYPE_UNKNOWN = 0; +const int CSSM_DL_BASE_DL_ERROR = -2147413760; -const int CSSM_CRL_TYPE_X_509v1 = 1; +const int CSSMERR_DL_DATABASE_CORRUPT = -2147413759; -const int CSSM_CRL_TYPE_X_509v2 = 2; +const int CSSMERR_DL_INVALID_RECORD_INDEX = -2147413752; -const int CSSM_CRL_TYPE_SPKI = 3; +const int CSSMERR_DL_INVALID_RECORDTYPE = -2147413751; -const int CSSM_CRL_TYPE_MULTIPLE = 32766; +const int CSSMERR_DL_INVALID_FIELD_NAME = -2147413750; -const int CSSM_CRL_ENCODING_UNKNOWN = 0; +const int CSSMERR_DL_UNSUPPORTED_FIELD_FORMAT = -2147413749; -const int CSSM_CRL_ENCODING_CUSTOM = 1; +const int CSSMERR_DL_UNSUPPORTED_INDEX_INFO = -2147413748; -const int CSSM_CRL_ENCODING_BER = 2; +const int CSSMERR_DL_UNSUPPORTED_LOCALITY = -2147413747; -const int CSSM_CRL_ENCODING_DER = 3; +const int CSSMERR_DL_UNSUPPORTED_NUM_ATTRIBUTES = -2147413746; -const int CSSM_CRL_ENCODING_BLOOM = 4; +const int CSSMERR_DL_UNSUPPORTED_NUM_INDEXES = -2147413745; -const int CSSM_CRL_ENCODING_SEXPR = 5; +const int CSSMERR_DL_UNSUPPORTED_NUM_RECORDTYPES = -2147413744; -const int CSSM_CRL_ENCODING_MULTIPLE = 32766; +const int CSSMERR_DL_UNSUPPORTED_RECORDTYPE = -2147413743; -const int CSSM_CRLGROUP_DATA = 0; +const int CSSMERR_DL_FIELD_SPECIFIED_MULTIPLE = -2147413742; -const int CSSM_CRLGROUP_ENCODED_CRL = 1; +const int CSSMERR_DL_INCOMPATIBLE_FIELD_FORMAT = -2147413741; -const int CSSM_CRLGROUP_PARSED_CRL = 2; +const int CSSMERR_DL_INVALID_PARSING_MODULE = -2147413740; -const int CSSM_CRLGROUP_CRL_PAIR = 3; +const int CSSMERR_DL_INVALID_DB_NAME = -2147413738; -const int CSSM_EVIDENCE_FORM_UNSPECIFIC = 0; +const int CSSMERR_DL_DATASTORE_DOESNOT_EXIST = -2147413737; -const int CSSM_EVIDENCE_FORM_CERT = 1; +const int CSSMERR_DL_DATASTORE_ALREADY_EXISTS = -2147413736; -const int CSSM_EVIDENCE_FORM_CRL = 2; +const int CSSMERR_DL_DB_LOCKED = -2147413735; -const int CSSM_EVIDENCE_FORM_CERT_ID = 3; +const int CSSMERR_DL_DATASTORE_IS_OPEN = -2147413734; -const int CSSM_EVIDENCE_FORM_CRL_ID = 4; +const int CSSMERR_DL_RECORD_NOT_FOUND = -2147413733; -const int CSSM_EVIDENCE_FORM_VERIFIER_TIME = 5; +const int CSSMERR_DL_MISSING_VALUE = -2147413732; -const int CSSM_EVIDENCE_FORM_CRL_THISTIME = 6; +const int CSSMERR_DL_UNSUPPORTED_QUERY = -2147413731; -const int CSSM_EVIDENCE_FORM_CRL_NEXTTIME = 7; +const int CSSMERR_DL_UNSUPPORTED_QUERY_LIMITS = -2147413730; -const int CSSM_EVIDENCE_FORM_POLICYINFO = 8; +const int CSSMERR_DL_UNSUPPORTED_NUM_SELECTION_PREDS = -2147413729; -const int CSSM_EVIDENCE_FORM_TUPLEGROUP = 9; +const int CSSMERR_DL_UNSUPPORTED_OPERATOR = -2147413727; -const int CSSM_TP_CONFIRM_STATUS_UNKNOWN = 0; +const int CSSMERR_DL_INVALID_RESULTS_HANDLE = -2147413726; -const int CSSM_TP_CONFIRM_ACCEPT = 1; +const int CSSMERR_DL_INVALID_DB_LOCATION = -2147413725; -const int CSSM_TP_CONFIRM_REJECT = 2; +const int CSSMERR_DL_INVALID_ACCESS_REQUEST = -2147413724; -const int CSSM_ESTIMATED_TIME_UNKNOWN = -1; +const int CSSMERR_DL_INVALID_INDEX_INFO = -2147413723; -const int CSSM_ELAPSED_TIME_UNKNOWN = -1; +const int CSSMERR_DL_INVALID_SELECTION_TAG = -2147413722; -const int CSSM_ELAPSED_TIME_COMPLETE = -2; +const int CSSMERR_DL_INVALID_NEW_OWNER = -2147413721; -const int CSSM_TP_CERTISSUE_STATUS_UNKNOWN = 0; +const int CSSMERR_DL_INVALID_RECORD_UID = -2147413720; -const int CSSM_TP_CERTISSUE_OK = 1; +const int CSSMERR_DL_INVALID_UNIQUE_INDEX_DATA = -2147413719; -const int CSSM_TP_CERTISSUE_OKWITHCERTMODS = 2; +const int CSSMERR_DL_INVALID_MODIFY_MODE = -2147413718; -const int CSSM_TP_CERTISSUE_OKWITHSERVICEMODS = 3; +const int CSSMERR_DL_INVALID_OPEN_PARAMETERS = -2147413717; -const int CSSM_TP_CERTISSUE_REJECTED = 4; +const int CSSMERR_DL_RECORD_MODIFIED = -2147413716; -const int CSSM_TP_CERTISSUE_NOT_AUTHORIZED = 5; +const int CSSMERR_DL_ENDOFDATA = -2147413715; -const int CSSM_TP_CERTISSUE_WILL_BE_REVOKED = 6; +const int CSSMERR_DL_INVALID_QUERY = -2147413714; -const int CSSM_TP_CERTCHANGE_NONE = 0; +const int CSSMERR_DL_INVALID_VALUE = -2147413713; -const int CSSM_TP_CERTCHANGE_REVOKE = 1; +const int CSSMERR_DL_MULTIPLE_VALUES_UNSUPPORTED = -2147413712; -const int CSSM_TP_CERTCHANGE_HOLD = 2; +const int CSSMERR_DL_STALE_UNIQUE_RECORD = -2147413711; -const int CSSM_TP_CERTCHANGE_RELEASE = 3; +const int CSSM_WORDID_KEYCHAIN_PROMPT = 65536; -const int CSSM_TP_CERTCHANGE_REASON_UNKNOWN = 0; +const int CSSM_WORDID_KEYCHAIN_LOCK = 65537; -const int CSSM_TP_CERTCHANGE_REASON_KEYCOMPROMISE = 1; +const int CSSM_WORDID_KEYCHAIN_CHANGE_LOCK = 65538; -const int CSSM_TP_CERTCHANGE_REASON_CACOMPROMISE = 2; +const int CSSM_WORDID_PROCESS = 65539; -const int CSSM_TP_CERTCHANGE_REASON_CEASEOPERATION = 3; +const int CSSM_WORDID__RESERVED_1 = 65540; -const int CSSM_TP_CERTCHANGE_REASON_AFFILIATIONCHANGE = 4; +const int CSSM_WORDID_SYMMETRIC_KEY = 65541; -const int CSSM_TP_CERTCHANGE_REASON_SUPERCEDED = 5; +const int CSSM_WORDID_SYSTEM = 65542; -const int CSSM_TP_CERTCHANGE_REASON_SUSPECTEDCOMPROMISE = 6; +const int CSSM_WORDID_KEY = 65543; -const int CSSM_TP_CERTCHANGE_REASON_HOLDRELEASE = 7; +const int CSSM_WORDID_PIN = 65544; -const int CSSM_TP_CERTCHANGE_STATUS_UNKNOWN = 0; +const int CSSM_WORDID_PREAUTH = 65545; -const int CSSM_TP_CERTCHANGE_OK = 1; +const int CSSM_WORDID_PREAUTH_SOURCE = 65546; -const int CSSM_TP_CERTCHANGE_OKWITHNEWTIME = 2; +const int CSSM_WORDID_ASYMMETRIC_KEY = 65547; -const int CSSM_TP_CERTCHANGE_WRONGCA = 3; +const int CSSM_WORDID_PARTITION = 65548; -const int CSSM_TP_CERTCHANGE_REJECTED = 4; +const int CSSM_WORDID_KEYBAG_KEY = 65549; -const int CSSM_TP_CERTCHANGE_NOT_AUTHORIZED = 5; +const int CSSM_WORDID__FIRST_UNUSED = 65550; -const int CSSM_TP_CERTVERIFY_UNKNOWN = 0; +const int CSSM_ACL_SUBJECT_TYPE_KEYCHAIN_PROMPT = 65536; -const int CSSM_TP_CERTVERIFY_VALID = 1; +const int CSSM_ACL_SUBJECT_TYPE_PROCESS = 65539; -const int CSSM_TP_CERTVERIFY_INVALID = 2; +const int CSSM_ACL_SUBJECT_TYPE_CODE_SIGNATURE = 116; -const int CSSM_TP_CERTVERIFY_REVOKED = 3; +const int CSSM_ACL_SUBJECT_TYPE_COMMENT = 12; -const int CSSM_TP_CERTVERIFY_SUSPENDED = 4; +const int CSSM_ACL_SUBJECT_TYPE_SYMMETRIC_KEY = 65541; -const int CSSM_TP_CERTVERIFY_EXPIRED = 5; +const int CSSM_ACL_SUBJECT_TYPE_PREAUTH = 65545; -const int CSSM_TP_CERTVERIFY_NOT_VALID_YET = 6; +const int CSSM_ACL_SUBJECT_TYPE_PREAUTH_SOURCE = 65546; -const int CSSM_TP_CERTVERIFY_INVALID_AUTHORITY = 7; +const int CSSM_ACL_SUBJECT_TYPE_ASYMMETRIC_KEY = 65547; -const int CSSM_TP_CERTVERIFY_INVALID_SIGNATURE = 8; +const int CSSM_ACL_SUBJECT_TYPE_PARTITION = 65548; -const int CSSM_TP_CERTVERIFY_INVALID_CERT_VALUE = 9; +const int CSSM_SAMPLE_TYPE_KEYCHAIN_PROMPT = 65536; -const int CSSM_TP_CERTVERIFY_INVALID_CERTGROUP = 10; +const int CSSM_SAMPLE_TYPE_KEYCHAIN_LOCK = 65537; -const int CSSM_TP_CERTVERIFY_INVALID_POLICY = 11; +const int CSSM_SAMPLE_TYPE_KEYCHAIN_CHANGE_LOCK = 65538; -const int CSSM_TP_CERTVERIFY_INVALID_POLICY_IDS = 12; +const int CSSM_SAMPLE_TYPE_PROCESS = 65539; -const int CSSM_TP_CERTVERIFY_INVALID_BASIC_CONSTRAINTS = 13; +const int CSSM_SAMPLE_TYPE_COMMENT = 12; -const int CSSM_TP_CERTVERIFY_INVALID_CRL_DIST_PT = 14; +const int CSSM_SAMPLE_TYPE_RETRY_ID = 85; -const int CSSM_TP_CERTVERIFY_INVALID_NAME_TREE = 15; +const int CSSM_SAMPLE_TYPE_SYMMETRIC_KEY = 65541; -const int CSSM_TP_CERTVERIFY_UNKNOWN_CRITICAL_EXT = 16; +const int CSSM_SAMPLE_TYPE_PREAUTH = 65545; -const int CSSM_TP_CERTNOTARIZE_STATUS_UNKNOWN = 0; +const int CSSM_SAMPLE_TYPE_ASYMMETRIC_KEY = 65547; -const int CSSM_TP_CERTNOTARIZE_OK = 1; +const int CSSM_SAMPLE_TYPE_KEYBAG_KEY = 65549; -const int CSSM_TP_CERTNOTARIZE_OKWITHOUTFIELDS = 2; +const int CSSM_ACL_AUTHORIZATION_CHANGE_ACL = 65536; -const int CSSM_TP_CERTNOTARIZE_OKWITHSERVICEMODS = 3; +const int CSSM_ACL_AUTHORIZATION_CHANGE_OWNER = 65537; -const int CSSM_TP_CERTNOTARIZE_REJECTED = 4; +const int CSSM_ACL_AUTHORIZATION_PARTITION_ID = 65538; -const int CSSM_TP_CERTNOTARIZE_NOT_AUTHORIZED = 5; +const int CSSM_ACL_AUTHORIZATION_INTEGRITY = 65539; -const int CSSM_TP_CERTRECLAIM_STATUS_UNKNOWN = 0; +const int CSSM_ACL_AUTHORIZATION_PREAUTH_BASE = 16842752; -const int CSSM_TP_CERTRECLAIM_OK = 1; +const int CSSM_ACL_AUTHORIZATION_PREAUTH_END = 16908288; -const int CSSM_TP_CERTRECLAIM_NOMATCH = 2; +const int CSSM_ACL_CODE_SIGNATURE_INVALID = 0; -const int CSSM_TP_CERTRECLAIM_REJECTED = 3; +const int CSSM_ACL_CODE_SIGNATURE_OSX = 1; -const int CSSM_TP_CERTRECLAIM_NOT_AUTHORIZED = 4; +const int CSSM_ACL_MATCH_UID = 1; -const int CSSM_TP_CRLISSUE_STATUS_UNKNOWN = 0; +const int CSSM_ACL_MATCH_GID = 2; -const int CSSM_TP_CRLISSUE_OK = 1; +const int CSSM_ACL_MATCH_HONOR_ROOT = 256; -const int CSSM_TP_CRLISSUE_NOT_CURRENT = 2; +const int CSSM_ACL_MATCH_BITS = 3; -const int CSSM_TP_CRLISSUE_INVALID_DOMAIN = 3; +const int CSSM_ACL_PROCESS_SELECTOR_CURRENT_VERSION = 257; -const int CSSM_TP_CRLISSUE_UNKNOWN_IDENTIFIER = 4; +const int CSSM_ACL_KEYCHAIN_PROMPT_CURRENT_VERSION = 257; -const int CSSM_TP_CRLISSUE_REJECTED = 5; +const int CSSM_ACL_KEYCHAIN_PROMPT_REQUIRE_PASSPHRASE = 1; -const int CSSM_TP_CRLISSUE_NOT_AUTHORIZED = 6; +const int CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED = 16; -const int CSSM_TP_FORM_TYPE_GENERIC = 0; +const int CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED_ACT = 32; -const int CSSM_TP_FORM_TYPE_REGISTRATION = 1; +const int CSSM_ACL_KEYCHAIN_PROMPT_INVALID = 64; -const int CSSM_CL_TEMPLATE_INTERMEDIATE_CERT = 1; +const int CSSM_ACL_KEYCHAIN_PROMPT_INVALID_ACT = 128; -const int CSSM_CL_TEMPLATE_PKIX_CERTTEMPLATE = 2; +const int CSSM_ACL_PREAUTH_TRACKING_COUNT_MASK = 255; -const int CSSM_CERT_BUNDLE_UNKNOWN = 0; +const int CSSM_ACL_PREAUTH_TRACKING_BLOCKED = 0; -const int CSSM_CERT_BUNDLE_CUSTOM = 1; +const int CSSM_ACL_PREAUTH_TRACKING_UNKNOWN = 1073741824; -const int CSSM_CERT_BUNDLE_PKCS7_SIGNED_DATA = 2; +const int CSSM_ACL_PREAUTH_TRACKING_AUTHORIZED = -2147483648; -const int CSSM_CERT_BUNDLE_PKCS7_SIGNED_ENVELOPED_DATA = 3; +const int CSSM_DB_ACCESS_RESET = 65536; -const int CSSM_CERT_BUNDLE_PKCS12 = 4; +const int CSSM_ALGID_APPLE_YARROW = -2147483648; -const int CSSM_CERT_BUNDLE_PFX = 5; +const int CSSM_ALGID_AES = -2147483647; -const int CSSM_CERT_BUNDLE_SPKI_SEQUENCE = 6; +const int CSSM_ALGID_FEE = -2147483646; -const int CSSM_CERT_BUNDLE_PGP_KEYRING = 7; +const int CSSM_ALGID_FEE_MD5 = -2147483645; -const int CSSM_CERT_BUNDLE_LAST = 32767; +const int CSSM_ALGID_FEE_SHA1 = -2147483644; -const int CSSM_CL_CUSTOM_CERT_BUNDLE_TYPE = 32768; +const int CSSM_ALGID_FEED = -2147483643; -const int CSSM_CERT_BUNDLE_ENCODING_UNKNOWN = 0; +const int CSSM_ALGID_FEEDEXP = -2147483642; -const int CSSM_CERT_BUNDLE_ENCODING_CUSTOM = 1; +const int CSSM_ALGID_ASC = -2147483641; -const int CSSM_CERT_BUNDLE_ENCODING_BER = 2; +const int CSSM_ALGID_SHA1HMAC_LEGACY = -2147483640; -const int CSSM_CERT_BUNDLE_ENCODING_DER = 3; +const int CSSM_ALGID_KEYCHAIN_KEY = -2147483639; -const int CSSM_CERT_BUNDLE_ENCODING_SEXPR = 4; +const int CSSM_ALGID_PKCS12_PBE_ENCR = -2147483638; -const int CSSM_CERT_BUNDLE_ENCODING_PGP = 5; +const int CSSM_ALGID_PKCS12_PBE_MAC = -2147483637; -const int CSSM_FIELDVALUE_COMPLEX_DATA_TYPE = -1; +const int CSSM_ALGID_SECURE_PASSPHRASE = -2147483636; -const int CSSM_DB_ATTRIBUTE_NAME_AS_STRING = 0; +const int CSSM_ALGID_PBE_OPENSSL_MD5 = -2147483635; -const int CSSM_DB_ATTRIBUTE_NAME_AS_OID = 1; +const int CSSM_ALGID_SHA256 = -2147483634; -const int CSSM_DB_ATTRIBUTE_NAME_AS_INTEGER = 2; +const int CSSM_ALGID_SHA384 = -2147483633; -const int CSSM_DB_ATTRIBUTE_FORMAT_STRING = 0; +const int CSSM_ALGID_SHA512 = -2147483632; -const int CSSM_DB_ATTRIBUTE_FORMAT_SINT32 = 1; +const int CSSM_ALGID_ENTROPY_DEFAULT = -2147483631; -const int CSSM_DB_ATTRIBUTE_FORMAT_UINT32 = 2; +const int CSSM_ALGID_SHA224 = -2147483630; -const int CSSM_DB_ATTRIBUTE_FORMAT_BIG_NUM = 3; +const int CSSM_ALGID_SHA224WithRSA = -2147483629; -const int CSSM_DB_ATTRIBUTE_FORMAT_REAL = 4; +const int CSSM_ALGID_SHA256WithRSA = -2147483628; -const int CSSM_DB_ATTRIBUTE_FORMAT_TIME_DATE = 5; +const int CSSM_ALGID_SHA384WithRSA = -2147483627; -const int CSSM_DB_ATTRIBUTE_FORMAT_BLOB = 6; +const int CSSM_ALGID_SHA512WithRSA = -2147483626; -const int CSSM_DB_ATTRIBUTE_FORMAT_MULTI_UINT32 = 7; +const int CSSM_ALGID_OPENSSH1 = -2147483625; -const int CSSM_DB_ATTRIBUTE_FORMAT_COMPLEX = 8; +const int CSSM_ALGID_SHA224WithECDSA = -2147483624; -const int CSSM_DB_RECORDTYPE_SCHEMA_START = 0; +const int CSSM_ALGID_SHA256WithECDSA = -2147483623; -const int CSSM_DB_RECORDTYPE_SCHEMA_END = 4; +const int CSSM_ALGID_SHA384WithECDSA = -2147483622; -const int CSSM_DB_RECORDTYPE_OPEN_GROUP_START = 10; +const int CSSM_ALGID_SHA512WithECDSA = -2147483621; -const int CSSM_DB_RECORDTYPE_OPEN_GROUP_END = 18; +const int CSSM_ALGID_ECDSA_SPECIFIED = -2147483620; -const int CSSM_DB_RECORDTYPE_APP_DEFINED_START = -2147483648; +const int CSSM_ALGID_ECDH_X963_KDF = -2147483619; -const int CSSM_DB_RECORDTYPE_APP_DEFINED_END = -1; +const int CSSM_ALGID__FIRST_UNUSED = -2147483618; -const int CSSM_DL_DB_SCHEMA_INFO = 0; +const int CSSM_PADDING_APPLE_SSLv2 = -2147483648; -const int CSSM_DL_DB_SCHEMA_INDEXES = 1; +const int CSSM_KEYBLOB_RAW_FORMAT_VENDOR_DEFINED = -2147483648; -const int CSSM_DL_DB_SCHEMA_ATTRIBUTES = 2; +const int CSSM_KEYBLOB_RAW_FORMAT_X509 = -2147483648; -const int CSSM_DL_DB_SCHEMA_PARSING_MODULE = 3; +const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSH = -2147483647; -const int CSSM_DL_DB_RECORD_ANY = 10; +const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSL = -2147483646; -const int CSSM_DL_DB_RECORD_CERT = 11; +const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSH2 = -2147483645; -const int CSSM_DL_DB_RECORD_CRL = 12; +const int CSSM_CUSTOM_COMMON_ERROR_EXTENT = 224; -const int CSSM_DL_DB_RECORD_POLICY = 13; +const int CSSM_ERRCODE_NO_USER_INTERACTION = 224; -const int CSSM_DL_DB_RECORD_GENERIC = 14; +const int CSSM_ERRCODE_USER_CANCELED = 225; -const int CSSM_DL_DB_RECORD_PUBLIC_KEY = 15; +const int CSSM_ERRCODE_SERVICE_NOT_AVAILABLE = 226; -const int CSSM_DL_DB_RECORD_PRIVATE_KEY = 16; +const int CSSM_ERRCODE_INSUFFICIENT_CLIENT_IDENTIFICATION = 227; -const int CSSM_DL_DB_RECORD_SYMMETRIC_KEY = 17; +const int CSSM_ERRCODE_DEVICE_RESET = 228; -const int CSSM_DL_DB_RECORD_ALL_KEYS = 18; +const int CSSM_ERRCODE_DEVICE_FAILED = 229; -const int CSSM_DB_CERT_USE_TRUSTED = 1; +const int CSSM_ERRCODE_IN_DARK_WAKE = 230; -const int CSSM_DB_CERT_USE_SYSTEM = 2; +const int CSSMERR_CSSM_NO_USER_INTERACTION = -2147417888; -const int CSSM_DB_CERT_USE_OWNER = 4; +const int CSSMERR_AC_NO_USER_INTERACTION = -2147405600; -const int CSSM_DB_CERT_USE_REVOKED = 8; +const int CSSMERR_CSP_NO_USER_INTERACTION = -2147415840; -const int CSSM_DB_CERT_USE_SIGNING = 16; +const int CSSMERR_CL_NO_USER_INTERACTION = -2147411744; -const int CSSM_DB_CERT_USE_PRIVACY = 32; +const int CSSMERR_DL_NO_USER_INTERACTION = -2147413792; -const int CSSM_DB_INDEX_UNIQUE = 0; +const int CSSMERR_TP_NO_USER_INTERACTION = -2147409696; -const int CSSM_DB_INDEX_NONUNIQUE = 1; +const int CSSMERR_CSSM_USER_CANCELED = -2147417887; -const int CSSM_DB_INDEX_ON_UNKNOWN = 0; +const int CSSMERR_AC_USER_CANCELED = -2147405599; -const int CSSM_DB_INDEX_ON_ATTRIBUTE = 1; +const int CSSMERR_CSP_USER_CANCELED = -2147415839; -const int CSSM_DB_INDEX_ON_RECORD = 2; +const int CSSMERR_CL_USER_CANCELED = -2147411743; -const int CSSM_DB_ACCESS_READ = 1; +const int CSSMERR_DL_USER_CANCELED = -2147413791; -const int CSSM_DB_ACCESS_WRITE = 2; +const int CSSMERR_TP_USER_CANCELED = -2147409695; -const int CSSM_DB_ACCESS_PRIVILEGED = 4; +const int CSSMERR_CSSM_SERVICE_NOT_AVAILABLE = -2147417886; -const int CSSM_DB_MODIFY_ATTRIBUTE_NONE = 0; +const int CSSMERR_AC_SERVICE_NOT_AVAILABLE = -2147405598; -const int CSSM_DB_MODIFY_ATTRIBUTE_ADD = 1; +const int CSSMERR_CSP_SERVICE_NOT_AVAILABLE = -2147415838; -const int CSSM_DB_MODIFY_ATTRIBUTE_DELETE = 2; +const int CSSMERR_CL_SERVICE_NOT_AVAILABLE = -2147411742; -const int CSSM_DB_MODIFY_ATTRIBUTE_REPLACE = 3; +const int CSSMERR_DL_SERVICE_NOT_AVAILABLE = -2147413790; -const int CSSM_DB_EQUAL = 0; +const int CSSMERR_TP_SERVICE_NOT_AVAILABLE = -2147409694; -const int CSSM_DB_NOT_EQUAL = 1; +const int CSSMERR_CSSM_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147417885; -const int CSSM_DB_LESS_THAN = 2; +const int CSSMERR_AC_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147405597; -const int CSSM_DB_GREATER_THAN = 3; +const int CSSMERR_CSP_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147415837; -const int CSSM_DB_CONTAINS = 4; +const int CSSMERR_CL_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147411741; -const int CSSM_DB_CONTAINS_INITIAL_SUBSTRING = 5; +const int CSSMERR_DL_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147413789; -const int CSSM_DB_CONTAINS_FINAL_SUBSTRING = 6; +const int CSSMERR_TP_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147409693; -const int CSSM_DB_NONE = 0; +const int CSSMERR_CSSM_DEVICE_RESET = -2147417884; -const int CSSM_DB_AND = 1; +const int CSSMERR_AC_DEVICE_RESET = -2147405596; -const int CSSM_DB_OR = 2; +const int CSSMERR_CSP_DEVICE_RESET = -2147415836; -const int CSSM_QUERY_TIMELIMIT_NONE = 0; +const int CSSMERR_CL_DEVICE_RESET = -2147411740; -const int CSSM_QUERY_SIZELIMIT_NONE = 0; +const int CSSMERR_DL_DEVICE_RESET = -2147413788; -const int CSSM_QUERY_RETURN_DATA = 1; +const int CSSMERR_TP_DEVICE_RESET = -2147409692; -const int CSSM_DL_UNKNOWN = 0; +const int CSSMERR_CSSM_DEVICE_FAILED = -2147417883; -const int CSSM_DL_CUSTOM = 1; +const int CSSMERR_AC_DEVICE_FAILED = -2147405595; -const int CSSM_DL_LDAP = 2; +const int CSSMERR_CSP_DEVICE_FAILED = -2147415835; -const int CSSM_DL_ODBC = 3; +const int CSSMERR_CL_DEVICE_FAILED = -2147411739; -const int CSSM_DL_PKCS11 = 4; +const int CSSMERR_DL_DEVICE_FAILED = -2147413787; -const int CSSM_DL_FFS = 5; +const int CSSMERR_TP_DEVICE_FAILED = -2147409691; -const int CSSM_DL_MEMORY = 6; +const int CSSMERR_CSSM_IN_DARK_WAKE = -2147417882; -const int CSSM_DL_REMOTEDIR = 7; +const int CSSMERR_AC_IN_DARK_WAKE = -2147405594; -const int CSSM_DB_DATASTORES_UNKNOWN = -1; +const int CSSMERR_CSP_IN_DARK_WAKE = -2147415834; -const int CSSM_DB_TRANSACTIONAL_MODE = 0; +const int CSSMERR_CL_IN_DARK_WAKE = -2147411738; -const int CSSM_DB_FILESYSTEMSCAN_MODE = 1; +const int CSSMERR_DL_IN_DARK_WAKE = -2147413786; -const int CSSM_BASE_ERROR = -2147418112; +const int CSSMERR_TP_IN_DARK_WAKE = -2147409690; -const int CSSM_ERRORCODE_MODULE_EXTENT = 2048; +const int CSSMERR_CSP_APPLE_ADD_APPLICATION_ACL_SUBJECT = -2147415040; -const int CSSM_ERRORCODE_CUSTOM_OFFSET = 1024; +const int CSSMERR_CSP_APPLE_PUBLIC_KEY_INCOMPLETE = -2147415039; -const int CSSM_ERRORCODE_COMMON_EXTENT = 256; +const int CSSMERR_CSP_APPLE_SIGNATURE_MISMATCH = -2147415038; -const int CSSM_CSSM_BASE_ERROR = -2147418112; +const int CSSMERR_CSP_APPLE_INVALID_KEY_START_DATE = -2147415037; -const int CSSM_CSSM_PRIVATE_ERROR = -2147417088; +const int CSSMERR_CSP_APPLE_INVALID_KEY_END_DATE = -2147415036; -const int CSSM_CSP_BASE_ERROR = -2147416064; +const int CSSMERR_CSPDL_APPLE_DL_CONVERSION_ERROR = -2147415035; -const int CSSM_CSP_PRIVATE_ERROR = -2147415040; +const int CSSMERR_CSP_APPLE_SSLv2_ROLLBACK = -2147415034; -const int CSSM_DL_BASE_ERROR = -2147414016; +const int CSSM_DL_DB_RECORD_GENERIC_PASSWORD = -2147483648; -const int CSSM_DL_PRIVATE_ERROR = -2147412992; +const int CSSM_DL_DB_RECORD_INTERNET_PASSWORD = -2147483647; -const int CSSM_CL_BASE_ERROR = -2147411968; +const int CSSM_DL_DB_RECORD_APPLESHARE_PASSWORD = -2147483646; -const int CSSM_CL_PRIVATE_ERROR = -2147410944; +const int CSSM_DL_DB_RECORD_X509_CERTIFICATE = -2147479552; -const int CSSM_TP_BASE_ERROR = -2147409920; +const int CSSM_DL_DB_RECORD_USER_TRUST = -2147479551; -const int CSSM_TP_PRIVATE_ERROR = -2147408896; +const int CSSM_DL_DB_RECORD_X509_CRL = -2147479550; -const int CSSM_KR_BASE_ERROR = -2147407872; +const int CSSM_DL_DB_RECORD_UNLOCK_REFERRAL = -2147479549; -const int CSSM_KR_PRIVATE_ERROR = -2147406848; +const int CSSM_DL_DB_RECORD_EXTENDED_ATTRIBUTE = -2147479548; -const int CSSM_AC_BASE_ERROR = -2147405824; +const int CSSM_DL_DB_RECORD_METADATA = -2147450880; -const int CSSM_AC_PRIVATE_ERROR = -2147404800; +const int CSSM_APPLEFILEDL_TOGGLE_AUTOCOMMIT = 0; -const int CSSM_MDS_BASE_ERROR = -2147414016; +const int CSSM_APPLEFILEDL_COMMIT = 1; -const int CSSM_MDS_PRIVATE_ERROR = -2147412992; +const int CSSM_APPLEFILEDL_ROLLBACK = 2; -const int CSSMERR_CSSM_INVALID_ADDIN_HANDLE = -2147417855; +const int CSSM_APPLEFILEDL_TAKE_FILE_LOCK = 3; -const int CSSMERR_CSSM_NOT_INITIALIZED = -2147417854; +const int CSSM_APPLEFILEDL_MAKE_BACKUP = 4; -const int CSSMERR_CSSM_INVALID_HANDLE_USAGE = -2147417853; +const int CSSM_APPLEFILEDL_MAKE_COPY = 5; -const int CSSMERR_CSSM_PVC_REFERENT_NOT_FOUND = -2147417852; +const int CSSM_APPLEFILEDL_DELETE_FILE = 6; -const int CSSMERR_CSSM_FUNCTION_INTEGRITY_FAIL = -2147417851; +const int CSSM_APPLE_UNLOCK_TYPE_KEY_DIRECT = 1; -const int CSSM_ERRCODE_INTERNAL_ERROR = 1; +const int CSSM_APPLE_UNLOCK_TYPE_WRAPPED_PRIVATE = 2; -const int CSSM_ERRCODE_MEMORY_ERROR = 2; +const int CSSM_APPLE_UNLOCK_TYPE_KEYBAG = 3; -const int CSSM_ERRCODE_MDS_ERROR = 3; +const int CSSMERR_APPLEDL_INVALID_OPEN_PARAMETERS = -2147412992; -const int CSSM_ERRCODE_INVALID_POINTER = 4; +const int CSSMERR_APPLEDL_DISK_FULL = -2147412991; -const int CSSM_ERRCODE_INVALID_INPUT_POINTER = 5; +const int CSSMERR_APPLEDL_QUOTA_EXCEEDED = -2147412990; -const int CSSM_ERRCODE_INVALID_OUTPUT_POINTER = 6; +const int CSSMERR_APPLEDL_FILE_TOO_BIG = -2147412989; -const int CSSM_ERRCODE_FUNCTION_NOT_IMPLEMENTED = 7; +const int CSSMERR_APPLEDL_INVALID_DATABASE_BLOB = -2147412988; -const int CSSM_ERRCODE_SELF_CHECK_FAILED = 8; +const int CSSMERR_APPLEDL_INVALID_KEY_BLOB = -2147412987; -const int CSSM_ERRCODE_OS_ACCESS_DENIED = 9; +const int CSSMERR_APPLEDL_INCOMPATIBLE_DATABASE_BLOB = -2147412986; -const int CSSM_ERRCODE_FUNCTION_FAILED = 10; +const int CSSMERR_APPLEDL_INCOMPATIBLE_KEY_BLOB = -2147412985; -const int CSSM_ERRCODE_MODULE_MANIFEST_VERIFY_FAILED = 11; +const int CSSMERR_APPLETP_HOSTNAME_MISMATCH = -2147408896; -const int CSSM_ERRCODE_INVALID_GUID = 12; +const int CSSMERR_APPLETP_UNKNOWN_CRITICAL_EXTEN = -2147408895; -const int CSSM_ERRCODE_OPERATION_AUTH_DENIED = 32; +const int CSSMERR_APPLETP_NO_BASIC_CONSTRAINTS = -2147408894; -const int CSSM_ERRCODE_OBJECT_USE_AUTH_DENIED = 33; +const int CSSMERR_APPLETP_INVALID_CA = -2147408893; -const int CSSM_ERRCODE_OBJECT_MANIP_AUTH_DENIED = 34; +const int CSSMERR_APPLETP_INVALID_AUTHORITY_ID = -2147408892; -const int CSSM_ERRCODE_OBJECT_ACL_NOT_SUPPORTED = 35; +const int CSSMERR_APPLETP_INVALID_SUBJECT_ID = -2147408891; -const int CSSM_ERRCODE_OBJECT_ACL_REQUIRED = 36; +const int CSSMERR_APPLETP_INVALID_KEY_USAGE = -2147408890; -const int CSSM_ERRCODE_INVALID_ACCESS_CREDENTIALS = 37; +const int CSSMERR_APPLETP_INVALID_EXTENDED_KEY_USAGE = -2147408889; -const int CSSM_ERRCODE_INVALID_ACL_BASE_CERTS = 38; +const int CSSMERR_APPLETP_INVALID_ID_LINKAGE = -2147408888; -const int CSSM_ERRCODE_ACL_BASE_CERTS_NOT_SUPPORTED = 39; +const int CSSMERR_APPLETP_PATH_LEN_CONSTRAINT = -2147408887; -const int CSSM_ERRCODE_INVALID_SAMPLE_VALUE = 40; +const int CSSMERR_APPLETP_INVALID_ROOT = -2147408886; -const int CSSM_ERRCODE_SAMPLE_VALUE_NOT_SUPPORTED = 41; +const int CSSMERR_APPLETP_CRL_EXPIRED = -2147408885; -const int CSSM_ERRCODE_INVALID_ACL_SUBJECT_VALUE = 42; +const int CSSMERR_APPLETP_CRL_NOT_VALID_YET = -2147408884; -const int CSSM_ERRCODE_ACL_SUBJECT_TYPE_NOT_SUPPORTED = 43; +const int CSSMERR_APPLETP_CRL_NOT_FOUND = -2147408883; -const int CSSM_ERRCODE_INVALID_ACL_CHALLENGE_CALLBACK = 44; +const int CSSMERR_APPLETP_CRL_SERVER_DOWN = -2147408882; -const int CSSM_ERRCODE_ACL_CHALLENGE_CALLBACK_FAILED = 45; +const int CSSMERR_APPLETP_CRL_BAD_URI = -2147408881; -const int CSSM_ERRCODE_INVALID_ACL_ENTRY_TAG = 46; +const int CSSMERR_APPLETP_UNKNOWN_CERT_EXTEN = -2147408880; -const int CSSM_ERRCODE_ACL_ENTRY_TAG_NOT_FOUND = 47; +const int CSSMERR_APPLETP_UNKNOWN_CRL_EXTEN = -2147408879; -const int CSSM_ERRCODE_INVALID_ACL_EDIT_MODE = 48; +const int CSSMERR_APPLETP_CRL_NOT_TRUSTED = -2147408878; -const int CSSM_ERRCODE_ACL_CHANGE_FAILED = 49; +const int CSSMERR_APPLETP_CRL_INVALID_ANCHOR_CERT = -2147408877; -const int CSSM_ERRCODE_INVALID_NEW_ACL_ENTRY = 50; +const int CSSMERR_APPLETP_CRL_POLICY_FAIL = -2147408876; -const int CSSM_ERRCODE_INVALID_NEW_ACL_OWNER = 51; +const int CSSMERR_APPLETP_IDP_FAIL = -2147408875; -const int CSSM_ERRCODE_ACL_DELETE_FAILED = 52; +const int CSSMERR_APPLETP_CERT_NOT_FOUND_FROM_ISSUER = -2147408874; -const int CSSM_ERRCODE_ACL_REPLACE_FAILED = 53; +const int CSSMERR_APPLETP_BAD_CERT_FROM_ISSUER = -2147408873; -const int CSSM_ERRCODE_ACL_ADD_FAILED = 54; +const int CSSMERR_APPLETP_SMIME_EMAIL_ADDRS_NOT_FOUND = -2147408872; -const int CSSM_ERRCODE_INVALID_CONTEXT_HANDLE = 64; +const int CSSMERR_APPLETP_SMIME_BAD_EXT_KEY_USE = -2147408871; -const int CSSM_ERRCODE_INCOMPATIBLE_VERSION = 65; +const int CSSMERR_APPLETP_SMIME_BAD_KEY_USE = -2147408870; -const int CSSM_ERRCODE_INVALID_CERTGROUP_POINTER = 66; +const int CSSMERR_APPLETP_SMIME_KEYUSAGE_NOT_CRITICAL = -2147408869; -const int CSSM_ERRCODE_INVALID_CERT_POINTER = 67; +const int CSSMERR_APPLETP_SMIME_NO_EMAIL_ADDRS = -2147408868; -const int CSSM_ERRCODE_INVALID_CRL_POINTER = 68; +const int CSSMERR_APPLETP_SMIME_SUBJ_ALT_NAME_NOT_CRIT = -2147408867; -const int CSSM_ERRCODE_INVALID_FIELD_POINTER = 69; +const int CSSMERR_APPLETP_SSL_BAD_EXT_KEY_USE = -2147408866; -const int CSSM_ERRCODE_INVALID_DATA = 70; +const int CSSMERR_APPLETP_OCSP_BAD_RESPONSE = -2147408865; -const int CSSM_ERRCODE_CRL_ALREADY_SIGNED = 71; +const int CSSMERR_APPLETP_OCSP_BAD_REQUEST = -2147408864; -const int CSSM_ERRCODE_INVALID_NUMBER_OF_FIELDS = 72; +const int CSSMERR_APPLETP_OCSP_UNAVAILABLE = -2147408863; -const int CSSM_ERRCODE_VERIFICATION_FAILURE = 73; +const int CSSMERR_APPLETP_OCSP_STATUS_UNRECOGNIZED = -2147408862; -const int CSSM_ERRCODE_INVALID_DB_HANDLE = 74; +const int CSSMERR_APPLETP_INCOMPLETE_REVOCATION_CHECK = -2147408861; -const int CSSM_ERRCODE_PRIVILEGE_NOT_GRANTED = 75; +const int CSSMERR_APPLETP_NETWORK_FAILURE = -2147408860; -const int CSSM_ERRCODE_INVALID_DB_LIST = 76; +const int CSSMERR_APPLETP_OCSP_NOT_TRUSTED = -2147408859; -const int CSSM_ERRCODE_INVALID_DB_LIST_POINTER = 77; +const int CSSMERR_APPLETP_OCSP_INVALID_ANCHOR_CERT = -2147408858; -const int CSSM_ERRCODE_UNKNOWN_FORMAT = 78; +const int CSSMERR_APPLETP_OCSP_SIG_ERROR = -2147408857; -const int CSSM_ERRCODE_UNKNOWN_TAG = 79; +const int CSSMERR_APPLETP_OCSP_NO_SIGNER = -2147408856; -const int CSSM_ERRCODE_INVALID_CSP_HANDLE = 80; +const int CSSMERR_APPLETP_OCSP_RESP_MALFORMED_REQ = -2147408855; -const int CSSM_ERRCODE_INVALID_DL_HANDLE = 81; +const int CSSMERR_APPLETP_OCSP_RESP_INTERNAL_ERR = -2147408854; -const int CSSM_ERRCODE_INVALID_CL_HANDLE = 82; +const int CSSMERR_APPLETP_OCSP_RESP_TRY_LATER = -2147408853; -const int CSSM_ERRCODE_INVALID_TP_HANDLE = 83; +const int CSSMERR_APPLETP_OCSP_RESP_SIG_REQUIRED = -2147408852; -const int CSSM_ERRCODE_INVALID_KR_HANDLE = 84; +const int CSSMERR_APPLETP_OCSP_RESP_UNAUTHORIZED = -2147408851; -const int CSSM_ERRCODE_INVALID_AC_HANDLE = 85; +const int CSSMERR_APPLETP_OCSP_NONCE_MISMATCH = -2147408850; -const int CSSM_ERRCODE_INVALID_PASSTHROUGH_ID = 86; +const int CSSMERR_APPLETP_CS_BAD_CERT_CHAIN_LENGTH = -2147408849; -const int CSSM_ERRCODE_INVALID_NETWORK_ADDR = 87; +const int CSSMERR_APPLETP_CS_NO_BASIC_CONSTRAINTS = -2147408848; -const int CSSM_ERRCODE_INVALID_CRYPTO_DATA = 88; +const int CSSMERR_APPLETP_CS_BAD_PATH_LENGTH = -2147408847; -const int CSSMERR_CSSM_INTERNAL_ERROR = -2147418111; +const int CSSMERR_APPLETP_CS_NO_EXTENDED_KEY_USAGE = -2147408846; -const int CSSMERR_CSSM_MEMORY_ERROR = -2147418110; +const int CSSMERR_APPLETP_CODE_SIGN_DEVELOPMENT = -2147408845; -const int CSSMERR_CSSM_MDS_ERROR = -2147418109; +const int CSSMERR_APPLETP_RS_BAD_CERT_CHAIN_LENGTH = -2147408844; -const int CSSMERR_CSSM_INVALID_POINTER = -2147418108; +const int CSSMERR_APPLETP_RS_BAD_EXTENDED_KEY_USAGE = -2147408843; -const int CSSMERR_CSSM_INVALID_INPUT_POINTER = -2147418107; +const int CSSMERR_APPLETP_TRUST_SETTING_DENY = -2147408842; -const int CSSMERR_CSSM_INVALID_OUTPUT_POINTER = -2147418106; +const int CSSMERR_APPLETP_INVALID_EMPTY_SUBJECT = -2147408841; -const int CSSMERR_CSSM_FUNCTION_NOT_IMPLEMENTED = -2147418105; +const int CSSMERR_APPLETP_UNKNOWN_QUAL_CERT_STATEMENT = -2147408840; -const int CSSMERR_CSSM_SELF_CHECK_FAILED = -2147418104; +const int CSSMERR_APPLETP_MISSING_REQUIRED_EXTENSION = -2147408839; -const int CSSMERR_CSSM_OS_ACCESS_DENIED = -2147418103; +const int CSSMERR_APPLETP_EXT_KEYUSAGE_NOT_CRITICAL = -2147408838; -const int CSSMERR_CSSM_FUNCTION_FAILED = -2147418102; +const int CSSMERR_APPLETP_IDENTIFIER_MISSING = -2147408837; -const int CSSMERR_CSSM_MODULE_MANIFEST_VERIFY_FAILED = -2147418101; +const int CSSMERR_APPLETP_CA_PIN_MISMATCH = -2147408836; -const int CSSMERR_CSSM_INVALID_GUID = -2147418100; +const int CSSMERR_APPLETP_LEAF_PIN_MISMATCH = -2147408835; -const int CSSMERR_CSSM_INVALID_CONTEXT_HANDLE = -2147418048; +const int CSSMERR_APPLE_DOTMAC_REQ_QUEUED = -2147408796; -const int CSSMERR_CSSM_INCOMPATIBLE_VERSION = -2147418047; +const int CSSMERR_APPLE_DOTMAC_REQ_REDIRECT = -2147408795; -const int CSSMERR_CSSM_PRIVILEGE_NOT_GRANTED = -2147418037; +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_ERR = -2147408794; -const int CSSM_CSSM_BASE_CSSM_ERROR = -2147417840; +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_PARAM = -2147408793; -const int CSSMERR_CSSM_SCOPE_NOT_SUPPORTED = -2147417839; +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_AUTH = -2147408792; -const int CSSMERR_CSSM_PVC_ALREADY_CONFIGURED = -2147417838; +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_UNIMPL = -2147408791; -const int CSSMERR_CSSM_INVALID_PVC = -2147417837; +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_NOT_AVAIL = -2147408790; -const int CSSMERR_CSSM_EMM_LOAD_FAILED = -2147417836; +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_ALREADY_EXIST = -2147408789; -const int CSSMERR_CSSM_EMM_UNLOAD_FAILED = -2147417835; +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_SERVICE_ERROR = -2147408788; -const int CSSMERR_CSSM_ADDIN_LOAD_FAILED = -2147417834; +const int CSSMERR_APPLE_DOTMAC_REQ_IS_PENDING = -2147408787; -const int CSSMERR_CSSM_INVALID_KEY_HIERARCHY = -2147417833; +const int CSSMERR_APPLE_DOTMAC_NO_REQ_PENDING = -2147408786; -const int CSSMERR_CSSM_ADDIN_UNLOAD_FAILED = -2147417832; +const int CSSMERR_APPLE_DOTMAC_CSR_VERIFY_FAIL = -2147408785; -const int CSSMERR_CSSM_LIB_REF_NOT_FOUND = -2147417831; +const int CSSMERR_APPLE_DOTMAC_FAILED_CONSISTENCY_CHECK = -2147408784; -const int CSSMERR_CSSM_INVALID_ADDIN_FUNCTION_TABLE = -2147417830; +const int CSSM_APPLEDL_OPEN_PARAMETERS_VERSION = 1; -const int CSSMERR_CSSM_EMM_AUTHENTICATE_FAILED = -2147417829; +const int CSSM_APPLECSPDL_DB_LOCK = 0; -const int CSSMERR_CSSM_ADDIN_AUTHENTICATE_FAILED = -2147417828; +const int CSSM_APPLECSPDL_DB_UNLOCK = 1; -const int CSSMERR_CSSM_INVALID_SERVICE_MASK = -2147417827; +const int CSSM_APPLECSPDL_DB_GET_SETTINGS = 2; -const int CSSMERR_CSSM_MODULE_NOT_LOADED = -2147417826; +const int CSSM_APPLECSPDL_DB_SET_SETTINGS = 3; -const int CSSMERR_CSSM_INVALID_SUBSERVICEID = -2147417825; +const int CSSM_APPLECSPDL_DB_IS_LOCKED = 4; -const int CSSMERR_CSSM_BUFFER_TOO_SMALL = -2147417824; +const int CSSM_APPLECSPDL_DB_CHANGE_PASSWORD = 5; -const int CSSMERR_CSSM_INVALID_ATTRIBUTE = -2147417823; +const int CSSM_APPLECSPDL_DB_GET_HANDLE = 6; -const int CSSMERR_CSSM_ATTRIBUTE_NOT_IN_CONTEXT = -2147417822; +const int CSSM_APPLESCPDL_CSP_GET_KEYHANDLE = 7; -const int CSSMERR_CSSM_MODULE_MANAGER_INITIALIZE_FAIL = -2147417821; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_8 = 8; -const int CSSMERR_CSSM_MODULE_MANAGER_NOT_FOUND = -2147417820; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_9 = 9; -const int CSSMERR_CSSM_EVENT_NOTIFICATION_CALLBACK_NOT_FOUND = -2147417819; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_10 = 10; -const int CSSMERR_CSP_INTERNAL_ERROR = -2147416063; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_11 = 11; -const int CSSMERR_CSP_MEMORY_ERROR = -2147416062; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_12 = 12; -const int CSSMERR_CSP_MDS_ERROR = -2147416061; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_13 = 13; -const int CSSMERR_CSP_INVALID_POINTER = -2147416060; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_14 = 14; -const int CSSMERR_CSP_INVALID_INPUT_POINTER = -2147416059; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_15 = 15; -const int CSSMERR_CSP_INVALID_OUTPUT_POINTER = -2147416058; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_16 = 16; -const int CSSMERR_CSP_FUNCTION_NOT_IMPLEMENTED = -2147416057; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_17 = 17; -const int CSSMERR_CSP_SELF_CHECK_FAILED = -2147416056; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_18 = 18; -const int CSSMERR_CSP_OS_ACCESS_DENIED = -2147416055; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_19 = 19; -const int CSSMERR_CSP_FUNCTION_FAILED = -2147416054; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_20 = 20; -const int CSSMERR_CSP_OPERATION_AUTH_DENIED = -2147416032; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_21 = 21; -const int CSSMERR_CSP_OBJECT_USE_AUTH_DENIED = -2147416031; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_22 = 22; -const int CSSMERR_CSP_OBJECT_MANIP_AUTH_DENIED = -2147416030; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_23 = 23; -const int CSSMERR_CSP_OBJECT_ACL_NOT_SUPPORTED = -2147416029; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_24 = 24; -const int CSSMERR_CSP_OBJECT_ACL_REQUIRED = -2147416028; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_25 = 25; -const int CSSMERR_CSP_INVALID_ACCESS_CREDENTIALS = -2147416027; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_26 = 26; -const int CSSMERR_CSP_INVALID_ACL_BASE_CERTS = -2147416026; +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_27 = 27; -const int CSSMERR_CSP_ACL_BASE_CERTS_NOT_SUPPORTED = -2147416025; +const int CSSM_APPLECSP_KEYDIGEST = 256; -const int CSSMERR_CSP_INVALID_SAMPLE_VALUE = -2147416024; +const int CSSM_KEYBLOB_WRAPPED_FORMAT_APPLE_CUSTOM = 100; -const int CSSMERR_CSP_SAMPLE_VALUE_NOT_SUPPORTED = -2147416023; +const int CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSL = 101; -const int CSSMERR_CSP_INVALID_ACL_SUBJECT_VALUE = -2147416022; +const int CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSH1 = 102; -const int CSSMERR_CSP_ACL_SUBJECT_TYPE_NOT_SUPPORTED = -2147416021; +const int CSSM_ATTRIBUTE_VENDOR_DEFINED = 8388608; -const int CSSMERR_CSP_INVALID_ACL_CHALLENGE_CALLBACK = -2147416020; +const int CSSM_ATTRIBUTE_PUBLIC_KEY = 1082130432; -const int CSSMERR_CSP_ACL_CHALLENGE_CALLBACK_FAILED = -2147416019; +const int CSSM_ATTRIBUTE_FEE_PRIME_TYPE = 276824065; -const int CSSMERR_CSP_INVALID_ACL_ENTRY_TAG = -2147416018; +const int CSSM_ATTRIBUTE_FEE_CURVE_TYPE = 276824066; -const int CSSMERR_CSP_ACL_ENTRY_TAG_NOT_FOUND = -2147416017; +const int CSSM_ATTRIBUTE_ASC_OPTIMIZATION = 276824067; -const int CSSMERR_CSP_INVALID_ACL_EDIT_MODE = -2147416016; +const int CSSM_ATTRIBUTE_RSA_BLINDING = 276824068; -const int CSSMERR_CSP_ACL_CHANGE_FAILED = -2147416015; +const int CSSM_ATTRIBUTE_PARAM_KEY = 1082130437; -const int CSSMERR_CSP_INVALID_NEW_ACL_ENTRY = -2147416014; +const int CSSM_ATTRIBUTE_PROMPT = 545259526; -const int CSSMERR_CSP_INVALID_NEW_ACL_OWNER = -2147416013; +const int CSSM_ATTRIBUTE_ALERT_TITLE = 545259527; -const int CSSMERR_CSP_ACL_DELETE_FAILED = -2147416012; +const int CSSM_ATTRIBUTE_VERIFY_PASSPHRASE = 276824072; -const int CSSMERR_CSP_ACL_REPLACE_FAILED = -2147416011; +const int CSSM_FEE_PRIME_TYPE_DEFAULT = 0; -const int CSSMERR_CSP_ACL_ADD_FAILED = -2147416010; +const int CSSM_FEE_PRIME_TYPE_MERSENNE = 1; -const int CSSMERR_CSP_INVALID_CONTEXT_HANDLE = -2147416000; +const int CSSM_FEE_PRIME_TYPE_FEE = 2; -const int CSSMERR_CSP_PRIVILEGE_NOT_GRANTED = -2147415989; +const int CSSM_FEE_PRIME_TYPE_GENERAL = 3; -const int CSSMERR_CSP_INVALID_DATA = -2147415994; +const int CSSM_FEE_CURVE_TYPE_DEFAULT = 0; -const int CSSMERR_CSP_INVALID_PASSTHROUGH_ID = -2147415978; +const int CSSM_FEE_CURVE_TYPE_MONTGOMERY = 1; -const int CSSMERR_CSP_INVALID_CRYPTO_DATA = -2147415976; +const int CSSM_FEE_CURVE_TYPE_WEIERSTRASS = 2; -const int CSSM_CSP_BASE_CSP_ERROR = -2147415808; +const int CSSM_FEE_CURVE_TYPE_ANSI_X9_62 = 3; -const int CSSMERR_CSP_INPUT_LENGTH_ERROR = -2147415807; +const int CSSM_ASC_OPTIMIZE_DEFAULT = 0; -const int CSSMERR_CSP_OUTPUT_LENGTH_ERROR = -2147415806; +const int CSSM_ASC_OPTIMIZE_SIZE = 1; -const int CSSMERR_CSP_PRIVILEGE_NOT_SUPPORTED = -2147415805; +const int CSSM_ASC_OPTIMIZE_SECURITY = 2; -const int CSSMERR_CSP_DEVICE_ERROR = -2147415804; +const int CSSM_ASC_OPTIMIZE_TIME = 3; -const int CSSMERR_CSP_DEVICE_MEMORY_ERROR = -2147415803; +const int CSSM_ASC_OPTIMIZE_TIME_SIZE = 4; -const int CSSMERR_CSP_ATTACH_HANDLE_BUSY = -2147415802; +const int CSSM_ASC_OPTIMIZE_ASCII = 5; -const int CSSMERR_CSP_NOT_LOGGED_IN = -2147415801; +const int CSSM_KEYATTR_PARTIAL = 65536; -const int CSSMERR_CSP_INVALID_KEY = -2147415792; +const int CSSM_KEYATTR_PUBLIC_KEY_ENCRYPT = 131072; -const int CSSMERR_CSP_INVALID_KEY_REFERENCE = -2147415791; +const int CSSM_TP_ACTION_REQUIRE_CRL_PER_CERT = 1; -const int CSSMERR_CSP_INVALID_KEY_CLASS = -2147415790; +const int CSSM_TP_ACTION_FETCH_CRL_FROM_NET = 2; -const int CSSMERR_CSP_ALGID_MISMATCH = -2147415789; +const int CSSM_TP_ACTION_CRL_SUFFICIENT = 4; -const int CSSMERR_CSP_KEY_USAGE_INCORRECT = -2147415788; +const int CSSM_TP_ACTION_REQUIRE_CRL_IF_PRESENT = 8; -const int CSSMERR_CSP_KEY_BLOB_TYPE_INCORRECT = -2147415787; +const int CSSM_TP_ACTION_ALLOW_EXPIRED = 1; -const int CSSMERR_CSP_KEY_HEADER_INCONSISTENT = -2147415786; +const int CSSM_TP_ACTION_LEAF_IS_CA = 2; -const int CSSMERR_CSP_UNSUPPORTED_KEY_FORMAT = -2147415785; +const int CSSM_TP_ACTION_FETCH_CERT_FROM_NET = 4; -const int CSSMERR_CSP_UNSUPPORTED_KEY_SIZE = -2147415784; +const int CSSM_TP_ACTION_ALLOW_EXPIRED_ROOT = 8; -const int CSSMERR_CSP_INVALID_KEY_POINTER = -2147415783; +const int CSSM_TP_ACTION_REQUIRE_REV_PER_CERT = 16; -const int CSSMERR_CSP_INVALID_KEYUSAGE_MASK = -2147415782; +const int CSSM_TP_ACTION_TRUST_SETTINGS = 32; -const int CSSMERR_CSP_UNSUPPORTED_KEYUSAGE_MASK = -2147415781; +const int CSSM_TP_ACTION_IMPLICIT_ANCHORS = 64; -const int CSSMERR_CSP_INVALID_KEYATTR_MASK = -2147415780; +const int CSSM_CERT_STATUS_EXPIRED = 1; -const int CSSMERR_CSP_UNSUPPORTED_KEYATTR_MASK = -2147415779; +const int CSSM_CERT_STATUS_NOT_VALID_YET = 2; -const int CSSMERR_CSP_INVALID_KEY_LABEL = -2147415778; +const int CSSM_CERT_STATUS_IS_IN_INPUT_CERTS = 4; -const int CSSMERR_CSP_UNSUPPORTED_KEY_LABEL = -2147415777; +const int CSSM_CERT_STATUS_IS_IN_ANCHORS = 8; -const int CSSMERR_CSP_INVALID_KEY_FORMAT = -2147415776; +const int CSSM_CERT_STATUS_IS_ROOT = 16; -const int CSSMERR_CSP_INVALID_DATA_COUNT = -2147415768; +const int CSSM_CERT_STATUS_IS_FROM_NET = 32; -const int CSSMERR_CSP_VECTOR_OF_BUFS_UNSUPPORTED = -2147415767; +const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_USER = 64; -const int CSSMERR_CSP_INVALID_INPUT_VECTOR = -2147415766; +const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_ADMIN = 128; -const int CSSMERR_CSP_INVALID_OUTPUT_VECTOR = -2147415765; +const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_SYSTEM = 256; -const int CSSMERR_CSP_INVALID_CONTEXT = -2147415760; +const int CSSM_CERT_STATUS_TRUST_SETTINGS_TRUST = 512; -const int CSSMERR_CSP_INVALID_ALGORITHM = -2147415759; +const int CSSM_CERT_STATUS_TRUST_SETTINGS_DENY = 1024; -const int CSSMERR_CSP_INVALID_ATTR_KEY = -2147415754; +const int CSSM_CERT_STATUS_TRUST_SETTINGS_IGNORED_ERROR = 2048; -const int CSSMERR_CSP_MISSING_ATTR_KEY = -2147415753; +const int CSSM_EVIDENCE_FORM_APPLE_HEADER = -2147483648; -const int CSSMERR_CSP_INVALID_ATTR_INIT_VECTOR = -2147415752; +const int CSSM_EVIDENCE_FORM_APPLE_CERTGROUP = -2147483647; -const int CSSMERR_CSP_MISSING_ATTR_INIT_VECTOR = -2147415751; +const int CSSM_EVIDENCE_FORM_APPLE_CERT_INFO = -2147483646; -const int CSSMERR_CSP_INVALID_ATTR_SALT = -2147415750; +const int CSSM_APPLEX509CL_OBTAIN_CSR = 0; -const int CSSMERR_CSP_MISSING_ATTR_SALT = -2147415749; +const int CSSM_APPLEX509CL_VERIFY_CSR = 1; -const int CSSMERR_CSP_INVALID_ATTR_PADDING = -2147415748; +const int kSecSubjectItemAttr = 1937072746; -const int CSSMERR_CSP_MISSING_ATTR_PADDING = -2147415747; +const int kSecIssuerItemAttr = 1769173877; -const int CSSMERR_CSP_INVALID_ATTR_RANDOM = -2147415746; +const int kSecSerialNumberItemAttr = 1936614002; -const int CSSMERR_CSP_MISSING_ATTR_RANDOM = -2147415745; +const int kSecPublicKeyHashItemAttr = 1752198009; -const int CSSMERR_CSP_INVALID_ATTR_SEED = -2147415744; +const int kSecSubjectKeyIdentifierItemAttr = 1936419172; -const int CSSMERR_CSP_MISSING_ATTR_SEED = -2147415743; +const int kSecCertTypeItemAttr = 1668577648; -const int CSSMERR_CSP_INVALID_ATTR_PASSPHRASE = -2147415742; +const int kSecCertEncodingItemAttr = 1667591779; -const int CSSMERR_CSP_MISSING_ATTR_PASSPHRASE = -2147415741; +const int SSL_NULL_WITH_NULL_NULL = 0; -const int CSSMERR_CSP_INVALID_ATTR_KEY_LENGTH = -2147415740; +const int SSL_RSA_WITH_NULL_MD5 = 1; -const int CSSMERR_CSP_MISSING_ATTR_KEY_LENGTH = -2147415739; +const int SSL_RSA_WITH_NULL_SHA = 2; -const int CSSMERR_CSP_INVALID_ATTR_BLOCK_SIZE = -2147415738; +const int SSL_RSA_EXPORT_WITH_RC4_40_MD5 = 3; -const int CSSMERR_CSP_MISSING_ATTR_BLOCK_SIZE = -2147415737; +const int SSL_RSA_WITH_RC4_128_MD5 = 4; -const int CSSMERR_CSP_INVALID_ATTR_OUTPUT_SIZE = -2147415708; +const int SSL_RSA_WITH_RC4_128_SHA = 5; -const int CSSMERR_CSP_MISSING_ATTR_OUTPUT_SIZE = -2147415707; +const int SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5 = 6; -const int CSSMERR_CSP_INVALID_ATTR_ROUNDS = -2147415706; +const int SSL_RSA_WITH_IDEA_CBC_SHA = 7; -const int CSSMERR_CSP_MISSING_ATTR_ROUNDS = -2147415705; +const int SSL_RSA_EXPORT_WITH_DES40_CBC_SHA = 8; -const int CSSMERR_CSP_INVALID_ATTR_ALG_PARAMS = -2147415704; +const int SSL_RSA_WITH_DES_CBC_SHA = 9; -const int CSSMERR_CSP_MISSING_ATTR_ALG_PARAMS = -2147415703; +const int SSL_RSA_WITH_3DES_EDE_CBC_SHA = 10; -const int CSSMERR_CSP_INVALID_ATTR_LABEL = -2147415702; +const int SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA = 11; -const int CSSMERR_CSP_MISSING_ATTR_LABEL = -2147415701; +const int SSL_DH_DSS_WITH_DES_CBC_SHA = 12; -const int CSSMERR_CSP_INVALID_ATTR_KEY_TYPE = -2147415700; +const int SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13; -const int CSSMERR_CSP_MISSING_ATTR_KEY_TYPE = -2147415699; +const int SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA = 14; -const int CSSMERR_CSP_INVALID_ATTR_MODE = -2147415698; +const int SSL_DH_RSA_WITH_DES_CBC_SHA = 15; -const int CSSMERR_CSP_MISSING_ATTR_MODE = -2147415697; +const int SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16; -const int CSSMERR_CSP_INVALID_ATTR_EFFECTIVE_BITS = -2147415696; +const int SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA = 17; -const int CSSMERR_CSP_MISSING_ATTR_EFFECTIVE_BITS = -2147415695; +const int SSL_DHE_DSS_WITH_DES_CBC_SHA = 18; -const int CSSMERR_CSP_INVALID_ATTR_START_DATE = -2147415694; +const int SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19; -const int CSSMERR_CSP_MISSING_ATTR_START_DATE = -2147415693; +const int SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA = 20; -const int CSSMERR_CSP_INVALID_ATTR_END_DATE = -2147415692; +const int SSL_DHE_RSA_WITH_DES_CBC_SHA = 21; -const int CSSMERR_CSP_MISSING_ATTR_END_DATE = -2147415691; +const int SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22; -const int CSSMERR_CSP_INVALID_ATTR_VERSION = -2147415690; +const int SSL_DH_anon_EXPORT_WITH_RC4_40_MD5 = 23; -const int CSSMERR_CSP_MISSING_ATTR_VERSION = -2147415689; +const int SSL_DH_anon_WITH_RC4_128_MD5 = 24; -const int CSSMERR_CSP_INVALID_ATTR_PRIME = -2147415688; +const int SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA = 25; -const int CSSMERR_CSP_MISSING_ATTR_PRIME = -2147415687; +const int SSL_DH_anon_WITH_DES_CBC_SHA = 26; -const int CSSMERR_CSP_INVALID_ATTR_BASE = -2147415686; +const int SSL_DH_anon_WITH_3DES_EDE_CBC_SHA = 27; -const int CSSMERR_CSP_MISSING_ATTR_BASE = -2147415685; +const int SSL_FORTEZZA_DMS_WITH_NULL_SHA = 28; -const int CSSMERR_CSP_INVALID_ATTR_SUBPRIME = -2147415684; +const int SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA = 29; -const int CSSMERR_CSP_MISSING_ATTR_SUBPRIME = -2147415683; +const int TLS_RSA_WITH_AES_128_CBC_SHA = 47; -const int CSSMERR_CSP_INVALID_ATTR_ITERATION_COUNT = -2147415682; +const int TLS_DH_DSS_WITH_AES_128_CBC_SHA = 48; -const int CSSMERR_CSP_MISSING_ATTR_ITERATION_COUNT = -2147415681; +const int TLS_DH_RSA_WITH_AES_128_CBC_SHA = 49; -const int CSSMERR_CSP_INVALID_ATTR_DL_DB_HANDLE = -2147415680; +const int TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 50; -const int CSSMERR_CSP_MISSING_ATTR_DL_DB_HANDLE = -2147415679; +const int TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 51; -const int CSSMERR_CSP_INVALID_ATTR_ACCESS_CREDENTIALS = -2147415678; +const int TLS_DH_anon_WITH_AES_128_CBC_SHA = 52; -const int CSSMERR_CSP_MISSING_ATTR_ACCESS_CREDENTIALS = -2147415677; +const int TLS_RSA_WITH_AES_256_CBC_SHA = 53; -const int CSSMERR_CSP_INVALID_ATTR_PUBLIC_KEY_FORMAT = -2147415676; +const int TLS_DH_DSS_WITH_AES_256_CBC_SHA = 54; -const int CSSMERR_CSP_MISSING_ATTR_PUBLIC_KEY_FORMAT = -2147415675; +const int TLS_DH_RSA_WITH_AES_256_CBC_SHA = 55; -const int CSSMERR_CSP_INVALID_ATTR_PRIVATE_KEY_FORMAT = -2147415674; +const int TLS_DHE_DSS_WITH_AES_256_CBC_SHA = 56; -const int CSSMERR_CSP_MISSING_ATTR_PRIVATE_KEY_FORMAT = -2147415673; +const int TLS_DHE_RSA_WITH_AES_256_CBC_SHA = 57; -const int CSSMERR_CSP_INVALID_ATTR_SYMMETRIC_KEY_FORMAT = -2147415672; +const int TLS_DH_anon_WITH_AES_256_CBC_SHA = 58; -const int CSSMERR_CSP_MISSING_ATTR_SYMMETRIC_KEY_FORMAT = -2147415671; +const int TLS_ECDH_ECDSA_WITH_NULL_SHA = -16383; -const int CSSMERR_CSP_INVALID_ATTR_WRAPPED_KEY_FORMAT = -2147415670; +const int TLS_ECDH_ECDSA_WITH_RC4_128_SHA = -16382; -const int CSSMERR_CSP_MISSING_ATTR_WRAPPED_KEY_FORMAT = -2147415669; +const int TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA = -16381; -const int CSSMERR_CSP_STAGED_OPERATION_IN_PROGRESS = -2147415736; +const int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA = -16380; -const int CSSMERR_CSP_STAGED_OPERATION_NOT_STARTED = -2147415735; +const int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA = -16379; -const int CSSMERR_CSP_VERIFY_FAILED = -2147415734; +const int TLS_ECDHE_ECDSA_WITH_NULL_SHA = -16378; -const int CSSMERR_CSP_INVALID_SIGNATURE = -2147415733; +const int TLS_ECDHE_ECDSA_WITH_RC4_128_SHA = -16377; -const int CSSMERR_CSP_QUERY_SIZE_UNKNOWN = -2147415732; +const int TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA = -16376; -const int CSSMERR_CSP_BLOCK_SIZE_MISMATCH = -2147415731; +const int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = -16375; -const int CSSMERR_CSP_PRIVATE_KEY_NOT_FOUND = -2147415730; +const int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = -16374; -const int CSSMERR_CSP_PUBLIC_KEY_INCONSISTENT = -2147415729; +const int TLS_ECDH_RSA_WITH_NULL_SHA = -16373; -const int CSSMERR_CSP_DEVICE_VERIFY_FAILED = -2147415728; +const int TLS_ECDH_RSA_WITH_RC4_128_SHA = -16372; -const int CSSMERR_CSP_INVALID_LOGIN_NAME = -2147415727; +const int TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA = -16371; -const int CSSMERR_CSP_ALREADY_LOGGED_IN = -2147415726; +const int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA = -16370; -const int CSSMERR_CSP_PRIVATE_KEY_ALREADY_EXISTS = -2147415725; +const int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA = -16369; -const int CSSMERR_CSP_KEY_LABEL_ALREADY_EXISTS = -2147415724; +const int TLS_ECDHE_RSA_WITH_NULL_SHA = -16368; -const int CSSMERR_CSP_INVALID_DIGEST_ALGORITHM = -2147415723; +const int TLS_ECDHE_RSA_WITH_RC4_128_SHA = -16367; -const int CSSMERR_CSP_CRYPTO_DATA_CALLBACK_FAILED = -2147415722; +const int TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA = -16366; -const int CSSMERR_TP_INTERNAL_ERROR = -2147409919; +const int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = -16365; -const int CSSMERR_TP_MEMORY_ERROR = -2147409918; +const int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = -16364; -const int CSSMERR_TP_MDS_ERROR = -2147409917; +const int TLS_ECDH_anon_WITH_NULL_SHA = -16363; -const int CSSMERR_TP_INVALID_POINTER = -2147409916; +const int TLS_ECDH_anon_WITH_RC4_128_SHA = -16362; -const int CSSMERR_TP_INVALID_INPUT_POINTER = -2147409915; +const int TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA = -16361; -const int CSSMERR_TP_INVALID_OUTPUT_POINTER = -2147409914; +const int TLS_ECDH_anon_WITH_AES_128_CBC_SHA = -16360; -const int CSSMERR_TP_FUNCTION_NOT_IMPLEMENTED = -2147409913; +const int TLS_ECDH_anon_WITH_AES_256_CBC_SHA = -16359; -const int CSSMERR_TP_SELF_CHECK_FAILED = -2147409912; +const int TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA = -16331; -const int CSSMERR_TP_OS_ACCESS_DENIED = -2147409911; +const int TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA = -16330; -const int CSSMERR_TP_FUNCTION_FAILED = -2147409910; +const int TLS_PSK_WITH_CHACHA20_POLY1305_SHA256 = -13141; -const int CSSMERR_TP_INVALID_CONTEXT_HANDLE = -2147409856; +const int TLS_NULL_WITH_NULL_NULL = 0; -const int CSSMERR_TP_INVALID_DATA = -2147409850; +const int TLS_RSA_WITH_NULL_MD5 = 1; -const int CSSMERR_TP_INVALID_DB_LIST = -2147409844; +const int TLS_RSA_WITH_NULL_SHA = 2; -const int CSSMERR_TP_INVALID_CERTGROUP_POINTER = -2147409854; +const int TLS_RSA_WITH_RC4_128_MD5 = 4; -const int CSSMERR_TP_INVALID_CERT_POINTER = -2147409853; +const int TLS_RSA_WITH_RC4_128_SHA = 5; -const int CSSMERR_TP_INVALID_CRL_POINTER = -2147409852; +const int TLS_RSA_WITH_3DES_EDE_CBC_SHA = 10; -const int CSSMERR_TP_INVALID_FIELD_POINTER = -2147409851; +const int TLS_RSA_WITH_NULL_SHA256 = 59; -const int CSSMERR_TP_INVALID_NETWORK_ADDR = -2147409833; +const int TLS_RSA_WITH_AES_128_CBC_SHA256 = 60; -const int CSSMERR_TP_CRL_ALREADY_SIGNED = -2147409849; +const int TLS_RSA_WITH_AES_256_CBC_SHA256 = 61; -const int CSSMERR_TP_INVALID_NUMBER_OF_FIELDS = -2147409848; +const int TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13; -const int CSSMERR_TP_VERIFICATION_FAILURE = -2147409847; +const int TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16; -const int CSSMERR_TP_INVALID_DB_HANDLE = -2147409846; +const int TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19; -const int CSSMERR_TP_UNKNOWN_FORMAT = -2147409842; +const int TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22; -const int CSSMERR_TP_UNKNOWN_TAG = -2147409841; +const int TLS_DH_DSS_WITH_AES_128_CBC_SHA256 = 62; -const int CSSMERR_TP_INVALID_PASSTHROUGH_ID = -2147409834; +const int TLS_DH_RSA_WITH_AES_128_CBC_SHA256 = 63; -const int CSSMERR_TP_INVALID_CSP_HANDLE = -2147409840; +const int TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 = 64; -const int CSSMERR_TP_INVALID_DL_HANDLE = -2147409839; +const int TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 = 103; -const int CSSMERR_TP_INVALID_CL_HANDLE = -2147409838; +const int TLS_DH_DSS_WITH_AES_256_CBC_SHA256 = 104; -const int CSSMERR_TP_INVALID_DB_LIST_POINTER = -2147409843; +const int TLS_DH_RSA_WITH_AES_256_CBC_SHA256 = 105; -const int CSSM_TP_BASE_TP_ERROR = -2147409664; +const int TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 = 106; -const int CSSMERR_TP_INVALID_CALLERAUTH_CONTEXT_POINTER = -2147409663; +const int TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 = 107; -const int CSSMERR_TP_INVALID_IDENTIFIER_POINTER = -2147409662; +const int TLS_DH_anon_WITH_RC4_128_MD5 = 24; -const int CSSMERR_TP_INVALID_KEYCACHE_HANDLE = -2147409661; +const int TLS_DH_anon_WITH_3DES_EDE_CBC_SHA = 27; -const int CSSMERR_TP_INVALID_CERTGROUP = -2147409660; +const int TLS_DH_anon_WITH_AES_128_CBC_SHA256 = 108; -const int CSSMERR_TP_INVALID_CRLGROUP = -2147409659; +const int TLS_DH_anon_WITH_AES_256_CBC_SHA256 = 109; -const int CSSMERR_TP_INVALID_CRLGROUP_POINTER = -2147409658; +const int TLS_PSK_WITH_RC4_128_SHA = 138; -const int CSSMERR_TP_AUTHENTICATION_FAILED = -2147409657; +const int TLS_PSK_WITH_3DES_EDE_CBC_SHA = 139; -const int CSSMERR_TP_CERTGROUP_INCOMPLETE = -2147409656; +const int TLS_PSK_WITH_AES_128_CBC_SHA = 140; -const int CSSMERR_TP_CERTIFICATE_CANT_OPERATE = -2147409655; +const int TLS_PSK_WITH_AES_256_CBC_SHA = 141; -const int CSSMERR_TP_CERT_EXPIRED = -2147409654; +const int TLS_DHE_PSK_WITH_RC4_128_SHA = 142; -const int CSSMERR_TP_CERT_NOT_VALID_YET = -2147409653; +const int TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA = 143; -const int CSSMERR_TP_CERT_REVOKED = -2147409652; +const int TLS_DHE_PSK_WITH_AES_128_CBC_SHA = 144; -const int CSSMERR_TP_CERT_SUSPENDED = -2147409651; +const int TLS_DHE_PSK_WITH_AES_256_CBC_SHA = 145; -const int CSSMERR_TP_INSUFFICIENT_CREDENTIALS = -2147409650; +const int TLS_RSA_PSK_WITH_RC4_128_SHA = 146; -const int CSSMERR_TP_INVALID_ACTION = -2147409649; +const int TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA = 147; -const int CSSMERR_TP_INVALID_ACTION_DATA = -2147409648; +const int TLS_RSA_PSK_WITH_AES_128_CBC_SHA = 148; -const int CSSMERR_TP_INVALID_ANCHOR_CERT = -2147409646; +const int TLS_RSA_PSK_WITH_AES_256_CBC_SHA = 149; -const int CSSMERR_TP_INVALID_AUTHORITY = -2147409645; +const int TLS_PSK_WITH_NULL_SHA = 44; -const int CSSMERR_TP_VERIFY_ACTION_FAILED = -2147409644; +const int TLS_DHE_PSK_WITH_NULL_SHA = 45; -const int CSSMERR_TP_INVALID_CERTIFICATE = -2147409643; +const int TLS_RSA_PSK_WITH_NULL_SHA = 46; -const int CSSMERR_TP_INVALID_CERT_AUTHORITY = -2147409642; +const int TLS_RSA_WITH_AES_128_GCM_SHA256 = 156; -const int CSSMERR_TP_INVALID_CRL_AUTHORITY = -2147409641; +const int TLS_RSA_WITH_AES_256_GCM_SHA384 = 157; -const int CSSMERR_TP_INVALID_CRL_ENCODING = -2147409640; +const int TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 = 158; -const int CSSMERR_TP_INVALID_CRL_TYPE = -2147409639; +const int TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 = 159; -const int CSSMERR_TP_INVALID_CRL = -2147409638; +const int TLS_DH_RSA_WITH_AES_128_GCM_SHA256 = 160; -const int CSSMERR_TP_INVALID_FORM_TYPE = -2147409637; +const int TLS_DH_RSA_WITH_AES_256_GCM_SHA384 = 161; -const int CSSMERR_TP_INVALID_ID = -2147409636; +const int TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 = 162; -const int CSSMERR_TP_INVALID_IDENTIFIER = -2147409635; +const int TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 = 163; -const int CSSMERR_TP_INVALID_INDEX = -2147409634; +const int TLS_DH_DSS_WITH_AES_128_GCM_SHA256 = 164; -const int CSSMERR_TP_INVALID_NAME = -2147409633; +const int TLS_DH_DSS_WITH_AES_256_GCM_SHA384 = 165; -const int CSSMERR_TP_INVALID_POLICY_IDENTIFIERS = -2147409632; +const int TLS_DH_anon_WITH_AES_128_GCM_SHA256 = 166; -const int CSSMERR_TP_INVALID_TIMESTRING = -2147409631; +const int TLS_DH_anon_WITH_AES_256_GCM_SHA384 = 167; -const int CSSMERR_TP_INVALID_REASON = -2147409630; +const int TLS_PSK_WITH_AES_128_GCM_SHA256 = 168; -const int CSSMERR_TP_INVALID_REQUEST_INPUTS = -2147409629; +const int TLS_PSK_WITH_AES_256_GCM_SHA384 = 169; -const int CSSMERR_TP_INVALID_RESPONSE_VECTOR = -2147409628; +const int TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 = 170; -const int CSSMERR_TP_INVALID_SIGNATURE = -2147409627; +const int TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 = 171; -const int CSSMERR_TP_INVALID_STOP_ON_POLICY = -2147409626; +const int TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 = 172; -const int CSSMERR_TP_INVALID_CALLBACK = -2147409625; +const int TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 = 173; -const int CSSMERR_TP_INVALID_TUPLE = -2147409624; +const int TLS_PSK_WITH_AES_128_CBC_SHA256 = 174; -const int CSSMERR_TP_NOT_SIGNER = -2147409623; +const int TLS_PSK_WITH_AES_256_CBC_SHA384 = 175; -const int CSSMERR_TP_NOT_TRUSTED = -2147409622; +const int TLS_PSK_WITH_NULL_SHA256 = 176; -const int CSSMERR_TP_NO_DEFAULT_AUTHORITY = -2147409621; +const int TLS_PSK_WITH_NULL_SHA384 = 177; -const int CSSMERR_TP_REJECTED_FORM = -2147409620; +const int TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 = 178; -const int CSSMERR_TP_REQUEST_LOST = -2147409619; +const int TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 = 179; -const int CSSMERR_TP_REQUEST_REJECTED = -2147409618; +const int TLS_DHE_PSK_WITH_NULL_SHA256 = 180; -const int CSSMERR_TP_UNSUPPORTED_ADDR_TYPE = -2147409617; +const int TLS_DHE_PSK_WITH_NULL_SHA384 = 181; -const int CSSMERR_TP_UNSUPPORTED_SERVICE = -2147409616; +const int TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 = 182; -const int CSSMERR_TP_INVALID_TUPLEGROUP_POINTER = -2147409615; +const int TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 = 183; -const int CSSMERR_TP_INVALID_TUPLEGROUP = -2147409614; +const int TLS_RSA_PSK_WITH_NULL_SHA256 = 184; -const int CSSMERR_AC_INTERNAL_ERROR = -2147405823; +const int TLS_RSA_PSK_WITH_NULL_SHA384 = 185; -const int CSSMERR_AC_MEMORY_ERROR = -2147405822; +const int TLS_AES_128_GCM_SHA256 = 4865; -const int CSSMERR_AC_MDS_ERROR = -2147405821; +const int TLS_AES_256_GCM_SHA384 = 4866; -const int CSSMERR_AC_INVALID_POINTER = -2147405820; +const int TLS_CHACHA20_POLY1305_SHA256 = 4867; -const int CSSMERR_AC_INVALID_INPUT_POINTER = -2147405819; +const int TLS_AES_128_CCM_SHA256 = 4868; -const int CSSMERR_AC_INVALID_OUTPUT_POINTER = -2147405818; +const int TLS_AES_128_CCM_8_SHA256 = 4869; -const int CSSMERR_AC_FUNCTION_NOT_IMPLEMENTED = -2147405817; +const int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 = -16349; -const int CSSMERR_AC_SELF_CHECK_FAILED = -2147405816; +const int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 = -16348; -const int CSSMERR_AC_OS_ACCESS_DENIED = -2147405815; +const int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 = -16347; -const int CSSMERR_AC_FUNCTION_FAILED = -2147405814; +const int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 = -16346; -const int CSSMERR_AC_INVALID_CONTEXT_HANDLE = -2147405760; +const int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 = -16345; -const int CSSMERR_AC_INVALID_DATA = -2147405754; +const int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 = -16344; -const int CSSMERR_AC_INVALID_DB_LIST = -2147405748; +const int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 = -16343; -const int CSSMERR_AC_INVALID_PASSTHROUGH_ID = -2147405738; +const int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 = -16342; -const int CSSMERR_AC_INVALID_DL_HANDLE = -2147405743; +const int TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = -16341; -const int CSSMERR_AC_INVALID_CL_HANDLE = -2147405742; +const int TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = -16340; -const int CSSMERR_AC_INVALID_TP_HANDLE = -2147405741; +const int TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = -16339; -const int CSSMERR_AC_INVALID_DB_HANDLE = -2147405750; +const int TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = -16338; -const int CSSMERR_AC_INVALID_DB_LIST_POINTER = -2147405747; +const int TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = -16337; -const int CSSM_AC_BASE_AC_ERROR = -2147405568; +const int TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = -16336; -const int CSSMERR_AC_INVALID_BASE_ACLS = -2147405567; +const int TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 = -16335; -const int CSSMERR_AC_INVALID_TUPLE_CREDENTIALS = -2147405566; +const int TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 = -16334; -const int CSSMERR_AC_INVALID_ENCODING = -2147405565; +const int TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 = -13144; -const int CSSMERR_AC_INVALID_VALIDITY_PERIOD = -2147405564; +const int TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 = -13143; -const int CSSMERR_AC_INVALID_REQUESTOR = -2147405563; +const int TLS_EMPTY_RENEGOTIATION_INFO_SCSV = 255; -const int CSSMERR_AC_INVALID_REQUEST_DESCRIPTOR = -2147405562; +const int SSL_RSA_WITH_RC2_CBC_MD5 = -128; -const int CSSMERR_CL_INTERNAL_ERROR = -2147411967; +const int SSL_RSA_WITH_IDEA_CBC_MD5 = -127; -const int CSSMERR_CL_MEMORY_ERROR = -2147411966; +const int SSL_RSA_WITH_DES_CBC_MD5 = -126; -const int CSSMERR_CL_MDS_ERROR = -2147411965; +const int SSL_RSA_WITH_3DES_EDE_CBC_MD5 = -125; -const int CSSMERR_CL_INVALID_POINTER = -2147411964; +const int SSL_NO_SUCH_CIPHERSUITE = -1; -const int CSSMERR_CL_INVALID_INPUT_POINTER = -2147411963; +const int NSASCIIStringEncoding = 1; -const int CSSMERR_CL_INVALID_OUTPUT_POINTER = -2147411962; +const int NSNEXTSTEPStringEncoding = 2; -const int CSSMERR_CL_FUNCTION_NOT_IMPLEMENTED = -2147411961; +const int NSJapaneseEUCStringEncoding = 3; -const int CSSMERR_CL_SELF_CHECK_FAILED = -2147411960; +const int NSUTF8StringEncoding = 4; -const int CSSMERR_CL_OS_ACCESS_DENIED = -2147411959; +const int NSISOLatin1StringEncoding = 5; -const int CSSMERR_CL_FUNCTION_FAILED = -2147411958; +const int NSSymbolStringEncoding = 6; -const int CSSMERR_CL_INVALID_CONTEXT_HANDLE = -2147411904; +const int NSNonLossyASCIIStringEncoding = 7; -const int CSSMERR_CL_INVALID_CERTGROUP_POINTER = -2147411902; +const int NSShiftJISStringEncoding = 8; -const int CSSMERR_CL_INVALID_CERT_POINTER = -2147411901; +const int NSISOLatin2StringEncoding = 9; -const int CSSMERR_CL_INVALID_CRL_POINTER = -2147411900; +const int NSUnicodeStringEncoding = 10; -const int CSSMERR_CL_INVALID_FIELD_POINTER = -2147411899; +const int NSWindowsCP1251StringEncoding = 11; -const int CSSMERR_CL_INVALID_DATA = -2147411898; +const int NSWindowsCP1252StringEncoding = 12; -const int CSSMERR_CL_CRL_ALREADY_SIGNED = -2147411897; +const int NSWindowsCP1253StringEncoding = 13; -const int CSSMERR_CL_INVALID_NUMBER_OF_FIELDS = -2147411896; +const int NSWindowsCP1254StringEncoding = 14; -const int CSSMERR_CL_VERIFICATION_FAILURE = -2147411895; +const int NSWindowsCP1250StringEncoding = 15; -const int CSSMERR_CL_UNKNOWN_FORMAT = -2147411890; +const int NSISO2022JPStringEncoding = 21; -const int CSSMERR_CL_UNKNOWN_TAG = -2147411889; +const int NSMacOSRomanStringEncoding = 30; -const int CSSMERR_CL_INVALID_PASSTHROUGH_ID = -2147411882; +const int NSUTF16StringEncoding = 10; -const int CSSM_CL_BASE_CL_ERROR = -2147411712; +const int NSUTF16BigEndianStringEncoding = 2415919360; -const int CSSMERR_CL_INVALID_BUNDLE_POINTER = -2147411711; +const int NSUTF16LittleEndianStringEncoding = 2483028224; -const int CSSMERR_CL_INVALID_CACHE_HANDLE = -2147411710; +const int NSUTF32StringEncoding = 2348810496; -const int CSSMERR_CL_INVALID_RESULTS_HANDLE = -2147411709; +const int NSUTF32BigEndianStringEncoding = 2550137088; -const int CSSMERR_CL_INVALID_BUNDLE_INFO = -2147411708; +const int NSUTF32LittleEndianStringEncoding = 2617245952; -const int CSSMERR_CL_INVALID_CRL_INDEX = -2147411707; +const int NSProprietaryStringEncoding = 65536; -const int CSSMERR_CL_INVALID_SCOPE = -2147411706; +const int NSOpenStepUnicodeReservedBase = 62464; -const int CSSMERR_CL_NO_FIELD_VALUES = -2147411705; +const int kNativeArgNumberPos = 0; -const int CSSMERR_CL_SCOPE_NOT_SUPPORTED = -2147411704; +const int kNativeArgNumberSize = 8; -const int CSSMERR_DL_INTERNAL_ERROR = -2147414015; +const int kNativeArgTypePos = 8; -const int CSSMERR_DL_MEMORY_ERROR = -2147414014; +const int kNativeArgTypeSize = 8; -const int CSSMERR_DL_MDS_ERROR = -2147414013; +const int DYNAMIC_TARGETS_ENABLED = 0; -const int CSSMERR_DL_INVALID_POINTER = -2147414012; +const int TARGET_OS_MAC = 1; -const int CSSMERR_DL_INVALID_INPUT_POINTER = -2147414011; +const int TARGET_OS_WIN32 = 0; -const int CSSMERR_DL_INVALID_OUTPUT_POINTER = -2147414010; +const int TARGET_OS_WINDOWS = 0; -const int CSSMERR_DL_FUNCTION_NOT_IMPLEMENTED = -2147414009; +const int TARGET_OS_UNIX = 0; -const int CSSMERR_DL_SELF_CHECK_FAILED = -2147414008; +const int TARGET_OS_LINUX = 0; -const int CSSMERR_DL_OS_ACCESS_DENIED = -2147414007; +const int TARGET_OS_OSX = 1; -const int CSSMERR_DL_FUNCTION_FAILED = -2147414006; +const int TARGET_OS_IPHONE = 0; -const int CSSMERR_DL_INVALID_CSP_HANDLE = -2147413936; +const int TARGET_OS_IOS = 0; -const int CSSMERR_DL_INVALID_DL_HANDLE = -2147413935; +const int TARGET_OS_WATCH = 0; -const int CSSMERR_DL_INVALID_CL_HANDLE = -2147413934; +const int TARGET_OS_TV = 0; -const int CSSMERR_DL_INVALID_DB_LIST_POINTER = -2147413939; +const int TARGET_OS_MACCATALYST = 0; -const int CSSMERR_DL_OPERATION_AUTH_DENIED = -2147413984; +const int TARGET_OS_UIKITFORMAC = 0; -const int CSSMERR_DL_OBJECT_USE_AUTH_DENIED = -2147413983; +const int TARGET_OS_SIMULATOR = 0; -const int CSSMERR_DL_OBJECT_MANIP_AUTH_DENIED = -2147413982; +const int TARGET_OS_EMBEDDED = 0; -const int CSSMERR_DL_OBJECT_ACL_NOT_SUPPORTED = -2147413981; +const int TARGET_OS_RTKIT = 0; -const int CSSMERR_DL_OBJECT_ACL_REQUIRED = -2147413980; +const int TARGET_OS_DRIVERKIT = 0; -const int CSSMERR_DL_INVALID_ACCESS_CREDENTIALS = -2147413979; +const int TARGET_IPHONE_SIMULATOR = 0; -const int CSSMERR_DL_INVALID_ACL_BASE_CERTS = -2147413978; +const int TARGET_OS_NANO = 0; -const int CSSMERR_DL_ACL_BASE_CERTS_NOT_SUPPORTED = -2147413977; +const int TARGET_ABI_USES_IOS_VALUES = 1; -const int CSSMERR_DL_INVALID_SAMPLE_VALUE = -2147413976; +const int TARGET_CPU_PPC = 0; -const int CSSMERR_DL_SAMPLE_VALUE_NOT_SUPPORTED = -2147413975; +const int TARGET_CPU_PPC64 = 0; -const int CSSMERR_DL_INVALID_ACL_SUBJECT_VALUE = -2147413974; +const int TARGET_CPU_68K = 0; -const int CSSMERR_DL_ACL_SUBJECT_TYPE_NOT_SUPPORTED = -2147413973; +const int TARGET_CPU_X86 = 0; -const int CSSMERR_DL_INVALID_ACL_CHALLENGE_CALLBACK = -2147413972; +const int TARGET_CPU_X86_64 = 0; -const int CSSMERR_DL_ACL_CHALLENGE_CALLBACK_FAILED = -2147413971; +const int TARGET_CPU_ARM = 0; -const int CSSMERR_DL_INVALID_ACL_ENTRY_TAG = -2147413970; +const int TARGET_CPU_ARM64 = 1; -const int CSSMERR_DL_ACL_ENTRY_TAG_NOT_FOUND = -2147413969; +const int TARGET_CPU_MIPS = 0; -const int CSSMERR_DL_INVALID_ACL_EDIT_MODE = -2147413968; +const int TARGET_CPU_SPARC = 0; -const int CSSMERR_DL_ACL_CHANGE_FAILED = -2147413967; +const int TARGET_CPU_ALPHA = 0; -const int CSSMERR_DL_INVALID_NEW_ACL_ENTRY = -2147413966; +const int TARGET_RT_MAC_CFM = 0; -const int CSSMERR_DL_INVALID_NEW_ACL_OWNER = -2147413965; +const int TARGET_RT_MAC_MACHO = 1; -const int CSSMERR_DL_ACL_DELETE_FAILED = -2147413964; +const int TARGET_RT_LITTLE_ENDIAN = 1; -const int CSSMERR_DL_ACL_REPLACE_FAILED = -2147413963; +const int TARGET_RT_BIG_ENDIAN = 0; -const int CSSMERR_DL_ACL_ADD_FAILED = -2147413962; +const int TARGET_RT_64_BIT = 1; -const int CSSMERR_DL_INVALID_DB_HANDLE = -2147413942; +const int __DARWIN_ONLY_64_BIT_INO_T = 1; -const int CSSMERR_DL_INVALID_PASSTHROUGH_ID = -2147413930; +const int __DARWIN_ONLY_UNIX_CONFORMANCE = 1; -const int CSSMERR_DL_INVALID_NETWORK_ADDR = -2147413929; +const int __DARWIN_ONLY_VERS_1050 = 1; -const int CSSM_DL_BASE_DL_ERROR = -2147413760; +const int __DARWIN_UNIX03 = 1; -const int CSSMERR_DL_DATABASE_CORRUPT = -2147413759; +const int __DARWIN_64_BIT_INO_T = 1; -const int CSSMERR_DL_INVALID_RECORD_INDEX = -2147413752; +const int __DARWIN_VERS_1050 = 1; -const int CSSMERR_DL_INVALID_RECORDTYPE = -2147413751; +const int __DARWIN_NON_CANCELABLE = 0; -const int CSSMERR_DL_INVALID_FIELD_NAME = -2147413750; +const String __DARWIN_SUF_EXTSN = '\$DARWIN_EXTSN'; -const int CSSMERR_DL_UNSUPPORTED_FIELD_FORMAT = -2147413749; +const int __DARWIN_C_ANSI = 4096; -const int CSSMERR_DL_UNSUPPORTED_INDEX_INFO = -2147413748; +const int __DARWIN_C_FULL = 900000; -const int CSSMERR_DL_UNSUPPORTED_LOCALITY = -2147413747; +const int __DARWIN_C_LEVEL = 900000; -const int CSSMERR_DL_UNSUPPORTED_NUM_ATTRIBUTES = -2147413746; +const int __STDC_WANT_LIB_EXT1__ = 1; -const int CSSMERR_DL_UNSUPPORTED_NUM_INDEXES = -2147413745; +const int __DARWIN_NO_LONG_LONG = 0; -const int CSSMERR_DL_UNSUPPORTED_NUM_RECORDTYPES = -2147413744; +const int _DARWIN_FEATURE_64_BIT_INODE = 1; -const int CSSMERR_DL_UNSUPPORTED_RECORDTYPE = -2147413743; +const int _DARWIN_FEATURE_ONLY_64_BIT_INODE = 1; -const int CSSMERR_DL_FIELD_SPECIFIED_MULTIPLE = -2147413742; +const int _DARWIN_FEATURE_ONLY_VERS_1050 = 1; -const int CSSMERR_DL_INCOMPATIBLE_FIELD_FORMAT = -2147413741; +const int _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1; -const int CSSMERR_DL_INVALID_PARSING_MODULE = -2147413740; +const int _DARWIN_FEATURE_UNIX_CONFORMANCE = 3; -const int CSSMERR_DL_INVALID_DB_NAME = -2147413738; +const int __has_ptrcheck = 0; -const int CSSMERR_DL_DATASTORE_DOESNOT_EXIST = -2147413737; +const int __DARWIN_NULL = 0; -const int CSSMERR_DL_DATASTORE_ALREADY_EXISTS = -2147413736; +const int __PTHREAD_SIZE__ = 8176; -const int CSSMERR_DL_DB_LOCKED = -2147413735; +const int __PTHREAD_ATTR_SIZE__ = 56; -const int CSSMERR_DL_DATASTORE_IS_OPEN = -2147413734; +const int __PTHREAD_MUTEXATTR_SIZE__ = 8; -const int CSSMERR_DL_RECORD_NOT_FOUND = -2147413733; +const int __PTHREAD_MUTEX_SIZE__ = 56; -const int CSSMERR_DL_MISSING_VALUE = -2147413732; +const int __PTHREAD_CONDATTR_SIZE__ = 8; -const int CSSMERR_DL_UNSUPPORTED_QUERY = -2147413731; +const int __PTHREAD_COND_SIZE__ = 40; -const int CSSMERR_DL_UNSUPPORTED_QUERY_LIMITS = -2147413730; +const int __PTHREAD_ONCE_SIZE__ = 8; -const int CSSMERR_DL_UNSUPPORTED_NUM_SELECTION_PREDS = -2147413729; +const int __PTHREAD_RWLOCK_SIZE__ = 192; -const int CSSMERR_DL_UNSUPPORTED_OPERATOR = -2147413727; +const int __PTHREAD_RWLOCKATTR_SIZE__ = 16; -const int CSSMERR_DL_INVALID_RESULTS_HANDLE = -2147413726; +const int _QUAD_HIGHWORD = 1; -const int CSSMERR_DL_INVALID_DB_LOCATION = -2147413725; +const int _QUAD_LOWWORD = 0; -const int CSSMERR_DL_INVALID_ACCESS_REQUEST = -2147413724; +const int __DARWIN_LITTLE_ENDIAN = 1234; -const int CSSMERR_DL_INVALID_INDEX_INFO = -2147413723; +const int __DARWIN_BIG_ENDIAN = 4321; -const int CSSMERR_DL_INVALID_SELECTION_TAG = -2147413722; +const int __DARWIN_PDP_ENDIAN = 3412; -const int CSSMERR_DL_INVALID_NEW_OWNER = -2147413721; +const int __DARWIN_BYTE_ORDER = 1234; -const int CSSMERR_DL_INVALID_RECORD_UID = -2147413720; +const int LITTLE_ENDIAN = 1234; -const int CSSMERR_DL_INVALID_UNIQUE_INDEX_DATA = -2147413719; +const int BIG_ENDIAN = 4321; -const int CSSMERR_DL_INVALID_MODIFY_MODE = -2147413718; +const int PDP_ENDIAN = 3412; -const int CSSMERR_DL_INVALID_OPEN_PARAMETERS = -2147413717; +const int BYTE_ORDER = 1234; -const int CSSMERR_DL_RECORD_MODIFIED = -2147413716; +const int __WORDSIZE = 64; -const int CSSMERR_DL_ENDOFDATA = -2147413715; +const int INT8_MAX = 127; -const int CSSMERR_DL_INVALID_QUERY = -2147413714; +const int INT16_MAX = 32767; -const int CSSMERR_DL_INVALID_VALUE = -2147413713; +const int INT32_MAX = 2147483647; -const int CSSMERR_DL_MULTIPLE_VALUES_UNSUPPORTED = -2147413712; +const int INT64_MAX = 9223372036854775807; -const int CSSMERR_DL_STALE_UNIQUE_RECORD = -2147413711; +const int INT8_MIN = -128; -const int CSSM_WORDID_KEYCHAIN_PROMPT = 65536; +const int INT16_MIN = -32768; -const int CSSM_WORDID_KEYCHAIN_LOCK = 65537; +const int INT32_MIN = -2147483648; -const int CSSM_WORDID_KEYCHAIN_CHANGE_LOCK = 65538; +const int INT64_MIN = -9223372036854775808; -const int CSSM_WORDID_PROCESS = 65539; +const int UINT8_MAX = 255; -const int CSSM_WORDID__RESERVED_1 = 65540; +const int UINT16_MAX = 65535; -const int CSSM_WORDID_SYMMETRIC_KEY = 65541; +const int UINT32_MAX = 4294967295; -const int CSSM_WORDID_SYSTEM = 65542; +const int UINT64_MAX = -1; -const int CSSM_WORDID_KEY = 65543; +const int INT_LEAST8_MIN = -128; -const int CSSM_WORDID_PIN = 65544; +const int INT_LEAST16_MIN = -32768; -const int CSSM_WORDID_PREAUTH = 65545; +const int INT_LEAST32_MIN = -2147483648; -const int CSSM_WORDID_PREAUTH_SOURCE = 65546; +const int INT_LEAST64_MIN = -9223372036854775808; -const int CSSM_WORDID_ASYMMETRIC_KEY = 65547; +const int INT_LEAST8_MAX = 127; -const int CSSM_WORDID_PARTITION = 65548; +const int INT_LEAST16_MAX = 32767; -const int CSSM_WORDID_KEYBAG_KEY = 65549; +const int INT_LEAST32_MAX = 2147483647; -const int CSSM_WORDID__FIRST_UNUSED = 65550; +const int INT_LEAST64_MAX = 9223372036854775807; -const int CSSM_ACL_SUBJECT_TYPE_KEYCHAIN_PROMPT = 65536; +const int UINT_LEAST8_MAX = 255; -const int CSSM_ACL_SUBJECT_TYPE_PROCESS = 65539; +const int UINT_LEAST16_MAX = 65535; -const int CSSM_ACL_SUBJECT_TYPE_CODE_SIGNATURE = 116; +const int UINT_LEAST32_MAX = 4294967295; -const int CSSM_ACL_SUBJECT_TYPE_COMMENT = 12; +const int UINT_LEAST64_MAX = -1; -const int CSSM_ACL_SUBJECT_TYPE_SYMMETRIC_KEY = 65541; +const int INT_FAST8_MIN = -128; -const int CSSM_ACL_SUBJECT_TYPE_PREAUTH = 65545; +const int INT_FAST16_MIN = -32768; -const int CSSM_ACL_SUBJECT_TYPE_PREAUTH_SOURCE = 65546; +const int INT_FAST32_MIN = -2147483648; -const int CSSM_ACL_SUBJECT_TYPE_ASYMMETRIC_KEY = 65547; +const int INT_FAST64_MIN = -9223372036854775808; -const int CSSM_ACL_SUBJECT_TYPE_PARTITION = 65548; +const int INT_FAST8_MAX = 127; -const int CSSM_SAMPLE_TYPE_KEYCHAIN_PROMPT = 65536; +const int INT_FAST16_MAX = 32767; -const int CSSM_SAMPLE_TYPE_KEYCHAIN_LOCK = 65537; +const int INT_FAST32_MAX = 2147483647; -const int CSSM_SAMPLE_TYPE_KEYCHAIN_CHANGE_LOCK = 65538; +const int INT_FAST64_MAX = 9223372036854775807; -const int CSSM_SAMPLE_TYPE_PROCESS = 65539; +const int UINT_FAST8_MAX = 255; -const int CSSM_SAMPLE_TYPE_COMMENT = 12; +const int UINT_FAST16_MAX = 65535; -const int CSSM_SAMPLE_TYPE_RETRY_ID = 85; +const int UINT_FAST32_MAX = 4294967295; -const int CSSM_SAMPLE_TYPE_SYMMETRIC_KEY = 65541; +const int UINT_FAST64_MAX = -1; -const int CSSM_SAMPLE_TYPE_PREAUTH = 65545; +const int INTPTR_MAX = 9223372036854775807; -const int CSSM_SAMPLE_TYPE_ASYMMETRIC_KEY = 65547; +const int INTPTR_MIN = -9223372036854775808; -const int CSSM_SAMPLE_TYPE_KEYBAG_KEY = 65549; +const int UINTPTR_MAX = -1; -const int CSSM_ACL_AUTHORIZATION_CHANGE_ACL = 65536; +const int INTMAX_MAX = 9223372036854775807; -const int CSSM_ACL_AUTHORIZATION_CHANGE_OWNER = 65537; +const int UINTMAX_MAX = -1; -const int CSSM_ACL_AUTHORIZATION_PARTITION_ID = 65538; +const int INTMAX_MIN = -9223372036854775808; -const int CSSM_ACL_AUTHORIZATION_INTEGRITY = 65539; +const int PTRDIFF_MIN = -9223372036854775808; -const int CSSM_ACL_AUTHORIZATION_PREAUTH_BASE = 16842752; +const int PTRDIFF_MAX = 9223372036854775807; -const int CSSM_ACL_AUTHORIZATION_PREAUTH_END = 16908288; +const int SIZE_MAX = -1; -const int CSSM_ACL_CODE_SIGNATURE_INVALID = 0; +const int RSIZE_MAX = 9223372036854775807; -const int CSSM_ACL_CODE_SIGNATURE_OSX = 1; +const int WCHAR_MAX = 2147483647; -const int CSSM_ACL_MATCH_UID = 1; +const int WCHAR_MIN = -2147483648; -const int CSSM_ACL_MATCH_GID = 2; +const int WINT_MIN = -2147483648; -const int CSSM_ACL_MATCH_HONOR_ROOT = 256; +const int WINT_MAX = 2147483647; -const int CSSM_ACL_MATCH_BITS = 3; +const int SIG_ATOMIC_MIN = -2147483648; -const int CSSM_ACL_PROCESS_SELECTOR_CURRENT_VERSION = 257; +const int SIG_ATOMIC_MAX = 2147483647; -const int CSSM_ACL_KEYCHAIN_PROMPT_CURRENT_VERSION = 257; +const int __API_TO_BE_DEPRECATED = 100000; -const int CSSM_ACL_KEYCHAIN_PROMPT_REQUIRE_PASSPHRASE = 1; +const int __MAC_10_0 = 1000; -const int CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED = 16; +const int __MAC_10_1 = 1010; -const int CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED_ACT = 32; +const int __MAC_10_2 = 1020; -const int CSSM_ACL_KEYCHAIN_PROMPT_INVALID = 64; +const int __MAC_10_3 = 1030; -const int CSSM_ACL_KEYCHAIN_PROMPT_INVALID_ACT = 128; +const int __MAC_10_4 = 1040; -const int CSSM_ACL_PREAUTH_TRACKING_COUNT_MASK = 255; +const int __MAC_10_5 = 1050; -const int CSSM_ACL_PREAUTH_TRACKING_BLOCKED = 0; +const int __MAC_10_6 = 1060; -const int CSSM_ACL_PREAUTH_TRACKING_UNKNOWN = 1073741824; +const int __MAC_10_7 = 1070; -const int CSSM_ACL_PREAUTH_TRACKING_AUTHORIZED = -2147483648; +const int __MAC_10_8 = 1080; -const int CSSM_DB_ACCESS_RESET = 65536; +const int __MAC_10_9 = 1090; -const int CSSM_ALGID_APPLE_YARROW = -2147483648; +const int __MAC_10_10 = 101000; -const int CSSM_ALGID_AES = -2147483647; +const int __MAC_10_10_2 = 101002; -const int CSSM_ALGID_FEE = -2147483646; +const int __MAC_10_10_3 = 101003; -const int CSSM_ALGID_FEE_MD5 = -2147483645; +const int __MAC_10_11 = 101100; -const int CSSM_ALGID_FEE_SHA1 = -2147483644; +const int __MAC_10_11_2 = 101102; -const int CSSM_ALGID_FEED = -2147483643; +const int __MAC_10_11_3 = 101103; -const int CSSM_ALGID_FEEDEXP = -2147483642; +const int __MAC_10_11_4 = 101104; -const int CSSM_ALGID_ASC = -2147483641; +const int __MAC_10_12 = 101200; -const int CSSM_ALGID_SHA1HMAC_LEGACY = -2147483640; +const int __MAC_10_12_1 = 101201; -const int CSSM_ALGID_KEYCHAIN_KEY = -2147483639; +const int __MAC_10_12_2 = 101202; -const int CSSM_ALGID_PKCS12_PBE_ENCR = -2147483638; +const int __MAC_10_12_4 = 101204; -const int CSSM_ALGID_PKCS12_PBE_MAC = -2147483637; +const int __MAC_10_13 = 101300; -const int CSSM_ALGID_SECURE_PASSPHRASE = -2147483636; +const int __MAC_10_13_1 = 101301; -const int CSSM_ALGID_PBE_OPENSSL_MD5 = -2147483635; +const int __MAC_10_13_2 = 101302; -const int CSSM_ALGID_SHA256 = -2147483634; +const int __MAC_10_13_4 = 101304; -const int CSSM_ALGID_SHA384 = -2147483633; +const int __MAC_10_14 = 101400; -const int CSSM_ALGID_SHA512 = -2147483632; +const int __MAC_10_14_1 = 101401; -const int CSSM_ALGID_ENTROPY_DEFAULT = -2147483631; +const int __MAC_10_14_4 = 101404; -const int CSSM_ALGID_SHA224 = -2147483630; +const int __MAC_10_14_6 = 101406; -const int CSSM_ALGID_SHA224WithRSA = -2147483629; +const int __MAC_10_15 = 101500; -const int CSSM_ALGID_SHA256WithRSA = -2147483628; +const int __MAC_10_15_1 = 101501; -const int CSSM_ALGID_SHA384WithRSA = -2147483627; +const int __MAC_10_15_4 = 101504; -const int CSSM_ALGID_SHA512WithRSA = -2147483626; +const int __MAC_10_16 = 101600; -const int CSSM_ALGID_OPENSSH1 = -2147483625; +const int __MAC_11_0 = 110000; -const int CSSM_ALGID_SHA224WithECDSA = -2147483624; +const int __MAC_11_1 = 110100; -const int CSSM_ALGID_SHA256WithECDSA = -2147483623; +const int __MAC_11_3 = 110300; -const int CSSM_ALGID_SHA384WithECDSA = -2147483622; +const int __MAC_11_4 = 110400; -const int CSSM_ALGID_SHA512WithECDSA = -2147483621; +const int __MAC_11_5 = 110500; -const int CSSM_ALGID_ECDSA_SPECIFIED = -2147483620; +const int __MAC_11_6 = 110600; -const int CSSM_ALGID_ECDH_X963_KDF = -2147483619; +const int __MAC_12_0 = 120000; -const int CSSM_ALGID__FIRST_UNUSED = -2147483618; +const int __MAC_12_1 = 120100; -const int CSSM_PADDING_APPLE_SSLv2 = -2147483648; +const int __MAC_12_2 = 120200; -const int CSSM_KEYBLOB_RAW_FORMAT_VENDOR_DEFINED = -2147483648; +const int __MAC_12_3 = 120300; -const int CSSM_KEYBLOB_RAW_FORMAT_X509 = -2147483648; +const int __IPHONE_2_0 = 20000; -const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSH = -2147483647; +const int __IPHONE_2_1 = 20100; -const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSL = -2147483646; +const int __IPHONE_2_2 = 20200; -const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSH2 = -2147483645; +const int __IPHONE_3_0 = 30000; -const int CSSM_CUSTOM_COMMON_ERROR_EXTENT = 224; +const int __IPHONE_3_1 = 30100; -const int CSSM_ERRCODE_NO_USER_INTERACTION = 224; +const int __IPHONE_3_2 = 30200; -const int CSSM_ERRCODE_USER_CANCELED = 225; +const int __IPHONE_4_0 = 40000; -const int CSSM_ERRCODE_SERVICE_NOT_AVAILABLE = 226; +const int __IPHONE_4_1 = 40100; -const int CSSM_ERRCODE_INSUFFICIENT_CLIENT_IDENTIFICATION = 227; +const int __IPHONE_4_2 = 40200; -const int CSSM_ERRCODE_DEVICE_RESET = 228; +const int __IPHONE_4_3 = 40300; -const int CSSM_ERRCODE_DEVICE_FAILED = 229; +const int __IPHONE_5_0 = 50000; -const int CSSM_ERRCODE_IN_DARK_WAKE = 230; +const int __IPHONE_5_1 = 50100; -const int CSSMERR_CSSM_NO_USER_INTERACTION = -2147417888; +const int __IPHONE_6_0 = 60000; -const int CSSMERR_AC_NO_USER_INTERACTION = -2147405600; +const int __IPHONE_6_1 = 60100; -const int CSSMERR_CSP_NO_USER_INTERACTION = -2147415840; +const int __IPHONE_7_0 = 70000; -const int CSSMERR_CL_NO_USER_INTERACTION = -2147411744; +const int __IPHONE_7_1 = 70100; -const int CSSMERR_DL_NO_USER_INTERACTION = -2147413792; +const int __IPHONE_8_0 = 80000; -const int CSSMERR_TP_NO_USER_INTERACTION = -2147409696; +const int __IPHONE_8_1 = 80100; -const int CSSMERR_CSSM_USER_CANCELED = -2147417887; +const int __IPHONE_8_2 = 80200; -const int CSSMERR_AC_USER_CANCELED = -2147405599; +const int __IPHONE_8_3 = 80300; -const int CSSMERR_CSP_USER_CANCELED = -2147415839; +const int __IPHONE_8_4 = 80400; -const int CSSMERR_CL_USER_CANCELED = -2147411743; +const int __IPHONE_9_0 = 90000; -const int CSSMERR_DL_USER_CANCELED = -2147413791; +const int __IPHONE_9_1 = 90100; -const int CSSMERR_TP_USER_CANCELED = -2147409695; +const int __IPHONE_9_2 = 90200; -const int CSSMERR_CSSM_SERVICE_NOT_AVAILABLE = -2147417886; +const int __IPHONE_9_3 = 90300; -const int CSSMERR_AC_SERVICE_NOT_AVAILABLE = -2147405598; +const int __IPHONE_10_0 = 100000; -const int CSSMERR_CSP_SERVICE_NOT_AVAILABLE = -2147415838; +const int __IPHONE_10_1 = 100100; -const int CSSMERR_CL_SERVICE_NOT_AVAILABLE = -2147411742; +const int __IPHONE_10_2 = 100200; -const int CSSMERR_DL_SERVICE_NOT_AVAILABLE = -2147413790; +const int __IPHONE_10_3 = 100300; -const int CSSMERR_TP_SERVICE_NOT_AVAILABLE = -2147409694; +const int __IPHONE_11_0 = 110000; -const int CSSMERR_CSSM_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147417885; +const int __IPHONE_11_1 = 110100; -const int CSSMERR_AC_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147405597; +const int __IPHONE_11_2 = 110200; -const int CSSMERR_CSP_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147415837; +const int __IPHONE_11_3 = 110300; -const int CSSMERR_CL_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147411741; +const int __IPHONE_11_4 = 110400; -const int CSSMERR_DL_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147413789; +const int __IPHONE_12_0 = 120000; -const int CSSMERR_TP_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147409693; +const int __IPHONE_12_1 = 120100; -const int CSSMERR_CSSM_DEVICE_RESET = -2147417884; +const int __IPHONE_12_2 = 120200; -const int CSSMERR_AC_DEVICE_RESET = -2147405596; +const int __IPHONE_12_3 = 120300; -const int CSSMERR_CSP_DEVICE_RESET = -2147415836; +const int __IPHONE_12_4 = 120400; -const int CSSMERR_CL_DEVICE_RESET = -2147411740; +const int __IPHONE_13_0 = 130000; -const int CSSMERR_DL_DEVICE_RESET = -2147413788; +const int __IPHONE_13_1 = 130100; -const int CSSMERR_TP_DEVICE_RESET = -2147409692; +const int __IPHONE_13_2 = 130200; -const int CSSMERR_CSSM_DEVICE_FAILED = -2147417883; +const int __IPHONE_13_3 = 130300; -const int CSSMERR_AC_DEVICE_FAILED = -2147405595; +const int __IPHONE_13_4 = 130400; -const int CSSMERR_CSP_DEVICE_FAILED = -2147415835; +const int __IPHONE_13_5 = 130500; -const int CSSMERR_CL_DEVICE_FAILED = -2147411739; +const int __IPHONE_13_6 = 130600; -const int CSSMERR_DL_DEVICE_FAILED = -2147413787; +const int __IPHONE_13_7 = 130700; -const int CSSMERR_TP_DEVICE_FAILED = -2147409691; +const int __IPHONE_14_0 = 140000; -const int CSSMERR_CSSM_IN_DARK_WAKE = -2147417882; +const int __IPHONE_14_1 = 140100; -const int CSSMERR_AC_IN_DARK_WAKE = -2147405594; +const int __IPHONE_14_2 = 140200; -const int CSSMERR_CSP_IN_DARK_WAKE = -2147415834; +const int __IPHONE_14_3 = 140300; -const int CSSMERR_CL_IN_DARK_WAKE = -2147411738; +const int __IPHONE_14_5 = 140500; -const int CSSMERR_DL_IN_DARK_WAKE = -2147413786; +const int __IPHONE_14_6 = 140600; -const int CSSMERR_TP_IN_DARK_WAKE = -2147409690; +const int __IPHONE_14_7 = 140700; -const int CSSMERR_CSP_APPLE_ADD_APPLICATION_ACL_SUBJECT = -2147415040; +const int __IPHONE_14_8 = 140800; -const int CSSMERR_CSP_APPLE_PUBLIC_KEY_INCOMPLETE = -2147415039; +const int __IPHONE_15_0 = 150000; -const int CSSMERR_CSP_APPLE_SIGNATURE_MISMATCH = -2147415038; +const int __IPHONE_15_1 = 150100; -const int CSSMERR_CSP_APPLE_INVALID_KEY_START_DATE = -2147415037; +const int __IPHONE_15_2 = 150200; -const int CSSMERR_CSP_APPLE_INVALID_KEY_END_DATE = -2147415036; +const int __IPHONE_15_3 = 150300; -const int CSSMERR_CSPDL_APPLE_DL_CONVERSION_ERROR = -2147415035; +const int __IPHONE_15_4 = 150400; -const int CSSMERR_CSP_APPLE_SSLv2_ROLLBACK = -2147415034; +const int __TVOS_9_0 = 90000; -const int CSSM_DL_DB_RECORD_GENERIC_PASSWORD = -2147483648; +const int __TVOS_9_1 = 90100; -const int CSSM_DL_DB_RECORD_INTERNET_PASSWORD = -2147483647; +const int __TVOS_9_2 = 90200; -const int CSSM_DL_DB_RECORD_APPLESHARE_PASSWORD = -2147483646; +const int __TVOS_10_0 = 100000; -const int CSSM_DL_DB_RECORD_X509_CERTIFICATE = -2147479552; +const int __TVOS_10_0_1 = 100001; -const int CSSM_DL_DB_RECORD_USER_TRUST = -2147479551; +const int __TVOS_10_1 = 100100; -const int CSSM_DL_DB_RECORD_X509_CRL = -2147479550; +const int __TVOS_10_2 = 100200; -const int CSSM_DL_DB_RECORD_UNLOCK_REFERRAL = -2147479549; +const int __TVOS_11_0 = 110000; -const int CSSM_DL_DB_RECORD_EXTENDED_ATTRIBUTE = -2147479548; +const int __TVOS_11_1 = 110100; -const int CSSM_DL_DB_RECORD_METADATA = -2147450880; +const int __TVOS_11_2 = 110200; -const int CSSM_APPLEFILEDL_TOGGLE_AUTOCOMMIT = 0; +const int __TVOS_11_3 = 110300; -const int CSSM_APPLEFILEDL_COMMIT = 1; +const int __TVOS_11_4 = 110400; -const int CSSM_APPLEFILEDL_ROLLBACK = 2; +const int __TVOS_12_0 = 120000; -const int CSSM_APPLEFILEDL_TAKE_FILE_LOCK = 3; +const int __TVOS_12_1 = 120100; -const int CSSM_APPLEFILEDL_MAKE_BACKUP = 4; +const int __TVOS_12_2 = 120200; -const int CSSM_APPLEFILEDL_MAKE_COPY = 5; +const int __TVOS_12_3 = 120300; -const int CSSM_APPLEFILEDL_DELETE_FILE = 6; +const int __TVOS_12_4 = 120400; -const int CSSM_APPLE_UNLOCK_TYPE_KEY_DIRECT = 1; +const int __TVOS_13_0 = 130000; -const int CSSM_APPLE_UNLOCK_TYPE_WRAPPED_PRIVATE = 2; +const int __TVOS_13_2 = 130200; -const int CSSM_APPLE_UNLOCK_TYPE_KEYBAG = 3; +const int __TVOS_13_3 = 130300; -const int CSSMERR_APPLEDL_INVALID_OPEN_PARAMETERS = -2147412992; +const int __TVOS_13_4 = 130400; -const int CSSMERR_APPLEDL_DISK_FULL = -2147412991; +const int __TVOS_14_0 = 140000; -const int CSSMERR_APPLEDL_QUOTA_EXCEEDED = -2147412990; +const int __TVOS_14_1 = 140100; -const int CSSMERR_APPLEDL_FILE_TOO_BIG = -2147412989; +const int __TVOS_14_2 = 140200; -const int CSSMERR_APPLEDL_INVALID_DATABASE_BLOB = -2147412988; +const int __TVOS_14_3 = 140300; -const int CSSMERR_APPLEDL_INVALID_KEY_BLOB = -2147412987; +const int __TVOS_14_5 = 140500; -const int CSSMERR_APPLEDL_INCOMPATIBLE_DATABASE_BLOB = -2147412986; +const int __TVOS_14_6 = 140600; -const int CSSMERR_APPLEDL_INCOMPATIBLE_KEY_BLOB = -2147412985; +const int __TVOS_14_7 = 140700; -const int CSSMERR_APPLETP_HOSTNAME_MISMATCH = -2147408896; +const int __TVOS_15_0 = 150000; -const int CSSMERR_APPLETP_UNKNOWN_CRITICAL_EXTEN = -2147408895; +const int __TVOS_15_1 = 150100; -const int CSSMERR_APPLETP_NO_BASIC_CONSTRAINTS = -2147408894; +const int __TVOS_15_2 = 150200; -const int CSSMERR_APPLETP_INVALID_CA = -2147408893; +const int __TVOS_15_3 = 150300; -const int CSSMERR_APPLETP_INVALID_AUTHORITY_ID = -2147408892; +const int __TVOS_15_4 = 150400; -const int CSSMERR_APPLETP_INVALID_SUBJECT_ID = -2147408891; +const int __WATCHOS_1_0 = 10000; -const int CSSMERR_APPLETP_INVALID_KEY_USAGE = -2147408890; +const int __WATCHOS_2_0 = 20000; -const int CSSMERR_APPLETP_INVALID_EXTENDED_KEY_USAGE = -2147408889; +const int __WATCHOS_2_1 = 20100; -const int CSSMERR_APPLETP_INVALID_ID_LINKAGE = -2147408888; +const int __WATCHOS_2_2 = 20200; -const int CSSMERR_APPLETP_PATH_LEN_CONSTRAINT = -2147408887; +const int __WATCHOS_3_0 = 30000; -const int CSSMERR_APPLETP_INVALID_ROOT = -2147408886; +const int __WATCHOS_3_1 = 30100; -const int CSSMERR_APPLETP_CRL_EXPIRED = -2147408885; +const int __WATCHOS_3_1_1 = 30101; -const int CSSMERR_APPLETP_CRL_NOT_VALID_YET = -2147408884; +const int __WATCHOS_3_2 = 30200; -const int CSSMERR_APPLETP_CRL_NOT_FOUND = -2147408883; +const int __WATCHOS_4_0 = 40000; -const int CSSMERR_APPLETP_CRL_SERVER_DOWN = -2147408882; +const int __WATCHOS_4_1 = 40100; -const int CSSMERR_APPLETP_CRL_BAD_URI = -2147408881; +const int __WATCHOS_4_2 = 40200; -const int CSSMERR_APPLETP_UNKNOWN_CERT_EXTEN = -2147408880; +const int __WATCHOS_4_3 = 40300; -const int CSSMERR_APPLETP_UNKNOWN_CRL_EXTEN = -2147408879; +const int __WATCHOS_5_0 = 50000; -const int CSSMERR_APPLETP_CRL_NOT_TRUSTED = -2147408878; +const int __WATCHOS_5_1 = 50100; -const int CSSMERR_APPLETP_CRL_INVALID_ANCHOR_CERT = -2147408877; +const int __WATCHOS_5_2 = 50200; -const int CSSMERR_APPLETP_CRL_POLICY_FAIL = -2147408876; +const int __WATCHOS_5_3 = 50300; -const int CSSMERR_APPLETP_IDP_FAIL = -2147408875; +const int __WATCHOS_6_0 = 60000; -const int CSSMERR_APPLETP_CERT_NOT_FOUND_FROM_ISSUER = -2147408874; +const int __WATCHOS_6_1 = 60100; -const int CSSMERR_APPLETP_BAD_CERT_FROM_ISSUER = -2147408873; +const int __WATCHOS_6_2 = 60200; -const int CSSMERR_APPLETP_SMIME_EMAIL_ADDRS_NOT_FOUND = -2147408872; +const int __WATCHOS_7_0 = 70000; -const int CSSMERR_APPLETP_SMIME_BAD_EXT_KEY_USE = -2147408871; +const int __WATCHOS_7_1 = 70100; -const int CSSMERR_APPLETP_SMIME_BAD_KEY_USE = -2147408870; +const int __WATCHOS_7_2 = 70200; -const int CSSMERR_APPLETP_SMIME_KEYUSAGE_NOT_CRITICAL = -2147408869; +const int __WATCHOS_7_3 = 70300; -const int CSSMERR_APPLETP_SMIME_NO_EMAIL_ADDRS = -2147408868; +const int __WATCHOS_7_4 = 70400; -const int CSSMERR_APPLETP_SMIME_SUBJ_ALT_NAME_NOT_CRIT = -2147408867; +const int __WATCHOS_7_5 = 70500; -const int CSSMERR_APPLETP_SSL_BAD_EXT_KEY_USE = -2147408866; +const int __WATCHOS_7_6 = 70600; -const int CSSMERR_APPLETP_OCSP_BAD_RESPONSE = -2147408865; +const int __WATCHOS_8_0 = 80000; -const int CSSMERR_APPLETP_OCSP_BAD_REQUEST = -2147408864; +const int __WATCHOS_8_1 = 80100; -const int CSSMERR_APPLETP_OCSP_UNAVAILABLE = -2147408863; +const int __WATCHOS_8_3 = 80300; -const int CSSMERR_APPLETP_OCSP_STATUS_UNRECOGNIZED = -2147408862; +const int __WATCHOS_8_4 = 80400; -const int CSSMERR_APPLETP_INCOMPLETE_REVOCATION_CHECK = -2147408861; +const int __WATCHOS_8_5 = 80500; -const int CSSMERR_APPLETP_NETWORK_FAILURE = -2147408860; +const int MAC_OS_X_VERSION_10_0 = 1000; -const int CSSMERR_APPLETP_OCSP_NOT_TRUSTED = -2147408859; +const int MAC_OS_X_VERSION_10_1 = 1010; -const int CSSMERR_APPLETP_OCSP_INVALID_ANCHOR_CERT = -2147408858; +const int MAC_OS_X_VERSION_10_2 = 1020; -const int CSSMERR_APPLETP_OCSP_SIG_ERROR = -2147408857; +const int MAC_OS_X_VERSION_10_3 = 1030; -const int CSSMERR_APPLETP_OCSP_NO_SIGNER = -2147408856; +const int MAC_OS_X_VERSION_10_4 = 1040; -const int CSSMERR_APPLETP_OCSP_RESP_MALFORMED_REQ = -2147408855; +const int MAC_OS_X_VERSION_10_5 = 1050; -const int CSSMERR_APPLETP_OCSP_RESP_INTERNAL_ERR = -2147408854; +const int MAC_OS_X_VERSION_10_6 = 1060; -const int CSSMERR_APPLETP_OCSP_RESP_TRY_LATER = -2147408853; +const int MAC_OS_X_VERSION_10_7 = 1070; -const int CSSMERR_APPLETP_OCSP_RESP_SIG_REQUIRED = -2147408852; +const int MAC_OS_X_VERSION_10_8 = 1080; -const int CSSMERR_APPLETP_OCSP_RESP_UNAUTHORIZED = -2147408851; +const int MAC_OS_X_VERSION_10_9 = 1090; -const int CSSMERR_APPLETP_OCSP_NONCE_MISMATCH = -2147408850; +const int MAC_OS_X_VERSION_10_10 = 101000; -const int CSSMERR_APPLETP_CS_BAD_CERT_CHAIN_LENGTH = -2147408849; +const int MAC_OS_X_VERSION_10_10_2 = 101002; -const int CSSMERR_APPLETP_CS_NO_BASIC_CONSTRAINTS = -2147408848; +const int MAC_OS_X_VERSION_10_10_3 = 101003; -const int CSSMERR_APPLETP_CS_BAD_PATH_LENGTH = -2147408847; +const int MAC_OS_X_VERSION_10_11 = 101100; -const int CSSMERR_APPLETP_CS_NO_EXTENDED_KEY_USAGE = -2147408846; +const int MAC_OS_X_VERSION_10_11_2 = 101102; -const int CSSMERR_APPLETP_CODE_SIGN_DEVELOPMENT = -2147408845; +const int MAC_OS_X_VERSION_10_11_3 = 101103; -const int CSSMERR_APPLETP_RS_BAD_CERT_CHAIN_LENGTH = -2147408844; +const int MAC_OS_X_VERSION_10_11_4 = 101104; -const int CSSMERR_APPLETP_RS_BAD_EXTENDED_KEY_USAGE = -2147408843; +const int MAC_OS_X_VERSION_10_12 = 101200; -const int CSSMERR_APPLETP_TRUST_SETTING_DENY = -2147408842; +const int MAC_OS_X_VERSION_10_12_1 = 101201; -const int CSSMERR_APPLETP_INVALID_EMPTY_SUBJECT = -2147408841; +const int MAC_OS_X_VERSION_10_12_2 = 101202; -const int CSSMERR_APPLETP_UNKNOWN_QUAL_CERT_STATEMENT = -2147408840; +const int MAC_OS_X_VERSION_10_12_4 = 101204; -const int CSSMERR_APPLETP_MISSING_REQUIRED_EXTENSION = -2147408839; +const int MAC_OS_X_VERSION_10_13 = 101300; -const int CSSMERR_APPLETP_EXT_KEYUSAGE_NOT_CRITICAL = -2147408838; +const int MAC_OS_X_VERSION_10_13_1 = 101301; -const int CSSMERR_APPLETP_IDENTIFIER_MISSING = -2147408837; +const int MAC_OS_X_VERSION_10_13_2 = 101302; -const int CSSMERR_APPLETP_CA_PIN_MISMATCH = -2147408836; +const int MAC_OS_X_VERSION_10_13_4 = 101304; -const int CSSMERR_APPLETP_LEAF_PIN_MISMATCH = -2147408835; +const int MAC_OS_X_VERSION_10_14 = 101400; -const int CSSMERR_APPLE_DOTMAC_REQ_QUEUED = -2147408796; +const int MAC_OS_X_VERSION_10_14_1 = 101401; -const int CSSMERR_APPLE_DOTMAC_REQ_REDIRECT = -2147408795; +const int MAC_OS_X_VERSION_10_14_4 = 101404; -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_ERR = -2147408794; +const int MAC_OS_X_VERSION_10_14_6 = 101406; -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_PARAM = -2147408793; +const int MAC_OS_X_VERSION_10_15 = 101500; -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_AUTH = -2147408792; +const int MAC_OS_X_VERSION_10_15_1 = 101501; -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_UNIMPL = -2147408791; +const int MAC_OS_X_VERSION_10_16 = 101600; -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_NOT_AVAIL = -2147408790; +const int MAC_OS_VERSION_11_0 = 110000; -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_ALREADY_EXIST = -2147408789; +const int MAC_OS_VERSION_12_0 = 120000; -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_SERVICE_ERROR = -2147408788; +const int __DRIVERKIT_19_0 = 190000; -const int CSSMERR_APPLE_DOTMAC_REQ_IS_PENDING = -2147408787; +const int __DRIVERKIT_20_0 = 200000; -const int CSSMERR_APPLE_DOTMAC_NO_REQ_PENDING = -2147408786; +const int __DRIVERKIT_21_0 = 210000; -const int CSSMERR_APPLE_DOTMAC_CSR_VERIFY_FAIL = -2147408785; +const int __MAC_OS_X_VERSION_MIN_REQUIRED = 120000; -const int CSSMERR_APPLE_DOTMAC_FAILED_CONSISTENCY_CHECK = -2147408784; +const int __MAC_OS_X_VERSION_MAX_ALLOWED = 120300; -const int CSSM_APPLEDL_OPEN_PARAMETERS_VERSION = 1; +const int __ENABLE_LEGACY_MAC_AVAILABILITY = 1; -const int CSSM_APPLECSPDL_DB_LOCK = 0; +const int __DARWIN_FD_SETSIZE = 1024; -const int CSSM_APPLECSPDL_DB_UNLOCK = 1; +const int __DARWIN_NBBY = 8; -const int CSSM_APPLECSPDL_DB_GET_SETTINGS = 2; +const int NBBY = 8; -const int CSSM_APPLECSPDL_DB_SET_SETTINGS = 3; +const int FD_SETSIZE = 1024; -const int CSSM_APPLECSPDL_DB_IS_LOCKED = 4; +const int MAC_OS_VERSION_11_1 = 110100; -const int CSSM_APPLECSPDL_DB_CHANGE_PASSWORD = 5; +const int MAC_OS_VERSION_11_3 = 110300; -const int CSSM_APPLECSPDL_DB_GET_HANDLE = 6; +const int MAC_OS_X_VERSION_MIN_REQUIRED = 120000; -const int CSSM_APPLESCPDL_CSP_GET_KEYHANDLE = 7; +const int MAC_OS_X_VERSION_MAX_ALLOWED = 120000; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_8 = 8; +const int __AVAILABILITY_MACROS_USES_AVAILABILITY = 1; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_9 = 9; +const int OBJC_API_VERSION = 2; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_10 = 10; +const int OBJC_NO_GC = 1; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_11 = 11; +const int NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER = 1; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_12 = 12; +const int OBJC_OLD_DISPATCH_PROTOTYPES = 0; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_13 = 13; +const int true1 = 1; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_14 = 14; +const int false1 = 0; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_15 = 15; +const int __bool_true_false_are_defined = 1; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_16 = 16; +const int OBJC_BOOL_IS_BOOL = 1; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_17 = 17; +const int YES = 1; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_18 = 18; +const int NO = 0; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_19 = 19; +const int NSIntegerMax = 9223372036854775807; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_20 = 20; +const int NSIntegerMin = -9223372036854775808; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_21 = 21; +const int NSUIntegerMax = -1; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_22 = 22; +const int NSINTEGER_DEFINED = 1; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_23 = 23; +const int __GNUC_VA_LIST = 1; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_24 = 24; +const int __DARWIN_CLK_TCK = 100; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_25 = 25; +const int CHAR_BIT = 8; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_26 = 26; +const int MB_LEN_MAX = 6; -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_27 = 27; +const int CLK_TCK = 100; -const int CSSM_APPLECSP_KEYDIGEST = 256; +const int SCHAR_MAX = 127; -const int CSSM_KEYBLOB_WRAPPED_FORMAT_APPLE_CUSTOM = 100; +const int SCHAR_MIN = -128; -const int CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSL = 101; +const int UCHAR_MAX = 255; -const int CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSH1 = 102; +const int CHAR_MAX = 127; -const int CSSM_ATTRIBUTE_VENDOR_DEFINED = 8388608; +const int CHAR_MIN = -128; -const int CSSM_ATTRIBUTE_PUBLIC_KEY = 1082130432; +const int USHRT_MAX = 65535; -const int CSSM_ATTRIBUTE_FEE_PRIME_TYPE = 276824065; +const int SHRT_MAX = 32767; -const int CSSM_ATTRIBUTE_FEE_CURVE_TYPE = 276824066; +const int SHRT_MIN = -32768; -const int CSSM_ATTRIBUTE_ASC_OPTIMIZATION = 276824067; +const int UINT_MAX = 4294967295; -const int CSSM_ATTRIBUTE_RSA_BLINDING = 276824068; +const int INT_MAX = 2147483647; -const int CSSM_ATTRIBUTE_PARAM_KEY = 1082130437; +const int INT_MIN = -2147483648; -const int CSSM_ATTRIBUTE_PROMPT = 545259526; +const int ULONG_MAX = -1; -const int CSSM_ATTRIBUTE_ALERT_TITLE = 545259527; +const int LONG_MAX = 9223372036854775807; -const int CSSM_ATTRIBUTE_VERIFY_PASSPHRASE = 276824072; +const int LONG_MIN = -9223372036854775808; -const int CSSM_FEE_PRIME_TYPE_DEFAULT = 0; +const int ULLONG_MAX = -1; -const int CSSM_FEE_PRIME_TYPE_MERSENNE = 1; +const int LLONG_MAX = 9223372036854775807; -const int CSSM_FEE_PRIME_TYPE_FEE = 2; +const int LLONG_MIN = -9223372036854775808; -const int CSSM_FEE_PRIME_TYPE_GENERAL = 3; +const int LONG_BIT = 64; -const int CSSM_FEE_CURVE_TYPE_DEFAULT = 0; +const int SSIZE_MAX = 9223372036854775807; -const int CSSM_FEE_CURVE_TYPE_MONTGOMERY = 1; +const int WORD_BIT = 32; -const int CSSM_FEE_CURVE_TYPE_WEIERSTRASS = 2; +const int SIZE_T_MAX = -1; -const int CSSM_FEE_CURVE_TYPE_ANSI_X9_62 = 3; +const int UQUAD_MAX = -1; -const int CSSM_ASC_OPTIMIZE_DEFAULT = 0; +const int QUAD_MAX = 9223372036854775807; -const int CSSM_ASC_OPTIMIZE_SIZE = 1; +const int QUAD_MIN = -9223372036854775808; -const int CSSM_ASC_OPTIMIZE_SECURITY = 2; +const int ARG_MAX = 1048576; -const int CSSM_ASC_OPTIMIZE_TIME = 3; +const int CHILD_MAX = 266; -const int CSSM_ASC_OPTIMIZE_TIME_SIZE = 4; +const int GID_MAX = 2147483647; -const int CSSM_ASC_OPTIMIZE_ASCII = 5; +const int LINK_MAX = 32767; -const int CSSM_KEYATTR_PARTIAL = 65536; +const int MAX_CANON = 1024; -const int CSSM_KEYATTR_PUBLIC_KEY_ENCRYPT = 131072; +const int MAX_INPUT = 1024; -const int CSSM_TP_ACTION_REQUIRE_CRL_PER_CERT = 1; +const int NAME_MAX = 255; -const int CSSM_TP_ACTION_FETCH_CRL_FROM_NET = 2; +const int NGROUPS_MAX = 16; -const int CSSM_TP_ACTION_CRL_SUFFICIENT = 4; +const int UID_MAX = 2147483647; -const int CSSM_TP_ACTION_REQUIRE_CRL_IF_PRESENT = 8; +const int OPEN_MAX = 10240; -const int CSSM_TP_ACTION_ALLOW_EXPIRED = 1; +const int PATH_MAX = 1024; -const int CSSM_TP_ACTION_LEAF_IS_CA = 2; +const int PIPE_BUF = 512; -const int CSSM_TP_ACTION_FETCH_CERT_FROM_NET = 4; +const int BC_BASE_MAX = 99; -const int CSSM_TP_ACTION_ALLOW_EXPIRED_ROOT = 8; +const int BC_DIM_MAX = 2048; -const int CSSM_TP_ACTION_REQUIRE_REV_PER_CERT = 16; +const int BC_SCALE_MAX = 99; -const int CSSM_TP_ACTION_TRUST_SETTINGS = 32; +const int BC_STRING_MAX = 1000; -const int CSSM_TP_ACTION_IMPLICIT_ANCHORS = 64; +const int CHARCLASS_NAME_MAX = 14; -const int CSSM_CERT_STATUS_EXPIRED = 1; +const int COLL_WEIGHTS_MAX = 2; -const int CSSM_CERT_STATUS_NOT_VALID_YET = 2; +const int EQUIV_CLASS_MAX = 2; -const int CSSM_CERT_STATUS_IS_IN_INPUT_CERTS = 4; +const int EXPR_NEST_MAX = 32; -const int CSSM_CERT_STATUS_IS_IN_ANCHORS = 8; +const int LINE_MAX = 2048; -const int CSSM_CERT_STATUS_IS_ROOT = 16; +const int RE_DUP_MAX = 255; -const int CSSM_CERT_STATUS_IS_FROM_NET = 32; +const int NZERO = 20; -const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_USER = 64; +const int _POSIX_ARG_MAX = 4096; -const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_ADMIN = 128; +const int _POSIX_CHILD_MAX = 25; -const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_SYSTEM = 256; +const int _POSIX_LINK_MAX = 8; -const int CSSM_CERT_STATUS_TRUST_SETTINGS_TRUST = 512; +const int _POSIX_MAX_CANON = 255; -const int CSSM_CERT_STATUS_TRUST_SETTINGS_DENY = 1024; +const int _POSIX_MAX_INPUT = 255; -const int CSSM_CERT_STATUS_TRUST_SETTINGS_IGNORED_ERROR = 2048; +const int _POSIX_NAME_MAX = 14; -const int CSSM_EVIDENCE_FORM_APPLE_HEADER = -2147483648; +const int _POSIX_NGROUPS_MAX = 8; -const int CSSM_EVIDENCE_FORM_APPLE_CERTGROUP = -2147483647; +const int _POSIX_OPEN_MAX = 20; -const int CSSM_EVIDENCE_FORM_APPLE_CERT_INFO = -2147483646; +const int _POSIX_PATH_MAX = 256; -const int CSSM_APPLEX509CL_OBTAIN_CSR = 0; +const int _POSIX_PIPE_BUF = 512; -const int CSSM_APPLEX509CL_VERIFY_CSR = 1; +const int _POSIX_SSIZE_MAX = 32767; -const int kSecSubjectItemAttr = 1937072746; +const int _POSIX_STREAM_MAX = 8; -const int kSecIssuerItemAttr = 1769173877; +const int _POSIX_TZNAME_MAX = 6; -const int kSecSerialNumberItemAttr = 1936614002; +const int _POSIX2_BC_BASE_MAX = 99; -const int kSecPublicKeyHashItemAttr = 1752198009; +const int _POSIX2_BC_DIM_MAX = 2048; -const int kSecSubjectKeyIdentifierItemAttr = 1936419172; +const int _POSIX2_BC_SCALE_MAX = 99; -const int kSecCertTypeItemAttr = 1668577648; +const int _POSIX2_BC_STRING_MAX = 1000; -const int kSecCertEncodingItemAttr = 1667591779; +const int _POSIX2_EQUIV_CLASS_MAX = 2; -const int SSL_NULL_WITH_NULL_NULL = 0; +const int _POSIX2_EXPR_NEST_MAX = 32; -const int SSL_RSA_WITH_NULL_MD5 = 1; +const int _POSIX2_LINE_MAX = 2048; -const int SSL_RSA_WITH_NULL_SHA = 2; +const int _POSIX2_RE_DUP_MAX = 255; -const int SSL_RSA_EXPORT_WITH_RC4_40_MD5 = 3; +const int _POSIX_AIO_LISTIO_MAX = 2; -const int SSL_RSA_WITH_RC4_128_MD5 = 4; +const int _POSIX_AIO_MAX = 1; -const int SSL_RSA_WITH_RC4_128_SHA = 5; +const int _POSIX_DELAYTIMER_MAX = 32; -const int SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5 = 6; +const int _POSIX_MQ_OPEN_MAX = 8; -const int SSL_RSA_WITH_IDEA_CBC_SHA = 7; +const int _POSIX_MQ_PRIO_MAX = 32; -const int SSL_RSA_EXPORT_WITH_DES40_CBC_SHA = 8; +const int _POSIX_RTSIG_MAX = 8; -const int SSL_RSA_WITH_DES_CBC_SHA = 9; +const int _POSIX_SEM_NSEMS_MAX = 256; -const int SSL_RSA_WITH_3DES_EDE_CBC_SHA = 10; +const int _POSIX_SEM_VALUE_MAX = 32767; -const int SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA = 11; +const int _POSIX_SIGQUEUE_MAX = 32; -const int SSL_DH_DSS_WITH_DES_CBC_SHA = 12; +const int _POSIX_TIMER_MAX = 32; -const int SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13; +const int _POSIX_CLOCKRES_MIN = 20000000; -const int SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA = 14; +const int _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4; -const int SSL_DH_RSA_WITH_DES_CBC_SHA = 15; +const int _POSIX_THREAD_KEYS_MAX = 128; -const int SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16; +const int _POSIX_THREAD_THREADS_MAX = 64; -const int SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA = 17; +const int PTHREAD_DESTRUCTOR_ITERATIONS = 4; -const int SSL_DHE_DSS_WITH_DES_CBC_SHA = 18; +const int PTHREAD_KEYS_MAX = 512; -const int SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19; +const int PTHREAD_STACK_MIN = 16384; -const int SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA = 20; +const int _POSIX_HOST_NAME_MAX = 255; -const int SSL_DHE_RSA_WITH_DES_CBC_SHA = 21; +const int _POSIX_LOGIN_NAME_MAX = 9; -const int SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22; +const int _POSIX_SS_REPL_MAX = 4; -const int SSL_DH_anon_EXPORT_WITH_RC4_40_MD5 = 23; +const int _POSIX_SYMLINK_MAX = 255; -const int SSL_DH_anon_WITH_RC4_128_MD5 = 24; +const int _POSIX_SYMLOOP_MAX = 8; -const int SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA = 25; +const int _POSIX_TRACE_EVENT_NAME_MAX = 30; -const int SSL_DH_anon_WITH_DES_CBC_SHA = 26; +const int _POSIX_TRACE_NAME_MAX = 8; -const int SSL_DH_anon_WITH_3DES_EDE_CBC_SHA = 27; +const int _POSIX_TRACE_SYS_MAX = 8; -const int SSL_FORTEZZA_DMS_WITH_NULL_SHA = 28; +const int _POSIX_TRACE_USER_EVENT_MAX = 32; -const int SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA = 29; +const int _POSIX_TTY_NAME_MAX = 9; -const int TLS_RSA_WITH_AES_128_CBC_SHA = 47; +const int _POSIX2_CHARCLASS_NAME_MAX = 14; -const int TLS_DH_DSS_WITH_AES_128_CBC_SHA = 48; +const int _POSIX2_COLL_WEIGHTS_MAX = 2; -const int TLS_DH_RSA_WITH_AES_128_CBC_SHA = 49; +const int _POSIX_RE_DUP_MAX = 255; -const int TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 50; +const int OFF_MIN = -9223372036854775808; -const int TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 51; +const int OFF_MAX = 9223372036854775807; -const int TLS_DH_anon_WITH_AES_128_CBC_SHA = 52; +const int PASS_MAX = 128; -const int TLS_RSA_WITH_AES_256_CBC_SHA = 53; +const int NL_ARGMAX = 9; -const int TLS_DH_DSS_WITH_AES_256_CBC_SHA = 54; +const int NL_LANGMAX = 14; -const int TLS_DH_RSA_WITH_AES_256_CBC_SHA = 55; +const int NL_MSGMAX = 32767; -const int TLS_DHE_DSS_WITH_AES_256_CBC_SHA = 56; +const int NL_NMAX = 1; -const int TLS_DHE_RSA_WITH_AES_256_CBC_SHA = 57; +const int NL_SETMAX = 255; -const int TLS_DH_anon_WITH_AES_256_CBC_SHA = 58; +const int NL_TEXTMAX = 2048; -const int TLS_ECDH_ECDSA_WITH_NULL_SHA = -16383; +const int _XOPEN_IOV_MAX = 16; -const int TLS_ECDH_ECDSA_WITH_RC4_128_SHA = -16382; +const int IOV_MAX = 1024; -const int TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA = -16381; +const int _XOPEN_NAME_MAX = 255; -const int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA = -16380; +const int _XOPEN_PATH_MAX = 1024; -const int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA = -16379; +const int NS_BLOCKS_AVAILABLE = 1; -const int TLS_ECDHE_ECDSA_WITH_NULL_SHA = -16378; +const int __COREFOUNDATION_CFAVAILABILITY__ = 1; -const int TLS_ECDHE_ECDSA_WITH_RC4_128_SHA = -16377; +const int API_TO_BE_DEPRECATED = 100000; -const int TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA = -16376; +const int __CF_ENUM_FIXED_IS_AVAILABLE = 1; -const int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = -16375; +const double NSFoundationVersionNumber10_0 = 397.4; -const int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = -16374; +const double NSFoundationVersionNumber10_1 = 425.0; -const int TLS_ECDH_RSA_WITH_NULL_SHA = -16373; +const double NSFoundationVersionNumber10_1_1 = 425.0; -const int TLS_ECDH_RSA_WITH_RC4_128_SHA = -16372; +const double NSFoundationVersionNumber10_1_2 = 425.0; -const int TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA = -16371; +const double NSFoundationVersionNumber10_1_3 = 425.0; -const int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA = -16370; +const double NSFoundationVersionNumber10_1_4 = 425.0; -const int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA = -16369; +const double NSFoundationVersionNumber10_2 = 462.0; -const int TLS_ECDHE_RSA_WITH_NULL_SHA = -16368; +const double NSFoundationVersionNumber10_2_1 = 462.0; -const int TLS_ECDHE_RSA_WITH_RC4_128_SHA = -16367; +const double NSFoundationVersionNumber10_2_2 = 462.0; -const int TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA = -16366; +const double NSFoundationVersionNumber10_2_3 = 462.0; -const int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = -16365; +const double NSFoundationVersionNumber10_2_4 = 462.0; -const int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = -16364; +const double NSFoundationVersionNumber10_2_5 = 462.0; -const int TLS_ECDH_anon_WITH_NULL_SHA = -16363; +const double NSFoundationVersionNumber10_2_6 = 462.0; -const int TLS_ECDH_anon_WITH_RC4_128_SHA = -16362; +const double NSFoundationVersionNumber10_2_7 = 462.7; -const int TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA = -16361; +const double NSFoundationVersionNumber10_2_8 = 462.7; -const int TLS_ECDH_anon_WITH_AES_128_CBC_SHA = -16360; +const double NSFoundationVersionNumber10_3 = 500.0; -const int TLS_ECDH_anon_WITH_AES_256_CBC_SHA = -16359; +const double NSFoundationVersionNumber10_3_1 = 500.0; -const int TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA = -16331; +const double NSFoundationVersionNumber10_3_2 = 500.3; -const int TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA = -16330; +const double NSFoundationVersionNumber10_3_3 = 500.54; -const int TLS_PSK_WITH_CHACHA20_POLY1305_SHA256 = -13141; +const double NSFoundationVersionNumber10_3_4 = 500.56; -const int TLS_NULL_WITH_NULL_NULL = 0; +const double NSFoundationVersionNumber10_3_5 = 500.56; -const int TLS_RSA_WITH_NULL_MD5 = 1; +const double NSFoundationVersionNumber10_3_6 = 500.56; -const int TLS_RSA_WITH_NULL_SHA = 2; +const double NSFoundationVersionNumber10_3_7 = 500.56; -const int TLS_RSA_WITH_RC4_128_MD5 = 4; +const double NSFoundationVersionNumber10_3_8 = 500.56; -const int TLS_RSA_WITH_RC4_128_SHA = 5; +const double NSFoundationVersionNumber10_3_9 = 500.58; -const int TLS_RSA_WITH_3DES_EDE_CBC_SHA = 10; +const double NSFoundationVersionNumber10_4 = 567.0; -const int TLS_RSA_WITH_NULL_SHA256 = 59; +const double NSFoundationVersionNumber10_4_1 = 567.0; -const int TLS_RSA_WITH_AES_128_CBC_SHA256 = 60; +const double NSFoundationVersionNumber10_4_2 = 567.12; -const int TLS_RSA_WITH_AES_256_CBC_SHA256 = 61; +const double NSFoundationVersionNumber10_4_3 = 567.21; -const int TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13; +const double NSFoundationVersionNumber10_4_4_Intel = 567.23; -const int TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16; +const double NSFoundationVersionNumber10_4_4_PowerPC = 567.21; -const int TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19; +const double NSFoundationVersionNumber10_4_5 = 567.25; -const int TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22; +const double NSFoundationVersionNumber10_4_6 = 567.26; -const int TLS_DH_DSS_WITH_AES_128_CBC_SHA256 = 62; +const double NSFoundationVersionNumber10_4_7 = 567.27; -const int TLS_DH_RSA_WITH_AES_128_CBC_SHA256 = 63; +const double NSFoundationVersionNumber10_4_8 = 567.28; -const int TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 = 64; +const double NSFoundationVersionNumber10_4_9 = 567.29; -const int TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 = 103; +const double NSFoundationVersionNumber10_4_10 = 567.29; -const int TLS_DH_DSS_WITH_AES_256_CBC_SHA256 = 104; +const double NSFoundationVersionNumber10_4_11 = 567.36; -const int TLS_DH_RSA_WITH_AES_256_CBC_SHA256 = 105; +const double NSFoundationVersionNumber10_5 = 677.0; -const int TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 = 106; +const double NSFoundationVersionNumber10_5_1 = 677.1; -const int TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 = 107; +const double NSFoundationVersionNumber10_5_2 = 677.15; -const int TLS_DH_anon_WITH_RC4_128_MD5 = 24; +const double NSFoundationVersionNumber10_5_3 = 677.19; -const int TLS_DH_anon_WITH_3DES_EDE_CBC_SHA = 27; +const double NSFoundationVersionNumber10_5_4 = 677.19; -const int TLS_DH_anon_WITH_AES_128_CBC_SHA256 = 108; +const double NSFoundationVersionNumber10_5_5 = 677.21; -const int TLS_DH_anon_WITH_AES_256_CBC_SHA256 = 109; +const double NSFoundationVersionNumber10_5_6 = 677.22; -const int TLS_PSK_WITH_RC4_128_SHA = 138; +const double NSFoundationVersionNumber10_5_7 = 677.24; -const int TLS_PSK_WITH_3DES_EDE_CBC_SHA = 139; +const double NSFoundationVersionNumber10_5_8 = 677.26; -const int TLS_PSK_WITH_AES_128_CBC_SHA = 140; +const double NSFoundationVersionNumber10_6 = 751.0; -const int TLS_PSK_WITH_AES_256_CBC_SHA = 141; +const double NSFoundationVersionNumber10_6_1 = 751.0; -const int TLS_DHE_PSK_WITH_RC4_128_SHA = 142; +const double NSFoundationVersionNumber10_6_2 = 751.14; -const int TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA = 143; +const double NSFoundationVersionNumber10_6_3 = 751.21; -const int TLS_DHE_PSK_WITH_AES_128_CBC_SHA = 144; +const double NSFoundationVersionNumber10_6_4 = 751.29; -const int TLS_DHE_PSK_WITH_AES_256_CBC_SHA = 145; +const double NSFoundationVersionNumber10_6_5 = 751.42; -const int TLS_RSA_PSK_WITH_RC4_128_SHA = 146; +const double NSFoundationVersionNumber10_6_6 = 751.53; -const int TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA = 147; +const double NSFoundationVersionNumber10_6_7 = 751.53; -const int TLS_RSA_PSK_WITH_AES_128_CBC_SHA = 148; +const double NSFoundationVersionNumber10_6_8 = 751.62; -const int TLS_RSA_PSK_WITH_AES_256_CBC_SHA = 149; +const double NSFoundationVersionNumber10_7 = 833.1; -const int TLS_PSK_WITH_NULL_SHA = 44; +const double NSFoundationVersionNumber10_7_1 = 833.1; -const int TLS_DHE_PSK_WITH_NULL_SHA = 45; +const double NSFoundationVersionNumber10_7_2 = 833.2; -const int TLS_RSA_PSK_WITH_NULL_SHA = 46; +const double NSFoundationVersionNumber10_7_3 = 833.24; -const int TLS_RSA_WITH_AES_128_GCM_SHA256 = 156; +const double NSFoundationVersionNumber10_7_4 = 833.25; -const int TLS_RSA_WITH_AES_256_GCM_SHA384 = 157; +const double NSFoundationVersionNumber10_8 = 945.0; -const int TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 = 158; +const double NSFoundationVersionNumber10_8_1 = 945.0; -const int TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 = 159; +const double NSFoundationVersionNumber10_8_2 = 945.11; -const int TLS_DH_RSA_WITH_AES_128_GCM_SHA256 = 160; +const double NSFoundationVersionNumber10_8_3 = 945.16; -const int TLS_DH_RSA_WITH_AES_256_GCM_SHA384 = 161; +const double NSFoundationVersionNumber10_8_4 = 945.18; -const int TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 = 162; +const int NSFoundationVersionNumber10_9 = 1056; -const int TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 = 163; +const int NSFoundationVersionNumber10_9_1 = 1056; -const int TLS_DH_DSS_WITH_AES_128_GCM_SHA256 = 164; +const double NSFoundationVersionNumber10_9_2 = 1056.13; -const int TLS_DH_DSS_WITH_AES_256_GCM_SHA384 = 165; +const double NSFoundationVersionNumber10_10 = 1151.16; -const int TLS_DH_anon_WITH_AES_128_GCM_SHA256 = 166; +const double NSFoundationVersionNumber10_10_1 = 1151.16; -const int TLS_DH_anon_WITH_AES_256_GCM_SHA384 = 167; +const double NSFoundationVersionNumber10_10_2 = 1152.14; -const int TLS_PSK_WITH_AES_128_GCM_SHA256 = 168; +const double NSFoundationVersionNumber10_10_3 = 1153.2; -const int TLS_PSK_WITH_AES_256_GCM_SHA384 = 169; +const double NSFoundationVersionNumber10_10_4 = 1153.2; -const int TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 = 170; +const int NSFoundationVersionNumber10_10_5 = 1154; -const int TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 = 171; +const int NSFoundationVersionNumber10_10_Max = 1199; -const int TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 = 172; +const int NSFoundationVersionNumber10_11 = 1252; -const int TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 = 173; +const double NSFoundationVersionNumber10_11_1 = 1255.1; -const int TLS_PSK_WITH_AES_128_CBC_SHA256 = 174; +const double NSFoundationVersionNumber10_11_2 = 1256.1; -const int TLS_PSK_WITH_AES_256_CBC_SHA384 = 175; +const double NSFoundationVersionNumber10_11_3 = 1256.1; -const int TLS_PSK_WITH_NULL_SHA256 = 176; +const int NSFoundationVersionNumber10_11_4 = 1258; -const int TLS_PSK_WITH_NULL_SHA384 = 177; +const int NSFoundationVersionNumber10_11_Max = 1299; -const int TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 = 178; +const int __COREFOUNDATION_CFBASE__ = 1; -const int TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 = 179; +const int UNIVERSAL_INTERFACES_VERSION = 1024; -const int TLS_DHE_PSK_WITH_NULL_SHA256 = 180; +const int PRAGMA_IMPORT = 0; -const int TLS_DHE_PSK_WITH_NULL_SHA384 = 181; +const int PRAGMA_ONCE = 0; -const int TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 = 182; +const int PRAGMA_STRUCT_PACK = 1; -const int TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 = 183; +const int PRAGMA_STRUCT_PACKPUSH = 1; -const int TLS_RSA_PSK_WITH_NULL_SHA256 = 184; +const int PRAGMA_STRUCT_ALIGN = 0; -const int TLS_RSA_PSK_WITH_NULL_SHA384 = 185; +const int PRAGMA_ENUM_PACK = 0; -const int TLS_AES_128_GCM_SHA256 = 4865; +const int PRAGMA_ENUM_ALWAYSINT = 0; -const int TLS_AES_256_GCM_SHA384 = 4866; +const int PRAGMA_ENUM_OPTIONS = 0; -const int TLS_CHACHA20_POLY1305_SHA256 = 4867; +const int TYPE_EXTENDED = 0; -const int TLS_AES_128_CCM_SHA256 = 4868; +const int TYPE_LONGDOUBLE_IS_DOUBLE = 0; -const int TLS_AES_128_CCM_8_SHA256 = 4869; +const int TYPE_LONGLONG = 1; -const int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 = -16349; +const int FUNCTION_PASCAL = 0; -const int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 = -16348; +const int FUNCTION_DECLSPEC = 0; -const int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 = -16347; +const int FUNCTION_WIN32CC = 0; -const int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 = -16346; +const int TARGET_API_MAC_OS8 = 0; -const int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 = -16345; +const int TARGET_API_MAC_CARBON = 1; -const int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 = -16344; +const int TARGET_API_MAC_OSX = 1; -const int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 = -16343; +const int TARGET_CARBON = 1; -const int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 = -16342; +const int OLDROUTINENAMES = 0; -const int TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = -16341; +const int OPAQUE_TOOLBOX_STRUCTS = 1; -const int TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = -16340; +const int OPAQUE_UPP_TYPES = 1; -const int TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = -16339; +const int ACCESSOR_CALLS_ARE_FUNCTIONS = 1; -const int TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = -16338; +const int CALL_NOT_IN_CARBON = 0; -const int TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = -16337; +const int MIXEDMODE_CALLS_ARE_FUNCTIONS = 1; -const int TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = -16336; +const int ALLOW_OBSOLETE_CARBON_MACMEMORY = 0; -const int TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 = -16335; +const int ALLOW_OBSOLETE_CARBON_OSUTILS = 0; -const int TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 = -16334; +const int NULL = 0; -const int TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 = -13144; +const int kInvalidID = 0; -const int TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 = -13143; +const int TRUE = 1; -const int TLS_EMPTY_RENEGOTIATION_INFO_SCSV = 255; +const int FALSE = 0; -const int SSL_RSA_WITH_RC2_CBC_MD5 = -128; +const double kCFCoreFoundationVersionNumber10_0 = 196.4; -const int SSL_RSA_WITH_IDEA_CBC_MD5 = -127; +const double kCFCoreFoundationVersionNumber10_0_3 = 196.5; -const int SSL_RSA_WITH_DES_CBC_MD5 = -126; +const double kCFCoreFoundationVersionNumber10_1 = 226.0; -const int SSL_RSA_WITH_3DES_EDE_CBC_MD5 = -125; +const double kCFCoreFoundationVersionNumber10_1_1 = 226.0; -const int SSL_NO_SUCH_CIPHERSUITE = -1; +const double kCFCoreFoundationVersionNumber10_1_2 = 227.2; -const int NSASCIIStringEncoding = 1; +const double kCFCoreFoundationVersionNumber10_1_3 = 227.2; -const int NSNEXTSTEPStringEncoding = 2; +const double kCFCoreFoundationVersionNumber10_1_4 = 227.3; -const int NSJapaneseEUCStringEncoding = 3; +const double kCFCoreFoundationVersionNumber10_2 = 263.0; -const int NSUTF8StringEncoding = 4; +const double kCFCoreFoundationVersionNumber10_2_1 = 263.1; -const int NSISOLatin1StringEncoding = 5; +const double kCFCoreFoundationVersionNumber10_2_2 = 263.1; -const int NSSymbolStringEncoding = 6; +const double kCFCoreFoundationVersionNumber10_2_3 = 263.3; -const int NSNonLossyASCIIStringEncoding = 7; +const double kCFCoreFoundationVersionNumber10_2_4 = 263.3; -const int NSShiftJISStringEncoding = 8; +const double kCFCoreFoundationVersionNumber10_2_5 = 263.5; -const int NSISOLatin2StringEncoding = 9; +const double kCFCoreFoundationVersionNumber10_2_6 = 263.5; -const int NSUnicodeStringEncoding = 10; +const double kCFCoreFoundationVersionNumber10_2_7 = 263.5; -const int NSWindowsCP1251StringEncoding = 11; +const double kCFCoreFoundationVersionNumber10_2_8 = 263.5; -const int NSWindowsCP1252StringEncoding = 12; +const double kCFCoreFoundationVersionNumber10_3 = 299.0; -const int NSWindowsCP1253StringEncoding = 13; +const double kCFCoreFoundationVersionNumber10_3_1 = 299.0; -const int NSWindowsCP1254StringEncoding = 14; +const double kCFCoreFoundationVersionNumber10_3_2 = 299.0; -const int NSWindowsCP1250StringEncoding = 15; +const double kCFCoreFoundationVersionNumber10_3_3 = 299.3; -const int NSISO2022JPStringEncoding = 21; +const double kCFCoreFoundationVersionNumber10_3_4 = 299.31; -const int NSMacOSRomanStringEncoding = 30; +const double kCFCoreFoundationVersionNumber10_3_5 = 299.31; -const int NSUTF16StringEncoding = 10; +const double kCFCoreFoundationVersionNumber10_3_6 = 299.32; -const int NSUTF16BigEndianStringEncoding = 2415919360; +const double kCFCoreFoundationVersionNumber10_3_7 = 299.33; -const int NSUTF16LittleEndianStringEncoding = 2483028224; +const double kCFCoreFoundationVersionNumber10_3_8 = 299.33; -const int NSUTF32StringEncoding = 2348810496; +const double kCFCoreFoundationVersionNumber10_3_9 = 299.35; -const int NSUTF32BigEndianStringEncoding = 2550137088; +const double kCFCoreFoundationVersionNumber10_4 = 368.0; -const int NSUTF32LittleEndianStringEncoding = 2617245952; +const double kCFCoreFoundationVersionNumber10_4_1 = 368.1; -const int NSProprietaryStringEncoding = 65536; +const double kCFCoreFoundationVersionNumber10_4_2 = 368.11; -const int NSOpenStepUnicodeReservedBase = 62464; +const double kCFCoreFoundationVersionNumber10_4_3 = 368.18; -const int kNativeArgNumberPos = 0; +const double kCFCoreFoundationVersionNumber10_4_4_Intel = 368.26; -const int kNativeArgNumberSize = 8; +const double kCFCoreFoundationVersionNumber10_4_4_PowerPC = 368.25; -const int kNativeArgTypePos = 8; +const double kCFCoreFoundationVersionNumber10_4_5_Intel = 368.26; -const int kNativeArgTypeSize = 8; +const double kCFCoreFoundationVersionNumber10_4_5_PowerPC = 368.25; -const int DYNAMIC_TARGETS_ENABLED = 0; +const double kCFCoreFoundationVersionNumber10_4_6_Intel = 368.26; -const int TARGET_OS_MAC = 1; +const double kCFCoreFoundationVersionNumber10_4_6_PowerPC = 368.25; -const int TARGET_OS_WIN32 = 0; +const double kCFCoreFoundationVersionNumber10_4_7 = 368.27; -const int TARGET_OS_WINDOWS = 0; +const double kCFCoreFoundationVersionNumber10_4_8 = 368.27; -const int TARGET_OS_UNIX = 0; +const double kCFCoreFoundationVersionNumber10_4_9 = 368.28; -const int TARGET_OS_LINUX = 0; +const double kCFCoreFoundationVersionNumber10_4_10 = 368.28; -const int TARGET_OS_OSX = 1; +const double kCFCoreFoundationVersionNumber10_4_11 = 368.31; -const int TARGET_OS_IPHONE = 0; +const double kCFCoreFoundationVersionNumber10_5 = 476.0; -const int TARGET_OS_IOS = 0; +const double kCFCoreFoundationVersionNumber10_5_1 = 476.0; -const int TARGET_OS_WATCH = 0; +const double kCFCoreFoundationVersionNumber10_5_2 = 476.1; -const int TARGET_OS_TV = 0; +const double kCFCoreFoundationVersionNumber10_5_3 = 476.13; -const int TARGET_OS_MACCATALYST = 0; +const double kCFCoreFoundationVersionNumber10_5_4 = 476.14; -const int TARGET_OS_UIKITFORMAC = 0; +const double kCFCoreFoundationVersionNumber10_5_5 = 476.15; -const int TARGET_OS_SIMULATOR = 0; +const double kCFCoreFoundationVersionNumber10_5_6 = 476.17; -const int TARGET_OS_EMBEDDED = 0; +const double kCFCoreFoundationVersionNumber10_5_7 = 476.18; -const int TARGET_OS_RTKIT = 0; +const double kCFCoreFoundationVersionNumber10_5_8 = 476.19; -const int TARGET_OS_DRIVERKIT = 0; +const double kCFCoreFoundationVersionNumber10_6 = 550.0; -const int TARGET_IPHONE_SIMULATOR = 0; +const double kCFCoreFoundationVersionNumber10_6_1 = 550.0; -const int TARGET_OS_NANO = 0; +const double kCFCoreFoundationVersionNumber10_6_2 = 550.13; -const int TARGET_ABI_USES_IOS_VALUES = 1; +const double kCFCoreFoundationVersionNumber10_6_3 = 550.19; -const int TARGET_CPU_PPC = 0; +const double kCFCoreFoundationVersionNumber10_6_4 = 550.29; -const int TARGET_CPU_PPC64 = 0; +const double kCFCoreFoundationVersionNumber10_6_5 = 550.42; -const int TARGET_CPU_68K = 0; +const double kCFCoreFoundationVersionNumber10_6_6 = 550.42; -const int TARGET_CPU_X86 = 0; +const double kCFCoreFoundationVersionNumber10_6_7 = 550.42; -const int TARGET_CPU_X86_64 = 0; +const double kCFCoreFoundationVersionNumber10_6_8 = 550.43; -const int TARGET_CPU_ARM = 0; +const double kCFCoreFoundationVersionNumber10_7 = 635.0; -const int TARGET_CPU_ARM64 = 1; +const double kCFCoreFoundationVersionNumber10_7_1 = 635.0; -const int TARGET_CPU_MIPS = 0; +const double kCFCoreFoundationVersionNumber10_7_2 = 635.15; -const int TARGET_CPU_SPARC = 0; +const double kCFCoreFoundationVersionNumber10_7_3 = 635.19; -const int TARGET_CPU_ALPHA = 0; +const double kCFCoreFoundationVersionNumber10_7_4 = 635.21; -const int TARGET_RT_MAC_CFM = 0; +const double kCFCoreFoundationVersionNumber10_7_5 = 635.21; -const int TARGET_RT_MAC_MACHO = 1; +const double kCFCoreFoundationVersionNumber10_8 = 744.0; -const int TARGET_RT_LITTLE_ENDIAN = 1; +const double kCFCoreFoundationVersionNumber10_8_1 = 744.0; -const int TARGET_RT_BIG_ENDIAN = 0; +const double kCFCoreFoundationVersionNumber10_8_2 = 744.12; -const int TARGET_RT_64_BIT = 1; +const double kCFCoreFoundationVersionNumber10_8_3 = 744.18; -const int __API_TO_BE_DEPRECATED = 100000; +const double kCFCoreFoundationVersionNumber10_8_4 = 744.19; -const int __API_TO_BE_DEPRECATED_MACOS = 100000; +const double kCFCoreFoundationVersionNumber10_9 = 855.11; -const int __API_TO_BE_DEPRECATED_IOS = 100000; +const double kCFCoreFoundationVersionNumber10_9_1 = 855.11; -const int __API_TO_BE_DEPRECATED_TVOS = 100000; +const double kCFCoreFoundationVersionNumber10_9_2 = 855.14; -const int __API_TO_BE_DEPRECATED_WATCHOS = 100000; +const double kCFCoreFoundationVersionNumber10_10 = 1151.16; -const int __API_TO_BE_DEPRECATED_MACCATALYST = 100000; +const double kCFCoreFoundationVersionNumber10_10_1 = 1151.16; -const int __API_TO_BE_DEPRECATED_DRIVERKIT = 100000; +const int kCFCoreFoundationVersionNumber10_10_2 = 1152; -const int __MAC_10_0 = 1000; +const double kCFCoreFoundationVersionNumber10_10_3 = 1153.18; -const int __MAC_10_1 = 1010; +const double kCFCoreFoundationVersionNumber10_10_4 = 1153.18; -const int __MAC_10_2 = 1020; +const double kCFCoreFoundationVersionNumber10_10_5 = 1153.18; -const int __MAC_10_3 = 1030; +const int kCFCoreFoundationVersionNumber10_10_Max = 1199; -const int __MAC_10_4 = 1040; +const int kCFCoreFoundationVersionNumber10_11 = 1253; -const int __MAC_10_5 = 1050; +const double kCFCoreFoundationVersionNumber10_11_1 = 1255.1; -const int __MAC_10_6 = 1060; +const double kCFCoreFoundationVersionNumber10_11_2 = 1256.14; -const int __MAC_10_7 = 1070; +const double kCFCoreFoundationVersionNumber10_11_3 = 1256.14; -const int __MAC_10_8 = 1080; +const double kCFCoreFoundationVersionNumber10_11_4 = 1258.1; -const int __MAC_10_9 = 1090; +const int kCFCoreFoundationVersionNumber10_11_Max = 1299; -const int __MAC_10_10 = 101000; +const int ISA_PTRAUTH_DISCRIMINATOR = 27361; -const int __MAC_10_10_2 = 101002; +const double NSTimeIntervalSince1970 = 978307200.0; -const int __MAC_10_10_3 = 101003; +const int __COREFOUNDATION_CFARRAY__ = 1; -const int __MAC_10_11 = 101100; +const int OS_OBJECT_HAVE_OBJC_SUPPORT = 0; -const int __MAC_10_11_2 = 101102; +const int OS_OBJECT_USE_OBJC = 0; -const int __MAC_10_11_3 = 101103; +const int OS_OBJECT_SWIFT3 = 0; -const int __MAC_10_11_4 = 101104; +const int OS_OBJECT_USE_OBJC_RETAIN_RELEASE = 0; -const int __MAC_10_12 = 101200; +const int SEC_OS_IPHONE = 0; -const int __MAC_10_12_1 = 101201; +const int SEC_OS_OSX = 1; -const int __MAC_10_12_2 = 101202; +const int SEC_OS_OSX_INCLUDES = 1; -const int __MAC_10_12_4 = 101204; +const int SECURITY_TYPE_UNIFICATION = 1; -const int __MAC_10_13 = 101300; +const int __COREFOUNDATION_COREFOUNDATION__ = 1; -const int __MAC_10_13_1 = 101301; +const int __COREFOUNDATION__ = 1; -const int __MAC_10_13_2 = 101302; +const String __ASSERT_FILE_NAME = 'temp_for_macros.hpp'; -const int __MAC_10_13_4 = 101304; +const int __DARWIN_WCHAR_MAX = 2147483647; -const int __MAC_10_14 = 101400; +const int __DARWIN_WCHAR_MIN = -2147483648; -const int __MAC_10_14_1 = 101401; +const int _FORTIFY_SOURCE = 2; -const int __MAC_10_14_4 = 101404; +const int _CACHED_RUNES = 256; -const int __MAC_10_14_6 = 101406; +const int _CRMASK = -256; -const int __MAC_10_15 = 101500; +const String _RUNE_MAGIC_A = 'RuneMagA'; -const int __MAC_10_15_1 = 101501; +const int _CTYPE_A = 256; -const int __MAC_10_15_4 = 101504; +const int _CTYPE_C = 512; -const int __MAC_10_16 = 101600; +const int _CTYPE_D = 1024; -const int __MAC_11_0 = 110000; +const int _CTYPE_G = 2048; -const int __MAC_11_1 = 110100; +const int _CTYPE_L = 4096; -const int __MAC_11_3 = 110300; +const int _CTYPE_P = 8192; -const int __MAC_11_4 = 110400; +const int _CTYPE_S = 16384; -const int __MAC_11_5 = 110500; +const int _CTYPE_U = 32768; -const int __MAC_11_6 = 110600; +const int _CTYPE_X = 65536; -const int __MAC_12_0 = 120000; +const int _CTYPE_B = 131072; -const int __MAC_12_1 = 120100; +const int _CTYPE_R = 262144; -const int __MAC_12_2 = 120200; +const int _CTYPE_I = 524288; -const int __MAC_12_3 = 120300; +const int _CTYPE_T = 1048576; -const int __MAC_13_0 = 130000; +const int _CTYPE_Q = 2097152; -const int __IPHONE_2_0 = 20000; +const int _CTYPE_SW0 = 536870912; -const int __IPHONE_2_1 = 20100; +const int _CTYPE_SW1 = 1073741824; -const int __IPHONE_2_2 = 20200; +const int _CTYPE_SW2 = 2147483648; -const int __IPHONE_3_0 = 30000; +const int _CTYPE_SW3 = 3221225472; -const int __IPHONE_3_1 = 30100; +const int _CTYPE_SWM = 3758096384; -const int __IPHONE_3_2 = 30200; +const int _CTYPE_SWS = 30; -const int __IPHONE_4_0 = 40000; +const int EPERM = 1; -const int __IPHONE_4_1 = 40100; +const int ENOENT = 2; -const int __IPHONE_4_2 = 40200; +const int ESRCH = 3; -const int __IPHONE_4_3 = 40300; +const int EINTR = 4; -const int __IPHONE_5_0 = 50000; +const int EIO = 5; -const int __IPHONE_5_1 = 50100; +const int ENXIO = 6; -const int __IPHONE_6_0 = 60000; +const int E2BIG = 7; -const int __IPHONE_6_1 = 60100; +const int ENOEXEC = 8; -const int __IPHONE_7_0 = 70000; +const int EBADF = 9; -const int __IPHONE_7_1 = 70100; +const int ECHILD = 10; -const int __IPHONE_8_0 = 80000; +const int EDEADLK = 11; -const int __IPHONE_8_1 = 80100; +const int ENOMEM = 12; -const int __IPHONE_8_2 = 80200; +const int EACCES = 13; -const int __IPHONE_8_3 = 80300; +const int EFAULT = 14; -const int __IPHONE_8_4 = 80400; +const int ENOTBLK = 15; -const int __IPHONE_9_0 = 90000; +const int EBUSY = 16; -const int __IPHONE_9_1 = 90100; +const int EEXIST = 17; -const int __IPHONE_9_2 = 90200; +const int EXDEV = 18; -const int __IPHONE_9_3 = 90300; +const int ENODEV = 19; -const int __IPHONE_10_0 = 100000; +const int ENOTDIR = 20; -const int __IPHONE_10_1 = 100100; +const int EISDIR = 21; -const int __IPHONE_10_2 = 100200; +const int EINVAL = 22; -const int __IPHONE_10_3 = 100300; +const int ENFILE = 23; -const int __IPHONE_11_0 = 110000; +const int EMFILE = 24; -const int __IPHONE_11_1 = 110100; +const int ENOTTY = 25; -const int __IPHONE_11_2 = 110200; +const int ETXTBSY = 26; -const int __IPHONE_11_3 = 110300; +const int EFBIG = 27; -const int __IPHONE_11_4 = 110400; +const int ENOSPC = 28; -const int __IPHONE_12_0 = 120000; +const int ESPIPE = 29; -const int __IPHONE_12_1 = 120100; +const int EROFS = 30; -const int __IPHONE_12_2 = 120200; +const int EMLINK = 31; -const int __IPHONE_12_3 = 120300; +const int EPIPE = 32; -const int __IPHONE_12_4 = 120400; +const int EDOM = 33; -const int __IPHONE_13_0 = 130000; +const int ERANGE = 34; -const int __IPHONE_13_1 = 130100; +const int EAGAIN = 35; -const int __IPHONE_13_2 = 130200; +const int EWOULDBLOCK = 35; -const int __IPHONE_13_3 = 130300; +const int EINPROGRESS = 36; -const int __IPHONE_13_4 = 130400; +const int EALREADY = 37; -const int __IPHONE_13_5 = 130500; +const int ENOTSOCK = 38; -const int __IPHONE_13_6 = 130600; +const int EDESTADDRREQ = 39; -const int __IPHONE_13_7 = 130700; +const int EMSGSIZE = 40; -const int __IPHONE_14_0 = 140000; +const int EPROTOTYPE = 41; -const int __IPHONE_14_1 = 140100; +const int ENOPROTOOPT = 42; -const int __IPHONE_14_2 = 140200; +const int EPROTONOSUPPORT = 43; -const int __IPHONE_14_3 = 140300; +const int ESOCKTNOSUPPORT = 44; -const int __IPHONE_14_5 = 140500; +const int ENOTSUP = 45; -const int __IPHONE_14_6 = 140600; +const int EPFNOSUPPORT = 46; -const int __IPHONE_14_7 = 140700; +const int EAFNOSUPPORT = 47; -const int __IPHONE_14_8 = 140800; +const int EADDRINUSE = 48; -const int __IPHONE_15_0 = 150000; +const int EADDRNOTAVAIL = 49; -const int __IPHONE_15_1 = 150100; +const int ENETDOWN = 50; -const int __IPHONE_15_2 = 150200; +const int ENETUNREACH = 51; -const int __IPHONE_15_3 = 150300; +const int ENETRESET = 52; -const int __IPHONE_15_4 = 150400; +const int ECONNABORTED = 53; -const int __IPHONE_16_0 = 160000; +const int ECONNRESET = 54; -const int __IPHONE_16_1 = 160100; +const int ENOBUFS = 55; -const int __TVOS_9_0 = 90000; +const int EISCONN = 56; -const int __TVOS_9_1 = 90100; +const int ENOTCONN = 57; -const int __TVOS_9_2 = 90200; +const int ESHUTDOWN = 58; -const int __TVOS_10_0 = 100000; +const int ETOOMANYREFS = 59; -const int __TVOS_10_0_1 = 100001; +const int ETIMEDOUT = 60; -const int __TVOS_10_1 = 100100; +const int ECONNREFUSED = 61; -const int __TVOS_10_2 = 100200; +const int ELOOP = 62; -const int __TVOS_11_0 = 110000; +const int ENAMETOOLONG = 63; -const int __TVOS_11_1 = 110100; +const int EHOSTDOWN = 64; -const int __TVOS_11_2 = 110200; +const int EHOSTUNREACH = 65; -const int __TVOS_11_3 = 110300; +const int ENOTEMPTY = 66; -const int __TVOS_11_4 = 110400; +const int EPROCLIM = 67; -const int __TVOS_12_0 = 120000; +const int EUSERS = 68; -const int __TVOS_12_1 = 120100; +const int EDQUOT = 69; -const int __TVOS_12_2 = 120200; +const int ESTALE = 70; -const int __TVOS_12_3 = 120300; +const int EREMOTE = 71; -const int __TVOS_12_4 = 120400; +const int EBADRPC = 72; -const int __TVOS_13_0 = 130000; +const int ERPCMISMATCH = 73; -const int __TVOS_13_2 = 130200; +const int EPROGUNAVAIL = 74; -const int __TVOS_13_3 = 130300; +const int EPROGMISMATCH = 75; -const int __TVOS_13_4 = 130400; +const int EPROCUNAVAIL = 76; -const int __TVOS_14_0 = 140000; +const int ENOLCK = 77; -const int __TVOS_14_1 = 140100; +const int ENOSYS = 78; -const int __TVOS_14_2 = 140200; +const int EFTYPE = 79; -const int __TVOS_14_3 = 140300; +const int EAUTH = 80; -const int __TVOS_14_5 = 140500; +const int ENEEDAUTH = 81; -const int __TVOS_14_6 = 140600; +const int EPWROFF = 82; -const int __TVOS_14_7 = 140700; +const int EDEVERR = 83; -const int __TVOS_15_0 = 150000; +const int EOVERFLOW = 84; -const int __TVOS_15_1 = 150100; +const int EBADEXEC = 85; -const int __TVOS_15_2 = 150200; +const int EBADARCH = 86; -const int __TVOS_15_3 = 150300; +const int ESHLIBVERS = 87; -const int __TVOS_15_4 = 150400; +const int EBADMACHO = 88; -const int __TVOS_16_0 = 160000; +const int ECANCELED = 89; -const int __TVOS_16_1 = 160100; +const int EIDRM = 90; -const int __WATCHOS_1_0 = 10000; +const int ENOMSG = 91; -const int __WATCHOS_2_0 = 20000; +const int EILSEQ = 92; -const int __WATCHOS_2_1 = 20100; +const int ENOATTR = 93; -const int __WATCHOS_2_2 = 20200; +const int EBADMSG = 94; -const int __WATCHOS_3_0 = 30000; +const int EMULTIHOP = 95; -const int __WATCHOS_3_1 = 30100; +const int ENODATA = 96; -const int __WATCHOS_3_1_1 = 30101; +const int ENOLINK = 97; -const int __WATCHOS_3_2 = 30200; +const int ENOSR = 98; -const int __WATCHOS_4_0 = 40000; +const int ENOSTR = 99; -const int __WATCHOS_4_1 = 40100; +const int EPROTO = 100; -const int __WATCHOS_4_2 = 40200; +const int ETIME = 101; -const int __WATCHOS_4_3 = 40300; +const int EOPNOTSUPP = 102; -const int __WATCHOS_5_0 = 50000; +const int ENOPOLICY = 103; -const int __WATCHOS_5_1 = 50100; +const int ENOTRECOVERABLE = 104; -const int __WATCHOS_5_2 = 50200; +const int EOWNERDEAD = 105; -const int __WATCHOS_5_3 = 50300; +const int EQFULL = 106; -const int __WATCHOS_6_0 = 60000; +const int ELAST = 106; -const int __WATCHOS_6_1 = 60100; +const int FLT_EVAL_METHOD = 0; -const int __WATCHOS_6_2 = 60200; +const int FLT_RADIX = 2; -const int __WATCHOS_7_0 = 70000; +const int FLT_MANT_DIG = 24; -const int __WATCHOS_7_1 = 70100; +const int DBL_MANT_DIG = 53; -const int __WATCHOS_7_2 = 70200; +const int LDBL_MANT_DIG = 53; -const int __WATCHOS_7_3 = 70300; +const int FLT_DIG = 6; -const int __WATCHOS_7_4 = 70400; +const int DBL_DIG = 15; -const int __WATCHOS_7_5 = 70500; +const int LDBL_DIG = 15; -const int __WATCHOS_7_6 = 70600; +const int FLT_MIN_EXP = -125; -const int __WATCHOS_8_0 = 80000; +const int DBL_MIN_EXP = -1021; -const int __WATCHOS_8_1 = 80100; +const int LDBL_MIN_EXP = -1021; -const int __WATCHOS_8_3 = 80300; +const int FLT_MIN_10_EXP = -37; -const int __WATCHOS_8_4 = 80400; +const int DBL_MIN_10_EXP = -307; -const int __WATCHOS_8_5 = 80500; +const int LDBL_MIN_10_EXP = -307; -const int __WATCHOS_9_0 = 90000; +const int FLT_MAX_EXP = 128; -const int __WATCHOS_9_1 = 90100; +const int DBL_MAX_EXP = 1024; -const int MAC_OS_X_VERSION_10_0 = 1000; +const int LDBL_MAX_EXP = 1024; -const int MAC_OS_X_VERSION_10_1 = 1010; +const int FLT_MAX_10_EXP = 38; -const int MAC_OS_X_VERSION_10_2 = 1020; +const int DBL_MAX_10_EXP = 308; -const int MAC_OS_X_VERSION_10_3 = 1030; +const int LDBL_MAX_10_EXP = 308; -const int MAC_OS_X_VERSION_10_4 = 1040; +const double FLT_MAX = 3.4028234663852886e+38; -const int MAC_OS_X_VERSION_10_5 = 1050; +const double DBL_MAX = 1.7976931348623157e+308; -const int MAC_OS_X_VERSION_10_6 = 1060; +const double LDBL_MAX = 1.7976931348623157e+308; -const int MAC_OS_X_VERSION_10_7 = 1070; +const double FLT_EPSILON = 1.1920928955078125e-7; -const int MAC_OS_X_VERSION_10_8 = 1080; +const double DBL_EPSILON = 2.220446049250313e-16; -const int MAC_OS_X_VERSION_10_9 = 1090; +const double LDBL_EPSILON = 2.220446049250313e-16; -const int MAC_OS_X_VERSION_10_10 = 101000; +const double FLT_MIN = 1.1754943508222875e-38; -const int MAC_OS_X_VERSION_10_10_2 = 101002; +const double DBL_MIN = 2.2250738585072014e-308; -const int MAC_OS_X_VERSION_10_10_3 = 101003; +const double LDBL_MIN = 2.2250738585072014e-308; -const int MAC_OS_X_VERSION_10_11 = 101100; +const int DECIMAL_DIG = 17; -const int MAC_OS_X_VERSION_10_11_2 = 101102; +const int FLT_HAS_SUBNORM = 1; -const int MAC_OS_X_VERSION_10_11_3 = 101103; +const int DBL_HAS_SUBNORM = 1; -const int MAC_OS_X_VERSION_10_11_4 = 101104; +const int LDBL_HAS_SUBNORM = 1; -const int MAC_OS_X_VERSION_10_12 = 101200; +const double FLT_TRUE_MIN = 1.401298464324817e-45; -const int MAC_OS_X_VERSION_10_12_1 = 101201; +const double DBL_TRUE_MIN = 5e-324; -const int MAC_OS_X_VERSION_10_12_2 = 101202; +const double LDBL_TRUE_MIN = 5e-324; -const int MAC_OS_X_VERSION_10_12_4 = 101204; +const int FLT_DECIMAL_DIG = 9; -const int MAC_OS_X_VERSION_10_13 = 101300; +const int DBL_DECIMAL_DIG = 17; -const int MAC_OS_X_VERSION_10_13_1 = 101301; +const int LDBL_DECIMAL_DIG = 17; -const int MAC_OS_X_VERSION_10_13_2 = 101302; +const int LC_ALL = 0; -const int MAC_OS_X_VERSION_10_13_4 = 101304; +const int LC_COLLATE = 1; -const int MAC_OS_X_VERSION_10_14 = 101400; +const int LC_CTYPE = 2; -const int MAC_OS_X_VERSION_10_14_1 = 101401; +const int LC_MONETARY = 3; -const int MAC_OS_X_VERSION_10_14_4 = 101404; +const int LC_NUMERIC = 4; -const int MAC_OS_X_VERSION_10_14_6 = 101406; +const int LC_TIME = 5; -const int MAC_OS_X_VERSION_10_15 = 101500; +const int LC_MESSAGES = 6; -const int MAC_OS_X_VERSION_10_15_1 = 101501; +const int _LC_LAST = 7; -const int MAC_OS_X_VERSION_10_16 = 101600; +const double HUGE_VAL = double.infinity; -const int MAC_OS_VERSION_11_0 = 110000; +const double HUGE_VALF = double.infinity; -const int MAC_OS_VERSION_12_0 = 120000; +const double HUGE_VALL = double.infinity; -const int MAC_OS_VERSION_13_0 = 130000; +const double NAN = double.nan; -const int __DRIVERKIT_19_0 = 190000; +const double INFINITY = double.infinity; -const int __DRIVERKIT_20_0 = 200000; +const int FP_NAN = 1; -const int __DRIVERKIT_21_0 = 210000; +const int FP_INFINITE = 2; -const int __MAC_OS_X_VERSION_MIN_REQUIRED = 130000; +const int FP_ZERO = 3; -const int __MAC_OS_X_VERSION_MAX_ALLOWED = 130000; +const int FP_NORMAL = 4; -const int __ENABLE_LEGACY_MAC_AVAILABILITY = 1; +const int FP_SUBNORMAL = 5; -const int __DARWIN_ONLY_64_BIT_INO_T = 1; +const int FP_SUPERNORMAL = 6; -const int __DARWIN_ONLY_UNIX_CONFORMANCE = 1; +const int FP_FAST_FMA = 1; -const int __DARWIN_ONLY_VERS_1050 = 1; +const int FP_FAST_FMAF = 1; -const int __DARWIN_UNIX03 = 1; +const int FP_FAST_FMAL = 1; -const int __DARWIN_64_BIT_INO_T = 1; +const int FP_ILOGB0 = -2147483648; -const int __DARWIN_VERS_1050 = 1; +const int FP_ILOGBNAN = -2147483648; -const int __DARWIN_NON_CANCELABLE = 0; +const int MATH_ERRNO = 1; -const String __DARWIN_SUF_EXTSN = '\$DARWIN_EXTSN'; +const int MATH_ERREXCEPT = 2; -const int __DARWIN_C_ANSI = 4096; +const double M_E = 2.718281828459045; -const int __DARWIN_C_FULL = 900000; +const double M_LOG2E = 1.4426950408889634; -const int __DARWIN_C_LEVEL = 900000; +const double M_LOG10E = 0.4342944819032518; -const int __STDC_WANT_LIB_EXT1__ = 1; +const double M_LN2 = 0.6931471805599453; -const int __DARWIN_NO_LONG_LONG = 0; +const double M_LN10 = 2.302585092994046; -const int _DARWIN_FEATURE_64_BIT_INODE = 1; +const double M_PI = 3.141592653589793; -const int _DARWIN_FEATURE_ONLY_64_BIT_INODE = 1; +const double M_PI_2 = 1.5707963267948966; -const int _DARWIN_FEATURE_ONLY_VERS_1050 = 1; +const double M_PI_4 = 0.7853981633974483; -const int _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1; +const double M_1_PI = 0.3183098861837907; -const int _DARWIN_FEATURE_UNIX_CONFORMANCE = 3; +const double M_2_PI = 0.6366197723675814; -const int __has_ptrcheck = 0; +const double M_2_SQRTPI = 1.1283791670955126; -const int __DARWIN_NULL = 0; +const double M_SQRT2 = 1.4142135623730951; -const int __PTHREAD_SIZE__ = 8176; +const double M_SQRT1_2 = 0.7071067811865476; -const int __PTHREAD_ATTR_SIZE__ = 56; +const double MAXFLOAT = 3.4028234663852886e+38; -const int __PTHREAD_MUTEXATTR_SIZE__ = 8; +const int FP_SNAN = 1; -const int __PTHREAD_MUTEX_SIZE__ = 56; +const int FP_QNAN = 1; -const int __PTHREAD_CONDATTR_SIZE__ = 8; +const double HUGE = 3.4028234663852886e+38; -const int __PTHREAD_COND_SIZE__ = 40; +const double X_TLOSS = 14148475504056880.0; -const int __PTHREAD_ONCE_SIZE__ = 8; +const int DOMAIN = 1; -const int __PTHREAD_RWLOCK_SIZE__ = 192; +const int SING = 2; -const int __PTHREAD_RWLOCKATTR_SIZE__ = 16; +const int OVERFLOW = 3; -const int __DARWIN_WCHAR_MAX = 2147483647; +const int UNDERFLOW = 4; -const int __DARWIN_WCHAR_MIN = -2147483648; +const int TLOSS = 5; -const int __DARWIN_WEOF = -1; +const int PLOSS = 6; -const int _FORTIFY_SOURCE = 2; +const int _JBLEN = 48; const int __DARWIN_NSIG = 32; @@ -89604,8 +89964,6 @@ const int SIGUSR1 = 30; const int SIGUSR2 = 31; -const int USER_ADDR_NULL = 0; - const int __DARWIN_OPAQUE_ARM_THREAD_STATE64 = 0; const int SIGEV_NONE = 0; @@ -89750,111 +90108,75 @@ const int SV_NOCLDSTOP = 8; const int SV_SIGINFO = 64; -const int __WORDSIZE = 64; - -const int INT8_MAX = 127; - -const int INT16_MAX = 32767; - -const int INT32_MAX = 2147483647; - -const int INT64_MAX = 9223372036854775807; - -const int INT8_MIN = -128; - -const int INT16_MIN = -32768; - -const int INT32_MIN = -2147483648; - -const int INT64_MIN = -9223372036854775808; - -const int UINT8_MAX = 255; - -const int UINT16_MAX = 65535; - -const int UINT32_MAX = 4294967295; - -const int UINT64_MAX = -1; - -const int INT_LEAST8_MIN = -128; - -const int INT_LEAST16_MIN = -32768; - -const int INT_LEAST32_MIN = -2147483648; - -const int INT_LEAST64_MIN = -9223372036854775808; - -const int INT_LEAST8_MAX = 127; - -const int INT_LEAST16_MAX = 32767; +const int RENAME_SECLUDE = 1; -const int INT_LEAST32_MAX = 2147483647; +const int RENAME_SWAP = 2; -const int INT_LEAST64_MAX = 9223372036854775807; +const int RENAME_EXCL = 4; -const int UINT_LEAST8_MAX = 255; +const int RENAME_RESERVED1 = 8; -const int UINT_LEAST16_MAX = 65535; +const int RENAME_NOFOLLOW_ANY = 16; -const int UINT_LEAST32_MAX = 4294967295; +const int __SLBF = 1; -const int UINT_LEAST64_MAX = -1; +const int __SNBF = 2; -const int INT_FAST8_MIN = -128; +const int __SRD = 4; -const int INT_FAST16_MIN = -32768; +const int __SWR = 8; -const int INT_FAST32_MIN = -2147483648; +const int __SRW = 16; -const int INT_FAST64_MIN = -9223372036854775808; +const int __SEOF = 32; -const int INT_FAST8_MAX = 127; +const int __SERR = 64; -const int INT_FAST16_MAX = 32767; +const int __SMBF = 128; -const int INT_FAST32_MAX = 2147483647; +const int __SAPP = 256; -const int INT_FAST64_MAX = 9223372036854775807; +const int __SSTR = 512; -const int UINT_FAST8_MAX = 255; +const int __SOPT = 1024; -const int UINT_FAST16_MAX = 65535; +const int __SNPT = 2048; -const int UINT_FAST32_MAX = 4294967295; +const int __SOFF = 4096; -const int UINT_FAST64_MAX = -1; +const int __SMOD = 8192; -const int INTPTR_MAX = 9223372036854775807; +const int __SALC = 16384; -const int INTPTR_MIN = -9223372036854775808; +const int __SIGN = 32768; -const int UINTPTR_MAX = -1; +const int _IOFBF = 0; -const int INTMAX_MAX = 9223372036854775807; +const int _IOLBF = 1; -const int UINTMAX_MAX = -1; +const int _IONBF = 2; -const int INTMAX_MIN = -9223372036854775808; +const int BUFSIZ = 1024; -const int PTRDIFF_MIN = -9223372036854775808; +const int EOF = -1; -const int PTRDIFF_MAX = 9223372036854775807; +const int FOPEN_MAX = 20; -const int SIZE_MAX = -1; +const int FILENAME_MAX = 1024; -const int RSIZE_MAX = 9223372036854775807; +const String P_tmpdir = '/var/tmp/'; -const int WCHAR_MAX = 2147483647; +const int L_tmpnam = 1024; -const int WCHAR_MIN = -2147483648; +const int TMP_MAX = 308915776; -const int WINT_MIN = -2147483648; +const int SEEK_SET = 0; -const int WINT_MAX = 2147483647; +const int SEEK_CUR = 1; -const int SIG_ATOMIC_MIN = -2147483648; +const int SEEK_END = 2; -const int SIG_ATOMIC_MAX = 2147483647; +const int L_ctermid = 1024; const int PRIO_PROCESS = 0; @@ -89890,18 +90212,10 @@ const int RUSAGE_INFO_V4 = 4; const int RUSAGE_INFO_V5 = 5; -const int RUSAGE_INFO_V6 = 6; - -const int RUSAGE_INFO_CURRENT = 6; +const int RUSAGE_INFO_CURRENT = 5; const int RU_PROC_RUNS_RESLIDE = 1; -const int RLIM_INFINITY = 9223372036854775807; - -const int RLIM_SAVED_MAX = 9223372036854775807; - -const int RLIM_SAVED_CUR = 9223372036854775807; - const int RLIMIT_CPU = 0; const int RLIMIT_FSIZE = 1; @@ -89966,8 +90280,6 @@ const int IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE = 8; const int IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES = 9; -const int IOPOL_TYPE_VFS_DISALLOW_RW_FOR_O_EVTONLY = 10; - const int IOPOL_SCOPE_PROCESS = 0; const int IOPOL_SCOPE_THREAD = 1; @@ -90024,10 +90336,6 @@ const int IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF = 0; const int IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON = 1; -const int IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_DEFAULT = 0; - -const int IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_ON = 1; - const int WNOHANG = 1; const int WUNTRACED = 2; @@ -90048,87 +90356,13 @@ const int WAIT_ANY = -1; const int WAIT_MYPGRP = 0; -const int _QUAD_HIGHWORD = 1; - -const int _QUAD_LOWWORD = 0; - -const int __DARWIN_LITTLE_ENDIAN = 1234; - -const int __DARWIN_BIG_ENDIAN = 4321; - -const int __DARWIN_PDP_ENDIAN = 3412; - -const int __DARWIN_BYTE_ORDER = 1234; - -const int LITTLE_ENDIAN = 1234; - -const int BIG_ENDIAN = 4321; - -const int PDP_ENDIAN = 3412; - -const int BYTE_ORDER = 1234; - -const int NULL = 0; - const int EXIT_FAILURE = 1; const int EXIT_SUCCESS = 0; const int RAND_MAX = 2147483647; -const int __DARWIN_FD_SETSIZE = 1024; - -const int __DARWIN_NBBY = 8; - -const int __DARWIN_NFDBITS = 32; - -const int NBBY = 8; - -const int NFDBITS = 32; - -const int FD_SETSIZE = 1024; - -const int true1 = 1; - -const int false1 = 0; - -const int __bool_true_false_are_defined = 1; - -const int __GNUC_VA_LIST = 1; - -const int _POSIX_THREAD_KEYS_MAX = 128; - -const int API_TO_BE_DEPRECATED = 100000; - -const int API_TO_BE_DEPRECATED_MACOS = 100000; - -const int API_TO_BE_DEPRECATED_IOS = 100000; - -const int API_TO_BE_DEPRECATED_TVOS = 100000; - -const int API_TO_BE_DEPRECATED_WATCHOS = 100000; - -const int API_TO_BE_DEPRECATED_DRIVERKIT = 100000; - -const int TRUE = 1; - -const int FALSE = 0; - -const int OS_OBJECT_HAVE_OBJC_SUPPORT = 0; - -const int OS_OBJECT_USE_OBJC = 0; - -const int OS_OBJECT_SWIFT3 = 0; - -const int OS_OBJECT_USE_OBJC_RETAIN_RELEASE = 0; - -const String __ASSERT_FILE_NAME = 'temp_for_macros.hpp'; - -const int SEEK_SET = 0; - -const int SEEK_CUR = 1; - -const int SEEK_END = 2; +const int TIME_UTC = 1; const String __PRI_8_LENGTH_MODIFIER__ = 'hh'; @@ -90448,47 +90682,57 @@ const String SCNuMAX = 'ju'; const String SCNxMAX = 'jx'; -const int MACH_PORT_NULL = 0; +const int __COREFOUNDATION_CFBAG__ = 1; + +const int __COREFOUNDATION_CFBINARYHEAP__ = 1; + +const int __COREFOUNDATION_CFBITVECTOR__ = 1; + +const int __COREFOUNDATION_CFBYTEORDER__ = 1; -const int MACH_PORT_DEAD = 4294967295; +const int CF_USE_OSBYTEORDER_H = 1; -const int MACH_PORT_RIGHT_SEND = 0; +const int __COREFOUNDATION_CFCALENDAR__ = 1; -const int MACH_PORT_RIGHT_RECEIVE = 1; +const int __COREFOUNDATION_CFLOCALE__ = 1; -const int MACH_PORT_RIGHT_SEND_ONCE = 2; +const int __COREFOUNDATION_CFDICTIONARY__ = 1; -const int MACH_PORT_RIGHT_PORT_SET = 3; +const int __COREFOUNDATION_CFNOTIFICATIONCENTER__ = 1; -const int MACH_PORT_RIGHT_DEAD_NAME = 4; +const int __COREFOUNDATION_CFDATE__ = 1; -const int MACH_PORT_RIGHT_LABELH = 5; +const int __COREFOUNDATION_CFTIMEZONE__ = 1; -const int MACH_PORT_RIGHT_NUMBER = 6; +const int __COREFOUNDATION_CFDATA__ = 1; -const int MACH_PORT_TYPE_NONE = 0; +const int __COREFOUNDATION_CFSTRING__ = 1; -const int MACH_PORT_TYPE_SEND = 65536; +const int __COREFOUNDATION_CFCHARACTERSET__ = 1; -const int MACH_PORT_TYPE_RECEIVE = 131072; +const int kCFStringEncodingInvalidId = 4294967295; -const int MACH_PORT_TYPE_SEND_ONCE = 262144; +const int __kCFStringInlineBufferLength = 64; -const int MACH_PORT_TYPE_PORT_SET = 524288; +const int __COREFOUNDATION_CFDATEFORMATTER__ = 1; -const int MACH_PORT_TYPE_DEAD_NAME = 1048576; +const int __COREFOUNDATION_CFERROR__ = 1; -const int MACH_PORT_TYPE_LABELH = 2097152; +const int __COREFOUNDATION_CFNUMBER__ = 1; -const int MACH_PORT_TYPE_SEND_RECEIVE = 196608; +const int __COREFOUNDATION_CFNUMBERFORMATTER__ = 1; -const int MACH_PORT_TYPE_SEND_RIGHTS = 327680; +const int __COREFOUNDATION_CFPREFERENCES__ = 1; -const int MACH_PORT_TYPE_PORT_RIGHTS = 458752; +const int __COREFOUNDATION_CFPROPERTYLIST__ = 1; -const int MACH_PORT_TYPE_PORT_OR_DEAD = 1507328; +const int __COREFOUNDATION_CFSTREAM__ = 1; -const int MACH_PORT_TYPE_ALL_RIGHTS = 2031616; +const int __COREFOUNDATION_CFURL__ = 1; + +const int __COREFOUNDATION_CFRUNLOOP__ = 1; + +const int MACH_PORT_NULL = 0; const int MACH_PORT_TYPE_DNREQUEST = 2147483648; @@ -90548,20 +90792,10 @@ const int MACH_PORT_INFO_EXT = 7; const int MACH_PORT_GUARD_INFO = 8; -const int MACH_PORT_LIMITS_INFO_COUNT = 1; - -const int MACH_PORT_RECEIVE_STATUS_COUNT = 10; - const int MACH_PORT_DNREQUESTS_SIZE_COUNT = 1; -const int MACH_PORT_INFO_EXT_COUNT = 17; - -const int MACH_PORT_GUARD_INFO_COUNT = 2; - const int MACH_SERVICE_PORT_INFO_STRING_NAME_MAX_BUF_LEN = 255; -const int MACH_SERVICE_PORT_INFO_COUNT = 0; - const int MPO_CONTEXT_AS_GUARD = 1; const int MPO_QLIMIT = 2; @@ -90586,12 +90820,6 @@ const int MPO_SERVICE_PORT = 1024; const int MPO_CONNECTION_PORT = 2048; -const int MPO_REPLY_PORT = 4096; - -const int MPO_ENFORCE_REPLY_PORT_SEMANTICS = 8192; - -const int MPO_PROVISIONAL_REPLY_PORT = 16384; - const int GUARD_TYPE_MACH_PORT = 1; const int MAX_FATAL_kGUARD_EXC_CODE = 128; @@ -90624,6 +90852,8 @@ const int MPG_STRICT = 1; const int MPG_IMMOVABLE_RECEIVE = 2; +const int __COREFOUNDATION_CFSOCKET__ = 1; + const int _POSIX_VERSION = 200112; const int _POSIX2_VERSION = 200112; @@ -91306,10 +91536,6 @@ const int O_CLOEXEC = 16777216; const int O_NOFOLLOW_ANY = 536870912; -const int O_EXEC = 1073741824; - -const int O_SEARCH = 1074790400; - const int AT_FDCWD = -2; const int AT_EACCESS = 16; @@ -91330,10 +91556,6 @@ const int O_DP_GETRAWENCRYPTED = 1; const int O_DP_GETRAWUNENCRYPTED = 2; -const int O_DP_AUTHENTICATE = 4; - -const int AUTH_OPEN_NOAUTHFD = -1; - const int FAPPEND = 8; const int FASYNC = 64; @@ -91458,11 +91680,7 @@ const int F_ADDFILESUPPL = 104; const int F_GETSIGSINFO = 105; -const int F_SETLEASE = 106; - -const int F_GETLEASE = 107; - -const int F_TRANSFEREXTENTS = 110; +const int F_FSRESERVED = 106; const int FCNTL_FS_SPECIFIC_BASE = 65536; @@ -91536,8 +91754,6 @@ const int F_ALLOCATECONTIG = 2; const int F_ALLOCATEALL = 4; -const int F_ALLOCATEPERSIST = 8; - const int F_PEOFPOSMODE = 3; const int F_VOLPOSMODE = 4; @@ -91558,8 +91774,6 @@ const int O_POPUP = 2147483648; const int O_ALERT = 536870912; -const int FILESEC_GUID = 3; - const int DISPATCH_API_VERSION = 20181008; const int __OS_WORKGROUP_ATTR_SIZE__ = 60; @@ -91744,8 +91958,6 @@ const int KERN_NOT_FOUND = 56; const int KERN_RETURN_MAX = 256; -const int MACH_MSG_TIMEOUT_NONE = 0; - const int MACH_MSGH_BITS_ZERO = 0; const int MACH_MSGH_BITS_REMOTE_MASK = 31; @@ -91772,8 +91984,6 @@ const int MACH_MSGH_BITS_CIRCULAR = 268435456; const int MACH_MSGH_BITS_USED = 2954829599; -const int MACH_MSG_PRIORITY_UNSPECIFIED = 0; - const int MACH_MSG_TYPE_MOVE_RECEIVE = 16; const int MACH_MSG_TYPE_MOVE_SEND = 17; @@ -91820,22 +92030,8 @@ const int MACH_MSG_OOL_VOLATILE_DESCRIPTOR = 3; const int MACH_MSG_GUARDED_PORT_DESCRIPTOR = 4; -const int MACH_MSG_DESCRIPTOR_MAX = 4; - const int MACH_MSG_TRAILER_FORMAT_0 = 0; -const int MACH_MSG_FILTER_POLICY_ALLOW = 0; - -const int MACH_MSG_TRAILER_MINIMUM_SIZE = 8; - -const int MAX_TRAILER_SIZE = 68; - -const int MACH_MSG_TRAILER_FORMAT_0_SIZE = 20; - -const int MACH_MSG_SIZE_MAX = 4294967295; - -const int MACH_MSG_SIZE_RELIABLE = 262144; - const int MACH_MSGH_KIND_NORMAL = 0; const int MACH_MSGH_KIND_NOTIFICATION = 1; @@ -91852,8 +92048,6 @@ const int MACH_MSG_TYPE_PORT_SEND_ONCE = 18; const int MACH_MSG_TYPE_LAST = 22; -const int MACH_MSG_TYPE_POLYMORPHIC = 4294967295; - const int MACH_MSG_OPTION_NONE = 0; const int MACH_SEND_MSG = 1; @@ -91974,18 +92168,12 @@ const int MACH_SEND_INVALID_TRAILER = 268435473; const int MACH_SEND_INVALID_CONTEXT = 268435474; -const int MACH_SEND_INVALID_OPTIONS = 268435475; - const int MACH_SEND_INVALID_RT_OOL_SIZE = 268435477; const int MACH_SEND_NO_GRANT_DEST = 268435478; const int MACH_SEND_MSG_FILTERED = 268435479; -const int MACH_SEND_AUX_TOO_SMALL = 268435480; - -const int MACH_SEND_AUX_TOO_LARGE = 268435481; - const int MACH_RCV_IN_PROGRESS = 268451841; const int MACH_RCV_INVALID_NAME = 268451842; @@ -92020,8 +92208,6 @@ const int MACH_RCV_IN_PROGRESS_TIMED = 268451857; const int MACH_RCV_INVALID_REPLY = 268451858; -const int MACH_RCV_INVALID_ARGUMENTS = 268451859; - const int DISPATCH_MACH_SEND_DEAD = 1; const int DISPATCH_MEMORYPRESSURE_NORMAL = 1; @@ -92068,14 +92254,666 @@ const int DISPATCH_IO_STOP = 1; const int DISPATCH_IO_STRICT_INTERVAL = 1; +const int __COREFOUNDATION_CFSET__ = 1; + +const int __COREFOUNDATION_CFSTRINGENCODINGEXT__ = 1; + +const int __COREFOUNDATION_CFTREE__ = 1; + +const int __COREFOUNDATION_CFURLACCESS__ = 1; + +const int __COREFOUNDATION_CFUUID__ = 1; + +const int __COREFOUNDATION_CFUTILITIES__ = 1; + +const int __COREFOUNDATION_CFBUNDLE__ = 1; + +const int CPU_STATE_MAX = 4; + +const int CPU_STATE_USER = 0; + +const int CPU_STATE_SYSTEM = 1; + +const int CPU_STATE_IDLE = 2; + +const int CPU_STATE_NICE = 3; + +const int CPU_ARCH_MASK = 4278190080; + +const int CPU_ARCH_ABI64 = 16777216; + +const int CPU_ARCH_ABI64_32 = 33554432; + +const int CPU_SUBTYPE_MASK = 4278190080; + +const int CPU_SUBTYPE_LIB64 = 2147483648; + +const int CPU_SUBTYPE_PTRAUTH_ABI = 2147483648; + +const int CPU_SUBTYPE_INTEL_FAMILY_MAX = 15; + +const int CPU_SUBTYPE_INTEL_MODEL_ALL = 0; + +const int CPU_SUBTYPE_ARM64_PTR_AUTH_MASK = 251658240; + +const int CPUFAMILY_UNKNOWN = 0; + +const int CPUFAMILY_POWERPC_G3 = 3471054153; + +const int CPUFAMILY_POWERPC_G4 = 2009171118; + +const int CPUFAMILY_POWERPC_G5 = 3983988906; + +const int CPUFAMILY_INTEL_6_13 = 2855483691; + +const int CPUFAMILY_INTEL_PENRYN = 2028621756; + +const int CPUFAMILY_INTEL_NEHALEM = 1801080018; + +const int CPUFAMILY_INTEL_WESTMERE = 1463508716; + +const int CPUFAMILY_INTEL_SANDYBRIDGE = 1418770316; + +const int CPUFAMILY_INTEL_IVYBRIDGE = 526772277; + +const int CPUFAMILY_INTEL_HASWELL = 280134364; + +const int CPUFAMILY_INTEL_BROADWELL = 1479463068; + +const int CPUFAMILY_INTEL_SKYLAKE = 939270559; + +const int CPUFAMILY_INTEL_KABYLAKE = 260141638; + +const int CPUFAMILY_INTEL_ICELAKE = 943936839; + +const int CPUFAMILY_INTEL_COMETLAKE = 486055998; + +const int CPUFAMILY_ARM_9 = 3878847406; + +const int CPUFAMILY_ARM_11 = 2415272152; + +const int CPUFAMILY_ARM_XSCALE = 1404044789; + +const int CPUFAMILY_ARM_12 = 3172666089; + +const int CPUFAMILY_ARM_13 = 214503012; + +const int CPUFAMILY_ARM_14 = 2517073649; + +const int CPUFAMILY_ARM_15 = 2823887818; + +const int CPUFAMILY_ARM_SWIFT = 506291073; + +const int CPUFAMILY_ARM_CYCLONE = 933271106; + +const int CPUFAMILY_ARM_TYPHOON = 747742334; + +const int CPUFAMILY_ARM_TWISTER = 2465937352; + +const int CPUFAMILY_ARM_HURRICANE = 1741614739; + +const int CPUFAMILY_ARM_MONSOON_MISTRAL = 3894312694; + +const int CPUFAMILY_ARM_VORTEX_TEMPEST = 131287967; + +const int CPUFAMILY_ARM_LIGHTNING_THUNDER = 1176831186; + +const int CPUFAMILY_ARM_FIRESTORM_ICESTORM = 458787763; + +const int CPUFAMILY_ARM_BLIZZARD_AVALANCHE = 3660830781; + +const int CPUSUBFAMILY_UNKNOWN = 0; + +const int CPUSUBFAMILY_ARM_HP = 1; + +const int CPUSUBFAMILY_ARM_HG = 2; + +const int CPUSUBFAMILY_ARM_M = 3; + +const int CPUSUBFAMILY_ARM_HS = 4; + +const int CPUSUBFAMILY_ARM_HC_HD = 5; + +const int CPUFAMILY_INTEL_6_23 = 2028621756; + +const int CPUFAMILY_INTEL_6_26 = 1801080018; + +const int __COREFOUNDATION_CFMESSAGEPORT__ = 1; + +const int __COREFOUNDATION_CFPLUGIN__ = 1; + +const int COREFOUNDATION_CFPLUGINCOM_SEPARATE = 1; + +const int __COREFOUNDATION_CFMACHPORT__ = 1; + +const int __COREFOUNDATION_CFATTRIBUTEDSTRING__ = 1; + +const int __COREFOUNDATION_CFURLENUMERATOR__ = 1; + +const int __COREFOUNDATION_CFFILESECURITY__ = 1; + +const int KAUTH_GUID_SIZE = 16; + +const int KAUTH_NTSID_MAX_AUTHORITIES = 16; + +const int KAUTH_NTSID_HDRSIZE = 8; + +const int KAUTH_EXTLOOKUP_SUCCESS = 0; + +const int KAUTH_EXTLOOKUP_BADRQ = 1; + +const int KAUTH_EXTLOOKUP_FAILURE = 2; + +const int KAUTH_EXTLOOKUP_FATAL = 3; + +const int KAUTH_EXTLOOKUP_INPROG = 100; + +const int KAUTH_EXTLOOKUP_VALID_UID = 1; + +const int KAUTH_EXTLOOKUP_VALID_UGUID = 2; + +const int KAUTH_EXTLOOKUP_VALID_USID = 4; + +const int KAUTH_EXTLOOKUP_VALID_GID = 8; + +const int KAUTH_EXTLOOKUP_VALID_GGUID = 16; + +const int KAUTH_EXTLOOKUP_VALID_GSID = 32; + +const int KAUTH_EXTLOOKUP_WANT_UID = 64; + +const int KAUTH_EXTLOOKUP_WANT_UGUID = 128; + +const int KAUTH_EXTLOOKUP_WANT_USID = 256; + +const int KAUTH_EXTLOOKUP_WANT_GID = 512; + +const int KAUTH_EXTLOOKUP_WANT_GGUID = 1024; + +const int KAUTH_EXTLOOKUP_WANT_GSID = 2048; + +const int KAUTH_EXTLOOKUP_WANT_MEMBERSHIP = 4096; + +const int KAUTH_EXTLOOKUP_VALID_MEMBERSHIP = 8192; + +const int KAUTH_EXTLOOKUP_ISMEMBER = 16384; + +const int KAUTH_EXTLOOKUP_VALID_PWNAM = 32768; + +const int KAUTH_EXTLOOKUP_WANT_PWNAM = 65536; + +const int KAUTH_EXTLOOKUP_VALID_GRNAM = 131072; + +const int KAUTH_EXTLOOKUP_WANT_GRNAM = 262144; + +const int KAUTH_EXTLOOKUP_VALID_SUPGRPS = 524288; + +const int KAUTH_EXTLOOKUP_WANT_SUPGRPS = 1048576; + +const int KAUTH_EXTLOOKUP_REGISTER = 0; + +const int KAUTH_EXTLOOKUP_RESULT = 1; + +const int KAUTH_EXTLOOKUP_WORKER = 2; + +const int KAUTH_EXTLOOKUP_DEREGISTER = 4; + +const int KAUTH_GET_CACHE_SIZES = 8; + +const int KAUTH_SET_CACHE_SIZES = 16; + +const int KAUTH_CLEAR_CACHES = 32; + +const String IDENTITYSVC_ENTITLEMENT = 'com.apple.private.identitysvc'; + +const int KAUTH_ACE_KINDMASK = 15; + +const int KAUTH_ACE_PERMIT = 1; + +const int KAUTH_ACE_DENY = 2; + +const int KAUTH_ACE_AUDIT = 3; + +const int KAUTH_ACE_ALARM = 4; + +const int KAUTH_ACE_INHERITED = 16; + +const int KAUTH_ACE_FILE_INHERIT = 32; + +const int KAUTH_ACE_DIRECTORY_INHERIT = 64; + +const int KAUTH_ACE_LIMIT_INHERIT = 128; + +const int KAUTH_ACE_ONLY_INHERIT = 256; + +const int KAUTH_ACE_SUCCESS = 512; + +const int KAUTH_ACE_FAILURE = 1024; + +const int KAUTH_ACE_INHERIT_CONTROL_FLAGS = 480; + +const int KAUTH_ACE_GENERIC_ALL = 2097152; + +const int KAUTH_ACE_GENERIC_EXECUTE = 4194304; + +const int KAUTH_ACE_GENERIC_WRITE = 8388608; + +const int KAUTH_ACE_GENERIC_READ = 16777216; + +const int KAUTH_ACL_MAX_ENTRIES = 128; + +const int KAUTH_ACL_FLAGS_PRIVATE = 65535; + +const int KAUTH_ACL_DEFER_INHERIT = 65536; + +const int KAUTH_ACL_NO_INHERIT = 131072; + +const int KAUTH_FILESEC_MAGIC = 19710317; + +const int KAUTH_FILESEC_FLAGS_PRIVATE = 65535; + +const int KAUTH_FILESEC_DEFER_INHERIT = 65536; + +const int KAUTH_FILESEC_NO_INHERIT = 131072; + +const String KAUTH_FILESEC_XATTR = 'com.apple.system.Security'; + +const int KAUTH_ENDIAN_HOST = 1; + +const int KAUTH_ENDIAN_DISK = 2; + +const int KAUTH_VNODE_READ_DATA = 2; + +const int KAUTH_VNODE_LIST_DIRECTORY = 2; + +const int KAUTH_VNODE_WRITE_DATA = 4; + +const int KAUTH_VNODE_ADD_FILE = 4; + +const int KAUTH_VNODE_EXECUTE = 8; + +const int KAUTH_VNODE_SEARCH = 8; + +const int KAUTH_VNODE_DELETE = 16; + +const int KAUTH_VNODE_APPEND_DATA = 32; + +const int KAUTH_VNODE_ADD_SUBDIRECTORY = 32; + +const int KAUTH_VNODE_DELETE_CHILD = 64; + +const int KAUTH_VNODE_READ_ATTRIBUTES = 128; + +const int KAUTH_VNODE_WRITE_ATTRIBUTES = 256; + +const int KAUTH_VNODE_READ_EXTATTRIBUTES = 512; + +const int KAUTH_VNODE_WRITE_EXTATTRIBUTES = 1024; + +const int KAUTH_VNODE_READ_SECURITY = 2048; + +const int KAUTH_VNODE_WRITE_SECURITY = 4096; + +const int KAUTH_VNODE_TAKE_OWNERSHIP = 8192; + +const int KAUTH_VNODE_CHANGE_OWNER = 8192; + +const int KAUTH_VNODE_SYNCHRONIZE = 1048576; + +const int KAUTH_VNODE_LINKTARGET = 33554432; + +const int KAUTH_VNODE_CHECKIMMUTABLE = 67108864; + +const int KAUTH_VNODE_ACCESS = 2147483648; + +const int KAUTH_VNODE_NOIMMUTABLE = 1073741824; + +const int KAUTH_VNODE_SEARCHBYANYONE = 536870912; + +const int KAUTH_VNODE_GENERIC_READ_BITS = 2690; + +const int KAUTH_VNODE_GENERIC_WRITE_BITS = 5492; + +const int KAUTH_VNODE_GENERIC_EXECUTE_BITS = 8; + +const int KAUTH_VNODE_GENERIC_ALL_BITS = 8190; + +const int KAUTH_VNODE_WRITE_RIGHTS = 100676980; + +const int __DARWIN_ACL_READ_DATA = 2; + +const int __DARWIN_ACL_LIST_DIRECTORY = 2; + +const int __DARWIN_ACL_WRITE_DATA = 4; + +const int __DARWIN_ACL_ADD_FILE = 4; + +const int __DARWIN_ACL_EXECUTE = 8; + +const int __DARWIN_ACL_SEARCH = 8; + +const int __DARWIN_ACL_DELETE = 16; + +const int __DARWIN_ACL_APPEND_DATA = 32; + +const int __DARWIN_ACL_ADD_SUBDIRECTORY = 32; + +const int __DARWIN_ACL_DELETE_CHILD = 64; + +const int __DARWIN_ACL_READ_ATTRIBUTES = 128; + +const int __DARWIN_ACL_WRITE_ATTRIBUTES = 256; + +const int __DARWIN_ACL_READ_EXTATTRIBUTES = 512; + +const int __DARWIN_ACL_WRITE_EXTATTRIBUTES = 1024; + +const int __DARWIN_ACL_READ_SECURITY = 2048; + +const int __DARWIN_ACL_WRITE_SECURITY = 4096; + +const int __DARWIN_ACL_CHANGE_OWNER = 8192; + +const int __DARWIN_ACL_SYNCHRONIZE = 1048576; + +const int __DARWIN_ACL_EXTENDED_ALLOW = 1; + +const int __DARWIN_ACL_EXTENDED_DENY = 2; + +const int __DARWIN_ACL_ENTRY_INHERITED = 16; + +const int __DARWIN_ACL_ENTRY_FILE_INHERIT = 32; + +const int __DARWIN_ACL_ENTRY_DIRECTORY_INHERIT = 64; + +const int __DARWIN_ACL_ENTRY_LIMIT_INHERIT = 128; + +const int __DARWIN_ACL_ENTRY_ONLY_INHERIT = 256; + +const int __DARWIN_ACL_FLAG_NO_INHERIT = 131072; + +const int ACL_MAX_ENTRIES = 128; + +const int ACL_UNDEFINED_ID = 0; + +const int __COREFOUNDATION_CFSTRINGTOKENIZER__ = 1; + +const int __COREFOUNDATION_CFFILEDESCRIPTOR__ = 1; + +const int __COREFOUNDATION_CFUSERNOTIFICATION__ = 1; + +const int __COREFOUNDATION_CFXMLNODE__ = 1; + +const int __COREFOUNDATION_CFXMLPARSER__ = 1; + +const int _CSSMTYPE_H_ = 1; + +const int _CSSMCONFIG_H_ = 1; + +const int SEC_ASN1_TAG_MASK = 255; + +const int SEC_ASN1_TAGNUM_MASK = 31; + +const int SEC_ASN1_BOOLEAN = 1; + +const int SEC_ASN1_INTEGER = 2; + +const int SEC_ASN1_BIT_STRING = 3; + +const int SEC_ASN1_OCTET_STRING = 4; + +const int SEC_ASN1_NULL = 5; + +const int SEC_ASN1_OBJECT_ID = 6; + +const int SEC_ASN1_OBJECT_DESCRIPTOR = 7; + +const int SEC_ASN1_REAL = 9; + +const int SEC_ASN1_ENUMERATED = 10; + +const int SEC_ASN1_EMBEDDED_PDV = 11; + +const int SEC_ASN1_UTF8_STRING = 12; + +const int SEC_ASN1_SEQUENCE = 16; + +const int SEC_ASN1_SET = 17; + +const int SEC_ASN1_NUMERIC_STRING = 18; + +const int SEC_ASN1_PRINTABLE_STRING = 19; + +const int SEC_ASN1_T61_STRING = 20; + +const int SEC_ASN1_VIDEOTEX_STRING = 21; + +const int SEC_ASN1_IA5_STRING = 22; + +const int SEC_ASN1_UTC_TIME = 23; + +const int SEC_ASN1_GENERALIZED_TIME = 24; + +const int SEC_ASN1_GRAPHIC_STRING = 25; + +const int SEC_ASN1_VISIBLE_STRING = 26; + +const int SEC_ASN1_GENERAL_STRING = 27; + +const int SEC_ASN1_UNIVERSAL_STRING = 28; + +const int SEC_ASN1_BMP_STRING = 30; + +const int SEC_ASN1_HIGH_TAG_NUMBER = 31; + +const int SEC_ASN1_TELETEX_STRING = 20; + +const int SEC_ASN1_METHOD_MASK = 32; + +const int SEC_ASN1_PRIMITIVE = 0; + +const int SEC_ASN1_CONSTRUCTED = 32; + +const int SEC_ASN1_CLASS_MASK = 192; + +const int SEC_ASN1_UNIVERSAL = 0; + +const int SEC_ASN1_APPLICATION = 64; + +const int SEC_ASN1_CONTEXT_SPECIFIC = 128; + +const int SEC_ASN1_PRIVATE = 192; + +const int SEC_ASN1_OPTIONAL = 256; + +const int SEC_ASN1_EXPLICIT = 512; + +const int SEC_ASN1_ANY = 1024; + +const int SEC_ASN1_INLINE = 2048; + +const int SEC_ASN1_POINTER = 4096; + +const int SEC_ASN1_GROUP = 8192; + +const int SEC_ASN1_DYNAMIC = 16384; + +const int SEC_ASN1_SKIP = 32768; + +const int SEC_ASN1_INNER = 65536; + +const int SEC_ASN1_SAVE = 131072; + +const int SEC_ASN1_SKIP_REST = 524288; + +const int SEC_ASN1_CHOICE = 1048576; + +const int SEC_ASN1_SIGNED_INT = 8388608; + +const int SEC_ASN1_SEQUENCE_OF = 8208; + +const int SEC_ASN1_SET_OF = 8209; + +const int SEC_ASN1_ANY_CONTENTS = 66560; + +const int _CSSMAPPLE_H_ = 1; + +const int _CSSMERR_H_ = 1; + +const int _X509DEFS_H_ = 1; + +const int BER_TAG_UNKNOWN = 0; + +const int BER_TAG_BOOLEAN = 1; + +const int BER_TAG_INTEGER = 2; + +const int BER_TAG_BIT_STRING = 3; + +const int BER_TAG_OCTET_STRING = 4; + +const int BER_TAG_NULL = 5; + +const int BER_TAG_OID = 6; + +const int BER_TAG_OBJECT_DESCRIPTOR = 7; + +const int BER_TAG_EXTERNAL = 8; + +const int BER_TAG_REAL = 9; + +const int BER_TAG_ENUMERATED = 10; + +const int BER_TAG_PKIX_UTF8_STRING = 12; + +const int BER_TAG_SEQUENCE = 16; + +const int BER_TAG_SET = 17; + +const int BER_TAG_NUMERIC_STRING = 18; + +const int BER_TAG_PRINTABLE_STRING = 19; + +const int BER_TAG_T61_STRING = 20; + +const int BER_TAG_TELETEX_STRING = 20; + +const int BER_TAG_VIDEOTEX_STRING = 21; + +const int BER_TAG_IA5_STRING = 22; + +const int BER_TAG_UTC_TIME = 23; + +const int BER_TAG_GENERALIZED_TIME = 24; + +const int BER_TAG_GRAPHIC_STRING = 25; + +const int BER_TAG_ISO646_STRING = 26; + +const int BER_TAG_GENERAL_STRING = 27; + +const int BER_TAG_VISIBLE_STRING = 26; + +const int BER_TAG_PKIX_UNIVERSAL_STRING = 28; + +const int BER_TAG_PKIX_BMP_STRING = 30; + +const int CE_KU_DigitalSignature = 32768; + +const int CE_KU_NonRepudiation = 16384; + +const int CE_KU_KeyEncipherment = 8192; + +const int CE_KU_DataEncipherment = 4096; + +const int CE_KU_KeyAgreement = 2048; + +const int CE_KU_KeyCertSign = 1024; + +const int CE_KU_CRLSign = 512; + +const int CE_KU_EncipherOnly = 256; + +const int CE_KU_DecipherOnly = 128; + +const int CE_CR_Unspecified = 0; + +const int CE_CR_KeyCompromise = 1; + +const int CE_CR_CACompromise = 2; + +const int CE_CR_AffiliationChanged = 3; + +const int CE_CR_Superseded = 4; + +const int CE_CR_CessationOfOperation = 5; + +const int CE_CR_CertificateHold = 6; + +const int CE_CR_RemoveFromCRL = 8; + +const int CE_CD_Unspecified = 128; + +const int CE_CD_KeyCompromise = 64; + +const int CE_CD_CACompromise = 32; + +const int CE_CD_AffiliationChanged = 16; + +const int CE_CD_Superseded = 8; + +const int CE_CD_CessationOfOperation = 4; + +const int CE_CD_CertificateHold = 2; + +const int CSSM_APPLE_TP_SSL_OPTS_VERSION = 1; + +const int CSSM_APPLE_TP_SSL_CLIENT = 1; + +const int CSSM_APPLE_TP_CRL_OPTS_VERSION = 0; + +const int CSSM_APPLE_TP_SMIME_OPTS_VERSION = 0; + +const int CSSM_APPLE_TP_ACTION_VERSION = 0; + +const int CSSM_TP_APPLE_EVIDENCE_VERSION = 0; + +const int CSSM_EVIDENCE_FORM_APPLE_CUSTOM = 2147483648; + +const String CSSM_APPLE_CRL_END_OF_TIME = '99991231235959'; + +const String kKeychainSuffix = '.keychain'; + +const String kKeychainDbSuffix = '.keychain-db'; + +const String kSystemKeychainName = 'System.keychain'; + +const String kSystemKeychainDir = '/Library/Keychains/'; + +const String kSystemUnlockFile = '/var/db/SystemKey'; + +const String kSystemKeychainPath = '/Library/Keychains/System.keychain'; + +const String CSSM_APPLE_ACL_TAG_PARTITION_ID = '___PARTITION___'; + +const String CSSM_APPLE_ACL_TAG_INTEGRITY = '___INTEGRITY___'; + +const int errSecErrnoBase = 100000; + +const int errSecErrnoLimit = 100255; + +const int SEC_PROTOCOL_CERT_COMPRESSION_DEFAULT = 1; + +const int NSMaximumStringLength = 2147483646; + +const int NS_UNICHAR_IS_EIGHT_BIT = 0; + const int NSURLResponseUnknownLength = -1; const int DART_FLAGS_CURRENT_VERSION = 12; const int DART_INITIALIZE_PARAMS_CURRENT_VERSION = 4; -const int ILLEGAL_PORT = 0; - const String DART_KERNEL_ISOLATE_NAME = 'kernel-service'; const String DART_VM_SERVICE_ISOLATE_NAME = 'vm-service'; diff --git a/pkgs/cupertino_http/macos/Classes/CUPHTTPCompletionHelper.m b/pkgs/cupertino_http/macos/Classes/CUPHTTPCompletionHelper.m deleted file mode 100644 index b05d1fc717..0000000000 --- a/pkgs/cupertino_http/macos/Classes/CUPHTTPCompletionHelper.m +++ /dev/null @@ -1 +0,0 @@ -#include "../../src/CUPHTTPCompletionHelper.m" diff --git a/pkgs/cupertino_http/src/CUPHTTPClientDelegate.m b/pkgs/cupertino_http/src/CUPHTTPClientDelegate.m index e04d3f3a8c..a1eff15f9a 100644 --- a/pkgs/cupertino_http/src/CUPHTTPClientDelegate.m +++ b/pkgs/cupertino_http/src/CUPHTTPClientDelegate.m @@ -7,9 +7,15 @@ #import #include -#import "CUPHTTPCompletionHelper.h" #import "CUPHTTPForwardedDelegate.h" +static Dart_CObject NSObjectToCObject(NSObject* n) { + Dart_CObject cobj; + cobj.type = Dart_CObject_kInt64; + cobj.value.as_int64 = (int64_t) n; + return cobj; +} + static Dart_CObject MessageTypeToCObject(MessageType messageType) { Dart_CObject cobj; cobj.type = Dart_CObject_kInt64; diff --git a/pkgs/cupertino_http/src/CUPHTTPCompletionHelper.h b/pkgs/cupertino_http/src/CUPHTTPCompletionHelper.h deleted file mode 100644 index 501b80b1fc..0000000000 --- a/pkgs/cupertino_http/src/CUPHTTPCompletionHelper.h +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2023, 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. - -// Normally, we'd "import " -// but that would mean that ffigen would process every file in the Foundation -// framework, which is huge. So just import the headers that we need. -#import -#import - -#include "dart-sdk/include/dart_api_dl.h" - -/** - * Creates a `Dart_CObject` containing the given `NSObject` pointer as an int. - */ -Dart_CObject NSObjectToCObject(NSObject* n); - -/** - * Executes [NSURLSessionWebSocketTask sendMessage:completionHandler:] and - * sends the results of the completion handler to the given `Dart_Port`. - */ -extern void CUPHTTPSendMessage(NSURLSessionWebSocketTask *task, - NSURLSessionWebSocketMessage *message, - Dart_Port sendPort); - -/** - * Executes [NSURLSessionWebSocketTask receiveMessageWithCompletionHandler:] - * and sends the results of the completion handler to the given `Dart_Port`. - */ -extern void CUPHTTPReceiveMessage(NSURLSessionWebSocketTask *task, - Dart_Port sendPort); diff --git a/pkgs/cupertino_http/src/CUPHTTPCompletionHelper.m b/pkgs/cupertino_http/src/CUPHTTPCompletionHelper.m deleted file mode 100644 index 9f8137d395..0000000000 --- a/pkgs/cupertino_http/src/CUPHTTPCompletionHelper.m +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2023, 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 "CUPHTTPCompletionHelper.h" - -#import -#include - -Dart_CObject NSObjectToCObject(NSObject* n) { - Dart_CObject cobj; - cobj.type = Dart_CObject_kInt64; - cobj.value.as_int64 = (int64_t) n; - return cobj; -} - -void CUPHTTPSendMessage(NSURLSessionWebSocketTask *task, NSURLSessionWebSocketMessage *message, Dart_Port sendPort) { - [task sendMessage: message - completionHandler: ^(NSError *error) { - [error retain]; - Dart_CObject message_cobj = NSObjectToCObject(error); - const bool success = Dart_PostCObject_DL(sendPort, &message_cobj); - NSCAssert(success, @"Dart_PostCObject_DL failed."); - }]; -} - -void CUPHTTPReceiveMessage(NSURLSessionWebSocketTask *task, Dart_Port sendPort) { - [task - receiveMessageWithCompletionHandler: ^(NSURLSessionWebSocketMessage *message, NSError *error) { - [message retain]; - [error retain]; - - Dart_CObject cmessage = NSObjectToCObject(message); - Dart_CObject cerror = NSObjectToCObject(error); - Dart_CObject* message_carray[] = { &cmessage, &cerror }; - - Dart_CObject message_cobj; - message_cobj.type = Dart_CObject_kArray; - message_cobj.value.as_array.length = 2; - message_cobj.value.as_array.values = message_carray; - - const bool success = Dart_PostCObject_DL(sendPort, &message_cobj); - NSCAssert(success, @"Dart_PostCObject_DL failed."); - }]; -}