| // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| // Bindings for package:objective_c's ObjC code and the Foundation framework. |
| // Regenerate bindings with `dart run tool/generate_code.dart`. |
| |
| // coverage:ignore-file |
| |
| // AUTO GENERATED FILE, DO NOT EDIT. |
| // |
| // Generated by `package:ffigen`. |
| // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package |
| @ffi.DefaultAsset('package:objective_c/objective_c.dylib') |
| library; |
| |
| import 'dart:ffi' as ffi; |
| import '../objective_c.dart' as objc; |
| import 'package:ffi/ffi.dart' as pkg_ffi; |
| |
| const _$objcVersionCheck = objc.ObjCVersionCheck(9, 6); |
| @ffi.Native< |
| NSUInteger Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| NSUInteger, |
| ) |
| >() |
| external int _1wx624s_protocolTrampoline_17ap02x( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSFastEnumerationState> arg1, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> arg2, |
| int arg3, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| >() |
| external ffi.Pointer<objc.ObjCObjectImpl> _1wx624s_protocolTrampoline_18nsem0( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSZone> arg1, |
| ); |
| |
| @ffi.Native< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >() |
| external void _1wx624s_protocolTrampoline_18v1jvf( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<NSZone> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >() |
| external ffi.Pointer<NSZone> _1wx624s_protocolTrampoline_1a8cl66( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ); |
| |
| @ffi.Native< |
| NSUInteger Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Void>) |
| >() |
| external int _1wx624s_protocolTrampoline_1ckyi24( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ); |
| |
| @ffi.Native< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >() |
| external int _1wx624s_protocolTrampoline_1ldqghh( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >() |
| external ffi.Pointer<objc.ObjCObjectImpl> _1wx624s_protocolTrampoline_1mbt9g9( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >() |
| external ffi.Pointer<objc.ObjCObjectImpl> _1wx624s_protocolTrampoline_1mllhpc( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >() |
| external ffi.Pointer<objc.ObjCObjectImpl> _1wx624s_protocolTrampoline_1q0i84( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, |
| ); |
| |
| @ffi.Native< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >() |
| external void _1wx624s_protocolTrampoline_1sr3ozv( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ffi.Pointer<ffi.Void> arg4, |
| ); |
| |
| @ffi.Native< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >() |
| external bool _1wx624s_protocolTrampoline_3su7tt( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >() |
| external ffi.Pointer<objc.ObjCObjectImpl> _1wx624s_protocolTrampoline_50as9u( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >() |
| external ffi.Pointer<objc.ObjCObjectImpl> _1wx624s_protocolTrampoline_c7gk2u( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ); |
| |
| @ffi.Native< |
| ffi.Bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Void>) |
| >() |
| external bool _1wx624s_protocolTrampoline_e3qsqz( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ); |
| |
| @ffi.Native< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ) |
| >() |
| external void _1wx624s_protocolTrampoline_hoampi( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| int arg2, |
| ); |
| |
| @ffi.Native< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Void>) |
| >() |
| external void _1wx624s_protocolTrampoline_ovsamd( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ); |
| |
| @ffi.Native< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >() |
| external bool _1wx624s_protocolTrampoline_w1e3k0( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ); |
| |
| @ffi.Native< |
| instancetype Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >() |
| external instancetype _1wx624s_protocolTrampoline_xr62hr( |
| ffi.Pointer<objc.ObjCObjectImpl> target, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_18v1jvf( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_1a22wz( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_1b3bb6a( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_1o83rbn( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_1p9ui4q( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_1pl9qdv( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_1q8ia8l( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_1sr3ozv( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_hoampi( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_lmc3p5( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_ovsamd( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_pfv6jd( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_q5jeyk( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_rnu2c5( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_t8l8el( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_vhbh5h( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_xtuoz7( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_zkjmn1( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapBlockingBlock_zuf90e( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_18v1jvf( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_1a22wz( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_1b3bb6a( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_1o83rbn( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_1p9ui4q( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_1pl9qdv( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_1q8ia8l( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_1sr3ozv( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_hoampi( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_lmc3p5( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_ovsamd( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_pfv6jd( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_q5jeyk( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_rnu2c5( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_t8l8el( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_vhbh5h( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_xtuoz7( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_zkjmn1( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _1wx624s_wrapListenerBlock_zuf90e( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| @ffi.Packed(2) |
| final class AEDesc extends ffi.Struct { |
| @ffi.UnsignedInt() |
| external int descriptorType; |
| |
| external ffi.Pointer<ffi.Pointer<OpaqueAEDataStorageType>> dataHandle; |
| |
| static ffi.Pointer<AEDesc> $allocate( |
| ffi.Allocator $allocator, { |
| required int descriptorType, |
| required ffi.Pointer<ffi.Pointer<OpaqueAEDataStorageType>> dataHandle, |
| }) => $allocator<AEDesc>() |
| ..ref.descriptorType = descriptorType |
| ..ref.dataHandle = dataHandle; |
| } |
| |
| final class CFRunLoop extends ffi.Opaque {} |
| |
| final class CFString extends ffi.Opaque {} |
| |
| typedef CFStringRef = ffi.Pointer<CFString>; |
| |
| final class CGPoint extends ffi.Struct { |
| @ffi.Double() |
| external double x; |
| |
| @ffi.Double() |
| external double y; |
| |
| static ffi.Pointer<CGPoint> $allocate( |
| ffi.Allocator $allocator, { |
| required double x, |
| required double y, |
| }) => $allocator<CGPoint>() |
| ..ref.x = x |
| ..ref.y = y; |
| } |
| |
| final class CGRect extends ffi.Struct { |
| external CGPoint origin; |
| |
| external CGSize size; |
| } |
| |
| final class CGSize extends ffi.Struct { |
| @ffi.Double() |
| external double width; |
| |
| @ffi.Double() |
| external double height; |
| |
| static ffi.Pointer<CGSize> $allocate( |
| ffi.Allocator $allocator, { |
| required double width, |
| required double height, |
| }) => $allocator<CGSize>() |
| ..ref.width = width |
| ..ref.height = height; |
| } |
| |
| /// Represents a single KVO observation. Each observation creates a new |
| /// DOBJCObservation, even for the same observer, observed object, and keyPath. |
| extension type DOBJCObservation._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [DOBJCObservation] that points to the same underlying object as [other]. |
| DOBJCObservation.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [DOBJCObservation] that wraps the given raw object pointer. |
| DOBJCObservation.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [DOBJCObservation]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_DOBJCObservation, |
| ); |
| |
| /// alloc |
| static DOBJCObservation alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_DOBJCObservation, _sel_alloc); |
| return DOBJCObservation.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static DOBJCObservation allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_DOBJCObservation, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return DOBJCObservation.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static DOBJCObservation new$() { |
| final $ret = _objc_msgSend_151sglz(_class_DOBJCObservation, _sel_new); |
| return DOBJCObservation.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of DOBJCObservation constructed with the default `new` method. |
| DOBJCObservation() : this.as(new$().object$); |
| } |
| |
| extension DOBJCObservation$Methods on DOBJCObservation { |
| /// dealloc |
| void dealloc() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_dealloc); |
| } |
| |
| /// debugObserver |
| ffi.Pointer<ffi.Void> debugObserver() { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_debugObserver); |
| } |
| |
| /// init |
| DOBJCObservation init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'DOBJCObservation.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return DOBJCObservation.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initForKeyPath:ofObject:withObserver:options:context: |
| DOBJCObservation initForKeyPath( |
| NSString keyPath, { |
| required objc.ObjCObject ofObject, |
| required Observer withObserver, |
| required DartNSUInteger options, |
| required ffi.Pointer<ffi.Void> context, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = keyPath.ref; |
| final _$$ref$2 = ofObject.ref; |
| final _$$ref$3 = withObserver.ref; |
| final $ret = _objc_msgSend_1jiinfj( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initForKeyPath_ofObject_withObserver_options_context_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| _$$ref$3.pointer, |
| options, |
| context, |
| ); |
| return DOBJCObservation.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// remove |
| void remove() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_remove); |
| } |
| } |
| |
| /// Helper class to adapt a Dart stream into a `NSInputStream`. |
| extension type DartInputStreamAdapter._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSInputStream, NSStreamDelegate { |
| /// Constructs a [DartInputStreamAdapter] that points to the same underlying object as [other]. |
| DartInputStreamAdapter.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [DartInputStreamAdapter] that wraps the given raw object pointer. |
| DartInputStreamAdapter.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [DartInputStreamAdapter]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_DartInputStreamAdapter, |
| ); |
| |
| /// alloc |
| static DartInputStreamAdapter alloc() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_DartInputStreamAdapter, |
| _sel_alloc, |
| ); |
| return DartInputStreamAdapter.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// allocWithZone: |
| static DartInputStreamAdapter allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_DartInputStreamAdapter, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return DartInputStreamAdapter.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// inputStreamWithData: |
| static DartInputStreamAdapter? inputStreamWithData(NSData data) { |
| final _$$ref = data.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_DartInputStreamAdapter, |
| _sel_inputStreamWithData_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : DartInputStreamAdapter.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// inputStreamWithFileAtPath: |
| static DartInputStreamAdapter? inputStreamWithFileAtPath(NSString path) { |
| final _$$ref = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_DartInputStreamAdapter, |
| _sel_inputStreamWithFileAtPath_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : DartInputStreamAdapter.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// Creates the adapter. |
| /// @param sendPort A port to that is will receive two types of messages: |
| /// -1 => The `NSInputStream` has been closed and the port can be closed. |
| /// _ => The number of types being required in a `read:maxLength` call. |
| static DartInputStreamAdapter inputStreamWithPort(int sendPort) { |
| final $ret = _objc_msgSend_1ya1kjn( |
| _class_DartInputStreamAdapter, |
| _sel_inputStreamWithPort_, |
| sendPort, |
| ); |
| return DartInputStreamAdapter.fromPointer( |
| $ret, |
| retain: true, |
| release: true, |
| ); |
| } |
| |
| /// inputStreamWithURL: |
| static DartInputStreamAdapter? inputStreamWithURL(NSURL url) { |
| final _$$ref = url.ref; |
| objc.checkOsVersionInternal( |
| 'DOBJCDartInputStreamAdapter.inputStreamWithURL:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_DartInputStreamAdapter, |
| _sel_inputStreamWithURL_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : DartInputStreamAdapter.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static DartInputStreamAdapter new$() { |
| final $ret = _objc_msgSend_151sglz(_class_DartInputStreamAdapter, _sel_new); |
| return DartInputStreamAdapter.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Returns a new instance of DartInputStreamAdapter constructed with the default `new` method. |
| DartInputStreamAdapter() : this.as(new$().object$); |
| } |
| |
| extension DartInputStreamAdapter$Methods on DartInputStreamAdapter { |
| /// addData: |
| DartNSUInteger addData(NSData data) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = data.ref; |
| return _objc_msgSend_1vd1c5m( |
| _$$ref.pointer, |
| _sel_addData_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// init |
| DartInputStreamAdapter init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'DOBJCDartInputStreamAdapter.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return DartInputStreamAdapter.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// initWithData: |
| DartInputStreamAdapter initWithData(NSData data) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = data.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithData_, |
| _$$ref$1.pointer, |
| ); |
| return DartInputStreamAdapter.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// initWithFileAtPath: |
| DartInputStreamAdapter? initWithFileAtPath(NSString path) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithFileAtPath_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : DartInputStreamAdapter.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// initWithURL: |
| DartInputStreamAdapter? initWithURL(NSURL url) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| objc.checkOsVersionInternal( |
| 'DOBJCDartInputStreamAdapter.initWithURL:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithURL_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : DartInputStreamAdapter.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// setDone |
| void setDone() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_setDone); |
| } |
| |
| /// setError: |
| void setError(NSError error) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = error.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setError_, _$$ref$1.pointer); |
| } |
| |
| /// stream:handleEvent: |
| void stream(NSStream aStream, {required DartNSUInteger handleEvent}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aStream.ref; |
| if (!objc.respondsToSelector(_$$ref.pointer, _sel_stream_handleEvent_)) { |
| throw objc.UnimplementedOptionalMethodException( |
| 'DOBJCDartInputStreamAdapter', |
| 'stream:handleEvent:', |
| ); |
| } |
| _objc_msgSend_3l8zum( |
| _$$ref.pointer, |
| _sel_stream_handleEvent_, |
| _$$ref$1.pointer, |
| handleEvent, |
| ); |
| } |
| } |
| |
| /// Helper class that contains a weak reference to a `DOBJCDartInputStreamAdapter`. |
| extension type DartInputStreamAdapterWeakHolder._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [DartInputStreamAdapterWeakHolder] that points to the same underlying object as [other]. |
| DartInputStreamAdapterWeakHolder.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [DartInputStreamAdapterWeakHolder] that wraps the given raw object pointer. |
| DartInputStreamAdapterWeakHolder.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [DartInputStreamAdapterWeakHolder]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_DartInputStreamAdapterWeakHolder, |
| ); |
| |
| /// alloc |
| static DartInputStreamAdapterWeakHolder alloc() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_DartInputStreamAdapterWeakHolder, |
| _sel_alloc, |
| ); |
| return DartInputStreamAdapterWeakHolder.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// allocWithZone: |
| static DartInputStreamAdapterWeakHolder allocWithZone( |
| ffi.Pointer<NSZone> zone, |
| ) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_DartInputStreamAdapterWeakHolder, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return DartInputStreamAdapterWeakHolder.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// holderWithInputStreamAdapter: |
| static DartInputStreamAdapterWeakHolder holderWithInputStreamAdapter( |
| DartInputStreamAdapter adapter, |
| ) { |
| final _$$ref = adapter.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_DartInputStreamAdapterWeakHolder, |
| _sel_holderWithInputStreamAdapter_, |
| _$$ref.pointer, |
| ); |
| return DartInputStreamAdapterWeakHolder.fromPointer( |
| $ret, |
| retain: true, |
| release: true, |
| ); |
| } |
| |
| /// new |
| static DartInputStreamAdapterWeakHolder new$() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_DartInputStreamAdapterWeakHolder, |
| _sel_new, |
| ); |
| return DartInputStreamAdapterWeakHolder.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Returns a new instance of DartInputStreamAdapterWeakHolder constructed with the default `new` method. |
| DartInputStreamAdapterWeakHolder() : this.as(new$().object$); |
| } |
| |
| extension DartInputStreamAdapterWeakHolder$Methods |
| on DartInputStreamAdapterWeakHolder { |
| /// adapter |
| DartInputStreamAdapter get adapter { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_adapter); |
| return DartInputStreamAdapter.fromPointer( |
| $ret, |
| retain: true, |
| release: true, |
| ); |
| } |
| |
| /// init |
| DartInputStreamAdapterWeakHolder init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'DOBJCDartInputStreamAdapterWeakHolder.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return DartInputStreamAdapterWeakHolder.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Base class of all classes DOBJCDartProtocolBuilder creates. |
| extension type DartProtocol._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [DartProtocol] that points to the same underlying object as [other]. |
| DartProtocol.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [DartProtocol] that wraps the given raw object pointer. |
| DartProtocol.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [DartProtocol]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_DartProtocol, |
| ); |
| |
| /// alloc |
| static DartProtocol alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_DartProtocol, _sel_alloc); |
| return DartProtocol.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static DartProtocol allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_DartProtocol, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return DartProtocol.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static DartProtocol new$() { |
| final $ret = _objc_msgSend_151sglz(_class_DartProtocol, _sel_new); |
| return DartProtocol.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of DartProtocol constructed with the default `new` method. |
| DartProtocol() : this.as(new$().object$); |
| } |
| |
| extension DartProtocol$Methods on DartProtocol { |
| /// dealloc |
| void dealloc() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_dealloc); |
| } |
| |
| /// getDOBJCDartProtocolMethodForSelector: |
| objc.ObjCObject getDOBJCDartProtocolMethodForSelector( |
| ffi.Pointer<objc.ObjCSelector> sel, |
| ) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_3ctkt6( |
| _$$ref.pointer, |
| _sel_getDOBJCDartProtocolMethodForSelector_, |
| sel, |
| ); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// init |
| DartProtocol init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'DOBJCDartProtocol.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return DartProtocol.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initDOBJCDartProtocolFromDartProtocolBuilder:withDisposePort: |
| DartProtocol initDOBJCDartProtocolFromDartProtocolBuilder( |
| DartProtocolBuilder builder, { |
| required int withDisposePort, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = builder.ref; |
| final $ret = _objc_msgSend_dbvvll( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initDOBJCDartProtocolFromDartProtocolBuilder_withDisposePort_, |
| _$$ref$1.pointer, |
| withDisposePort, |
| ); |
| return DartProtocol.fromPointer($ret, retain: false, release: true); |
| } |
| } |
| |
| /// Used by the Dart ObjCProtocolBuilder to construct ObjC classes at runtime to |
| /// implement protocols. |
| extension type DartProtocolBuilder._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [DartProtocolBuilder] that points to the same underlying object as [other]. |
| DartProtocolBuilder.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [DartProtocolBuilder] that wraps the given raw object pointer. |
| DartProtocolBuilder.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [DartProtocolBuilder]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_DartProtocolBuilder, |
| ); |
| |
| /// alloc |
| static DartProtocolBuilder alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_DartProtocolBuilder, _sel_alloc); |
| return DartProtocolBuilder.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static DartProtocolBuilder allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_DartProtocolBuilder, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return DartProtocolBuilder.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static DartProtocolBuilder new$() { |
| final $ret = _objc_msgSend_151sglz(_class_DartProtocolBuilder, _sel_new); |
| return DartProtocolBuilder.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of DartProtocolBuilder constructed with the default `new` method. |
| DartProtocolBuilder() : this.as(new$().object$); |
| } |
| |
| extension DartProtocolBuilder$Methods on DartProtocolBuilder { |
| /// addProtocol: |
| void addProtocol(Protocol protocol) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = protocol.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_addProtocol_, _$$ref$1.pointer); |
| } |
| |
| /// buildInstance: |
| DartProtocol buildInstance(int port) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1ya1kjn( |
| _$$ref.pointer, |
| _sel_buildInstance_, |
| port, |
| ); |
| return DartProtocol.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// implementMethod:withBlock:withTrampoline:withSignature: |
| void implementMethod( |
| ffi.Pointer<objc.ObjCSelector> sel, { |
| required ffi.Pointer<ffi.Void> withBlock, |
| required ffi.Pointer<ffi.Void> withTrampoline, |
| required ffi.Pointer<ffi.Char> withSignature, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1s2gdyk( |
| _$$ref.pointer, |
| _sel_implementMethod_withBlock_withTrampoline_withSignature_, |
| sel, |
| withBlock, |
| withTrampoline, |
| withSignature, |
| ); |
| } |
| |
| /// init |
| DartProtocolBuilder init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'DOBJCDartProtocolBuilder.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return DartProtocolBuilder.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithClassName: |
| DartProtocolBuilder initWithClassName(ffi.Pointer<ffi.Char> name) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_56zxyn( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithClassName_, |
| name, |
| ); |
| return DartProtocolBuilder.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// registerClass |
| void registerClass() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_registerClass); |
| } |
| } |
| |
| /// iOS: unavailable |
| /// macOS: introduced 10.11.0 |
| sealed class NSAppleEventSendOptions { |
| static const NSAppleEventSendNoReply = 1; |
| static const NSAppleEventSendQueueReply = 2; |
| static const NSAppleEventSendWaitForReply = 3; |
| static const NSAppleEventSendNeverInteract = 16; |
| static const NSAppleEventSendCanInteract = 32; |
| static const NSAppleEventSendAlwaysInteract = 48; |
| static const NSAppleEventSendCanSwitchLayer = 64; |
| static const NSAppleEventSendDontRecord = 4096; |
| static const NSAppleEventSendDontExecute = 8192; |
| static const NSAppleEventSendDontAnnotate = 65536; |
| static const NSAppleEventSendDefaultOptions = 35; |
| } |
| |
| /// NSArray |
| extension type NSArray._(objc.ObjCObject object$) |
| implements |
| objc.ObjCObject, |
| NSObject, |
| NSCopying, |
| NSMutableCopying, |
| NSSecureCoding, |
| NSFastEnumeration { |
| /// Creates a [NSArray] of the given length with [fill] at each position. |
| /// |
| /// The [length] must be a non-negative integer. |
| static NSArray filled(int length, objc.ObjCObject fill) => |
| NSMutableArray.filled(length, fill); |
| |
| /// Creates a [NSArray] from [elements]. |
| static NSArray of(Iterable<objc.ObjCObject> elements) => |
| NSMutableArray.of(elements); |
| |
| /// Constructs a [NSArray] that points to the same underlying object as [other]. |
| NSArray.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSArray] that wraps the given raw object pointer. |
| NSArray.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSArray]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSArray, |
| ); |
| |
| /// alloc |
| static NSArray alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSArray, _sel_alloc); |
| return NSArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSArray allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSArray, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// array |
| static NSArray array() { |
| final $ret = _objc_msgSend_151sglz(_class_NSArray, _sel_array); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// arrayWithArray: |
| static NSArray arrayWithArray(NSArray array) { |
| final _$$ref = array.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSArray, |
| _sel_arrayWithArray_, |
| _$$ref.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// arrayWithObject: |
| static NSArray arrayWithObject(objc.ObjCObject anObject) { |
| final _$$ref = anObject.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSArray, |
| _sel_arrayWithObject_, |
| _$$ref.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// arrayWithObjects: |
| static NSArray arrayWithObjects(objc.ObjCObject firstObj) { |
| final _$$ref = firstObj.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSArray, |
| _sel_arrayWithObjects_, |
| _$$ref.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// arrayWithObjects:count: |
| static NSArray arrayWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required DartNSUInteger count, |
| }) { |
| final $ret = _objc_msgSend_zmbtbd( |
| _class_NSArray, |
| _sel_arrayWithObjects_count_, |
| objects, |
| count, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSArray new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSArray, _sel_new); |
| return NSArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSArray, _sel_supportsSecureCoding); |
| } |
| |
| /// Returns a new instance of NSArray constructed with the default `new` method. |
| NSArray() : this.as(new$().object$); |
| } |
| |
| extension NSArray$Methods on NSArray { |
| /// count |
| DartNSUInteger get count { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_count); |
| } |
| |
| /// countByEnumeratingWithState:objects:count: |
| DartNSUInteger countByEnumeratingWithState( |
| ffi.Pointer<NSFastEnumerationState> state, { |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1b5ysjl( |
| _$$ref.pointer, |
| _sel_countByEnumeratingWithState_objects_count_, |
| state, |
| objects, |
| count, |
| ); |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// init |
| NSArray init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithArray: |
| NSArray initWithArray(NSArray array) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = array.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithArray_, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithArray:copyItems: |
| NSArray initWithArray$1(NSArray array, {required bool copyItems}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = array.ref; |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithArray_copyItems_, |
| _$$ref$1.pointer, |
| copyItems, |
| ); |
| return NSArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSArray? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects: |
| NSArray initWithObjects(objc.ObjCObject firstObj) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = firstObj.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects:count: |
| NSArray initWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_zmbtbd( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_count_, |
| objects, |
| count, |
| ); |
| return NSArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// objectAtIndex: |
| objc.ObjCObject objectAtIndex(DartNSUInteger index) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.pointer, |
| _sel_objectAtIndex_, |
| index, |
| ); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSArrayCreation |
| extension NSArrayCreation on NSArray { |
| /// initWithContentsOfURL:error: |
| NSArray? initWithContentsOfURL(NSURL url) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.initWithContentsOfURL:error:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1lhpu4m( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfURL_error_, |
| _$$ref$1.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSArray.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// arrayWithContentsOfURL:error: |
| static NSArray? arrayWithContentsOfURL(NSURL url) { |
| final _$$ref = url.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.arrayWithContentsOfURL:error:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1lhpu4m( |
| _class_NSArray, |
| _sel_arrayWithContentsOfURL_error_, |
| _$$ref.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSArray.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| } |
| |
| /// NSAttributedString |
| extension type NSAttributedString._(objc.ObjCObject object$) |
| implements |
| objc.ObjCObject, |
| NSObject, |
| NSCopying, |
| NSMutableCopying, |
| NSSecureCoding { |
| /// Constructs a [NSAttributedString] that points to the same underlying object as [other]. |
| NSAttributedString.as(objc.ObjCObject other) : object$ = other { |
| objc.checkOsVersionInternal( |
| 'NSAttributedString', |
| iOS: (false, (3, 2, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSAttributedString] that wraps the given raw object pointer. |
| NSAttributedString.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| objc.checkOsVersionInternal( |
| 'NSAttributedString', |
| iOS: (false, (3, 2, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSAttributedString]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSAttributedString, |
| ); |
| |
| /// alloc |
| static NSAttributedString alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSAttributedString, _sel_alloc); |
| return NSAttributedString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSAttributedString allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSAttributedString, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSAttributedString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// localizedAttributedStringWithFormat: |
| /// |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| static NSAttributedString localizedAttributedStringWithFormat( |
| NSAttributedString format, |
| ) { |
| final _$$ref = format.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.localizedAttributedStringWithFormat:', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSAttributedString, |
| _sel_localizedAttributedStringWithFormat_, |
| _$$ref.pointer, |
| ); |
| return NSAttributedString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedAttributedStringWithFormat:context: |
| /// |
| /// iOS: introduced 17.0.0 |
| /// macOS: introduced 14.0.0 |
| static NSAttributedString localizedAttributedStringWithFormat$1( |
| NSAttributedString format, { |
| required NSDictionary context, |
| }) { |
| final _$$ref = format.ref; |
| final _$$ref$1 = context.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.localizedAttributedStringWithFormat:context:', |
| iOS: (false, (17, 0, 0)), |
| macOS: (false, (14, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _class_NSAttributedString, |
| _sel_localizedAttributedStringWithFormat_context_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| ); |
| return NSAttributedString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedAttributedStringWithFormat:options: |
| /// |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| static NSAttributedString localizedAttributedStringWithFormat$2( |
| NSAttributedString format, { |
| required DartNSUInteger options, |
| }) { |
| final _$$ref = format.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.localizedAttributedStringWithFormat:options:', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_s058d2( |
| _class_NSAttributedString, |
| _sel_localizedAttributedStringWithFormat_options_, |
| _$$ref.pointer, |
| options, |
| ); |
| return NSAttributedString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedAttributedStringWithFormat:options:context: |
| /// |
| /// iOS: introduced 17.0.0 |
| /// macOS: introduced 14.0.0 |
| static NSAttributedString localizedAttributedStringWithFormat$3( |
| NSAttributedString format, { |
| required DartNSUInteger options, |
| required NSDictionary context, |
| }) { |
| final _$$ref = format.ref; |
| final _$$ref$1 = context.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.localizedAttributedStringWithFormat:options:context:', |
| iOS: (false, (17, 0, 0)), |
| macOS: (false, (14, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_187k8ck( |
| _class_NSAttributedString, |
| _sel_localizedAttributedStringWithFormat_options_context_, |
| _$$ref.pointer, |
| options, |
| _$$ref$1.pointer, |
| ); |
| return NSAttributedString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSAttributedString new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSAttributedString, _sel_new); |
| return NSAttributedString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635( |
| _class_NSAttributedString, |
| _sel_supportsSecureCoding, |
| ); |
| } |
| |
| /// Returns a new instance of NSAttributedString constructed with the default `new` method. |
| NSAttributedString() : this.as(new$().object$); |
| } |
| |
| extension NSAttributedString$Methods on NSAttributedString { |
| /// attributesAtIndex:effectiveRange: |
| NSDictionary attributesAtIndex( |
| DartNSUInteger location, { |
| required ffi.Pointer<NSRange> effectiveRange, |
| }) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.attributesAtIndex:effectiveRange:', |
| iOS: (false, (3, 2, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_1776v9k( |
| _$$ref.pointer, |
| _sel_attributesAtIndex_effectiveRange_, |
| location, |
| effectiveRange, |
| ); |
| return NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// init |
| NSAttributedString init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSAttributedString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithAttributedString: |
| NSAttributedString initWithAttributedString(NSAttributedString attrStr) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = attrStr.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.initWithAttributedString:', |
| iOS: (false, (3, 2, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithAttributedString_, |
| _$$ref$1.pointer, |
| ); |
| return NSAttributedString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSAttributedString? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSAttributedString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfMarkdownFileAtURL:options:baseURL:error: |
| /// |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| NSAttributedString? initWithContentsOfMarkdownFileAtURL( |
| NSURL markdownFile, { |
| NSAttributedStringMarkdownParsingOptions? options, |
| NSURL? baseURL, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = markdownFile.ref; |
| final _$$ref$2 = options?.ref; |
| final _$$ref$3 = baseURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.initWithContentsOfMarkdownFileAtURL:options:baseURL:error:', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1k0ezzm( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSAttributedString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initWithFormat:options:locale: |
| /// |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| NSAttributedString initWithFormat( |
| NSAttributedString format, { |
| required DartNSUInteger options, |
| NSLocale? locale, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = format.ref; |
| final _$$ref$2 = locale?.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.initWithFormat:options:locale:', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_187k8ck( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithFormat_options_locale_, |
| _$$ref$1.pointer, |
| options, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSAttributedString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithFormat:options:locale:context: |
| /// |
| /// iOS: introduced 17.0.0 |
| /// macOS: introduced 14.0.0 |
| NSAttributedString initWithFormat$1( |
| NSAttributedString format, { |
| required DartNSUInteger options, |
| NSLocale? locale, |
| required NSDictionary context, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = format.ref; |
| final _$$ref$2 = locale?.ref; |
| final _$$ref$3 = context.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.initWithFormat:options:locale:context:', |
| iOS: (false, (17, 0, 0)), |
| macOS: (false, (14, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_3fn4ca( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithFormat_options_locale_context_, |
| _$$ref$1.pointer, |
| options, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3.pointer, |
| ); |
| return NSAttributedString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithMarkdown:options:baseURL:error: |
| /// |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| NSAttributedString? initWithMarkdown( |
| NSData markdown, { |
| NSAttributedStringMarkdownParsingOptions? options, |
| NSURL? baseURL, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = markdown.ref; |
| final _$$ref$2 = options?.ref; |
| final _$$ref$3 = baseURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.initWithMarkdown:options:baseURL:error:', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1k0ezzm( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithMarkdown_options_baseURL_error_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSAttributedString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initWithMarkdownString:options:baseURL:error: |
| /// |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| NSAttributedString? initWithMarkdownString( |
| NSString markdownString, { |
| NSAttributedStringMarkdownParsingOptions? options, |
| NSURL? baseURL, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = markdownString.ref; |
| final _$$ref$2 = options?.ref; |
| final _$$ref$3 = baseURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.initWithMarkdownString:options:baseURL:error:', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1k0ezzm( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithMarkdownString_options_baseURL_error_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSAttributedString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initWithString: |
| NSAttributedString initWithString(NSString str) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = str.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.initWithString:', |
| iOS: (false, (3, 2, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithString_, |
| _$$ref$1.pointer, |
| ); |
| return NSAttributedString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithString:attributes: |
| NSAttributedString initWithString$1( |
| NSString str, { |
| NSDictionary? attributes, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = str.ref; |
| final _$$ref$2 = attributes?.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.initWithString:attributes:', |
| iOS: (false, (3, 2, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithString_attributes_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSAttributedString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// string |
| NSString get string { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.string', |
| iOS: (false, (3, 2, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_string); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSAttributedStringCreateFromMarkdown |
| extension NSAttributedStringCreateFromMarkdown on NSAttributedString {} |
| |
| sealed class NSAttributedStringEnumerationOptions { |
| static const NSAttributedStringEnumerationReverse = 2; |
| static const NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = |
| 1048576; |
| } |
| |
| /// NSAttributedStringFormatting |
| extension NSAttributedStringFormatting on NSAttributedString {} |
| |
| sealed class NSAttributedStringFormattingOptions { |
| static const NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging = |
| 1; |
| static const NSAttributedStringFormattingApplyReplacementIndexAttribute = 2; |
| } |
| |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| enum NSAttributedStringMarkdownInterpretedSyntax { |
| NSAttributedStringMarkdownInterpretedSyntaxFull(0), |
| NSAttributedStringMarkdownInterpretedSyntaxInlineOnly(1), |
| NSAttributedStringMarkdownInterpretedSyntaxInlineOnlyPreservingWhitespace(2); |
| |
| final int value; |
| const NSAttributedStringMarkdownInterpretedSyntax(this.value); |
| |
| static NSAttributedStringMarkdownInterpretedSyntax fromValue( |
| int value, |
| ) => switch (value) { |
| 0 => NSAttributedStringMarkdownInterpretedSyntaxFull, |
| 1 => NSAttributedStringMarkdownInterpretedSyntaxInlineOnly, |
| 2 => |
| NSAttributedStringMarkdownInterpretedSyntaxInlineOnlyPreservingWhitespace, |
| _ => throw ArgumentError( |
| 'Unknown value for NSAttributedStringMarkdownInterpretedSyntax: $value', |
| ), |
| }; |
| } |
| |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| enum NSAttributedStringMarkdownParsingFailurePolicy { |
| NSAttributedStringMarkdownParsingFailureReturnError(0), |
| NSAttributedStringMarkdownParsingFailureReturnPartiallyParsedIfPossible(1); |
| |
| final int value; |
| const NSAttributedStringMarkdownParsingFailurePolicy(this.value); |
| |
| static NSAttributedStringMarkdownParsingFailurePolicy fromValue( |
| int value, |
| ) => switch (value) { |
| 0 => NSAttributedStringMarkdownParsingFailureReturnError, |
| 1 => |
| NSAttributedStringMarkdownParsingFailureReturnPartiallyParsedIfPossible, |
| _ => throw ArgumentError( |
| 'Unknown value for NSAttributedStringMarkdownParsingFailurePolicy: $value', |
| ), |
| }; |
| } |
| |
| /// NSAttributedStringMarkdownParsingOptions |
| /// |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| extension type NSAttributedStringMarkdownParsingOptions._( |
| objc.ObjCObject object$ |
| ) |
| implements objc.ObjCObject, NSObject, NSCopying { |
| /// Constructs a [NSAttributedStringMarkdownParsingOptions] that points to the same underlying object as [other]. |
| NSAttributedStringMarkdownParsingOptions.as(objc.ObjCObject other) |
| : object$ = other { |
| objc.checkOsVersionInternal( |
| 'NSAttributedStringMarkdownParsingOptions', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSAttributedStringMarkdownParsingOptions] that wraps the given raw object pointer. |
| NSAttributedStringMarkdownParsingOptions.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| objc.checkOsVersionInternal( |
| 'NSAttributedStringMarkdownParsingOptions', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSAttributedStringMarkdownParsingOptions]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSAttributedStringMarkdownParsingOptions, |
| ); |
| |
| /// alloc |
| static NSAttributedStringMarkdownParsingOptions alloc() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSAttributedStringMarkdownParsingOptions, |
| _sel_alloc, |
| ); |
| return NSAttributedStringMarkdownParsingOptions.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// allocWithZone: |
| static NSAttributedStringMarkdownParsingOptions allocWithZone( |
| ffi.Pointer<NSZone> zone, |
| ) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSAttributedStringMarkdownParsingOptions, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSAttributedStringMarkdownParsingOptions.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// new |
| static NSAttributedStringMarkdownParsingOptions new$() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSAttributedStringMarkdownParsingOptions, |
| _sel_new, |
| ); |
| return NSAttributedStringMarkdownParsingOptions.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Returns a new instance of NSAttributedStringMarkdownParsingOptions constructed with the default `new` method. |
| NSAttributedStringMarkdownParsingOptions() : this.as(new$().object$); |
| } |
| |
| extension NSAttributedStringMarkdownParsingOptions$Methods |
| on NSAttributedStringMarkdownParsingOptions { |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| bool get allowsExtendedAttributes { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedStringMarkdownParsingOptions.allowsExtendedAttributes', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_allowsExtendedAttributes); |
| } |
| |
| /// iOS: introduced 16.0.0 |
| /// macOS: introduced 13.0.0 |
| bool get appliesSourcePositionAttributes { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedStringMarkdownParsingOptions.appliesSourcePositionAttributes', |
| iOS: (false, (16, 0, 0)), |
| macOS: (false, (13, 0, 0)), |
| ); |
| return _objc_msgSend_91o635( |
| _$$ref.pointer, |
| _sel_appliesSourcePositionAttributes, |
| ); |
| } |
| |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| NSAttributedStringMarkdownParsingFailurePolicy get failurePolicy { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedStringMarkdownParsingOptions.failurePolicy', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_194u5n2(_$$ref.pointer, _sel_failurePolicy); |
| return NSAttributedStringMarkdownParsingFailurePolicy.fromValue($ret); |
| } |
| |
| /// init |
| NSAttributedStringMarkdownParsingOptions init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedStringMarkdownParsingOptions.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSAttributedStringMarkdownParsingOptions.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| NSAttributedStringMarkdownInterpretedSyntax get interpretedSyntax { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedStringMarkdownParsingOptions.interpretedSyntax', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_h0o9ch(_$$ref.pointer, _sel_interpretedSyntax); |
| return NSAttributedStringMarkdownInterpretedSyntax.fromValue($ret); |
| } |
| |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| NSString? get languageCode { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedStringMarkdownParsingOptions.languageCode', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_languageCode); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| set allowsExtendedAttributes(bool value) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedStringMarkdownParsingOptions.setAllowsExtendedAttributes:', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| _objc_msgSend_1s56lr9( |
| _$$ref.pointer, |
| _sel_setAllowsExtendedAttributes_, |
| value, |
| ); |
| } |
| |
| /// iOS: introduced 16.0.0 |
| /// macOS: introduced 13.0.0 |
| set appliesSourcePositionAttributes(bool value) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedStringMarkdownParsingOptions.setAppliesSourcePositionAttributes:', |
| iOS: (false, (16, 0, 0)), |
| macOS: (false, (13, 0, 0)), |
| ); |
| _objc_msgSend_1s56lr9( |
| _$$ref.pointer, |
| _sel_setAppliesSourcePositionAttributes_, |
| value, |
| ); |
| } |
| |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| set failurePolicy(NSAttributedStringMarkdownParsingFailurePolicy value) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedStringMarkdownParsingOptions.setFailurePolicy:', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| _objc_msgSend_mt0t38(_$$ref.pointer, _sel_setFailurePolicy_, value.value); |
| } |
| |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| set interpretedSyntax(NSAttributedStringMarkdownInterpretedSyntax value) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedStringMarkdownParsingOptions.setInterpretedSyntax:', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| _objc_msgSend_1ay2tmt( |
| _$$ref.pointer, |
| _sel_setInterpretedSyntax_, |
| value.value, |
| ); |
| } |
| |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| set languageCode(NSString? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedStringMarkdownParsingOptions.setLanguageCode:', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setLanguageCode_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| } |
| |
| sealed class NSBinarySearchingOptions { |
| static const NSBinarySearchingFirstEqual = 256; |
| static const NSBinarySearchingLastEqual = 512; |
| static const NSBinarySearchingInsertionIndex = 1024; |
| } |
| |
| /// NSBundle |
| extension type NSBundle._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [NSBundle] that points to the same underlying object as [other]. |
| NSBundle.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSBundle] that wraps the given raw object pointer. |
| NSBundle.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSBundle]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSBundle, |
| ); |
| |
| /// URLForResource:withExtension:subdirectory:inBundleWithURL: |
| static NSURL? URLForResource$3( |
| NSString? name, { |
| NSString? withExtension, |
| NSString? subdirectory, |
| required NSURL inBundleWithURL, |
| }) { |
| final _$$ref = name?.ref; |
| final _$$ref$1 = withExtension?.ref; |
| final _$$ref$2 = subdirectory?.ref; |
| final _$$ref$3 = inBundleWithURL.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.URLForResource:withExtension:subdirectory:inBundleWithURL:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_s92gih( |
| _class_NSBundle, |
| _sel_URLForResource_withExtension_subdirectory_inBundleWithURL_, |
| _$$ref?.pointer ?? ffi.nullptr, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// URLsForResourcesWithExtension:subdirectory:inBundleWithURL: |
| static NSArray? URLsForResourcesWithExtension$2( |
| NSString? ext, { |
| NSString? subdirectory, |
| required NSURL inBundleWithURL, |
| }) { |
| final _$$ref = ext?.ref; |
| final _$$ref$1 = subdirectory?.ref; |
| final _$$ref$2 = inBundleWithURL.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.URLsForResourcesWithExtension:subdirectory:inBundleWithURL:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_11spmsz( |
| _class_NSBundle, |
| _sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_, |
| _$$ref?.pointer ?? ffi.nullptr, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// allBundles |
| static NSArray getAllBundles() { |
| final $ret = _objc_msgSend_151sglz(_class_NSBundle, _sel_allBundles); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// allFrameworks |
| static NSArray getAllFrameworks() { |
| final $ret = _objc_msgSend_151sglz(_class_NSBundle, _sel_allFrameworks); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// alloc |
| static NSBundle alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSBundle, _sel_alloc); |
| return NSBundle.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSBundle allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSBundle, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSBundle.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// bundleForClass: |
| static NSBundle bundleForClass(objc.ObjCObject aClass) { |
| final _$$ref = aClass.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSBundle, |
| _sel_bundleForClass_, |
| _$$ref.pointer, |
| ); |
| return NSBundle.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// bundleWithIdentifier: |
| static NSBundle? bundleWithIdentifier(NSString identifier) { |
| final _$$ref = identifier.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSBundle, |
| _sel_bundleWithIdentifier_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSBundle.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// bundleWithPath: |
| static NSBundle? bundleWithPath(NSString path) { |
| final _$$ref = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSBundle, |
| _sel_bundleWithPath_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSBundle.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// bundleWithURL: |
| static NSBundle? bundleWithURL(NSURL url) { |
| final _$$ref = url.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.bundleWithURL:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSBundle, |
| _sel_bundleWithURL_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSBundle.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// mainBundle |
| static NSBundle getMainBundle() { |
| final $ret = _objc_msgSend_151sglz(_class_NSBundle, _sel_mainBundle); |
| return NSBundle.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSBundle new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSBundle, _sel_new); |
| return NSBundle.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// pathForResource:ofType:inDirectory: |
| static NSString? pathForResource$3( |
| NSString? name, { |
| NSString? ofType, |
| required NSString inDirectory, |
| }) { |
| final _$$ref = name?.ref; |
| final _$$ref$1 = ofType?.ref; |
| final _$$ref$2 = inDirectory.ref; |
| final $ret = _objc_msgSend_11spmsz( |
| _class_NSBundle, |
| _sel_pathForResource_ofType_inDirectory_, |
| _$$ref?.pointer ?? ffi.nullptr, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// pathsForResourcesOfType:inDirectory: |
| static NSArray pathsForResourcesOfType$2( |
| NSString? ext, { |
| required NSString inDirectory, |
| }) { |
| final _$$ref = ext?.ref; |
| final _$$ref$1 = inDirectory.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _class_NSBundle, |
| _sel_pathsForResourcesOfType_inDirectory_, |
| _$$ref?.pointer ?? ffi.nullptr, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// preferredLocalizationsFromArray: |
| static NSArray preferredLocalizationsFromArray(NSArray localizationsArray) { |
| final _$$ref = localizationsArray.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSBundle, |
| _sel_preferredLocalizationsFromArray_, |
| _$$ref.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// preferredLocalizationsFromArray:forPreferences: |
| static NSArray preferredLocalizationsFromArray$1( |
| NSArray localizationsArray, { |
| NSArray? forPreferences, |
| }) { |
| final _$$ref = localizationsArray.ref; |
| final _$$ref$1 = forPreferences?.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _class_NSBundle, |
| _sel_preferredLocalizationsFromArray_forPreferences_, |
| _$$ref.pointer, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// Returns a new instance of NSBundle constructed with the default `new` method. |
| NSBundle() : this.as(new$().object$); |
| } |
| |
| extension NSBundle$Methods on NSBundle { |
| /// URLForAuxiliaryExecutable: |
| NSURL? URLForAuxiliaryExecutable(NSString executableName) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = executableName.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.URLForAuxiliaryExecutable:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_URLForAuxiliaryExecutable_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// URLForResource:withExtension: |
| NSURL? URLForResource(NSString? name, {NSString? withExtension}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = name?.ref; |
| final _$$ref$2 = withExtension?.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.URLForResource:withExtension:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.pointer, |
| _sel_URLForResource_withExtension_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// URLForResource:withExtension:subdirectory: |
| NSURL? URLForResource$1( |
| NSString? name, { |
| NSString? withExtension, |
| NSString? subdirectory, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = name?.ref; |
| final _$$ref$2 = withExtension?.ref; |
| final _$$ref$3 = subdirectory?.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.URLForResource:withExtension:subdirectory:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_11spmsz( |
| _$$ref.pointer, |
| _sel_URLForResource_withExtension_subdirectory_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// URLForResource:withExtension:subdirectory:localization: |
| NSURL? URLForResource$2( |
| NSString? name, { |
| NSString? withExtension, |
| NSString? subdirectory, |
| NSString? localization, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = name?.ref; |
| final _$$ref$2 = withExtension?.ref; |
| final _$$ref$3 = subdirectory?.ref; |
| final _$$ref$4 = localization?.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.URLForResource:withExtension:subdirectory:localization:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_s92gih( |
| _$$ref.pointer, |
| _sel_URLForResource_withExtension_subdirectory_localization_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| _$$ref$4?.pointer ?? ffi.nullptr, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// URLsForResourcesWithExtension:subdirectory: |
| NSArray? URLsForResourcesWithExtension( |
| NSString? ext, { |
| NSString? subdirectory, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = ext?.ref; |
| final _$$ref$2 = subdirectory?.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.URLsForResourcesWithExtension:subdirectory:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.pointer, |
| _sel_URLsForResourcesWithExtension_subdirectory_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// URLsForResourcesWithExtension:subdirectory:localization: |
| NSArray? URLsForResourcesWithExtension$1( |
| NSString? ext, { |
| NSString? subdirectory, |
| NSString? localization, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = ext?.ref; |
| final _$$ref$2 = subdirectory?.ref; |
| final _$$ref$3 = localization?.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.URLsForResourcesWithExtension:subdirectory:localization:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_11spmsz( |
| _$$ref.pointer, |
| _sel_URLsForResourcesWithExtension_subdirectory_localization_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// appStoreReceiptURL |
| NSURL? get appStoreReceiptURL { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.appStoreReceiptURL', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_appStoreReceiptURL); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// builtInPlugInsPath |
| NSString? get builtInPlugInsPath { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_builtInPlugInsPath); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// builtInPlugInsURL |
| NSURL? get builtInPlugInsURL { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.builtInPlugInsURL', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_builtInPlugInsURL); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// bundleIdentifier |
| NSString? get bundleIdentifier { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_bundleIdentifier); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// bundlePath |
| NSString get bundlePath { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_bundlePath); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// bundleURL |
| NSURL get bundleURL { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.bundleURL', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_bundleURL); |
| return NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// classNamed: |
| objc.ObjCObject? classNamed(NSString className) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = className.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_classNamed_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// developmentLocalization |
| NSString? get developmentLocalization { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_developmentLocalization, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// executableArchitectures |
| NSArray? get executableArchitectures { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.executableArchitectures', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_executableArchitectures, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// executablePath |
| NSString? get executablePath { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_executablePath); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// executableURL |
| NSURL? get executableURL { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.executableURL', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_executableURL); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// infoDictionary |
| NSDictionary? get infoDictionary { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_infoDictionary); |
| return $ret.address == 0 |
| ? null |
| : NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// init |
| NSBundle init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSBundle.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithPath: |
| NSBundle? initWithPath(NSString path) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithPath_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSBundle.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithURL: |
| NSBundle? initWithURL(NSURL url) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.initWithURL:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithURL_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSBundle.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// isLoaded |
| bool get isLoaded { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isLoaded); |
| } |
| |
| /// load |
| bool load$1() { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_load); |
| } |
| |
| /// loadAndReturnError: |
| bool loadAndReturnError() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.loadAndReturnError:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1dom33q( |
| _$$ref.pointer, |
| _sel_loadAndReturnError_, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret; |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// localizations |
| NSArray get localizations { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_localizations); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedAttributedStringForKey:value:table: |
| /// |
| /// iOS: introduced 15.0.0 |
| /// macOS: introduced 12.0.0 |
| NSAttributedString localizedAttributedStringForKey( |
| NSString key, { |
| NSString? value, |
| NSString? table, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = key.ref; |
| final _$$ref$2 = value?.ref; |
| final _$$ref$3 = table?.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.localizedAttributedStringForKey:value:table:', |
| iOS: (false, (15, 0, 0)), |
| macOS: (false, (12, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_11spmsz( |
| _$$ref.pointer, |
| _sel_localizedAttributedStringForKey_value_table_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| ); |
| return NSAttributedString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedInfoDictionary |
| NSDictionary? get localizedInfoDictionary { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_localizedInfoDictionary, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedStringForKey:value:table: |
| NSString localizedStringForKey( |
| NSString key, { |
| NSString? value, |
| NSString? table, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = key.ref; |
| final _$$ref$2 = value?.ref; |
| final _$$ref$3 = table?.ref; |
| final $ret = _objc_msgSend_11spmsz( |
| _$$ref.pointer, |
| _sel_localizedStringForKey_value_table_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// objectForInfoDictionaryKey: |
| objc.ObjCObject? objectForInfoDictionaryKey(NSString key) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = key.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_objectForInfoDictionaryKey_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// pathForAuxiliaryExecutable: |
| NSString? pathForAuxiliaryExecutable(NSString executableName) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = executableName.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_pathForAuxiliaryExecutable_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// pathForResource:ofType: |
| NSString? pathForResource(NSString? name, {NSString? ofType}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = name?.ref; |
| final _$$ref$2 = ofType?.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.pointer, |
| _sel_pathForResource_ofType_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// pathForResource:ofType:inDirectory: |
| NSString? pathForResource$1( |
| NSString? name, { |
| NSString? ofType, |
| NSString? inDirectory, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = name?.ref; |
| final _$$ref$2 = ofType?.ref; |
| final _$$ref$3 = inDirectory?.ref; |
| final $ret = _objc_msgSend_11spmsz( |
| _$$ref.pointer, |
| _sel_pathForResource_ofType_inDirectory_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// pathForResource:ofType:inDirectory:forLocalization: |
| NSString? pathForResource$2( |
| NSString? name, { |
| NSString? ofType, |
| NSString? inDirectory, |
| NSString? forLocalization, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = name?.ref; |
| final _$$ref$2 = ofType?.ref; |
| final _$$ref$3 = inDirectory?.ref; |
| final _$$ref$4 = forLocalization?.ref; |
| final $ret = _objc_msgSend_s92gih( |
| _$$ref.pointer, |
| _sel_pathForResource_ofType_inDirectory_forLocalization_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| _$$ref$4?.pointer ?? ffi.nullptr, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// pathsForResourcesOfType:inDirectory: |
| NSArray pathsForResourcesOfType(NSString? ext, {NSString? inDirectory}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = ext?.ref; |
| final _$$ref$2 = inDirectory?.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.pointer, |
| _sel_pathsForResourcesOfType_inDirectory_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// pathsForResourcesOfType:inDirectory:forLocalization: |
| NSArray pathsForResourcesOfType$1( |
| NSString? ext, { |
| NSString? inDirectory, |
| NSString? forLocalization, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = ext?.ref; |
| final _$$ref$2 = inDirectory?.ref; |
| final _$$ref$3 = forLocalization?.ref; |
| final $ret = _objc_msgSend_11spmsz( |
| _$$ref.pointer, |
| _sel_pathsForResourcesOfType_inDirectory_forLocalization_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// preferredLocalizations |
| NSArray get preferredLocalizations { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_preferredLocalizations, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// preflightAndReturnError: |
| bool preflightAndReturnError() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.preflightAndReturnError:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1dom33q( |
| _$$ref.pointer, |
| _sel_preflightAndReturnError_, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret; |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// principalClass |
| objc.ObjCObject? get principalClass { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_principalClass); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// privateFrameworksPath |
| NSString? get privateFrameworksPath { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_privateFrameworksPath, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// privateFrameworksURL |
| NSURL? get privateFrameworksURL { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.privateFrameworksURL', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_privateFrameworksURL, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// resourcePath |
| NSString? get resourcePath { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_resourcePath); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// resourceURL |
| NSURL? get resourceURL { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.resourceURL', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_resourceURL); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// sharedFrameworksPath |
| NSString? get sharedFrameworksPath { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_sharedFrameworksPath, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// sharedFrameworksURL |
| NSURL? get sharedFrameworksURL { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.sharedFrameworksURL', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_sharedFrameworksURL, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// sharedSupportPath |
| NSString? get sharedSupportPath { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_sharedSupportPath); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// sharedSupportURL |
| NSURL? get sharedSupportURL { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSBundle.sharedSupportURL', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_sharedSupportURL); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// unload |
| bool unload() { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_unload); |
| } |
| } |
| |
| /// NSCharacterSet |
| extension type NSCharacterSet._(objc.ObjCObject object$) |
| implements |
| objc.ObjCObject, |
| NSObject, |
| NSCopying, |
| NSMutableCopying, |
| NSSecureCoding { |
| /// Constructs a [NSCharacterSet] that points to the same underlying object as [other]. |
| NSCharacterSet.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSCharacterSet] that wraps the given raw object pointer. |
| NSCharacterSet.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSCharacterSet]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSCharacterSet, |
| ); |
| |
| /// alloc |
| static NSCharacterSet alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_alloc); |
| return NSCharacterSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSCharacterSet allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSCharacterSet, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// alphanumericCharacterSet |
| static NSCharacterSet getAlphanumericCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_alphanumericCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// capitalizedLetterCharacterSet |
| static NSCharacterSet getCapitalizedLetterCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_capitalizedLetterCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// characterSetWithBitmapRepresentation: |
| static NSCharacterSet characterSetWithBitmapRepresentation(NSData data) { |
| final _$$ref = data.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSCharacterSet, |
| _sel_characterSetWithBitmapRepresentation_, |
| _$$ref.pointer, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// characterSetWithCharactersInString: |
| static NSCharacterSet characterSetWithCharactersInString(NSString aString) { |
| final _$$ref = aString.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSCharacterSet, |
| _sel_characterSetWithCharactersInString_, |
| _$$ref.pointer, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// characterSetWithContentsOfFile: |
| static NSCharacterSet? characterSetWithContentsOfFile(NSString fName) { |
| final _$$ref = fName.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSCharacterSet, |
| _sel_characterSetWithContentsOfFile_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// characterSetWithRange: |
| static NSCharacterSet characterSetWithRange(NSRange aRange) { |
| final $ret = _objc_msgSend_1k1o1s7( |
| _class_NSCharacterSet, |
| _sel_characterSetWithRange_, |
| aRange, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// controlCharacterSet |
| static NSCharacterSet getControlCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_controlCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// decimalDigitCharacterSet |
| static NSCharacterSet getDecimalDigitCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_decimalDigitCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// decomposableCharacterSet |
| static NSCharacterSet getDecomposableCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_decomposableCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// illegalCharacterSet |
| static NSCharacterSet getIllegalCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_illegalCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// letterCharacterSet |
| static NSCharacterSet getLetterCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_letterCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// lowercaseLetterCharacterSet |
| static NSCharacterSet getLowercaseLetterCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_lowercaseLetterCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSCharacterSet new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_new); |
| return NSCharacterSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// newlineCharacterSet |
| static NSCharacterSet getNewlineCharacterSet() { |
| objc.checkOsVersionInternal( |
| 'NSCharacterSet.newlineCharacterSet', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_newlineCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// nonBaseCharacterSet |
| static NSCharacterSet getNonBaseCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_nonBaseCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// punctuationCharacterSet |
| static NSCharacterSet getPunctuationCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_punctuationCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635( |
| _class_NSCharacterSet, |
| _sel_supportsSecureCoding, |
| ); |
| } |
| |
| /// symbolCharacterSet |
| static NSCharacterSet getSymbolCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_symbolCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// uppercaseLetterCharacterSet |
| static NSCharacterSet getUppercaseLetterCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_uppercaseLetterCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// whitespaceAndNewlineCharacterSet |
| static NSCharacterSet getWhitespaceAndNewlineCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_whitespaceAndNewlineCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// whitespaceCharacterSet |
| static NSCharacterSet getWhitespaceCharacterSet() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSCharacterSet, |
| _sel_whitespaceCharacterSet, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// Returns a new instance of NSCharacterSet constructed with the default `new` method. |
| NSCharacterSet() : this.as(new$().object$); |
| } |
| |
| extension NSCharacterSet$Methods on NSCharacterSet { |
| /// bitmapRepresentation |
| NSData get bitmapRepresentation { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_bitmapRepresentation, |
| ); |
| return NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// characterIsMember: |
| bool characterIsMember(int aCharacter) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1co9mn4( |
| _$$ref.pointer, |
| _sel_characterIsMember_, |
| aCharacter, |
| ); |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// hasMemberInPlane: |
| bool hasMemberInPlane(int thePlane) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_gerswc( |
| _$$ref.pointer, |
| _sel_hasMemberInPlane_, |
| thePlane, |
| ); |
| } |
| |
| /// init |
| NSCharacterSet init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSCharacterSet.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSCharacterSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSCharacterSet? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSCharacterSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// invertedSet |
| NSCharacterSet get invertedSet { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_invertedSet); |
| return NSCharacterSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// isSupersetOfSet: |
| bool isSupersetOfSet(NSCharacterSet theOtherSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = theOtherSet.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isSupersetOfSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// longCharacterIsMember: |
| bool longCharacterIsMember(int theLongChar) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_jsclrq( |
| _$$ref.pointer, |
| _sel_longCharacterIsMember_, |
| theLongChar, |
| ); |
| } |
| } |
| |
| /// NSCoder |
| extension type NSCoder._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [NSCoder] that points to the same underlying object as [other]. |
| NSCoder.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSCoder] that wraps the given raw object pointer. |
| NSCoder.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSCoder]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSCoder, |
| ); |
| |
| /// alloc |
| static NSCoder alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSCoder, _sel_alloc); |
| return NSCoder.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSCoder allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSCoder, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSCoder.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSCoder new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSCoder, _sel_new); |
| return NSCoder.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of NSCoder constructed with the default `new` method. |
| NSCoder() : this.as(new$().object$); |
| } |
| |
| extension NSCoder$Methods on NSCoder { |
| /// decodeDataObject |
| NSData? decodeDataObject() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decodeDataObject); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// decodeValueOfObjCType:at:size: |
| void decodeValueOfObjCType( |
| ffi.Pointer<ffi.Char> type, { |
| required ffi.Pointer<ffi.Void> at, |
| required DartNSUInteger size, |
| }) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSCoder.decodeValueOfObjCType:at:size:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| _objc_msgSend_nc6uds( |
| _$$ref.pointer, |
| _sel_decodeValueOfObjCType_at_size_, |
| type, |
| at, |
| size, |
| ); |
| } |
| |
| /// encodeDataObject: |
| void encodeDataObject(NSData data) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = data.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeDataObject_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// encodeValueOfObjCType:at: |
| void encodeValueOfObjCType( |
| ffi.Pointer<ffi.Char> type, { |
| required ffi.Pointer<ffi.Void> at, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1flkydz( |
| _$$ref.pointer, |
| _sel_encodeValueOfObjCType_at_, |
| type, |
| at, |
| ); |
| } |
| |
| /// init |
| NSCoder init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSCoder.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSCoder.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// versionForClassName: |
| int versionForClassName(NSString className) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = className.ref; |
| return _objc_msgSend_1r6ymhb( |
| _$$ref.pointer, |
| _sel_versionForClassName_, |
| _$$ref$1.pointer, |
| ); |
| } |
| } |
| |
| /// NSCoding |
| extension type NSCoding._(objc.ObjCProtocol object$) |
| implements objc.ObjCProtocol { |
| /// Constructs a [NSCoding] that points to the same underlying object as [other]. |
| NSCoding.as(objc.ObjCObject other) : object$ = other; |
| |
| /// Constructs a [NSCoding] that wraps the given raw object pointer. |
| NSCoding.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); |
| |
| /// Returns whether [obj] is an instance of [NSCoding]. |
| static bool conformsTo(objc.ObjCObject obj) { |
| return _objc_msgSend_e3qsqz( |
| obj.ref.pointer, |
| _sel_conformsToProtocol_, |
| _protocol_NSCoding, |
| ); |
| } |
| } |
| |
| extension NSCoding$Methods on NSCoding { |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// initWithCoder: |
| NSCoding? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSCoding.fromPointer($ret, retain: false, release: true); |
| } |
| } |
| |
| interface class NSCoding$Builder { |
| /// Returns the [objc.Protocol] object for this protocol. |
| static objc.Protocol get $protocol => |
| objc.Protocol.fromPointer(_protocol_NSCoding.cast()); |
| |
| /// Builds an object that implements the NSCoding protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSCoding implement({ |
| required void Function(NSCoder) encodeWithCoder_, |
| required Dartinstancetype? Function(NSCoder) initWithCoder_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); |
| NSCoding$Builder.encodeWithCoder_.implement(builder, encodeWithCoder_); |
| NSCoding$Builder.initWithCoder_.implement(builder, initWithCoder_); |
| builder.addProtocol($protocol); |
| return NSCoding.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); |
| } |
| |
| /// Adds the implementation of the NSCoding protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilder( |
| objc.ObjCProtocolBuilder builder, { |
| required void Function(NSCoder) encodeWithCoder_, |
| required Dartinstancetype? Function(NSCoder) initWithCoder_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSCoding$Builder.encodeWithCoder_.implement(builder, encodeWithCoder_); |
| NSCoding$Builder.initWithCoder_.implement(builder, initWithCoder_); |
| builder.addProtocol($protocol); |
| } |
| |
| /// Builds an object that implements the NSCoding protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All |
| /// methods that can be implemented as listeners will be. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSCoding implementAsListener({ |
| required void Function(NSCoder) encodeWithCoder_, |
| required Dartinstancetype? Function(NSCoder) initWithCoder_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); |
| NSCoding$Builder.encodeWithCoder_.implementAsListener( |
| builder, |
| encodeWithCoder_, |
| ); |
| NSCoding$Builder.initWithCoder_.implement(builder, initWithCoder_); |
| builder.addProtocol($protocol); |
| return NSCoding.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); |
| } |
| |
| /// Adds the implementation of the NSCoding protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will |
| /// be. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilderAsListener( |
| objc.ObjCProtocolBuilder builder, { |
| required void Function(NSCoder) encodeWithCoder_, |
| required Dartinstancetype? Function(NSCoder) initWithCoder_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSCoding$Builder.encodeWithCoder_.implementAsListener( |
| builder, |
| encodeWithCoder_, |
| ); |
| NSCoding$Builder.initWithCoder_.implement(builder, initWithCoder_); |
| builder.addProtocol($protocol); |
| } |
| |
| /// Builds an object that implements the NSCoding protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All |
| /// methods that can be implemented as blocking listeners will be. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSCoding implementAsBlocking({ |
| required void Function(NSCoder) encodeWithCoder_, |
| required Dartinstancetype? Function(NSCoder) initWithCoder_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); |
| NSCoding$Builder.encodeWithCoder_.implementAsBlocking( |
| builder, |
| encodeWithCoder_, |
| ); |
| NSCoding$Builder.initWithCoder_.implement(builder, initWithCoder_); |
| builder.addProtocol($protocol); |
| return NSCoding.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); |
| } |
| |
| /// Adds the implementation of the NSCoding protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking |
| /// listeners will be. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilderAsBlocking( |
| objc.ObjCProtocolBuilder builder, { |
| required void Function(NSCoder) encodeWithCoder_, |
| required Dartinstancetype? Function(NSCoder) initWithCoder_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSCoding$Builder.encodeWithCoder_.implementAsBlocking( |
| builder, |
| encodeWithCoder_, |
| ); |
| NSCoding$Builder.initWithCoder_.implement(builder, initWithCoder_); |
| builder.addProtocol($protocol); |
| } |
| |
| /// encodeWithCoder: |
| static final encodeWithCoder_ = |
| objc.ObjCProtocolListenableMethod<void Function(NSCoder)>( |
| _protocol_NSCoding, |
| _sel_encodeWithCoder_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_18v1jvf) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSCoding, |
| _sel_encodeWithCoder_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (void Function(NSCoder) func) => |
| ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( |
| (ffi.Pointer<ffi.Void> _, NSCoder arg1) => func(arg1), |
| ), |
| (void Function(NSCoder) func) => |
| ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( |
| (ffi.Pointer<ffi.Void> _, NSCoder arg1) => func(arg1), |
| ), |
| (void Function(NSCoder) func) => |
| ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( |
| (ffi.Pointer<ffi.Void> _, NSCoder arg1) => func(arg1), |
| ), |
| ); |
| |
| /// initWithCoder: |
| static final initWithCoder_ = |
| objc.ObjCProtocolMethod<Dartinstancetype? Function(NSCoder)>( |
| _protocol_NSCoding, |
| _sel_initWithCoder_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| instancetype Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_xr62hr) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSCoding, |
| _sel_initWithCoder_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (Dartinstancetype? Function(NSCoder) func) => |
| ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( |
| (ffi.Pointer<ffi.Void> _, NSCoder arg1) => func(arg1), |
| ), |
| ); |
| } |
| |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| enum NSCollectionChangeType { |
| NSCollectionChangeInsert(0), |
| NSCollectionChangeRemove(1); |
| |
| final int value; |
| const NSCollectionChangeType(this.value); |
| |
| static NSCollectionChangeType fromValue(int value) => switch (value) { |
| 0 => NSCollectionChangeInsert, |
| 1 => NSCollectionChangeRemove, |
| _ => throw ArgumentError( |
| 'Unknown value for NSCollectionChangeType: $value', |
| ), |
| }; |
| } |
| |
| enum NSComparisonResult { |
| NSOrderedAscending(-1), |
| NSOrderedSame(0), |
| NSOrderedDescending(1); |
| |
| final int value; |
| const NSComparisonResult(this.value); |
| |
| static NSComparisonResult fromValue(int value) => switch (value) { |
| -1 => NSOrderedAscending, |
| 0 => NSOrderedSame, |
| 1 => NSOrderedDescending, |
| _ => throw ArgumentError('Unknown value for NSComparisonResult: $value'), |
| }; |
| } |
| |
| /// NSCopying |
| extension type NSCopying._(objc.ObjCProtocol object$) |
| implements objc.ObjCProtocol { |
| /// Constructs a [NSCopying] that points to the same underlying object as [other]. |
| NSCopying.as(objc.ObjCObject other) : object$ = other; |
| |
| /// Constructs a [NSCopying] that wraps the given raw object pointer. |
| NSCopying.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); |
| |
| /// Returns whether [obj] is an instance of [NSCopying]. |
| static bool conformsTo(objc.ObjCObject obj) { |
| return _objc_msgSend_e3qsqz( |
| obj.ref.pointer, |
| _sel_conformsToProtocol_, |
| _protocol_NSCopying, |
| ); |
| } |
| } |
| |
| extension NSCopying$Methods on NSCopying { |
| /// copyWithZone: |
| objc.ObjCObject copyWithZone(ffi.Pointer<NSZone> zone) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1cwp428( |
| _$$ref.pointer, |
| _sel_copyWithZone_, |
| zone, |
| ); |
| return objc.ObjCObject($ret, retain: false, release: true); |
| } |
| } |
| |
| interface class NSCopying$Builder { |
| /// Returns the [objc.Protocol] object for this protocol. |
| static objc.Protocol get $protocol => |
| objc.Protocol.fromPointer(_protocol_NSCopying.cast()); |
| |
| /// Builds an object that implements the NSCopying protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSCopying implement({ |
| required objc.ObjCObject Function(ffi.Pointer<NSZone>) copyWithZone_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSCopying'); |
| NSCopying$Builder.copyWithZone_.implement(builder, copyWithZone_); |
| builder.addProtocol($protocol); |
| return NSCopying.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); |
| } |
| |
| /// Adds the implementation of the NSCopying protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilder( |
| objc.ObjCProtocolBuilder builder, { |
| required objc.ObjCObject Function(ffi.Pointer<NSZone>) copyWithZone_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSCopying$Builder.copyWithZone_.implement(builder, copyWithZone_); |
| builder.addProtocol($protocol); |
| } |
| |
| /// copyWithZone: |
| static final copyWithZone_ = |
| objc.ObjCProtocolMethod<objc.ObjCObject Function(ffi.Pointer<NSZone>)>( |
| _protocol_NSCopying, |
| _sel_copyWithZone_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_18nsem0) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSCopying, |
| _sel_copyWithZone_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (objc.ObjCObject Function(ffi.Pointer<NSZone>) func) => |
| ObjCBlock_objcObjCObjectImpl_ffiVoid_NSZone.fromFunction( |
| (ffi.Pointer<ffi.Void> _, ffi.Pointer<NSZone> arg1) => func(arg1), |
| ), |
| ); |
| } |
| |
| /// NSData |
| extension type NSData._(objc.ObjCObject object$) |
| implements |
| objc.ObjCObject, |
| NSObject, |
| NSCopying, |
| NSMutableCopying, |
| NSSecureCoding { |
| /// Constructs a [NSData] that points to the same underlying object as [other]. |
| NSData.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSData] that wraps the given raw object pointer. |
| NSData.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSData]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSData, |
| ); |
| |
| /// alloc |
| static NSData alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSData, _sel_alloc); |
| return NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSData allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSData, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// data |
| static NSData data() { |
| final $ret = _objc_msgSend_151sglz(_class_NSData, _sel_data); |
| return NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithBytes:length: |
| static NSData dataWithBytes( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| }) { |
| final $ret = _objc_msgSend_3nbx5e( |
| _class_NSData, |
| _sel_dataWithBytes_length_, |
| bytes, |
| length, |
| ); |
| return NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithBytesNoCopy:length: |
| static NSData dataWithBytesNoCopy( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| }) { |
| final $ret = _objc_msgSend_3nbx5e( |
| _class_NSData, |
| _sel_dataWithBytesNoCopy_length_, |
| bytes, |
| length, |
| ); |
| return NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithBytesNoCopy:length:freeWhenDone: |
| static NSData dataWithBytesNoCopy$1( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| required bool freeWhenDone, |
| }) { |
| final $ret = _objc_msgSend_161ne8y( |
| _class_NSData, |
| _sel_dataWithBytesNoCopy_length_freeWhenDone_, |
| bytes, |
| length, |
| freeWhenDone, |
| ); |
| return NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithContentsOfFile: |
| static NSData? dataWithContentsOfFile(NSString path) { |
| final _$$ref = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSData, |
| _sel_dataWithContentsOfFile_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithContentsOfFile:options:error: |
| static NSData? dataWithContentsOfFile$1( |
| NSString path, { |
| required DartNSUInteger options, |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> error, |
| }) { |
| final _$$ref = path.ref; |
| final $ret = _objc_msgSend_8321cp( |
| _class_NSData, |
| _sel_dataWithContentsOfFile_options_error_, |
| _$$ref.pointer, |
| options, |
| error, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithContentsOfURL: |
| static NSData? dataWithContentsOfURL(NSURL url) { |
| final _$$ref = url.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSData, |
| _sel_dataWithContentsOfURL_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithContentsOfURL:options:error: |
| static NSData? dataWithContentsOfURL$1( |
| NSURL url, { |
| required DartNSUInteger options, |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> error, |
| }) { |
| final _$$ref = url.ref; |
| final $ret = _objc_msgSend_8321cp( |
| _class_NSData, |
| _sel_dataWithContentsOfURL_options_error_, |
| _$$ref.pointer, |
| options, |
| error, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithData: |
| static NSData dataWithData(NSData data) { |
| final _$$ref = data.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSData, |
| _sel_dataWithData_, |
| _$$ref.pointer, |
| ); |
| return NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSData new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSData, _sel_new); |
| return NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSData, _sel_supportsSecureCoding); |
| } |
| |
| /// Returns a new instance of NSData constructed with the default `new` method. |
| NSData() : this.as(new$().object$); |
| } |
| |
| extension NSData$Methods on NSData { |
| /// bytes |
| ffi.Pointer<ffi.Void> get bytes { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_bytes); |
| } |
| |
| /// compressedDataUsingAlgorithm:error: |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSData? compressedDataUsingAlgorithm(NSDataCompressionAlgorithm algorithm) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSData.compressedDataUsingAlgorithm:error:', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1vnlaqg( |
| _$$ref.pointer, |
| _sel_compressedDataUsingAlgorithm_error_, |
| algorithm.value, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// decompressedDataUsingAlgorithm:error: |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSData? decompressedDataUsingAlgorithm(NSDataCompressionAlgorithm algorithm) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSData.decompressedDataUsingAlgorithm:error:', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1vnlaqg( |
| _$$ref.pointer, |
| _sel_decompressedDataUsingAlgorithm_error_, |
| algorithm.value, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// init |
| NSData init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSData.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBase64EncodedData:options: |
| NSData? initWithBase64EncodedData( |
| NSData base64Data, { |
| required DartNSUInteger options, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = base64Data.ref; |
| objc.checkOsVersionInternal( |
| 'NSData.initWithBase64EncodedData:options:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_7kpg7m( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBase64EncodedData_options_, |
| _$$ref$1.pointer, |
| options, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBase64EncodedString:options: |
| NSData? initWithBase64EncodedString( |
| NSString base64String, { |
| required DartNSUInteger options, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = base64String.ref; |
| objc.checkOsVersionInternal( |
| 'NSData.initWithBase64EncodedString:options:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_7kpg7m( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBase64EncodedString_options_, |
| _$$ref$1.pointer, |
| options, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytes:length: |
| NSData initWithBytes( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_3nbx5e( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytes_length_, |
| bytes, |
| length, |
| ); |
| return NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytesNoCopy:length: |
| NSData initWithBytesNoCopy( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_3nbx5e( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytesNoCopy_length_, |
| bytes, |
| length, |
| ); |
| return NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytesNoCopy:length:deallocator: |
| NSData initWithBytesNoCopy$1( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong)>? |
| deallocator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = deallocator?.ref; |
| objc.checkOsVersionInternal( |
| 'NSData.initWithBytesNoCopy:length:deallocator:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_134vhyh( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytesNoCopy_length_deallocator_, |
| bytes, |
| length, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytesNoCopy:length:freeWhenDone: |
| NSData initWithBytesNoCopy$2( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| required bool freeWhenDone, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_161ne8y( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytesNoCopy_length_freeWhenDone_, |
| bytes, |
| length, |
| freeWhenDone, |
| ); |
| return NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSData? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfFile: |
| NSData? initWithContentsOfFile(NSString path) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfFile_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfFile:options:error: |
| NSData? initWithContentsOfFile$1( |
| NSString path, { |
| required DartNSUInteger options, |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> error, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $ret = _objc_msgSend_8321cp( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfFile_options_error_, |
| _$$ref$1.pointer, |
| options, |
| error, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfURL: |
| NSData? initWithContentsOfURL(NSURL url) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfURL_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfURL:options:error: |
| NSData? initWithContentsOfURL$1( |
| NSURL url, { |
| required DartNSUInteger options, |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> error, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| final $ret = _objc_msgSend_8321cp( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfURL_options_error_, |
| _$$ref$1.pointer, |
| options, |
| error, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithData: |
| NSData initWithData(NSData data) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = data.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithData_, |
| _$$ref$1.pointer, |
| ); |
| return NSData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// length |
| DartNSUInteger get length { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_length); |
| } |
| } |
| |
| sealed class NSDataBase64DecodingOptions { |
| static const NSDataBase64DecodingIgnoreUnknownCharacters = 1; |
| } |
| |
| /// NSDataBase64Encoding |
| extension NSDataBase64Encoding on NSData { |
| /// base64EncodedDataWithOptions: |
| NSData base64EncodedDataWithOptions(DartNSUInteger options) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSData.base64EncodedDataWithOptions:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_ylninc( |
| _$$ref.pointer, |
| _sel_base64EncodedDataWithOptions_, |
| options, |
| ); |
| return NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// base64EncodedStringWithOptions: |
| NSString base64EncodedStringWithOptions(DartNSUInteger options) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSData.base64EncodedStringWithOptions:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_ylninc( |
| _$$ref.pointer, |
| _sel_base64EncodedStringWithOptions_, |
| options, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| sealed class NSDataBase64EncodingOptions { |
| static const NSDataBase64Encoding64CharacterLineLength = 1; |
| static const NSDataBase64Encoding76CharacterLineLength = 2; |
| static const NSDataBase64EncodingEndLineWithCarriageReturn = 16; |
| static const NSDataBase64EncodingEndLineWithLineFeed = 32; |
| } |
| |
| /// NSDataCompression |
| extension NSDataCompression on NSData {} |
| |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| enum NSDataCompressionAlgorithm { |
| NSDataCompressionAlgorithmLZFSE(0), |
| NSDataCompressionAlgorithmLZ4(1), |
| NSDataCompressionAlgorithmLZMA(2), |
| NSDataCompressionAlgorithmZlib(3); |
| |
| final int value; |
| const NSDataCompressionAlgorithm(this.value); |
| |
| static NSDataCompressionAlgorithm fromValue(int value) => switch (value) { |
| 0 => NSDataCompressionAlgorithmLZFSE, |
| 1 => NSDataCompressionAlgorithmLZ4, |
| 2 => NSDataCompressionAlgorithmLZMA, |
| 3 => NSDataCompressionAlgorithmZlib, |
| _ => throw ArgumentError( |
| 'Unknown value for NSDataCompressionAlgorithm: $value', |
| ), |
| }; |
| } |
| |
| /// NSDataCreation |
| extension NSDataCreation on NSData {} |
| |
| sealed class NSDataReadingOptions { |
| static const NSDataReadingMappedIfSafe = 1; |
| static const NSDataReadingUncached = 2; |
| static const NSDataReadingMappedAlways = 8; |
| static const NSDataReadingMapped = 1; |
| static const NSMappedRead = 1; |
| static const NSUncachedRead = 2; |
| } |
| |
| sealed class NSDataSearchOptions { |
| static const NSDataSearchBackwards = 1; |
| static const NSDataSearchAnchored = 2; |
| } |
| |
| sealed class NSDataWritingOptions { |
| static const NSDataWritingAtomic = 1; |
| static const NSDataWritingWithoutOverwriting = 2; |
| static const NSDataWritingFileProtectionNone = 268435456; |
| static const NSDataWritingFileProtectionComplete = 536870912; |
| static const NSDataWritingFileProtectionCompleteUnlessOpen = 805306368; |
| static const NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication = |
| 1073741824; |
| static const NSDataWritingFileProtectionCompleteWhenUserInactive = 1342177280; |
| static const NSDataWritingFileProtectionMask = 4026531840; |
| static const NSAtomicWrite = 1; |
| } |
| |
| /// NSDate |
| extension type NSDate._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject, NSCopying, NSSecureCoding { |
| /// Constructs a [NSDate] that points to the same underlying object as [other]. |
| NSDate.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSDate] that wraps the given raw object pointer. |
| NSDate.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSDate]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSDate, |
| ); |
| |
| /// alloc |
| static NSDate alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_alloc); |
| return NSDate.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSDate allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSDate, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSDate.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// date |
| static NSDate date() { |
| final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_date); |
| return NSDate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dateWithTimeInterval:sinceDate: |
| static NSDate dateWithTimeInterval( |
| double secsToBeAdded, { |
| required NSDate sinceDate, |
| }) { |
| final _$$ref = sinceDate.ref; |
| final $ret = _objc_msgSend_1ozwf6k( |
| _class_NSDate, |
| _sel_dateWithTimeInterval_sinceDate_, |
| secsToBeAdded, |
| _$$ref.pointer, |
| ); |
| return NSDate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dateWithTimeIntervalSince1970: |
| static NSDate dateWithTimeIntervalSince1970(double secs) { |
| final $ret = _objc_msgSend_oa8mke( |
| _class_NSDate, |
| _sel_dateWithTimeIntervalSince1970_, |
| secs, |
| ); |
| return NSDate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dateWithTimeIntervalSinceNow: |
| static NSDate dateWithTimeIntervalSinceNow(double secs) { |
| final $ret = _objc_msgSend_oa8mke( |
| _class_NSDate, |
| _sel_dateWithTimeIntervalSinceNow_, |
| secs, |
| ); |
| return NSDate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dateWithTimeIntervalSinceReferenceDate: |
| static NSDate dateWithTimeIntervalSinceReferenceDate(double ti) { |
| final $ret = _objc_msgSend_oa8mke( |
| _class_NSDate, |
| _sel_dateWithTimeIntervalSinceReferenceDate_, |
| ti, |
| ); |
| return NSDate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSDate new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_new); |
| return NSDate.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSDate, _sel_supportsSecureCoding); |
| } |
| |
| /// Returns a new instance of NSDate constructed with the default `new` method. |
| NSDate() : this.as(new$().object$); |
| } |
| |
| extension NSDate$Methods on NSDate { |
| /// dateByAddingTimeInterval: |
| NSDate dateByAddingTimeInterval(double ti) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSDate.dateByAddingTimeInterval:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_oa8mke( |
| _$$ref.pointer, |
| _sel_dateByAddingTimeInterval_, |
| ti, |
| ); |
| return NSDate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// init |
| NSDate init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSDate.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSDate.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSDate? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSDate.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithTimeInterval:sinceDate: |
| NSDate initWithTimeInterval( |
| double secsToBeAdded, { |
| required NSDate sinceDate, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = sinceDate.ref; |
| final $ret = _objc_msgSend_1ozwf6k( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithTimeInterval_sinceDate_, |
| secsToBeAdded, |
| _$$ref$1.pointer, |
| ); |
| return NSDate.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithTimeIntervalSince1970: |
| NSDate initWithTimeIntervalSince1970(double secs) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_oa8mke( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithTimeIntervalSince1970_, |
| secs, |
| ); |
| return NSDate.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithTimeIntervalSinceNow: |
| NSDate initWithTimeIntervalSinceNow(double secs) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_oa8mke( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithTimeIntervalSinceNow_, |
| secs, |
| ); |
| return NSDate.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithTimeIntervalSinceReferenceDate: |
| NSDate initWithTimeIntervalSinceReferenceDate(double ti) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_oa8mke( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithTimeIntervalSinceReferenceDate_, |
| ti, |
| ); |
| return NSDate.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// timeIntervalSinceReferenceDate |
| double get timeIntervalSinceReferenceDate { |
| final _$$ref = object$.ref; |
| return objc.useMsgSendVariants |
| ? _objc_msgSend_1ukqyt8Fpret( |
| _$$ref.pointer, |
| _sel_timeIntervalSinceReferenceDate, |
| ) |
| : _objc_msgSend_1ukqyt8( |
| _$$ref.pointer, |
| _sel_timeIntervalSinceReferenceDate, |
| ); |
| } |
| } |
| |
| /// NSDateCreation |
| extension NSDateCreation on NSDate { |
| /// distantFuture |
| static NSDate getDistantFuture() { |
| final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantFuture); |
| return NSDate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// distantPast |
| static NSDate getDistantPast() { |
| final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantPast); |
| return NSDate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| static NSDate getNow() { |
| objc.checkOsVersionInternal( |
| 'NSDate.now', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_now); |
| return NSDate.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| enum NSDecodingFailurePolicy { |
| NSDecodingFailurePolicyRaiseException(0), |
| NSDecodingFailurePolicySetErrorAndReturn(1); |
| |
| final int value; |
| const NSDecodingFailurePolicy(this.value); |
| |
| static NSDecodingFailurePolicy fromValue(int value) => switch (value) { |
| 0 => NSDecodingFailurePolicyRaiseException, |
| 1 => NSDecodingFailurePolicySetErrorAndReturn, |
| _ => throw ArgumentError( |
| 'Unknown value for NSDecodingFailurePolicy: $value', |
| ), |
| }; |
| } |
| |
| /// NSDictionary |
| extension type NSDictionary._(objc.ObjCObject object$) |
| implements |
| objc.ObjCObject, |
| NSObject, |
| NSCopying, |
| NSMutableCopying, |
| NSSecureCoding, |
| NSFastEnumeration { |
| /// Creates a [NSDictionary] from [other]. |
| static NSDictionary of(Map<NSCopying, objc.ObjCObject> other) => |
| NSMutableDictionary.of(other); |
| |
| /// Creates a [NSDictionary] from [entries]. |
| static NSDictionary fromEntries( |
| Iterable<MapEntry<NSCopying, objc.ObjCObject>> entries, |
| ) => NSMutableDictionary.fromEntries(entries); |
| |
| /// Constructs a [NSDictionary] that points to the same underlying object as [other]. |
| NSDictionary.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSDictionary] that wraps the given raw object pointer. |
| NSDictionary.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSDictionary]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSDictionary, |
| ); |
| |
| /// alloc |
| static NSDictionary alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_alloc); |
| return NSDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSDictionary allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSDictionary, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// dictionary |
| static NSDictionary dictionary() { |
| final $ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_dictionary); |
| return NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dictionaryWithDictionary: |
| static NSDictionary dictionaryWithDictionary(NSDictionary dict) { |
| final _$$ref = dict.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSDictionary, |
| _sel_dictionaryWithDictionary_, |
| _$$ref.pointer, |
| ); |
| return NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dictionaryWithObject:forKey: |
| static NSDictionary dictionaryWithObject( |
| objc.ObjCObject object, { |
| required NSCopying forKey, |
| }) { |
| final _$$ref = object.ref; |
| final _$$ref$1 = forKey.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _class_NSDictionary, |
| _sel_dictionaryWithObject_forKey_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| ); |
| return NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dictionaryWithObjects:forKeys: |
| static NSDictionary dictionaryWithObjects( |
| NSArray objects, { |
| required NSArray forKeys, |
| }) { |
| final _$$ref = objects.ref; |
| final _$$ref$1 = forKeys.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _class_NSDictionary, |
| _sel_dictionaryWithObjects_forKeys_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| ); |
| return NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dictionaryWithObjects:forKeys:count: |
| static NSDictionary dictionaryWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> forKeys, |
| required DartNSUInteger count, |
| }) { |
| final $ret = _objc_msgSend_1dydpdi( |
| _class_NSDictionary, |
| _sel_dictionaryWithObjects_forKeys_count_, |
| objects, |
| forKeys, |
| count, |
| ); |
| return NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dictionaryWithObjectsAndKeys: |
| static NSDictionary dictionaryWithObjectsAndKeys( |
| objc.ObjCObject firstObject, |
| ) { |
| final _$$ref = firstObject.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSDictionary, |
| _sel_dictionaryWithObjectsAndKeys_, |
| _$$ref.pointer, |
| ); |
| return NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSDictionary new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_new); |
| return NSDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSDictionary, _sel_supportsSecureCoding); |
| } |
| |
| /// Returns a new instance of NSDictionary constructed with the default `new` method. |
| NSDictionary() : this.as(new$().object$); |
| } |
| |
| extension NSDictionary$Methods on NSDictionary { |
| /// count |
| DartNSUInteger get count { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_count); |
| } |
| |
| /// countByEnumeratingWithState:objects:count: |
| DartNSUInteger countByEnumeratingWithState( |
| ffi.Pointer<NSFastEnumerationState> state, { |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1b5ysjl( |
| _$$ref.pointer, |
| _sel_countByEnumeratingWithState_objects_count_, |
| state, |
| objects, |
| count, |
| ); |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// init |
| NSDictionary init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSDictionary.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSDictionary? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithDictionary: |
| NSDictionary initWithDictionary(NSDictionary otherDictionary) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherDictionary.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithDictionary_, |
| _$$ref$1.pointer, |
| ); |
| return NSDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithDictionary:copyItems: |
| NSDictionary initWithDictionary$1( |
| NSDictionary otherDictionary, { |
| required bool copyItems, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherDictionary.ref; |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithDictionary_copyItems_, |
| _$$ref$1.pointer, |
| copyItems, |
| ); |
| return NSDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects:forKeys: |
| NSDictionary initWithObjects(NSArray objects, {required NSArray forKeys}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = objects.ref; |
| final _$$ref$2 = forKeys.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_forKeys_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| return NSDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects:forKeys:count: |
| NSDictionary initWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> forKeys, |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1dydpdi( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_forKeys_count_, |
| objects, |
| forKeys, |
| count, |
| ); |
| return NSDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjectsAndKeys: |
| NSDictionary initWithObjectsAndKeys(objc.ObjCObject firstObject) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = firstObject.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjectsAndKeys_, |
| _$$ref$1.pointer, |
| ); |
| return NSDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// keyEnumerator |
| NSEnumerator keyEnumerator() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_keyEnumerator); |
| return NSEnumerator.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// objectForKey: |
| objc.ObjCObject? objectForKey(objc.ObjCObject aKey) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aKey.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_objectForKey_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSDictionaryCreation |
| extension NSDictionaryCreation on NSDictionary { |
| /// initWithContentsOfURL:error: |
| NSDictionary? initWithContentsOfURL(NSURL url) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| objc.checkOsVersionInternal( |
| 'NSDictionary.initWithContentsOfURL:error:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1lhpu4m( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfURL_error_, |
| _$$ref$1.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSDictionary.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// dictionaryWithContentsOfURL:error: |
| static NSDictionary? dictionaryWithContentsOfURL(NSURL url) { |
| final _$$ref = url.ref; |
| objc.checkOsVersionInternal( |
| 'NSDictionary.dictionaryWithContentsOfURL:error:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1lhpu4m( |
| _class_NSDictionary, |
| _sel_dictionaryWithContentsOfURL_error_, |
| _$$ref.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSDictionary.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| } |
| |
| final class NSEdgeInsets extends ffi.Struct { |
| @ffi.Double() |
| external double top; |
| |
| @ffi.Double() |
| external double left; |
| |
| @ffi.Double() |
| external double bottom; |
| |
| @ffi.Double() |
| external double right; |
| |
| static ffi.Pointer<NSEdgeInsets> $allocate( |
| ffi.Allocator $allocator, { |
| required double top, |
| required double left, |
| required double bottom, |
| required double right, |
| }) => $allocator<NSEdgeInsets>() |
| ..ref.top = top |
| ..ref.left = left |
| ..ref.bottom = bottom |
| ..ref.right = right; |
| } |
| |
| sealed class NSEnumerationOptions { |
| static const NSEnumerationConcurrent = 1; |
| static const NSEnumerationReverse = 2; |
| } |
| |
| /// NSEnumerator |
| extension type NSEnumerator._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject, NSFastEnumeration { |
| /// Constructs a [NSEnumerator] that points to the same underlying object as [other]. |
| NSEnumerator.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSEnumerator] that wraps the given raw object pointer. |
| NSEnumerator.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSEnumerator]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSEnumerator, |
| ); |
| |
| /// alloc |
| static NSEnumerator alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSEnumerator, _sel_alloc); |
| return NSEnumerator.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSEnumerator allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSEnumerator, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSEnumerator.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSEnumerator new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSEnumerator, _sel_new); |
| return NSEnumerator.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of NSEnumerator constructed with the default `new` method. |
| NSEnumerator() : this.as(new$().object$); |
| } |
| |
| extension NSEnumerator$Methods on NSEnumerator { |
| /// countByEnumeratingWithState:objects:count: |
| DartNSUInteger countByEnumeratingWithState( |
| ffi.Pointer<NSFastEnumerationState> state, { |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1b5ysjl( |
| _$$ref.pointer, |
| _sel_countByEnumeratingWithState_objects_count_, |
| state, |
| objects, |
| count, |
| ); |
| } |
| |
| /// init |
| NSEnumerator init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSEnumerator.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSEnumerator.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// nextObject |
| objc.ObjCObject? nextObject() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_nextObject); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSError |
| extension type NSError._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject, NSCopying, NSSecureCoding { |
| /// Constructs a [NSError] that points to the same underlying object as [other]. |
| NSError.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSError] that wraps the given raw object pointer. |
| NSError.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSError]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSError, |
| ); |
| |
| /// alloc |
| static NSError alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSError, _sel_alloc); |
| return NSError.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSError allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSError, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSError.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// errorWithDomain:code:userInfo: |
| static NSError errorWithDomain( |
| NSString domain, { |
| required int code, |
| NSDictionary? userInfo, |
| }) { |
| final _$$ref = domain.ref; |
| final _$$ref$1 = userInfo?.ref; |
| final $ret = _objc_msgSend_rc4ypv( |
| _class_NSError, |
| _sel_errorWithDomain_code_userInfo_, |
| _$$ref.pointer, |
| code, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSError.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSError new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSError, _sel_new); |
| return NSError.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// setUserInfoValueProviderForDomain:provider: |
| static void setUserInfoValueProviderForDomain( |
| NSString errorDomain, { |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl>? Function(NSError, NSString) |
| >? |
| provider, |
| }) { |
| final _$$ref = errorDomain.ref; |
| final _$$ref$1 = provider?.ref; |
| objc.checkOsVersionInternal( |
| 'NSError.setUserInfoValueProviderForDomain:provider:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| _objc_msgSend_o762yo( |
| _class_NSError, |
| _sel_setUserInfoValueProviderForDomain_provider_, |
| _$$ref.pointer, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSError, _sel_supportsSecureCoding); |
| } |
| |
| /// userInfoValueProviderForDomain: |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl>? Function(NSError, NSString) |
| >? |
| userInfoValueProviderForDomain_( |
| NSError err, { |
| required NSString userInfoKey, |
| required NSString errorDomain, |
| }) { |
| final _$$ref = err.ref; |
| final _$$ref$1 = userInfoKey.ref; |
| final _$$ref$2 = errorDomain.ref; |
| objc.checkOsVersionInternal( |
| 'NSError.userInfoValueProviderForDomain:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_cnxxyq( |
| _class_NSError, |
| _sel_userInfoValueProviderForDomain_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : ObjCBlock_objcObjCObjectImpl_NSError_NSErrorUserInfoKey.fromPointer( |
| $ret, |
| retain: true, |
| release: true, |
| ); |
| } |
| |
| /// Returns a new instance of NSError constructed with the default `new` method. |
| NSError() : this.as(new$().object$); |
| } |
| |
| extension NSError$Methods on NSError { |
| /// code |
| int get code { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_code); |
| } |
| |
| /// domain |
| NSString get domain { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_domain); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// helpAnchor |
| NSString? get helpAnchor { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_helpAnchor); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// init |
| NSError init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSError.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSError.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSError? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSError.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithDomain:code:userInfo: |
| NSError initWithDomain( |
| NSString domain, { |
| required int code, |
| NSDictionary? userInfo, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = domain.ref; |
| final _$$ref$2 = userInfo?.ref; |
| final $ret = _objc_msgSend_rc4ypv( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithDomain_code_userInfo_, |
| _$$ref$1.pointer, |
| code, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSError.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// localizedDescription |
| NSString get localizedDescription { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_localizedDescription, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedFailureReason |
| NSString? get localizedFailureReason { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_localizedFailureReason, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedRecoveryOptions |
| NSArray? get localizedRecoveryOptions { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_localizedRecoveryOptions, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedRecoverySuggestion |
| NSString? get localizedRecoverySuggestion { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_localizedRecoverySuggestion, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// recoveryAttempter |
| objc.ObjCObject? get recoveryAttempter { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_recoveryAttempter); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// iOS: introduced 14.5.0 |
| /// macOS: introduced 11.3.0 |
| NSArray get underlyingErrors { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSError.underlyingErrors', |
| iOS: (false, (14, 5, 0)), |
| macOS: (false, (11, 3, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_underlyingErrors); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// userInfo |
| NSDictionary get userInfo { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_userInfo); |
| return NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSExtendedArray |
| extension NSExtendedArray on NSArray { |
| /// arrayByAddingObject: |
| NSArray arrayByAddingObject(objc.ObjCObject anObject) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_arrayByAddingObject_, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// arrayByAddingObjectsFromArray: |
| NSArray arrayByAddingObjectsFromArray(NSArray otherArray) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherArray.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_arrayByAddingObjectsFromArray_, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// componentsJoinedByString: |
| NSString componentsJoinedByString(NSString separator) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = separator.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_componentsJoinedByString_, |
| _$$ref$1.pointer, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// containsObject: |
| bool containsObject(objc.ObjCObject anObject) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_containsObject_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// description |
| NSString get description$1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_description); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// descriptionWithLocale: |
| NSString descriptionWithLocale(objc.ObjCObject? locale) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = locale?.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_descriptionWithLocale_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// descriptionWithLocale:indent: |
| NSString descriptionWithLocale$1( |
| objc.ObjCObject? locale, { |
| required DartNSUInteger indent, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = locale?.ref; |
| final $ret = _objc_msgSend_1k4kd9s( |
| _$$ref.pointer, |
| _sel_descriptionWithLocale_indent_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| indent, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// enumerateObjectsAtIndexes:options:usingBlock: |
| void enumerateObjectsAtIndexes( |
| NSIndexSet s, { |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = s.ref; |
| final _$$ref$2 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.enumerateObjectsAtIndexes:options:usingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_a3wp08( |
| _$$ref.pointer, |
| _sel_enumerateObjectsAtIndexes_options_usingBlock_, |
| _$$ref$1.pointer, |
| options, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// enumerateObjectsUsingBlock: |
| void enumerateObjectsUsingBlock( |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| block, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = block.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.enumerateObjectsUsingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_f167m6( |
| _$$ref.pointer, |
| _sel_enumerateObjectsUsingBlock_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// enumerateObjectsWithOptions:usingBlock: |
| void enumerateObjectsWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.enumerateObjectsWithOptions:usingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_yx8yc6( |
| _$$ref.pointer, |
| _sel_enumerateObjectsWithOptions_usingBlock_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// firstObject |
| objc.ObjCObject? get firstObject { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.firstObject', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_firstObject); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// firstObjectCommonWithArray: |
| objc.ObjCObject? firstObjectCommonWithArray(NSArray otherArray) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherArray.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_firstObjectCommonWithArray_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// getObjects:range: |
| void getObjects( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required NSRange range, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_o16d3k( |
| _$$ref.pointer, |
| _sel_getObjects_range_, |
| objects, |
| range, |
| ); |
| } |
| |
| /// indexOfObject: |
| DartNSUInteger indexOfObject(objc.ObjCObject anObject) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| return _objc_msgSend_1vd1c5m( |
| _$$ref.pointer, |
| _sel_indexOfObject_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// indexOfObject:inRange: |
| DartNSUInteger indexOfObject$1( |
| objc.ObjCObject anObject, { |
| required NSRange inRange, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| return _objc_msgSend_zug4wi( |
| _$$ref.pointer, |
| _sel_indexOfObject_inRange_, |
| _$$ref$1.pointer, |
| inRange, |
| ); |
| } |
| |
| /// indexOfObject:inSortedRange:options:usingComparator: |
| DartNSUInteger indexOfObject$2( |
| objc.ObjCObject obj, { |
| required NSRange inSortedRange, |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| usingComparator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = obj.ref; |
| final _$$ref$2 = usingComparator.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.indexOfObject:inSortedRange:options:usingComparator:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| return _objc_msgSend_kshx9d( |
| _$$ref.pointer, |
| _sel_indexOfObject_inSortedRange_options_usingComparator_, |
| _$$ref$1.pointer, |
| inSortedRange, |
| options, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// indexOfObjectAtIndexes:options:passingTest: |
| DartNSUInteger indexOfObjectAtIndexes( |
| NSIndexSet s, { |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = s.ref; |
| final _$$ref$2 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.indexOfObjectAtIndexes:options:passingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| return _objc_msgSend_k1x6mt( |
| _$$ref.pointer, |
| _sel_indexOfObjectAtIndexes_options_passingTest_, |
| _$$ref$1.pointer, |
| options, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// indexOfObjectIdenticalTo: |
| DartNSUInteger indexOfObjectIdenticalTo(objc.ObjCObject anObject) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| return _objc_msgSend_1vd1c5m( |
| _$$ref.pointer, |
| _sel_indexOfObjectIdenticalTo_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// indexOfObjectIdenticalTo:inRange: |
| DartNSUInteger indexOfObjectIdenticalTo$1( |
| objc.ObjCObject anObject, { |
| required NSRange inRange, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| return _objc_msgSend_zug4wi( |
| _$$ref.pointer, |
| _sel_indexOfObjectIdenticalTo_inRange_, |
| _$$ref$1.pointer, |
| inRange, |
| ); |
| } |
| |
| /// indexOfObjectPassingTest: |
| DartNSUInteger indexOfObjectPassingTest( |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| predicate, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = predicate.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.indexOfObjectPassingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| return _objc_msgSend_10mlopr( |
| _$$ref.pointer, |
| _sel_indexOfObjectPassingTest_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// indexOfObjectWithOptions:passingTest: |
| DartNSUInteger indexOfObjectWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.indexOfObjectWithOptions:passingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| return _objc_msgSend_1698hqz( |
| _$$ref.pointer, |
| _sel_indexOfObjectWithOptions_passingTest_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// indexesOfObjectsAtIndexes:options:passingTest: |
| NSIndexSet indexesOfObjectsAtIndexes( |
| NSIndexSet s, { |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = s.ref; |
| final _$$ref$2 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.indexesOfObjectsAtIndexes:options:passingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_1i9v144( |
| _$$ref.pointer, |
| _sel_indexesOfObjectsAtIndexes_options_passingTest_, |
| _$$ref$1.pointer, |
| options, |
| _$$ref$2.pointer, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// indexesOfObjectsPassingTest: |
| NSIndexSet indexesOfObjectsPassingTest( |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| predicate, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = predicate.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.indexesOfObjectsPassingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_nnxkei( |
| _$$ref.pointer, |
| _sel_indexesOfObjectsPassingTest_, |
| _$$ref$1.pointer, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// indexesOfObjectsWithOptions:passingTest: |
| NSIndexSet indexesOfObjectsWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.indexesOfObjectsWithOptions:passingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_13x5boi( |
| _$$ref.pointer, |
| _sel_indexesOfObjectsWithOptions_passingTest_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// isEqualToArray: |
| bool isEqualToArray(NSArray otherArray) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherArray.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isEqualToArray_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// lastObject |
| objc.ObjCObject? get lastObject { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastObject); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// makeObjectsPerformSelector: |
| void makeObjectsPerformSelector(ffi.Pointer<objc.ObjCSelector> aSelector) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1d9e4oe( |
| _$$ref.pointer, |
| _sel_makeObjectsPerformSelector_, |
| aSelector, |
| ); |
| } |
| |
| /// makeObjectsPerformSelector:withObject: |
| void makeObjectsPerformSelector$1( |
| ffi.Pointer<objc.ObjCSelector> aSelector, { |
| objc.ObjCObject? withObject, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = withObject?.ref; |
| _objc_msgSend_1qv0eq4( |
| _$$ref.pointer, |
| _sel_makeObjectsPerformSelector_withObject_, |
| aSelector, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// objectAtIndexedSubscript: |
| objc.ObjCObject objectAtIndexedSubscript(DartNSUInteger idx) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.objectAtIndexedSubscript:', |
| iOS: (false, (6, 0, 0)), |
| macOS: (false, (10, 8, 0)), |
| ); |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.pointer, |
| _sel_objectAtIndexedSubscript_, |
| idx, |
| ); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// objectEnumerator |
| NSEnumerator objectEnumerator() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_objectEnumerator); |
| return NSEnumerator.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// objectsAtIndexes: |
| NSArray objectsAtIndexes(NSIndexSet indexes) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = indexes.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_objectsAtIndexes_, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// reverseObjectEnumerator |
| NSEnumerator reverseObjectEnumerator() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_reverseObjectEnumerator, |
| ); |
| return NSEnumerator.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// sortedArrayHint |
| NSData get sortedArrayHint { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_sortedArrayHint); |
| return NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// sortedArrayUsingComparator: |
| NSArray sortedArrayUsingComparator( |
| objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| cmptr, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = cmptr.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.sortedArrayUsingComparator:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_nnxkei( |
| _$$ref.pointer, |
| _sel_sortedArrayUsingComparator_, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// sortedArrayUsingFunction:context: |
| NSArray sortedArrayUsingFunction( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| > |
| comparator, { |
| required ffi.Pointer<ffi.Void> context, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_pckm9h( |
| _$$ref.pointer, |
| _sel_sortedArrayUsingFunction_context_, |
| comparator, |
| context, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// sortedArrayUsingFunction:context:hint: |
| NSArray sortedArrayUsingFunction$1( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| > |
| comparator, { |
| required ffi.Pointer<ffi.Void> context, |
| NSData? hint, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = hint?.ref; |
| final $ret = _objc_msgSend_1fpqavf( |
| _$$ref.pointer, |
| _sel_sortedArrayUsingFunction_context_hint_, |
| comparator, |
| context, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// sortedArrayUsingSelector: |
| NSArray sortedArrayUsingSelector(ffi.Pointer<objc.ObjCSelector> comparator) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_3ctkt6( |
| _$$ref.pointer, |
| _sel_sortedArrayUsingSelector_, |
| comparator, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// sortedArrayWithOptions:usingComparator: |
| NSArray sortedArrayWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| usingComparator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingComparator.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.sortedArrayWithOptions:usingComparator:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_1x5ew3h( |
| _$$ref.pointer, |
| _sel_sortedArrayWithOptions_usingComparator_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// subarrayWithRange: |
| NSArray subarrayWithRange(NSRange range) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1k1o1s7( |
| _$$ref.pointer, |
| _sel_subarrayWithRange_, |
| range, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// writeToURL:error: |
| bool writeToURL(NSURL url) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| objc.checkOsVersionInternal( |
| 'NSArray.writeToURL:error:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_l9p60w( |
| _$$ref.pointer, |
| _sel_writeToURL_error_, |
| _$$ref$1.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret; |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| } |
| |
| /// NSExtendedAttributedString |
| extension NSExtendedAttributedString on NSAttributedString { |
| /// attribute:atIndex:effectiveRange: |
| objc.ObjCObject? attribute( |
| NSString attrName, { |
| required DartNSUInteger atIndex, |
| required ffi.Pointer<NSRange> effectiveRange, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = attrName.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.attribute:atIndex:effectiveRange:', |
| iOS: (false, (3, 2, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_7km9vu( |
| _$$ref.pointer, |
| _sel_attribute_atIndex_effectiveRange_, |
| _$$ref$1.pointer, |
| atIndex, |
| effectiveRange, |
| ); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// attribute:atIndex:longestEffectiveRange:inRange: |
| objc.ObjCObject? attribute$1( |
| NSString attrName, { |
| required DartNSUInteger atIndex, |
| required ffi.Pointer<NSRange> longestEffectiveRange, |
| required NSRange inRange, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = attrName.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.attribute:atIndex:longestEffectiveRange:inRange:', |
| iOS: (false, (3, 2, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_1k1akuq( |
| _$$ref.pointer, |
| _sel_attribute_atIndex_longestEffectiveRange_inRange_, |
| _$$ref$1.pointer, |
| atIndex, |
| longestEffectiveRange, |
| inRange, |
| ); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// attributedSubstringFromRange: |
| NSAttributedString attributedSubstringFromRange(NSRange range) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.attributedSubstringFromRange:', |
| iOS: (false, (3, 2, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_1k1o1s7( |
| _$$ref.pointer, |
| _sel_attributedSubstringFromRange_, |
| range, |
| ); |
| return NSAttributedString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// attributesAtIndex:longestEffectiveRange:inRange: |
| NSDictionary attributesAtIndex$1( |
| DartNSUInteger location, { |
| required ffi.Pointer<NSRange> longestEffectiveRange, |
| required NSRange inRange, |
| }) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.attributesAtIndex:longestEffectiveRange:inRange:', |
| iOS: (false, (3, 2, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_1pp2gs8( |
| _$$ref.pointer, |
| _sel_attributesAtIndex_longestEffectiveRange_inRange_, |
| location, |
| longestEffectiveRange, |
| inRange, |
| ); |
| return NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// enumerateAttribute:inRange:options:usingBlock: |
| void enumerateAttribute( |
| NSString attrName, { |
| required NSRange inRange, |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>?, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = attrName.ref; |
| final _$$ref$2 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.enumerateAttribute:inRange:options:usingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_ipgwfh( |
| _$$ref.pointer, |
| _sel_enumerateAttribute_inRange_options_usingBlock_, |
| _$$ref$1.pointer, |
| inRange, |
| options, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// enumerateAttributesInRange:options:usingBlock: |
| void enumerateAttributesInRange( |
| NSRange enumerationRange, { |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.enumerateAttributesInRange:options:usingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_1kok4b( |
| _$$ref.pointer, |
| _sel_enumerateAttributesInRange_options_usingBlock_, |
| enumerationRange, |
| options, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// isEqualToAttributedString: |
| bool isEqualToAttributedString(NSAttributedString other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.isEqualToAttributedString:', |
| iOS: (false, (3, 2, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isEqualToAttributedString_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// length |
| DartNSUInteger get length { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSAttributedString.length', |
| iOS: (false, (3, 2, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_length); |
| } |
| } |
| |
| /// NSExtendedData |
| extension NSExtendedData on NSData { |
| /// description |
| NSString get description$1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_description); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// enumerateByteRangesUsingBlock: |
| void enumerateByteRangesUsingBlock( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| block, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = block.ref; |
| objc.checkOsVersionInternal( |
| 'NSData.enumerateByteRangesUsingBlock:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_f167m6( |
| _$$ref.pointer, |
| _sel_enumerateByteRangesUsingBlock_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// getBytes:length: |
| void getBytes( |
| ffi.Pointer<ffi.Void> buffer, { |
| required DartNSUInteger length, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_zuf90e(_$$ref.pointer, _sel_getBytes_length_, buffer, length); |
| } |
| |
| /// getBytes:range: |
| void getBytes$1(ffi.Pointer<ffi.Void> buffer, {required NSRange range}) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_xpqfd7(_$$ref.pointer, _sel_getBytes_range_, buffer, range); |
| } |
| |
| /// isEqualToData: |
| bool isEqualToData(NSData other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isEqualToData_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// rangeOfData:options:range: |
| NSRange rangeOfData( |
| NSData dataToFind, { |
| required DartNSUInteger options, |
| required NSRange range, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = dataToFind.ref; |
| objc.checkOsVersionInternal( |
| 'NSData.rangeOfData:options:range:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| return _objc_msgSend_1d8s65w( |
| _$$ref.pointer, |
| _sel_rangeOfData_options_range_, |
| _$$ref$1.pointer, |
| options, |
| range, |
| ); |
| } |
| |
| /// subdataWithRange: |
| NSData subdataWithRange(NSRange range) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1k1o1s7( |
| _$$ref.pointer, |
| _sel_subdataWithRange_, |
| range, |
| ); |
| return NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// writeToFile:atomically: |
| bool writeToFile(NSString path, {required bool atomically}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| return _objc_msgSend_1iyq28l( |
| _$$ref.pointer, |
| _sel_writeToFile_atomically_, |
| _$$ref$1.pointer, |
| atomically, |
| ); |
| } |
| |
| /// writeToFile:options:error: |
| bool writeToFile$1( |
| NSString path, { |
| required DartNSUInteger options, |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> error, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| return _objc_msgSend_1xi08ar( |
| _$$ref.pointer, |
| _sel_writeToFile_options_error_, |
| _$$ref$1.pointer, |
| options, |
| error, |
| ); |
| } |
| |
| /// writeToURL:atomically: |
| bool writeToURL(NSURL url, {required bool atomically}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| return _objc_msgSend_1iyq28l( |
| _$$ref.pointer, |
| _sel_writeToURL_atomically_, |
| _$$ref$1.pointer, |
| atomically, |
| ); |
| } |
| |
| /// writeToURL:options:error: |
| bool writeToURL$1( |
| NSURL url, { |
| required DartNSUInteger options, |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> error, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| return _objc_msgSend_1xi08ar( |
| _$$ref.pointer, |
| _sel_writeToURL_options_error_, |
| _$$ref$1.pointer, |
| options, |
| error, |
| ); |
| } |
| } |
| |
| /// NSExtendedDate |
| extension NSExtendedDate on NSDate { |
| /// compare: |
| NSComparisonResult compare(NSDate other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| final $ret = _objc_msgSend_1ym6zyw( |
| _$$ref.pointer, |
| _sel_compare_, |
| _$$ref$1.pointer, |
| ); |
| return NSComparisonResult.fromValue($ret); |
| } |
| |
| /// description |
| NSString get description$1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_description); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// descriptionWithLocale: |
| NSString descriptionWithLocale(objc.ObjCObject? locale) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = locale?.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_descriptionWithLocale_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// earlierDate: |
| NSDate earlierDate(NSDate anotherDate) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anotherDate.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_earlierDate_, |
| _$$ref$1.pointer, |
| ); |
| return NSDate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// isEqualToDate: |
| bool isEqualToDate(NSDate otherDate) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherDate.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isEqualToDate_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// laterDate: |
| NSDate laterDate(NSDate anotherDate) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anotherDate.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_laterDate_, |
| _$$ref$1.pointer, |
| ); |
| return NSDate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// timeIntervalSince1970 |
| double get timeIntervalSince1970 { |
| final _$$ref = object$.ref; |
| return objc.useMsgSendVariants |
| ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_timeIntervalSince1970) |
| : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_timeIntervalSince1970); |
| } |
| |
| /// timeIntervalSinceDate: |
| double timeIntervalSinceDate(NSDate anotherDate) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anotherDate.ref; |
| return objc.useMsgSendVariants |
| ? _objc_msgSend_mabicuFpret( |
| _$$ref.pointer, |
| _sel_timeIntervalSinceDate_, |
| _$$ref$1.pointer, |
| ) |
| : _objc_msgSend_mabicu( |
| _$$ref.pointer, |
| _sel_timeIntervalSinceDate_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// timeIntervalSinceNow |
| double get timeIntervalSinceNow { |
| final _$$ref = object$.ref; |
| return objc.useMsgSendVariants |
| ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_timeIntervalSinceNow) |
| : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_timeIntervalSinceNow); |
| } |
| |
| /// timeIntervalSinceReferenceDate |
| static double getTimeIntervalSinceReferenceDate$1() { |
| return objc.useMsgSendVariants |
| ? _objc_msgSend_1ukqyt8Fpret( |
| _class_NSDate, |
| _sel_timeIntervalSinceReferenceDate, |
| ) |
| : _objc_msgSend_1ukqyt8( |
| _class_NSDate, |
| _sel_timeIntervalSinceReferenceDate, |
| ); |
| } |
| } |
| |
| /// NSExtendedDictionary |
| extension NSExtendedDictionary on NSDictionary { |
| /// allKeys |
| NSArray get allKeys { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allKeys); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// allKeysForObject: |
| NSArray allKeysForObject(objc.ObjCObject anObject) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_allKeysForObject_, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// allValues |
| NSArray get allValues { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allValues); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// description |
| NSString get description$1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_description); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// descriptionInStringsFileFormat |
| NSString get descriptionInStringsFileFormat { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_descriptionInStringsFileFormat, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// descriptionWithLocale: |
| NSString descriptionWithLocale(objc.ObjCObject? locale) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = locale?.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_descriptionWithLocale_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// descriptionWithLocale:indent: |
| NSString descriptionWithLocale$1( |
| objc.ObjCObject? locale, { |
| required DartNSUInteger indent, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = locale?.ref; |
| final $ret = _objc_msgSend_1k4kd9s( |
| _$$ref.pointer, |
| _sel_descriptionWithLocale_indent_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| indent, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// enumerateKeysAndObjectsUsingBlock: |
| void enumerateKeysAndObjectsUsingBlock( |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| block, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = block.ref; |
| objc.checkOsVersionInternal( |
| 'NSDictionary.enumerateKeysAndObjectsUsingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_f167m6( |
| _$$ref.pointer, |
| _sel_enumerateKeysAndObjectsUsingBlock_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// enumerateKeysAndObjectsWithOptions:usingBlock: |
| void enumerateKeysAndObjectsWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSDictionary.enumerateKeysAndObjectsWithOptions:usingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_yx8yc6( |
| _$$ref.pointer, |
| _sel_enumerateKeysAndObjectsWithOptions_usingBlock_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// getObjects:andKeys:count: |
| void getObjects( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> andKeys, |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSDictionary.getObjects:andKeys:count:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_n2svg2( |
| _$$ref.pointer, |
| _sel_getObjects_andKeys_count_, |
| objects, |
| andKeys, |
| count, |
| ); |
| } |
| |
| /// isEqualToDictionary: |
| bool isEqualToDictionary(NSDictionary otherDictionary) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherDictionary.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isEqualToDictionary_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// keysOfEntriesPassingTest: |
| NSSet keysOfEntriesPassingTest( |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| predicate, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = predicate.ref; |
| objc.checkOsVersionInternal( |
| 'NSDictionary.keysOfEntriesPassingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_nnxkei( |
| _$$ref.pointer, |
| _sel_keysOfEntriesPassingTest_, |
| _$$ref$1.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// keysOfEntriesWithOptions:passingTest: |
| NSSet keysOfEntriesWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSDictionary.keysOfEntriesWithOptions:passingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_13x5boi( |
| _$$ref.pointer, |
| _sel_keysOfEntriesWithOptions_passingTest_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// keysSortedByValueUsingComparator: |
| NSArray keysSortedByValueUsingComparator( |
| objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| cmptr, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = cmptr.ref; |
| objc.checkOsVersionInternal( |
| 'NSDictionary.keysSortedByValueUsingComparator:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_nnxkei( |
| _$$ref.pointer, |
| _sel_keysSortedByValueUsingComparator_, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// keysSortedByValueUsingSelector: |
| NSArray keysSortedByValueUsingSelector( |
| ffi.Pointer<objc.ObjCSelector> comparator, |
| ) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_3ctkt6( |
| _$$ref.pointer, |
| _sel_keysSortedByValueUsingSelector_, |
| comparator, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// keysSortedByValueWithOptions:usingComparator: |
| NSArray keysSortedByValueWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| usingComparator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingComparator.ref; |
| objc.checkOsVersionInternal( |
| 'NSDictionary.keysSortedByValueWithOptions:usingComparator:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_1x5ew3h( |
| _$$ref.pointer, |
| _sel_keysSortedByValueWithOptions_usingComparator_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// objectEnumerator |
| NSEnumerator objectEnumerator() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_objectEnumerator); |
| return NSEnumerator.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// objectForKeyedSubscript: |
| objc.ObjCObject? objectForKeyedSubscript(objc.ObjCObject key) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = key.ref; |
| objc.checkOsVersionInternal( |
| 'NSDictionary.objectForKeyedSubscript:', |
| iOS: (false, (6, 0, 0)), |
| macOS: (false, (10, 8, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_objectForKeyedSubscript_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// objectsForKeys:notFoundMarker: |
| NSArray objectsForKeys( |
| NSArray keys, { |
| required objc.ObjCObject notFoundMarker, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = keys.ref; |
| final _$$ref$2 = notFoundMarker.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.pointer, |
| _sel_objectsForKeys_notFoundMarker_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// writeToURL:error: |
| bool writeToURL(NSURL url) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| objc.checkOsVersionInternal( |
| 'NSDictionary.writeToURL:error:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_l9p60w( |
| _$$ref.pointer, |
| _sel_writeToURL_error_, |
| _$$ref$1.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret; |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| } |
| |
| /// NSExtendedEnumerator |
| extension NSExtendedEnumerator on NSEnumerator { |
| /// allObjects |
| NSArray get allObjects { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allObjects); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSExtendedMutableArray |
| extension NSExtendedMutableArray on NSMutableArray { |
| /// addObjectsFromArray: |
| void addObjectsFromArray(NSArray otherArray) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherArray.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_addObjectsFromArray_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// exchangeObjectAtIndex:withObjectAtIndex: |
| void exchangeObjectAtIndex( |
| DartNSUInteger idx1, { |
| required DartNSUInteger withObjectAtIndex, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_bfp043( |
| _$$ref.pointer, |
| _sel_exchangeObjectAtIndex_withObjectAtIndex_, |
| idx1, |
| withObjectAtIndex, |
| ); |
| } |
| |
| /// insertObjects:atIndexes: |
| void insertObjects(NSArray objects, {required NSIndexSet atIndexes}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = objects.ref; |
| final _$$ref$2 = atIndexes.ref; |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_insertObjects_atIndexes_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// removeAllObjects |
| void removeAllObjects() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_removeAllObjects); |
| } |
| |
| /// removeObject: |
| void removeObject(objc.ObjCObject anObject) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_removeObject_, _$$ref$1.pointer); |
| } |
| |
| /// removeObject:inRange: |
| void removeObject$1(objc.ObjCObject anObject, {required NSRange inRange}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| _objc_msgSend_1oteutl( |
| _$$ref.pointer, |
| _sel_removeObject_inRange_, |
| _$$ref$1.pointer, |
| inRange, |
| ); |
| } |
| |
| /// removeObjectIdenticalTo: |
| void removeObjectIdenticalTo(objc.ObjCObject anObject) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_removeObjectIdenticalTo_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// removeObjectIdenticalTo:inRange: |
| void removeObjectIdenticalTo$1( |
| objc.ObjCObject anObject, { |
| required NSRange inRange, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| _objc_msgSend_1oteutl( |
| _$$ref.pointer, |
| _sel_removeObjectIdenticalTo_inRange_, |
| _$$ref$1.pointer, |
| inRange, |
| ); |
| } |
| |
| /// removeObjectsAtIndexes: |
| void removeObjectsAtIndexes(NSIndexSet indexes) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = indexes.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_removeObjectsAtIndexes_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// removeObjectsInArray: |
| void removeObjectsInArray(NSArray otherArray) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherArray.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_removeObjectsInArray_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// removeObjectsInRange: |
| void removeObjectsInRange(NSRange range) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1e3pm0z(_$$ref.pointer, _sel_removeObjectsInRange_, range); |
| } |
| |
| /// replaceObjectsAtIndexes:withObjects: |
| void replaceObjectsAtIndexes( |
| NSIndexSet indexes, { |
| required NSArray withObjects, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = indexes.ref; |
| final _$$ref$2 = withObjects.ref; |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_replaceObjectsAtIndexes_withObjects_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// replaceObjectsInRange:withObjectsFromArray: |
| void replaceObjectsInRange( |
| NSRange range, { |
| required NSArray withObjectsFromArray, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = withObjectsFromArray.ref; |
| _objc_msgSend_1tv4uax( |
| _$$ref.pointer, |
| _sel_replaceObjectsInRange_withObjectsFromArray_, |
| range, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// replaceObjectsInRange:withObjectsFromArray:range: |
| void replaceObjectsInRange$1( |
| NSRange range, { |
| required NSArray withObjectsFromArray, |
| required NSRange range$1, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = withObjectsFromArray.ref; |
| _objc_msgSend_15bolr3( |
| _$$ref.pointer, |
| _sel_replaceObjectsInRange_withObjectsFromArray_range_, |
| range, |
| _$$ref$1.pointer, |
| range$1, |
| ); |
| } |
| |
| /// setArray: |
| void setArray(NSArray otherArray) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherArray.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setArray_, _$$ref$1.pointer); |
| } |
| |
| /// setObject:atIndexedSubscript: |
| void setObject( |
| objc.ObjCObject obj, { |
| required DartNSUInteger atIndexedSubscript, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = obj.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableArray.setObject:atIndexedSubscript:', |
| iOS: (false, (6, 0, 0)), |
| macOS: (false, (10, 8, 0)), |
| ); |
| _objc_msgSend_djsa9o( |
| _$$ref.pointer, |
| _sel_setObject_atIndexedSubscript_, |
| _$$ref$1.pointer, |
| atIndexedSubscript, |
| ); |
| } |
| |
| /// sortUsingComparator: |
| void sortUsingComparator( |
| objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| cmptr, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = cmptr.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableArray.sortUsingComparator:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_f167m6( |
| _$$ref.pointer, |
| _sel_sortUsingComparator_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// sortUsingFunction:context: |
| void sortUsingFunction( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| > |
| compare, { |
| required ffi.Pointer<ffi.Void> context, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1lx39cp( |
| _$$ref.pointer, |
| _sel_sortUsingFunction_context_, |
| compare, |
| context, |
| ); |
| } |
| |
| /// sortUsingSelector: |
| void sortUsingSelector(ffi.Pointer<objc.ObjCSelector> comparator) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1d9e4oe(_$$ref.pointer, _sel_sortUsingSelector_, comparator); |
| } |
| |
| /// sortWithOptions:usingComparator: |
| void sortWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| usingComparator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingComparator.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableArray.sortWithOptions:usingComparator:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_jjgvjt( |
| _$$ref.pointer, |
| _sel_sortWithOptions_usingComparator_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| } |
| } |
| |
| /// NSExtendedMutableData |
| extension NSExtendedMutableData on NSMutableData { |
| /// appendBytes:length: |
| void appendBytes( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_zuf90e( |
| _$$ref.pointer, |
| _sel_appendBytes_length_, |
| bytes, |
| length, |
| ); |
| } |
| |
| /// appendData: |
| void appendData(NSData other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_appendData_, _$$ref$1.pointer); |
| } |
| |
| /// increaseLengthBy: |
| void increaseLengthBy(DartNSUInteger extraLength) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_increaseLengthBy_, extraLength); |
| } |
| |
| /// replaceBytesInRange:withBytes: |
| void replaceBytesInRange( |
| NSRange range, { |
| required ffi.Pointer<ffi.Void> withBytes, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_eh32gn( |
| _$$ref.pointer, |
| _sel_replaceBytesInRange_withBytes_, |
| range, |
| withBytes, |
| ); |
| } |
| |
| /// replaceBytesInRange:withBytes:length: |
| void replaceBytesInRange$1( |
| NSRange range, { |
| required ffi.Pointer<ffi.Void> withBytes, |
| required DartNSUInteger length, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_c0vg4w( |
| _$$ref.pointer, |
| _sel_replaceBytesInRange_withBytes_length_, |
| range, |
| withBytes, |
| length, |
| ); |
| } |
| |
| /// resetBytesInRange: |
| void resetBytesInRange(NSRange range) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1e3pm0z(_$$ref.pointer, _sel_resetBytesInRange_, range); |
| } |
| |
| /// setData: |
| void setData(NSData data) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = data.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setData_, _$$ref$1.pointer); |
| } |
| } |
| |
| /// NSExtendedMutableDictionary |
| extension NSExtendedMutableDictionary on NSMutableDictionary { |
| /// addEntriesFromDictionary: |
| void addEntriesFromDictionary(NSDictionary otherDictionary) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherDictionary.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_addEntriesFromDictionary_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// removeAllObjects |
| void removeAllObjects() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_removeAllObjects); |
| } |
| |
| /// removeObjectsForKeys: |
| void removeObjectsForKeys(NSArray keyArray) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = keyArray.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_removeObjectsForKeys_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// setDictionary: |
| void setDictionary(NSDictionary otherDictionary) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherDictionary.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setDictionary_, _$$ref$1.pointer); |
| } |
| |
| /// setObject:forKeyedSubscript: |
| void setObject$1( |
| objc.ObjCObject? obj, { |
| required NSCopying forKeyedSubscript, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = obj?.ref; |
| final _$$ref$2 = forKeyedSubscript.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableDictionary.setObject:forKeyedSubscript:', |
| iOS: (false, (6, 0, 0)), |
| macOS: (false, (10, 8, 0)), |
| ); |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_setObject_forKeyedSubscript_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2.pointer, |
| ); |
| } |
| } |
| |
| /// NSExtendedMutableOrderedSet |
| extension NSExtendedMutableOrderedSet on NSMutableOrderedSet { |
| /// addObject: |
| void addObject(objc.ObjCObject object) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.addObject:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_addObject_, _$$ref$1.pointer); |
| } |
| |
| /// addObjects:count: |
| void addObjects( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.addObjects:count:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_gcjqkl( |
| _$$ref.pointer, |
| _sel_addObjects_count_, |
| objects, |
| count, |
| ); |
| } |
| |
| /// addObjectsFromArray: |
| void addObjectsFromArray(NSArray array) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = array.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.addObjectsFromArray:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_addObjectsFromArray_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// exchangeObjectAtIndex:withObjectAtIndex: |
| void exchangeObjectAtIndex( |
| DartNSUInteger idx1, { |
| required DartNSUInteger withObjectAtIndex, |
| }) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.exchangeObjectAtIndex:withObjectAtIndex:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_bfp043( |
| _$$ref.pointer, |
| _sel_exchangeObjectAtIndex_withObjectAtIndex_, |
| idx1, |
| withObjectAtIndex, |
| ); |
| } |
| |
| /// insertObjects:atIndexes: |
| void insertObjects(NSArray objects, {required NSIndexSet atIndexes}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = objects.ref; |
| final _$$ref$2 = atIndexes.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.insertObjects:atIndexes:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_insertObjects_atIndexes_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// intersectOrderedSet: |
| void intersectOrderedSet(NSOrderedSet other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.intersectOrderedSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_intersectOrderedSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// intersectSet: |
| void intersectSet(NSSet other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.intersectSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_intersectSet_, _$$ref$1.pointer); |
| } |
| |
| /// minusOrderedSet: |
| void minusOrderedSet(NSOrderedSet other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.minusOrderedSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_minusOrderedSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// minusSet: |
| void minusSet(NSSet other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.minusSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_minusSet_, _$$ref$1.pointer); |
| } |
| |
| /// moveObjectsAtIndexes:toIndex: |
| void moveObjectsAtIndexes( |
| NSIndexSet indexes, { |
| required DartNSUInteger toIndex, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = indexes.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.moveObjectsAtIndexes:toIndex:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_djsa9o( |
| _$$ref.pointer, |
| _sel_moveObjectsAtIndexes_toIndex_, |
| _$$ref$1.pointer, |
| toIndex, |
| ); |
| } |
| |
| /// removeAllObjects |
| void removeAllObjects() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.removeAllObjects', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_removeAllObjects); |
| } |
| |
| /// removeObject: |
| void removeObject(objc.ObjCObject object) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.removeObject:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_removeObject_, _$$ref$1.pointer); |
| } |
| |
| /// removeObjectsAtIndexes: |
| void removeObjectsAtIndexes(NSIndexSet indexes) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = indexes.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.removeObjectsAtIndexes:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_removeObjectsAtIndexes_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// removeObjectsInArray: |
| void removeObjectsInArray(NSArray array) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = array.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.removeObjectsInArray:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_removeObjectsInArray_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// removeObjectsInRange: |
| void removeObjectsInRange(NSRange range) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.removeObjectsInRange:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_1e3pm0z(_$$ref.pointer, _sel_removeObjectsInRange_, range); |
| } |
| |
| /// replaceObjectsAtIndexes:withObjects: |
| void replaceObjectsAtIndexes( |
| NSIndexSet indexes, { |
| required NSArray withObjects, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = indexes.ref; |
| final _$$ref$2 = withObjects.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.replaceObjectsAtIndexes:withObjects:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_replaceObjectsAtIndexes_withObjects_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// replaceObjectsInRange:withObjects:count: |
| void replaceObjectsInRange( |
| NSRange range, { |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> withObjects, |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.replaceObjectsInRange:withObjects:count:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_122v0cv( |
| _$$ref.pointer, |
| _sel_replaceObjectsInRange_withObjects_count_, |
| range, |
| withObjects, |
| count, |
| ); |
| } |
| |
| /// setObject:atIndex: |
| void setObject(objc.ObjCObject obj, {required DartNSUInteger atIndex}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = obj.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.setObject:atIndex:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_djsa9o( |
| _$$ref.pointer, |
| _sel_setObject_atIndex_, |
| _$$ref$1.pointer, |
| atIndex, |
| ); |
| } |
| |
| /// setObject:atIndexedSubscript: |
| void setObject$1( |
| objc.ObjCObject obj, { |
| required DartNSUInteger atIndexedSubscript, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = obj.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.setObject:atIndexedSubscript:', |
| iOS: (false, (6, 0, 0)), |
| macOS: (false, (10, 8, 0)), |
| ); |
| _objc_msgSend_djsa9o( |
| _$$ref.pointer, |
| _sel_setObject_atIndexedSubscript_, |
| _$$ref$1.pointer, |
| atIndexedSubscript, |
| ); |
| } |
| |
| /// sortRange:options:usingComparator: |
| void sortRange( |
| NSRange range, { |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| usingComparator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingComparator.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.sortRange:options:usingComparator:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_arew0j( |
| _$$ref.pointer, |
| _sel_sortRange_options_usingComparator_, |
| range, |
| options, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// sortUsingComparator: |
| void sortUsingComparator( |
| objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| cmptr, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = cmptr.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.sortUsingComparator:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_f167m6( |
| _$$ref.pointer, |
| _sel_sortUsingComparator_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// sortWithOptions:usingComparator: |
| void sortWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| usingComparator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingComparator.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.sortWithOptions:usingComparator:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_jjgvjt( |
| _$$ref.pointer, |
| _sel_sortWithOptions_usingComparator_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// unionOrderedSet: |
| void unionOrderedSet(NSOrderedSet other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.unionOrderedSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_unionOrderedSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// unionSet: |
| void unionSet(NSSet other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.unionSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_unionSet_, _$$ref$1.pointer); |
| } |
| } |
| |
| /// NSExtendedMutableSet |
| extension NSExtendedMutableSet on NSMutableSet { |
| /// addObjectsFromArray: |
| void addObjectsFromArray(NSArray array) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = array.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_addObjectsFromArray_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// intersectSet: |
| void intersectSet(NSSet otherSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherSet.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_intersectSet_, _$$ref$1.pointer); |
| } |
| |
| /// minusSet: |
| void minusSet(NSSet otherSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherSet.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_minusSet_, _$$ref$1.pointer); |
| } |
| |
| /// removeAllObjects |
| void removeAllObjects() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_removeAllObjects); |
| } |
| |
| /// setSet: |
| void setSet(NSSet otherSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherSet.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setSet_, _$$ref$1.pointer); |
| } |
| |
| /// unionSet: |
| void unionSet(NSSet otherSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherSet.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_unionSet_, _$$ref$1.pointer); |
| } |
| } |
| |
| /// NSExtendedOrderedSet |
| extension NSExtendedOrderedSet on NSOrderedSet { |
| /// array |
| NSArray get array { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.array', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_array); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// containsObject: |
| bool containsObject(objc.ObjCObject object) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.containsObject:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_containsObject_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// description |
| NSString get description$1 { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.description', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_description); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// descriptionWithLocale: |
| NSString descriptionWithLocale(objc.ObjCObject? locale) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = locale?.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.descriptionWithLocale:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_descriptionWithLocale_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// descriptionWithLocale:indent: |
| NSString descriptionWithLocale$1( |
| objc.ObjCObject? locale, { |
| required DartNSUInteger indent, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = locale?.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.descriptionWithLocale:indent:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1k4kd9s( |
| _$$ref.pointer, |
| _sel_descriptionWithLocale_indent_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| indent, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// enumerateObjectsAtIndexes:options:usingBlock: |
| void enumerateObjectsAtIndexes( |
| NSIndexSet s, { |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = s.ref; |
| final _$$ref$2 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.enumerateObjectsAtIndexes:options:usingBlock:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_a3wp08( |
| _$$ref.pointer, |
| _sel_enumerateObjectsAtIndexes_options_usingBlock_, |
| _$$ref$1.pointer, |
| options, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// enumerateObjectsUsingBlock: |
| void enumerateObjectsUsingBlock( |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| block, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = block.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.enumerateObjectsUsingBlock:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_f167m6( |
| _$$ref.pointer, |
| _sel_enumerateObjectsUsingBlock_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// enumerateObjectsWithOptions:usingBlock: |
| void enumerateObjectsWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.enumerateObjectsWithOptions:usingBlock:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_yx8yc6( |
| _$$ref.pointer, |
| _sel_enumerateObjectsWithOptions_usingBlock_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// firstObject |
| objc.ObjCObject? get firstObject { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.firstObject', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_firstObject); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// getObjects:range: |
| void getObjects( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required NSRange range, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_o16d3k( |
| _$$ref.pointer, |
| _sel_getObjects_range_, |
| objects, |
| range, |
| ); |
| } |
| |
| /// indexOfObject:inSortedRange:options:usingComparator: |
| DartNSUInteger indexOfObject$1( |
| objc.ObjCObject object, { |
| required NSRange inSortedRange, |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| usingComparator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| final _$$ref$2 = usingComparator.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.indexOfObject:inSortedRange:options:usingComparator:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| return _objc_msgSend_kshx9d( |
| _$$ref.pointer, |
| _sel_indexOfObject_inSortedRange_options_usingComparator_, |
| _$$ref$1.pointer, |
| inSortedRange, |
| options, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// indexOfObjectAtIndexes:options:passingTest: |
| DartNSUInteger indexOfObjectAtIndexes( |
| NSIndexSet s, { |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = s.ref; |
| final _$$ref$2 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.indexOfObjectAtIndexes:options:passingTest:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| return _objc_msgSend_k1x6mt( |
| _$$ref.pointer, |
| _sel_indexOfObjectAtIndexes_options_passingTest_, |
| _$$ref$1.pointer, |
| options, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// indexOfObjectPassingTest: |
| DartNSUInteger indexOfObjectPassingTest( |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| predicate, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = predicate.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.indexOfObjectPassingTest:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| return _objc_msgSend_10mlopr( |
| _$$ref.pointer, |
| _sel_indexOfObjectPassingTest_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// indexOfObjectWithOptions:passingTest: |
| DartNSUInteger indexOfObjectWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.indexOfObjectWithOptions:passingTest:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| return _objc_msgSend_1698hqz( |
| _$$ref.pointer, |
| _sel_indexOfObjectWithOptions_passingTest_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// indexesOfObjectsAtIndexes:options:passingTest: |
| NSIndexSet indexesOfObjectsAtIndexes( |
| NSIndexSet s, { |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = s.ref; |
| final _$$ref$2 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.indexesOfObjectsAtIndexes:options:passingTest:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1i9v144( |
| _$$ref.pointer, |
| _sel_indexesOfObjectsAtIndexes_options_passingTest_, |
| _$$ref$1.pointer, |
| options, |
| _$$ref$2.pointer, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// indexesOfObjectsPassingTest: |
| NSIndexSet indexesOfObjectsPassingTest( |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| predicate, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = predicate.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.indexesOfObjectsPassingTest:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_nnxkei( |
| _$$ref.pointer, |
| _sel_indexesOfObjectsPassingTest_, |
| _$$ref$1.pointer, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// indexesOfObjectsWithOptions:passingTest: |
| NSIndexSet indexesOfObjectsWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.indexesOfObjectsWithOptions:passingTest:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_13x5boi( |
| _$$ref.pointer, |
| _sel_indexesOfObjectsWithOptions_passingTest_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// intersectsOrderedSet: |
| bool intersectsOrderedSet(NSOrderedSet other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.intersectsOrderedSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_intersectsOrderedSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// intersectsSet: |
| bool intersectsSet(NSSet set) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.intersectsSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_intersectsSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// isEqualToOrderedSet: |
| bool isEqualToOrderedSet(NSOrderedSet other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.isEqualToOrderedSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isEqualToOrderedSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// isSubsetOfOrderedSet: |
| bool isSubsetOfOrderedSet(NSOrderedSet other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.isSubsetOfOrderedSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isSubsetOfOrderedSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// isSubsetOfSet: |
| bool isSubsetOfSet(NSSet set) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.isSubsetOfSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isSubsetOfSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// lastObject |
| objc.ObjCObject? get lastObject { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.lastObject', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastObject); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// objectAtIndexedSubscript: |
| objc.ObjCObject objectAtIndexedSubscript(DartNSUInteger idx) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.objectAtIndexedSubscript:', |
| iOS: (false, (6, 0, 0)), |
| macOS: (false, (10, 8, 0)), |
| ); |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.pointer, |
| _sel_objectAtIndexedSubscript_, |
| idx, |
| ); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// objectEnumerator |
| NSEnumerator objectEnumerator() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.objectEnumerator', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_objectEnumerator); |
| return NSEnumerator.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// objectsAtIndexes: |
| NSArray objectsAtIndexes(NSIndexSet indexes) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = indexes.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.objectsAtIndexes:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_objectsAtIndexes_, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// reverseObjectEnumerator |
| NSEnumerator reverseObjectEnumerator() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.reverseObjectEnumerator', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_reverseObjectEnumerator, |
| ); |
| return NSEnumerator.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// reversedOrderedSet |
| NSOrderedSet get reversedOrderedSet { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.reversedOrderedSet', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_reversedOrderedSet); |
| return NSOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// set |
| NSSet get set { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.set', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_set); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// sortedArrayUsingComparator: |
| NSArray sortedArrayUsingComparator( |
| objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| cmptr, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = cmptr.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.sortedArrayUsingComparator:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_nnxkei( |
| _$$ref.pointer, |
| _sel_sortedArrayUsingComparator_, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// sortedArrayWithOptions:usingComparator: |
| NSArray sortedArrayWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| usingComparator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingComparator.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.sortedArrayWithOptions:usingComparator:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1x5ew3h( |
| _$$ref.pointer, |
| _sel_sortedArrayWithOptions_usingComparator_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSExtendedSet |
| extension NSExtendedSet on NSSet { |
| /// allObjects |
| NSArray get allObjects { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allObjects); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// anyObject |
| objc.ObjCObject? anyObject() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_anyObject); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// containsObject: |
| bool containsObject(objc.ObjCObject anObject) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_containsObject_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// description |
| NSString get description$1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_description); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// descriptionWithLocale: |
| NSString descriptionWithLocale(objc.ObjCObject? locale) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = locale?.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_descriptionWithLocale_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// enumerateObjectsUsingBlock: |
| void enumerateObjectsUsingBlock( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| > |
| block, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = block.ref; |
| objc.checkOsVersionInternal( |
| 'NSSet.enumerateObjectsUsingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_f167m6( |
| _$$ref.pointer, |
| _sel_enumerateObjectsUsingBlock_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// enumerateObjectsWithOptions:usingBlock: |
| void enumerateObjectsWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| > |
| usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSSet.enumerateObjectsWithOptions:usingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_yx8yc6( |
| _$$ref.pointer, |
| _sel_enumerateObjectsWithOptions_usingBlock_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// intersectsSet: |
| bool intersectsSet(NSSet otherSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherSet.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_intersectsSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// isEqualToSet: |
| bool isEqualToSet(NSSet otherSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherSet.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isEqualToSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// isSubsetOfSet: |
| bool isSubsetOfSet(NSSet otherSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherSet.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isSubsetOfSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// makeObjectsPerformSelector: |
| void makeObjectsPerformSelector(ffi.Pointer<objc.ObjCSelector> aSelector) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1d9e4oe( |
| _$$ref.pointer, |
| _sel_makeObjectsPerformSelector_, |
| aSelector, |
| ); |
| } |
| |
| /// makeObjectsPerformSelector:withObject: |
| void makeObjectsPerformSelector$1( |
| ffi.Pointer<objc.ObjCSelector> aSelector, { |
| objc.ObjCObject? withObject, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = withObject?.ref; |
| _objc_msgSend_1qv0eq4( |
| _$$ref.pointer, |
| _sel_makeObjectsPerformSelector_withObject_, |
| aSelector, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// objectsPassingTest: |
| NSSet objectsPassingTest( |
| objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| > |
| predicate, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = predicate.ref; |
| objc.checkOsVersionInternal( |
| 'NSSet.objectsPassingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_nnxkei( |
| _$$ref.pointer, |
| _sel_objectsPassingTest_, |
| _$$ref$1.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// objectsWithOptions:passingTest: |
| NSSet objectsWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSSet.objectsWithOptions:passingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_13x5boi( |
| _$$ref.pointer, |
| _sel_objectsWithOptions_passingTest_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setByAddingObject: |
| NSSet setByAddingObject(objc.ObjCObject anObject) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| objc.checkOsVersionInternal( |
| 'NSSet.setByAddingObject:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_setByAddingObject_, |
| _$$ref$1.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setByAddingObjectsFromArray: |
| NSSet setByAddingObjectsFromArray(NSArray other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| objc.checkOsVersionInternal( |
| 'NSSet.setByAddingObjectsFromArray:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_setByAddingObjectsFromArray_, |
| _$$ref$1.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setByAddingObjectsFromSet: |
| NSSet setByAddingObjectsFromSet(NSSet other) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = other.ref; |
| objc.checkOsVersionInternal( |
| 'NSSet.setByAddingObjectsFromSet:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_setByAddingObjectsFromSet_, |
| _$$ref$1.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSFastEnumeration |
| extension type NSFastEnumeration._(objc.ObjCProtocol object$) |
| implements objc.ObjCProtocol { |
| /// Constructs a [NSFastEnumeration] that points to the same underlying object as [other]. |
| NSFastEnumeration.as(objc.ObjCObject other) : object$ = other; |
| |
| /// Constructs a [NSFastEnumeration] that wraps the given raw object pointer. |
| NSFastEnumeration.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); |
| |
| /// Returns whether [obj] is an instance of [NSFastEnumeration]. |
| static bool conformsTo(objc.ObjCObject obj) { |
| return _objc_msgSend_e3qsqz( |
| obj.ref.pointer, |
| _sel_conformsToProtocol_, |
| _protocol_NSFastEnumeration, |
| ); |
| } |
| } |
| |
| extension NSFastEnumeration$Methods on NSFastEnumeration { |
| /// countByEnumeratingWithState:objects:count: |
| DartNSUInteger countByEnumeratingWithState( |
| ffi.Pointer<NSFastEnumerationState> state, { |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1b5ysjl( |
| _$$ref.pointer, |
| _sel_countByEnumeratingWithState_objects_count_, |
| state, |
| objects, |
| count, |
| ); |
| } |
| } |
| |
| interface class NSFastEnumeration$Builder { |
| /// Returns the [objc.Protocol] object for this protocol. |
| static objc.Protocol get $protocol => |
| objc.Protocol.fromPointer(_protocol_NSFastEnumeration.cast()); |
| |
| /// Builds an object that implements the NSFastEnumeration protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSFastEnumeration implement({ |
| required DartNSUInteger Function( |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| DartNSUInteger, |
| ) |
| countByEnumeratingWithState_objects_count_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSFastEnumeration'); |
| NSFastEnumeration$Builder.countByEnumeratingWithState_objects_count_ |
| .implement(builder, countByEnumeratingWithState_objects_count_); |
| builder.addProtocol($protocol); |
| return NSFastEnumeration.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSFastEnumeration protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilder( |
| objc.ObjCProtocolBuilder builder, { |
| required DartNSUInteger Function( |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| DartNSUInteger, |
| ) |
| countByEnumeratingWithState_objects_count_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSFastEnumeration$Builder.countByEnumeratingWithState_objects_count_ |
| .implement(builder, countByEnumeratingWithState_objects_count_); |
| builder.addProtocol($protocol); |
| } |
| |
| /// countByEnumeratingWithState:objects:count: |
| static final countByEnumeratingWithState_objects_count_ = |
| objc.ObjCProtocolMethod< |
| DartNSUInteger Function( |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| DartNSUInteger, |
| ) |
| >( |
| _protocol_NSFastEnumeration, |
| _sel_countByEnumeratingWithState_objects_count_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| NSUInteger Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| NSUInteger, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_17ap02x) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSFastEnumeration, |
| _sel_countByEnumeratingWithState_objects_count_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| ( |
| DartNSUInteger Function( |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| DartNSUInteger, |
| ) |
| func, |
| ) => |
| ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObjectImpl_NSUInteger.fromFunction( |
| ( |
| ffi.Pointer<ffi.Void> _, |
| ffi.Pointer<NSFastEnumerationState> arg1, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> arg2, |
| DartNSUInteger arg3, |
| ) => func(arg1, arg2, arg3), |
| ), |
| ); |
| } |
| |
| final class NSFastEnumerationState extends ffi.Struct { |
| @ffi.UnsignedLong() |
| external int state; |
| |
| external ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> itemsPtr; |
| |
| external ffi.Pointer<ffi.UnsignedLong> mutationsPtr; |
| |
| @ffi.Array.multi([5]) |
| external ffi.Array<ffi.UnsignedLong> extra; |
| } |
| |
| /// NSIndexSet |
| extension type NSIndexSet._(objc.ObjCObject object$) |
| implements |
| objc.ObjCObject, |
| NSObject, |
| NSCopying, |
| NSMutableCopying, |
| NSSecureCoding { |
| /// Constructs a [NSIndexSet] that points to the same underlying object as [other]. |
| NSIndexSet.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSIndexSet] that wraps the given raw object pointer. |
| NSIndexSet.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSIndexSet]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSIndexSet, |
| ); |
| |
| /// alloc |
| static NSIndexSet alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_alloc); |
| return NSIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSIndexSet allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSIndexSet, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// indexSet |
| static NSIndexSet indexSet() { |
| final $ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_indexSet); |
| return NSIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// indexSetWithIndex: |
| static NSIndexSet indexSetWithIndex(DartNSUInteger value) { |
| final $ret = _objc_msgSend_14hpxwa( |
| _class_NSIndexSet, |
| _sel_indexSetWithIndex_, |
| value, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// indexSetWithIndexesInRange: |
| static NSIndexSet indexSetWithIndexesInRange(NSRange range) { |
| final $ret = _objc_msgSend_1k1o1s7( |
| _class_NSIndexSet, |
| _sel_indexSetWithIndexesInRange_, |
| range, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSIndexSet new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_new); |
| return NSIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSIndexSet, _sel_supportsSecureCoding); |
| } |
| |
| /// Returns a new instance of NSIndexSet constructed with the default `new` method. |
| NSIndexSet() : this.as(new$().object$); |
| } |
| |
| extension NSIndexSet$Methods on NSIndexSet { |
| /// containsIndex: |
| bool containsIndex(DartNSUInteger value) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_6peh6o(_$$ref.pointer, _sel_containsIndex_, value); |
| } |
| |
| /// containsIndexes: |
| bool containsIndexes(NSIndexSet indexSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = indexSet.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_containsIndexes_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// containsIndexesInRange: |
| bool containsIndexesInRange(NSRange range) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_p4nurx( |
| _$$ref.pointer, |
| _sel_containsIndexesInRange_, |
| range, |
| ); |
| } |
| |
| /// count |
| DartNSUInteger get count { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_count); |
| } |
| |
| /// countOfIndexesInRange: |
| DartNSUInteger countOfIndexesInRange(NSRange range) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.countOfIndexesInRange:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| return _objc_msgSend_qm9f5w( |
| _$$ref.pointer, |
| _sel_countOfIndexesInRange_, |
| range, |
| ); |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// enumerateIndexesInRange:options:usingBlock: |
| void enumerateIndexesInRange( |
| NSRange range, { |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.enumerateIndexesInRange:options:usingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_177cajs( |
| _$$ref.pointer, |
| _sel_enumerateIndexesInRange_options_usingBlock_, |
| range, |
| options, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// enumerateIndexesUsingBlock: |
| void enumerateIndexesUsingBlock( |
| objc.ObjCBlock<ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>)> |
| block, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = block.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.enumerateIndexesUsingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_f167m6( |
| _$$ref.pointer, |
| _sel_enumerateIndexesUsingBlock_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// enumerateIndexesWithOptions:usingBlock: |
| void enumerateIndexesWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.enumerateIndexesWithOptions:usingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_yx8yc6( |
| _$$ref.pointer, |
| _sel_enumerateIndexesWithOptions_usingBlock_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// enumerateRangesInRange:options:usingBlock: |
| void enumerateRangesInRange( |
| NSRange range, { |
| required DartNSUInteger options, |
| required objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)> |
| usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.enumerateRangesInRange:options:usingBlock:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_177cajs( |
| _$$ref.pointer, |
| _sel_enumerateRangesInRange_options_usingBlock_, |
| range, |
| options, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// enumerateRangesUsingBlock: |
| void enumerateRangesUsingBlock( |
| objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)> block, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = block.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.enumerateRangesUsingBlock:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_f167m6( |
| _$$ref.pointer, |
| _sel_enumerateRangesUsingBlock_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// enumerateRangesWithOptions:usingBlock: |
| void enumerateRangesWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)> |
| usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.enumerateRangesWithOptions:usingBlock:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_yx8yc6( |
| _$$ref.pointer, |
| _sel_enumerateRangesWithOptions_usingBlock_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// firstIndex |
| DartNSUInteger get firstIndex { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_firstIndex); |
| } |
| |
| /// getIndexes:maxCount:inIndexRange: |
| DartNSUInteger getIndexes( |
| ffi.Pointer<NSUInteger> indexBuffer, { |
| required DartNSUInteger maxCount, |
| required ffi.Pointer<NSRange> inIndexRange, |
| }) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_89xgla( |
| _$$ref.pointer, |
| _sel_getIndexes_maxCount_inIndexRange_, |
| indexBuffer, |
| maxCount, |
| inIndexRange, |
| ); |
| } |
| |
| /// indexGreaterThanIndex: |
| DartNSUInteger indexGreaterThanIndex(DartNSUInteger value) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_12py2ux( |
| _$$ref.pointer, |
| _sel_indexGreaterThanIndex_, |
| value, |
| ); |
| } |
| |
| /// indexGreaterThanOrEqualToIndex: |
| DartNSUInteger indexGreaterThanOrEqualToIndex(DartNSUInteger value) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_12py2ux( |
| _$$ref.pointer, |
| _sel_indexGreaterThanOrEqualToIndex_, |
| value, |
| ); |
| } |
| |
| /// indexInRange:options:passingTest: |
| DartNSUInteger indexInRange( |
| NSRange range, { |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.indexInRange:options:passingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| return _objc_msgSend_6jmuyz( |
| _$$ref.pointer, |
| _sel_indexInRange_options_passingTest_, |
| range, |
| options, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// indexLessThanIndex: |
| DartNSUInteger indexLessThanIndex(DartNSUInteger value) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_12py2ux( |
| _$$ref.pointer, |
| _sel_indexLessThanIndex_, |
| value, |
| ); |
| } |
| |
| /// indexLessThanOrEqualToIndex: |
| DartNSUInteger indexLessThanOrEqualToIndex(DartNSUInteger value) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_12py2ux( |
| _$$ref.pointer, |
| _sel_indexLessThanOrEqualToIndex_, |
| value, |
| ); |
| } |
| |
| /// indexPassingTest: |
| DartNSUInteger indexPassingTest( |
| objc.ObjCBlock<ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>)> |
| predicate, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = predicate.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.indexPassingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| return _objc_msgSend_10mlopr( |
| _$$ref.pointer, |
| _sel_indexPassingTest_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// indexWithOptions:passingTest: |
| DartNSUInteger indexWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.indexWithOptions:passingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| return _objc_msgSend_1698hqz( |
| _$$ref.pointer, |
| _sel_indexWithOptions_passingTest_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// indexesInRange:options:passingTest: |
| NSIndexSet indexesInRange( |
| NSRange range, { |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.indexesInRange:options:passingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_1q30cs4( |
| _$$ref.pointer, |
| _sel_indexesInRange_options_passingTest_, |
| range, |
| options, |
| _$$ref$1.pointer, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// indexesPassingTest: |
| NSIndexSet indexesPassingTest( |
| objc.ObjCBlock<ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>)> |
| predicate, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = predicate.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.indexesPassingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_nnxkei( |
| _$$ref.pointer, |
| _sel_indexesPassingTest_, |
| _$$ref$1.pointer, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// indexesWithOptions:passingTest: |
| NSIndexSet indexesWithOptions( |
| DartNSUInteger opts, { |
| required objc.ObjCBlock< |
| ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| passingTest, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = passingTest.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.indexesWithOptions:passingTest:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_13x5boi( |
| _$$ref.pointer, |
| _sel_indexesWithOptions_passingTest_, |
| opts, |
| _$$ref$1.pointer, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// init |
| NSIndexSet init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSIndexSet.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSIndexSet? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithIndex: |
| NSIndexSet initWithIndex(DartNSUInteger value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithIndex_, |
| value, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithIndexSet: |
| NSIndexSet initWithIndexSet(NSIndexSet indexSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = indexSet.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithIndexSet_, |
| _$$ref$1.pointer, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithIndexesInRange: |
| NSIndexSet initWithIndexesInRange(NSRange range) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1k1o1s7( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithIndexesInRange_, |
| range, |
| ); |
| return NSIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// intersectsIndexesInRange: |
| bool intersectsIndexesInRange(NSRange range) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_p4nurx( |
| _$$ref.pointer, |
| _sel_intersectsIndexesInRange_, |
| range, |
| ); |
| } |
| |
| /// isEqualToIndexSet: |
| bool isEqualToIndexSet(NSIndexSet indexSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = indexSet.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isEqualToIndexSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// lastIndex |
| DartNSUInteger get lastIndex { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_lastIndex); |
| } |
| } |
| |
| /// NSInputStream |
| extension type NSInputStream._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSStream { |
| /// Constructs a [NSInputStream] that points to the same underlying object as [other]. |
| NSInputStream.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSInputStream] that wraps the given raw object pointer. |
| NSInputStream.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSInputStream]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSInputStream, |
| ); |
| |
| /// alloc |
| static NSInputStream alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSInputStream, _sel_alloc); |
| return NSInputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSInputStream allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSInputStream, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSInputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// inputStreamWithData: |
| static NSInputStream? inputStreamWithData(NSData data) { |
| final _$$ref = data.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSInputStream, |
| _sel_inputStreamWithData_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSInputStream.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// inputStreamWithFileAtPath: |
| static NSInputStream? inputStreamWithFileAtPath(NSString path) { |
| final _$$ref = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSInputStream, |
| _sel_inputStreamWithFileAtPath_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSInputStream.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// inputStreamWithURL: |
| static NSInputStream? inputStreamWithURL(NSURL url) { |
| final _$$ref = url.ref; |
| objc.checkOsVersionInternal( |
| 'NSInputStream.inputStreamWithURL:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSInputStream, |
| _sel_inputStreamWithURL_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSInputStream.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSInputStream new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSInputStream, _sel_new); |
| return NSInputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of NSInputStream constructed with the default `new` method. |
| NSInputStream() : this.as(new$().object$); |
| } |
| |
| extension NSInputStream$Methods on NSInputStream { |
| /// getBuffer:length: |
| bool getBuffer( |
| ffi.Pointer<ffi.Pointer<ffi.Uint8>> buffer, { |
| required ffi.Pointer<NSUInteger> length, |
| }) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_19lrthf( |
| _$$ref.pointer, |
| _sel_getBuffer_length_, |
| buffer, |
| length, |
| ); |
| } |
| |
| /// hasBytesAvailable |
| bool get hasBytesAvailable { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_hasBytesAvailable); |
| } |
| |
| /// init |
| NSInputStream init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSInputStream.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSInputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithData: |
| NSInputStream initWithData(NSData data) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = data.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithData_, |
| _$$ref$1.pointer, |
| ); |
| return NSInputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithFileAtPath: |
| NSInputStream? initWithFileAtPath(NSString path) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithFileAtPath_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSInputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithURL: |
| NSInputStream? initWithURL(NSURL url) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| objc.checkOsVersionInternal( |
| 'NSInputStream.initWithURL:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithURL_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSInputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// read:maxLength: |
| int read(ffi.Pointer<ffi.Uint8> buffer, {required DartNSUInteger maxLength}) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_11e9f5x( |
| _$$ref.pointer, |
| _sel_read_maxLength_, |
| buffer, |
| maxLength, |
| ); |
| } |
| } |
| |
| /// NSInputStreamExtensions |
| extension NSInputStreamExtensions on NSInputStream {} |
| |
| /// NSInvocation |
| extension type NSInvocation._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [NSInvocation] that points to the same underlying object as [other]. |
| NSInvocation.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSInvocation] that wraps the given raw object pointer. |
| NSInvocation.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSInvocation]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSInvocation, |
| ); |
| |
| /// alloc |
| static NSInvocation alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSInvocation, _sel_alloc); |
| return NSInvocation.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSInvocation allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSInvocation, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSInvocation.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// invocationWithMethodSignature: |
| static NSInvocation invocationWithMethodSignature(NSMethodSignature sig) { |
| final _$$ref = sig.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSInvocation, |
| _sel_invocationWithMethodSignature_, |
| _$$ref.pointer, |
| ); |
| return NSInvocation.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSInvocation new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSInvocation, _sel_new); |
| return NSInvocation.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of NSInvocation constructed with the default `new` method. |
| NSInvocation() : this.as(new$().object$); |
| } |
| |
| extension NSInvocation$Methods on NSInvocation { |
| /// argumentsRetained |
| bool get argumentsRetained { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_argumentsRetained); |
| } |
| |
| /// getArgument:atIndex: |
| void getArgument( |
| ffi.Pointer<ffi.Void> argumentLocation, { |
| required int atIndex, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_unr2j3( |
| _$$ref.pointer, |
| _sel_getArgument_atIndex_, |
| argumentLocation, |
| atIndex, |
| ); |
| } |
| |
| /// getReturnValue: |
| void getReturnValue(ffi.Pointer<ffi.Void> retLoc) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_ovsamd(_$$ref.pointer, _sel_getReturnValue_, retLoc); |
| } |
| |
| /// init |
| NSInvocation init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSInvocation.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSInvocation.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// invoke |
| void invoke() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_invoke); |
| } |
| |
| /// invokeUsingIMP: |
| void invokeUsingIMP( |
| ffi.Pointer<ffi.NativeFunction<ffi.Void Function()>> imp, |
| ) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1nufwnz(_$$ref.pointer, _sel_invokeUsingIMP_, imp); |
| } |
| |
| /// invokeWithTarget: |
| void invokeWithTarget(objc.ObjCObject target) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = target.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_invokeWithTarget_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// methodSignature |
| NSMethodSignature get methodSignature { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_methodSignature); |
| return NSMethodSignature.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// retainArguments |
| void retainArguments() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_retainArguments); |
| } |
| |
| /// selector |
| ffi.Pointer<objc.ObjCSelector> get selector { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1ovaulg(_$$ref.pointer, _sel_selector); |
| } |
| |
| /// setArgument:atIndex: |
| void setArgument( |
| ffi.Pointer<ffi.Void> argumentLocation, { |
| required int atIndex, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_unr2j3( |
| _$$ref.pointer, |
| _sel_setArgument_atIndex_, |
| argumentLocation, |
| atIndex, |
| ); |
| } |
| |
| /// setReturnValue: |
| void setReturnValue(ffi.Pointer<ffi.Void> retLoc) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_ovsamd(_$$ref.pointer, _sel_setReturnValue_, retLoc); |
| } |
| |
| /// setSelector: |
| set selector(ffi.Pointer<objc.ObjCSelector> value) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1d9e4oe(_$$ref.pointer, _sel_setSelector_, value); |
| } |
| |
| /// setTarget: |
| set target(objc.ObjCObject? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setTarget_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// target |
| objc.ObjCObject? get target { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_target); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSItemProvider |
| extension type NSItemProvider._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject, NSCopying { |
| /// Constructs a [NSItemProvider] that points to the same underlying object as [other]. |
| NSItemProvider.as(objc.ObjCObject other) : object$ = other { |
| objc.checkOsVersionInternal( |
| 'NSItemProvider', |
| iOS: (false, (8, 0, 0)), |
| macOS: (false, (10, 10, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSItemProvider] that wraps the given raw object pointer. |
| NSItemProvider.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| objc.checkOsVersionInternal( |
| 'NSItemProvider', |
| iOS: (false, (8, 0, 0)), |
| macOS: (false, (10, 10, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSItemProvider]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSItemProvider, |
| ); |
| |
| /// alloc |
| static NSItemProvider alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSItemProvider, _sel_alloc); |
| return NSItemProvider.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSItemProvider allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSItemProvider, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSItemProvider.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSItemProvider new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSItemProvider, _sel_new); |
| return NSItemProvider.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of NSItemProvider constructed with the default `new` method. |
| NSItemProvider() : this.as(new$().object$); |
| } |
| |
| extension NSItemProvider$Methods on NSItemProvider { |
| /// canLoadObjectOfClass: |
| bool canLoadObjectOfClass(NSItemProviderReading aClass) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aClass.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.canLoadObjectOfClass:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_canLoadObjectOfClass_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// hasItemConformingToTypeIdentifier: |
| bool hasItemConformingToTypeIdentifier(NSString typeIdentifier) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = typeIdentifier.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.hasItemConformingToTypeIdentifier:', |
| iOS: (false, (8, 0, 0)), |
| macOS: (false, (10, 10, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_hasItemConformingToTypeIdentifier_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// hasRepresentationConformingToTypeIdentifier:fileOptions: |
| bool hasRepresentationConformingToTypeIdentifier( |
| NSString typeIdentifier, { |
| required int fileOptions, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = typeIdentifier.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.hasRepresentationConformingToTypeIdentifier:fileOptions:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| return _objc_msgSend_1wdb8ji( |
| _$$ref.pointer, |
| _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_, |
| _$$ref$1.pointer, |
| fileOptions, |
| ); |
| } |
| |
| /// init |
| NSItemProvider init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSItemProvider.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfURL: |
| NSItemProvider? initWithContentsOfURL(NSURL fileURL) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = fileURL.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.initWithContentsOfURL:', |
| iOS: (false, (8, 0, 0)), |
| macOS: (false, (10, 10, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfURL_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSItemProvider.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithItem:typeIdentifier: |
| NSItemProvider initWithItem( |
| NSSecureCoding? item, { |
| NSString? typeIdentifier, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = item?.ref; |
| final _$$ref$2 = typeIdentifier?.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.initWithItem:typeIdentifier:', |
| iOS: (false, (8, 0, 0)), |
| macOS: (false, (10, 10, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithItem_typeIdentifier_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSItemProvider.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObject: |
| NSItemProvider initWithObject(NSItemProviderWriting object) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.initWithObject:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObject_, |
| _$$ref$1.pointer, |
| ); |
| return NSItemProvider.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// loadDataRepresentationForTypeIdentifier:completionHandler: |
| NSProgress loadDataRepresentationForTypeIdentifier( |
| NSString typeIdentifier, { |
| required objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)> |
| completionHandler, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = typeIdentifier.ref; |
| final _$$ref$2 = completionHandler.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.loadDataRepresentationForTypeIdentifier:completionHandler:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $ret = _objc_msgSend_r0bo0s( |
| _$$ref.pointer, |
| _sel_loadDataRepresentationForTypeIdentifier_completionHandler_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| return NSProgress.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// loadFileRepresentationForTypeIdentifier:completionHandler: |
| NSProgress loadFileRepresentationForTypeIdentifier( |
| NSString typeIdentifier, { |
| required objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)> |
| completionHandler, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = typeIdentifier.ref; |
| final _$$ref$2 = completionHandler.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.loadFileRepresentationForTypeIdentifier:completionHandler:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $ret = _objc_msgSend_r0bo0s( |
| _$$ref.pointer, |
| _sel_loadFileRepresentationForTypeIdentifier_completionHandler_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| return NSProgress.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// loadInPlaceFileRepresentationForTypeIdentifier:completionHandler: |
| NSProgress loadInPlaceFileRepresentationForTypeIdentifier( |
| NSString typeIdentifier, { |
| required objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)> |
| completionHandler, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = typeIdentifier.ref; |
| final _$$ref$2 = completionHandler.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $ret = _objc_msgSend_r0bo0s( |
| _$$ref.pointer, |
| _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| return NSProgress.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// loadItemForTypeIdentifier:options:completionHandler: |
| void loadItemForTypeIdentifier( |
| NSString typeIdentifier, { |
| NSDictionary? options, |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >? |
| completionHandler, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = typeIdentifier.ref; |
| final _$$ref$2 = options?.ref; |
| final _$$ref$3 = completionHandler?.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.loadItemForTypeIdentifier:options:completionHandler:', |
| iOS: (false, (8, 0, 0)), |
| macOS: (false, (10, 10, 0)), |
| ); |
| _objc_msgSend_18qun1e( |
| _$$ref.pointer, |
| _sel_loadItemForTypeIdentifier_options_completionHandler_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// loadObjectOfClass:completionHandler: |
| NSProgress loadObjectOfClass( |
| NSItemProviderReading aClass, { |
| required objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > |
| completionHandler, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aClass.ref; |
| final _$$ref$2 = completionHandler.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.loadObjectOfClass:completionHandler:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $ret = _objc_msgSend_r0bo0s( |
| _$$ref.pointer, |
| _sel_loadObjectOfClass_completionHandler_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| return NSProgress.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// registerDataRepresentationForTypeIdentifier:visibility:loadHandler: |
| void registerDataRepresentationForTypeIdentifier( |
| NSString typeIdentifier, { |
| required NSItemProviderRepresentationVisibility visibility, |
| required objc.ObjCBlock< |
| NSProgress? Function(objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>) |
| > |
| loadHandler, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = typeIdentifier.ref; |
| final _$$ref$2 = loadHandler.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.registerDataRepresentationForTypeIdentifier:visibility:loadHandler:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| _objc_msgSend_1pl40xc( |
| _$$ref.pointer, |
| _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_, |
| _$$ref$1.pointer, |
| visibility.value, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler: |
| void registerFileRepresentationForTypeIdentifier( |
| NSString typeIdentifier, { |
| required int fileOptions, |
| required NSItemProviderRepresentationVisibility visibility, |
| required objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>, |
| ) |
| > |
| loadHandler, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = typeIdentifier.ref; |
| final _$$ref$2 = loadHandler.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| _objc_msgSend_t7arir( |
| _$$ref.pointer, |
| _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_, |
| _$$ref$1.pointer, |
| fileOptions, |
| visibility.value, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// registerItemForTypeIdentifier:loadHandler: |
| void registerItemForTypeIdentifier( |
| NSString typeIdentifier, { |
| required objc.ObjCBlock< |
| ffi.Void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ) |
| > |
| loadHandler, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = typeIdentifier.ref; |
| final _$$ref$2 = loadHandler.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.registerItemForTypeIdentifier:loadHandler:', |
| iOS: (false, (8, 0, 0)), |
| macOS: (false, (10, 10, 0)), |
| ); |
| _objc_msgSend_o762yo( |
| _$$ref.pointer, |
| _sel_registerItemForTypeIdentifier_loadHandler_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// registerObject:visibility: |
| void registerObject( |
| NSItemProviderWriting object, { |
| required NSItemProviderRepresentationVisibility visibility, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.registerObject:visibility:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| _objc_msgSend_1k745tv( |
| _$$ref.pointer, |
| _sel_registerObject_visibility_, |
| _$$ref$1.pointer, |
| visibility.value, |
| ); |
| } |
| |
| /// registerObjectOfClass:visibility:loadHandler: |
| void registerObjectOfClass( |
| NSItemProviderWriting aClass, { |
| required NSItemProviderRepresentationVisibility visibility, |
| required objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >, |
| ) |
| > |
| loadHandler, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aClass.ref; |
| final _$$ref$2 = loadHandler.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.registerObjectOfClass:visibility:loadHandler:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| _objc_msgSend_1pl40xc( |
| _$$ref.pointer, |
| _sel_registerObjectOfClass_visibility_loadHandler_, |
| _$$ref$1.pointer, |
| visibility.value, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// registeredTypeIdentifiers |
| NSArray get registeredTypeIdentifiers { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.registeredTypeIdentifiers', |
| iOS: (false, (8, 0, 0)), |
| macOS: (false, (10, 10, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_registeredTypeIdentifiers, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// registeredTypeIdentifiersWithFileOptions: |
| NSArray registeredTypeIdentifiersWithFileOptions(int fileOptions) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.registeredTypeIdentifiersWithFileOptions:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $ret = _objc_msgSend_7g3u2y( |
| _$$ref.pointer, |
| _sel_registeredTypeIdentifiersWithFileOptions_, |
| fileOptions, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setSuggestedName: |
| set suggestedName(NSString? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.setSuggestedName:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 14, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setSuggestedName_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// suggestedName |
| NSString? get suggestedName { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProvider.suggestedName', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 14, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_suggestedName); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| sealed class NSItemProviderFileOptions { |
| static const NSItemProviderFileOptionOpenInPlace = 1; |
| } |
| |
| /// NSItemProviderReading |
| extension type NSItemProviderReading._(objc.ObjCProtocol object$) |
| implements objc.ObjCProtocol, NSObjectProtocol { |
| /// Constructs a [NSItemProviderReading] that points to the same underlying object as [other]. |
| NSItemProviderReading.as(objc.ObjCObject other) : object$ = other; |
| |
| /// Constructs a [NSItemProviderReading] that wraps the given raw object pointer. |
| NSItemProviderReading.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); |
| |
| /// Returns whether [obj] is an instance of [NSItemProviderReading]. |
| static bool conformsTo(objc.ObjCObject obj) { |
| return _objc_msgSend_e3qsqz( |
| obj.ref.pointer, |
| _sel_conformsToProtocol_, |
| _protocol_NSItemProviderReading, |
| ); |
| } |
| } |
| |
| extension NSItemProviderReading$Methods on NSItemProviderReading {} |
| |
| interface class NSItemProviderReading$Builder { |
| /// Returns the [objc.Protocol] object for this protocol. |
| static objc.Protocol get $protocol => |
| objc.Protocol.fromPointer(_protocol_NSItemProviderReading.cast()); |
| |
| /// Builds an object that implements the NSItemProviderReading protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSItemProviderReading implement({bool $keepIsolateAlive = true}) { |
| final builder = objc.ObjCProtocolBuilder( |
| debugName: 'NSItemProviderReading', |
| ); |
| |
| builder.addProtocol($protocol); |
| return NSItemProviderReading.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSItemProviderReading protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilder( |
| objc.ObjCProtocolBuilder builder, { |
| bool $keepIsolateAlive = true, |
| }) { |
| builder.addProtocol($protocol); |
| } |
| } |
| |
| enum NSItemProviderRepresentationVisibility { |
| NSItemProviderRepresentationVisibilityAll(0), |
| NSItemProviderRepresentationVisibilityTeam(1), |
| NSItemProviderRepresentationVisibilityGroup(2), |
| NSItemProviderRepresentationVisibilityOwnProcess(3); |
| |
| final int value; |
| const NSItemProviderRepresentationVisibility(this.value); |
| |
| static NSItemProviderRepresentationVisibility fromValue(int value) => |
| switch (value) { |
| 0 => NSItemProviderRepresentationVisibilityAll, |
| 1 => NSItemProviderRepresentationVisibilityTeam, |
| 2 => NSItemProviderRepresentationVisibilityGroup, |
| 3 => NSItemProviderRepresentationVisibilityOwnProcess, |
| _ => throw ArgumentError( |
| 'Unknown value for NSItemProviderRepresentationVisibility: $value', |
| ), |
| }; |
| } |
| |
| /// NSItemProviderWriting |
| extension type NSItemProviderWriting._(objc.ObjCProtocol object$) |
| implements objc.ObjCProtocol, NSObjectProtocol { |
| /// Constructs a [NSItemProviderWriting] that points to the same underlying object as [other]. |
| NSItemProviderWriting.as(objc.ObjCObject other) : object$ = other; |
| |
| /// Constructs a [NSItemProviderWriting] that wraps the given raw object pointer. |
| NSItemProviderWriting.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); |
| |
| /// Returns whether [obj] is an instance of [NSItemProviderWriting]. |
| static bool conformsTo(objc.ObjCObject obj) { |
| return _objc_msgSend_e3qsqz( |
| obj.ref.pointer, |
| _sel_conformsToProtocol_, |
| _protocol_NSItemProviderWriting, |
| ); |
| } |
| } |
| |
| extension NSItemProviderWriting$Methods on NSItemProviderWriting { |
| /// itemProviderVisibilityForRepresentationWithTypeIdentifier: |
| NSItemProviderRepresentationVisibility |
| itemProviderVisibilityForRepresentationWithTypeIdentifier( |
| NSString typeIdentifier, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = typeIdentifier.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProviderWriting.itemProviderVisibilityForRepresentationWithTypeIdentifier:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| if (!objc.respondsToSelector( |
| _$$ref.pointer, |
| _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, |
| )) { |
| throw objc.UnimplementedOptionalMethodException( |
| 'NSItemProviderWriting', |
| 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', |
| ); |
| } |
| final $ret = _objc_msgSend_16fy0up( |
| _$$ref.pointer, |
| _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, |
| _$$ref$1.pointer, |
| ); |
| return NSItemProviderRepresentationVisibility.fromValue($ret); |
| } |
| |
| /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: |
| NSProgress? loadDataWithTypeIdentifier( |
| NSString typeIdentifier, { |
| required objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)> |
| forItemProviderCompletionHandler, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = typeIdentifier.ref; |
| final _$$ref$2 = forItemProviderCompletionHandler.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProviderWriting.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $ret = _objc_msgSend_r0bo0s( |
| _$$ref.pointer, |
| _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSProgress.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// writableTypeIdentifiersForItemProvider |
| NSArray get writableTypeIdentifiersForItemProvider { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSItemProviderWriting.writableTypeIdentifiersForItemProvider', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| if (!objc.respondsToSelector( |
| _$$ref.pointer, |
| _sel_writableTypeIdentifiersForItemProvider, |
| )) { |
| throw objc.UnimplementedOptionalMethodException( |
| 'NSItemProviderWriting', |
| 'writableTypeIdentifiersForItemProvider', |
| ); |
| } |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_writableTypeIdentifiersForItemProvider, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| interface class NSItemProviderWriting$Builder { |
| /// Returns the [objc.Protocol] object for this protocol. |
| static objc.Protocol get $protocol => |
| objc.Protocol.fromPointer(_protocol_NSItemProviderWriting.cast()); |
| |
| /// Builds an object that implements the NSItemProviderWriting protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSItemProviderWriting implement({ |
| NSItemProviderRepresentationVisibility Function(NSString)? |
| itemProviderVisibilityForRepresentationWithTypeIdentifier_, |
| required NSProgress? Function( |
| NSString, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, |
| NSArray Function()? writableTypeIdentifiersForItemProvider, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder( |
| debugName: 'NSItemProviderWriting', |
| ); |
| NSItemProviderWriting$Builder |
| .itemProviderVisibilityForRepresentationWithTypeIdentifier_ |
| .implement( |
| builder, |
| itemProviderVisibilityForRepresentationWithTypeIdentifier_, |
| ); |
| NSItemProviderWriting$Builder |
| .loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ |
| .implement( |
| builder, |
| loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, |
| ); |
| NSItemProviderWriting$Builder.writableTypeIdentifiersForItemProvider |
| .implement(builder, writableTypeIdentifiersForItemProvider); |
| builder.addProtocol($protocol); |
| return NSItemProviderWriting.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSItemProviderWriting protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilder( |
| objc.ObjCProtocolBuilder builder, { |
| NSItemProviderRepresentationVisibility Function(NSString)? |
| itemProviderVisibilityForRepresentationWithTypeIdentifier_, |
| required NSProgress? Function( |
| NSString, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, |
| NSArray Function()? writableTypeIdentifiersForItemProvider, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSItemProviderWriting$Builder |
| .itemProviderVisibilityForRepresentationWithTypeIdentifier_ |
| .implement( |
| builder, |
| itemProviderVisibilityForRepresentationWithTypeIdentifier_, |
| ); |
| NSItemProviderWriting$Builder |
| .loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ |
| .implement( |
| builder, |
| loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, |
| ); |
| NSItemProviderWriting$Builder.writableTypeIdentifiersForItemProvider |
| .implement(builder, writableTypeIdentifiersForItemProvider); |
| builder.addProtocol($protocol); |
| } |
| |
| /// itemProviderVisibilityForRepresentationWithTypeIdentifier: |
| static final itemProviderVisibilityForRepresentationWithTypeIdentifier_ = |
| objc.ObjCProtocolMethod< |
| NSItemProviderRepresentationVisibility Function(NSString) |
| >( |
| _protocol_NSItemProviderWriting, |
| _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1ldqghh) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSItemProviderWriting, |
| _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, |
| isRequired: false, |
| isInstanceMethod: true, |
| ), |
| (NSItemProviderRepresentationVisibility Function(NSString) func) => |
| ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString.fromFunction( |
| (ffi.Pointer<ffi.Void> _, NSString arg1) => func(arg1), |
| ), |
| ); |
| |
| /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: |
| static final loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = |
| objc.ObjCProtocolMethod< |
| NSProgress? Function( |
| NSString, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| >( |
| _protocol_NSItemProviderWriting, |
| _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1q0i84) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSItemProviderWriting, |
| _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| ( |
| NSProgress? Function( |
| NSString, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| func, |
| ) => |
| ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError.fromFunction( |
| ( |
| ffi.Pointer<ffi.Void> _, |
| NSString arg1, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)> arg2, |
| ) => func(arg1, arg2), |
| ), |
| ); |
| |
| /// writableTypeIdentifiersForItemProvider |
| static final writableTypeIdentifiersForItemProvider = |
| objc.ObjCProtocolMethod<NSArray Function()>( |
| _protocol_NSItemProviderWriting, |
| _sel_writableTypeIdentifiersForItemProvider, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1mbt9g9) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSItemProviderWriting, |
| _sel_writableTypeIdentifiersForItemProvider, |
| isRequired: false, |
| isInstanceMethod: true, |
| ), |
| (NSArray Function() func) => ObjCBlock_NSArray_ffiVoid.fromFunction( |
| (ffi.Pointer<ffi.Void> _) => func(), |
| ), |
| ); |
| } |
| |
| enum NSKeyValueChange { |
| NSKeyValueChangeSetting(1), |
| NSKeyValueChangeInsertion(2), |
| NSKeyValueChangeRemoval(3), |
| NSKeyValueChangeReplacement(4); |
| |
| final int value; |
| const NSKeyValueChange(this.value); |
| |
| static NSKeyValueChange fromValue(int value) => switch (value) { |
| 1 => NSKeyValueChangeSetting, |
| 2 => NSKeyValueChangeInsertion, |
| 3 => NSKeyValueChangeRemoval, |
| 4 => NSKeyValueChangeReplacement, |
| _ => throw ArgumentError('Unknown value for NSKeyValueChange: $value'), |
| }; |
| } |
| |
| sealed class NSKeyValueObservingOptions { |
| static const NSKeyValueObservingOptionNew = 1; |
| static const NSKeyValueObservingOptionOld = 2; |
| static const NSKeyValueObservingOptionInitial = 4; |
| static const NSKeyValueObservingOptionPrior = 8; |
| } |
| |
| enum NSKeyValueSetMutationKind { |
| NSKeyValueUnionSetMutation(1), |
| NSKeyValueMinusSetMutation(2), |
| NSKeyValueIntersectSetMutation(3), |
| NSKeyValueSetSetMutation(4); |
| |
| final int value; |
| const NSKeyValueSetMutationKind(this.value); |
| |
| static NSKeyValueSetMutationKind fromValue(int value) => switch (value) { |
| 1 => NSKeyValueUnionSetMutation, |
| 2 => NSKeyValueMinusSetMutation, |
| 3 => NSKeyValueIntersectSetMutation, |
| 4 => NSKeyValueSetSetMutation, |
| _ => throw ArgumentError( |
| 'Unknown value for NSKeyValueSetMutationKind: $value', |
| ), |
| }; |
| } |
| |
| sealed class NSLinguisticTaggerOptions { |
| static const NSLinguisticTaggerOmitWords = 1; |
| static const NSLinguisticTaggerOmitPunctuation = 2; |
| static const NSLinguisticTaggerOmitWhitespace = 4; |
| static const NSLinguisticTaggerOmitOther = 8; |
| static const NSLinguisticTaggerJoinNames = 16; |
| } |
| |
| /// NSLocale |
| extension type NSLocale._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject, NSCopying, NSSecureCoding { |
| /// Constructs a [NSLocale] that points to the same underlying object as [other]. |
| NSLocale.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSLocale] that wraps the given raw object pointer. |
| NSLocale.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSLocale]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSLocale, |
| ); |
| |
| /// alloc |
| static NSLocale alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_alloc); |
| return NSLocale.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSLocale allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSLocale, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSLocale.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// localeWithLocaleIdentifier: |
| static NSLocale localeWithLocaleIdentifier(NSString ident) { |
| final _$$ref = ident.ref; |
| objc.checkOsVersionInternal( |
| 'NSLocale.localeWithLocaleIdentifier:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSLocale, |
| _sel_localeWithLocaleIdentifier_, |
| _$$ref.pointer, |
| ); |
| return NSLocale.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSLocale new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_new); |
| return NSLocale.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSLocale, _sel_supportsSecureCoding); |
| } |
| |
| /// Returns a new instance of NSLocale constructed with the default `new` method. |
| NSLocale() : this.as(new$().object$); |
| } |
| |
| extension NSLocale$Methods on NSLocale { |
| /// displayNameForKey:value: |
| NSString? displayNameForKey(NSString key, {required objc.ObjCObject value}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = key.ref; |
| final _$$ref$2 = value.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.pointer, |
| _sel_displayNameForKey_value_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// init |
| NSLocale init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSLocale.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSLocale.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSLocale? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSLocale.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithLocaleIdentifier: |
| NSLocale initWithLocaleIdentifier(NSString string) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = string.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithLocaleIdentifier_, |
| _$$ref$1.pointer, |
| ); |
| return NSLocale.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// objectForKey: |
| objc.ObjCObject? objectForKey(NSString key) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = key.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_objectForKey_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSLocaleCreation |
| extension NSLocaleCreation on NSLocale { |
| /// autoupdatingCurrentLocale |
| static NSLocale getAutoupdatingCurrentLocale() { |
| objc.checkOsVersionInternal( |
| 'NSLocale.autoupdatingCurrentLocale', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSLocale, |
| _sel_autoupdatingCurrentLocale, |
| ); |
| return NSLocale.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// currentLocale |
| static NSLocale getCurrentLocale() { |
| final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_currentLocale); |
| return NSLocale.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// systemLocale |
| static NSLocale getSystemLocale() { |
| final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_systemLocale); |
| return NSLocale.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| enum NSLocaleLanguageDirection { |
| NSLocaleLanguageDirectionUnknown(0), |
| NSLocaleLanguageDirectionLeftToRight(1), |
| NSLocaleLanguageDirectionRightToLeft(2), |
| NSLocaleLanguageDirectionTopToBottom(3), |
| NSLocaleLanguageDirectionBottomToTop(4); |
| |
| final int value; |
| const NSLocaleLanguageDirection(this.value); |
| |
| static NSLocaleLanguageDirection fromValue(int value) => switch (value) { |
| 0 => NSLocaleLanguageDirectionUnknown, |
| 1 => NSLocaleLanguageDirectionLeftToRight, |
| 2 => NSLocaleLanguageDirectionRightToLeft, |
| 3 => NSLocaleLanguageDirectionTopToBottom, |
| 4 => NSLocaleLanguageDirectionBottomToTop, |
| _ => throw ArgumentError( |
| 'Unknown value for NSLocaleLanguageDirection: $value', |
| ), |
| }; |
| } |
| |
| /// NSMethodSignature |
| extension type NSMethodSignature._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [NSMethodSignature] that points to the same underlying object as [other]. |
| NSMethodSignature.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSMethodSignature] that wraps the given raw object pointer. |
| NSMethodSignature.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSMethodSignature]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSMethodSignature, |
| ); |
| |
| /// alloc |
| static NSMethodSignature alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMethodSignature, _sel_alloc); |
| return NSMethodSignature.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSMethodSignature allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSMethodSignature, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSMethodSignature.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSMethodSignature new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMethodSignature, _sel_new); |
| return NSMethodSignature.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// signatureWithObjCTypes: |
| static NSMethodSignature? signatureWithObjCTypes( |
| ffi.Pointer<ffi.Char> types, |
| ) { |
| final $ret = _objc_msgSend_56zxyn( |
| _class_NSMethodSignature, |
| _sel_signatureWithObjCTypes_, |
| types, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMethodSignature.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// Returns a new instance of NSMethodSignature constructed with the default `new` method. |
| NSMethodSignature() : this.as(new$().object$); |
| } |
| |
| extension NSMethodSignature$Methods on NSMethodSignature { |
| /// frameLength |
| DartNSUInteger get frameLength { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_frameLength); |
| } |
| |
| /// getArgumentTypeAtIndex: |
| ffi.Pointer<ffi.Char> getArgumentTypeAtIndex(DartNSUInteger idx) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1jtxufi( |
| _$$ref.pointer, |
| _sel_getArgumentTypeAtIndex_, |
| idx, |
| ); |
| } |
| |
| /// init |
| NSMethodSignature init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMethodSignature.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSMethodSignature.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// isOneway |
| bool isOneway() { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isOneway); |
| } |
| |
| /// methodReturnLength |
| DartNSUInteger get methodReturnLength { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_methodReturnLength); |
| } |
| |
| /// methodReturnType |
| ffi.Pointer<ffi.Char> get methodReturnType { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_methodReturnType); |
| } |
| |
| /// numberOfArguments |
| DartNSUInteger get numberOfArguments { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfArguments); |
| } |
| } |
| |
| /// NSMutableArray |
| extension type NSMutableArray._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSArray { |
| /// Creates a [NSMutableArray] of the given length with [fill] at each |
| /// position. |
| /// |
| /// The [length] must be a non-negative integer. |
| static NSMutableArray filled(int length, objc.ObjCObject fill) { |
| final a = arrayWithCapacity(length); |
| for (var i = 0; i < length; ++i) a.addObject(fill); |
| return a; |
| } |
| |
| /// Creates a [NSMutableArray] from [elements]. |
| static NSMutableArray of(Iterable<objc.ObjCObject> elements) { |
| final a = arrayWithCapacity(elements.length); |
| for (final e in elements) a.addObject(e); |
| return a; |
| } |
| |
| /// Constructs a [NSMutableArray] that points to the same underlying object as [other]. |
| NSMutableArray.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSMutableArray] that wraps the given raw object pointer. |
| NSMutableArray.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSMutableArray]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSMutableArray, |
| ); |
| |
| /// alloc |
| static NSMutableArray alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_alloc); |
| return NSMutableArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSMutableArray allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSMutableArray, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSMutableArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// array |
| static NSMutableArray array() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_array); |
| return NSMutableArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// arrayWithArray: |
| static NSMutableArray arrayWithArray(NSArray array) { |
| final _$$ref = array.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableArray, |
| _sel_arrayWithArray_, |
| _$$ref.pointer, |
| ); |
| return NSMutableArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// arrayWithCapacity: |
| static NSMutableArray arrayWithCapacity(DartNSUInteger numItems) { |
| final $ret = _objc_msgSend_14hpxwa( |
| _class_NSMutableArray, |
| _sel_arrayWithCapacity_, |
| numItems, |
| ); |
| return NSMutableArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// arrayWithObject: |
| static NSMutableArray arrayWithObject(objc.ObjCObject anObject) { |
| final _$$ref = anObject.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableArray, |
| _sel_arrayWithObject_, |
| _$$ref.pointer, |
| ); |
| return NSMutableArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// arrayWithObjects: |
| static NSMutableArray arrayWithObjects(objc.ObjCObject firstObj) { |
| final _$$ref = firstObj.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableArray, |
| _sel_arrayWithObjects_, |
| _$$ref.pointer, |
| ); |
| return NSMutableArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// arrayWithObjects:count: |
| static NSMutableArray arrayWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required DartNSUInteger count, |
| }) { |
| final $ret = _objc_msgSend_zmbtbd( |
| _class_NSMutableArray, |
| _sel_arrayWithObjects_count_, |
| objects, |
| count, |
| ); |
| return NSMutableArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSMutableArray new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_new); |
| return NSMutableArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635( |
| _class_NSMutableArray, |
| _sel_supportsSecureCoding, |
| ); |
| } |
| |
| /// Returns a new instance of NSMutableArray constructed with the default `new` method. |
| NSMutableArray() : this.as(new$().object$); |
| } |
| |
| extension NSMutableArray$Methods on NSMutableArray { |
| /// addObject: |
| void addObject(objc.ObjCObject anObject) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_addObject_, _$$ref$1.pointer); |
| } |
| |
| /// init |
| NSMutableArray init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableArray.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSMutableArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithArray: |
| NSMutableArray initWithArray(NSArray array) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = array.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithArray_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithArray:copyItems: |
| NSMutableArray initWithArray$1(NSArray array, {required bool copyItems}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = array.ref; |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithArray_copyItems_, |
| _$$ref$1.pointer, |
| copyItems, |
| ); |
| return NSMutableArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCapacity: |
| NSMutableArray initWithCapacity(DartNSUInteger numItems) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCapacity_, |
| numItems, |
| ); |
| return NSMutableArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSMutableArray? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects: |
| NSMutableArray initWithObjects(objc.ObjCObject firstObj) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = firstObj.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects:count: |
| NSMutableArray initWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_zmbtbd( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_count_, |
| objects, |
| count, |
| ); |
| return NSMutableArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// insertObject:atIndex: |
| void insertObject( |
| objc.ObjCObject anObject, { |
| required DartNSUInteger atIndex, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| _objc_msgSend_djsa9o( |
| _$$ref.pointer, |
| _sel_insertObject_atIndex_, |
| _$$ref$1.pointer, |
| atIndex, |
| ); |
| } |
| |
| /// removeLastObject |
| void removeLastObject() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_removeLastObject); |
| } |
| |
| /// removeObjectAtIndex: |
| void removeObjectAtIndex(DartNSUInteger index) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_removeObjectAtIndex_, index); |
| } |
| |
| /// replaceObjectAtIndex:withObject: |
| void replaceObjectAtIndex( |
| DartNSUInteger index, { |
| required objc.ObjCObject withObject, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = withObject.ref; |
| _objc_msgSend_1gypgok( |
| _$$ref.pointer, |
| _sel_replaceObjectAtIndex_withObject_, |
| index, |
| _$$ref$1.pointer, |
| ); |
| } |
| } |
| |
| /// NSMutableArrayCreation |
| extension NSMutableArrayCreation on NSMutableArray { |
| /// initWithContentsOfFile: |
| NSMutableArray? initWithContentsOfFile(NSString path) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfFile_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfURL: |
| NSMutableArray? initWithContentsOfURL(NSURL url) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfURL_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableArray.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// arrayWithContentsOfFile: |
| static NSMutableArray? arrayWithContentsOfFile(NSString path) { |
| final _$$ref = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableArray, |
| _sel_arrayWithContentsOfFile_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// arrayWithContentsOfURL: |
| static NSMutableArray? arrayWithContentsOfURL(NSURL url) { |
| final _$$ref = url.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableArray, |
| _sel_arrayWithContentsOfURL_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableArray.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSMutableCopying |
| extension type NSMutableCopying._(objc.ObjCProtocol object$) |
| implements objc.ObjCProtocol { |
| /// Constructs a [NSMutableCopying] that points to the same underlying object as [other]. |
| NSMutableCopying.as(objc.ObjCObject other) : object$ = other; |
| |
| /// Constructs a [NSMutableCopying] that wraps the given raw object pointer. |
| NSMutableCopying.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); |
| |
| /// Returns whether [obj] is an instance of [NSMutableCopying]. |
| static bool conformsTo(objc.ObjCObject obj) { |
| return _objc_msgSend_e3qsqz( |
| obj.ref.pointer, |
| _sel_conformsToProtocol_, |
| _protocol_NSMutableCopying, |
| ); |
| } |
| } |
| |
| extension NSMutableCopying$Methods on NSMutableCopying { |
| /// mutableCopyWithZone: |
| objc.ObjCObject mutableCopyWithZone(ffi.Pointer<NSZone> zone) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1cwp428( |
| _$$ref.pointer, |
| _sel_mutableCopyWithZone_, |
| zone, |
| ); |
| return objc.ObjCObject($ret, retain: false, release: true); |
| } |
| } |
| |
| interface class NSMutableCopying$Builder { |
| /// Returns the [objc.Protocol] object for this protocol. |
| static objc.Protocol get $protocol => |
| objc.Protocol.fromPointer(_protocol_NSMutableCopying.cast()); |
| |
| /// Builds an object that implements the NSMutableCopying protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSMutableCopying implement({ |
| required objc.ObjCObject Function(ffi.Pointer<NSZone>) mutableCopyWithZone_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSMutableCopying'); |
| NSMutableCopying$Builder.mutableCopyWithZone_.implement( |
| builder, |
| mutableCopyWithZone_, |
| ); |
| builder.addProtocol($protocol); |
| return NSMutableCopying.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSMutableCopying protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilder( |
| objc.ObjCProtocolBuilder builder, { |
| required objc.ObjCObject Function(ffi.Pointer<NSZone>) mutableCopyWithZone_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSMutableCopying$Builder.mutableCopyWithZone_.implement( |
| builder, |
| mutableCopyWithZone_, |
| ); |
| builder.addProtocol($protocol); |
| } |
| |
| /// mutableCopyWithZone: |
| static final mutableCopyWithZone_ = |
| objc.ObjCProtocolMethod<objc.ObjCObject Function(ffi.Pointer<NSZone>)>( |
| _protocol_NSMutableCopying, |
| _sel_mutableCopyWithZone_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_18nsem0) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSMutableCopying, |
| _sel_mutableCopyWithZone_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (objc.ObjCObject Function(ffi.Pointer<NSZone>) func) => |
| ObjCBlock_objcObjCObjectImpl_ffiVoid_NSZone.fromFunction( |
| (ffi.Pointer<ffi.Void> _, ffi.Pointer<NSZone> arg1) => func(arg1), |
| ), |
| ); |
| } |
| |
| /// NSMutableData |
| extension type NSMutableData._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSData { |
| /// Constructs a [NSMutableData] that points to the same underlying object as [other]. |
| NSMutableData.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSMutableData] that wraps the given raw object pointer. |
| NSMutableData.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSMutableData]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSMutableData, |
| ); |
| |
| /// alloc |
| static NSMutableData alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_alloc); |
| return NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSMutableData allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSMutableData, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// data |
| static NSMutableData data() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_data); |
| return NSMutableData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithBytes:length: |
| static NSMutableData dataWithBytes( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| }) { |
| final $ret = _objc_msgSend_3nbx5e( |
| _class_NSMutableData, |
| _sel_dataWithBytes_length_, |
| bytes, |
| length, |
| ); |
| return NSMutableData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithBytesNoCopy:length: |
| static NSMutableData dataWithBytesNoCopy( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| }) { |
| final $ret = _objc_msgSend_3nbx5e( |
| _class_NSMutableData, |
| _sel_dataWithBytesNoCopy_length_, |
| bytes, |
| length, |
| ); |
| return NSMutableData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithBytesNoCopy:length:freeWhenDone: |
| static NSMutableData dataWithBytesNoCopy$1( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| required bool freeWhenDone, |
| }) { |
| final $ret = _objc_msgSend_161ne8y( |
| _class_NSMutableData, |
| _sel_dataWithBytesNoCopy_length_freeWhenDone_, |
| bytes, |
| length, |
| freeWhenDone, |
| ); |
| return NSMutableData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithCapacity: |
| static NSMutableData? dataWithCapacity(DartNSUInteger aNumItems) { |
| final $ret = _objc_msgSend_14hpxwa( |
| _class_NSMutableData, |
| _sel_dataWithCapacity_, |
| aNumItems, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithContentsOfFile: |
| static NSMutableData? dataWithContentsOfFile(NSString path) { |
| final _$$ref = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableData, |
| _sel_dataWithContentsOfFile_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithContentsOfFile:options:error: |
| static NSMutableData? dataWithContentsOfFile$1( |
| NSString path, { |
| required DartNSUInteger options, |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> error, |
| }) { |
| final _$$ref = path.ref; |
| final $ret = _objc_msgSend_8321cp( |
| _class_NSMutableData, |
| _sel_dataWithContentsOfFile_options_error_, |
| _$$ref.pointer, |
| options, |
| error, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithContentsOfURL: |
| static NSMutableData? dataWithContentsOfURL(NSURL url) { |
| final _$$ref = url.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableData, |
| _sel_dataWithContentsOfURL_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithContentsOfURL:options:error: |
| static NSMutableData? dataWithContentsOfURL$1( |
| NSURL url, { |
| required DartNSUInteger options, |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> error, |
| }) { |
| final _$$ref = url.ref; |
| final $ret = _objc_msgSend_8321cp( |
| _class_NSMutableData, |
| _sel_dataWithContentsOfURL_options_error_, |
| _$$ref.pointer, |
| options, |
| error, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithData: |
| static NSMutableData dataWithData(NSData data) { |
| final _$$ref = data.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableData, |
| _sel_dataWithData_, |
| _$$ref.pointer, |
| ); |
| return NSMutableData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataWithLength: |
| static NSMutableData? dataWithLength(DartNSUInteger length) { |
| final $ret = _objc_msgSend_14hpxwa( |
| _class_NSMutableData, |
| _sel_dataWithLength_, |
| length, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSMutableData new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_new); |
| return NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635( |
| _class_NSMutableData, |
| _sel_supportsSecureCoding, |
| ); |
| } |
| |
| /// Returns a new instance of NSMutableData constructed with the default `new` method. |
| NSMutableData() : this.as(new$().object$); |
| } |
| |
| extension NSMutableData$Methods on NSMutableData { |
| /// compressedDataUsingAlgorithm:error: |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSMutableData? compressedDataUsingAlgorithm( |
| NSDataCompressionAlgorithm algorithm, |
| ) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableData.compressedDataUsingAlgorithm:error:', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1vnlaqg( |
| _$$ref.pointer, |
| _sel_compressedDataUsingAlgorithm_error_, |
| algorithm.value, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// decompressedDataUsingAlgorithm:error: |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSMutableData? decompressedDataUsingAlgorithm( |
| NSDataCompressionAlgorithm algorithm, |
| ) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableData.decompressedDataUsingAlgorithm:error:', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1vnlaqg( |
| _$$ref.pointer, |
| _sel_decompressedDataUsingAlgorithm_error_, |
| algorithm.value, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// init |
| NSMutableData init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableData.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBase64EncodedData:options: |
| NSMutableData? initWithBase64EncodedData( |
| NSData base64Data, { |
| required DartNSUInteger options, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = base64Data.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableData.initWithBase64EncodedData:options:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_7kpg7m( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBase64EncodedData_options_, |
| _$$ref$1.pointer, |
| options, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBase64EncodedString:options: |
| NSMutableData? initWithBase64EncodedString( |
| NSString base64String, { |
| required DartNSUInteger options, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = base64String.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableData.initWithBase64EncodedString:options:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_7kpg7m( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBase64EncodedString_options_, |
| _$$ref$1.pointer, |
| options, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytes:length: |
| NSMutableData initWithBytes( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_3nbx5e( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytes_length_, |
| bytes, |
| length, |
| ); |
| return NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytesNoCopy:length: |
| NSMutableData initWithBytesNoCopy( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_3nbx5e( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytesNoCopy_length_, |
| bytes, |
| length, |
| ); |
| return NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytesNoCopy:length:deallocator: |
| NSMutableData initWithBytesNoCopy$1( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong)>? |
| deallocator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = deallocator?.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableData.initWithBytesNoCopy:length:deallocator:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_134vhyh( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytesNoCopy_length_deallocator_, |
| bytes, |
| length, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytesNoCopy:length:freeWhenDone: |
| NSMutableData initWithBytesNoCopy$2( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| required bool freeWhenDone, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_161ne8y( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytesNoCopy_length_freeWhenDone_, |
| bytes, |
| length, |
| freeWhenDone, |
| ); |
| return NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCapacity: |
| NSMutableData? initWithCapacity(DartNSUInteger capacity) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCapacity_, |
| capacity, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSMutableData? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfFile: |
| NSMutableData? initWithContentsOfFile(NSString path) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfFile_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfFile:options:error: |
| NSMutableData? initWithContentsOfFile$1( |
| NSString path, { |
| required DartNSUInteger options, |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> error, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $ret = _objc_msgSend_8321cp( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfFile_options_error_, |
| _$$ref$1.pointer, |
| options, |
| error, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfURL: |
| NSMutableData? initWithContentsOfURL(NSURL url) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfURL_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfURL:options:error: |
| NSMutableData? initWithContentsOfURL$1( |
| NSURL url, { |
| required DartNSUInteger options, |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> error, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| final $ret = _objc_msgSend_8321cp( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfURL_options_error_, |
| _$$ref$1.pointer, |
| options, |
| error, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithData: |
| NSMutableData initWithData(NSData data) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = data.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithData_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithLength: |
| NSMutableData? initWithLength(DartNSUInteger length) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithLength_, |
| length, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableData.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// length |
| DartNSUInteger get length { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_length); |
| } |
| |
| /// mutableBytes |
| ffi.Pointer<ffi.Void> get mutableBytes { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_mutableBytes); |
| } |
| |
| /// setLength: |
| set length$1(DartNSUInteger value) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_setLength_, value); |
| } |
| } |
| |
| /// NSMutableDataCreation |
| extension NSMutableDataCreation on NSMutableData {} |
| |
| /// NSMutableDictionary |
| extension type NSMutableDictionary._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSDictionary { |
| /// Creates a [NSMutableDictionary] from [other]. |
| static NSMutableDictionary of(Map<NSCopying, objc.ObjCObject> other) => |
| NSMutableDictionary.fromEntries(other.entries); |
| |
| /// Creates a [NSMutableDictionary] from [entries]. |
| static NSMutableDictionary fromEntries( |
| Iterable<MapEntry<NSCopying, objc.ObjCObject>> entries, |
| ) { |
| final dict = dictionaryWithCapacity(entries.length); |
| for (final MapEntry(:key, :value) in entries) { |
| dict.setObject(value, forKey: NSCopying.as(key)); |
| } |
| return dict; |
| } |
| |
| /// Constructs a [NSMutableDictionary] that points to the same underlying object as [other]. |
| NSMutableDictionary.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSMutableDictionary] that wraps the given raw object pointer. |
| NSMutableDictionary.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSMutableDictionary]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSMutableDictionary, |
| ); |
| |
| /// alloc |
| static NSMutableDictionary alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableDictionary, _sel_alloc); |
| return NSMutableDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSMutableDictionary allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSMutableDictionary, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// dictionary |
| static NSMutableDictionary dictionary() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSMutableDictionary, |
| _sel_dictionary, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dictionaryWithCapacity: |
| static NSMutableDictionary dictionaryWithCapacity(DartNSUInteger numItems) { |
| final $ret = _objc_msgSend_14hpxwa( |
| _class_NSMutableDictionary, |
| _sel_dictionaryWithCapacity_, |
| numItems, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dictionaryWithDictionary: |
| static NSMutableDictionary dictionaryWithDictionary(NSDictionary dict) { |
| final _$$ref = dict.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableDictionary, |
| _sel_dictionaryWithDictionary_, |
| _$$ref.pointer, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dictionaryWithObject:forKey: |
| static NSMutableDictionary dictionaryWithObject( |
| objc.ObjCObject object, { |
| required NSCopying forKey, |
| }) { |
| final _$$ref = object.ref; |
| final _$$ref$1 = forKey.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _class_NSMutableDictionary, |
| _sel_dictionaryWithObject_forKey_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dictionaryWithObjects:forKeys: |
| static NSMutableDictionary dictionaryWithObjects( |
| NSArray objects, { |
| required NSArray forKeys, |
| }) { |
| final _$$ref = objects.ref; |
| final _$$ref$1 = forKeys.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _class_NSMutableDictionary, |
| _sel_dictionaryWithObjects_forKeys_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dictionaryWithObjects:forKeys:count: |
| static NSMutableDictionary dictionaryWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> forKeys, |
| required DartNSUInteger count, |
| }) { |
| final $ret = _objc_msgSend_1dydpdi( |
| _class_NSMutableDictionary, |
| _sel_dictionaryWithObjects_forKeys_count_, |
| objects, |
| forKeys, |
| count, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dictionaryWithObjectsAndKeys: |
| static NSMutableDictionary dictionaryWithObjectsAndKeys( |
| objc.ObjCObject firstObject, |
| ) { |
| final _$$ref = firstObject.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableDictionary, |
| _sel_dictionaryWithObjectsAndKeys_, |
| _$$ref.pointer, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSMutableDictionary new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableDictionary, _sel_new); |
| return NSMutableDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635( |
| _class_NSMutableDictionary, |
| _sel_supportsSecureCoding, |
| ); |
| } |
| |
| /// Returns a new instance of NSMutableDictionary constructed with the default `new` method. |
| NSMutableDictionary() : this.as(new$().object$); |
| } |
| |
| extension NSMutableDictionary$Methods on NSMutableDictionary { |
| /// init |
| NSMutableDictionary init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableDictionary.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCapacity: |
| NSMutableDictionary initWithCapacity(DartNSUInteger numItems) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCapacity_, |
| numItems, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSMutableDictionary? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithDictionary: |
| NSMutableDictionary initWithDictionary(NSDictionary otherDictionary) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherDictionary.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithDictionary_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithDictionary:copyItems: |
| NSMutableDictionary initWithDictionary$1( |
| NSDictionary otherDictionary, { |
| required bool copyItems, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherDictionary.ref; |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithDictionary_copyItems_, |
| _$$ref$1.pointer, |
| copyItems, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects:forKeys: |
| NSMutableDictionary initWithObjects( |
| NSArray objects, { |
| required NSArray forKeys, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = objects.ref; |
| final _$$ref$2 = forKeys.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_forKeys_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects:forKeys:count: |
| NSMutableDictionary initWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> forKeys, |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1dydpdi( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_forKeys_count_, |
| objects, |
| forKeys, |
| count, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjectsAndKeys: |
| NSMutableDictionary initWithObjectsAndKeys(objc.ObjCObject firstObject) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = firstObject.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjectsAndKeys_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// removeObjectForKey: |
| void removeObjectForKey(objc.ObjCObject aKey) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aKey.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_removeObjectForKey_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// setObject:forKey: |
| void setObject(objc.ObjCObject anObject, {required NSCopying forKey}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject.ref; |
| final _$$ref$2 = forKey.ref; |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_setObject_forKey_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| } |
| |
| /// NSMutableDictionaryCreation |
| extension NSMutableDictionaryCreation on NSMutableDictionary { |
| /// initWithContentsOfFile: |
| NSMutableDictionary? initWithContentsOfFile(NSString path) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfFile_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfURL: |
| NSMutableDictionary? initWithContentsOfURL(NSURL url) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfURL_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableDictionary.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// dictionaryWithContentsOfFile: |
| static NSMutableDictionary? dictionaryWithContentsOfFile(NSString path) { |
| final _$$ref = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableDictionary, |
| _sel_dictionaryWithContentsOfFile_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dictionaryWithContentsOfURL: |
| static NSMutableDictionary? dictionaryWithContentsOfURL(NSURL url) { |
| final _$$ref = url.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableDictionary, |
| _sel_dictionaryWithContentsOfURL_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSMutableIndexSet |
| extension type NSMutableIndexSet._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSIndexSet { |
| /// Constructs a [NSMutableIndexSet] that points to the same underlying object as [other]. |
| NSMutableIndexSet.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSMutableIndexSet] that wraps the given raw object pointer. |
| NSMutableIndexSet.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSMutableIndexSet]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSMutableIndexSet, |
| ); |
| |
| /// alloc |
| static NSMutableIndexSet alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_alloc); |
| return NSMutableIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSMutableIndexSet allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSMutableIndexSet, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSMutableIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// indexSet |
| static NSMutableIndexSet indexSet() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_indexSet); |
| return NSMutableIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// indexSetWithIndex: |
| static NSMutableIndexSet indexSetWithIndex(DartNSUInteger value) { |
| final $ret = _objc_msgSend_14hpxwa( |
| _class_NSMutableIndexSet, |
| _sel_indexSetWithIndex_, |
| value, |
| ); |
| return NSMutableIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// indexSetWithIndexesInRange: |
| static NSMutableIndexSet indexSetWithIndexesInRange(NSRange range) { |
| final $ret = _objc_msgSend_1k1o1s7( |
| _class_NSMutableIndexSet, |
| _sel_indexSetWithIndexesInRange_, |
| range, |
| ); |
| return NSMutableIndexSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSMutableIndexSet new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_new); |
| return NSMutableIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635( |
| _class_NSMutableIndexSet, |
| _sel_supportsSecureCoding, |
| ); |
| } |
| |
| /// Returns a new instance of NSMutableIndexSet constructed with the default `new` method. |
| NSMutableIndexSet() : this.as(new$().object$); |
| } |
| |
| extension NSMutableIndexSet$Methods on NSMutableIndexSet { |
| /// addIndex: |
| void addIndex(DartNSUInteger value) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_addIndex_, value); |
| } |
| |
| /// addIndexes: |
| void addIndexes(NSIndexSet indexSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = indexSet.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_addIndexes_, _$$ref$1.pointer); |
| } |
| |
| /// addIndexesInRange: |
| void addIndexesInRange(NSRange range) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1e3pm0z(_$$ref.pointer, _sel_addIndexesInRange_, range); |
| } |
| |
| /// init |
| NSMutableIndexSet init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableIndexSet.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSMutableIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSMutableIndexSet? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithIndex: |
| NSMutableIndexSet initWithIndex(DartNSUInteger value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithIndex_, |
| value, |
| ); |
| return NSMutableIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithIndexSet: |
| NSMutableIndexSet initWithIndexSet(NSIndexSet indexSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = indexSet.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithIndexSet_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithIndexesInRange: |
| NSMutableIndexSet initWithIndexesInRange(NSRange range) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1k1o1s7( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithIndexesInRange_, |
| range, |
| ); |
| return NSMutableIndexSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// removeAllIndexes |
| void removeAllIndexes() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_removeAllIndexes); |
| } |
| |
| /// removeIndex: |
| void removeIndex(DartNSUInteger value) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_removeIndex_, value); |
| } |
| |
| /// removeIndexes: |
| void removeIndexes(NSIndexSet indexSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = indexSet.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_removeIndexes_, _$$ref$1.pointer); |
| } |
| |
| /// removeIndexesInRange: |
| void removeIndexesInRange(NSRange range) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1e3pm0z(_$$ref.pointer, _sel_removeIndexesInRange_, range); |
| } |
| |
| /// shiftIndexesStartingAtIndex:by: |
| void shiftIndexesStartingAtIndex(DartNSUInteger index, {required int by}) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_otx1t4( |
| _$$ref.pointer, |
| _sel_shiftIndexesStartingAtIndex_by_, |
| index, |
| by, |
| ); |
| } |
| } |
| |
| /// NSMutableOrderedSet |
| extension type NSMutableOrderedSet._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSOrderedSet { |
| /// Constructs a [NSMutableOrderedSet] that points to the same underlying object as [other]. |
| NSMutableOrderedSet.as(objc.ObjCObject other) : object$ = other { |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSMutableOrderedSet] that wraps the given raw object pointer. |
| NSMutableOrderedSet.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSMutableOrderedSet]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSMutableOrderedSet, |
| ); |
| |
| /// alloc |
| static NSMutableOrderedSet alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableOrderedSet, _sel_alloc); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSMutableOrderedSet allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSMutableOrderedSet, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSMutableOrderedSet new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableOrderedSet, _sel_new); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// orderedSet |
| static NSMutableOrderedSet orderedSet() { |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.orderedSet', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSMutableOrderedSet, |
| _sel_orderedSet, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithArray: |
| static NSMutableOrderedSet orderedSetWithArray(NSArray array) { |
| final _$$ref = array.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.orderedSetWithArray:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableOrderedSet, |
| _sel_orderedSetWithArray_, |
| _$$ref.pointer, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithArray:range:copyItems: |
| static NSMutableOrderedSet orderedSetWithArray$1( |
| NSArray array, { |
| required NSRange range, |
| required bool copyItems, |
| }) { |
| final _$$ref = array.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.orderedSetWithArray:range:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_w9bq5x( |
| _class_NSMutableOrderedSet, |
| _sel_orderedSetWithArray_range_copyItems_, |
| _$$ref.pointer, |
| range, |
| copyItems, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithCapacity: |
| static NSMutableOrderedSet orderedSetWithCapacity(DartNSUInteger numItems) { |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.orderedSetWithCapacity:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_14hpxwa( |
| _class_NSMutableOrderedSet, |
| _sel_orderedSetWithCapacity_, |
| numItems, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithObject: |
| static NSMutableOrderedSet orderedSetWithObject(objc.ObjCObject object) { |
| final _$$ref = object.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.orderedSetWithObject:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableOrderedSet, |
| _sel_orderedSetWithObject_, |
| _$$ref.pointer, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithObjects: |
| static NSMutableOrderedSet orderedSetWithObjects(objc.ObjCObject firstObj) { |
| final _$$ref = firstObj.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.orderedSetWithObjects:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableOrderedSet, |
| _sel_orderedSetWithObjects_, |
| _$$ref.pointer, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithObjects:count: |
| static NSMutableOrderedSet orderedSetWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required DartNSUInteger count, |
| }) { |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.orderedSetWithObjects:count:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_zmbtbd( |
| _class_NSMutableOrderedSet, |
| _sel_orderedSetWithObjects_count_, |
| objects, |
| count, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithOrderedSet: |
| static NSMutableOrderedSet orderedSetWithOrderedSet(NSOrderedSet set) { |
| final _$$ref = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.orderedSetWithOrderedSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableOrderedSet, |
| _sel_orderedSetWithOrderedSet_, |
| _$$ref.pointer, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithOrderedSet:range:copyItems: |
| static NSMutableOrderedSet orderedSetWithOrderedSet$1( |
| NSOrderedSet set, { |
| required NSRange range, |
| required bool copyItems, |
| }) { |
| final _$$ref = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.orderedSetWithOrderedSet:range:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_w9bq5x( |
| _class_NSMutableOrderedSet, |
| _sel_orderedSetWithOrderedSet_range_copyItems_, |
| _$$ref.pointer, |
| range, |
| copyItems, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithSet: |
| static NSMutableOrderedSet orderedSetWithSet(NSSet set) { |
| final _$$ref = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.orderedSetWithSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableOrderedSet, |
| _sel_orderedSetWithSet_, |
| _$$ref.pointer, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithSet:copyItems: |
| static NSMutableOrderedSet orderedSetWithSet$1( |
| NSSet set, { |
| required bool copyItems, |
| }) { |
| final _$$ref = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.orderedSetWithSet:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _class_NSMutableOrderedSet, |
| _sel_orderedSetWithSet_copyItems_, |
| _$$ref.pointer, |
| copyItems, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635( |
| _class_NSMutableOrderedSet, |
| _sel_supportsSecureCoding, |
| ); |
| } |
| |
| /// Returns a new instance of NSMutableOrderedSet constructed with the default `new` method. |
| NSMutableOrderedSet() : this.as(new$().object$); |
| } |
| |
| extension NSMutableOrderedSet$Methods on NSMutableOrderedSet { |
| /// init |
| NSMutableOrderedSet init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithArray: |
| NSMutableOrderedSet initWithArray(NSArray array) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = array.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.initWithArray:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithArray_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithArray:copyItems: |
| NSMutableOrderedSet initWithArray$1(NSArray set, {required bool copyItems}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.initWithArray:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithArray_copyItems_, |
| _$$ref$1.pointer, |
| copyItems, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithArray:range:copyItems: |
| NSMutableOrderedSet initWithArray$2( |
| NSArray set, { |
| required NSRange range, |
| required bool copyItems, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.initWithArray:range:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_w9bq5x( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithArray_range_copyItems_, |
| _$$ref$1.pointer, |
| range, |
| copyItems, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCapacity: |
| NSMutableOrderedSet initWithCapacity(DartNSUInteger numItems) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.initWithCapacity:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCapacity_, |
| numItems, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSMutableOrderedSet? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObject: |
| NSMutableOrderedSet initWithObject(objc.ObjCObject object) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.initWithObject:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObject_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects: |
| NSMutableOrderedSet initWithObjects(objc.ObjCObject firstObj) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = firstObj.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.initWithObjects:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects:count: |
| NSMutableOrderedSet initWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.initWithObjects:count:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_zmbtbd( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_count_, |
| objects, |
| count, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithOrderedSet: |
| NSMutableOrderedSet initWithOrderedSet(NSOrderedSet set) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.initWithOrderedSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithOrderedSet_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithOrderedSet:copyItems: |
| NSMutableOrderedSet initWithOrderedSet$1( |
| NSOrderedSet set, { |
| required bool copyItems, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.initWithOrderedSet:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithOrderedSet_copyItems_, |
| _$$ref$1.pointer, |
| copyItems, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithOrderedSet:range:copyItems: |
| NSMutableOrderedSet initWithOrderedSet$2( |
| NSOrderedSet set, { |
| required NSRange range, |
| required bool copyItems, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.initWithOrderedSet:range:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_w9bq5x( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithOrderedSet_range_copyItems_, |
| _$$ref$1.pointer, |
| range, |
| copyItems, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithSet: |
| NSMutableOrderedSet initWithSet(NSSet set) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.initWithSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithSet_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithSet:copyItems: |
| NSMutableOrderedSet initWithSet$1(NSSet set, {required bool copyItems}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.initWithSet:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithSet_copyItems_, |
| _$$ref$1.pointer, |
| copyItems, |
| ); |
| return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// insertObject:atIndex: |
| void insertObject(objc.ObjCObject object, {required DartNSUInteger atIndex}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.insertObject:atIndex:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_djsa9o( |
| _$$ref.pointer, |
| _sel_insertObject_atIndex_, |
| _$$ref$1.pointer, |
| atIndex, |
| ); |
| } |
| |
| /// removeObjectAtIndex: |
| void removeObjectAtIndex(DartNSUInteger idx) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.removeObjectAtIndex:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_removeObjectAtIndex_, idx); |
| } |
| |
| /// replaceObjectAtIndex:withObject: |
| void replaceObjectAtIndex( |
| DartNSUInteger idx, { |
| required objc.ObjCObject withObject, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = withObject.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableOrderedSet.replaceObjectAtIndex:withObject:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_1gypgok( |
| _$$ref.pointer, |
| _sel_replaceObjectAtIndex_withObject_, |
| idx, |
| _$$ref$1.pointer, |
| ); |
| } |
| } |
| |
| /// NSMutableOrderedSetCreation |
| extension NSMutableOrderedSetCreation on NSMutableOrderedSet {} |
| |
| /// NSMutableSet |
| extension type NSMutableSet._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSSet { |
| /// Creates a [NSMutableSet] from [elements]. |
| static NSMutableSet of(Iterable<objc.ObjCObject> elements) { |
| final set = setWithCapacity(elements.length); |
| for (final e in elements) set.addObject(e); |
| return set; |
| } |
| |
| /// Constructs a [NSMutableSet] that points to the same underlying object as [other]. |
| NSMutableSet.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSMutableSet] that wraps the given raw object pointer. |
| NSMutableSet.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSMutableSet]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSMutableSet, |
| ); |
| |
| /// alloc |
| static NSMutableSet alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_alloc); |
| return NSMutableSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSMutableSet allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSMutableSet, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSMutableSet new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_new); |
| return NSMutableSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// set |
| static NSMutableSet set() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_set); |
| return NSMutableSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setWithArray: |
| static NSMutableSet setWithArray(NSArray array) { |
| final _$$ref = array.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableSet, |
| _sel_setWithArray_, |
| _$$ref.pointer, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setWithCapacity: |
| static NSMutableSet setWithCapacity(DartNSUInteger numItems) { |
| final $ret = _objc_msgSend_14hpxwa( |
| _class_NSMutableSet, |
| _sel_setWithCapacity_, |
| numItems, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setWithObject: |
| static NSMutableSet setWithObject(objc.ObjCObject object) { |
| final _$$ref = object.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableSet, |
| _sel_setWithObject_, |
| _$$ref.pointer, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setWithObjects: |
| static NSMutableSet setWithObjects(objc.ObjCObject firstObj) { |
| final _$$ref = firstObj.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableSet, |
| _sel_setWithObjects_, |
| _$$ref.pointer, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setWithObjects:count: |
| static NSMutableSet setWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required DartNSUInteger count, |
| }) { |
| final $ret = _objc_msgSend_zmbtbd( |
| _class_NSMutableSet, |
| _sel_setWithObjects_count_, |
| objects, |
| count, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setWithSet: |
| static NSMutableSet setWithSet(NSSet set) { |
| final _$$ref = set.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableSet, |
| _sel_setWithSet_, |
| _$$ref.pointer, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSMutableSet, _sel_supportsSecureCoding); |
| } |
| |
| /// Returns a new instance of NSMutableSet constructed with the default `new` method. |
| NSMutableSet() : this.as(new$().object$); |
| } |
| |
| extension NSMutableSet$Methods on NSMutableSet { |
| /// addObject: |
| void addObject(objc.ObjCObject object) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_addObject_, _$$ref$1.pointer); |
| } |
| |
| /// init |
| NSMutableSet init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableSet.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithArray: |
| NSMutableSet initWithArray(NSArray array) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = array.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithArray_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCapacity: |
| NSMutableSet initWithCapacity(DartNSUInteger numItems) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCapacity_, |
| numItems, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSMutableSet? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects: |
| NSMutableSet initWithObjects(objc.ObjCObject firstObj) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = firstObj.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects:count: |
| NSMutableSet initWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_zmbtbd( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_count_, |
| objects, |
| count, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithSet: |
| NSMutableSet initWithSet(NSSet set) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithSet_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithSet:copyItems: |
| NSMutableSet initWithSet$1(NSSet set, {required bool copyItems}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithSet_copyItems_, |
| _$$ref$1.pointer, |
| copyItems, |
| ); |
| return NSMutableSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// removeObject: |
| void removeObject(objc.ObjCObject object) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_removeObject_, _$$ref$1.pointer); |
| } |
| } |
| |
| /// NSMutableSetCreation |
| extension NSMutableSetCreation on NSMutableSet {} |
| |
| /// NSMutableString |
| extension type NSMutableString._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSString { |
| /// Constructs a [NSMutableString] that points to the same underlying object as [other]. |
| NSMutableString.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSMutableString] that wraps the given raw object pointer. |
| NSMutableString.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSMutableString]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSMutableString, |
| ); |
| |
| /// alloc |
| static NSMutableString alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_alloc); |
| return NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSMutableString allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSMutableString, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// localizedStringWithFormat: |
| static NSMutableString localizedStringWithFormat(NSString format) { |
| final _$$ref = format.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableString, |
| _sel_localizedStringWithFormat_, |
| _$$ref.pointer, |
| ); |
| return NSMutableString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedStringWithValidatedFormat:validFormatSpecifiers:error: |
| static NSMutableString? localizedStringWithValidatedFormat( |
| NSString format, { |
| required NSString validFormatSpecifiers, |
| }) { |
| final _$$ref = format.ref; |
| final _$$ref$1 = validFormatSpecifiers.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1pnyuds( |
| _class_NSMutableString, |
| _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// new |
| static NSMutableString new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_new); |
| return NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// string |
| static NSMutableString string() { |
| final $ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_string); |
| return NSMutableString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringWithCString:encoding: |
| static NSMutableString? stringWithCString( |
| ffi.Pointer<ffi.Char> cString, { |
| required DartNSUInteger encoding, |
| }) { |
| final $ret = _objc_msgSend_erqryg( |
| _class_NSMutableString, |
| _sel_stringWithCString_encoding_, |
| cString, |
| encoding, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringWithCharacters:length: |
| static NSMutableString stringWithCharacters( |
| ffi.Pointer<ffi.UnsignedShort> characters, { |
| required DartNSUInteger length, |
| }) { |
| final $ret = _objc_msgSend_9x4k8x( |
| _class_NSMutableString, |
| _sel_stringWithCharacters_length_, |
| characters, |
| length, |
| ); |
| return NSMutableString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringWithContentsOfFile:encoding:error: |
| static NSMutableString? stringWithContentsOfFile( |
| NSString path, { |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = path.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1nomli1( |
| _class_NSMutableString, |
| _sel_stringWithContentsOfFile_encoding_error_, |
| _$$ref.pointer, |
| encoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// stringWithContentsOfFile:usedEncoding:error: |
| static NSMutableString? stringWithContentsOfFile$1( |
| NSString path, { |
| required ffi.Pointer<NSUInteger> usedEncoding, |
| }) { |
| final _$$ref = path.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1alewu7( |
| _class_NSMutableString, |
| _sel_stringWithContentsOfFile_usedEncoding_error_, |
| _$$ref.pointer, |
| usedEncoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// stringWithContentsOfURL:encoding:error: |
| static NSMutableString? stringWithContentsOfURL( |
| NSURL url, { |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = url.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1nomli1( |
| _class_NSMutableString, |
| _sel_stringWithContentsOfURL_encoding_error_, |
| _$$ref.pointer, |
| encoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// stringWithContentsOfURL:usedEncoding:error: |
| static NSMutableString? stringWithContentsOfURL$1( |
| NSURL url, { |
| required ffi.Pointer<NSUInteger> usedEncoding, |
| }) { |
| final _$$ref = url.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1alewu7( |
| _class_NSMutableString, |
| _sel_stringWithContentsOfURL_usedEncoding_error_, |
| _$$ref.pointer, |
| usedEncoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// stringWithFormat: |
| static NSMutableString stringWithFormat(NSString format) { |
| final _$$ref = format.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableString, |
| _sel_stringWithFormat_, |
| _$$ref.pointer, |
| ); |
| return NSMutableString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringWithString: |
| static NSMutableString stringWithString(NSString string) { |
| final _$$ref = string.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSMutableString, |
| _sel_stringWithString_, |
| _$$ref.pointer, |
| ); |
| return NSMutableString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringWithUTF8String: |
| static NSMutableString? stringWithUTF8String( |
| ffi.Pointer<ffi.Char> nullTerminatedCString, |
| ) { |
| final $ret = _objc_msgSend_56zxyn( |
| _class_NSMutableString, |
| _sel_stringWithUTF8String_, |
| nullTerminatedCString, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringWithValidatedFormat:validFormatSpecifiers:error: |
| static NSMutableString? stringWithValidatedFormat( |
| NSString format, { |
| required NSString validFormatSpecifiers, |
| }) { |
| final _$$ref = format.ref; |
| final _$$ref$1 = validFormatSpecifiers.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableString.stringWithValidatedFormat:validFormatSpecifiers:error:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1pnyuds( |
| _class_NSMutableString, |
| _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635( |
| _class_NSMutableString, |
| _sel_supportsSecureCoding, |
| ); |
| } |
| |
| /// Returns a new instance of NSMutableString constructed with the default `new` method. |
| NSMutableString() : this.as(new$().object$); |
| } |
| |
| extension NSMutableString$Methods on NSMutableString { |
| /// init |
| NSMutableString init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableString.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytes:length:encoding: |
| NSMutableString? initWithBytes( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_9b3h4v( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytes_length_encoding_, |
| bytes, |
| length, |
| encoding, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytesNoCopy:length:encoding:deallocator: |
| NSMutableString? initWithBytesNoCopy( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| required DartNSUInteger encoding, |
| objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong)>? |
| deallocator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = deallocator?.ref; |
| final $ret = _objc_msgSend_1lbgrac( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytesNoCopy_length_encoding_deallocator_, |
| bytes, |
| length, |
| encoding, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytesNoCopy:length:encoding:freeWhenDone: |
| NSMutableString? initWithBytesNoCopy$1( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| required DartNSUInteger encoding, |
| required bool freeWhenDone, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_k4j8m3( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, |
| bytes, |
| length, |
| encoding, |
| freeWhenDone, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCString:encoding: |
| NSMutableString? initWithCString( |
| ffi.Pointer<ffi.Char> nullTerminatedCString, { |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_erqryg( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCString_encoding_, |
| nullTerminatedCString, |
| encoding, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCharacters:length: |
| NSMutableString initWithCharacters( |
| ffi.Pointer<ffi.UnsignedShort> characters, { |
| required DartNSUInteger length, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_9x4k8x( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCharacters_length_, |
| characters, |
| length, |
| ); |
| return NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCharactersNoCopy:length:deallocator: |
| NSMutableString initWithCharactersNoCopy( |
| ffi.Pointer<ffi.UnsignedShort> chars, { |
| required DartNSUInteger length, |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong) |
| >? |
| deallocator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = deallocator?.ref; |
| final $ret = _objc_msgSend_talwei( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCharactersNoCopy_length_deallocator_, |
| chars, |
| length, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCharactersNoCopy:length:freeWhenDone: |
| NSMutableString initWithCharactersNoCopy$1( |
| ffi.Pointer<ffi.UnsignedShort> characters, { |
| required DartNSUInteger length, |
| required bool freeWhenDone, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_lh0jh5( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCharactersNoCopy_length_freeWhenDone_, |
| characters, |
| length, |
| freeWhenDone, |
| ); |
| return NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSMutableString? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfFile:encoding:error: |
| NSMutableString? initWithContentsOfFile( |
| NSString path, { |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1nomli1( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfFile_encoding_error_, |
| _$$ref$1.pointer, |
| encoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initWithContentsOfFile:usedEncoding:error: |
| NSMutableString? initWithContentsOfFile$1( |
| NSString path, { |
| required ffi.Pointer<NSUInteger> usedEncoding, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1alewu7( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfFile_usedEncoding_error_, |
| _$$ref$1.pointer, |
| usedEncoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initWithContentsOfURL:encoding:error: |
| NSMutableString? initWithContentsOfURL( |
| NSURL url, { |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1nomli1( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfURL_encoding_error_, |
| _$$ref$1.pointer, |
| encoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initWithContentsOfURL:usedEncoding:error: |
| NSMutableString? initWithContentsOfURL$1( |
| NSURL url, { |
| required ffi.Pointer<NSUInteger> usedEncoding, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1alewu7( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfURL_usedEncoding_error_, |
| _$$ref$1.pointer, |
| usedEncoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initWithData:encoding: |
| NSMutableString? initWithData( |
| NSData data, { |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = data.ref; |
| final $ret = _objc_msgSend_1k4kd9s( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithData_encoding_, |
| _$$ref$1.pointer, |
| encoding, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithFormat: |
| NSMutableString initWithFormat(NSString format) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = format.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithFormat_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithFormat:locale: |
| NSMutableString initWithFormat$1(NSString format, {objc.ObjCObject? locale}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = format.ref; |
| final _$$ref$2 = locale?.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithFormat_locale_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithString: |
| NSMutableString initWithString(NSString aString) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aString.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithString_, |
| _$$ref$1.pointer, |
| ); |
| return NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithUTF8String: |
| NSMutableString? initWithUTF8String( |
| ffi.Pointer<ffi.Char> nullTerminatedCString, |
| ) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_56zxyn( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithUTF8String_, |
| nullTerminatedCString, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithValidatedFormat:validFormatSpecifiers:error: |
| /// |
| /// iOS: introduced 16.0.0 |
| /// macOS: introduced 13.0.0 |
| NSMutableString? initWithValidatedFormat( |
| NSString format, { |
| required NSString validFormatSpecifiers, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = format.ref; |
| final _$$ref$2 = validFormatSpecifiers.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:error:', |
| iOS: (false, (16, 0, 0)), |
| macOS: (false, (13, 0, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1pnyuds( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithValidatedFormat_validFormatSpecifiers_error_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initWithValidatedFormat:validFormatSpecifiers:locale:error: |
| /// |
| /// iOS: introduced 16.0.0 |
| /// macOS: introduced 13.0.0 |
| NSMutableString? initWithValidatedFormat$1( |
| NSString format, { |
| required NSString validFormatSpecifiers, |
| objc.ObjCObject? locale, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = format.ref; |
| final _$$ref$2 = validFormatSpecifiers.ref; |
| final _$$ref$3 = locale?.ref; |
| objc.checkOsVersionInternal( |
| 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', |
| iOS: (false, (16, 0, 0)), |
| macOS: (false, (13, 0, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1k0ezzm( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSMutableString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// replaceCharactersInRange:withString: |
| void replaceCharactersInRange(NSRange range, {required NSString withString}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = withString.ref; |
| _objc_msgSend_1tv4uax( |
| _$$ref.pointer, |
| _sel_replaceCharactersInRange_withString_, |
| range, |
| _$$ref$1.pointer, |
| ); |
| } |
| } |
| |
| /// NSNotification |
| extension type NSNotification._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject, NSCopying, NSCoding { |
| /// Constructs a [NSNotification] that points to the same underlying object as [other]. |
| NSNotification.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSNotification] that wraps the given raw object pointer. |
| NSNotification.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSNotification]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSNotification, |
| ); |
| |
| /// alloc |
| static NSNotification alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSNotification, _sel_alloc); |
| return NSNotification.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSNotification allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSNotification, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSNotification.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSNotification new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSNotification, _sel_new); |
| return NSNotification.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// notificationWithName:object: |
| static NSNotification notificationWithName( |
| NSString aName, { |
| objc.ObjCObject? object, |
| }) { |
| final _$$ref = aName.ref; |
| final _$$ref$1 = object?.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _class_NSNotification, |
| _sel_notificationWithName_object_, |
| _$$ref.pointer, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSNotification.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// notificationWithName:object:userInfo: |
| static NSNotification notificationWithName$1( |
| NSString aName, { |
| objc.ObjCObject? object, |
| NSDictionary? userInfo, |
| }) { |
| final _$$ref = aName.ref; |
| final _$$ref$1 = object?.ref; |
| final _$$ref$2 = userInfo?.ref; |
| final $ret = _objc_msgSend_11spmsz( |
| _class_NSNotification, |
| _sel_notificationWithName_object_userInfo_, |
| _$$ref.pointer, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSNotification.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// Returns a new instance of NSNotification constructed with the default `new` method. |
| NSNotification() : this.as(new$().object$); |
| } |
| |
| extension NSNotification$Methods on NSNotification { |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// init |
| NSNotification init() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSNotification.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSNotification? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSNotification.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithName:object:userInfo: |
| NSNotification initWithName( |
| NSString name, { |
| objc.ObjCObject? object, |
| NSDictionary? userInfo, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = name.ref; |
| final _$$ref$2 = object?.ref; |
| final _$$ref$3 = userInfo?.ref; |
| objc.checkOsVersionInternal( |
| 'NSNotification.initWithName:object:userInfo:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_11spmsz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithName_object_userInfo_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| ); |
| return NSNotification.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// name |
| NSString get name { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_name); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// object |
| objc.ObjCObject? get object { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_object); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// userInfo |
| NSDictionary? get userInfo { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_userInfo); |
| return $ret.address == 0 |
| ? null |
| : NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSNotificationCreation |
| extension NSNotificationCreation on NSNotification {} |
| |
| /// NSNull |
| extension type NSNull._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject, NSCopying, NSSecureCoding { |
| /// Constructs a [NSNull] that points to the same underlying object as [other]. |
| NSNull.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSNull] that wraps the given raw object pointer. |
| NSNull.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSNull]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSNull, |
| ); |
| |
| /// alloc |
| static NSNull alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSNull, _sel_alloc); |
| return NSNull.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSNull allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSNull, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSNull.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSNull new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSNull, _sel_new); |
| return NSNull.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// null |
| static NSNull null$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSNull, _sel_null); |
| return NSNull.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSNull, _sel_supportsSecureCoding); |
| } |
| |
| /// Returns a new instance of NSNull constructed with the default `new` method. |
| NSNull() : this.as(new$().object$); |
| } |
| |
| extension NSNull$Methods on NSNull { |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// init |
| NSNull init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSNull.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSNull.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSNull? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSNull.fromPointer($ret, retain: false, release: true); |
| } |
| } |
| |
| /// NSNumber |
| extension type NSNumber._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSValue { |
| /// Constructs a [NSNumber] that points to the same underlying object as [other]. |
| NSNumber.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSNumber] that wraps the given raw object pointer. |
| NSNumber.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSNumber]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSNumber, |
| ); |
| |
| /// alloc |
| static NSNumber alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSNumber, _sel_alloc); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSNumber allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSNumber, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSNumber new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSNumber, _sel_new); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSNumber, _sel_supportsSecureCoding); |
| } |
| |
| /// Returns a new instance of NSNumber constructed with the default `new` method. |
| NSNumber() : this.as(new$().object$); |
| } |
| |
| extension NSNumber$Methods on NSNumber { |
| /// boolValue |
| bool get boolValue { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_boolValue); |
| } |
| |
| /// charValue |
| int get charValue { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xmlz1t(_$$ref.pointer, _sel_charValue); |
| } |
| |
| /// compare: |
| NSComparisonResult compare(NSNumber otherNumber) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = otherNumber.ref; |
| final $ret = _objc_msgSend_1ym6zyw( |
| _$$ref.pointer, |
| _sel_compare_, |
| _$$ref$1.pointer, |
| ); |
| return NSComparisonResult.fromValue($ret); |
| } |
| |
| /// descriptionWithLocale: |
| NSString descriptionWithLocale(objc.ObjCObject? locale) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = locale?.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_descriptionWithLocale_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// doubleValue |
| double get doubleValue { |
| final _$$ref = object$.ref; |
| return objc.useMsgSendVariants |
| ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_doubleValue) |
| : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_doubleValue); |
| } |
| |
| /// floatValue |
| double get floatValue { |
| final _$$ref = object$.ref; |
| return objc.useMsgSendVariants |
| ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_floatValue) |
| : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_floatValue); |
| } |
| |
| /// init |
| NSNumber init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSNumber.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBool: |
| NSNumber initWithBool(bool value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1t6aok9( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBool_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytes:objCType: |
| NSNumber initWithBytes( |
| ffi.Pointer<ffi.Void> value, { |
| required ffi.Pointer<ffi.Char> objCType, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_e9mncn( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytes_objCType_, |
| value, |
| objCType, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithChar: |
| NSNumber initWithChar(int value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_13mclwd( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithChar_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSNumber? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithDouble: |
| NSNumber initWithDouble(double value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_oa8mke( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithDouble_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithFloat: |
| NSNumber initWithFloat(double value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_et8cuh( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithFloat_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithInt: |
| NSNumber initWithInt(int value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_14hvw5k( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithInt_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithInteger: |
| NSNumber initWithInteger(int value) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSNumber.initWithInteger:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_qugqlf( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithInteger_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithLong: |
| NSNumber initWithLong(int value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_qugqlf( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithLong_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithLongLong: |
| NSNumber initWithLongLong(int value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_16f0drb( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithLongLong_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithShort: |
| NSNumber initWithShort(int value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_68x6r1( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithShort_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithUnsignedChar: |
| NSNumber initWithUnsignedChar(int value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_7uautw( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithUnsignedChar_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithUnsignedInt: |
| NSNumber initWithUnsignedInt(int value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_degb40( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithUnsignedInt_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithUnsignedInteger: |
| NSNumber initWithUnsignedInteger(DartNSUInteger value) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSNumber.initWithUnsignedInteger:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithUnsignedInteger_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithUnsignedLong: |
| NSNumber initWithUnsignedLong(int value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithUnsignedLong_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithUnsignedLongLong: |
| NSNumber initWithUnsignedLongLong(int value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1x2hskc( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithUnsignedLongLong_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithUnsignedShort: |
| NSNumber initWithUnsignedShort(int value) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1njucl2( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithUnsignedShort_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// intValue |
| int get intValue { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_intValue); |
| } |
| |
| /// integerValue |
| int get integerValue { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSNumber.integerValue', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_integerValue); |
| } |
| |
| /// isEqualToNumber: |
| bool isEqualToNumber(NSNumber number) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = number.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isEqualToNumber_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// longLongValue |
| int get longLongValue { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_longLongValue); |
| } |
| |
| /// longValue |
| int get longValue { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_longValue); |
| } |
| |
| /// shortValue |
| int get shortValue { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1jwityx(_$$ref.pointer, _sel_shortValue); |
| } |
| |
| /// stringValue |
| NSString get stringValue { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_stringValue); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// unsignedCharValue |
| int get unsignedCharValue { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1ko4qka(_$$ref.pointer, _sel_unsignedCharValue); |
| } |
| |
| /// unsignedIntValue |
| int get unsignedIntValue { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_unsignedIntValue); |
| } |
| |
| /// unsignedIntegerValue |
| DartNSUInteger get unsignedIntegerValue { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSNumber.unsignedIntegerValue', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_unsignedIntegerValue); |
| } |
| |
| /// unsignedLongLongValue |
| int get unsignedLongLongValue { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1p4gbjy(_$$ref.pointer, _sel_unsignedLongLongValue); |
| } |
| |
| /// unsignedLongValue |
| int get unsignedLongValue { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_unsignedLongValue); |
| } |
| |
| /// unsignedShortValue |
| int get unsignedShortValue { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_ud8gg(_$$ref.pointer, _sel_unsignedShortValue); |
| } |
| } |
| |
| /// NSNumberCreation |
| extension NSNumberCreation on NSNumber { |
| /// numberWithBool: |
| static NSNumber numberWithBool(bool value) { |
| final $ret = _objc_msgSend_1t6aok9( |
| _class_NSNumber, |
| _sel_numberWithBool_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithChar: |
| static NSNumber numberWithChar(int value) { |
| final $ret = _objc_msgSend_13mclwd( |
| _class_NSNumber, |
| _sel_numberWithChar_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithDouble: |
| static NSNumber numberWithDouble(double value) { |
| final $ret = _objc_msgSend_oa8mke( |
| _class_NSNumber, |
| _sel_numberWithDouble_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithFloat: |
| static NSNumber numberWithFloat(double value) { |
| final $ret = _objc_msgSend_et8cuh( |
| _class_NSNumber, |
| _sel_numberWithFloat_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithInt: |
| static NSNumber numberWithInt(int value) { |
| final $ret = _objc_msgSend_14hvw5k( |
| _class_NSNumber, |
| _sel_numberWithInt_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithInteger: |
| static NSNumber numberWithInteger(int value) { |
| objc.checkOsVersionInternal( |
| 'NSNumber.numberWithInteger:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_qugqlf( |
| _class_NSNumber, |
| _sel_numberWithInteger_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithLong: |
| static NSNumber numberWithLong(int value) { |
| final $ret = _objc_msgSend_qugqlf( |
| _class_NSNumber, |
| _sel_numberWithLong_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithLongLong: |
| static NSNumber numberWithLongLong(int value) { |
| final $ret = _objc_msgSend_16f0drb( |
| _class_NSNumber, |
| _sel_numberWithLongLong_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithShort: |
| static NSNumber numberWithShort(int value) { |
| final $ret = _objc_msgSend_68x6r1( |
| _class_NSNumber, |
| _sel_numberWithShort_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithUnsignedChar: |
| static NSNumber numberWithUnsignedChar(int value) { |
| final $ret = _objc_msgSend_7uautw( |
| _class_NSNumber, |
| _sel_numberWithUnsignedChar_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithUnsignedInt: |
| static NSNumber numberWithUnsignedInt(int value) { |
| final $ret = _objc_msgSend_degb40( |
| _class_NSNumber, |
| _sel_numberWithUnsignedInt_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithUnsignedInteger: |
| static NSNumber numberWithUnsignedInteger(DartNSUInteger value) { |
| objc.checkOsVersionInternal( |
| 'NSNumber.numberWithUnsignedInteger:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_14hpxwa( |
| _class_NSNumber, |
| _sel_numberWithUnsignedInteger_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithUnsignedLong: |
| static NSNumber numberWithUnsignedLong(int value) { |
| final $ret = _objc_msgSend_14hpxwa( |
| _class_NSNumber, |
| _sel_numberWithUnsignedLong_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithUnsignedLongLong: |
| static NSNumber numberWithUnsignedLongLong(int value) { |
| final $ret = _objc_msgSend_1x2hskc( |
| _class_NSNumber, |
| _sel_numberWithUnsignedLongLong_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// numberWithUnsignedShort: |
| static NSNumber numberWithUnsignedShort(int value) { |
| final $ret = _objc_msgSend_1njucl2( |
| _class_NSNumber, |
| _sel_numberWithUnsignedShort_, |
| value, |
| ); |
| return NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSNumberIsBool |
| extension NSNumberIsBool on NSNumber { |
| /// isBool |
| bool get isBool { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isBool); |
| } |
| } |
| |
| /// NSNumberIsFloat |
| extension NSNumberIsFloat on NSNumber { |
| /// isFloat |
| bool get isFloat { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isFloat); |
| } |
| } |
| |
| /// NSObject |
| extension type NSObject._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObjectProtocol { |
| /// Constructs a [NSObject] that points to the same underlying object as [other]. |
| NSObject.as(objc.ObjCObject other) : object$ = other { |
| objc.checkOsVersionInternal( |
| 'NSObject', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSObject] that wraps the given raw object pointer. |
| NSObject.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| objc.checkOsVersionInternal( |
| 'NSObject', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSObject]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSObject, |
| ); |
| |
| /// alloc |
| static NSObject alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSObject, _sel_alloc); |
| return NSObject.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSObject allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSObject, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSObject.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// class |
| static objc.ObjCObject class$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSObject, _sel_class); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// conformsToProtocol: |
| static bool conformsToProtocol(Protocol protocol) { |
| final _$$ref = protocol.ref; |
| objc.checkOsVersionInternal( |
| 'NSObject.conformsToProtocol:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _class_NSObject, |
| _sel_conformsToProtocol_, |
| _$$ref.pointer, |
| ); |
| } |
| |
| /// copyWithZone: |
| static objc.ObjCObject copyWithZone(ffi.Pointer<NSZone> zone) { |
| objc.checkOsVersionInternal( |
| 'NSObject.copyWithZone:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSObject, |
| _sel_copyWithZone_, |
| zone, |
| ); |
| return objc.ObjCObject($ret, retain: false, release: true); |
| } |
| |
| /// debugDescription |
| static NSString debugDescription() { |
| objc.checkOsVersionInternal( |
| 'NSObject.debugDescription', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_class_NSObject, _sel_debugDescription); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// description |
| static NSString description() { |
| objc.checkOsVersionInternal( |
| 'NSObject.description', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_class_NSObject, _sel_description); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// hash |
| static DartNSUInteger hash() { |
| objc.checkOsVersionInternal( |
| 'NSObject.hash', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| return _objc_msgSend_xw2lbc(_class_NSObject, _sel_hash); |
| } |
| |
| /// initialize |
| static void initialize() { |
| objc.checkOsVersionInternal( |
| 'NSObject.initialize', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| _objc_msgSend_1pl9qdv(_class_NSObject, _sel_initialize); |
| } |
| |
| /// instanceMethodForSelector: |
| static ffi.Pointer<ffi.NativeFunction<ffi.Void Function()>> |
| instanceMethodForSelector(ffi.Pointer<objc.ObjCSelector> aSelector) { |
| objc.checkOsVersionInternal( |
| 'NSObject.instanceMethodForSelector:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| return _objc_msgSend_3cnxxu( |
| _class_NSObject, |
| _sel_instanceMethodForSelector_, |
| aSelector, |
| ); |
| } |
| |
| /// instanceMethodSignatureForSelector: |
| static NSMethodSignature instanceMethodSignatureForSelector( |
| ffi.Pointer<objc.ObjCSelector> aSelector, |
| ) { |
| final $ret = _objc_msgSend_3ctkt6( |
| _class_NSObject, |
| _sel_instanceMethodSignatureForSelector_, |
| aSelector, |
| ); |
| return NSMethodSignature.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// instancesRespondToSelector: |
| static bool instancesRespondToSelector( |
| ffi.Pointer<objc.ObjCSelector> aSelector, |
| ) { |
| objc.checkOsVersionInternal( |
| 'NSObject.instancesRespondToSelector:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| return _objc_msgSend_1srf6wk( |
| _class_NSObject, |
| _sel_instancesRespondToSelector_, |
| aSelector, |
| ); |
| } |
| |
| /// isSubclassOfClass: |
| static bool isSubclassOfClass(objc.ObjCObject aClass) { |
| final _$$ref = aClass.ref; |
| objc.checkOsVersionInternal( |
| 'NSObject.isSubclassOfClass:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _class_NSObject, |
| _sel_isSubclassOfClass_, |
| _$$ref.pointer, |
| ); |
| } |
| |
| /// load |
| static void load() { |
| objc.checkOsVersionInternal( |
| 'NSObject.load', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| _objc_msgSend_1pl9qdv(_class_NSObject, _sel_load); |
| } |
| |
| /// mutableCopyWithZone: |
| static objc.ObjCObject mutableCopyWithZone(ffi.Pointer<NSZone> zone) { |
| objc.checkOsVersionInternal( |
| 'NSObject.mutableCopyWithZone:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSObject, |
| _sel_mutableCopyWithZone_, |
| zone, |
| ); |
| return objc.ObjCObject($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSObject new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSObject, _sel_new); |
| return NSObject.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// resolveClassMethod: |
| static bool resolveClassMethod(ffi.Pointer<objc.ObjCSelector> sel) { |
| objc.checkOsVersionInternal( |
| 'NSObject.resolveClassMethod:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| return _objc_msgSend_1srf6wk( |
| _class_NSObject, |
| _sel_resolveClassMethod_, |
| sel, |
| ); |
| } |
| |
| /// resolveInstanceMethod: |
| static bool resolveInstanceMethod(ffi.Pointer<objc.ObjCSelector> sel) { |
| objc.checkOsVersionInternal( |
| 'NSObject.resolveInstanceMethod:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| return _objc_msgSend_1srf6wk( |
| _class_NSObject, |
| _sel_resolveInstanceMethod_, |
| sel, |
| ); |
| } |
| |
| /// superclass |
| static objc.ObjCObject superclass() { |
| objc.checkOsVersionInternal( |
| 'NSObject.superclass', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_class_NSObject, _sel_superclass); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// Returns a new instance of NSObject constructed with the default `new` method. |
| NSObject() : this.as(new$().object$); |
| } |
| |
| extension NSObject$Methods on NSObject { |
| /// copy |
| objc.ObjCObject copy() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSObject.copy', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copy); |
| return objc.ObjCObject($ret, retain: false, release: true); |
| } |
| |
| /// dealloc |
| void dealloc() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_dealloc); |
| } |
| |
| /// doesNotRecognizeSelector: |
| void doesNotRecognizeSelector(ffi.Pointer<objc.ObjCSelector> aSelector) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSObject.doesNotRecognizeSelector:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| _objc_msgSend_1d9e4oe( |
| _$$ref.pointer, |
| _sel_doesNotRecognizeSelector_, |
| aSelector, |
| ); |
| } |
| |
| /// forwardInvocation: |
| void forwardInvocation(NSInvocation anInvocation) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anInvocation.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_forwardInvocation_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// forwardingTargetForSelector: |
| objc.ObjCObject forwardingTargetForSelector( |
| ffi.Pointer<objc.ObjCSelector> aSelector, |
| ) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSObject.forwardingTargetForSelector:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_3ctkt6( |
| _$$ref.pointer, |
| _sel_forwardingTargetForSelector_, |
| aSelector, |
| ); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// init |
| NSObject init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSObject.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSObject.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// isEqual: |
| bool isEqual(objc.ObjCObject object) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isEqual_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// isKindOfClass: |
| bool isKindOfClass(objc.ObjCObject aClass) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aClass.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isKindOfClass_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// isMemberOfClass: |
| bool isMemberOfClass(objc.ObjCObject aClass) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aClass.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isMemberOfClass_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// isProxy |
| bool get isProxy { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isProxy); |
| } |
| |
| /// methodForSelector: |
| ffi.Pointer<ffi.NativeFunction<ffi.Void Function()>> methodForSelector( |
| ffi.Pointer<objc.ObjCSelector> aSelector, |
| ) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSObject.methodForSelector:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| return _objc_msgSend_3cnxxu( |
| _$$ref.pointer, |
| _sel_methodForSelector_, |
| aSelector, |
| ); |
| } |
| |
| /// methodSignatureForSelector: |
| NSMethodSignature methodSignatureForSelector( |
| ffi.Pointer<objc.ObjCSelector> aSelector, |
| ) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_3ctkt6( |
| _$$ref.pointer, |
| _sel_methodSignatureForSelector_, |
| aSelector, |
| ); |
| return NSMethodSignature.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// mutableCopy |
| objc.ObjCObject mutableCopy() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSObject.mutableCopy', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_mutableCopy); |
| return objc.ObjCObject($ret, retain: false, release: true); |
| } |
| |
| /// performSelector: |
| objc.ObjCObject performSelector(ffi.Pointer<objc.ObjCSelector> aSelector) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_3ctkt6( |
| _$$ref.pointer, |
| _sel_performSelector_, |
| aSelector, |
| ); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// performSelector:withObject: |
| objc.ObjCObject performSelector$1( |
| ffi.Pointer<objc.ObjCSelector> aSelector, { |
| required objc.ObjCObject withObject, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = withObject.ref; |
| final $ret = _objc_msgSend_gx50so( |
| _$$ref.pointer, |
| _sel_performSelector_withObject_, |
| aSelector, |
| _$$ref$1.pointer, |
| ); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// performSelector:withObject:withObject: |
| objc.ObjCObject performSelector$2( |
| ffi.Pointer<objc.ObjCSelector> aSelector, { |
| required objc.ObjCObject withObject, |
| required objc.ObjCObject withObject$1, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = withObject.ref; |
| final _$$ref$2 = withObject$1.ref; |
| final $ret = _objc_msgSend_cfx8ce( |
| _$$ref.pointer, |
| _sel_performSelector_withObject_withObject_, |
| aSelector, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// zone |
| ffi.Pointer<NSZone> zone() { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_sz90oi(_$$ref.pointer, _sel_zone); |
| } |
| } |
| |
| /// NSObject |
| extension type NSObjectProtocol._(objc.ObjCProtocol object$) |
| implements objc.ObjCProtocol { |
| /// Constructs a [NSObjectProtocol] that points to the same underlying object as [other]. |
| NSObjectProtocol.as(objc.ObjCObject other) : object$ = other; |
| |
| /// Constructs a [NSObjectProtocol] that wraps the given raw object pointer. |
| NSObjectProtocol.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); |
| |
| /// Returns whether [obj] is an instance of [NSObjectProtocol]. |
| static bool conformsTo(objc.ObjCObject obj) { |
| return _objc_msgSend_e3qsqz( |
| obj.ref.pointer, |
| _sel_conformsToProtocol_, |
| _protocol_NSObject, |
| ); |
| } |
| } |
| |
| extension NSObjectProtocol$Methods on NSObjectProtocol { |
| /// autorelease |
| NSObjectProtocol autorelease() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_autorelease); |
| return NSObjectProtocol.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// class |
| objc.ObjCObject class$() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_class); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// conformsToProtocol: |
| bool conformsToProtocol(Protocol aProtocol) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aProtocol.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_conformsToProtocol_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// debugDescription |
| NSString get debugDescription { |
| final _$$ref = object$.ref; |
| if (!objc.respondsToSelector(_$$ref.pointer, _sel_debugDescription)) { |
| throw objc.UnimplementedOptionalMethodException( |
| 'NSObject', |
| 'debugDescription', |
| ); |
| } |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_debugDescription); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// description |
| NSString get description { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_description); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// hash |
| DartNSUInteger get hash { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_hash); |
| } |
| |
| /// isEqual: |
| bool isEqual(objc.ObjCObject object) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isEqual_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// isKindOfClass: |
| bool isKindOfClass(objc.ObjCObject aClass) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aClass.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isKindOfClass_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// isMemberOfClass: |
| bool isMemberOfClass(objc.ObjCObject aClass) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aClass.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isMemberOfClass_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// isProxy |
| bool isProxy() { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isProxy); |
| } |
| |
| /// performSelector: |
| objc.ObjCObject performSelector(ffi.Pointer<objc.ObjCSelector> aSelector) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_3ctkt6( |
| _$$ref.pointer, |
| _sel_performSelector_, |
| aSelector, |
| ); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// performSelector:withObject: |
| objc.ObjCObject performSelector$1( |
| ffi.Pointer<objc.ObjCSelector> aSelector, { |
| required objc.ObjCObject withObject, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = withObject.ref; |
| final $ret = _objc_msgSend_gx50so( |
| _$$ref.pointer, |
| _sel_performSelector_withObject_, |
| aSelector, |
| _$$ref$1.pointer, |
| ); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// performSelector:withObject:withObject: |
| objc.ObjCObject performSelector$2( |
| ffi.Pointer<objc.ObjCSelector> aSelector, { |
| required objc.ObjCObject withObject, |
| required objc.ObjCObject withObject$1, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = withObject.ref; |
| final _$$ref$2 = withObject$1.ref; |
| final $ret = _objc_msgSend_cfx8ce( |
| _$$ref.pointer, |
| _sel_performSelector_withObject_withObject_, |
| aSelector, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// release |
| void release() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_release); |
| } |
| |
| /// respondsToSelector: |
| bool respondsToSelector(ffi.Pointer<objc.ObjCSelector> aSelector) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1srf6wk( |
| _$$ref.pointer, |
| _sel_respondsToSelector_, |
| aSelector, |
| ); |
| } |
| |
| /// retain |
| NSObjectProtocol retain() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_retain); |
| return NSObjectProtocol.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// retainCount |
| DartNSUInteger retainCount() { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_retainCount); |
| } |
| |
| /// self |
| NSObjectProtocol self() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_self); |
| return NSObjectProtocol.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// superclass |
| objc.ObjCObject get superclass { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_superclass); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// zone |
| ffi.Pointer<NSZone> zone() { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_sz90oi(_$$ref.pointer, _sel_zone); |
| } |
| } |
| |
| interface class NSObjectProtocol$Builder { |
| /// Returns the [objc.Protocol] object for this protocol. |
| static objc.Protocol get $protocol => |
| objc.Protocol.fromPointer(_protocol_NSObject.cast()); |
| |
| /// Builds an object that implements the NSObject protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSObjectProtocol implement({ |
| required objc.ObjCObject Function() autorelease, |
| required objc.ObjCObject Function() class$, |
| required bool Function(Protocol) conformsToProtocol_, |
| NSString Function()? debugDescription, |
| required NSString Function() description, |
| required DartNSUInteger Function() hash, |
| required bool Function(objc.ObjCObject) isEqual_, |
| required bool Function(objc.ObjCObject) isKindOfClass_, |
| required bool Function(objc.ObjCObject) isMemberOfClass_, |
| required bool Function() isProxy, |
| required objc.ObjCObject Function(ffi.Pointer<objc.ObjCSelector>) |
| performSelector_, |
| required objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| ) |
| performSelector_withObject_, |
| required objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| objc.ObjCObject, |
| ) |
| performSelector_withObject_withObject_, |
| required void Function() release, |
| required bool Function(ffi.Pointer<objc.ObjCSelector>) respondsToSelector_, |
| required objc.ObjCObject Function() retain, |
| required DartNSUInteger Function() retainCount, |
| required objc.ObjCObject Function() self, |
| required objc.ObjCObject Function() superclass, |
| required ffi.Pointer<NSZone> Function() zone, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); |
| NSObjectProtocol$Builder.autorelease.implement(builder, autorelease); |
| NSObjectProtocol$Builder.class$.implement(builder, class$); |
| NSObjectProtocol$Builder.conformsToProtocol_.implement( |
| builder, |
| conformsToProtocol_, |
| ); |
| NSObjectProtocol$Builder.debugDescription.implement( |
| builder, |
| debugDescription, |
| ); |
| NSObjectProtocol$Builder.description.implement(builder, description); |
| NSObjectProtocol$Builder.hash.implement(builder, hash); |
| NSObjectProtocol$Builder.isEqual_.implement(builder, isEqual_); |
| NSObjectProtocol$Builder.isKindOfClass_.implement(builder, isKindOfClass_); |
| NSObjectProtocol$Builder.isMemberOfClass_.implement( |
| builder, |
| isMemberOfClass_, |
| ); |
| NSObjectProtocol$Builder.isProxy.implement(builder, isProxy); |
| NSObjectProtocol$Builder.performSelector_.implement( |
| builder, |
| performSelector_, |
| ); |
| NSObjectProtocol$Builder.performSelector_withObject_.implement( |
| builder, |
| performSelector_withObject_, |
| ); |
| NSObjectProtocol$Builder.performSelector_withObject_withObject_.implement( |
| builder, |
| performSelector_withObject_withObject_, |
| ); |
| NSObjectProtocol$Builder.release.implement(builder, release); |
| NSObjectProtocol$Builder.respondsToSelector_.implement( |
| builder, |
| respondsToSelector_, |
| ); |
| NSObjectProtocol$Builder.retain.implement(builder, retain); |
| NSObjectProtocol$Builder.retainCount.implement(builder, retainCount); |
| NSObjectProtocol$Builder.self.implement(builder, self); |
| NSObjectProtocol$Builder.superclass.implement(builder, superclass); |
| NSObjectProtocol$Builder.zone.implement(builder, zone); |
| builder.addProtocol($protocol); |
| return NSObjectProtocol.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSObject protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilder( |
| objc.ObjCProtocolBuilder builder, { |
| required objc.ObjCObject Function() autorelease, |
| required objc.ObjCObject Function() class$, |
| required bool Function(Protocol) conformsToProtocol_, |
| NSString Function()? debugDescription, |
| required NSString Function() description, |
| required DartNSUInteger Function() hash, |
| required bool Function(objc.ObjCObject) isEqual_, |
| required bool Function(objc.ObjCObject) isKindOfClass_, |
| required bool Function(objc.ObjCObject) isMemberOfClass_, |
| required bool Function() isProxy, |
| required objc.ObjCObject Function(ffi.Pointer<objc.ObjCSelector>) |
| performSelector_, |
| required objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| ) |
| performSelector_withObject_, |
| required objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| objc.ObjCObject, |
| ) |
| performSelector_withObject_withObject_, |
| required void Function() release, |
| required bool Function(ffi.Pointer<objc.ObjCSelector>) respondsToSelector_, |
| required objc.ObjCObject Function() retain, |
| required DartNSUInteger Function() retainCount, |
| required objc.ObjCObject Function() self, |
| required objc.ObjCObject Function() superclass, |
| required ffi.Pointer<NSZone> Function() zone, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSObjectProtocol$Builder.autorelease.implement(builder, autorelease); |
| NSObjectProtocol$Builder.class$.implement(builder, class$); |
| NSObjectProtocol$Builder.conformsToProtocol_.implement( |
| builder, |
| conformsToProtocol_, |
| ); |
| NSObjectProtocol$Builder.debugDescription.implement( |
| builder, |
| debugDescription, |
| ); |
| NSObjectProtocol$Builder.description.implement(builder, description); |
| NSObjectProtocol$Builder.hash.implement(builder, hash); |
| NSObjectProtocol$Builder.isEqual_.implement(builder, isEqual_); |
| NSObjectProtocol$Builder.isKindOfClass_.implement(builder, isKindOfClass_); |
| NSObjectProtocol$Builder.isMemberOfClass_.implement( |
| builder, |
| isMemberOfClass_, |
| ); |
| NSObjectProtocol$Builder.isProxy.implement(builder, isProxy); |
| NSObjectProtocol$Builder.performSelector_.implement( |
| builder, |
| performSelector_, |
| ); |
| NSObjectProtocol$Builder.performSelector_withObject_.implement( |
| builder, |
| performSelector_withObject_, |
| ); |
| NSObjectProtocol$Builder.performSelector_withObject_withObject_.implement( |
| builder, |
| performSelector_withObject_withObject_, |
| ); |
| NSObjectProtocol$Builder.release.implement(builder, release); |
| NSObjectProtocol$Builder.respondsToSelector_.implement( |
| builder, |
| respondsToSelector_, |
| ); |
| NSObjectProtocol$Builder.retain.implement(builder, retain); |
| NSObjectProtocol$Builder.retainCount.implement(builder, retainCount); |
| NSObjectProtocol$Builder.self.implement(builder, self); |
| NSObjectProtocol$Builder.superclass.implement(builder, superclass); |
| NSObjectProtocol$Builder.zone.implement(builder, zone); |
| builder.addProtocol($protocol); |
| } |
| |
| /// Builds an object that implements the NSObject protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All |
| /// methods that can be implemented as listeners will be. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSObjectProtocol implementAsListener({ |
| required objc.ObjCObject Function() autorelease, |
| required objc.ObjCObject Function() class$, |
| required bool Function(Protocol) conformsToProtocol_, |
| NSString Function()? debugDescription, |
| required NSString Function() description, |
| required DartNSUInteger Function() hash, |
| required bool Function(objc.ObjCObject) isEqual_, |
| required bool Function(objc.ObjCObject) isKindOfClass_, |
| required bool Function(objc.ObjCObject) isMemberOfClass_, |
| required bool Function() isProxy, |
| required objc.ObjCObject Function(ffi.Pointer<objc.ObjCSelector>) |
| performSelector_, |
| required objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| ) |
| performSelector_withObject_, |
| required objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| objc.ObjCObject, |
| ) |
| performSelector_withObject_withObject_, |
| required void Function() release, |
| required bool Function(ffi.Pointer<objc.ObjCSelector>) respondsToSelector_, |
| required objc.ObjCObject Function() retain, |
| required DartNSUInteger Function() retainCount, |
| required objc.ObjCObject Function() self, |
| required objc.ObjCObject Function() superclass, |
| required ffi.Pointer<NSZone> Function() zone, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); |
| NSObjectProtocol$Builder.autorelease.implement(builder, autorelease); |
| NSObjectProtocol$Builder.class$.implement(builder, class$); |
| NSObjectProtocol$Builder.conformsToProtocol_.implement( |
| builder, |
| conformsToProtocol_, |
| ); |
| NSObjectProtocol$Builder.debugDescription.implement( |
| builder, |
| debugDescription, |
| ); |
| NSObjectProtocol$Builder.description.implement(builder, description); |
| NSObjectProtocol$Builder.hash.implement(builder, hash); |
| NSObjectProtocol$Builder.isEqual_.implement(builder, isEqual_); |
| NSObjectProtocol$Builder.isKindOfClass_.implement(builder, isKindOfClass_); |
| NSObjectProtocol$Builder.isMemberOfClass_.implement( |
| builder, |
| isMemberOfClass_, |
| ); |
| NSObjectProtocol$Builder.isProxy.implement(builder, isProxy); |
| NSObjectProtocol$Builder.performSelector_.implement( |
| builder, |
| performSelector_, |
| ); |
| NSObjectProtocol$Builder.performSelector_withObject_.implement( |
| builder, |
| performSelector_withObject_, |
| ); |
| NSObjectProtocol$Builder.performSelector_withObject_withObject_.implement( |
| builder, |
| performSelector_withObject_withObject_, |
| ); |
| NSObjectProtocol$Builder.release.implementAsListener(builder, release); |
| NSObjectProtocol$Builder.respondsToSelector_.implement( |
| builder, |
| respondsToSelector_, |
| ); |
| NSObjectProtocol$Builder.retain.implement(builder, retain); |
| NSObjectProtocol$Builder.retainCount.implement(builder, retainCount); |
| NSObjectProtocol$Builder.self.implement(builder, self); |
| NSObjectProtocol$Builder.superclass.implement(builder, superclass); |
| NSObjectProtocol$Builder.zone.implement(builder, zone); |
| builder.addProtocol($protocol); |
| return NSObjectProtocol.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSObject protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will |
| /// be. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilderAsListener( |
| objc.ObjCProtocolBuilder builder, { |
| required objc.ObjCObject Function() autorelease, |
| required objc.ObjCObject Function() class$, |
| required bool Function(Protocol) conformsToProtocol_, |
| NSString Function()? debugDescription, |
| required NSString Function() description, |
| required DartNSUInteger Function() hash, |
| required bool Function(objc.ObjCObject) isEqual_, |
| required bool Function(objc.ObjCObject) isKindOfClass_, |
| required bool Function(objc.ObjCObject) isMemberOfClass_, |
| required bool Function() isProxy, |
| required objc.ObjCObject Function(ffi.Pointer<objc.ObjCSelector>) |
| performSelector_, |
| required objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| ) |
| performSelector_withObject_, |
| required objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| objc.ObjCObject, |
| ) |
| performSelector_withObject_withObject_, |
| required void Function() release, |
| required bool Function(ffi.Pointer<objc.ObjCSelector>) respondsToSelector_, |
| required objc.ObjCObject Function() retain, |
| required DartNSUInteger Function() retainCount, |
| required objc.ObjCObject Function() self, |
| required objc.ObjCObject Function() superclass, |
| required ffi.Pointer<NSZone> Function() zone, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSObjectProtocol$Builder.autorelease.implement(builder, autorelease); |
| NSObjectProtocol$Builder.class$.implement(builder, class$); |
| NSObjectProtocol$Builder.conformsToProtocol_.implement( |
| builder, |
| conformsToProtocol_, |
| ); |
| NSObjectProtocol$Builder.debugDescription.implement( |
| builder, |
| debugDescription, |
| ); |
| NSObjectProtocol$Builder.description.implement(builder, description); |
| NSObjectProtocol$Builder.hash.implement(builder, hash); |
| NSObjectProtocol$Builder.isEqual_.implement(builder, isEqual_); |
| NSObjectProtocol$Builder.isKindOfClass_.implement(builder, isKindOfClass_); |
| NSObjectProtocol$Builder.isMemberOfClass_.implement( |
| builder, |
| isMemberOfClass_, |
| ); |
| NSObjectProtocol$Builder.isProxy.implement(builder, isProxy); |
| NSObjectProtocol$Builder.performSelector_.implement( |
| builder, |
| performSelector_, |
| ); |
| NSObjectProtocol$Builder.performSelector_withObject_.implement( |
| builder, |
| performSelector_withObject_, |
| ); |
| NSObjectProtocol$Builder.performSelector_withObject_withObject_.implement( |
| builder, |
| performSelector_withObject_withObject_, |
| ); |
| NSObjectProtocol$Builder.release.implementAsListener(builder, release); |
| NSObjectProtocol$Builder.respondsToSelector_.implement( |
| builder, |
| respondsToSelector_, |
| ); |
| NSObjectProtocol$Builder.retain.implement(builder, retain); |
| NSObjectProtocol$Builder.retainCount.implement(builder, retainCount); |
| NSObjectProtocol$Builder.self.implement(builder, self); |
| NSObjectProtocol$Builder.superclass.implement(builder, superclass); |
| NSObjectProtocol$Builder.zone.implement(builder, zone); |
| builder.addProtocol($protocol); |
| } |
| |
| /// Builds an object that implements the NSObject protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All |
| /// methods that can be implemented as blocking listeners will be. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSObjectProtocol implementAsBlocking({ |
| required objc.ObjCObject Function() autorelease, |
| required objc.ObjCObject Function() class$, |
| required bool Function(Protocol) conformsToProtocol_, |
| NSString Function()? debugDescription, |
| required NSString Function() description, |
| required DartNSUInteger Function() hash, |
| required bool Function(objc.ObjCObject) isEqual_, |
| required bool Function(objc.ObjCObject) isKindOfClass_, |
| required bool Function(objc.ObjCObject) isMemberOfClass_, |
| required bool Function() isProxy, |
| required objc.ObjCObject Function(ffi.Pointer<objc.ObjCSelector>) |
| performSelector_, |
| required objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| ) |
| performSelector_withObject_, |
| required objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| objc.ObjCObject, |
| ) |
| performSelector_withObject_withObject_, |
| required void Function() release, |
| required bool Function(ffi.Pointer<objc.ObjCSelector>) respondsToSelector_, |
| required objc.ObjCObject Function() retain, |
| required DartNSUInteger Function() retainCount, |
| required objc.ObjCObject Function() self, |
| required objc.ObjCObject Function() superclass, |
| required ffi.Pointer<NSZone> Function() zone, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); |
| NSObjectProtocol$Builder.autorelease.implement(builder, autorelease); |
| NSObjectProtocol$Builder.class$.implement(builder, class$); |
| NSObjectProtocol$Builder.conformsToProtocol_.implement( |
| builder, |
| conformsToProtocol_, |
| ); |
| NSObjectProtocol$Builder.debugDescription.implement( |
| builder, |
| debugDescription, |
| ); |
| NSObjectProtocol$Builder.description.implement(builder, description); |
| NSObjectProtocol$Builder.hash.implement(builder, hash); |
| NSObjectProtocol$Builder.isEqual_.implement(builder, isEqual_); |
| NSObjectProtocol$Builder.isKindOfClass_.implement(builder, isKindOfClass_); |
| NSObjectProtocol$Builder.isMemberOfClass_.implement( |
| builder, |
| isMemberOfClass_, |
| ); |
| NSObjectProtocol$Builder.isProxy.implement(builder, isProxy); |
| NSObjectProtocol$Builder.performSelector_.implement( |
| builder, |
| performSelector_, |
| ); |
| NSObjectProtocol$Builder.performSelector_withObject_.implement( |
| builder, |
| performSelector_withObject_, |
| ); |
| NSObjectProtocol$Builder.performSelector_withObject_withObject_.implement( |
| builder, |
| performSelector_withObject_withObject_, |
| ); |
| NSObjectProtocol$Builder.release.implementAsBlocking(builder, release); |
| NSObjectProtocol$Builder.respondsToSelector_.implement( |
| builder, |
| respondsToSelector_, |
| ); |
| NSObjectProtocol$Builder.retain.implement(builder, retain); |
| NSObjectProtocol$Builder.retainCount.implement(builder, retainCount); |
| NSObjectProtocol$Builder.self.implement(builder, self); |
| NSObjectProtocol$Builder.superclass.implement(builder, superclass); |
| NSObjectProtocol$Builder.zone.implement(builder, zone); |
| builder.addProtocol($protocol); |
| return NSObjectProtocol.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSObject protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking |
| /// listeners will be. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilderAsBlocking( |
| objc.ObjCProtocolBuilder builder, { |
| required objc.ObjCObject Function() autorelease, |
| required objc.ObjCObject Function() class$, |
| required bool Function(Protocol) conformsToProtocol_, |
| NSString Function()? debugDescription, |
| required NSString Function() description, |
| required DartNSUInteger Function() hash, |
| required bool Function(objc.ObjCObject) isEqual_, |
| required bool Function(objc.ObjCObject) isKindOfClass_, |
| required bool Function(objc.ObjCObject) isMemberOfClass_, |
| required bool Function() isProxy, |
| required objc.ObjCObject Function(ffi.Pointer<objc.ObjCSelector>) |
| performSelector_, |
| required objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| ) |
| performSelector_withObject_, |
| required objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| objc.ObjCObject, |
| ) |
| performSelector_withObject_withObject_, |
| required void Function() release, |
| required bool Function(ffi.Pointer<objc.ObjCSelector>) respondsToSelector_, |
| required objc.ObjCObject Function() retain, |
| required DartNSUInteger Function() retainCount, |
| required objc.ObjCObject Function() self, |
| required objc.ObjCObject Function() superclass, |
| required ffi.Pointer<NSZone> Function() zone, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSObjectProtocol$Builder.autorelease.implement(builder, autorelease); |
| NSObjectProtocol$Builder.class$.implement(builder, class$); |
| NSObjectProtocol$Builder.conformsToProtocol_.implement( |
| builder, |
| conformsToProtocol_, |
| ); |
| NSObjectProtocol$Builder.debugDescription.implement( |
| builder, |
| debugDescription, |
| ); |
| NSObjectProtocol$Builder.description.implement(builder, description); |
| NSObjectProtocol$Builder.hash.implement(builder, hash); |
| NSObjectProtocol$Builder.isEqual_.implement(builder, isEqual_); |
| NSObjectProtocol$Builder.isKindOfClass_.implement(builder, isKindOfClass_); |
| NSObjectProtocol$Builder.isMemberOfClass_.implement( |
| builder, |
| isMemberOfClass_, |
| ); |
| NSObjectProtocol$Builder.isProxy.implement(builder, isProxy); |
| NSObjectProtocol$Builder.performSelector_.implement( |
| builder, |
| performSelector_, |
| ); |
| NSObjectProtocol$Builder.performSelector_withObject_.implement( |
| builder, |
| performSelector_withObject_, |
| ); |
| NSObjectProtocol$Builder.performSelector_withObject_withObject_.implement( |
| builder, |
| performSelector_withObject_withObject_, |
| ); |
| NSObjectProtocol$Builder.release.implementAsBlocking(builder, release); |
| NSObjectProtocol$Builder.respondsToSelector_.implement( |
| builder, |
| respondsToSelector_, |
| ); |
| NSObjectProtocol$Builder.retain.implement(builder, retain); |
| NSObjectProtocol$Builder.retainCount.implement(builder, retainCount); |
| NSObjectProtocol$Builder.self.implement(builder, self); |
| NSObjectProtocol$Builder.superclass.implement(builder, superclass); |
| NSObjectProtocol$Builder.zone.implement(builder, zone); |
| builder.addProtocol($protocol); |
| } |
| |
| /// autorelease |
| static final autorelease = |
| objc.ObjCProtocolMethod<objc.ObjCObject Function()>( |
| _protocol_NSObject, |
| _sel_autorelease, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1mbt9g9) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_autorelease, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (objc.ObjCObject Function() func) => |
| ObjCBlock_objcObjCObjectImpl_ffiVoid.fromFunction( |
| (ffi.Pointer<ffi.Void> _) => func(), |
| ), |
| ); |
| |
| /// class |
| static final class$ = objc.ObjCProtocolMethod<objc.ObjCObject Function()>( |
| _protocol_NSObject, |
| _sel_class, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1mbt9g9) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_class, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (objc.ObjCObject Function() func) => |
| ObjCBlock_objcObjCObjectImpl_ffiVoid.fromFunction( |
| (ffi.Pointer<ffi.Void> _) => func(), |
| ), |
| ); |
| |
| /// conformsToProtocol: |
| static final conformsToProtocol_ = |
| objc.ObjCProtocolMethod<bool Function(Protocol)>( |
| _protocol_NSObject, |
| _sel_conformsToProtocol_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_3su7tt) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_conformsToProtocol_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (bool Function(Protocol) func) => |
| ObjCBlock_bool_ffiVoid_Protocol.fromFunction( |
| (ffi.Pointer<ffi.Void> _, Protocol arg1) => func(arg1), |
| ), |
| ); |
| |
| /// debugDescription |
| static final debugDescription = objc.ObjCProtocolMethod<NSString Function()>( |
| _protocol_NSObject, |
| _sel_debugDescription, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1mbt9g9) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_debugDescription, |
| isRequired: false, |
| isInstanceMethod: true, |
| ), |
| (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( |
| (ffi.Pointer<ffi.Void> _) => func(), |
| ), |
| ); |
| |
| /// description |
| static final description = objc.ObjCProtocolMethod<NSString Function()>( |
| _protocol_NSObject, |
| _sel_description, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1mbt9g9) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_description, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( |
| (ffi.Pointer<ffi.Void> _) => func(), |
| ), |
| ); |
| |
| /// hash |
| static final hash = objc.ObjCProtocolMethod<DartNSUInteger Function()>( |
| _protocol_NSObject, |
| _sel_hash, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| NSUInteger Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1ckyi24) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_hash, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (DartNSUInteger Function() func) => |
| ObjCBlock_NSUInteger_ffiVoid.fromFunction( |
| (ffi.Pointer<ffi.Void> _) => func(), |
| ), |
| ); |
| |
| /// isEqual: |
| static final isEqual_ = |
| objc.ObjCProtocolMethod<bool Function(objc.ObjCObject)>( |
| _protocol_NSObject, |
| _sel_isEqual_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_3su7tt) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_isEqual_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (bool Function(objc.ObjCObject) func) => |
| ObjCBlock_bool_ffiVoid_objcObjCObjectImpl.fromFunction( |
| (ffi.Pointer<ffi.Void> _, objc.ObjCObject arg1) => func(arg1), |
| ), |
| ); |
| |
| /// isKindOfClass: |
| static final isKindOfClass_ = |
| objc.ObjCProtocolMethod<bool Function(objc.ObjCObject)>( |
| _protocol_NSObject, |
| _sel_isKindOfClass_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_3su7tt) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_isKindOfClass_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (bool Function(objc.ObjCObject) func) => |
| ObjCBlock_bool_ffiVoid_objcObjCObjectImpl.fromFunction( |
| (ffi.Pointer<ffi.Void> _, objc.ObjCObject arg1) => func(arg1), |
| ), |
| ); |
| |
| /// isMemberOfClass: |
| static final isMemberOfClass_ = |
| objc.ObjCProtocolMethod<bool Function(objc.ObjCObject)>( |
| _protocol_NSObject, |
| _sel_isMemberOfClass_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_3su7tt) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_isMemberOfClass_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (bool Function(objc.ObjCObject) func) => |
| ObjCBlock_bool_ffiVoid_objcObjCObjectImpl.fromFunction( |
| (ffi.Pointer<ffi.Void> _, objc.ObjCObject arg1) => func(arg1), |
| ), |
| ); |
| |
| /// isProxy |
| static final isProxy = objc.ObjCProtocolMethod<bool Function()>( |
| _protocol_NSObject, |
| _sel_isProxy, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_e3qsqz) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_isProxy, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( |
| (ffi.Pointer<ffi.Void> _) => func(), |
| ), |
| ); |
| |
| /// performSelector: |
| static final performSelector_ = |
| objc.ObjCProtocolMethod< |
| objc.ObjCObject Function(ffi.Pointer<objc.ObjCSelector>) |
| >( |
| _protocol_NSObject, |
| _sel_performSelector_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_50as9u) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_performSelector_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (objc.ObjCObject Function(ffi.Pointer<objc.ObjCSelector>) func) => |
| ObjCBlock_objcObjCObjectImpl_ffiVoid_objcObjCSelector.fromFunction( |
| (ffi.Pointer<ffi.Void> _, ffi.Pointer<objc.ObjCSelector> arg1) => |
| func(arg1), |
| ), |
| ); |
| |
| /// performSelector:withObject: |
| static final performSelector_withObject_ = |
| objc.ObjCProtocolMethod< |
| objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| ) |
| >( |
| _protocol_NSObject, |
| _sel_performSelector_withObject_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1mllhpc) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_performSelector_withObject_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| ( |
| objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| ) |
| func, |
| ) => |
| ObjCBlock_objcObjCObjectImpl_ffiVoid_objcObjCSelector_objcObjCObjectImpl.fromFunction( |
| ( |
| ffi.Pointer<ffi.Void> _, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| objc.ObjCObject arg2, |
| ) => func(arg1, arg2), |
| ), |
| ); |
| |
| /// performSelector:withObject:withObject: |
| static final performSelector_withObject_withObject_ = |
| objc.ObjCProtocolMethod< |
| objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| objc.ObjCObject, |
| ) |
| >( |
| _protocol_NSObject, |
| _sel_performSelector_withObject_withObject_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_c7gk2u) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_performSelector_withObject_withObject_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| ( |
| objc.ObjCObject Function( |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| objc.ObjCObject, |
| ) |
| func, |
| ) => |
| ObjCBlock_objcObjCObjectImpl_ffiVoid_objcObjCSelector_objcObjCObjectImpl_objcObjCObjectImpl.fromFunction( |
| ( |
| ffi.Pointer<ffi.Void> _, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| objc.ObjCObject arg2, |
| objc.ObjCObject arg3, |
| ) => func(arg1, arg2, arg3), |
| ), |
| ); |
| |
| /// release |
| static final release = objc.ObjCProtocolListenableMethod<void Function()>( |
| _protocol_NSObject, |
| _sel_release, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_ovsamd) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_release, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (void Function() func) => ObjCBlock_ffiVoid_ffiVoid.fromFunction( |
| (ffi.Pointer<ffi.Void> _) => func(), |
| ), |
| (void Function() func) => |
| ObjCBlock_ffiVoid_ffiVoid.listener((ffi.Pointer<ffi.Void> _) => func()), |
| (void Function() func) => |
| ObjCBlock_ffiVoid_ffiVoid.blocking((ffi.Pointer<ffi.Void> _) => func()), |
| ); |
| |
| /// respondsToSelector: |
| static final respondsToSelector_ = |
| objc.ObjCProtocolMethod<bool Function(ffi.Pointer<objc.ObjCSelector>)>( |
| _protocol_NSObject, |
| _sel_respondsToSelector_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_w1e3k0) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_respondsToSelector_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (bool Function(ffi.Pointer<objc.ObjCSelector>) func) => |
| ObjCBlock_bool_ffiVoid_objcObjCSelector.fromFunction( |
| (ffi.Pointer<ffi.Void> _, ffi.Pointer<objc.ObjCSelector> arg1) => |
| func(arg1), |
| ), |
| ); |
| |
| /// retain |
| static final retain = objc.ObjCProtocolMethod<objc.ObjCObject Function()>( |
| _protocol_NSObject, |
| _sel_retain, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1mbt9g9) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_retain, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (objc.ObjCObject Function() func) => |
| ObjCBlock_objcObjCObjectImpl_ffiVoid.fromFunction( |
| (ffi.Pointer<ffi.Void> _) => func(), |
| ), |
| ); |
| |
| /// retainCount |
| static final retainCount = objc.ObjCProtocolMethod<DartNSUInteger Function()>( |
| _protocol_NSObject, |
| _sel_retainCount, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| NSUInteger Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1ckyi24) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_retainCount, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (DartNSUInteger Function() func) => |
| ObjCBlock_NSUInteger_ffiVoid.fromFunction( |
| (ffi.Pointer<ffi.Void> _) => func(), |
| ), |
| ); |
| |
| /// self |
| static final self = objc.ObjCProtocolMethod<objc.ObjCObject Function()>( |
| _protocol_NSObject, |
| _sel_self, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1mbt9g9) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_self, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (objc.ObjCObject Function() func) => |
| ObjCBlock_objcObjCObjectImpl_ffiVoid.fromFunction( |
| (ffi.Pointer<ffi.Void> _) => func(), |
| ), |
| ); |
| |
| /// superclass |
| static final superclass = objc.ObjCProtocolMethod<objc.ObjCObject Function()>( |
| _protocol_NSObject, |
| _sel_superclass, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1mbt9g9) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_superclass, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (objc.ObjCObject Function() func) => |
| ObjCBlock_objcObjCObjectImpl_ffiVoid.fromFunction( |
| (ffi.Pointer<ffi.Void> _) => func(), |
| ), |
| ); |
| |
| /// zone |
| static final zone = objc.ObjCProtocolMethod<ffi.Pointer<NSZone> Function()>( |
| _protocol_NSObject, |
| _sel_zone, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Pointer<NSZone> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1a8cl66) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSObject, |
| _sel_zone, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (ffi.Pointer<NSZone> Function() func) => |
| ObjCBlock_NSZone_ffiVoid.fromFunction( |
| (ffi.Pointer<ffi.Void> _) => func(), |
| ), |
| ); |
| } |
| |
| /// NSOrderedCollectionChange |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| extension type NSOrderedCollectionChange._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [NSOrderedCollectionChange] that points to the same underlying object as [other]. |
| NSOrderedCollectionChange.as(objc.ObjCObject other) : object$ = other { |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionChange', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSOrderedCollectionChange] that wraps the given raw object pointer. |
| NSOrderedCollectionChange.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionChange', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSOrderedCollectionChange]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSOrderedCollectionChange, |
| ); |
| |
| /// alloc |
| static NSOrderedCollectionChange alloc() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSOrderedCollectionChange, |
| _sel_alloc, |
| ); |
| return NSOrderedCollectionChange.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// allocWithZone: |
| static NSOrderedCollectionChange allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSOrderedCollectionChange, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSOrderedCollectionChange.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// changeWithObject:type:index: |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| static NSOrderedCollectionChange changeWithObject( |
| objc.ObjCObject? anObject, { |
| required NSCollectionChangeType type, |
| required DartNSUInteger index, |
| }) { |
| final _$$ref = anObject?.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionChange.changeWithObject:type:index:', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_vbymrb( |
| _class_NSOrderedCollectionChange, |
| _sel_changeWithObject_type_index_, |
| _$$ref?.pointer ?? ffi.nullptr, |
| type.value, |
| index, |
| ); |
| return NSOrderedCollectionChange.fromPointer( |
| $ret, |
| retain: true, |
| release: true, |
| ); |
| } |
| |
| /// changeWithObject:type:index:associatedIndex: |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| static NSOrderedCollectionChange changeWithObject$1( |
| objc.ObjCObject? anObject, { |
| required NSCollectionChangeType type, |
| required DartNSUInteger index, |
| required DartNSUInteger associatedIndex, |
| }) { |
| final _$$ref = anObject?.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionChange.changeWithObject:type:index:associatedIndex:', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_1egc1c( |
| _class_NSOrderedCollectionChange, |
| _sel_changeWithObject_type_index_associatedIndex_, |
| _$$ref?.pointer ?? ffi.nullptr, |
| type.value, |
| index, |
| associatedIndex, |
| ); |
| return NSOrderedCollectionChange.fromPointer( |
| $ret, |
| retain: true, |
| release: true, |
| ); |
| } |
| |
| /// new |
| static NSOrderedCollectionChange new$() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSOrderedCollectionChange, |
| _sel_new, |
| ); |
| return NSOrderedCollectionChange.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Returns a new instance of NSOrderedCollectionChange constructed with the default `new` method. |
| NSOrderedCollectionChange() : this.as(new$().object$); |
| } |
| |
| extension NSOrderedCollectionChange$Methods on NSOrderedCollectionChange { |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| DartNSUInteger get associatedIndex { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionChange.associatedIndex', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_associatedIndex); |
| } |
| |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSCollectionChangeType get changeType { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionChange.changeType', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_hc8exi(_$$ref.pointer, _sel_changeType); |
| return NSCollectionChangeType.fromValue($ret); |
| } |
| |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| DartNSUInteger get index { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionChange.index', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_index); |
| } |
| |
| /// initWithObject:type:index: |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSOrderedCollectionChange initWithObject( |
| objc.ObjCObject? anObject, { |
| required NSCollectionChangeType type, |
| required DartNSUInteger index, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject?.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionChange.initWithObject:type:index:', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_vbymrb( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObject_type_index_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| type.value, |
| index, |
| ); |
| return NSOrderedCollectionChange.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// initWithObject:type:index:associatedIndex: |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSOrderedCollectionChange initWithObject$1( |
| objc.ObjCObject? anObject, { |
| required NSCollectionChangeType type, |
| required DartNSUInteger index, |
| required DartNSUInteger associatedIndex, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject?.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionChange.initWithObject:type:index:associatedIndex:', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_1egc1c( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObject_type_index_associatedIndex_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| type.value, |
| index, |
| associatedIndex, |
| ); |
| return NSOrderedCollectionChange.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| objc.ObjCObject? get object { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionChange.object', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_object); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSOrderedCollectionDifference |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| extension type NSOrderedCollectionDifference._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject, NSFastEnumeration { |
| /// Constructs a [NSOrderedCollectionDifference] that points to the same underlying object as [other]. |
| NSOrderedCollectionDifference.as(objc.ObjCObject other) : object$ = other { |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionDifference', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSOrderedCollectionDifference] that wraps the given raw object pointer. |
| NSOrderedCollectionDifference.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionDifference', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSOrderedCollectionDifference]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSOrderedCollectionDifference, |
| ); |
| |
| /// alloc |
| static NSOrderedCollectionDifference alloc() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSOrderedCollectionDifference, |
| _sel_alloc, |
| ); |
| return NSOrderedCollectionDifference.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// allocWithZone: |
| static NSOrderedCollectionDifference allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSOrderedCollectionDifference, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSOrderedCollectionDifference.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// new |
| static NSOrderedCollectionDifference new$() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSOrderedCollectionDifference, |
| _sel_new, |
| ); |
| return NSOrderedCollectionDifference.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Returns a new instance of NSOrderedCollectionDifference constructed with the default `new` method. |
| NSOrderedCollectionDifference() : this.as(new$().object$); |
| } |
| |
| extension NSOrderedCollectionDifference$Methods |
| on NSOrderedCollectionDifference { |
| /// countByEnumeratingWithState:objects:count: |
| DartNSUInteger countByEnumeratingWithState( |
| ffi.Pointer<NSFastEnumerationState> state, { |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1b5ysjl( |
| _$$ref.pointer, |
| _sel_countByEnumeratingWithState_objects_count_, |
| state, |
| objects, |
| count, |
| ); |
| } |
| |
| /// differenceByTransformingChangesWithBlock: |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSOrderedCollectionDifference differenceByTransformingChangesWithBlock( |
| objc.ObjCBlock< |
| NSOrderedCollectionChange Function(NSOrderedCollectionChange) |
| > |
| block, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = block.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionDifference.differenceByTransformingChangesWithBlock:', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_nnxkei( |
| _$$ref.pointer, |
| _sel_differenceByTransformingChangesWithBlock_, |
| _$$ref$1.pointer, |
| ); |
| return NSOrderedCollectionDifference.fromPointer( |
| $ret, |
| retain: true, |
| release: true, |
| ); |
| } |
| |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| bool get hasChanges { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionDifference.hasChanges', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_hasChanges); |
| } |
| |
| /// init |
| NSOrderedCollectionDifference init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionDifference.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSOrderedCollectionDifference.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// initWithChanges: |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSOrderedCollectionDifference initWithChanges(NSArray changes) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = changes.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionDifference.initWithChanges:', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithChanges_, |
| _$$ref$1.pointer, |
| ); |
| return NSOrderedCollectionDifference.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSOrderedCollectionDifference initWithInsertIndexes( |
| NSIndexSet inserts, { |
| NSArray? insertedObjects, |
| required NSIndexSet removeIndexes, |
| NSArray? removedObjects, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = inserts.ref; |
| final _$$ref$2 = insertedObjects?.ref; |
| final _$$ref$3 = removeIndexes.ref; |
| final _$$ref$4 = removedObjects?.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_s92gih( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3.pointer, |
| _$$ref$4?.pointer ?? ffi.nullptr, |
| ); |
| return NSOrderedCollectionDifference.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSOrderedCollectionDifference initWithInsertIndexes$1( |
| NSIndexSet inserts, { |
| NSArray? insertedObjects, |
| required NSIndexSet removeIndexes, |
| NSArray? removedObjects, |
| required NSArray additionalChanges, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = inserts.ref; |
| final _$$ref$2 = insertedObjects?.ref; |
| final _$$ref$3 = removeIndexes.ref; |
| final _$$ref$4 = removedObjects?.ref; |
| final _$$ref$5 = additionalChanges.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_3cbdpb( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3.pointer, |
| _$$ref$4?.pointer ?? ffi.nullptr, |
| _$$ref$5.pointer, |
| ); |
| return NSOrderedCollectionDifference.fromPointer( |
| $ret, |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSArray get insertions { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionDifference.insertions', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_insertions); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// inverseDifference |
| /// |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSOrderedCollectionDifference inverseDifference() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionDifference.inverseDifference', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_inverseDifference); |
| return NSOrderedCollectionDifference.fromPointer( |
| $ret, |
| retain: true, |
| release: true, |
| ); |
| } |
| |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| NSArray get removals { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedCollectionDifference.removals', |
| iOS: (false, (13, 0, 0)), |
| macOS: (false, (10, 15, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_removals); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| /// iOS: introduced 13.0.0 |
| /// macOS: introduced 10.15.0 |
| sealed class NSOrderedCollectionDifferenceCalculationOptions { |
| static const NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = 1; |
| static const NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = 2; |
| static const NSOrderedCollectionDifferenceCalculationInferMoves = 4; |
| } |
| |
| /// NSOrderedSet |
| extension type NSOrderedSet._(objc.ObjCObject object$) |
| implements |
| objc.ObjCObject, |
| NSObject, |
| NSCopying, |
| NSMutableCopying, |
| NSSecureCoding, |
| NSFastEnumeration { |
| /// Constructs a [NSOrderedSet] that points to the same underlying object as [other]. |
| NSOrderedSet.as(objc.ObjCObject other) : object$ = other { |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSOrderedSet] that wraps the given raw object pointer. |
| NSOrderedSet.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSOrderedSet]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSOrderedSet, |
| ); |
| |
| /// alloc |
| static NSOrderedSet alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_alloc); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSOrderedSet allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSOrderedSet, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSOrderedSet new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_new); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// orderedSet |
| static NSOrderedSet orderedSet() { |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.orderedSet', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_orderedSet); |
| return NSOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithArray: |
| static NSOrderedSet orderedSetWithArray(NSArray array) { |
| final _$$ref = array.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.orderedSetWithArray:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSOrderedSet, |
| _sel_orderedSetWithArray_, |
| _$$ref.pointer, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithArray:range:copyItems: |
| static NSOrderedSet orderedSetWithArray$1( |
| NSArray array, { |
| required NSRange range, |
| required bool copyItems, |
| }) { |
| final _$$ref = array.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.orderedSetWithArray:range:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_w9bq5x( |
| _class_NSOrderedSet, |
| _sel_orderedSetWithArray_range_copyItems_, |
| _$$ref.pointer, |
| range, |
| copyItems, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithObject: |
| static NSOrderedSet orderedSetWithObject(objc.ObjCObject object) { |
| final _$$ref = object.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.orderedSetWithObject:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSOrderedSet, |
| _sel_orderedSetWithObject_, |
| _$$ref.pointer, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithObjects: |
| static NSOrderedSet orderedSetWithObjects(objc.ObjCObject firstObj) { |
| final _$$ref = firstObj.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.orderedSetWithObjects:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSOrderedSet, |
| _sel_orderedSetWithObjects_, |
| _$$ref.pointer, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithObjects:count: |
| static NSOrderedSet orderedSetWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required DartNSUInteger count, |
| }) { |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.orderedSetWithObjects:count:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_zmbtbd( |
| _class_NSOrderedSet, |
| _sel_orderedSetWithObjects_count_, |
| objects, |
| count, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithOrderedSet: |
| static NSOrderedSet orderedSetWithOrderedSet(NSOrderedSet set) { |
| final _$$ref = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.orderedSetWithOrderedSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSOrderedSet, |
| _sel_orderedSetWithOrderedSet_, |
| _$$ref.pointer, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithOrderedSet:range:copyItems: |
| static NSOrderedSet orderedSetWithOrderedSet$1( |
| NSOrderedSet set, { |
| required NSRange range, |
| required bool copyItems, |
| }) { |
| final _$$ref = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.orderedSetWithOrderedSet:range:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_w9bq5x( |
| _class_NSOrderedSet, |
| _sel_orderedSetWithOrderedSet_range_copyItems_, |
| _$$ref.pointer, |
| range, |
| copyItems, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithSet: |
| static NSOrderedSet orderedSetWithSet(NSSet set) { |
| final _$$ref = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.orderedSetWithSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSOrderedSet, |
| _sel_orderedSetWithSet_, |
| _$$ref.pointer, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// orderedSetWithSet:copyItems: |
| static NSOrderedSet orderedSetWithSet$1( |
| NSSet set, { |
| required bool copyItems, |
| }) { |
| final _$$ref = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.orderedSetWithSet:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _class_NSOrderedSet, |
| _sel_orderedSetWithSet_copyItems_, |
| _$$ref.pointer, |
| copyItems, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSOrderedSet, _sel_supportsSecureCoding); |
| } |
| |
| /// Returns a new instance of NSOrderedSet constructed with the default `new` method. |
| NSOrderedSet() : this.as(new$().object$); |
| } |
| |
| extension NSOrderedSet$Methods on NSOrderedSet { |
| /// count |
| DartNSUInteger get count { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.count', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_count); |
| } |
| |
| /// countByEnumeratingWithState:objects:count: |
| DartNSUInteger countByEnumeratingWithState( |
| ffi.Pointer<NSFastEnumerationState> state, { |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1b5ysjl( |
| _$$ref.pointer, |
| _sel_countByEnumeratingWithState_objects_count_, |
| state, |
| objects, |
| count, |
| ); |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// indexOfObject: |
| DartNSUInteger indexOfObject(objc.ObjCObject object) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.indexOfObject:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| return _objc_msgSend_1vd1c5m( |
| _$$ref.pointer, |
| _sel_indexOfObject_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// init |
| NSOrderedSet init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithArray: |
| NSOrderedSet initWithArray(NSArray array) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = array.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.initWithArray:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithArray_, |
| _$$ref$1.pointer, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithArray:copyItems: |
| NSOrderedSet initWithArray$1(NSArray set, {required bool copyItems}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.initWithArray:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithArray_copyItems_, |
| _$$ref$1.pointer, |
| copyItems, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithArray:range:copyItems: |
| NSOrderedSet initWithArray$2( |
| NSArray set, { |
| required NSRange range, |
| required bool copyItems, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.initWithArray:range:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_w9bq5x( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithArray_range_copyItems_, |
| _$$ref$1.pointer, |
| range, |
| copyItems, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSOrderedSet? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObject: |
| NSOrderedSet initWithObject(objc.ObjCObject object) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.initWithObject:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObject_, |
| _$$ref$1.pointer, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects: |
| NSOrderedSet initWithObjects(objc.ObjCObject firstObj) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = firstObj.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.initWithObjects:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_, |
| _$$ref$1.pointer, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects:count: |
| NSOrderedSet initWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.initWithObjects:count:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_zmbtbd( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_count_, |
| objects, |
| count, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithOrderedSet: |
| NSOrderedSet initWithOrderedSet(NSOrderedSet set) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.initWithOrderedSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithOrderedSet_, |
| _$$ref$1.pointer, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithOrderedSet:copyItems: |
| NSOrderedSet initWithOrderedSet$1( |
| NSOrderedSet set, { |
| required bool copyItems, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.initWithOrderedSet:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithOrderedSet_copyItems_, |
| _$$ref$1.pointer, |
| copyItems, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithOrderedSet:range:copyItems: |
| NSOrderedSet initWithOrderedSet$2( |
| NSOrderedSet set, { |
| required NSRange range, |
| required bool copyItems, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.initWithOrderedSet:range:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_w9bq5x( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithOrderedSet_range_copyItems_, |
| _$$ref$1.pointer, |
| range, |
| copyItems, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithSet: |
| NSOrderedSet initWithSet(NSSet set) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.initWithSet:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithSet_, |
| _$$ref$1.pointer, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithSet:copyItems: |
| NSOrderedSet initWithSet$1(NSSet set, {required bool copyItems}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.initWithSet:copyItems:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithSet_copyItems_, |
| _$$ref$1.pointer, |
| copyItems, |
| ); |
| return NSOrderedSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// objectAtIndex: |
| objc.ObjCObject objectAtIndex(DartNSUInteger idx) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOrderedSet.objectAtIndex:', |
| iOS: (false, (5, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.pointer, |
| _sel_objectAtIndex_, |
| idx, |
| ); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSOrderedSetCreation |
| extension NSOrderedSetCreation on NSOrderedSet {} |
| |
| /// NSOutputStream |
| extension type NSOutputStream._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSStream { |
| /// Constructs a [NSOutputStream] that points to the same underlying object as [other]. |
| NSOutputStream.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSOutputStream] that wraps the given raw object pointer. |
| NSOutputStream.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSOutputStream]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSOutputStream, |
| ); |
| |
| /// alloc |
| static NSOutputStream alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSOutputStream, _sel_alloc); |
| return NSOutputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSOutputStream allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSOutputStream, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSOutputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSOutputStream new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSOutputStream, _sel_new); |
| return NSOutputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// outputStreamToBuffer:capacity: |
| static NSOutputStream outputStreamToBuffer( |
| ffi.Pointer<ffi.Uint8> buffer, { |
| required DartNSUInteger capacity, |
| }) { |
| final $ret = _objc_msgSend_158ju31( |
| _class_NSOutputStream, |
| _sel_outputStreamToBuffer_capacity_, |
| buffer, |
| capacity, |
| ); |
| return NSOutputStream.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// outputStreamToFileAtPath:append: |
| static NSOutputStream outputStreamToFileAtPath( |
| NSString path, { |
| required bool append, |
| }) { |
| final _$$ref = path.ref; |
| final $ret = _objc_msgSend_17amj0z( |
| _class_NSOutputStream, |
| _sel_outputStreamToFileAtPath_append_, |
| _$$ref.pointer, |
| append, |
| ); |
| return NSOutputStream.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// outputStreamToMemory |
| static NSOutputStream outputStreamToMemory() { |
| final $ret = _objc_msgSend_151sglz( |
| _class_NSOutputStream, |
| _sel_outputStreamToMemory, |
| ); |
| return NSOutputStream.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// outputStreamWithURL:append: |
| static NSOutputStream? outputStreamWithURL( |
| NSURL url, { |
| required bool append, |
| }) { |
| final _$$ref = url.ref; |
| objc.checkOsVersionInternal( |
| 'NSOutputStream.outputStreamWithURL:append:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _class_NSOutputStream, |
| _sel_outputStreamWithURL_append_, |
| _$$ref.pointer, |
| append, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSOutputStream.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// Returns a new instance of NSOutputStream constructed with the default `new` method. |
| NSOutputStream() : this.as(new$().object$); |
| } |
| |
| extension NSOutputStream$Methods on NSOutputStream { |
| /// hasSpaceAvailable |
| bool get hasSpaceAvailable { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_hasSpaceAvailable); |
| } |
| |
| /// init |
| NSOutputStream init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSOutputStream.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSOutputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initToBuffer:capacity: |
| NSOutputStream initToBuffer( |
| ffi.Pointer<ffi.Uint8> buffer, { |
| required DartNSUInteger capacity, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_158ju31( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initToBuffer_capacity_, |
| buffer, |
| capacity, |
| ); |
| return NSOutputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initToFileAtPath:append: |
| NSOutputStream? initToFileAtPath(NSString path, {required bool append}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initToFileAtPath_append_, |
| _$$ref$1.pointer, |
| append, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSOutputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initToMemory |
| NSOutputStream initToMemory() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initToMemory, |
| ); |
| return NSOutputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithURL:append: |
| NSOutputStream? initWithURL(NSURL url, {required bool append}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| objc.checkOsVersionInternal( |
| 'NSOutputStream.initWithURL:append:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithURL_append_, |
| _$$ref$1.pointer, |
| append, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSOutputStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// write:maxLength: |
| int write( |
| ffi.Pointer<ffi.Uint8> buffer, { |
| required DartNSUInteger maxLength, |
| }) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_11e9f5x( |
| _$$ref.pointer, |
| _sel_write_maxLength_, |
| buffer, |
| maxLength, |
| ); |
| } |
| } |
| |
| /// NSOutputStreamExtensions |
| extension NSOutputStreamExtensions on NSOutputStream {} |
| |
| /// NSPort |
| extension type NSPort._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject, NSCopying, NSCoding { |
| /// Constructs a [NSPort] that points to the same underlying object as [other]. |
| NSPort.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSPort] that wraps the given raw object pointer. |
| NSPort.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSPort]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSPort, |
| ); |
| |
| /// alloc |
| static NSPort alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSPort, _sel_alloc); |
| return NSPort.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSPort allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSPort, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSPort.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSPort new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSPort, _sel_new); |
| return NSPort.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// port |
| static NSPort port() { |
| final $ret = _objc_msgSend_151sglz(_class_NSPort, _sel_port); |
| return NSPort.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// Returns a new instance of NSPort constructed with the default `new` method. |
| NSPort() : this.as(new$().object$); |
| } |
| |
| extension NSPort$Methods on NSPort { |
| /// delegate |
| NSPortDelegate? delegate() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); |
| return $ret.address == 0 |
| ? null |
| : NSPortDelegate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// init |
| NSPort init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSPort.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSPort.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSPort? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSPort.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// invalidate |
| void invalidate() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_invalidate); |
| } |
| |
| /// isValid |
| bool get isValid { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isValid); |
| } |
| |
| /// removeFromRunLoop:forMode: |
| void removeFromRunLoop(NSRunLoop runLoop, {required NSString forMode}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = runLoop.ref; |
| final _$$ref$2 = forMode.ref; |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_removeFromRunLoop_forMode_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// reservedSpaceLength |
| DartNSUInteger get reservedSpaceLength { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_reservedSpaceLength); |
| } |
| |
| /// scheduleInRunLoop:forMode: |
| void scheduleInRunLoop(NSRunLoop runLoop, {required NSString forMode}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = runLoop.ref; |
| final _$$ref$2 = forMode.ref; |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_scheduleInRunLoop_forMode_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// sendBeforeDate:components:from:reserved: |
| bool sendBeforeDate( |
| NSDate limitDate, { |
| NSMutableArray? components, |
| NSPort? from, |
| required DartNSUInteger reserved, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = limitDate.ref; |
| final _$$ref$2 = components?.ref; |
| final _$$ref$3 = from?.ref; |
| return _objc_msgSend_1frfu5e( |
| _$$ref.pointer, |
| _sel_sendBeforeDate_components_from_reserved_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| reserved, |
| ); |
| } |
| |
| /// sendBeforeDate:msgid:components:from:reserved: |
| bool sendBeforeDate$1( |
| NSDate limitDate, { |
| required DartNSUInteger msgid, |
| NSMutableArray? components, |
| NSPort? from, |
| required DartNSUInteger reserved, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = limitDate.ref; |
| final _$$ref$2 = components?.ref; |
| final _$$ref$3 = from?.ref; |
| return _objc_msgSend_gupwtj( |
| _$$ref.pointer, |
| _sel_sendBeforeDate_msgid_components_from_reserved_, |
| _$$ref$1.pointer, |
| msgid, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| reserved, |
| ); |
| } |
| |
| /// setDelegate: |
| void setDelegate(NSPortDelegate? anObject) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = anObject?.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setDelegate_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| } |
| |
| /// NSPortDelegate |
| extension type NSPortDelegate._(objc.ObjCProtocol object$) |
| implements objc.ObjCProtocol, NSObjectProtocol { |
| /// Constructs a [NSPortDelegate] that points to the same underlying object as [other]. |
| NSPortDelegate.as(objc.ObjCObject other) : object$ = other; |
| |
| /// Constructs a [NSPortDelegate] that wraps the given raw object pointer. |
| NSPortDelegate.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); |
| |
| /// Returns whether [obj] is an instance of [NSPortDelegate]. |
| static bool conformsTo(objc.ObjCObject obj) { |
| return _objc_msgSend_e3qsqz( |
| obj.ref.pointer, |
| _sel_conformsToProtocol_, |
| _protocol_NSPortDelegate, |
| ); |
| } |
| } |
| |
| extension NSPortDelegate$Methods on NSPortDelegate { |
| /// handlePortMessage: |
| void handlePortMessage(NSPortMessage message) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = message.ref; |
| if (!objc.respondsToSelector(_$$ref.pointer, _sel_handlePortMessage_)) { |
| throw objc.UnimplementedOptionalMethodException( |
| 'NSPortDelegate', |
| 'handlePortMessage:', |
| ); |
| } |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_handlePortMessage_, |
| _$$ref$1.pointer, |
| ); |
| } |
| } |
| |
| interface class NSPortDelegate$Builder { |
| /// Returns the [objc.Protocol] object for this protocol. |
| static objc.Protocol get $protocol => |
| objc.Protocol.fromPointer(_protocol_NSPortDelegate.cast()); |
| |
| /// Builds an object that implements the NSPortDelegate protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSPortDelegate implement({ |
| void Function(NSPortMessage)? handlePortMessage_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSPortDelegate'); |
| NSPortDelegate$Builder.handlePortMessage_.implement( |
| builder, |
| handlePortMessage_, |
| ); |
| builder.addProtocol($protocol); |
| return NSPortDelegate.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSPortDelegate protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilder( |
| objc.ObjCProtocolBuilder builder, { |
| void Function(NSPortMessage)? handlePortMessage_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSPortDelegate$Builder.handlePortMessage_.implement( |
| builder, |
| handlePortMessage_, |
| ); |
| builder.addProtocol($protocol); |
| } |
| |
| /// Builds an object that implements the NSPortDelegate protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All |
| /// methods that can be implemented as listeners will be. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSPortDelegate implementAsListener({ |
| void Function(NSPortMessage)? handlePortMessage_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSPortDelegate'); |
| NSPortDelegate$Builder.handlePortMessage_.implementAsListener( |
| builder, |
| handlePortMessage_, |
| ); |
| builder.addProtocol($protocol); |
| return NSPortDelegate.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSPortDelegate protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will |
| /// be. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilderAsListener( |
| objc.ObjCProtocolBuilder builder, { |
| void Function(NSPortMessage)? handlePortMessage_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSPortDelegate$Builder.handlePortMessage_.implementAsListener( |
| builder, |
| handlePortMessage_, |
| ); |
| builder.addProtocol($protocol); |
| } |
| |
| /// Builds an object that implements the NSPortDelegate protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All |
| /// methods that can be implemented as blocking listeners will be. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSPortDelegate implementAsBlocking({ |
| void Function(NSPortMessage)? handlePortMessage_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSPortDelegate'); |
| NSPortDelegate$Builder.handlePortMessage_.implementAsBlocking( |
| builder, |
| handlePortMessage_, |
| ); |
| builder.addProtocol($protocol); |
| return NSPortDelegate.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSPortDelegate protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking |
| /// listeners will be. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilderAsBlocking( |
| objc.ObjCProtocolBuilder builder, { |
| void Function(NSPortMessage)? handlePortMessage_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSPortDelegate$Builder.handlePortMessage_.implementAsBlocking( |
| builder, |
| handlePortMessage_, |
| ); |
| builder.addProtocol($protocol); |
| } |
| |
| /// handlePortMessage: |
| static final handlePortMessage_ = |
| objc.ObjCProtocolListenableMethod<void Function(NSPortMessage)>( |
| _protocol_NSPortDelegate, |
| _sel_handlePortMessage_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_18v1jvf) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSPortDelegate, |
| _sel_handlePortMessage_, |
| isRequired: false, |
| isInstanceMethod: true, |
| ), |
| (void Function(NSPortMessage) func) => |
| ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.fromFunction( |
| (ffi.Pointer<ffi.Void> _, NSPortMessage arg1) => func(arg1), |
| ), |
| (void Function(NSPortMessage) func) => |
| ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.listener( |
| (ffi.Pointer<ffi.Void> _, NSPortMessage arg1) => func(arg1), |
| ), |
| (void Function(NSPortMessage) func) => |
| ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.blocking( |
| (ffi.Pointer<ffi.Void> _, NSPortMessage arg1) => func(arg1), |
| ), |
| ); |
| } |
| |
| /// NSPortMessage |
| extension type NSPortMessage._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [NSPortMessage] that points to the same underlying object as [other]. |
| NSPortMessage.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSPortMessage] that wraps the given raw object pointer. |
| NSPortMessage.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSPortMessage]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSPortMessage, |
| ); |
| |
| /// alloc |
| static NSPortMessage alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSPortMessage, _sel_alloc); |
| return NSPortMessage.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSPortMessage allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSPortMessage, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSPortMessage.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSPortMessage new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSPortMessage, _sel_new); |
| return NSPortMessage.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of NSPortMessage constructed with the default `new` method. |
| NSPortMessage() : this.as(new$().object$); |
| } |
| |
| extension NSPortMessage$Methods on NSPortMessage { |
| /// components |
| NSArray? get components { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_components); |
| return $ret.address == 0 |
| ? null |
| : NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// init |
| NSPortMessage init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSPortMessage.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSPortMessage.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithSendPort:receivePort:components: |
| NSPortMessage initWithSendPort( |
| NSPort? sendPort, { |
| NSPort? receivePort, |
| NSArray? components, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = sendPort?.ref; |
| final _$$ref$2 = receivePort?.ref; |
| final _$$ref$3 = components?.ref; |
| final $ret = _objc_msgSend_11spmsz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithSendPort_receivePort_components_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| ); |
| return NSPortMessage.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// msgid |
| int get msgid { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_usggvf(_$$ref.pointer, _sel_msgid); |
| } |
| |
| /// receivePort |
| NSPort? get receivePort { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_receivePort); |
| return $ret.address == 0 |
| ? null |
| : NSPort.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// sendBeforeDate: |
| bool sendBeforeDate(NSDate date) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = date.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_sendBeforeDate_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// sendPort |
| NSPort? get sendPort { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_sendPort); |
| return $ret.address == 0 |
| ? null |
| : NSPort.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setMsgid: |
| set msgid(int value) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1xpk2hb(_$$ref.pointer, _sel_setMsgid_, value); |
| } |
| } |
| |
| /// NSProgress |
| extension type NSProgress._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [NSProgress] that points to the same underlying object as [other]. |
| NSProgress.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSProgress] that wraps the given raw object pointer. |
| NSProgress.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSProgress]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSProgress, |
| ); |
| |
| /// addSubscriberForFileURL:withPublishingHandler: |
| /// |
| /// iOS: unavailable |
| /// macOS: introduced 10.9.0 |
| static objc.ObjCObject addSubscriberForFileURL( |
| NSURL url, { |
| required objc.ObjCBlock< |
| objc.ObjCBlock<ffi.Void Function()>? Function(NSProgress) |
| > |
| withPublishingHandler, |
| }) { |
| final _$$ref = url.ref; |
| final _$$ref$1 = withPublishingHandler.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.addSubscriberForFileURL:withPublishingHandler:', |
| iOS: (true, null), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_r0bo0s( |
| _class_NSProgress, |
| _sel_addSubscriberForFileURL_withPublishingHandler_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| ); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// alloc |
| static NSProgress alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSProgress, _sel_alloc); |
| return NSProgress.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSProgress allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSProgress, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSProgress.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// currentProgress |
| static NSProgress? currentProgress() { |
| objc.checkOsVersionInternal( |
| 'NSProgress.currentProgress', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_class_NSProgress, _sel_currentProgress); |
| return $ret.address == 0 |
| ? null |
| : NSProgress.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// discreteProgressWithTotalUnitCount: |
| static NSProgress discreteProgressWithTotalUnitCount(int unitCount) { |
| objc.checkOsVersionInternal( |
| 'NSProgress.discreteProgressWithTotalUnitCount:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_1ya1kjn( |
| _class_NSProgress, |
| _sel_discreteProgressWithTotalUnitCount_, |
| unitCount, |
| ); |
| return NSProgress.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSProgress new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSProgress, _sel_new); |
| return NSProgress.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// progressWithTotalUnitCount: |
| static NSProgress progressWithTotalUnitCount(int unitCount) { |
| objc.checkOsVersionInternal( |
| 'NSProgress.progressWithTotalUnitCount:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_1ya1kjn( |
| _class_NSProgress, |
| _sel_progressWithTotalUnitCount_, |
| unitCount, |
| ); |
| return NSProgress.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// progressWithTotalUnitCount:parent:pendingUnitCount: |
| static NSProgress progressWithTotalUnitCount$1( |
| int unitCount, { |
| required NSProgress parent, |
| required int pendingUnitCount, |
| }) { |
| final _$$ref = parent.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.progressWithTotalUnitCount:parent:pendingUnitCount:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_553v( |
| _class_NSProgress, |
| _sel_progressWithTotalUnitCount_parent_pendingUnitCount_, |
| unitCount, |
| _$$ref.pointer, |
| pendingUnitCount, |
| ); |
| return NSProgress.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// removeSubscriber: |
| /// |
| /// iOS: unavailable |
| /// macOS: introduced 10.9.0 |
| static void removeSubscriber(objc.ObjCObject subscriber) { |
| final _$$ref = subscriber.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.removeSubscriber:', |
| iOS: (true, null), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _class_NSProgress, |
| _sel_removeSubscriber_, |
| _$$ref.pointer, |
| ); |
| } |
| |
| /// Returns a new instance of NSProgress constructed with the default `new` method. |
| NSProgress() : this.as(new$().object$); |
| } |
| |
| extension NSProgress$Methods on NSProgress { |
| /// addChild:withPendingUnitCount: |
| void addChild(NSProgress child, {required int withPendingUnitCount}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = child.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.addChild:withPendingUnitCount:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| _objc_msgSend_1m7prh1( |
| _$$ref.pointer, |
| _sel_addChild_withPendingUnitCount_, |
| _$$ref$1.pointer, |
| withPendingUnitCount, |
| ); |
| } |
| |
| /// becomeCurrentWithPendingUnitCount: |
| void becomeCurrentWithPendingUnitCount(int unitCount) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.becomeCurrentWithPendingUnitCount:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_17gvxvj( |
| _$$ref.pointer, |
| _sel_becomeCurrentWithPendingUnitCount_, |
| unitCount, |
| ); |
| } |
| |
| /// cancel |
| void cancel() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.cancel', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_cancel); |
| } |
| |
| /// cancellationHandler |
| objc.ObjCBlock<ffi.Void Function()>? get cancellationHandler { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.cancellationHandler', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_cancellationHandler); |
| return $ret.address == 0 |
| ? null |
| : ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// completedUnitCount |
| int get completedUnitCount { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.completedUnitCount', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_completedUnitCount); |
| } |
| |
| /// estimatedTimeRemaining |
| NSNumber? get estimatedTimeRemaining { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.estimatedTimeRemaining', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_estimatedTimeRemaining, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// fileCompletedCount |
| NSNumber? get fileCompletedCount { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.fileCompletedCount', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileCompletedCount); |
| return $ret.address == 0 |
| ? null |
| : NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// fileOperationKind |
| NSString? get fileOperationKind { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.fileOperationKind', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileOperationKind); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// fileTotalCount |
| NSNumber? get fileTotalCount { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.fileTotalCount', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileTotalCount); |
| return $ret.address == 0 |
| ? null |
| : NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// fileURL |
| NSURL? get fileURL { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.fileURL', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileURL); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// fractionCompleted |
| double get fractionCompleted { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.fractionCompleted', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| return objc.useMsgSendVariants |
| ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_fractionCompleted) |
| : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_fractionCompleted); |
| } |
| |
| /// init |
| NSProgress init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSProgress.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithParent:userInfo: |
| NSProgress initWithParent( |
| NSProgress? parentProgressOrNil, { |
| NSDictionary? userInfo, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = parentProgressOrNil?.ref; |
| final _$$ref$2 = userInfo?.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.initWithParent:userInfo:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithParent_userInfo_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSProgress.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// isCancellable |
| bool get isCancellable { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.isCancellable', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isCancellable); |
| } |
| |
| /// isCancelled |
| bool get isCancelled { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.isCancelled', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isCancelled); |
| } |
| |
| /// isFinished |
| bool get isFinished { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.isFinished', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isFinished); |
| } |
| |
| /// isIndeterminate |
| bool get isIndeterminate { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.isIndeterminate', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isIndeterminate); |
| } |
| |
| /// iOS: unavailable |
| /// macOS: introduced 10.9.0 |
| bool get isOld { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.isOld', |
| iOS: (true, null), |
| macOS: (false, (10, 9, 0)), |
| ); |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isOld); |
| } |
| |
| /// isPausable |
| bool get isPausable { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.isPausable', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isPausable); |
| } |
| |
| /// isPaused |
| bool get isPaused { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.isPaused', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isPaused); |
| } |
| |
| /// kind |
| NSString? get kind { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.kind', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_kind); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedAdditionalDescription |
| NSString get localizedAdditionalDescription { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.localizedAdditionalDescription', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_localizedAdditionalDescription, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedDescription |
| NSString get localizedDescription { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.localizedDescription', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_localizedDescription, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// pause |
| void pause() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.pause', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pause); |
| } |
| |
| /// pausingHandler |
| objc.ObjCBlock<ffi.Void Function()>? get pausingHandler { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.pausingHandler', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_pausingHandler); |
| return $ret.address == 0 |
| ? null |
| : ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// performAsCurrentWithPendingUnitCount:usingBlock: |
| void performAsCurrentWithPendingUnitCount( |
| int unitCount, { |
| required objc.ObjCBlock<ffi.Void Function()> usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.performAsCurrentWithPendingUnitCount:usingBlock:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| _objc_msgSend_1i0cxyc( |
| _$$ref.pointer, |
| _sel_performAsCurrentWithPendingUnitCount_usingBlock_, |
| unitCount, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// publish |
| /// |
| /// iOS: unavailable |
| /// macOS: introduced 10.9.0 |
| void publish() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.publish', |
| iOS: (true, null), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_publish); |
| } |
| |
| /// resignCurrent |
| void resignCurrent() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.resignCurrent', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_resignCurrent); |
| } |
| |
| /// resume |
| void resume() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.resume', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_resume); |
| } |
| |
| /// resumingHandler |
| objc.ObjCBlock<ffi.Void Function()>? get resumingHandler { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.resumingHandler', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_resumingHandler); |
| return $ret.address == 0 |
| ? null |
| : ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setCancellable: |
| set isCancellable(bool value) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setCancellable:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setCancellable_, value); |
| } |
| |
| /// setCancellationHandler: |
| set cancellationHandler(objc.ObjCBlock<ffi.Void Function()>? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setCancellationHandler:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_f167m6( |
| _$$ref.pointer, |
| _sel_setCancellationHandler_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// setCompletedUnitCount: |
| set completedUnitCount(int value) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setCompletedUnitCount:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_17gvxvj(_$$ref.pointer, _sel_setCompletedUnitCount_, value); |
| } |
| |
| /// setEstimatedTimeRemaining: |
| set estimatedTimeRemaining(NSNumber? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setEstimatedTimeRemaining:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setEstimatedTimeRemaining_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// setFileCompletedCount: |
| set fileCompletedCount(NSNumber? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setFileCompletedCount:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setFileCompletedCount_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// setFileOperationKind: |
| set fileOperationKind(NSString? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setFileOperationKind:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setFileOperationKind_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// setFileTotalCount: |
| set fileTotalCount(NSNumber? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setFileTotalCount:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setFileTotalCount_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// setFileURL: |
| set fileURL(NSURL? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setFileURL:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setFileURL_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// setKind: |
| set kind(NSString? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setKind:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setKind_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// setLocalizedAdditionalDescription: |
| set localizedAdditionalDescription(NSString value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setLocalizedAdditionalDescription:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setLocalizedAdditionalDescription_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// setLocalizedDescription: |
| set localizedDescription(NSString value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setLocalizedDescription:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setLocalizedDescription_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// setPausable: |
| set isPausable(bool value) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setPausable:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setPausable_, value); |
| } |
| |
| /// setPausingHandler: |
| set pausingHandler(objc.ObjCBlock<ffi.Void Function()>? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setPausingHandler:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_f167m6( |
| _$$ref.pointer, |
| _sel_setPausingHandler_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// setResumingHandler: |
| set resumingHandler(objc.ObjCBlock<ffi.Void Function()>? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setResumingHandler:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| _objc_msgSend_f167m6( |
| _$$ref.pointer, |
| _sel_setResumingHandler_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// setThroughput: |
| set throughput(NSNumber? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setThroughput:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setThroughput_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// setTotalUnitCount: |
| set totalUnitCount(int value) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setTotalUnitCount:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_17gvxvj(_$$ref.pointer, _sel_setTotalUnitCount_, value); |
| } |
| |
| /// setUserInfoObject:forKey: |
| void setUserInfoObject( |
| objc.ObjCObject? objectOrNil, { |
| required NSString forKey, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = objectOrNil?.ref; |
| final _$$ref$2 = forKey.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.setUserInfoObject:forKey:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_setUserInfoObject_forKey_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// throughput |
| NSNumber? get throughput { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.throughput', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_throughput); |
| return $ret.address == 0 |
| ? null |
| : NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// totalUnitCount |
| int get totalUnitCount { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.totalUnitCount', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_totalUnitCount); |
| } |
| |
| /// unpublish |
| /// |
| /// iOS: unavailable |
| /// macOS: introduced 10.9.0 |
| void unpublish() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.unpublish', |
| iOS: (true, null), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_unpublish); |
| } |
| |
| /// userInfo |
| NSDictionary get userInfo { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSProgress.userInfo', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_userInfo); |
| return NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| enum NSPropertyListFormat { |
| NSPropertyListOpenStepFormat(1), |
| NSPropertyListXMLFormat_v1_0(100), |
| NSPropertyListBinaryFormat_v1_0(200); |
| |
| final int value; |
| const NSPropertyListFormat(this.value); |
| |
| static NSPropertyListFormat fromValue(int value) => switch (value) { |
| 1 => NSPropertyListOpenStepFormat, |
| 100 => NSPropertyListXMLFormat_v1_0, |
| 200 => NSPropertyListBinaryFormat_v1_0, |
| _ => throw ArgumentError('Unknown value for NSPropertyListFormat: $value'), |
| }; |
| } |
| |
| enum NSQualityOfService { |
| NSQualityOfServiceUserInteractive(33), |
| NSQualityOfServiceUserInitiated(25), |
| NSQualityOfServiceUtility(17), |
| NSQualityOfServiceBackground(9), |
| NSQualityOfServiceDefault(-1); |
| |
| final int value; |
| const NSQualityOfService(this.value); |
| |
| static NSQualityOfService fromValue(int value) => switch (value) { |
| 33 => NSQualityOfServiceUserInteractive, |
| 25 => NSQualityOfServiceUserInitiated, |
| 17 => NSQualityOfServiceUtility, |
| 9 => NSQualityOfServiceBackground, |
| -1 => NSQualityOfServiceDefault, |
| _ => throw ArgumentError('Unknown value for NSQualityOfService: $value'), |
| }; |
| } |
| |
| final class NSRange extends ffi.Struct { |
| @NSUInteger() |
| external int location; |
| |
| @NSUInteger() |
| external int length; |
| |
| static ffi.Pointer<NSRange> $allocate( |
| ffi.Allocator $allocator, { |
| required int location, |
| required int length, |
| }) => $allocator<NSRange>() |
| ..ref.location = location |
| ..ref.length = length; |
| } |
| |
| /// NSRunLoop |
| extension type NSRunLoop._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [NSRunLoop] that points to the same underlying object as [other]. |
| NSRunLoop.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSRunLoop] that wraps the given raw object pointer. |
| NSRunLoop.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSRunLoop]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSRunLoop, |
| ); |
| |
| /// alloc |
| static NSRunLoop alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSRunLoop, _sel_alloc); |
| return NSRunLoop.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSRunLoop allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSRunLoop, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSRunLoop.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// currentRunLoop |
| static NSRunLoop getCurrentRunLoop() { |
| final $ret = _objc_msgSend_151sglz(_class_NSRunLoop, _sel_currentRunLoop); |
| return NSRunLoop.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// mainRunLoop |
| static NSRunLoop getMainRunLoop() { |
| objc.checkOsVersionInternal( |
| 'NSRunLoop.mainRunLoop', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_class_NSRunLoop, _sel_mainRunLoop); |
| return NSRunLoop.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSRunLoop new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSRunLoop, _sel_new); |
| return NSRunLoop.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of NSRunLoop constructed with the default `new` method. |
| NSRunLoop() : this.as(new$().object$); |
| } |
| |
| extension NSRunLoop$Methods on NSRunLoop { |
| /// acceptInputForMode:beforeDate: |
| void acceptInputForMode(NSString mode, {required NSDate beforeDate}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = mode.ref; |
| final _$$ref$2 = beforeDate.ref; |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_acceptInputForMode_beforeDate_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// addPort:forMode: |
| void addPort(NSPort aPort, {required NSString forMode}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aPort.ref; |
| final _$$ref$2 = forMode.ref; |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_addPort_forMode_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// addTimer:forMode: |
| void addTimer(NSTimer timer, {required NSString forMode}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = timer.ref; |
| final _$$ref$2 = forMode.ref; |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_addTimer_forMode_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// currentMode |
| NSString? get currentMode { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentMode); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// getCFRunLoop |
| ffi.Pointer<CFRunLoop> getCFRunLoop() { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1bbja28(_$$ref.pointer, _sel_getCFRunLoop); |
| } |
| |
| /// init |
| NSRunLoop init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSRunLoop.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSRunLoop.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// limitDateForMode: |
| NSDate? limitDateForMode(NSString mode) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = mode.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_limitDateForMode_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSDate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// removePort:forMode: |
| void removePort(NSPort aPort, {required NSString forMode}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aPort.ref; |
| final _$$ref$2 = forMode.ref; |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_removePort_forMode_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| } |
| |
| /// NSSecureCoding |
| extension type NSSecureCoding._(objc.ObjCProtocol object$) |
| implements objc.ObjCProtocol, NSCoding { |
| /// Constructs a [NSSecureCoding] that points to the same underlying object as [other]. |
| NSSecureCoding.as(objc.ObjCObject other) : object$ = other; |
| |
| /// Constructs a [NSSecureCoding] that wraps the given raw object pointer. |
| NSSecureCoding.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); |
| |
| /// Returns whether [obj] is an instance of [NSSecureCoding]. |
| static bool conformsTo(objc.ObjCObject obj) { |
| return _objc_msgSend_e3qsqz( |
| obj.ref.pointer, |
| _sel_conformsToProtocol_, |
| _protocol_NSSecureCoding, |
| ); |
| } |
| } |
| |
| extension NSSecureCoding$Methods on NSSecureCoding { |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// initWithCoder: |
| NSSecureCoding? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSSecureCoding.fromPointer($ret, retain: false, release: true); |
| } |
| } |
| |
| interface class NSSecureCoding$Builder { |
| /// Returns the [objc.Protocol] object for this protocol. |
| static objc.Protocol get $protocol => |
| objc.Protocol.fromPointer(_protocol_NSSecureCoding.cast()); |
| |
| /// Builds an object that implements the NSSecureCoding protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSSecureCoding implement({ |
| required void Function(NSCoder) encodeWithCoder_, |
| required Dartinstancetype? Function(NSCoder) initWithCoder_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); |
| NSSecureCoding$Builder.encodeWithCoder_.implement( |
| builder, |
| encodeWithCoder_, |
| ); |
| NSSecureCoding$Builder.initWithCoder_.implement(builder, initWithCoder_); |
| builder.addProtocol($protocol); |
| return NSSecureCoding.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSSecureCoding protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilder( |
| objc.ObjCProtocolBuilder builder, { |
| required void Function(NSCoder) encodeWithCoder_, |
| required Dartinstancetype? Function(NSCoder) initWithCoder_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSSecureCoding$Builder.encodeWithCoder_.implement( |
| builder, |
| encodeWithCoder_, |
| ); |
| NSSecureCoding$Builder.initWithCoder_.implement(builder, initWithCoder_); |
| builder.addProtocol($protocol); |
| } |
| |
| /// Builds an object that implements the NSSecureCoding protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All |
| /// methods that can be implemented as listeners will be. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSSecureCoding implementAsListener({ |
| required void Function(NSCoder) encodeWithCoder_, |
| required Dartinstancetype? Function(NSCoder) initWithCoder_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); |
| NSSecureCoding$Builder.encodeWithCoder_.implementAsListener( |
| builder, |
| encodeWithCoder_, |
| ); |
| NSSecureCoding$Builder.initWithCoder_.implement(builder, initWithCoder_); |
| builder.addProtocol($protocol); |
| return NSSecureCoding.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSSecureCoding protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will |
| /// be. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilderAsListener( |
| objc.ObjCProtocolBuilder builder, { |
| required void Function(NSCoder) encodeWithCoder_, |
| required Dartinstancetype? Function(NSCoder) initWithCoder_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSSecureCoding$Builder.encodeWithCoder_.implementAsListener( |
| builder, |
| encodeWithCoder_, |
| ); |
| NSSecureCoding$Builder.initWithCoder_.implement(builder, initWithCoder_); |
| builder.addProtocol($protocol); |
| } |
| |
| /// Builds an object that implements the NSSecureCoding protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All |
| /// methods that can be implemented as blocking listeners will be. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSSecureCoding implementAsBlocking({ |
| required void Function(NSCoder) encodeWithCoder_, |
| required Dartinstancetype? Function(NSCoder) initWithCoder_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); |
| NSSecureCoding$Builder.encodeWithCoder_.implementAsBlocking( |
| builder, |
| encodeWithCoder_, |
| ); |
| NSSecureCoding$Builder.initWithCoder_.implement(builder, initWithCoder_); |
| builder.addProtocol($protocol); |
| return NSSecureCoding.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSSecureCoding protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking |
| /// listeners will be. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilderAsBlocking( |
| objc.ObjCProtocolBuilder builder, { |
| required void Function(NSCoder) encodeWithCoder_, |
| required Dartinstancetype? Function(NSCoder) initWithCoder_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSSecureCoding$Builder.encodeWithCoder_.implementAsBlocking( |
| builder, |
| encodeWithCoder_, |
| ); |
| NSSecureCoding$Builder.initWithCoder_.implement(builder, initWithCoder_); |
| builder.addProtocol($protocol); |
| } |
| |
| /// encodeWithCoder: |
| static final encodeWithCoder_ = |
| objc.ObjCProtocolListenableMethod<void Function(NSCoder)>( |
| _protocol_NSSecureCoding, |
| _sel_encodeWithCoder_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_18v1jvf) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSSecureCoding, |
| _sel_encodeWithCoder_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (void Function(NSCoder) func) => |
| ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( |
| (ffi.Pointer<ffi.Void> _, NSCoder arg1) => func(arg1), |
| ), |
| (void Function(NSCoder) func) => |
| ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( |
| (ffi.Pointer<ffi.Void> _, NSCoder arg1) => func(arg1), |
| ), |
| (void Function(NSCoder) func) => |
| ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( |
| (ffi.Pointer<ffi.Void> _, NSCoder arg1) => func(arg1), |
| ), |
| ); |
| |
| /// initWithCoder: |
| static final initWithCoder_ = |
| objc.ObjCProtocolMethod<Dartinstancetype? Function(NSCoder)>( |
| _protocol_NSSecureCoding, |
| _sel_initWithCoder_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| instancetype Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_xr62hr) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSSecureCoding, |
| _sel_initWithCoder_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| (Dartinstancetype? Function(NSCoder) func) => |
| ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( |
| (ffi.Pointer<ffi.Void> _, NSCoder arg1) => func(arg1), |
| ), |
| ); |
| } |
| |
| /// NSSet |
| extension type NSSet._(objc.ObjCObject object$) |
| implements |
| objc.ObjCObject, |
| NSObject, |
| NSCopying, |
| NSMutableCopying, |
| NSSecureCoding, |
| NSFastEnumeration { |
| /// Creates a [NSSet] from [elements]. |
| static NSSet of(Iterable<objc.ObjCObject> elements) => |
| NSMutableSet.of(elements); |
| |
| /// Constructs a [NSSet] that points to the same underlying object as [other]. |
| NSSet.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSSet] that wraps the given raw object pointer. |
| NSSet.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSSet]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSSet, |
| ); |
| |
| /// alloc |
| static NSSet alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSSet, _sel_alloc); |
| return NSSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSSet allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428(_class_NSSet, _sel_allocWithZone_, zone); |
| return NSSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSSet new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSSet, _sel_new); |
| return NSSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// set |
| static NSSet set() { |
| final $ret = _objc_msgSend_151sglz(_class_NSSet, _sel_set); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setWithArray: |
| static NSSet setWithArray(NSArray array) { |
| final _$$ref = array.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSSet, |
| _sel_setWithArray_, |
| _$$ref.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setWithObject: |
| static NSSet setWithObject(objc.ObjCObject object) { |
| final _$$ref = object.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSSet, |
| _sel_setWithObject_, |
| _$$ref.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setWithObjects: |
| static NSSet setWithObjects(objc.ObjCObject firstObj) { |
| final _$$ref = firstObj.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSSet, |
| _sel_setWithObjects_, |
| _$$ref.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setWithObjects:count: |
| static NSSet setWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required DartNSUInteger count, |
| }) { |
| final $ret = _objc_msgSend_zmbtbd( |
| _class_NSSet, |
| _sel_setWithObjects_count_, |
| objects, |
| count, |
| ); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setWithSet: |
| static NSSet setWithSet(NSSet set) { |
| final _$$ref = set.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSSet, |
| _sel_setWithSet_, |
| _$$ref.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSSet, _sel_supportsSecureCoding); |
| } |
| |
| /// Returns a new instance of NSSet constructed with the default `new` method. |
| NSSet() : this.as(new$().object$); |
| } |
| |
| extension NSSet$Methods on NSSet { |
| /// count |
| DartNSUInteger get count { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_count); |
| } |
| |
| /// countByEnumeratingWithState:objects:count: |
| DartNSUInteger countByEnumeratingWithState( |
| ffi.Pointer<NSFastEnumerationState> state, { |
| required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1b5ysjl( |
| _$$ref.pointer, |
| _sel_countByEnumeratingWithState_objects_count_, |
| state, |
| objects, |
| count, |
| ); |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// init |
| NSSet init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSSet.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithArray: |
| NSSet initWithArray(NSArray array) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = array.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithArray_, |
| _$$ref$1.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSSet? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects: |
| NSSet initWithObjects(objc.ObjCObject firstObj) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = firstObj.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_, |
| _$$ref$1.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithObjects:count: |
| NSSet initWithObjects$1( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> objects, { |
| required DartNSUInteger count, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_zmbtbd( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithObjects_count_, |
| objects, |
| count, |
| ); |
| return NSSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithSet: |
| NSSet initWithSet(NSSet set) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithSet_, |
| _$$ref$1.pointer, |
| ); |
| return NSSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithSet:copyItems: |
| NSSet initWithSet$1(NSSet set, {required bool copyItems}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithSet_copyItems_, |
| _$$ref$1.pointer, |
| copyItems, |
| ); |
| return NSSet.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// member: |
| objc.ObjCObject? member(objc.ObjCObject object) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = object.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_member_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// objectEnumerator |
| NSEnumerator objectEnumerator() { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_objectEnumerator); |
| return NSEnumerator.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSSetCreation |
| extension NSSetCreation on NSSet {} |
| |
| sealed class NSSortOptions { |
| static const NSSortConcurrent = 1; |
| static const NSSortStable = 16; |
| } |
| |
| /// NSStream |
| extension type NSStream._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [NSStream] that points to the same underlying object as [other]. |
| NSStream.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSStream] that wraps the given raw object pointer. |
| NSStream.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSStream]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSStream, |
| ); |
| |
| /// alloc |
| static NSStream alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSStream, _sel_alloc); |
| return NSStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSStream allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSStream, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSStream new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSStream, _sel_new); |
| return NSStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of NSStream constructed with the default `new` method. |
| NSStream() : this.as(new$().object$); |
| } |
| |
| extension NSStream$Methods on NSStream { |
| /// close |
| void close() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_close); |
| } |
| |
| /// delegate |
| NSStreamDelegate? get delegate { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); |
| return $ret.address == 0 |
| ? null |
| : NSStreamDelegate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// init |
| NSStream init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSStream.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSStream.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// open |
| void open() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_open); |
| } |
| |
| /// propertyForKey: |
| objc.ObjCObject? propertyForKey(NSString key) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = key.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_propertyForKey_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| /// removeFromRunLoop:forMode: |
| void removeFromRunLoop(NSRunLoop aRunLoop, {required NSString forMode}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aRunLoop.ref; |
| final _$$ref$2 = forMode.ref; |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_removeFromRunLoop_forMode_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// scheduleInRunLoop:forMode: |
| void scheduleInRunLoop(NSRunLoop aRunLoop, {required NSString forMode}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aRunLoop.ref; |
| final _$$ref$2 = forMode.ref; |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_scheduleInRunLoop_forMode_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// setDelegate: |
| set delegate(NSStreamDelegate? value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_setDelegate_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// setProperty:forKey: |
| bool setProperty(objc.ObjCObject? property, {required NSString forKey}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = property?.ref; |
| final _$$ref$2 = forKey.ref; |
| return _objc_msgSend_1lsax7n( |
| _$$ref.pointer, |
| _sel_setProperty_forKey_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// streamError |
| NSError? get streamError { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_streamError); |
| return $ret.address == 0 |
| ? null |
| : NSError.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// streamStatus |
| NSStreamStatus get streamStatus { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1efxbd8(_$$ref.pointer, _sel_streamStatus); |
| return NSStreamStatus.fromValue($ret); |
| } |
| } |
| |
| /// NSStreamDelegate |
| extension type NSStreamDelegate._(objc.ObjCProtocol object$) |
| implements objc.ObjCProtocol, NSObjectProtocol { |
| /// Constructs a [NSStreamDelegate] that points to the same underlying object as [other]. |
| NSStreamDelegate.as(objc.ObjCObject other) : object$ = other; |
| |
| /// Constructs a [NSStreamDelegate] that wraps the given raw object pointer. |
| NSStreamDelegate.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); |
| |
| /// Returns whether [obj] is an instance of [NSStreamDelegate]. |
| static bool conformsTo(objc.ObjCObject obj) { |
| return _objc_msgSend_e3qsqz( |
| obj.ref.pointer, |
| _sel_conformsToProtocol_, |
| _protocol_NSStreamDelegate, |
| ); |
| } |
| } |
| |
| extension NSStreamDelegate$Methods on NSStreamDelegate { |
| /// stream:handleEvent: |
| void stream(NSStream aStream, {required DartNSUInteger handleEvent}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aStream.ref; |
| if (!objc.respondsToSelector(_$$ref.pointer, _sel_stream_handleEvent_)) { |
| throw objc.UnimplementedOptionalMethodException( |
| 'NSStreamDelegate', |
| 'stream:handleEvent:', |
| ); |
| } |
| _objc_msgSend_3l8zum( |
| _$$ref.pointer, |
| _sel_stream_handleEvent_, |
| _$$ref$1.pointer, |
| handleEvent, |
| ); |
| } |
| } |
| |
| interface class NSStreamDelegate$Builder { |
| /// Returns the [objc.Protocol] object for this protocol. |
| static objc.Protocol get $protocol => |
| objc.Protocol.fromPointer(_protocol_NSStreamDelegate.cast()); |
| |
| /// Builds an object that implements the NSStreamDelegate protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSStreamDelegate implement({ |
| void Function(NSStream, DartNSUInteger)? stream_handleEvent_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); |
| NSStreamDelegate$Builder.stream_handleEvent_.implement( |
| builder, |
| stream_handleEvent_, |
| ); |
| builder.addProtocol($protocol); |
| return NSStreamDelegate.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSStreamDelegate protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilder( |
| objc.ObjCProtocolBuilder builder, { |
| void Function(NSStream, DartNSUInteger)? stream_handleEvent_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSStreamDelegate$Builder.stream_handleEvent_.implement( |
| builder, |
| stream_handleEvent_, |
| ); |
| builder.addProtocol($protocol); |
| } |
| |
| /// Builds an object that implements the NSStreamDelegate protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All |
| /// methods that can be implemented as listeners will be. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSStreamDelegate implementAsListener({ |
| void Function(NSStream, DartNSUInteger)? stream_handleEvent_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); |
| NSStreamDelegate$Builder.stream_handleEvent_.implementAsListener( |
| builder, |
| stream_handleEvent_, |
| ); |
| builder.addProtocol($protocol); |
| return NSStreamDelegate.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSStreamDelegate protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will |
| /// be. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilderAsListener( |
| objc.ObjCProtocolBuilder builder, { |
| void Function(NSStream, DartNSUInteger)? stream_handleEvent_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSStreamDelegate$Builder.stream_handleEvent_.implementAsListener( |
| builder, |
| stream_handleEvent_, |
| ); |
| builder.addProtocol($protocol); |
| } |
| |
| /// Builds an object that implements the NSStreamDelegate protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All |
| /// methods that can be implemented as blocking listeners will be. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static NSStreamDelegate implementAsBlocking({ |
| void Function(NSStream, DartNSUInteger)? stream_handleEvent_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); |
| NSStreamDelegate$Builder.stream_handleEvent_.implementAsBlocking( |
| builder, |
| stream_handleEvent_, |
| ); |
| builder.addProtocol($protocol); |
| return NSStreamDelegate.as( |
| builder.build(keepIsolateAlive: $keepIsolateAlive), |
| ); |
| } |
| |
| /// Adds the implementation of the NSStreamDelegate protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking |
| /// listeners will be. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilderAsBlocking( |
| objc.ObjCProtocolBuilder builder, { |
| void Function(NSStream, DartNSUInteger)? stream_handleEvent_, |
| bool $keepIsolateAlive = true, |
| }) { |
| NSStreamDelegate$Builder.stream_handleEvent_.implementAsBlocking( |
| builder, |
| stream_handleEvent_, |
| ); |
| builder.addProtocol($protocol); |
| } |
| |
| /// stream:handleEvent: |
| static final stream_handleEvent_ = |
| objc.ObjCProtocolListenableMethod< |
| void Function(NSStream, DartNSUInteger) |
| >( |
| _protocol_NSStreamDelegate, |
| _sel_stream_handleEvent_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_hoampi) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_NSStreamDelegate, |
| _sel_stream_handleEvent_, |
| isRequired: false, |
| isInstanceMethod: true, |
| ), |
| (void Function(NSStream, DartNSUInteger) func) => |
| ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.fromFunction( |
| (ffi.Pointer<ffi.Void> _, NSStream arg1, DartNSUInteger arg2) => |
| func(arg1, arg2), |
| ), |
| (void Function(NSStream, DartNSUInteger) func) => |
| ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.listener( |
| (ffi.Pointer<ffi.Void> _, NSStream arg1, DartNSUInteger arg2) => |
| func(arg1, arg2), |
| ), |
| (void Function(NSStream, DartNSUInteger) func) => |
| ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.blocking( |
| (ffi.Pointer<ffi.Void> _, NSStream arg1, DartNSUInteger arg2) => |
| func(arg1, arg2), |
| ), |
| ); |
| } |
| |
| sealed class NSStreamEvent { |
| static const NSStreamEventNone = 0; |
| static const NSStreamEventOpenCompleted = 1; |
| static const NSStreamEventHasBytesAvailable = 2; |
| static const NSStreamEventHasSpaceAvailable = 4; |
| static const NSStreamEventErrorOccurred = 8; |
| static const NSStreamEventEndEncountered = 16; |
| } |
| |
| enum NSStreamStatus { |
| NSStreamStatusNotOpen(0), |
| NSStreamStatusOpening(1), |
| NSStreamStatusOpen(2), |
| NSStreamStatusReading(3), |
| NSStreamStatusWriting(4), |
| NSStreamStatusAtEnd(5), |
| NSStreamStatusClosed(6), |
| NSStreamStatusError(7); |
| |
| final int value; |
| const NSStreamStatus(this.value); |
| |
| static NSStreamStatus fromValue(int value) => switch (value) { |
| 0 => NSStreamStatusNotOpen, |
| 1 => NSStreamStatusOpening, |
| 2 => NSStreamStatusOpen, |
| 3 => NSStreamStatusReading, |
| 4 => NSStreamStatusWriting, |
| 5 => NSStreamStatusAtEnd, |
| 6 => NSStreamStatusClosed, |
| 7 => NSStreamStatusError, |
| _ => throw ArgumentError('Unknown value for NSStreamStatus: $value'), |
| }; |
| } |
| |
| /// NSString |
| extension type NSString._(objc.ObjCObject object$) |
| implements |
| objc.ObjCObject, |
| NSObject, |
| NSCopying, |
| NSMutableCopying, |
| NSSecureCoding { |
| NSString(String str) : this.as(_stringToNSString$(str)); |
| |
| static NSString _stringToNSString$(String str) { |
| final cstr = str.toNativeUtf16(); |
| final nsstr = stringWithCharacters(cstr.cast(), length: str.length); |
| pkg_ffi.calloc.free(cstr); |
| return nsstr; |
| } |
| |
| /// Constructs a [NSString] that points to the same underlying object as [other]. |
| NSString.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSString] that wraps the given raw object pointer. |
| NSString.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSString]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSString, |
| ); |
| |
| /// alloc |
| static NSString alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSString, _sel_alloc); |
| return NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSString allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSString, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// localizedStringWithFormat: |
| static NSString localizedStringWithFormat(NSString format) { |
| final _$$ref = format.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSString, |
| _sel_localizedStringWithFormat_, |
| _$$ref.pointer, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedStringWithValidatedFormat:validFormatSpecifiers:error: |
| static NSString? localizedStringWithValidatedFormat( |
| NSString format, { |
| required NSString validFormatSpecifiers, |
| }) { |
| final _$$ref = format.ref; |
| final _$$ref$1 = validFormatSpecifiers.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1pnyuds( |
| _class_NSString, |
| _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// new |
| static NSString new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSString, _sel_new); |
| return NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// string |
| static NSString string() { |
| final $ret = _objc_msgSend_151sglz(_class_NSString, _sel_string); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringWithCString:encoding: |
| static NSString? stringWithCString( |
| ffi.Pointer<ffi.Char> cString, { |
| required DartNSUInteger encoding, |
| }) { |
| final $ret = _objc_msgSend_erqryg( |
| _class_NSString, |
| _sel_stringWithCString_encoding_, |
| cString, |
| encoding, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringWithCharacters:length: |
| static NSString stringWithCharacters( |
| ffi.Pointer<ffi.UnsignedShort> characters, { |
| required DartNSUInteger length, |
| }) { |
| final $ret = _objc_msgSend_9x4k8x( |
| _class_NSString, |
| _sel_stringWithCharacters_length_, |
| characters, |
| length, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringWithContentsOfFile:encoding:error: |
| static NSString? stringWithContentsOfFile( |
| NSString path, { |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = path.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1nomli1( |
| _class_NSString, |
| _sel_stringWithContentsOfFile_encoding_error_, |
| _$$ref.pointer, |
| encoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// stringWithContentsOfFile:usedEncoding:error: |
| static NSString? stringWithContentsOfFile$1( |
| NSString path, { |
| required ffi.Pointer<NSUInteger> usedEncoding, |
| }) { |
| final _$$ref = path.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1alewu7( |
| _class_NSString, |
| _sel_stringWithContentsOfFile_usedEncoding_error_, |
| _$$ref.pointer, |
| usedEncoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// stringWithContentsOfURL:encoding:error: |
| static NSString? stringWithContentsOfURL( |
| NSURL url, { |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = url.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1nomli1( |
| _class_NSString, |
| _sel_stringWithContentsOfURL_encoding_error_, |
| _$$ref.pointer, |
| encoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// stringWithContentsOfURL:usedEncoding:error: |
| static NSString? stringWithContentsOfURL$1( |
| NSURL url, { |
| required ffi.Pointer<NSUInteger> usedEncoding, |
| }) { |
| final _$$ref = url.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1alewu7( |
| _class_NSString, |
| _sel_stringWithContentsOfURL_usedEncoding_error_, |
| _$$ref.pointer, |
| usedEncoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// stringWithFormat: |
| static NSString stringWithFormat(NSString format) { |
| final _$$ref = format.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSString, |
| _sel_stringWithFormat_, |
| _$$ref.pointer, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringWithString: |
| static NSString stringWithString(NSString string) { |
| final _$$ref = string.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSString, |
| _sel_stringWithString_, |
| _$$ref.pointer, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringWithUTF8String: |
| static NSString? stringWithUTF8String( |
| ffi.Pointer<ffi.Char> nullTerminatedCString, |
| ) { |
| final $ret = _objc_msgSend_56zxyn( |
| _class_NSString, |
| _sel_stringWithUTF8String_, |
| nullTerminatedCString, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringWithValidatedFormat:validFormatSpecifiers:error: |
| static NSString? stringWithValidatedFormat( |
| NSString format, { |
| required NSString validFormatSpecifiers, |
| }) { |
| final _$$ref = format.ref; |
| final _$$ref$1 = validFormatSpecifiers.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.stringWithValidatedFormat:validFormatSpecifiers:error:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1pnyuds( |
| _class_NSString, |
| _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSString, _sel_supportsSecureCoding); |
| } |
| } |
| |
| extension NSString$Methods on NSString { |
| /// characterAtIndex: |
| int characterAtIndex(DartNSUInteger index) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1deg8x(_$$ref.pointer, _sel_characterAtIndex_, index); |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// init |
| NSString init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytes:length:encoding: |
| NSString? initWithBytes( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_9b3h4v( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytes_length_encoding_, |
| bytes, |
| length, |
| encoding, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytesNoCopy:length:encoding:deallocator: |
| NSString? initWithBytesNoCopy( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| required DartNSUInteger encoding, |
| objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong)>? |
| deallocator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = deallocator?.ref; |
| final $ret = _objc_msgSend_1lbgrac( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytesNoCopy_length_encoding_deallocator_, |
| bytes, |
| length, |
| encoding, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytesNoCopy:length:encoding:freeWhenDone: |
| NSString? initWithBytesNoCopy$1( |
| ffi.Pointer<ffi.Void> bytes, { |
| required DartNSUInteger length, |
| required DartNSUInteger encoding, |
| required bool freeWhenDone, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_k4j8m3( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, |
| bytes, |
| length, |
| encoding, |
| freeWhenDone, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCString:encoding: |
| NSString? initWithCString( |
| ffi.Pointer<ffi.Char> nullTerminatedCString, { |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_erqryg( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCString_encoding_, |
| nullTerminatedCString, |
| encoding, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCharacters:length: |
| NSString initWithCharacters( |
| ffi.Pointer<ffi.UnsignedShort> characters, { |
| required DartNSUInteger length, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_9x4k8x( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCharacters_length_, |
| characters, |
| length, |
| ); |
| return NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCharactersNoCopy:length:deallocator: |
| NSString initWithCharactersNoCopy( |
| ffi.Pointer<ffi.UnsignedShort> chars, { |
| required DartNSUInteger length, |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong) |
| >? |
| deallocator, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = deallocator?.ref; |
| final $ret = _objc_msgSend_talwei( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCharactersNoCopy_length_deallocator_, |
| chars, |
| length, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCharactersNoCopy:length:freeWhenDone: |
| NSString initWithCharactersNoCopy$1( |
| ffi.Pointer<ffi.UnsignedShort> characters, { |
| required DartNSUInteger length, |
| required bool freeWhenDone, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_lh0jh5( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCharactersNoCopy_length_freeWhenDone_, |
| characters, |
| length, |
| freeWhenDone, |
| ); |
| return NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSString? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithContentsOfFile:encoding:error: |
| NSString? initWithContentsOfFile( |
| NSString path, { |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1nomli1( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfFile_encoding_error_, |
| _$$ref$1.pointer, |
| encoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initWithContentsOfFile:usedEncoding:error: |
| NSString? initWithContentsOfFile$1( |
| NSString path, { |
| required ffi.Pointer<NSUInteger> usedEncoding, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1alewu7( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfFile_usedEncoding_error_, |
| _$$ref$1.pointer, |
| usedEncoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initWithContentsOfURL:encoding:error: |
| NSString? initWithContentsOfURL( |
| NSURL url, { |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1nomli1( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfURL_encoding_error_, |
| _$$ref$1.pointer, |
| encoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initWithContentsOfURL:usedEncoding:error: |
| NSString? initWithContentsOfURL$1( |
| NSURL url, { |
| required ffi.Pointer<NSUInteger> usedEncoding, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1alewu7( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithContentsOfURL_usedEncoding_error_, |
| _$$ref$1.pointer, |
| usedEncoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initWithData:encoding: |
| NSString? initWithData(NSData data, {required DartNSUInteger encoding}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = data.ref; |
| final $ret = _objc_msgSend_1k4kd9s( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithData_encoding_, |
| _$$ref$1.pointer, |
| encoding, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithFormat: |
| NSString initWithFormat(NSString format) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = format.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithFormat_, |
| _$$ref$1.pointer, |
| ); |
| return NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithFormat:locale: |
| NSString initWithFormat$1(NSString format, {objc.ObjCObject? locale}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = format.ref; |
| final _$$ref$2 = locale?.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithFormat_locale_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithString: |
| NSString initWithString(NSString aString) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aString.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithString_, |
| _$$ref$1.pointer, |
| ); |
| return NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithUTF8String: |
| NSString? initWithUTF8String(ffi.Pointer<ffi.Char> nullTerminatedCString) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_56zxyn( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithUTF8String_, |
| nullTerminatedCString, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithValidatedFormat:validFormatSpecifiers:error: |
| /// |
| /// iOS: introduced 16.0.0 |
| /// macOS: introduced 13.0.0 |
| NSString? initWithValidatedFormat( |
| NSString format, { |
| required NSString validFormatSpecifiers, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = format.ref; |
| final _$$ref$2 = validFormatSpecifiers.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.initWithValidatedFormat:validFormatSpecifiers:error:', |
| iOS: (false, (16, 0, 0)), |
| macOS: (false, (13, 0, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1pnyuds( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithValidatedFormat_validFormatSpecifiers_error_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initWithValidatedFormat:validFormatSpecifiers:locale:error: |
| /// |
| /// iOS: introduced 16.0.0 |
| /// macOS: introduced 13.0.0 |
| NSString? initWithValidatedFormat$1( |
| NSString format, { |
| required NSString validFormatSpecifiers, |
| objc.ObjCObject? locale, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = format.ref; |
| final _$$ref$2 = validFormatSpecifiers.ref; |
| final _$$ref$3 = locale?.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', |
| iOS: (false, (16, 0, 0)), |
| macOS: (false, (13, 0, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1k0ezzm( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// length |
| DartNSUInteger get length { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_length); |
| } |
| } |
| |
| sealed class NSStringCompareOptions { |
| static const NSCaseInsensitiveSearch = 1; |
| static const NSLiteralSearch = 2; |
| static const NSBackwardsSearch = 4; |
| static const NSAnchoredSearch = 8; |
| static const NSNumericSearch = 64; |
| static const NSDiacriticInsensitiveSearch = 128; |
| static const NSWidthInsensitiveSearch = 256; |
| static const NSForcedOrderingSearch = 512; |
| static const NSRegularExpressionSearch = 1024; |
| } |
| |
| sealed class NSStringEncodingConversionOptions { |
| static const NSStringEncodingConversionAllowLossy = 1; |
| static const NSStringEncodingConversionExternalRepresentation = 2; |
| } |
| |
| sealed class NSStringEnumerationOptions { |
| static const NSStringEnumerationByLines = 0; |
| static const NSStringEnumerationByParagraphs = 1; |
| static const NSStringEnumerationByComposedCharacterSequences = 2; |
| static const NSStringEnumerationByWords = 3; |
| static const NSStringEnumerationBySentences = 4; |
| static const NSStringEnumerationByCaretPositions = 5; |
| static const NSStringEnumerationByDeletionClusters = 6; |
| static const NSStringEnumerationReverse = 256; |
| static const NSStringEnumerationSubstringNotRequired = 512; |
| static const NSStringEnumerationLocalized = 1024; |
| } |
| |
| /// NSStringExtensionMethods |
| extension NSStringExtensionMethods on NSString { |
| /// UTF8String |
| ffi.Pointer<ffi.Char> get UTF8String { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_UTF8String); |
| } |
| |
| /// boolValue |
| bool get boolValue { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.boolValue', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_boolValue); |
| } |
| |
| /// cStringUsingEncoding: |
| ffi.Pointer<ffi.Char> cStringUsingEncoding(DartNSUInteger encoding) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1jtxufi( |
| _$$ref.pointer, |
| _sel_cStringUsingEncoding_, |
| encoding, |
| ); |
| } |
| |
| /// canBeConvertedToEncoding: |
| bool canBeConvertedToEncoding(DartNSUInteger encoding) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_6peh6o( |
| _$$ref.pointer, |
| _sel_canBeConvertedToEncoding_, |
| encoding, |
| ); |
| } |
| |
| /// capitalizedString |
| NSString get capitalizedString { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_capitalizedString); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// capitalizedStringWithLocale: |
| NSString capitalizedStringWithLocale(NSLocale? locale) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = locale?.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.capitalizedStringWithLocale:', |
| iOS: (false, (6, 0, 0)), |
| macOS: (false, (10, 8, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_capitalizedStringWithLocale_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// caseInsensitiveCompare: |
| NSComparisonResult caseInsensitiveCompare(NSString string) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = string.ref; |
| final $ret = _objc_msgSend_1ym6zyw( |
| _$$ref.pointer, |
| _sel_caseInsensitiveCompare_, |
| _$$ref$1.pointer, |
| ); |
| return NSComparisonResult.fromValue($ret); |
| } |
| |
| /// commonPrefixWithString:options: |
| NSString commonPrefixWithString( |
| NSString str, { |
| required DartNSUInteger options, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = str.ref; |
| final $ret = _objc_msgSend_diypgk( |
| _$$ref.pointer, |
| _sel_commonPrefixWithString_options_, |
| _$$ref$1.pointer, |
| options, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// compare: |
| NSComparisonResult compare(NSString string) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = string.ref; |
| final $ret = _objc_msgSend_1ym6zyw( |
| _$$ref.pointer, |
| _sel_compare_, |
| _$$ref$1.pointer, |
| ); |
| return NSComparisonResult.fromValue($ret); |
| } |
| |
| /// compare:options: |
| NSComparisonResult compare$1( |
| NSString string, { |
| required DartNSUInteger options, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = string.ref; |
| final $ret = _objc_msgSend_pg1fnv( |
| _$$ref.pointer, |
| _sel_compare_options_, |
| _$$ref$1.pointer, |
| options, |
| ); |
| return NSComparisonResult.fromValue($ret); |
| } |
| |
| /// compare:options:range: |
| NSComparisonResult compare$2( |
| NSString string, { |
| required DartNSUInteger options, |
| required NSRange range, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = string.ref; |
| final $ret = _objc_msgSend_xrqic1( |
| _$$ref.pointer, |
| _sel_compare_options_range_, |
| _$$ref$1.pointer, |
| options, |
| range, |
| ); |
| return NSComparisonResult.fromValue($ret); |
| } |
| |
| /// compare:options:range:locale: |
| NSComparisonResult compare$3( |
| NSString string, { |
| required DartNSUInteger options, |
| required NSRange range, |
| objc.ObjCObject? locale, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = string.ref; |
| final _$$ref$2 = locale?.ref; |
| final $ret = _objc_msgSend_1895u4n( |
| _$$ref.pointer, |
| _sel_compare_options_range_locale_, |
| _$$ref$1.pointer, |
| options, |
| range, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSComparisonResult.fromValue($ret); |
| } |
| |
| /// componentsSeparatedByCharactersInSet: |
| NSArray componentsSeparatedByCharactersInSet(NSCharacterSet separator) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = separator.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.componentsSeparatedByCharactersInSet:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_componentsSeparatedByCharactersInSet_, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// componentsSeparatedByString: |
| NSArray componentsSeparatedByString(NSString separator) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = separator.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_componentsSeparatedByString_, |
| _$$ref$1.pointer, |
| ); |
| return NSArray.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// containsString: |
| bool containsString(NSString str) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = str.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.containsString:', |
| iOS: (false, (8, 0, 0)), |
| macOS: (false, (10, 10, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_containsString_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// dataUsingEncoding: |
| NSData? dataUsingEncoding(DartNSUInteger encoding) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.pointer, |
| _sel_dataUsingEncoding_, |
| encoding, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// dataUsingEncoding:allowLossyConversion: |
| NSData? dataUsingEncoding$1( |
| DartNSUInteger encoding, { |
| required bool allowLossyConversion, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_hiwitm( |
| _$$ref.pointer, |
| _sel_dataUsingEncoding_allowLossyConversion_, |
| encoding, |
| allowLossyConversion, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// decomposedStringWithCanonicalMapping |
| NSString get decomposedStringWithCanonicalMapping { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_decomposedStringWithCanonicalMapping, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// decomposedStringWithCompatibilityMapping |
| NSString get decomposedStringWithCompatibilityMapping { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_decomposedStringWithCompatibilityMapping, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// description |
| NSString get description$1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_description); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// doubleValue |
| double get doubleValue { |
| final _$$ref = object$.ref; |
| return objc.useMsgSendVariants |
| ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_doubleValue) |
| : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_doubleValue); |
| } |
| |
| /// enumerateLinesUsingBlock: |
| void enumerateLinesUsingBlock( |
| objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)> block, |
| ) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = block.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.enumerateLinesUsingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_f167m6( |
| _$$ref.pointer, |
| _sel_enumerateLinesUsingBlock_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// enumerateSubstringsInRange:options:usingBlock: |
| void enumerateSubstringsInRange( |
| NSRange range, { |
| required DartNSUInteger options, |
| required objc.ObjCBlock< |
| ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| usingBlock, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = usingBlock.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.enumerateSubstringsInRange:options:usingBlock:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| _objc_msgSend_14ew8zr( |
| _$$ref.pointer, |
| _sel_enumerateSubstringsInRange_options_usingBlock_, |
| range, |
| options, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// fastestEncoding |
| DartNSUInteger get fastestEncoding { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_fastestEncoding); |
| } |
| |
| /// floatValue |
| double get floatValue { |
| final _$$ref = object$.ref; |
| return objc.useMsgSendVariants |
| ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_floatValue) |
| : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_floatValue); |
| } |
| |
| /// getBytes:maxLength:usedLength:encoding:options:range:remainingRange: |
| bool getBytes( |
| ffi.Pointer<ffi.Void> buffer, { |
| required DartNSUInteger maxLength, |
| required ffi.Pointer<NSUInteger> usedLength, |
| required DartNSUInteger encoding, |
| required DartNSUInteger options, |
| required NSRange range, |
| required ffi.Pointer<NSRange> remainingRange, |
| }) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_i30zh3( |
| _$$ref.pointer, |
| _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_, |
| buffer, |
| maxLength, |
| usedLength, |
| encoding, |
| options, |
| range, |
| remainingRange, |
| ); |
| } |
| |
| /// getCString:maxLength:encoding: |
| bool getCString( |
| ffi.Pointer<ffi.Char> buffer, { |
| required DartNSUInteger maxLength, |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1lv8yz3( |
| _$$ref.pointer, |
| _sel_getCString_maxLength_encoding_, |
| buffer, |
| maxLength, |
| encoding, |
| ); |
| } |
| |
| /// getCharacters:range: |
| void getCharacters( |
| ffi.Pointer<ffi.UnsignedShort> buffer, { |
| required NSRange range, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_898fog( |
| _$$ref.pointer, |
| _sel_getCharacters_range_, |
| buffer, |
| range, |
| ); |
| } |
| |
| /// getLineStart:end:contentsEnd:forRange: |
| void getLineStart( |
| ffi.Pointer<NSUInteger> startPtr, { |
| required ffi.Pointer<NSUInteger> end, |
| required ffi.Pointer<NSUInteger> contentsEnd, |
| required NSRange forRange, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_ourvf2( |
| _$$ref.pointer, |
| _sel_getLineStart_end_contentsEnd_forRange_, |
| startPtr, |
| end, |
| contentsEnd, |
| forRange, |
| ); |
| } |
| |
| /// getParagraphStart:end:contentsEnd:forRange: |
| void getParagraphStart( |
| ffi.Pointer<NSUInteger> startPtr, { |
| required ffi.Pointer<NSUInteger> end, |
| required ffi.Pointer<NSUInteger> contentsEnd, |
| required NSRange forRange, |
| }) { |
| final _$$ref = object$.ref; |
| _objc_msgSend_ourvf2( |
| _$$ref.pointer, |
| _sel_getParagraphStart_end_contentsEnd_forRange_, |
| startPtr, |
| end, |
| contentsEnd, |
| forRange, |
| ); |
| } |
| |
| /// hasPrefix: |
| bool hasPrefix(NSString str) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = str.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_hasPrefix_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// hasSuffix: |
| bool hasSuffix(NSString str) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = str.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_hasSuffix_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// hash |
| DartNSUInteger get hash$1 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_hash); |
| } |
| |
| /// intValue |
| int get intValue { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_intValue); |
| } |
| |
| /// integerValue |
| int get integerValue { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.integerValue', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_integerValue); |
| } |
| |
| /// isEqualToString: |
| bool isEqualToString(NSString aString) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aString.ref; |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_isEqualToString_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// lengthOfBytesUsingEncoding: |
| DartNSUInteger lengthOfBytesUsingEncoding(DartNSUInteger enc) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_12py2ux( |
| _$$ref.pointer, |
| _sel_lengthOfBytesUsingEncoding_, |
| enc, |
| ); |
| } |
| |
| /// lineRangeForRange: |
| NSRange lineRangeForRange(NSRange range) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_uimyc7(_$$ref.pointer, _sel_lineRangeForRange_, range); |
| } |
| |
| /// localizedCapitalizedString |
| NSString get localizedCapitalizedString { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.localizedCapitalizedString', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_localizedCapitalizedString, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedCaseInsensitiveCompare: |
| NSComparisonResult localizedCaseInsensitiveCompare(NSString string) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = string.ref; |
| final $ret = _objc_msgSend_1ym6zyw( |
| _$$ref.pointer, |
| _sel_localizedCaseInsensitiveCompare_, |
| _$$ref$1.pointer, |
| ); |
| return NSComparisonResult.fromValue($ret); |
| } |
| |
| /// localizedCaseInsensitiveContainsString: |
| bool localizedCaseInsensitiveContainsString(NSString str) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = str.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.localizedCaseInsensitiveContainsString:', |
| iOS: (false, (8, 0, 0)), |
| macOS: (false, (10, 10, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_localizedCaseInsensitiveContainsString_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// localizedCompare: |
| NSComparisonResult localizedCompare(NSString string) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = string.ref; |
| final $ret = _objc_msgSend_1ym6zyw( |
| _$$ref.pointer, |
| _sel_localizedCompare_, |
| _$$ref$1.pointer, |
| ); |
| return NSComparisonResult.fromValue($ret); |
| } |
| |
| /// localizedLowercaseString |
| NSString get localizedLowercaseString { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.localizedLowercaseString', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_localizedLowercaseString, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// localizedStandardCompare: |
| NSComparisonResult localizedStandardCompare(NSString string) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = string.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.localizedStandardCompare:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_1ym6zyw( |
| _$$ref.pointer, |
| _sel_localizedStandardCompare_, |
| _$$ref$1.pointer, |
| ); |
| return NSComparisonResult.fromValue($ret); |
| } |
| |
| /// localizedStandardContainsString: |
| bool localizedStandardContainsString(NSString str) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = str.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.localizedStandardContainsString:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| return _objc_msgSend_19nvye5( |
| _$$ref.pointer, |
| _sel_localizedStandardContainsString_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// localizedStandardRangeOfString: |
| NSRange localizedStandardRangeOfString(NSString str) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = str.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.localizedStandardRangeOfString:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| return _objc_msgSend_182fzon( |
| _$$ref.pointer, |
| _sel_localizedStandardRangeOfString_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// localizedUppercaseString |
| NSString get localizedUppercaseString { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.localizedUppercaseString', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_localizedUppercaseString, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// longLongValue |
| int get longLongValue { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.longLongValue', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_longLongValue); |
| } |
| |
| /// lowercaseString |
| NSString get lowercaseString { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lowercaseString); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// lowercaseStringWithLocale: |
| NSString lowercaseStringWithLocale(NSLocale? locale) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = locale?.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.lowercaseStringWithLocale:', |
| iOS: (false, (6, 0, 0)), |
| macOS: (false, (10, 8, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_lowercaseStringWithLocale_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// maximumLengthOfBytesUsingEncoding: |
| DartNSUInteger maximumLengthOfBytesUsingEncoding(DartNSUInteger enc) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_12py2ux( |
| _$$ref.pointer, |
| _sel_maximumLengthOfBytesUsingEncoding_, |
| enc, |
| ); |
| } |
| |
| /// paragraphRangeForRange: |
| NSRange paragraphRangeForRange(NSRange range) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_uimyc7( |
| _$$ref.pointer, |
| _sel_paragraphRangeForRange_, |
| range, |
| ); |
| } |
| |
| /// precomposedStringWithCanonicalMapping |
| NSString get precomposedStringWithCanonicalMapping { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_precomposedStringWithCanonicalMapping, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// precomposedStringWithCompatibilityMapping |
| NSString get precomposedStringWithCompatibilityMapping { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.pointer, |
| _sel_precomposedStringWithCompatibilityMapping, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// rangeOfCharacterFromSet: |
| NSRange rangeOfCharacterFromSet(NSCharacterSet searchSet) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = searchSet.ref; |
| return _objc_msgSend_182fzon( |
| _$$ref.pointer, |
| _sel_rangeOfCharacterFromSet_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// rangeOfCharacterFromSet:options: |
| NSRange rangeOfCharacterFromSet$1( |
| NSCharacterSet searchSet, { |
| required DartNSUInteger options, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = searchSet.ref; |
| return _objc_msgSend_102xxo4( |
| _$$ref.pointer, |
| _sel_rangeOfCharacterFromSet_options_, |
| _$$ref$1.pointer, |
| options, |
| ); |
| } |
| |
| /// rangeOfCharacterFromSet:options:range: |
| NSRange rangeOfCharacterFromSet$2( |
| NSCharacterSet searchSet, { |
| required DartNSUInteger options, |
| required NSRange range, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = searchSet.ref; |
| return _objc_msgSend_1nmlvqc( |
| _$$ref.pointer, |
| _sel_rangeOfCharacterFromSet_options_range_, |
| _$$ref$1.pointer, |
| options, |
| range, |
| ); |
| } |
| |
| /// rangeOfComposedCharacterSequenceAtIndex: |
| NSRange rangeOfComposedCharacterSequenceAtIndex(DartNSUInteger index) { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_d3i1uy( |
| _$$ref.pointer, |
| _sel_rangeOfComposedCharacterSequenceAtIndex_, |
| index, |
| ); |
| } |
| |
| /// rangeOfComposedCharacterSequencesForRange: |
| NSRange rangeOfComposedCharacterSequencesForRange(NSRange range) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.rangeOfComposedCharacterSequencesForRange:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| return _objc_msgSend_uimyc7( |
| _$$ref.pointer, |
| _sel_rangeOfComposedCharacterSequencesForRange_, |
| range, |
| ); |
| } |
| |
| /// rangeOfString: |
| NSRange rangeOfString(NSString searchString) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = searchString.ref; |
| return _objc_msgSend_182fzon( |
| _$$ref.pointer, |
| _sel_rangeOfString_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// rangeOfString:options: |
| NSRange rangeOfString$1( |
| NSString searchString, { |
| required DartNSUInteger options, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = searchString.ref; |
| return _objc_msgSend_102xxo4( |
| _$$ref.pointer, |
| _sel_rangeOfString_options_, |
| _$$ref$1.pointer, |
| options, |
| ); |
| } |
| |
| /// rangeOfString:options:range: |
| NSRange rangeOfString$2( |
| NSString searchString, { |
| required DartNSUInteger options, |
| required NSRange range, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = searchString.ref; |
| return _objc_msgSend_1nmlvqc( |
| _$$ref.pointer, |
| _sel_rangeOfString_options_range_, |
| _$$ref$1.pointer, |
| options, |
| range, |
| ); |
| } |
| |
| /// rangeOfString:options:range:locale: |
| NSRange rangeOfString$3( |
| NSString searchString, { |
| required DartNSUInteger options, |
| required NSRange range, |
| NSLocale? locale, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = searchString.ref; |
| final _$$ref$2 = locale?.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.rangeOfString:options:range:locale:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| return _objc_msgSend_gg0462( |
| _$$ref.pointer, |
| _sel_rangeOfString_options_range_locale_, |
| _$$ref$1.pointer, |
| options, |
| range, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| } |
| |
| /// smallestEncoding |
| DartNSUInteger get smallestEncoding { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_smallestEncoding); |
| } |
| |
| /// stringByAppendingFormat: |
| NSString stringByAppendingFormat(NSString format) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = format.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_stringByAppendingFormat_, |
| _$$ref$1.pointer, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringByAppendingString: |
| NSString stringByAppendingString(NSString aString) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = aString.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_stringByAppendingString_, |
| _$$ref$1.pointer, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringByApplyingTransform:reverse: |
| NSString? stringByApplyingTransform( |
| NSString transform, { |
| required bool reverse, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = transform.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.stringByApplyingTransform:reverse:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.pointer, |
| _sel_stringByApplyingTransform_reverse_, |
| _$$ref$1.pointer, |
| reverse, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringByFoldingWithOptions:locale: |
| NSString stringByFoldingWithOptions( |
| DartNSUInteger options, { |
| NSLocale? locale, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = locale?.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.stringByFoldingWithOptions:locale:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_11cbyu0( |
| _$$ref.pointer, |
| _sel_stringByFoldingWithOptions_locale_, |
| options, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringByPaddingToLength:withString:startingAtIndex: |
| NSString stringByPaddingToLength( |
| DartNSUInteger newLength, { |
| required NSString withString, |
| required DartNSUInteger startingAtIndex, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = withString.ref; |
| final $ret = _objc_msgSend_1tfztp( |
| _$$ref.pointer, |
| _sel_stringByPaddingToLength_withString_startingAtIndex_, |
| newLength, |
| _$$ref$1.pointer, |
| startingAtIndex, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringByReplacingCharactersInRange:withString: |
| NSString stringByReplacingCharactersInRange( |
| NSRange range, { |
| required NSString withString, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = withString.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.stringByReplacingCharactersInRange:withString:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_bstjp9( |
| _$$ref.pointer, |
| _sel_stringByReplacingCharactersInRange_withString_, |
| range, |
| _$$ref$1.pointer, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringByReplacingOccurrencesOfString:withString: |
| NSString stringByReplacingOccurrencesOfString( |
| NSString target, { |
| required NSString withString, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = target.ref; |
| final _$$ref$2 = withString.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.stringByReplacingOccurrencesOfString:withString:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.pointer, |
| _sel_stringByReplacingOccurrencesOfString_withString_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringByReplacingOccurrencesOfString:withString:options:range: |
| NSString stringByReplacingOccurrencesOfString$1( |
| NSString target, { |
| required NSString withString, |
| required DartNSUInteger options, |
| required NSRange range, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = target.ref; |
| final _$$ref$2 = withString.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.stringByReplacingOccurrencesOfString:withString:options:range:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_2u4jm6( |
| _$$ref.pointer, |
| _sel_stringByReplacingOccurrencesOfString_withString_options_range_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| options, |
| range, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// stringByTrimmingCharactersInSet: |
| NSString stringByTrimmingCharactersInSet(NSCharacterSet set) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = set.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_stringByTrimmingCharactersInSet_, |
| _$$ref$1.pointer, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// substringFromIndex: |
| NSString substringFromIndex(DartNSUInteger from) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.pointer, |
| _sel_substringFromIndex_, |
| from, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// substringToIndex: |
| NSString substringToIndex(DartNSUInteger to) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_14hpxwa( |
| _$$ref.pointer, |
| _sel_substringToIndex_, |
| to, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// substringWithRange: |
| NSString substringWithRange(NSRange range) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_1k1o1s7( |
| _$$ref.pointer, |
| _sel_substringWithRange_, |
| range, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// uppercaseString |
| NSString get uppercaseString { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_uppercaseString); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// uppercaseStringWithLocale: |
| NSString uppercaseStringWithLocale(NSLocale? locale) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = locale?.ref; |
| objc.checkOsVersionInternal( |
| 'NSString.uppercaseStringWithLocale:', |
| iOS: (false, (6, 0, 0)), |
| macOS: (false, (10, 8, 0)), |
| ); |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.pointer, |
| _sel_uppercaseStringWithLocale_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// writeToFile:atomically:encoding:error: |
| bool writeToFile( |
| NSString path, { |
| required bool atomically, |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_dv3z6r( |
| _$$ref.pointer, |
| _sel_writeToFile_atomically_encoding_error_, |
| _$$ref$1.pointer, |
| atomically, |
| encoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret; |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// writeToURL:atomically:encoding:error: |
| bool writeToURL( |
| NSURL url, { |
| required bool atomically, |
| required DartNSUInteger encoding, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = url.ref; |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_dv3z6r( |
| _$$ref.pointer, |
| _sel_writeToURL_atomically_encoding_error_, |
| _$$ref$1.pointer, |
| atomically, |
| encoding, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret; |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// availableStringEncodings |
| static ffi.Pointer<NSUInteger> getAvailableStringEncodings() { |
| return _objc_msgSend_1h2q612( |
| _class_NSString, |
| _sel_availableStringEncodings, |
| ); |
| } |
| |
| /// defaultCStringEncoding |
| static DartNSUInteger getDefaultCStringEncoding() { |
| return _objc_msgSend_xw2lbc(_class_NSString, _sel_defaultCStringEncoding); |
| } |
| |
| /// localizedNameOfStringEncoding: |
| static NSString localizedNameOfStringEncoding(DartNSUInteger encoding) { |
| final $ret = _objc_msgSend_14hpxwa( |
| _class_NSString, |
| _sel_localizedNameOfStringEncoding_, |
| encoding, |
| ); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| /// NSTimer |
| extension type NSTimer._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [NSTimer] that points to the same underlying object as [other]. |
| NSTimer.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSTimer] that wraps the given raw object pointer. |
| NSTimer.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSTimer]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSTimer, |
| ); |
| |
| /// alloc |
| static NSTimer alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSTimer, _sel_alloc); |
| return NSTimer.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSTimer allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSTimer, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSTimer.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSTimer new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSTimer, _sel_new); |
| return NSTimer.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// scheduledTimerWithTimeInterval:invocation:repeats: |
| static NSTimer scheduledTimerWithTimeInterval( |
| double ti, { |
| required NSInvocation invocation, |
| required bool repeats, |
| }) { |
| final _$$ref = invocation.ref; |
| final $ret = _objc_msgSend_r49ehc( |
| _class_NSTimer, |
| _sel_scheduledTimerWithTimeInterval_invocation_repeats_, |
| ti, |
| _$$ref.pointer, |
| repeats, |
| ); |
| return NSTimer.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// scheduledTimerWithTimeInterval:repeats:block: |
| static NSTimer scheduledTimerWithTimeInterval$1( |
| double interval, { |
| required bool repeats, |
| required objc.ObjCBlock<ffi.Void Function(NSTimer)> block, |
| }) { |
| final _$$ref = block.ref; |
| objc.checkOsVersionInternal( |
| 'NSTimer.scheduledTimerWithTimeInterval:repeats:block:', |
| iOS: (false, (10, 0, 0)), |
| macOS: (false, (10, 12, 0)), |
| ); |
| final $ret = _objc_msgSend_9a64f1( |
| _class_NSTimer, |
| _sel_scheduledTimerWithTimeInterval_repeats_block_, |
| interval, |
| repeats, |
| _$$ref.pointer, |
| ); |
| return NSTimer.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// scheduledTimerWithTimeInterval:target:selector:userInfo:repeats: |
| static NSTimer scheduledTimerWithTimeInterval$2( |
| double ti, { |
| required objc.ObjCObject target, |
| required ffi.Pointer<objc.ObjCSelector> selector, |
| objc.ObjCObject? userInfo, |
| required bool repeats, |
| }) { |
| final _$$ref = target.ref; |
| final _$$ref$1 = userInfo?.ref; |
| final $ret = _objc_msgSend_ot6jdx( |
| _class_NSTimer, |
| _sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_, |
| ti, |
| _$$ref.pointer, |
| selector, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| repeats, |
| ); |
| return NSTimer.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// timerWithTimeInterval:invocation:repeats: |
| static NSTimer timerWithTimeInterval( |
| double ti, { |
| required NSInvocation invocation, |
| required bool repeats, |
| }) { |
| final _$$ref = invocation.ref; |
| final $ret = _objc_msgSend_r49ehc( |
| _class_NSTimer, |
| _sel_timerWithTimeInterval_invocation_repeats_, |
| ti, |
| _$$ref.pointer, |
| repeats, |
| ); |
| return NSTimer.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// timerWithTimeInterval:repeats:block: |
| static NSTimer timerWithTimeInterval$1( |
| double interval, { |
| required bool repeats, |
| required objc.ObjCBlock<ffi.Void Function(NSTimer)> block, |
| }) { |
| final _$$ref = block.ref; |
| objc.checkOsVersionInternal( |
| 'NSTimer.timerWithTimeInterval:repeats:block:', |
| iOS: (false, (10, 0, 0)), |
| macOS: (false, (10, 12, 0)), |
| ); |
| final $ret = _objc_msgSend_9a64f1( |
| _class_NSTimer, |
| _sel_timerWithTimeInterval_repeats_block_, |
| interval, |
| repeats, |
| _$$ref.pointer, |
| ); |
| return NSTimer.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// timerWithTimeInterval:target:selector:userInfo:repeats: |
| static NSTimer timerWithTimeInterval$2( |
| double ti, { |
| required objc.ObjCObject target, |
| required ffi.Pointer<objc.ObjCSelector> selector, |
| objc.ObjCObject? userInfo, |
| required bool repeats, |
| }) { |
| final _$$ref = target.ref; |
| final _$$ref$1 = userInfo?.ref; |
| final $ret = _objc_msgSend_ot6jdx( |
| _class_NSTimer, |
| _sel_timerWithTimeInterval_target_selector_userInfo_repeats_, |
| ti, |
| _$$ref.pointer, |
| selector, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| repeats, |
| ); |
| return NSTimer.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// Returns a new instance of NSTimer constructed with the default `new` method. |
| NSTimer() : this.as(new$().object$); |
| } |
| |
| extension NSTimer$Methods on NSTimer { |
| /// fire |
| void fire() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_fire); |
| } |
| |
| /// fireDate |
| NSDate get fireDate { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fireDate); |
| return NSDate.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// init |
| NSTimer init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSTimer.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSTimer.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithFireDate:interval:repeats:block: |
| NSTimer initWithFireDate( |
| NSDate date, { |
| required double interval, |
| required bool repeats, |
| required objc.ObjCBlock<ffi.Void Function(NSTimer)> block, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = date.ref; |
| final _$$ref$2 = block.ref; |
| objc.checkOsVersionInternal( |
| 'NSTimer.initWithFireDate:interval:repeats:block:', |
| iOS: (false, (10, 0, 0)), |
| macOS: (false, (10, 12, 0)), |
| ); |
| final $ret = _objc_msgSend_1s0rfm3( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithFireDate_interval_repeats_block_, |
| _$$ref$1.pointer, |
| interval, |
| repeats, |
| _$$ref$2.pointer, |
| ); |
| return NSTimer.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithFireDate:interval:target:selector:userInfo:repeats: |
| NSTimer initWithFireDate$1( |
| NSDate date, { |
| required double interval, |
| required objc.ObjCObject target, |
| required ffi.Pointer<objc.ObjCSelector> selector, |
| objc.ObjCObject? userInfo, |
| required bool repeats, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = date.ref; |
| final _$$ref$2 = target.ref; |
| final _$$ref$3 = userInfo?.ref; |
| final $ret = _objc_msgSend_14wwtbv( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithFireDate_interval_target_selector_userInfo_repeats_, |
| _$$ref$1.pointer, |
| interval, |
| _$$ref$2.pointer, |
| selector, |
| _$$ref$3?.pointer ?? ffi.nullptr, |
| repeats, |
| ); |
| return NSTimer.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// invalidate |
| void invalidate() { |
| final _$$ref = object$.ref; |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_invalidate); |
| } |
| |
| /// isValid |
| bool get isValid { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isValid); |
| } |
| |
| /// setFireDate: |
| set fireDate(NSDate value) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value.ref; |
| _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setFireDate_, _$$ref$1.pointer); |
| } |
| |
| /// setTolerance: |
| set tolerance(double value) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSTimer.setTolerance:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setTolerance_, value); |
| } |
| |
| /// timeInterval |
| double get timeInterval { |
| final _$$ref = object$.ref; |
| return objc.useMsgSendVariants |
| ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_timeInterval) |
| : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_timeInterval); |
| } |
| |
| /// tolerance |
| double get tolerance { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSTimer.tolerance', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| return objc.useMsgSendVariants |
| ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_tolerance) |
| : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_tolerance); |
| } |
| |
| /// userInfo |
| objc.ObjCObject? get userInfo { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_userInfo); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| } |
| |
| typedef NSUInteger = ffi.UnsignedLong; |
| typedef DartNSUInteger = int; |
| |
| /// NSURL |
| extension type NSURL._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject, NSSecureCoding, NSCopying { |
| /// Constructs a [NSURL] that points to the same underlying object as [other]. |
| NSURL.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSURL] that wraps the given raw object pointer. |
| NSURL.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSURL]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSURL, |
| ); |
| |
| /// URLByResolvingAliasFileAtURL:options:error: |
| static NSURL? URLByResolvingAliasFileAtURL( |
| NSURL url, { |
| required DartNSUInteger options, |
| }) { |
| final _$$ref = url.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.URLByResolvingAliasFileAtURL:options:error:', |
| iOS: (false, (8, 0, 0)), |
| macOS: (false, (10, 10, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1tiux5i( |
| _class_NSURL, |
| _sel_URLByResolvingAliasFileAtURL_options_error_, |
| _$$ref.pointer, |
| options, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error: |
| static NSURL? URLByResolvingBookmarkData( |
| NSData bookmarkData, { |
| required DartNSUInteger options, |
| NSURL? relativeToURL, |
| required ffi.Pointer<ffi.Bool> bookmarkDataIsStale, |
| }) { |
| final _$$ref = bookmarkData.ref; |
| final _$$ref$1 = relativeToURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1ceswyu( |
| _class_NSURL, |
| _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, |
| _$$ref.pointer, |
| options, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| bookmarkDataIsStale, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// URLWithDataRepresentation:relativeToURL: |
| static NSURL URLWithDataRepresentation(NSData data, {NSURL? relativeToURL}) { |
| final _$$ref = data.ref; |
| final _$$ref$1 = relativeToURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.URLWithDataRepresentation:relativeToURL:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _class_NSURL, |
| _sel_URLWithDataRepresentation_relativeToURL_, |
| _$$ref.pointer, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// URLWithString: |
| static NSURL? URLWithString(NSString URLString) { |
| final _$$ref = URLString.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSURL, |
| _sel_URLWithString_, |
| _$$ref.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// URLWithString:encodingInvalidCharacters: |
| /// |
| /// iOS: introduced 17.0.0 |
| /// macOS: introduced 14.0.0 |
| static NSURL? URLWithString$1( |
| NSString URLString, { |
| required bool encodingInvalidCharacters, |
| }) { |
| final _$$ref = URLString.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.URLWithString:encodingInvalidCharacters:', |
| iOS: (false, (17, 0, 0)), |
| macOS: (false, (14, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _class_NSURL, |
| _sel_URLWithString_encodingInvalidCharacters_, |
| _$$ref.pointer, |
| encodingInvalidCharacters, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// URLWithString:relativeToURL: |
| static NSURL? URLWithString$2(NSString URLString, {NSURL? relativeToURL}) { |
| final _$$ref = URLString.ref; |
| final _$$ref$1 = relativeToURL?.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _class_NSURL, |
| _sel_URLWithString_relativeToURL_, |
| _$$ref.pointer, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// absoluteURLWithDataRepresentation:relativeToURL: |
| static NSURL absoluteURLWithDataRepresentation( |
| NSData data, { |
| NSURL? relativeToURL, |
| }) { |
| final _$$ref = data.ref; |
| final _$$ref$1 = relativeToURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.absoluteURLWithDataRepresentation:relativeToURL:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _class_NSURL, |
| _sel_absoluteURLWithDataRepresentation_relativeToURL_, |
| _$$ref.pointer, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// alloc |
| static NSURL alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSURL, _sel_alloc); |
| return NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSURL allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428(_class_NSURL, _sel_allocWithZone_, zone); |
| return NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// bookmarkDataWithContentsOfURL:error: |
| static NSData? bookmarkDataWithContentsOfURL(NSURL bookmarkFileURL) { |
| final _$$ref = bookmarkFileURL.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.bookmarkDataWithContentsOfURL:error:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1lhpu4m( |
| _class_NSURL, |
| _sel_bookmarkDataWithContentsOfURL_error_, |
| _$$ref.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// fileURLWithFileSystemRepresentation:isDirectory:relativeToURL: |
| static NSURL fileURLWithFileSystemRepresentation( |
| ffi.Pointer<ffi.Char> path, { |
| required bool isDirectory, |
| NSURL? relativeToURL, |
| }) { |
| final _$$ref = relativeToURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_1n40f6p( |
| _class_NSURL, |
| _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, |
| path, |
| isDirectory, |
| _$$ref?.pointer ?? ffi.nullptr, |
| ); |
| return NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// fileURLWithPath: |
| static NSURL fileURLWithPath(NSString path) { |
| final _$$ref = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _class_NSURL, |
| _sel_fileURLWithPath_, |
| _$$ref.pointer, |
| ); |
| return NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// fileURLWithPath:isDirectory: |
| static NSURL fileURLWithPath$1(NSString path, {required bool isDirectory}) { |
| final _$$ref = path.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.fileURLWithPath:isDirectory:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _class_NSURL, |
| _sel_fileURLWithPath_isDirectory_, |
| _$$ref.pointer, |
| isDirectory, |
| ); |
| return NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// fileURLWithPath:isDirectory:relativeToURL: |
| static NSURL fileURLWithPath$2( |
| NSString path, { |
| required bool isDirectory, |
| NSURL? relativeToURL, |
| }) { |
| final _$$ref = path.ref; |
| final _$$ref$1 = relativeToURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.fileURLWithPath:isDirectory:relativeToURL:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_1ged0jd( |
| _class_NSURL, |
| _sel_fileURLWithPath_isDirectory_relativeToURL_, |
| _$$ref.pointer, |
| isDirectory, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// fileURLWithPath:relativeToURL: |
| static NSURL fileURLWithPath$3(NSString path, {NSURL? relativeToURL}) { |
| final _$$ref = path.ref; |
| final _$$ref$1 = relativeToURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.fileURLWithPath:relativeToURL:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _class_NSURL, |
| _sel_fileURLWithPath_relativeToURL_, |
| _$$ref.pointer, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// new |
| static NSURL new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSURL, _sel_new); |
| return NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// resourceValuesForKeys:fromBookmarkData: |
| static NSDictionary? resourceValuesForKeys$1( |
| NSArray keys, { |
| required NSData fromBookmarkData, |
| }) { |
| final _$$ref = keys.ref; |
| final _$$ref$1 = fromBookmarkData.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.resourceValuesForKeys:fromBookmarkData:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _class_NSURL, |
| _sel_resourceValuesForKeys_fromBookmarkData_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSURL, _sel_supportsSecureCoding); |
| } |
| |
| /// writeBookmarkData:toURL:options:error: |
| static bool writeBookmarkData( |
| NSData bookmarkData, { |
| required NSURL toURL, |
| required DartNSUInteger options, |
| }) { |
| final _$$ref = bookmarkData.ref; |
| final _$$ref$1 = toURL.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.writeBookmarkData:toURL:options:error:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1vxoo9h( |
| _class_NSURL, |
| _sel_writeBookmarkData_toURL_options_error_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| options, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret; |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// Returns a new instance of NSURL constructed with the default `new` method. |
| NSURL() : this.as(new$().object$); |
| } |
| |
| extension NSURL$Methods on NSURL { |
| /// absoluteString |
| NSString? get absoluteString { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_absoluteString); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// absoluteURL |
| NSURL? get absoluteURL { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_absoluteURL); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// baseURL |
| NSURL? get baseURL { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_baseURL); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error: |
| NSData? bookmarkDataWithOptions( |
| DartNSUInteger options, { |
| NSArray? includingResourceValuesForKeys, |
| NSURL? relativeToURL, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = includingResourceValuesForKeys?.ref; |
| final _$$ref$2 = relativeToURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1wt9a7r( |
| _$$ref.pointer, |
| _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_, |
| options, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// dataRepresentation |
| NSData get dataRepresentation { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.dataRepresentation', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_dataRepresentation); |
| return NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// filePathURL |
| NSURL? get filePathURL { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.filePathURL', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_filePathURL); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// fileReferenceURL |
| NSURL? fileReferenceURL() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.fileReferenceURL', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileReferenceURL); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// fileSystemRepresentation |
| ffi.Pointer<ffi.Char> get fileSystemRepresentation { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.fileSystemRepresentation', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_fileSystemRepresentation); |
| } |
| |
| /// fragment |
| NSString? get fragment { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fragment); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// getFileSystemRepresentation:maxLength: |
| bool getFileSystemRepresentation( |
| ffi.Pointer<ffi.Char> buffer, { |
| required DartNSUInteger maxLength, |
| }) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.getFileSystemRepresentation:maxLength:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| return _objc_msgSend_8cymbm( |
| _$$ref.pointer, |
| _sel_getFileSystemRepresentation_maxLength_, |
| buffer, |
| maxLength, |
| ); |
| } |
| |
| /// getResourceValue:forKey:error: |
| bool getResourceValue( |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> value, { |
| required NSString forKey, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = forKey.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.getResourceValue:forKey:error:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1j9bhml( |
| _$$ref.pointer, |
| _sel_getResourceValue_forKey_error_, |
| value, |
| _$$ref$1.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret; |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// hasDirectoryPath |
| bool get hasDirectoryPath { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.hasDirectoryPath', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_hasDirectoryPath); |
| } |
| |
| /// host |
| NSString? get host { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_host); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// init |
| NSURL init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initAbsoluteURLWithDataRepresentation:relativeToURL: |
| NSURL initAbsoluteURLWithDataRepresentation( |
| NSData data, { |
| NSURL? relativeToURL, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = data.ref; |
| final _$$ref$2 = relativeToURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.initAbsoluteURLWithDataRepresentation:relativeToURL:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error: |
| NSURL? initByResolvingBookmarkData( |
| NSData bookmarkData, { |
| required DartNSUInteger options, |
| NSURL? relativeToURL, |
| required ffi.Pointer<ffi.Bool> bookmarkDataIsStale, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = bookmarkData.ref; |
| final _$$ref$2 = relativeToURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1ceswyu( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, |
| _$$ref$1.pointer, |
| options, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| bookmarkDataIsStale, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: false, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL: |
| NSURL initFileURLWithFileSystemRepresentation( |
| ffi.Pointer<ffi.Char> path, { |
| required bool isDirectory, |
| NSURL? relativeToURL, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = relativeToURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| final $ret = _objc_msgSend_1n40f6p( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, |
| path, |
| isDirectory, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| return NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initFileURLWithPath: |
| NSURL initFileURLWithPath(NSString path) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initFileURLWithPath_, |
| _$$ref$1.pointer, |
| ); |
| return NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initFileURLWithPath:isDirectory: |
| NSURL initFileURLWithPath$1(NSString path, {required bool isDirectory}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.initFileURLWithPath:isDirectory:', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 5, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initFileURLWithPath_isDirectory_, |
| _$$ref$1.pointer, |
| isDirectory, |
| ); |
| return NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initFileURLWithPath:isDirectory:relativeToURL: |
| NSURL initFileURLWithPath$2( |
| NSString path, { |
| required bool isDirectory, |
| NSURL? relativeToURL, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final _$$ref$2 = relativeToURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.initFileURLWithPath:isDirectory:relativeToURL:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_1ged0jd( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initFileURLWithPath_isDirectory_relativeToURL_, |
| _$$ref$1.pointer, |
| isDirectory, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initFileURLWithPath:relativeToURL: |
| NSURL initFileURLWithPath$3(NSString path, {NSURL? relativeToURL}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = path.ref; |
| final _$$ref$2 = relativeToURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.initFileURLWithPath:relativeToURL:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initFileURLWithPath_relativeToURL_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSURL? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithDataRepresentation:relativeToURL: |
| NSURL initWithDataRepresentation(NSData data, {NSURL? relativeToURL}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = data.ref; |
| final _$$ref$2 = relativeToURL?.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.initWithDataRepresentation:relativeToURL:', |
| iOS: (false, (9, 0, 0)), |
| macOS: (false, (10, 11, 0)), |
| ); |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithDataRepresentation_relativeToURL_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithString: |
| NSURL? initWithString(NSString URLString) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = URLString.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithString_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithString:encodingInvalidCharacters: |
| /// |
| /// iOS: introduced 17.0.0 |
| /// macOS: introduced 14.0.0 |
| NSURL? initWithString$1( |
| NSString URLString, { |
| required bool encodingInvalidCharacters, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = URLString.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.initWithString:encodingInvalidCharacters:', |
| iOS: (false, (17, 0, 0)), |
| macOS: (false, (14, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_17amj0z( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithString_encodingInvalidCharacters_, |
| _$$ref$1.pointer, |
| encodingInvalidCharacters, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithString:relativeToURL: |
| NSURL? initWithString$2(NSString URLString, {NSURL? relativeToURL}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = URLString.ref; |
| final _$$ref$2 = relativeToURL?.ref; |
| final $ret = _objc_msgSend_15qeuct( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithString_relativeToURL_, |
| _$$ref$1.pointer, |
| _$$ref$2?.pointer ?? ffi.nullptr, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// isFileReferenceURL |
| bool isFileReferenceURL() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.isFileReferenceURL', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isFileReferenceURL); |
| } |
| |
| /// isFileURL |
| bool get isFileURL { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_isFileURL); |
| } |
| |
| /// iOS: introduced 2.0.0, deprecated 13.0.0 |
| /// macOS: introduced 10.2.0, deprecated 10.15.0 |
| @Deprecated( |
| 'The parameterString method is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, parameterString will always return nil, and the path method will return the complete path including the semicolon separator and params component if the URL string contains them.', |
| ) |
| NSString? get parameterString { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.parameterString', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 2, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_parameterString); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// password |
| NSString? get password { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_password); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// path |
| NSString? get path { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_path); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// port |
| NSNumber? get port { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_port); |
| return $ret.address == 0 |
| ? null |
| : NSNumber.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// query |
| NSString? get query { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_query); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// relativePath |
| NSString? get relativePath { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_relativePath); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// relativeString |
| NSString get relativeString { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_relativeString); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// removeAllCachedResourceValues |
| void removeAllCachedResourceValues() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.removeAllCachedResourceValues', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_removeAllCachedResourceValues); |
| } |
| |
| /// removeCachedResourceValueForKey: |
| void removeCachedResourceValueForKey(NSString key) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = key.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.removeCachedResourceValueForKey:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_removeCachedResourceValueForKey_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// resourceSpecifier |
| NSString? get resourceSpecifier { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_resourceSpecifier); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// resourceValuesForKeys:error: |
| NSDictionary? resourceValuesForKeys(NSArray keys) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = keys.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.resourceValuesForKeys:error:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_1lhpu4m( |
| _$$ref.pointer, |
| _sel_resourceValuesForKeys_error_, |
| _$$ref$1.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret.address == 0 |
| ? null |
| : NSDictionary.fromPointer($ret, retain: true, release: true); |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// scheme |
| NSString? get scheme { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_scheme); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// setResourceValue:forKey:error: |
| bool setResourceValue(objc.ObjCObject? value, {required NSString forKey}) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| final _$$ref$2 = forKey.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.setResourceValue:forKey:error:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_6z4k82( |
| _$$ref.pointer, |
| _sel_setResourceValue_forKey_error_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret; |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// setResourceValues:error: |
| bool setResourceValues(NSDictionary keyedValues) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = keyedValues.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.setResourceValues:error:', |
| iOS: (false, (4, 0, 0)), |
| macOS: (false, (10, 6, 0)), |
| ); |
| final $err = pkg_ffi.calloc<ffi.Pointer<objc.ObjCObjectImpl>>(); |
| try { |
| final $ret = _objc_msgSend_l9p60w( |
| _$$ref.pointer, |
| _sel_setResourceValues_error_, |
| _$$ref$1.pointer, |
| $err, |
| ); |
| objc.NSErrorException.checkErrorPointer($err.value); |
| return $ret; |
| } finally { |
| pkg_ffi.calloc.free($err); |
| } |
| } |
| |
| /// setTemporaryResourceValue:forKey: |
| void setTemporaryResourceValue( |
| objc.ObjCObject? value, { |
| required NSString forKey, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = value?.ref; |
| final _$$ref$2 = forKey.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.setTemporaryResourceValue:forKey:', |
| iOS: (false, (7, 0, 0)), |
| macOS: (false, (10, 9, 0)), |
| ); |
| _objc_msgSend_pfv6jd( |
| _$$ref.pointer, |
| _sel_setTemporaryResourceValue_forKey_, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| _$$ref$2.pointer, |
| ); |
| } |
| |
| /// standardizedURL |
| NSURL? get standardizedURL { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_standardizedURL); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| /// startAccessingSecurityScopedResource |
| bool startAccessingSecurityScopedResource() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.startAccessingSecurityScopedResource', |
| iOS: (false, (8, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| return _objc_msgSend_91o635( |
| _$$ref.pointer, |
| _sel_startAccessingSecurityScopedResource, |
| ); |
| } |
| |
| /// stopAccessingSecurityScopedResource |
| void stopAccessingSecurityScopedResource() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSURL.stopAccessingSecurityScopedResource', |
| iOS: (false, (8, 0, 0)), |
| macOS: (false, (10, 7, 0)), |
| ); |
| _objc_msgSend_1pl9qdv( |
| _$$ref.pointer, |
| _sel_stopAccessingSecurityScopedResource, |
| ); |
| } |
| |
| /// user |
| NSString? get user { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_user); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| sealed class NSURLBookmarkCreationOptions { |
| static const NSURLBookmarkCreationPreferFileIDResolution = 256; |
| static const NSURLBookmarkCreationMinimalBookmark = 512; |
| static const NSURLBookmarkCreationSuitableForBookmarkFile = 1024; |
| static const NSURLBookmarkCreationWithSecurityScope = 2048; |
| static const NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; |
| static const NSURLBookmarkCreationWithoutImplicitSecurityScope = 536870912; |
| } |
| |
| sealed class NSURLBookmarkResolutionOptions { |
| static const NSURLBookmarkResolutionWithoutUI = 256; |
| static const NSURLBookmarkResolutionWithoutMounting = 512; |
| static const NSURLBookmarkResolutionWithSecurityScope = 1024; |
| static const NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768; |
| } |
| |
| /// NSURLHandle |
| extension type NSURLHandle._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject { |
| /// Constructs a [NSURLHandle] that points to the same underlying object as [other]. |
| NSURLHandle.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSURLHandle] that wraps the given raw object pointer. |
| NSURLHandle.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSURLHandle]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSURLHandle, |
| ); |
| |
| /// alloc |
| static NSURLHandle alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSURLHandle, _sel_alloc); |
| return NSURLHandle.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSURLHandle allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSURLHandle, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSURLHandle.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSURLHandle new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSURLHandle, _sel_new); |
| return NSURLHandle.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of NSURLHandle constructed with the default `new` method. |
| NSURLHandle() : this.as(new$().object$); |
| } |
| |
| extension NSURLHandle$Methods on NSURLHandle { |
| /// init |
| NSURLHandle init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSURLHandle.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSURLHandle.fromPointer($ret, retain: false, release: true); |
| } |
| } |
| |
| enum NSURLHandleStatus { |
| NSURLHandleNotLoaded(0), |
| NSURLHandleLoadSucceeded(1), |
| NSURLHandleLoadInProgress(2), |
| NSURLHandleLoadFailed(3); |
| |
| final int value; |
| const NSURLHandleStatus(this.value); |
| |
| static NSURLHandleStatus fromValue(int value) => switch (value) { |
| 0 => NSURLHandleNotLoaded, |
| 1 => NSURLHandleLoadSucceeded, |
| 2 => NSURLHandleLoadInProgress, |
| 3 => NSURLHandleLoadFailed, |
| _ => throw ArgumentError('Unknown value for NSURLHandleStatus: $value'), |
| }; |
| } |
| |
| /// NSValue |
| extension type NSValue._(objc.ObjCObject object$) |
| implements objc.ObjCObject, NSObject, NSCopying, NSSecureCoding { |
| /// Constructs a [NSValue] that points to the same underlying object as [other]. |
| NSValue.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [NSValue] that wraps the given raw object pointer. |
| NSValue.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [NSValue]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_NSValue, |
| ); |
| |
| /// alloc |
| static NSValue alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_NSValue, _sel_alloc); |
| return NSValue.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static NSValue allocWithZone(ffi.Pointer<NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_NSValue, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return NSValue.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// new |
| static NSValue new$() { |
| final $ret = _objc_msgSend_151sglz(_class_NSValue, _sel_new); |
| return NSValue.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// supportsSecureCoding |
| static bool getSupportsSecureCoding() { |
| return _objc_msgSend_91o635(_class_NSValue, _sel_supportsSecureCoding); |
| } |
| |
| /// Returns a new instance of NSValue constructed with the default `new` method. |
| NSValue() : this.as(new$().object$); |
| } |
| |
| extension NSValue$Methods on NSValue { |
| /// encodeWithCoder: |
| void encodeWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| _objc_msgSend_xtuoz7( |
| _$$ref.pointer, |
| _sel_encodeWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// getValue:size: |
| void getValue(ffi.Pointer<ffi.Void> value, {required DartNSUInteger size}) { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSValue.getValue:size:', |
| iOS: (false, (11, 0, 0)), |
| macOS: (false, (10, 13, 0)), |
| ); |
| _objc_msgSend_zuf90e(_$$ref.pointer, _sel_getValue_size_, value, size); |
| } |
| |
| /// init |
| NSValue init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'NSValue.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return NSValue.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithBytes:objCType: |
| NSValue initWithBytes( |
| ffi.Pointer<ffi.Void> value, { |
| required ffi.Pointer<ffi.Char> objCType, |
| }) { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_e9mncn( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithBytes_objCType_, |
| value, |
| objCType, |
| ); |
| return NSValue.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// initWithCoder: |
| NSValue? initWithCoder(NSCoder coder) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = coder.ref; |
| final $ret = _objc_msgSend_1sotr3r( |
| _$$ref.retainAndReturnPointer(), |
| _sel_initWithCoder_, |
| _$$ref$1.pointer, |
| ); |
| return $ret.address == 0 |
| ? null |
| : NSValue.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// objCType |
| ffi.Pointer<ffi.Char> get objCType { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_objCType); |
| } |
| } |
| |
| final class NSZone extends ffi.Opaque {} |
| |
| /// Construction methods for `objc.ObjCBlock<NSArray Function(ffi.Pointer<ffi.Void>)>`. |
| abstract final class ObjCBlock_NSArray_ffiVoid { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<NSArray Function(ffi.Pointer<ffi.Void>)> fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<NSArray Function(ffi.Pointer<ffi.Void>)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<NSArray Function(ffi.Pointer<ffi.Void>)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void> arg0) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<NSArray Function(ffi.Pointer<ffi.Void>)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<NSArray Function(ffi.Pointer<ffi.Void>)> fromFunction( |
| NSArray Function(ffi.Pointer<ffi.Void>) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<NSArray Function(ffi.Pointer<ffi.Void>)>( |
| objc.newClosureBlock(_closureCallable, (ffi.Pointer<ffi.Void> arg0) { |
| final _$$ref = fn(arg0).ref; |
| return _$$ref.retainAndAutorelease(); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCObjectImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void> arg0) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>) |
| >()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCObjectImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>))( |
| arg0, |
| ); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<NSArray Function(ffi.Pointer<ffi.Void>)>`. |
| extension ObjCBlock_NSArray_ffiVoid$CallExtension |
| on objc.ObjCBlock<NSArray Function(ffi.Pointer<ffi.Void>)> { |
| NSArray call(ffi.Pointer<ffi.Void> arg0) { |
| return NSArray.fromPointer( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >()(ref.pointer, arg0), |
| retain: true, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Long Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<objc.ObjCObjectImpl>)>`. |
| abstract final class ObjCBlock_NSComparisonResult_objcObjCObjectImpl_objcObjCObjectImpl { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| fromFunction( |
| NSComparisonResult Function(objc.ObjCObject, objc.ObjCObject) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) { |
| return fn( |
| objc.ObjCObject(arg0, retain: true, release: true), |
| objc.ObjCObject(arg1, retain: true, release: true), |
| ).value; |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static int _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline, 0) |
| .cast(); |
| static int _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline, 0) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Long Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<objc.ObjCObjectImpl>)>`. |
| extension ObjCBlock_NSComparisonResult_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > { |
| NSComparisonResult call(objc.ObjCObject arg0, objc.ObjCObject arg1) { |
| final _$$ref = arg0.ref; |
| final _$$ref$1 = arg1.ref; |
| return NSComparisonResult.fromValue( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer), |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Long Function(ffi.Pointer<ffi.Void>, NSString)>`. |
| abstract final class ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Long Function(ffi.Pointer<ffi.Void>, NSString)> |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Long Function(ffi.Pointer<ffi.Void>, NSString)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Long Function(ffi.Pointer<ffi.Void>, NSString)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Long Function(ffi.Pointer<ffi.Void>, NSString)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Long Function(ffi.Pointer<ffi.Void>, NSString)> |
| fromFunction( |
| NSItemProviderRepresentationVisibility Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Long Function(ffi.Pointer<ffi.Void>, NSString)>( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) { |
| return fn( |
| arg0, |
| NSString.fromPointer(arg1, retain: true, release: true), |
| ).value; |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static int _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCObjectImpl>) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline, 0) |
| .cast(); |
| static int _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as int Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline, 0) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Long Function(ffi.Pointer<ffi.Void>, NSString)>`. |
| extension ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString$CallExtension |
| on objc.ObjCBlock<ffi.Long Function(ffi.Pointer<ffi.Void>, NSString)> { |
| NSItemProviderRepresentationVisibility call( |
| ffi.Pointer<ffi.Void> arg0, |
| NSString arg1, |
| ) { |
| final _$$ref = arg1.ref; |
| return NSItemProviderRepresentationVisibility.fromValue( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, arg0, _$$ref.pointer), |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<NSOrderedCollectionChange Function(NSOrderedCollectionChange)>`. |
| abstract final class ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| NSOrderedCollectionChange Function(NSOrderedCollectionChange) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| NSOrderedCollectionChange Function(NSOrderedCollectionChange) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| NSOrderedCollectionChange Function(NSOrderedCollectionChange) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| NSOrderedCollectionChange Function(NSOrderedCollectionChange) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| NSOrderedCollectionChange Function(NSOrderedCollectionChange) |
| > |
| fromFunction( |
| NSOrderedCollectionChange Function(NSOrderedCollectionChange) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| NSOrderedCollectionChange Function(NSOrderedCollectionChange) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) { |
| final _$$ref = fn( |
| NSOrderedCollectionChange.fromPointer( |
| arg0, |
| retain: true, |
| release: true, |
| ), |
| ).ref; |
| return _$$ref.retainAndAutorelease(); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCObjectImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCObjectImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<NSOrderedCollectionChange Function(NSOrderedCollectionChange)>`. |
| extension ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange$CallExtension |
| on |
| objc.ObjCBlock< |
| NSOrderedCollectionChange Function(NSOrderedCollectionChange) |
| > { |
| NSOrderedCollectionChange call(NSOrderedCollectionChange arg0) { |
| final _$$ref$1 = arg0.ref; |
| return NSOrderedCollectionChange.fromPointer( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, _$$ref$1.pointer), |
| retain: true, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<objc.ObjCBlock<ffi.Void Function()>? Function(NSProgress)>`. |
| abstract final class ObjCBlock_NSProgressUnpublishingHandler_NSProgress { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| objc.ObjCBlock<ffi.Void Function()>? Function(NSProgress) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock<objc.ObjCBlock<ffi.Void Function()>? Function(NSProgress)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| objc.ObjCBlock<ffi.Void Function()>? Function(NSProgress) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock<objc.ObjCBlock<ffi.Void Function()>? Function(NSProgress)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| objc.ObjCBlock<ffi.Void Function()>? Function(NSProgress) |
| > |
| fromFunction( |
| objc.ObjCBlock<ffi.Void Function()>? Function(NSProgress) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock<objc.ObjCBlock<ffi.Void Function()>? Function(NSProgress)>( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) { |
| final _$$ref = fn( |
| NSProgress.fromPointer(arg0, retain: true, release: true), |
| )?.ref; |
| return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCBlockImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCBlockImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<objc.ObjCBlock<ffi.Void Function()>? Function(NSProgress)>`. |
| extension ObjCBlock_NSProgressUnpublishingHandler_NSProgress$CallExtension |
| on |
| objc.ObjCBlock< |
| objc.ObjCBlock<ffi.Void Function()>? Function(NSProgress) |
| > { |
| objc.ObjCBlock<ffi.Void Function()>? call(NSProgress arg0) { |
| final _$$ref$1 = arg0.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, _$$ref$1.pointer) |
| .address == |
| 0 |
| ? null |
| : ObjCBlock_ffiVoid.fromPointer( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, _$$ref$1.pointer), |
| retain: true, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<NSProgress? Function(objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>)>`. |
| abstract final class ObjCBlock_NSProgress_ffiVoidNSDataNSError { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| NSProgress? Function(objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| NSProgress? Function(objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| NSProgress? Function(objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>) |
| > |
| fromFunction( |
| NSProgress? Function(objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) { |
| final _$$ref = fn( |
| ObjCBlock_ffiVoid_NSData_NSError.fromPointer( |
| arg0, |
| retain: true, |
| release: true, |
| ), |
| )?.ref; |
| return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCObjectImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCObjectImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ))(arg0); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<NSProgress? Function(objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>)>`. |
| extension ObjCBlock_NSProgress_ffiVoidNSDataNSError$CallExtension |
| on |
| objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| > { |
| NSProgress? call(objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)> arg0) { |
| final _$$ref$1 = arg0.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >()(ref.pointer, _$$ref$1.pointer) |
| .address == |
| 0 |
| ? null |
| : NSProgress.fromPointer( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >()(ref.pointer, _$$ref$1.pointer), |
| retain: true, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<NSProgress? Function(objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>)>`. |
| abstract final class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>, |
| ) |
| > |
| fromFunction( |
| NSProgress? Function( |
| objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) { |
| final _$$ref = fn( |
| ObjCBlock_ffiVoid_NSURL_bool_NSError.fromPointer( |
| arg0, |
| retain: true, |
| release: true, |
| ), |
| )?.ref; |
| return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCObjectImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCObjectImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ))(arg0); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<NSProgress? Function(objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>)>`. |
| extension ObjCBlock_NSProgress_ffiVoidNSURLboolNSError$CallExtension |
| on |
| objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>, |
| ) |
| > { |
| NSProgress? call( |
| objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)> arg0, |
| ) { |
| final _$$ref$1 = arg0.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >()(ref.pointer, _$$ref$1.pointer) |
| .address == |
| 0 |
| ? null |
| : NSProgress.fromPointer( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >()(ref.pointer, _$$ref$1.pointer), |
| retain: true, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<NSProgress? Function(ffi.Pointer<ffi.Void>, NSString, objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>)>`. |
| abstract final class ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| NSProgress? Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| NSProgress? Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| NSProgress? Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| NSProgress? Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| NSProgress? Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| > |
| fromFunction( |
| NSProgress? Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| NSProgress? Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, |
| ) { |
| final _$$ref = fn( |
| arg0, |
| NSString.fromPointer(arg1, retain: true, release: true), |
| ObjCBlock_ffiVoid_NSData_NSError.fromPointer( |
| arg2, |
| retain: true, |
| release: true, |
| ), |
| )?.ref; |
| return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCObjectImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >()(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCObjectImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ))(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<NSProgress? Function(ffi.Pointer<ffi.Void>, NSString, objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>)>`. |
| extension ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError$CallExtension |
| on |
| objc.ObjCBlock< |
| NSProgress? Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>, |
| ) |
| > { |
| NSProgress? call( |
| ffi.Pointer<ffi.Void> arg0, |
| NSString arg1, |
| objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)> arg2, |
| ) { |
| final _$$ref$1 = arg1.ref; |
| final _$$ref$2 = arg2.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) |
| .address == |
| 0 |
| ? null |
| : NSProgress.fromPointer( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), |
| retain: true, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<NSProgress? Function(objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?)>)>`. |
| abstract final class ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >, |
| ) |
| > |
| fromFunction( |
| NSProgress? Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) { |
| final _$$ref = fn( |
| ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError.fromPointer( |
| arg0, |
| retain: true, |
| release: true, |
| ), |
| )?.ref; |
| return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCObjectImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCObjectImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ))(arg0); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<NSProgress? Function(objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?)>)>`. |
| extension ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError$CallExtension |
| on |
| objc.ObjCBlock< |
| NSProgress? Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >, |
| ) |
| > { |
| NSProgress? call( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > |
| arg0, |
| ) { |
| final _$$ref$1 = arg0.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >()(ref.pointer, _$$ref$1.pointer) |
| .address == |
| 0 |
| ? null |
| : NSProgress.fromPointer( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >()(ref.pointer, _$$ref$1.pointer), |
| retain: true, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<NSString Function(ffi.Pointer<ffi.Void>)>`. |
| abstract final class ObjCBlock_NSString_ffiVoid { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<NSString Function(ffi.Pointer<ffi.Void>)> fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<NSString Function(ffi.Pointer<ffi.Void>)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<NSString Function(ffi.Pointer<ffi.Void>)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void> arg0) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<NSString Function(ffi.Pointer<ffi.Void>)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<NSString Function(ffi.Pointer<ffi.Void>)> fromFunction( |
| NSString Function(ffi.Pointer<ffi.Void>) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<NSString Function(ffi.Pointer<ffi.Void>)>( |
| objc.newClosureBlock(_closureCallable, (ffi.Pointer<ffi.Void> arg0) { |
| final _$$ref = fn(arg0).ref; |
| return _$$ref.retainAndAutorelease(); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCObjectImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void> arg0) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>) |
| >()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCObjectImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>))( |
| arg0, |
| ); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<NSString Function(ffi.Pointer<ffi.Void>)>`. |
| extension ObjCBlock_NSString_ffiVoid$CallExtension |
| on objc.ObjCBlock<NSString Function(ffi.Pointer<ffi.Void>)> { |
| NSString call(ffi.Pointer<ffi.Void> arg0) { |
| return NSString.fromPointer( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >()(ref.pointer, arg0), |
| retain: true, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.UnsignedLong Function(ffi.Pointer<ffi.Void>)>`. |
| abstract final class ObjCBlock_NSUInteger_ffiVoid { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.UnsignedLong Function(ffi.Pointer<ffi.Void>)> |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.UnsignedLong Function(ffi.Pointer<ffi.Void>)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.UnsignedLong Function(ffi.Pointer<ffi.Void>)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction<NSUInteger Function(ffi.Pointer<ffi.Void> arg0)> |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.UnsignedLong Function(ffi.Pointer<ffi.Void>)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.UnsignedLong Function(ffi.Pointer<ffi.Void>)> |
| fromFunction( |
| DartNSUInteger Function(ffi.Pointer<ffi.Void>) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.UnsignedLong Function(ffi.Pointer<ffi.Void>)>( |
| objc.newClosureBlock(_closureCallable, (ffi.Pointer<ffi.Void> arg0) { |
| return fn(arg0); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static int _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction<NSUInteger Function(ffi.Pointer<ffi.Void> arg0)> |
| >() |
| .asFunction<int Function(ffi.Pointer<ffi.Void>)>()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| NSUInteger Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_fnPtrTrampoline, 0) |
| .cast(); |
| static int _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => (objc.getBlockClosure(block) as int Function(ffi.Pointer<ffi.Void>))( |
| arg0, |
| ); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| NSUInteger Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_closureTrampoline, 0) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.UnsignedLong Function(ffi.Pointer<ffi.Void>)>`. |
| extension ObjCBlock_NSUInteger_ffiVoid$CallExtension |
| on objc.ObjCBlock<ffi.UnsignedLong Function(ffi.Pointer<ffi.Void>)> { |
| DartNSUInteger call(ffi.Pointer<ffi.Void> arg0) { |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| NSUInteger Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function(ffi.Pointer<objc.ObjCBlockImpl>, ffi.Pointer<ffi.Void>) |
| >()(ref.pointer, arg0); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.UnsignedLong Function(ffi.Pointer<ffi.Void>, ffi.Pointer<NSFastEnumerationState>, ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, ffi.UnsignedLong)>`. |
| abstract final class ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObjectImpl_NSUInteger { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.UnsignedLong, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.UnsignedLong, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.UnsignedLong, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| NSUInteger Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSFastEnumerationState> arg1, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> arg2, |
| NSUInteger arg3, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.UnsignedLong, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.UnsignedLong, |
| ) |
| > |
| fromFunction( |
| DartNSUInteger Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| DartNSUInteger, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.UnsignedLong, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSFastEnumerationState> arg1, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> arg2, |
| int arg3, |
| ) { |
| return fn(arg0, arg1, arg2, arg3); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static int _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSFastEnumerationState> arg1, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> arg2, |
| int arg3, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| NSUInteger Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSFastEnumerationState> arg1, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> arg2, |
| NSUInteger arg3, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| int, |
| ) |
| >()(arg0, arg1, arg2, arg3); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| NSUInteger Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| NSUInteger, |
| ) |
| >(_fnPtrTrampoline, 0) |
| .cast(); |
| static int _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSFastEnumerationState> arg1, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> arg2, |
| int arg3, |
| ) => |
| (objc.getBlockClosure(block) |
| as int Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| int, |
| ))(arg0, arg1, arg2, arg3); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| NSUInteger Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| NSUInteger, |
| ) |
| >(_closureTrampoline, 0) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.UnsignedLong Function(ffi.Pointer<ffi.Void>, ffi.Pointer<NSFastEnumerationState>, ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, ffi.UnsignedLong)>`. |
| extension ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObjectImpl_NSUInteger$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.UnsignedLong, |
| ) |
| > { |
| DartNSUInteger call( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSFastEnumerationState> arg1, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> arg2, |
| DartNSUInteger arg3, |
| ) { |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| NSUInteger Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSFastEnumerationState> arg1, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> arg2, |
| NSUInteger arg3, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| int, |
| ) |
| >()(ref.pointer, arg0, arg1, arg2, arg3); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void>)>`. |
| abstract final class ObjCBlock_NSZone_ffiVoid { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void>)> |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void>)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void>)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void> arg0) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void>)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void>)> |
| fromFunction( |
| ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void>) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void>)>( |
| objc.newClosureBlock(_closureCallable, (ffi.Pointer<ffi.Void> arg0) { |
| return fn(arg0); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<NSZone> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void> arg0) |
| > |
| >() |
| .asFunction<ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void>)>()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<NSZone> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<NSZone> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void>))(arg0); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<NSZone> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void>)>`. |
| extension ObjCBlock_NSZone_ffiVoid$CallExtension |
| on objc.ObjCBlock<ffi.Pointer<NSZone> Function(ffi.Pointer<ffi.Void>)> { |
| ffi.Pointer<NSZone> call(ffi.Pointer<ffi.Void> arg0) { |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<NSZone> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<NSZone> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >()(ref.pointer, arg0); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_bool_KeyType_ObjectType_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromFunction( |
| bool Function(objc.ObjCObject, objc.ObjCObject, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) { |
| return fn( |
| objc.ObjCObject(arg0, retain: true, release: true), |
| objc.ObjCObject(arg1, retain: true, release: true), |
| arg2, |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static bool _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline, false) |
| .cast(); |
| static bool _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => |
| (objc.getBlockClosure(block) |
| as bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ))(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline, false) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_bool_KeyType_ObjectType_bool$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > { |
| bool call( |
| objc.ObjCObject arg0, |
| objc.ObjCObject arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) { |
| final _$$ref = arg0.ref; |
| final _$$ref$1 = arg1.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer, arg2); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_bool_NSUInteger_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Bool Function(NSUInteger arg0, ffi.Pointer<ffi.Bool> arg1) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunction( |
| bool Function(DartNSUInteger, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| int arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) { |
| return fn(arg0, arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static bool _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| int arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function(NSUInteger arg0, ffi.Pointer<ffi.Bool> arg1) |
| > |
| >() |
| .asFunction<bool Function(int, ffi.Pointer<ffi.Bool>)>()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| NSUInteger, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline, false) |
| .cast(); |
| static bool _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| int arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as bool Function(int, ffi.Pointer<ffi.Bool>))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| NSUInteger, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline, false) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_bool_NSUInteger_bool$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > { |
| bool call(DartNSUInteger arg0, ffi.Pointer<ffi.Bool> arg1) { |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| NSUInteger arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| int, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, arg0, arg1); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.UnsignedLong, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_bool_ObjectType_NSUInteger_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSUInteger arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromFunction( |
| bool Function(objc.ObjCObject, DartNSUInteger, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| int arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) { |
| return fn( |
| objc.ObjCObject(arg0, retain: true, release: true), |
| arg1, |
| arg2, |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static bool _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| int arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSUInteger arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline, false) |
| .cast(); |
| static bool _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| int arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => |
| (objc.getBlockClosure(block) |
| as bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<ffi.Bool>, |
| ))(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline, false) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.UnsignedLong, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_bool_ObjectType_NSUInteger_bool$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > { |
| bool call( |
| objc.ObjCObject arg0, |
| DartNSUInteger arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) { |
| final _$$ref = arg0.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSUInteger arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, _$$ref.pointer, arg1, arg2); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_bool_ObjectType_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunction( |
| bool Function(objc.ObjCObject, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) { |
| return fn(objc.ObjCObject(arg0, retain: true, release: true), arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static bool _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline, false) |
| .cast(); |
| static bool _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline, false) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_bool_ObjectType_bool$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > { |
| bool call(objc.ObjCObject arg0, ffi.Pointer<ffi.Bool> arg1) { |
| final _$$ref = arg0.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, _$$ref.pointer, arg1); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>)>`. |
| abstract final class ObjCBlock_bool_ffiVoid { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>)> fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Bool Function(ffi.Pointer<ffi.Void> arg0)> |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>)> fromFunction( |
| bool Function(ffi.Pointer<ffi.Void>) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>)>( |
| objc.newClosureBlock(_closureCallable, (ffi.Pointer<ffi.Void> arg0) { |
| return fn(arg0); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static bool _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => block.ref.target |
| .cast<ffi.NativeFunction<ffi.Bool Function(ffi.Pointer<ffi.Void> arg0)>>() |
| .asFunction<bool Function(ffi.Pointer<ffi.Void>)>()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_fnPtrTrampoline, false) |
| .cast(); |
| static bool _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => (objc.getBlockClosure(block) as bool Function(ffi.Pointer<ffi.Void>))( |
| arg0, |
| ); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_closureTrampoline, false) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>)>`. |
| extension ObjCBlock_bool_ffiVoid$CallExtension |
| on objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>)> { |
| bool call(ffi.Pointer<ffi.Void> arg0) { |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function(ffi.Pointer<objc.ObjCBlockImpl>, ffi.Pointer<ffi.Void>) |
| >()(ref.pointer, arg0); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>, Protocol)>`. |
| abstract final class ObjCBlock_bool_ffiVoid_Protocol { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>, Protocol)> |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>, Protocol)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>, Protocol)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>, Protocol)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>, Protocol)> |
| fromFunction( |
| bool Function(ffi.Pointer<ffi.Void>, Protocol) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>, Protocol)>( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) { |
| return fn(arg0, Protocol.fromPointer(arg1, retain: true, release: true)); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static bool _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCObjectImpl>) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline, false) |
| .cast(); |
| static bool _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as bool Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline, false) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>, Protocol)>`. |
| extension ObjCBlock_bool_ffiVoid_Protocol$CallExtension |
| on objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>, Protocol)> { |
| bool call(ffi.Pointer<ffi.Void> arg0, Protocol arg1) { |
| final _$$ref = arg1.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, arg0, _$$ref.pointer); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCObjectImpl>)>`. |
| abstract final class ObjCBlock_bool_ffiVoid_objcObjCObjectImpl { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCObjectImpl>) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCObjectImpl>) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCObjectImpl>) |
| > |
| fromFunction( |
| bool Function(ffi.Pointer<ffi.Void>, objc.ObjCObject) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) { |
| return fn(arg0, objc.ObjCObject(arg1, retain: true, release: true)); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static bool _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCObjectImpl>) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline, false) |
| .cast(); |
| static bool _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as bool Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline, false) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCObjectImpl>)>`. |
| extension ObjCBlock_bool_ffiVoid_objcObjCObjectImpl$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > { |
| bool call(ffi.Pointer<ffi.Void> arg0, objc.ObjCObject arg1) { |
| final _$$ref = arg1.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, arg0, _$$ref.pointer); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>)>`. |
| abstract final class ObjCBlock_bool_ffiVoid_objcObjCSelector { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>) |
| > |
| fromFunction( |
| bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ) { |
| return fn(arg0, arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static bool _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(_fnPtrTrampoline, false) |
| .cast(); |
| static bool _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as bool Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(_closureTrampoline, false) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Bool Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>)>`. |
| extension ObjCBlock_bool_ffiVoid_objcObjCSelector$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Bool Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > { |
| bool call(ffi.Pointer<ffi.Void> arg0, ffi.Pointer<objc.ObjCSelector> arg1) { |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >()(ref.pointer, arg0, arg1); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function()>`. |
| abstract final class ObjCBlock_ffiVoid { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Void Function()> fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Void Function()>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Void Function()> fromFunctionPointer( |
| ffi.Pointer<ffi.NativeFunction<ffi.Void Function()>> ptr, |
| ) => objc.ObjCBlock<ffi.Void Function()>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function()> fromFunction( |
| void Function() fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Void Function()>( |
| objc.newClosureBlock(_closureCallable, () { |
| return fn(); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function()> listener( |
| void Function() fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function()>( |
| objc.newBlockPort( |
| _1wx624s_wrapListenerBlock_1pl9qdv, |
| (ffi.Pointer<objc.ObjCObjectImpl> rawArgs) => fn(), |
| keepIsolateAlive, |
| ), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock<ffi.Void Function()> blocking( |
| void Function() fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function()>( |
| objc.newBlockingBlockPort( |
| _1wx624s_wrapBlockingBlock_1pl9qdv, |
| (ffi.Pointer<objc.ObjCObjectImpl> rawArgs) => fn(), |
| keepIsolateAlive, |
| ), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline(ffi.Pointer<objc.ObjCBlockImpl> block) => block |
| .ref |
| .target |
| .cast<ffi.NativeFunction<ffi.Void Function()>>() |
| .asFunction<void Function()>()(); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCBlockImpl>) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline(ffi.Pointer<objc.ObjCBlockImpl> block) => |
| (objc.getBlockClosure(block) as void Function())(); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCBlockImpl>) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function()>`. |
| extension ObjCBlock_ffiVoid$CallExtension |
| on objc.ObjCBlock<ffi.Void Function()> { |
| void call() { |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCBlockImpl> block) |
| > |
| >() |
| .asFunction<void Function(ffi.Pointer<objc.ObjCBlockImpl>)>()( |
| ref.pointer, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_ffiVoid_KeyType_ObjectType_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromFunction( |
| void Function(objc.ObjCObject, objc.ObjCObject, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) { |
| return fn( |
| objc.ObjCObject(arg0, retain: true, release: true), |
| objc.ObjCObject(arg1, retain: true, release: true), |
| arg2, |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| listener( |
| void Function(objc.ObjCObject, objc.ObjCObject, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_1o83rbn, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_gk3fi2.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| blocking( |
| void Function(objc.ObjCObject, objc.ObjCObject, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_1o83rbn, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_gk3fi2.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ))(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_ffiVoid_KeyType_ObjectType_bool$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > { |
| void call( |
| objc.ObjCObject arg0, |
| objc.ObjCObject arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) { |
| final _$$ref = arg0.ref; |
| final _$$ref$1 = arg1.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer, arg2); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>`. |
| abstract final class ObjCBlock_ffiVoid_NSData_NSError { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)> fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)> fromFunction( |
| void Function(NSData?, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) { |
| return fn( |
| arg0.address == 0 |
| ? null |
| : NSData.fromPointer(arg0, retain: true, release: true), |
| arg1.address == 0 |
| ? null |
| : NSError.fromPointer(arg1, retain: true, release: true), |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)> listener( |
| void Function(NSData?, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_pfv6jd, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_x5cg0.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)> blocking( |
| void Function(NSData?, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_pfv6jd, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_x5cg0.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)>`. |
| extension ObjCBlock_ffiVoid_NSData_NSError$CallExtension |
| on objc.ObjCBlock<ffi.Void Function(NSData?, NSError?)> { |
| void call(NSData? arg0, NSError? arg1) { |
| final _$$ref = arg0?.ref; |
| final _$$ref$1 = arg1?.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()( |
| ref.pointer, |
| _$$ref?.pointer ?? ffi.nullptr, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunction( |
| void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) { |
| return fn( |
| NSDictionary.fromPointer(arg0, retain: true, release: true), |
| arg1, |
| arg2, |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| listener( |
| void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_1a22wz, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_v8in3.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| blocking( |
| void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_1a22wz, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_v8in3.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ))(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_ffiVoid_NSDictionary_NSRange_bool$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function(NSDictionary, NSRange, ffi.Pointer<ffi.Bool>) |
| > { |
| void call(NSDictionary arg0, NSRange arg1, ffi.Pointer<ffi.Bool> arg2) { |
| final _$$ref = arg0.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, _$$ref.pointer, arg1, arg2); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError)>, ffi.Pointer<objc.ObjCObjectImpl>, NSDictionary)>`. |
| abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ) |
| > |
| fromFunction( |
| void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| objc.ObjCObject, |
| NSDictionary, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) { |
| return fn( |
| ObjCBlock_ffiVoid_idNSSecureCoding_NSError.fromPointer( |
| arg0, |
| retain: true, |
| release: true, |
| ), |
| objc.ObjCObject(arg1, retain: true, release: true), |
| NSDictionary.fromPointer(arg2, retain: true, release: true), |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ) |
| > |
| listener( |
| void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| objc.ObjCObject, |
| NSDictionary, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_1b3bb6a, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_6yk1dr.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ) |
| > |
| blocking( |
| void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| objc.ObjCObject, |
| NSDictionary, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_1b3bb6a, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_6yk1dr.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError)>, ffi.Pointer<objc.ObjCObjectImpl>, NSDictionary)>`. |
| extension ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ) |
| > { |
| void call( |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| > |
| arg0, |
| objc.ObjCObject arg1, |
| NSDictionary arg2, |
| ) { |
| final _$$ref = arg0.ref; |
| final _$$ref$1 = arg1.ref; |
| final _$$ref$2 = arg2.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCBlockImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer, _$$ref$2.pointer); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_ffiVoid_NSRange_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)> |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(NSRange arg0, ffi.Pointer<ffi.Bool> arg1) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)> |
| fromFunction( |
| void Function(NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)>( |
| objc.newClosureBlock(_closureCallable, ( |
| NSRange arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) { |
| return fn(arg0, arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)> |
| listener( |
| void Function(NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)>( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_zkjmn1, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_uckb5m.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)> |
| blocking( |
| void Function(NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)>( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_zkjmn1, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_uckb5m.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| NSRange arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function(NSRange arg0, ffi.Pointer<ffi.Bool> arg1) |
| > |
| >() |
| .asFunction<void Function(NSRange, ffi.Pointer<ffi.Bool>)>()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| NSRange arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function(NSRange, ffi.Pointer<ffi.Bool>))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_ffiVoid_NSRange_bool$CallExtension |
| on objc.ObjCBlock<ffi.Void Function(NSRange, ffi.Pointer<ffi.Bool>)> { |
| void call(NSRange arg0, ffi.Pointer<ffi.Bool> arg1) { |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| NSRange arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, arg0, arg1); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| NSRange arg2, |
| ffi.Pointer<ffi.Bool> arg3, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunction( |
| void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| NSRange arg2, |
| ffi.Pointer<ffi.Bool> arg3, |
| ) { |
| return fn( |
| arg0.address == 0 |
| ? null |
| : NSString.fromPointer(arg0, retain: true, release: true), |
| arg1, |
| arg2, |
| arg3, |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| listener( |
| void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_lmc3p5, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1pvrxoh.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2, args.arg3); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| blocking( |
| void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_lmc3p5, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1pvrxoh.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2, args.arg3); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| NSRange arg2, |
| ffi.Pointer<ffi.Bool> arg3, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| NSRange arg2, |
| ffi.Pointer<ffi.Bool> arg3, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(arg0, arg1, arg2, arg3); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| NSRange arg2, |
| ffi.Pointer<ffi.Bool> arg3, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ))(arg0, arg1, arg2, arg3); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer<ffi.Bool>) |
| > { |
| void call( |
| NSString? arg0, |
| NSRange arg1, |
| NSRange arg2, |
| ffi.Pointer<ffi.Bool> arg3, |
| ) { |
| final _$$ref = arg0?.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| NSRange arg2, |
| ffi.Pointer<ffi.Bool> arg3, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2, arg3); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_ffiVoid_NSString_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)> |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)> |
| fromFunction( |
| void Function(NSString, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)>( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) { |
| return fn(NSString.fromPointer(arg0, retain: true, release: true), arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)> |
| listener( |
| void Function(NSString, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)>( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_t8l8el, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_ounrb4.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)> |
| blocking( |
| void Function(NSString, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)>( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_t8l8el, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_ounrb4.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_ffiVoid_NSString_bool$CallExtension |
| on objc.ObjCBlock<ffi.Void Function(NSString, ffi.Pointer<ffi.Bool>)> { |
| void call(NSString arg0, ffi.Pointer<ffi.Bool> arg1) { |
| final _$$ref = arg0.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, _$$ref.pointer, arg1); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(NSTimer)>`. |
| abstract final class ObjCBlock_ffiVoid_NSTimer { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Void Function(NSTimer)> fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Void Function(NSTimer)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Void Function(NSTimer)> fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> arg0) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Void Function(NSTimer)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(NSTimer)> fromFunction( |
| void Function(NSTimer) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Void Function(NSTimer)>( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) { |
| return fn(NSTimer.fromPointer(arg0, retain: true, release: true)); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(NSTimer)> listener( |
| void Function(NSTimer) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(NSTimer)>( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_xtuoz7, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_kr40r0.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock<ffi.Void Function(NSTimer)> blocking( |
| void Function(NSTimer) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(NSTimer)>( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_xtuoz7, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_kr40r0.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> arg0) |
| > |
| >() |
| .asFunction<void Function(ffi.Pointer<objc.ObjCObjectImpl>)>()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function(ffi.Pointer<objc.ObjCObjectImpl>))(arg0); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(NSTimer)>`. |
| extension ObjCBlock_ffiVoid_NSTimer$CallExtension |
| on objc.ObjCBlock<ffi.Void Function(NSTimer)> { |
| void call(NSTimer arg0) { |
| final _$$ref = arg0.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, _$$ref.pointer); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_ffiVoid_NSUInteger_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(NSUInteger arg0, ffi.Pointer<ffi.Bool> arg1) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunction( |
| void Function(DartNSUInteger, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| int arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) { |
| return fn(arg0, arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| listener( |
| void Function(DartNSUInteger, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_q5jeyk, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1ebqbq6.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > |
| blocking( |
| void Function(DartNSUInteger, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_q5jeyk, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1ebqbq6.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| int arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function(NSUInteger arg0, ffi.Pointer<ffi.Bool> arg1) |
| > |
| >() |
| .asFunction<void Function(int, ffi.Pointer<ffi.Bool>)>()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| NSUInteger, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| int arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function(int, ffi.Pointer<ffi.Bool>))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| NSUInteger, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_ffiVoid_NSUInteger_bool$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>) |
| > { |
| void call(DartNSUInteger arg0, ffi.Pointer<ffi.Bool> arg1) { |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| NSUInteger arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| int, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, arg0, arg1); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)>`. |
| abstract final class ObjCBlock_ffiVoid_NSURL_NSError { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)> fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)> fromFunction( |
| void Function(NSURL?, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)>( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) { |
| return fn( |
| arg0.address == 0 |
| ? null |
| : NSURL.fromPointer(arg0, retain: true, release: true), |
| arg1.address == 0 |
| ? null |
| : NSError.fromPointer(arg1, retain: true, release: true), |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)> listener( |
| void Function(NSURL?, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)>( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_pfv6jd, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1lk8uv7.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)> blocking( |
| void Function(NSURL?, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)>( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_pfv6jd, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1lk8uv7.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)>`. |
| extension ObjCBlock_ffiVoid_NSURL_NSError$CallExtension |
| on objc.ObjCBlock<ffi.Void Function(NSURL?, NSError?)> { |
| void call(NSURL? arg0, NSError? arg1) { |
| final _$$ref = arg0?.ref; |
| final _$$ref$1 = arg1?.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()( |
| ref.pointer, |
| _$$ref?.pointer ?? ffi.nullptr, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>`. |
| abstract final class ObjCBlock_ffiVoid_NSURL_bool_NSError { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)> |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Bool arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)> |
| fromFunction( |
| void Function(NSURL?, bool, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| bool arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) { |
| return fn( |
| arg0.address == 0 |
| ? null |
| : NSURL.fromPointer(arg0, retain: true, release: true), |
| arg1, |
| arg2.address == 0 |
| ? null |
| : NSError.fromPointer(arg2, retain: true, release: true), |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)> listener( |
| void Function(NSURL?, bool, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_rnu2c5, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_18aygyv.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)> blocking( |
| void Function(NSURL?, bool, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_rnu2c5, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_18aygyv.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| bool arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Bool arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| bool, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Bool, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| bool arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| bool, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Bool, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)>`. |
| extension ObjCBlock_ffiVoid_NSURL_bool_NSError$CallExtension |
| on objc.ObjCBlock<ffi.Void Function(NSURL?, ffi.Bool, NSError?)> { |
| void call(NSURL? arg0, bool arg1, NSError? arg2) { |
| final _$$ref = arg0?.ref; |
| final _$$ref$1 = arg2?.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Bool arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| bool, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()( |
| ref.pointer, |
| _$$ref?.pointer ?? ffi.nullptr, |
| arg1, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_ffiVoid_ObjectType_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunction( |
| void Function(objc.ObjCObject, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) { |
| return fn(objc.ObjCObject(arg0, retain: true, release: true), arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| > |
| listener( |
| void Function(objc.ObjCObject, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_t8l8el, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_wnzfgp.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| > |
| blocking( |
| void Function(objc.ObjCObject, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_t8l8el, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_wnzfgp.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_ffiVoid_ObjectType_bool$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > { |
| void call(objc.ObjCObject arg0, ffi.Pointer<ffi.Bool> arg1) { |
| final _$$ref = arg0.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<ffi.Bool> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, _$$ref.pointer, arg1); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>)>`. |
| abstract final class ObjCBlock_ffiVoid_ffiVoid { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>)> fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void> arg0)> |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>)> fromFunction( |
| void Function(ffi.Pointer<ffi.Void>) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>)>( |
| objc.newClosureBlock(_closureCallable, (ffi.Pointer<ffi.Void> arg0) { |
| return fn(arg0); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>)> listener( |
| void Function(ffi.Pointer<ffi.Void>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>)>( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_ovsamd, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_awd5mj.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>)> blocking( |
| void Function(ffi.Pointer<ffi.Void>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>)>( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_ovsamd, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_awd5mj.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => block.ref.target |
| .cast<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void> arg0)>>() |
| .asFunction<void Function(ffi.Pointer<ffi.Void>)>()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => (objc.getBlockClosure(block) as void Function(ffi.Pointer<ffi.Void>))( |
| arg0, |
| ); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>)>`. |
| extension ObjCBlock_ffiVoid_ffiVoid$CallExtension |
| on objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>)> { |
| void call(ffi.Pointer<ffi.Void> arg0) { |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function(ffi.Pointer<objc.ObjCBlockImpl>, ffi.Pointer<ffi.Void>) |
| >()(ref.pointer, arg0); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSCoder)>`. |
| abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSCoder)> |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSCoder)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSCoder)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSCoder)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSCoder)> |
| fromFunction( |
| void Function(ffi.Pointer<ffi.Void>, NSCoder) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSCoder)>( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) { |
| return fn(arg0, NSCoder.fromPointer(arg1, retain: true, release: true)); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSCoder)> |
| listener( |
| void Function(ffi.Pointer<ffi.Void>, NSCoder) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSCoder)>( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_18v1jvf, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1599z35.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSCoder)> |
| blocking( |
| void Function(ffi.Pointer<ffi.Void>, NSCoder) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSCoder)>( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_18v1jvf, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1599z35.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCObjectImpl>) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSCoder)>`. |
| extension ObjCBlock_ffiVoid_ffiVoid_NSCoder$CallExtension |
| on objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSCoder)> { |
| void call(ffi.Pointer<ffi.Void> arg0, NSCoder arg1) { |
| final _$$ref = arg1.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, arg0, _$$ref.pointer); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSPortMessage)>`. |
| abstract final class ObjCBlock_ffiVoid_ffiVoid_NSPortMessage { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSPortMessage)> |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSPortMessage)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSPortMessage)> |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSPortMessage)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSPortMessage)> |
| fromFunction( |
| void Function(ffi.Pointer<ffi.Void>, NSPortMessage) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSPortMessage)>( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) { |
| return fn( |
| arg0, |
| NSPortMessage.fromPointer(arg1, retain: true, release: true), |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSPortMessage)> |
| listener( |
| void Function(ffi.Pointer<ffi.Void>, NSPortMessage) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSPortMessage) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_18v1jvf, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1e1kc88.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSPortMessage)> |
| blocking( |
| void Function(ffi.Pointer<ffi.Void>, NSPortMessage) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSPortMessage) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_18v1jvf, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1e1kc88.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCObjectImpl>) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSPortMessage)>`. |
| extension ObjCBlock_ffiVoid_ffiVoid_NSPortMessage$CallExtension |
| on objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSPortMessage)> { |
| void call(ffi.Pointer<ffi.Void> arg0, NSPortMessage arg1) { |
| final _$$ref = arg1.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, arg0, _$$ref.pointer); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| fromFunction( |
| void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) { |
| return fn(arg0, arg1, arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| listener( |
| void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_1q8ia8l, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_3djt55.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) |
| > |
| blocking( |
| void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_1q8ia8l, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_3djt55.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>) |
| >()(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<ffi.Void>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ))(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSRange, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_ffiVoid_ffiVoid_NSRange_bool$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > { |
| void call( |
| ffi.Pointer<ffi.Void> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) { |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, arg0, arg1, arg2); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSStream, NSUInteger)>`. |
| abstract final class ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSStream, NSUInteger) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSStream, NSUInteger) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSStream, NSUInteger) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| NSUInteger arg2, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSStream, NSUInteger) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSStream, NSUInteger) |
| > |
| fromFunction( |
| void Function(ffi.Pointer<ffi.Void>, NSStream, DartNSUInteger) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSStream, NSUInteger) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| int arg2, |
| ) { |
| return fn( |
| arg0, |
| NSStream.fromPointer(arg1, retain: true, release: true), |
| arg2, |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSStream, NSUInteger) |
| > |
| listener( |
| void Function(ffi.Pointer<ffi.Void>, NSStream, DartNSUInteger) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSStream, NSUInteger) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_hoampi, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_64fwqt.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSStream, NSUInteger) |
| > |
| blocking( |
| void Function(ffi.Pointer<ffi.Void>, NSStream, DartNSUInteger) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSStream, NSUInteger) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_hoampi, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_64fwqt.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| int arg2, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| NSUInteger arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >()(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| int arg2, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ))(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSStream, NSUInteger)>`. |
| extension ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, NSStream, NSUInteger) |
| > { |
| void call(ffi.Pointer<ffi.Void> arg0, NSStream arg1, DartNSUInteger arg2) { |
| final _$$ref = arg1.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| NSUInteger arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >()(ref.pointer, arg0, _$$ref.pointer, arg2); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSString, ffi.Pointer<objc.ObjCObjectImpl>, NSDictionary, ffi.Pointer<ffi.Void>)>`. |
| abstract final class ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObjectImpl_NSDictionary_ffiVoid { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ffi.Pointer<ffi.Void> arg4, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| fromFunction( |
| void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| objc.ObjCObject, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ffi.Pointer<ffi.Void> arg4, |
| ) { |
| return fn( |
| arg0, |
| NSString.fromPointer(arg1, retain: true, release: true), |
| objc.ObjCObject(arg2, retain: true, release: true), |
| NSDictionary.fromPointer(arg3, retain: true, release: true), |
| arg4, |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| listener( |
| void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| objc.ObjCObject, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_1sr3ozv, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1mvxr7g.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| blocking( |
| void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| objc.ObjCObject, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_1sr3ozv, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1mvxr7g.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ffi.Pointer<ffi.Void> arg4, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ffi.Pointer<ffi.Void> arg4, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >()(arg0, arg1, arg2, arg3, arg4); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ffi.Pointer<ffi.Void> arg4, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ))(arg0, arg1, arg2, arg3, arg4); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, NSString, ffi.Pointer<objc.ObjCObjectImpl>, NSDictionary, ffi.Pointer<ffi.Void>)>`. |
| extension ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObjectImpl_NSDictionary_ffiVoid$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<ffi.Void>, |
| NSString, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > { |
| void call( |
| ffi.Pointer<ffi.Void> arg0, |
| NSString arg1, |
| objc.ObjCObject arg2, |
| NSDictionary arg3, |
| ffi.Pointer<ffi.Void> arg4, |
| ) { |
| final _$$ref = arg1.ref; |
| final _$$ref$1 = arg2.ref; |
| final _$$ref$2 = arg3.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ffi.Pointer<ffi.Void> arg4, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >()( |
| ref.pointer, |
| arg0, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| arg4, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong)>`. |
| abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUInteger { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<ffi.Void> arg0, NSUInteger arg1) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong) |
| > |
| fromFunction( |
| void Function(ffi.Pointer<ffi.Void>, DartNSUInteger) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| int arg1, |
| ) { |
| return fn(arg0, arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong) |
| > |
| listener( |
| void Function(ffi.Pointer<ffi.Void>, DartNSUInteger) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_zuf90e, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1ltqoqj.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong) |
| > |
| blocking( |
| void Function(ffi.Pointer<ffi.Void>, DartNSUInteger) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_zuf90e, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1ltqoqj.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| int arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<ffi.Void> arg0, NSUInteger arg1) |
| > |
| >() |
| .asFunction<void Function(ffi.Pointer<ffi.Void>, int)>()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| NSUInteger, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| int arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function(ffi.Pointer<ffi.Void>, int))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| NSUInteger, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong)>`. |
| extension ObjCBlock_ffiVoid_ffiVoid_NSUInteger$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong) |
| > { |
| void call(ffi.Pointer<ffi.Void> arg0, DartNSUInteger arg1) { |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| NSUInteger arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| int, |
| ) |
| >()(ref.pointer, arg0, arg1); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?)>`. |
| abstract final class ObjCBlock_ffiVoid_idNSItemProviderReading_NSError { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > |
| fromFunction( |
| void Function(NSItemProviderReading?, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) { |
| return fn( |
| arg0.address == 0 |
| ? null |
| : NSItemProviderReading.fromPointer( |
| arg0, |
| retain: true, |
| release: true, |
| ), |
| arg1.address == 0 |
| ? null |
| : NSError.fromPointer(arg1, retain: true, release: true), |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > |
| listener( |
| void Function(NSItemProviderReading?, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_pfv6jd, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1dse6r3.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > |
| blocking( |
| void Function(NSItemProviderReading?, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_pfv6jd, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1dse6r3.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?)>`. |
| extension ObjCBlock_ffiVoid_idNSItemProviderReading_NSError$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > { |
| void call(NSItemProviderReading? arg0, NSError? arg1) { |
| final _$$ref = arg0?.ref; |
| final _$$ref$1 = arg1?.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()( |
| ref.pointer, |
| _$$ref?.pointer ?? ffi.nullptr, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?)>`. |
| abstract final class ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > |
| fromFunction( |
| void Function(NSItemProviderWriting?, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) { |
| return fn( |
| arg0.address == 0 |
| ? null |
| : NSItemProviderWriting.fromPointer( |
| arg0, |
| retain: true, |
| release: true, |
| ), |
| arg1.address == 0 |
| ? null |
| : NSError.fromPointer(arg1, retain: true, release: true), |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > |
| listener( |
| void Function(NSItemProviderWriting?, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_pfv6jd, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1y7l7kf.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > |
| blocking( |
| void Function(NSItemProviderWriting?, NSError?) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_pfv6jd, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1y7l7kf.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?)>`. |
| extension ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError?) |
| > { |
| void call(NSItemProviderWriting? arg0, NSError? arg1) { |
| final _$$ref = arg0?.ref; |
| final _$$ref$1 = arg1?.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()( |
| ref.pointer, |
| _$$ref?.pointer ?? ffi.nullptr, |
| _$$ref$1?.pointer ?? ffi.nullptr, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError)>`. |
| abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| > |
| fromFunction( |
| void Function(NSSecureCoding?, NSError) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) { |
| return fn( |
| arg0.address == 0 |
| ? null |
| : NSSecureCoding.fromPointer(arg0, retain: true, release: true), |
| NSError.fromPointer(arg1, retain: true, release: true), |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| > |
| listener( |
| void Function(NSSecureCoding?, NSError) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_pfv6jd, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_krrtfh.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| > |
| blocking( |
| void Function(NSSecureCoding?, NSError) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_pfv6jd, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_krrtfh.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError)>`. |
| extension ObjCBlock_ffiVoid_idNSSecureCoding_NSError$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError) |
| > { |
| void call(NSSecureCoding? arg0, NSError arg1) { |
| final _$$ref = arg0?.ref; |
| final _$$ref$1 = arg1.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, _$$ref$1.pointer); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSRange, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_NSRange_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>?, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>?, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>?, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>?, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>?, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromFunction( |
| void Function(objc.ObjCObject?, NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>?, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) { |
| return fn( |
| arg0.address == 0 |
| ? null |
| : objc.ObjCObject(arg0, retain: true, release: true), |
| arg1, |
| arg2, |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>?, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| listener( |
| void Function(objc.ObjCObject?, NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>?, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_1a22wz, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_q6fcam.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>?, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| blocking( |
| void Function(objc.ObjCObject?, NSRange, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>?, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_1a22wz, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_q6fcam.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ))(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSRange, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_ffiVoid_objcObjCObjectImpl_NSRange_bool$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>?, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > { |
| void call(objc.ObjCObject? arg0, NSRange arg1, ffi.Pointer<ffi.Bool> arg2) { |
| final _$$ref = arg0?.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSRange arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.UnsignedLong, ffi.Pointer<ffi.Bool>)>`. |
| abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_ffiUnsignedLong_bool { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSUInteger arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| fromFunction( |
| void Function(objc.ObjCObject, DartNSUInteger, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| int arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) { |
| return fn( |
| objc.ObjCObject(arg0, retain: true, release: true), |
| arg1, |
| arg2, |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| listener( |
| void Function(objc.ObjCObject, DartNSUInteger, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_1p9ui4q, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1e56rsl.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > |
| blocking( |
| void Function(objc.ObjCObject, DartNSUInteger, ffi.Pointer<ffi.Bool>) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_1p9ui4q, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1e56rsl.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1, args.arg2); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| int arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSUInteger arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| int arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<ffi.Bool>, |
| ))(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.UnsignedLong, ffi.Pointer<ffi.Bool>)>`. |
| extension ObjCBlock_ffiVoid_objcObjCObjectImpl_ffiUnsignedLong_bool$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| > { |
| void call( |
| objc.ObjCObject arg0, |
| DartNSUInteger arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) { |
| final _$$ref = arg0.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| NSUInteger arg1, |
| ffi.Pointer<ffi.Bool> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<ffi.Bool>, |
| ) |
| >()(ref.pointer, _$$ref.pointer, arg1, arg2); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong)>`. |
| abstract final class ObjCBlock_ffiVoid_unichar_NSUInteger { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort> arg0, NSUInteger arg1) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong) |
| > |
| fromFunction( |
| void Function(ffi.Pointer<ffi.UnsignedShort>, DartNSUInteger) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.UnsignedShort> arg0, |
| int arg1, |
| ) { |
| return fn(arg0, arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong) |
| > |
| listener( |
| void Function(ffi.Pointer<ffi.UnsignedShort>, DartNSUInteger) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong) |
| >( |
| objc.newBlockPort(_1wx624s_wrapListenerBlock_vhbh5h, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_139usnw.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong) |
| > |
| blocking( |
| void Function(ffi.Pointer<ffi.UnsignedShort>, DartNSUInteger) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong) |
| >( |
| objc.newBlockingBlockPort(_1wx624s_wrapBlockingBlock_vhbh5h, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_139usnw.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0, args.arg1); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.UnsignedShort> arg0, |
| int arg1, |
| ) => |
| block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<ffi.UnsignedShort> arg0, |
| NSUInteger arg1, |
| ) |
| > |
| >() |
| .asFunction<void Function(ffi.Pointer<ffi.UnsignedShort>, int)>()( |
| arg0, |
| arg1, |
| ); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.UnsignedShort>, |
| NSUInteger, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.UnsignedShort> arg0, |
| int arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function(ffi.Pointer<ffi.UnsignedShort>, int))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.UnsignedShort>, |
| NSUInteger, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong)>`. |
| extension ObjCBlock_ffiVoid_unichar_NSUInteger$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Void Function(ffi.Pointer<ffi.UnsignedShort>, ffi.UnsignedLong) |
| > { |
| void call(ffi.Pointer<ffi.UnsignedShort> arg0, DartNSUInteger arg1) { |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.UnsignedShort> arg0, |
| NSUInteger arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.UnsignedShort>, |
| int, |
| ) |
| >()(ref.pointer, arg0, arg1); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>?> Function(ffi.Pointer<ffi.Void>, NSCoder)>`. |
| abstract final class ObjCBlock_instancetype_ffiVoid_NSCoder { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>?> Function( |
| ffi.Pointer<ffi.Void>, |
| NSCoder, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>?> Function( |
| ffi.Pointer<ffi.Void>, |
| NSCoder, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>?> Function( |
| ffi.Pointer<ffi.Void>, |
| NSCoder, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| instancetype Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>?> Function( |
| ffi.Pointer<ffi.Void>, |
| NSCoder, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>?> Function( |
| ffi.Pointer<ffi.Void>, |
| NSCoder, |
| ) |
| > |
| fromFunction( |
| Dartinstancetype? Function(ffi.Pointer<ffi.Void>, NSCoder) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>?> Function( |
| ffi.Pointer<ffi.Void>, |
| NSCoder, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) { |
| final _$$ref = fn( |
| arg0, |
| NSCoder.fromPointer(arg1, retain: true, release: true), |
| )?.ref; |
| return _$$ref?.retainAndReturnPointer() ?? ffi.nullptr; |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static instancetype _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| instancetype Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| instancetype Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| instancetype Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static instancetype _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as instancetype Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| instancetype Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>?> Function(ffi.Pointer<ffi.Void>, NSCoder)>`. |
| extension ObjCBlock_instancetype_ffiVoid_NSCoder$CallExtension |
| on |
| objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>?> Function( |
| ffi.Pointer<ffi.Void>, |
| NSCoder, |
| ) |
| > { |
| Dartinstancetype? call(ffi.Pointer<ffi.Void> arg0, NSCoder arg1) { |
| final _$$ref$1 = arg1.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| instancetype Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| instancetype Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, arg0, _$$ref$1.pointer) |
| .address == |
| 0 |
| ? null |
| : objc.ObjCObject( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| instancetype Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| instancetype Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, arg0, _$$ref$1.pointer), |
| retain: false, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Pointer<objc.ObjCObjectImpl>? Function(NSError, NSString)>`. |
| abstract final class ObjCBlock_objcObjCObjectImpl_NSError_NSErrorUserInfoKey { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl>? Function(NSError, NSString) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl>? Function(NSError, NSString) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl>? Function(NSError, NSString) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl>? Function(NSError, NSString) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl>? Function(NSError, NSString) |
| > |
| fromFunction( |
| objc.ObjCObject? Function(NSError, NSString) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl>? Function(NSError, NSString) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) { |
| final _$$ref = fn( |
| NSError.fromPointer(arg0, retain: true, release: true), |
| NSString.fromPointer(arg1, retain: true, release: true), |
| )?.ref; |
| return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCObjectImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCObjectImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Pointer<objc.ObjCObjectImpl>? Function(NSError, NSString)>`. |
| extension ObjCBlock_objcObjCObjectImpl_NSError_NSErrorUserInfoKey$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl>? Function(NSError, NSString) |
| > { |
| objc.ObjCObject? call(NSError arg0, NSString arg1) { |
| final _$$ref$1 = arg0.ref; |
| final _$$ref$2 = arg1.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, _$$ref$1.pointer, _$$ref$2.pointer) |
| .address == |
| 0 |
| ? null |
| : objc.ObjCObject( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, _$$ref$1.pointer, _$$ref$2.pointer), |
| retain: true, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>)>`. |
| abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void> arg0) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>) |
| > |
| fromFunction( |
| objc.ObjCObject Function(ffi.Pointer<ffi.Void>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>) |
| >( |
| objc.newClosureBlock(_closureCallable, (ffi.Pointer<ffi.Void> arg0) { |
| final _$$ref = fn(arg0).ref; |
| return _$$ref.retainAndAutorelease(); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCObjectImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void> arg0) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>) |
| >()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCObjectImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>))( |
| arg0, |
| ); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>)>`. |
| extension ObjCBlock_objcObjCObjectImpl_ffiVoid$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>) |
| > { |
| objc.ObjCObject call(ffi.Pointer<ffi.Void> arg0) { |
| return objc.ObjCObject( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >()(ref.pointer, arg0), |
| retain: true, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>> Function(ffi.Pointer<ffi.Void>, ffi.Pointer<NSZone>)>`. |
| abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSZone { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSZone> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| > |
| fromFunction( |
| objc.ObjCObject Function(ffi.Pointer<ffi.Void>, ffi.Pointer<NSZone>) fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSZone> arg1, |
| ) { |
| final _$$ref = fn(arg0, arg1).ref; |
| return _$$ref.retainAndReturnPointer(); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCObjectImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSZone> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSZone> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCObjectImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSZone> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>> Function(ffi.Pointer<ffi.Void>, ffi.Pointer<NSZone>)>`. |
| extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSZone$CallExtension |
| on |
| objc.ObjCBlock< |
| objc.Retained<ffi.Pointer<objc.ObjCObjectImpl>> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| > { |
| objc.ObjCObject call(ffi.Pointer<ffi.Void> arg0, ffi.Pointer<NSZone> arg1) { |
| return objc.ObjCObject( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<NSZone> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<NSZone>, |
| ) |
| >()(ref.pointer, arg0, arg1), |
| retain: false, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>)>`. |
| abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_objcObjCSelector { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| fromFunction( |
| objc.ObjCObject Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ) { |
| final _$$ref = fn(arg0, arg1).ref; |
| return _$$ref.retainAndAutorelease(); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCObjectImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >()(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCObjectImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ))(arg0, arg1); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>)>`. |
| extension ObjCBlock_objcObjCObjectImpl_ffiVoid_objcObjCSelector$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > { |
| objc.ObjCObject call( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ) { |
| return objc.ObjCObject( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >()(ref.pointer, arg0, arg1), |
| retain: true, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>, ffi.Pointer<objc.ObjCObjectImpl>)>`. |
| abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_objcObjCSelector_objcObjCObjectImpl { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| fromFunction( |
| objc.ObjCObject Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) { |
| final _$$ref = fn( |
| arg0, |
| arg1, |
| objc.ObjCObject(arg2, retain: true, release: true), |
| ).ref; |
| return _$$ref.retainAndAutorelease(); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCObjectImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCObjectImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1, arg2); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>, ffi.Pointer<objc.ObjCObjectImpl>)>`. |
| extension ObjCBlock_objcObjCObjectImpl_ffiVoid_objcObjCSelector_objcObjCObjectImpl$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > { |
| objc.ObjCObject call( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| objc.ObjCObject arg2, |
| ) { |
| final _$$ref$1 = arg2.ref; |
| return objc.ObjCObject( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, arg0, arg1, _$$ref$1.pointer), |
| retain: true, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>, ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<objc.ObjCObjectImpl>)>`. |
| abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_objcObjCSelector_objcObjCObjectImpl_objcObjCObjectImpl { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(pointer, retain: retain, release: release); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ) |
| > |
| > |
| ptr, |
| ) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| fromFunction( |
| objc.ObjCObject Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| objc.ObjCObject, |
| objc.ObjCObject, |
| ) |
| fn, { |
| bool keepIsolateAlive = true, |
| }) => |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ) { |
| final _$$ref = fn( |
| arg0, |
| arg1, |
| objc.ObjCObject(arg2, retain: true, release: true), |
| objc.ObjCObject(arg3, retain: true, release: true), |
| ).ref; |
| return _$$ref.retainAndAutorelease(); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| static ffi.Pointer<objc.ObjCObjectImpl> _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(arg0, arg1, arg2, arg3); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static ffi.Pointer<objc.ObjCObjectImpl> _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ) => |
| (objc.getBlockClosure(block) |
| as ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ))(arg0, arg1, arg2, arg3); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Pointer<objc.ObjCObjectImpl> Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCSelector>, ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<objc.ObjCObjectImpl>)>`. |
| extension ObjCBlock_objcObjCObjectImpl_ffiVoid_objcObjCSelector_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension |
| on |
| objc.ObjCBlock< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > { |
| objc.ObjCObject call( |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| objc.ObjCObject arg2, |
| objc.ObjCObject arg3, |
| ) { |
| final _$$ref$1 = arg2.ref; |
| final _$$ref$2 = arg3.ref; |
| return objc.ObjCObject( |
| ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<ffi.Void> arg0, |
| ffi.Pointer<objc.ObjCSelector> arg1, |
| ffi.Pointer<objc.ObjCObjectImpl> arg2, |
| ffi.Pointer<objc.ObjCObjectImpl> arg3, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, arg0, arg1, _$$ref$1.pointer, _$$ref$2.pointer), |
| retain: true, |
| release: true, |
| ); |
| } |
| } |
| |
| /// Protocol for observing changes to values of objects. |
| extension type Observer._(objc.ObjCProtocol object$) |
| implements objc.ObjCProtocol, NSObjectProtocol { |
| /// Constructs a [Observer] that points to the same underlying object as [other]. |
| Observer.as(objc.ObjCObject other) : object$ = other; |
| |
| /// Constructs a [Observer] that wraps the given raw object pointer. |
| Observer.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); |
| |
| /// Returns whether [obj] is an instance of [Observer]. |
| static bool conformsTo(objc.ObjCObject obj) { |
| return _objc_msgSend_e3qsqz( |
| obj.ref.pointer, |
| _sel_conformsToProtocol_, |
| _protocol_Observer, |
| ); |
| } |
| } |
| |
| extension Observer$Methods on Observer { |
| /// observeValueForKeyPath:ofObject:change:context: |
| void observeValueForKeyPath( |
| NSString keyPath, { |
| required objc.ObjCObject ofObject, |
| required NSDictionary change, |
| required ffi.Pointer<ffi.Void> context, |
| }) { |
| final _$$ref = object$.ref; |
| final _$$ref$1 = keyPath.ref; |
| final _$$ref$2 = ofObject.ref; |
| final _$$ref$3 = change.ref; |
| _objc_msgSend_1pl4k3n( |
| _$$ref.pointer, |
| _sel_observeValueForKeyPath_ofObject_change_context_, |
| _$$ref$1.pointer, |
| _$$ref$2.pointer, |
| _$$ref$3.pointer, |
| context, |
| ); |
| } |
| } |
| |
| interface class Observer$Builder { |
| /// Returns the [objc.Protocol] object for this protocol. |
| static objc.Protocol get $protocol => |
| objc.Protocol.fromPointer(_protocol_Observer.cast()); |
| |
| /// Builds an object that implements the Observer protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static Observer implement({ |
| required void Function( |
| NSString, |
| objc.ObjCObject, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| observeValueForKeyPath_ofObject_change_context_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); |
| Observer$Builder.observeValueForKeyPath_ofObject_change_context_.implement( |
| builder, |
| observeValueForKeyPath_ofObject_change_context_, |
| ); |
| builder.addProtocol($protocol); |
| return Observer.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); |
| } |
| |
| /// Adds the implementation of the Observer protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilder( |
| objc.ObjCProtocolBuilder builder, { |
| required void Function( |
| NSString, |
| objc.ObjCObject, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| observeValueForKeyPath_ofObject_change_context_, |
| bool $keepIsolateAlive = true, |
| }) { |
| Observer$Builder.observeValueForKeyPath_ofObject_change_context_.implement( |
| builder, |
| observeValueForKeyPath_ofObject_change_context_, |
| ); |
| builder.addProtocol($protocol); |
| } |
| |
| /// Builds an object that implements the Observer protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All |
| /// methods that can be implemented as listeners will be. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static Observer implementAsListener({ |
| required void Function( |
| NSString, |
| objc.ObjCObject, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| observeValueForKeyPath_ofObject_change_context_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); |
| Observer$Builder.observeValueForKeyPath_ofObject_change_context_ |
| .implementAsListener( |
| builder, |
| observeValueForKeyPath_ofObject_change_context_, |
| ); |
| builder.addProtocol($protocol); |
| return Observer.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); |
| } |
| |
| /// Adds the implementation of the Observer protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will |
| /// be. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilderAsListener( |
| objc.ObjCProtocolBuilder builder, { |
| required void Function( |
| NSString, |
| objc.ObjCObject, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| observeValueForKeyPath_ofObject_change_context_, |
| bool $keepIsolateAlive = true, |
| }) { |
| Observer$Builder.observeValueForKeyPath_ofObject_change_context_ |
| .implementAsListener( |
| builder, |
| observeValueForKeyPath_ofObject_change_context_, |
| ); |
| builder.addProtocol($protocol); |
| } |
| |
| /// Builds an object that implements the Observer protocol. To implement |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All |
| /// methods that can be implemented as blocking listeners will be. |
| /// |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate |
| /// alive until it is garbage collected by both Dart and ObjC. |
| static Observer implementAsBlocking({ |
| required void Function( |
| NSString, |
| objc.ObjCObject, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| observeValueForKeyPath_ofObject_change_context_, |
| bool $keepIsolateAlive = true, |
| }) { |
| final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); |
| Observer$Builder.observeValueForKeyPath_ofObject_change_context_ |
| .implementAsBlocking( |
| builder, |
| observeValueForKeyPath_ofObject_change_context_, |
| ); |
| builder.addProtocol($protocol); |
| return Observer.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); |
| } |
| |
| /// Adds the implementation of the Observer protocol to an existing |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking |
| /// listeners will be. |
| /// |
| /// Note: You cannot call this method after you have called `builder.build`. |
| static void addToBuilderAsBlocking( |
| objc.ObjCProtocolBuilder builder, { |
| required void Function( |
| NSString, |
| objc.ObjCObject, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| observeValueForKeyPath_ofObject_change_context_, |
| bool $keepIsolateAlive = true, |
| }) { |
| Observer$Builder.observeValueForKeyPath_ofObject_change_context_ |
| .implementAsBlocking( |
| builder, |
| observeValueForKeyPath_ofObject_change_context_, |
| ); |
| builder.addProtocol($protocol); |
| } |
| |
| /// observeValueForKeyPath:ofObject:change:context: |
| static final observeValueForKeyPath_ofObject_change_context_ = |
| objc.ObjCProtocolListenableMethod< |
| void Function( |
| NSString, |
| objc.ObjCObject, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >( |
| _protocol_Observer, |
| _sel_observeValueForKeyPath_ofObject_change_context_, |
| ffi.Native.addressOf< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >(_1wx624s_protocolTrampoline_1sr3ozv) |
| .cast(), |
| objc.getProtocolMethodSignature( |
| _protocol_Observer, |
| _sel_observeValueForKeyPath_ofObject_change_context_, |
| isRequired: true, |
| isInstanceMethod: true, |
| ), |
| ( |
| void Function( |
| NSString, |
| objc.ObjCObject, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| func, |
| ) => |
| ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObjectImpl_NSDictionary_ffiVoid.fromFunction( |
| ( |
| ffi.Pointer<ffi.Void> _, |
| NSString arg1, |
| objc.ObjCObject arg2, |
| NSDictionary arg3, |
| ffi.Pointer<ffi.Void> arg4, |
| ) => func(arg1, arg2, arg3, arg4), |
| ), |
| ( |
| void Function( |
| NSString, |
| objc.ObjCObject, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| func, |
| ) => |
| ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObjectImpl_NSDictionary_ffiVoid.listener( |
| ( |
| ffi.Pointer<ffi.Void> _, |
| NSString arg1, |
| objc.ObjCObject arg2, |
| NSDictionary arg3, |
| ffi.Pointer<ffi.Void> arg4, |
| ) => func(arg1, arg2, arg3, arg4), |
| ), |
| ( |
| void Function( |
| NSString, |
| objc.ObjCObject, |
| NSDictionary, |
| ffi.Pointer<ffi.Void>, |
| ) |
| func, |
| ) => |
| ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObjectImpl_NSDictionary_ffiVoid.blocking( |
| ( |
| ffi.Pointer<ffi.Void> _, |
| NSString arg1, |
| objc.ObjCObject arg2, |
| NSDictionary arg3, |
| ffi.Pointer<ffi.Void> arg4, |
| ) => func(arg1, arg2, arg3, arg4), |
| ), |
| ); |
| } |
| |
| final class OpaqueAEDataStorageType extends ffi.Opaque {} |
| |
| /// Protocol |
| extension type Protocol._(objc.ObjCObject object$) implements objc.ObjCObject { |
| /// Constructs a [Protocol] that points to the same underlying object as [other]. |
| Protocol.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [Protocol] that wraps the given raw object pointer. |
| Protocol.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [Protocol]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_Protocol, |
| ); |
| } |
| |
| extension Protocol$Methods on Protocol {} |
| |
| extension type _BlockArgs_139usnw._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_139usnw] that points to the same underlying object as [other]. |
| _BlockArgs_139usnw.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_139usnw] that wraps the given raw object pointer. |
| _BlockArgs_139usnw.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_139usnw]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_139usnw, |
| ); |
| } |
| |
| extension _BlockArgs_139usnw$Methods on _BlockArgs_139usnw { |
| ffi.Pointer<ffi.UnsignedShort> get arg0 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xe84da(_$$ref.pointer, _sel_arg0); |
| } |
| |
| DartNSUInteger get arg1 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg1); |
| } |
| } |
| |
| extension type _BlockArgs_1599z35._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_1599z35] that points to the same underlying object as [other]. |
| _BlockArgs_1599z35.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_1599z35] that wraps the given raw object pointer. |
| _BlockArgs_1599z35.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_1599z35]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_1599z35, |
| ); |
| } |
| |
| extension _BlockArgs_1599z35$Methods on _BlockArgs_1599z35 { |
| ffi.Pointer<ffi.Void> get arg0 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); |
| } |
| |
| NSCoder get arg1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); |
| return NSCoder.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| extension type _BlockArgs_18aygyv._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_18aygyv] that points to the same underlying object as [other]. |
| _BlockArgs_18aygyv.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_18aygyv] that wraps the given raw object pointer. |
| _BlockArgs_18aygyv.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_18aygyv]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_18aygyv, |
| ); |
| } |
| |
| extension _BlockArgs_18aygyv$Methods on _BlockArgs_18aygyv { |
| NSURL? get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| bool get arg1 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg1); |
| } |
| |
| NSError? get arg2 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); |
| return $ret.address == 0 |
| ? null |
| : NSError.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| extension type _BlockArgs_1dse6r3._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_1dse6r3] that points to the same underlying object as [other]. |
| _BlockArgs_1dse6r3.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_1dse6r3] that wraps the given raw object pointer. |
| _BlockArgs_1dse6r3.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_1dse6r3]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_1dse6r3, |
| ); |
| } |
| |
| extension _BlockArgs_1dse6r3$Methods on _BlockArgs_1dse6r3 { |
| NSItemProviderReading? get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return $ret.address == 0 |
| ? null |
| : NSItemProviderReading.fromPointer($ret, retain: true, release: true); |
| } |
| |
| NSError? get arg1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); |
| return $ret.address == 0 |
| ? null |
| : NSError.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| extension type _BlockArgs_1e1kc88._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_1e1kc88] that points to the same underlying object as [other]. |
| _BlockArgs_1e1kc88.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_1e1kc88] that wraps the given raw object pointer. |
| _BlockArgs_1e1kc88.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_1e1kc88]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_1e1kc88, |
| ); |
| } |
| |
| extension _BlockArgs_1e1kc88$Methods on _BlockArgs_1e1kc88 { |
| ffi.Pointer<ffi.Void> get arg0 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); |
| } |
| |
| NSPortMessage get arg1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); |
| return NSPortMessage.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| extension type _BlockArgs_1e56rsl._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_1e56rsl] that points to the same underlying object as [other]. |
| _BlockArgs_1e56rsl.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_1e56rsl] that wraps the given raw object pointer. |
| _BlockArgs_1e56rsl.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_1e56rsl]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_1e56rsl, |
| ); |
| } |
| |
| extension _BlockArgs_1e56rsl$Methods on _BlockArgs_1e56rsl { |
| objc.ObjCObject get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| DartNSUInteger get arg1 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg1); |
| } |
| |
| ffi.Pointer<ffi.Bool> get arg2 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); |
| } |
| } |
| |
| extension type _BlockArgs_1ebqbq6._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_1ebqbq6] that points to the same underlying object as [other]. |
| _BlockArgs_1ebqbq6.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_1ebqbq6] that wraps the given raw object pointer. |
| _BlockArgs_1ebqbq6.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_1ebqbq6]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_1ebqbq6, |
| ); |
| } |
| |
| extension _BlockArgs_1ebqbq6$Methods on _BlockArgs_1ebqbq6 { |
| DartNSUInteger get arg0 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg0); |
| } |
| |
| ffi.Pointer<ffi.Bool> get arg1 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg1); |
| } |
| } |
| |
| extension type _BlockArgs_1lk8uv7._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_1lk8uv7] that points to the same underlying object as [other]. |
| _BlockArgs_1lk8uv7.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_1lk8uv7] that wraps the given raw object pointer. |
| _BlockArgs_1lk8uv7.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_1lk8uv7]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_1lk8uv7, |
| ); |
| } |
| |
| extension _BlockArgs_1lk8uv7$Methods on _BlockArgs_1lk8uv7 { |
| NSURL? get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return $ret.address == 0 |
| ? null |
| : NSURL.fromPointer($ret, retain: true, release: true); |
| } |
| |
| NSError? get arg1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); |
| return $ret.address == 0 |
| ? null |
| : NSError.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| extension type _BlockArgs_1ltqoqj._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_1ltqoqj] that points to the same underlying object as [other]. |
| _BlockArgs_1ltqoqj.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_1ltqoqj] that wraps the given raw object pointer. |
| _BlockArgs_1ltqoqj.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_1ltqoqj]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_1ltqoqj, |
| ); |
| } |
| |
| extension _BlockArgs_1ltqoqj$Methods on _BlockArgs_1ltqoqj { |
| ffi.Pointer<ffi.Void> get arg0 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); |
| } |
| |
| DartNSUInteger get arg1 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg1); |
| } |
| } |
| |
| extension type _BlockArgs_1mvxr7g._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_1mvxr7g] that points to the same underlying object as [other]. |
| _BlockArgs_1mvxr7g.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_1mvxr7g] that wraps the given raw object pointer. |
| _BlockArgs_1mvxr7g.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_1mvxr7g]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_1mvxr7g, |
| ); |
| } |
| |
| extension _BlockArgs_1mvxr7g$Methods on _BlockArgs_1mvxr7g { |
| ffi.Pointer<ffi.Void> get arg0 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); |
| } |
| |
| NSString get arg1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| objc.ObjCObject get arg2 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| NSDictionary get arg3 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); |
| return NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| ffi.Pointer<ffi.Void> get arg4 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg4); |
| } |
| } |
| |
| extension type _BlockArgs_1pvrxoh._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_1pvrxoh] that points to the same underlying object as [other]. |
| _BlockArgs_1pvrxoh.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_1pvrxoh] that wraps the given raw object pointer. |
| _BlockArgs_1pvrxoh.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_1pvrxoh]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_1pvrxoh, |
| ); |
| } |
| |
| extension _BlockArgs_1pvrxoh$Methods on _BlockArgs_1pvrxoh { |
| NSString? get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return $ret.address == 0 |
| ? null |
| : NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| NSRange get arg1 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); |
| } |
| |
| NSRange get arg2 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg2); |
| } |
| |
| ffi.Pointer<ffi.Bool> get arg3 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg3); |
| } |
| } |
| |
| extension type _BlockArgs_1y7l7kf._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_1y7l7kf] that points to the same underlying object as [other]. |
| _BlockArgs_1y7l7kf.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_1y7l7kf] that wraps the given raw object pointer. |
| _BlockArgs_1y7l7kf.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_1y7l7kf]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_1y7l7kf, |
| ); |
| } |
| |
| extension _BlockArgs_1y7l7kf$Methods on _BlockArgs_1y7l7kf { |
| NSItemProviderWriting? get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return $ret.address == 0 |
| ? null |
| : NSItemProviderWriting.fromPointer($ret, retain: true, release: true); |
| } |
| |
| NSError? get arg1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); |
| return $ret.address == 0 |
| ? null |
| : NSError.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| extension type _BlockArgs_3djt55._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_3djt55] that points to the same underlying object as [other]. |
| _BlockArgs_3djt55.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_3djt55] that wraps the given raw object pointer. |
| _BlockArgs_3djt55.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_3djt55]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_3djt55, |
| ); |
| } |
| |
| extension _BlockArgs_3djt55$Methods on _BlockArgs_3djt55 { |
| ffi.Pointer<ffi.Void> get arg0 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); |
| } |
| |
| NSRange get arg1 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); |
| } |
| |
| ffi.Pointer<ffi.Bool> get arg2 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); |
| } |
| } |
| |
| extension type _BlockArgs_64fwqt._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_64fwqt] that points to the same underlying object as [other]. |
| _BlockArgs_64fwqt.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_64fwqt] that wraps the given raw object pointer. |
| _BlockArgs_64fwqt.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_64fwqt]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_64fwqt, |
| ); |
| } |
| |
| extension _BlockArgs_64fwqt$Methods on _BlockArgs_64fwqt { |
| ffi.Pointer<ffi.Void> get arg0 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); |
| } |
| |
| NSStream get arg1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); |
| return NSStream.fromPointer($ret, retain: true, release: true); |
| } |
| |
| DartNSUInteger get arg2 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1r2j3ge(_$$ref.pointer, _sel_arg2); |
| } |
| } |
| |
| extension type _BlockArgs_6yk1dr._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_6yk1dr] that points to the same underlying object as [other]. |
| _BlockArgs_6yk1dr.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_6yk1dr] that wraps the given raw object pointer. |
| _BlockArgs_6yk1dr.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_6yk1dr]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_6yk1dr, |
| ); |
| } |
| |
| extension _BlockArgs_6yk1dr$Methods on _BlockArgs_6yk1dr { |
| objc.ObjCBlock<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl>?, NSError)> |
| get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg0); |
| return ObjCBlock_ffiVoid_idNSSecureCoding_NSError.fromPointer( |
| $ret, |
| retain: true, |
| release: true, |
| ); |
| } |
| |
| objc.ObjCObject get arg1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| NSDictionary get arg2 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); |
| return NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| extension type _BlockArgs_awd5mj._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_awd5mj] that points to the same underlying object as [other]. |
| _BlockArgs_awd5mj.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_awd5mj] that wraps the given raw object pointer. |
| _BlockArgs_awd5mj.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_awd5mj]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_awd5mj, |
| ); |
| } |
| |
| extension _BlockArgs_awd5mj$Methods on _BlockArgs_awd5mj { |
| ffi.Pointer<ffi.Void> get arg0 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); |
| } |
| } |
| |
| extension type _BlockArgs_gk3fi2._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_gk3fi2] that points to the same underlying object as [other]. |
| _BlockArgs_gk3fi2.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_gk3fi2] that wraps the given raw object pointer. |
| _BlockArgs_gk3fi2.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_gk3fi2]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_gk3fi2, |
| ); |
| } |
| |
| extension _BlockArgs_gk3fi2$Methods on _BlockArgs_gk3fi2 { |
| objc.ObjCObject get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| objc.ObjCObject get arg1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| ffi.Pointer<ffi.Bool> get arg2 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); |
| } |
| } |
| |
| extension type _BlockArgs_ii17hk._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_ii17hk] that points to the same underlying object as [other]. |
| _BlockArgs_ii17hk.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_ii17hk] that wraps the given raw object pointer. |
| _BlockArgs_ii17hk.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_ii17hk]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_ii17hk, |
| ); |
| } |
| |
| extension _BlockArgs_ii17hk$Methods on _BlockArgs_ii17hk {} |
| |
| extension type _BlockArgs_kr40r0._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_kr40r0] that points to the same underlying object as [other]. |
| _BlockArgs_kr40r0.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_kr40r0] that wraps the given raw object pointer. |
| _BlockArgs_kr40r0.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_kr40r0]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_kr40r0, |
| ); |
| } |
| |
| extension _BlockArgs_kr40r0$Methods on _BlockArgs_kr40r0 { |
| NSTimer get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return NSTimer.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| extension type _BlockArgs_krrtfh._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_krrtfh] that points to the same underlying object as [other]. |
| _BlockArgs_krrtfh.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_krrtfh] that wraps the given raw object pointer. |
| _BlockArgs_krrtfh.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_krrtfh]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_krrtfh, |
| ); |
| } |
| |
| extension _BlockArgs_krrtfh$Methods on _BlockArgs_krrtfh { |
| NSSecureCoding? get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return $ret.address == 0 |
| ? null |
| : NSSecureCoding.fromPointer($ret, retain: true, release: true); |
| } |
| |
| NSError get arg1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); |
| return NSError.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| extension type _BlockArgs_ounrb4._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_ounrb4] that points to the same underlying object as [other]. |
| _BlockArgs_ounrb4.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_ounrb4] that wraps the given raw object pointer. |
| _BlockArgs_ounrb4.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_ounrb4]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_ounrb4, |
| ); |
| } |
| |
| extension _BlockArgs_ounrb4$Methods on _BlockArgs_ounrb4 { |
| NSString get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return NSString.fromPointer($ret, retain: true, release: true); |
| } |
| |
| ffi.Pointer<ffi.Bool> get arg1 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg1); |
| } |
| } |
| |
| extension type _BlockArgs_q6fcam._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_q6fcam] that points to the same underlying object as [other]. |
| _BlockArgs_q6fcam.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_q6fcam] that wraps the given raw object pointer. |
| _BlockArgs_q6fcam.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_q6fcam]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_q6fcam, |
| ); |
| } |
| |
| extension _BlockArgs_q6fcam$Methods on _BlockArgs_q6fcam { |
| objc.ObjCObject? get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return $ret.address == 0 |
| ? null |
| : objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| NSRange get arg1 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); |
| } |
| |
| ffi.Pointer<ffi.Bool> get arg2 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); |
| } |
| } |
| |
| extension type _BlockArgs_uckb5m._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_uckb5m] that points to the same underlying object as [other]. |
| _BlockArgs_uckb5m.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_uckb5m] that wraps the given raw object pointer. |
| _BlockArgs_uckb5m.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_uckb5m]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_uckb5m, |
| ); |
| } |
| |
| extension _BlockArgs_uckb5m$Methods on _BlockArgs_uckb5m { |
| NSRange get arg0 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg0); |
| } |
| |
| ffi.Pointer<ffi.Bool> get arg1 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg1); |
| } |
| } |
| |
| extension type _BlockArgs_v8in3._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_v8in3] that points to the same underlying object as [other]. |
| _BlockArgs_v8in3.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_v8in3] that wraps the given raw object pointer. |
| _BlockArgs_v8in3.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_v8in3]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_v8in3, |
| ); |
| } |
| |
| extension _BlockArgs_v8in3$Methods on _BlockArgs_v8in3 { |
| NSDictionary get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return NSDictionary.fromPointer($ret, retain: true, release: true); |
| } |
| |
| NSRange get arg1 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); |
| } |
| |
| ffi.Pointer<ffi.Bool> get arg2 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); |
| } |
| } |
| |
| extension type _BlockArgs_wnzfgp._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_wnzfgp] that points to the same underlying object as [other]. |
| _BlockArgs_wnzfgp.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_wnzfgp] that wraps the given raw object pointer. |
| _BlockArgs_wnzfgp.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_wnzfgp]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_wnzfgp, |
| ); |
| } |
| |
| extension _BlockArgs_wnzfgp$Methods on _BlockArgs_wnzfgp { |
| objc.ObjCObject get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return objc.ObjCObject($ret, retain: true, release: true); |
| } |
| |
| ffi.Pointer<ffi.Bool> get arg1 { |
| final _$$ref = object$.ref; |
| return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg1); |
| } |
| } |
| |
| extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_x5cg0] that points to the same underlying object as [other]. |
| _BlockArgs_x5cg0.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_x5cg0] that wraps the given raw object pointer. |
| _BlockArgs_x5cg0.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_x5cg0]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_x5cg0, |
| ); |
| } |
| |
| extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { |
| NSData? get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return $ret.address == 0 |
| ? null |
| : NSData.fromPointer($ret, retain: true, release: true); |
| } |
| |
| NSError? get arg1 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); |
| return $ret.address == 0 |
| ? null |
| : NSError.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_DOBJCObservation', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_DOBJCObservation_raw; |
| final _class_DOBJCObservation = objc.getClass( |
| "DOBJCObservation", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_DOBJCObservation_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_DOBJCDartInputStreamAdapter', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_DartInputStreamAdapter_raw; |
| final _class_DartInputStreamAdapter = objc.getClass( |
| "DOBJCDartInputStreamAdapter", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_DartInputStreamAdapter_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_DOBJCDartInputStreamAdapterWeakHolder', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> |
| _class_DartInputStreamAdapterWeakHolder_raw; |
| final _class_DartInputStreamAdapterWeakHolder = objc.getClass( |
| "DOBJCDartInputStreamAdapterWeakHolder", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_DartInputStreamAdapterWeakHolder_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_DOBJCDartProtocol', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_DartProtocol_raw; |
| final _class_DartProtocol = objc.getClass( |
| "DOBJCDartProtocol", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_DartProtocol_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_DOBJCDartProtocolBuilder', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_DartProtocolBuilder_raw; |
| final _class_DartProtocolBuilder = objc.getClass( |
| "DOBJCDartProtocolBuilder", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_DartProtocolBuilder_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSArray') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSArray_raw; |
| final _class_NSArray = objc.getClass( |
| "NSArray", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSArray_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSAttributedString', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSAttributedString_raw; |
| final _class_NSAttributedString = objc.getClass( |
| "NSAttributedString", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSAttributedString_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSAttributedStringMarkdownParsingOptions', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> |
| _class_NSAttributedStringMarkdownParsingOptions_raw; |
| final _class_NSAttributedStringMarkdownParsingOptions = objc.getClass( |
| "NSAttributedStringMarkdownParsingOptions", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSAttributedStringMarkdownParsingOptions_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSBundle') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSBundle_raw; |
| final _class_NSBundle = objc.getClass( |
| "NSBundle", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSBundle_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSCharacterSet', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSCharacterSet_raw; |
| final _class_NSCharacterSet = objc.getClass( |
| "NSCharacterSet", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSCharacterSet_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSCoder') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSCoder_raw; |
| final _class_NSCoder = objc.getClass( |
| "NSCoder", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSCoder_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSData') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSData_raw; |
| final _class_NSData = objc.getClass( |
| "NSData", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSData_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSDate') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSDate_raw; |
| final _class_NSDate = objc.getClass( |
| "NSDate", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSDate_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSDictionary', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSDictionary_raw; |
| final _class_NSDictionary = objc.getClass( |
| "NSDictionary", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSDictionary_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSEnumerator', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSEnumerator_raw; |
| final _class_NSEnumerator = objc.getClass( |
| "NSEnumerator", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSEnumerator_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSError') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSError_raw; |
| final _class_NSError = objc.getClass( |
| "NSError", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSError_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSIndexSet', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSIndexSet_raw; |
| final _class_NSIndexSet = objc.getClass( |
| "NSIndexSet", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSIndexSet_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSInputStream', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSInputStream_raw; |
| final _class_NSInputStream = objc.getClass( |
| "NSInputStream", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSInputStream_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSInvocation', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSInvocation_raw; |
| final _class_NSInvocation = objc.getClass( |
| "NSInvocation", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSInvocation_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSItemProvider', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSItemProvider_raw; |
| final _class_NSItemProvider = objc.getClass( |
| "NSItemProvider", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSItemProvider_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSLocale') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSLocale_raw; |
| final _class_NSLocale = objc.getClass( |
| "NSLocale", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSLocale_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSMethodSignature', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSMethodSignature_raw; |
| final _class_NSMethodSignature = objc.getClass( |
| "NSMethodSignature", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSMethodSignature_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSMutableArray', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSMutableArray_raw; |
| final _class_NSMutableArray = objc.getClass( |
| "NSMutableArray", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSMutableArray_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSMutableData', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSMutableData_raw; |
| final _class_NSMutableData = objc.getClass( |
| "NSMutableData", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSMutableData_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSMutableDictionary', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSMutableDictionary_raw; |
| final _class_NSMutableDictionary = objc.getClass( |
| "NSMutableDictionary", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSMutableDictionary_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSMutableIndexSet', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSMutableIndexSet_raw; |
| final _class_NSMutableIndexSet = objc.getClass( |
| "NSMutableIndexSet", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSMutableIndexSet_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSMutableOrderedSet', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSMutableOrderedSet_raw; |
| final _class_NSMutableOrderedSet = objc.getClass( |
| "NSMutableOrderedSet", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSMutableOrderedSet_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSMutableSet', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSMutableSet_raw; |
| final _class_NSMutableSet = objc.getClass( |
| "NSMutableSet", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSMutableSet_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSMutableString', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSMutableString_raw; |
| final _class_NSMutableString = objc.getClass( |
| "NSMutableString", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSMutableString_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSNotification', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSNotification_raw; |
| final _class_NSNotification = objc.getClass( |
| "NSNotification", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSNotification_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSNull') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSNull_raw; |
| final _class_NSNull = objc.getClass( |
| "NSNull", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSNull_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSNumber') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSNumber_raw; |
| final _class_NSNumber = objc.getClass( |
| "NSNumber", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSNumber_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSObject') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSObject_raw; |
| final _class_NSObject = objc.getClass( |
| "NSObject", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSObject_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSOrderedCollectionChange', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSOrderedCollectionChange_raw; |
| final _class_NSOrderedCollectionChange = objc.getClass( |
| "NSOrderedCollectionChange", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSOrderedCollectionChange_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSOrderedCollectionDifference', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> |
| _class_NSOrderedCollectionDifference_raw; |
| final _class_NSOrderedCollectionDifference = objc.getClass( |
| "NSOrderedCollectionDifference", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSOrderedCollectionDifference_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSOrderedSet', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSOrderedSet_raw; |
| final _class_NSOrderedSet = objc.getClass( |
| "NSOrderedSet", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSOrderedSet_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSOutputStream', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSOutputStream_raw; |
| final _class_NSOutputStream = objc.getClass( |
| "NSOutputStream", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSOutputStream_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSPort') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSPort_raw; |
| final _class_NSPort = objc.getClass( |
| "NSPort", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSPort_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSPortMessage', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSPortMessage_raw; |
| final _class_NSPortMessage = objc.getClass( |
| "NSPortMessage", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSPortMessage_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSProgress', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSProgress_raw; |
| final _class_NSProgress = objc.getClass( |
| "NSProgress", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSProgress_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSRunLoop') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSRunLoop_raw; |
| final _class_NSRunLoop = objc.getClass( |
| "NSRunLoop", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSRunLoop_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSSet') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSSet_raw; |
| final _class_NSSet = objc.getClass( |
| "NSSet", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSSet_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSStream') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSStream_raw; |
| final _class_NSStream = objc.getClass( |
| "NSStream", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSStream_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSString') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSString_raw; |
| final _class_NSString = objc.getClass( |
| "NSString", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSString_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSTimer') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSTimer_raw; |
| final _class_NSTimer = objc.getClass( |
| "NSTimer", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSTimer_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSURL') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSURL_raw; |
| final _class_NSURL = objc.getClass( |
| "NSURL", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSURL_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$_NSURLHandle', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSURLHandle_raw; |
| final _class_NSURLHandle = objc.getClass( |
| "NSURLHandle", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSURLHandle_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_NSValue') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_NSValue_raw; |
| final _class_NSValue = objc.getClass( |
| "NSValue", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_NSValue_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>(symbol: 'OBJC_CLASS_\$_Protocol') |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_Protocol_raw; |
| final _class_Protocol = objc.getClass( |
| "Protocol", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_Protocol_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_vhbh5h', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_139usnw_raw; |
| final _class__BlockArgs_139usnw = objc.getClass( |
| "_1wx624s_BlockArgs_vhbh5h", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_139usnw_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_18v1jvf', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1599z35_raw; |
| final _class__BlockArgs_1599z35 = objc.getClass( |
| "_1wx624s_BlockArgs_18v1jvf", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_1599z35_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_rnu2c5', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_18aygyv_raw; |
| final _class__BlockArgs_18aygyv = objc.getClass( |
| "_1wx624s_BlockArgs_rnu2c5", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_18aygyv_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_pfv6jd', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1dse6r3_raw; |
| final _class__BlockArgs_1dse6r3 = objc.getClass( |
| "_1wx624s_BlockArgs_pfv6jd", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_1dse6r3_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_18v1jvf', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1e1kc88_raw; |
| final _class__BlockArgs_1e1kc88 = objc.getClass( |
| "_1wx624s_BlockArgs_18v1jvf", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_1e1kc88_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_1p9ui4q', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1e56rsl_raw; |
| final _class__BlockArgs_1e56rsl = objc.getClass( |
| "_1wx624s_BlockArgs_1p9ui4q", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_1e56rsl_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_q5jeyk', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1ebqbq6_raw; |
| final _class__BlockArgs_1ebqbq6 = objc.getClass( |
| "_1wx624s_BlockArgs_q5jeyk", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_1ebqbq6_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_pfv6jd', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1lk8uv7_raw; |
| final _class__BlockArgs_1lk8uv7 = objc.getClass( |
| "_1wx624s_BlockArgs_pfv6jd", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_1lk8uv7_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_zuf90e', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1ltqoqj_raw; |
| final _class__BlockArgs_1ltqoqj = objc.getClass( |
| "_1wx624s_BlockArgs_zuf90e", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_1ltqoqj_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_1sr3ozv', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1mvxr7g_raw; |
| final _class__BlockArgs_1mvxr7g = objc.getClass( |
| "_1wx624s_BlockArgs_1sr3ozv", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_1mvxr7g_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_lmc3p5', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1pvrxoh_raw; |
| final _class__BlockArgs_1pvrxoh = objc.getClass( |
| "_1wx624s_BlockArgs_lmc3p5", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_1pvrxoh_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_pfv6jd', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1y7l7kf_raw; |
| final _class__BlockArgs_1y7l7kf = objc.getClass( |
| "_1wx624s_BlockArgs_pfv6jd", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_1y7l7kf_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_1q8ia8l', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_3djt55_raw; |
| final _class__BlockArgs_3djt55 = objc.getClass( |
| "_1wx624s_BlockArgs_1q8ia8l", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_3djt55_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_hoampi', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_64fwqt_raw; |
| final _class__BlockArgs_64fwqt = objc.getClass( |
| "_1wx624s_BlockArgs_hoampi", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_64fwqt_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_1b3bb6a', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_6yk1dr_raw; |
| final _class__BlockArgs_6yk1dr = objc.getClass( |
| "_1wx624s_BlockArgs_1b3bb6a", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_6yk1dr_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_ovsamd', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_awd5mj_raw; |
| final _class__BlockArgs_awd5mj = objc.getClass( |
| "_1wx624s_BlockArgs_ovsamd", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_awd5mj_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_1o83rbn', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_gk3fi2_raw; |
| final _class__BlockArgs_gk3fi2 = objc.getClass( |
| "_1wx624s_BlockArgs_1o83rbn", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_gk3fi2_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_1pl9qdv', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_ii17hk_raw; |
| final _class__BlockArgs_ii17hk = objc.getClass( |
| "_1wx624s_BlockArgs_1pl9qdv", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_ii17hk_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_xtuoz7', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_kr40r0_raw; |
| final _class__BlockArgs_kr40r0 = objc.getClass( |
| "_1wx624s_BlockArgs_xtuoz7", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_kr40r0_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_pfv6jd', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_krrtfh_raw; |
| final _class__BlockArgs_krrtfh = objc.getClass( |
| "_1wx624s_BlockArgs_pfv6jd", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_krrtfh_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_t8l8el', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_ounrb4_raw; |
| final _class__BlockArgs_ounrb4 = objc.getClass( |
| "_1wx624s_BlockArgs_t8l8el", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_ounrb4_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_1a22wz', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_q6fcam_raw; |
| final _class__BlockArgs_q6fcam = objc.getClass( |
| "_1wx624s_BlockArgs_1a22wz", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_q6fcam_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_zkjmn1', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_uckb5m_raw; |
| final _class__BlockArgs_uckb5m = objc.getClass( |
| "_1wx624s_BlockArgs_zkjmn1", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_uckb5m_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_1a22wz', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_v8in3_raw; |
| final _class__BlockArgs_v8in3 = objc.getClass( |
| "_1wx624s_BlockArgs_1a22wz", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_v8in3_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_t8l8el', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_wnzfgp_raw; |
| final _class__BlockArgs_wnzfgp = objc.getClass( |
| "_1wx624s_BlockArgs_t8l8el", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_wnzfgp_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__1wx624s_BlockArgs_pfv6jd', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_x5cg0_raw; |
| final _class__BlockArgs_x5cg0 = objc.getClass( |
| "_1wx624s_BlockArgs_pfv6jd", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_x5cg0_raw, |
| ).cast(), |
| ); |
| final _objc_msgSend_102xxo4 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ) |
| > |
| >() |
| .asFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_10mlopr = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_11cbyu0 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_11e9f5x = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Uint8>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Uint8>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_11spmsz = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_122v0cv = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_12py2ux = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_134vhyh = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ffi.UnsignedLong, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_13mclwd = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Char, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_13x5boi = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_13yqbb6 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_14ew8zr = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_14hpxwa = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_14hvw5k = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Int, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_14wwtbv = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Double, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Bool, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| double, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| bool, |
| ) |
| >(); |
| final _objc_msgSend_151sglz = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_158ju31 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Uint8>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Uint8>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_15bolr3 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_15qeuct = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_161ne8y = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ffi.UnsignedLong, |
| ffi.Bool, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| int, |
| bool, |
| ) |
| >(); |
| final _objc_msgSend_1698hqz = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_16f0drb = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.LongLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_16fy0up = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1776v9k = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ffi.Pointer<NSRange>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<NSRange>, |
| ) |
| >(); |
| final _objc_msgSend_177cajs = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_17amj0z = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Bool, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| bool, |
| ) |
| >(); |
| final _objc_msgSend_17gvxvj = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Int64, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_182fzon = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_187k8ck = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1895u4n = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| NSRange, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| NSRange, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_18qun1e = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_194u5n2 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_19lrthf = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<ffi.Uint8>>, |
| ffi.Pointer<ffi.UnsignedLong>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<ffi.Uint8>>, |
| ffi.Pointer<ffi.UnsignedLong>, |
| ) |
| >(); |
| final _objc_msgSend_19nvye5 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1alewu7 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.UnsignedLong>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.UnsignedLong>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_1ay2tmt = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Long, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1b5ysjl = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<NSFastEnumerationState>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1bbja28 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<CFRunLoop> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<CFRunLoop> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1ceswyu = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Bool>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_1co9mn4 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedShort, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1cwp428 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<NSZone>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<NSZone>, |
| ) |
| >(); |
| final _objc_msgSend_1d8s65w = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_1d9e4oe = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1deg8x = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedShort Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1dom33q = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_1dydpdi = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1e3pm0z = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_1efxbd8 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| NSUInteger Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1egc1c = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Long, |
| ffi.UnsignedLong, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| int, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1flkydz = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(); |
| final _objc_msgSend_1fpqavf = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1frfu5e = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1fuqfwb = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<ffi.Char> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<ffi.Char> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1ged0jd = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Bool, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| bool, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1gypgok = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1h2q612 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<ffi.UnsignedLong> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<ffi.UnsignedLong> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1hz7y9r = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1i0cxyc = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Int64, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1i9r4xy = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1i9v144 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1iyq28l = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Bool, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| bool, |
| ) |
| >(); |
| final _objc_msgSend_1j9bhml = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_1jiinfj = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(); |
| final _objc_msgSend_1jtxufi = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<ffi.Char> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<ffi.Char> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1jwityx = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Short Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1k0ezzm = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_1k101e3 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.LongLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1k1akuq = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<NSRange>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<NSRange>, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_1k1o1s7 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_1k4kd9s = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1k745tv = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Long, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1ko4qka = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedChar Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1kok4b = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1lbgrac = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ffi.UnsignedLong, |
| ffi.UnsignedLong, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| int, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1lhpu4m = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_1lsax7n = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1lv8yz3 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| ffi.UnsignedLong, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| int, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1lx39cp = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(); |
| final _objc_msgSend_1m7prh1 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Int64, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1n40f6p = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| ffi.Bool, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| bool, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1njucl2 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedShort, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1nmlvqc = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_1nomli1 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_1nufwnz = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.NativeFunction<ffi.Void Function()>>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.NativeFunction<ffi.Void Function()>>, |
| ) |
| >(); |
| final _objc_msgSend_1oteutl = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_1ovaulg = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCSelector> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCSelector> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1ozwf6k = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Double, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| double, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1p4gbjy = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedLongLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1pl40xc = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Long, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1pl4k3n = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(); |
| final _objc_msgSend_1pl9qdv = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1pnyuds = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_1pp2gs8 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ffi.Pointer<NSRange>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<NSRange>, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_1q30cs4 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1qv0eq4 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1r2j3ge = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| NSUInteger Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1r6ymhb = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1s0rfm3 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Double, |
| ffi.Bool, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| double, |
| bool, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1s2gdyk = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<ffi.Char>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<ffi.Char>, |
| ) |
| >(); |
| final _objc_msgSend_1s56lr9 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Bool, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| bool, |
| ) |
| >(); |
| final _objc_msgSend_1sbro63 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<ffi.Bool> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<ffi.Bool> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1sotr3r = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1srf6wk = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1t6aok9 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Bool, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| bool, |
| ) |
| >(); |
| final _objc_msgSend_1tfztp = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1tiux5i = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_1tv4uax = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1u11dbb = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1ukqyt8 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Double Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| double Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Double Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| double Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_1vd1c5m = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1vnlaqg = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Long, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_1vxoo9h = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_1wdb8ji = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Long, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1wt9a7r = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_1x2hskc = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLongLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1x5ew3h = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1xi08ar = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_1xpk2hb = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Uint32, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1ya1kjn = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Int64, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_1ym6zyw = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_2cgrxl = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Float Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| double Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Float Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| double Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_2u4jm6 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_3cbdpb = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_3cnxxu = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<ffi.NativeFunction<ffi.Void Function()>> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<ffi.NativeFunction<ffi.Void Function()>> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_3ctkt6 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_3fn4ca = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_3l8zum = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_3nbx5e = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_3pyzne = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedInt Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_553v = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Int64, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Int64, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_56zxyn = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| ) |
| >(); |
| final _objc_msgSend_68x6r1 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Short, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_6ex6p5 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<ffi.Void> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<ffi.Void> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_6jmuyz = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_6peh6o = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_6z4k82 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_7g3u2y = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Long, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_7km9vu = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<NSRange>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<NSRange>, |
| ) |
| >(); |
| final _objc_msgSend_7kpg7m = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_7uautw = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedChar, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_8321cp = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_898fog = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.UnsignedShort>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.UnsignedShort>, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_89xgla = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.UnsignedLong>, |
| ffi.UnsignedLong, |
| ffi.Pointer<NSRange>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.UnsignedLong>, |
| int, |
| ffi.Pointer<NSRange>, |
| ) |
| >(); |
| final _objc_msgSend_8cymbm = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_91o635 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_9a64f1 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Double, |
| ffi.Bool, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| double, |
| bool, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_9b3h4v = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ffi.UnsignedLong, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| int, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_9x4k8x = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.UnsignedShort>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.UnsignedShort>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_a3wp08 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_arew0j = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_bfp043 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_bstjp9 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_c0vg4w = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ffi.Pointer<ffi.Void>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ffi.Pointer<ffi.Void>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_cfx8ce = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_cnxxyq = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_d3i1uy = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_dbvvll = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Int64, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_degb40 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedInt, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_diypgk = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_djsa9o = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_dv3z6r = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Bool, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| bool, |
| int, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_e3qsqz = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCProtocolImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCProtocolImpl>, |
| ) |
| >(); |
| final _objc_msgSend_e9mncn = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<ffi.Char>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Pointer<ffi.Char>, |
| ) |
| >(); |
| final _objc_msgSend_eh32gn = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(); |
| final _objc_msgSend_erqryg = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_et8cuh = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Float, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| double, |
| ) |
| >(); |
| final _objc_msgSend_f167m6 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_gcjqkl = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_gerswc = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Uint8, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_gg0462 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| NSRange, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| NSRange, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_gupwtj = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_gx50so = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_h0o9ch = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_hc8exi = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_hiwitm = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ffi.Bool, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| bool, |
| ) |
| >(); |
| final _objc_msgSend_hwm8nu = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Double, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| double, |
| ) |
| >(); |
| final _objc_msgSend_i30zh3 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ffi.UnsignedLong, |
| ffi.Pointer<ffi.UnsignedLong>, |
| ffi.UnsignedLong, |
| NSUInteger, |
| NSRange, |
| ffi.Pointer<NSRange>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| int, |
| ffi.Pointer<ffi.UnsignedLong>, |
| int, |
| int, |
| NSRange, |
| ffi.Pointer<NSRange>, |
| ) |
| >(); |
| final _objc_msgSend_ipgwfh = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_jjgvjt = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_jsclrq = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedInt, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_k1x6mt = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_k4j8m3 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ffi.UnsignedLong, |
| ffi.UnsignedLong, |
| ffi.Bool, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| int, |
| int, |
| bool, |
| ) |
| >(); |
| final _objc_msgSend_kshx9d = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_l9p60w = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ) |
| >(); |
| final _objc_msgSend_lh0jh5 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.UnsignedShort>, |
| ffi.UnsignedLong, |
| ffi.Bool, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.UnsignedShort>, |
| int, |
| bool, |
| ) |
| >(); |
| final _objc_msgSend_mabicu = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Double Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| double Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_mabicuFpret = objc.msgSendFpretPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Double Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| double Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_mt0t38 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Long, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_n2svg2 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_nc6uds = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| ffi.Pointer<ffi.Void>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Char>, |
| ffi.Pointer<ffi.Void>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_nnxkei = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_o16d3k = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_o762yo = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_oa8mke = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Double, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| double, |
| ) |
| >(); |
| final _objc_msgSend_ot6jdx = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Double, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Bool, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| double, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| bool, |
| ) |
| >(); |
| final _objc_msgSend_otx1t4 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.UnsignedLong, |
| ffi.Long, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_ourvf2 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.UnsignedLong>, |
| ffi.Pointer<ffi.UnsignedLong>, |
| ffi.Pointer<ffi.UnsignedLong>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.UnsignedLong>, |
| ffi.Pointer<ffi.UnsignedLong>, |
| ffi.Pointer<ffi.UnsignedLong>, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_ovsamd = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(); |
| final _objc_msgSend_p4nurx = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_pckm9h = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<ffi.Void>, |
| ) |
| > |
| >, |
| ffi.Pointer<ffi.Void>, |
| ) |
| >(); |
| final _objc_msgSend_pfv6jd = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_pg1fnv = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_pysgoz = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Int64 Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_qm9f5w = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_qugqlf = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Long, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_r0bo0s = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_r49ehc = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Double, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Bool, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| double, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| bool, |
| ) |
| >(); |
| final _objc_msgSend_rc4ypv = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Long, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_s058d2 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_s92gih = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_sz90oi = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<NSZone> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<NSZone> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_t7arir = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Long, |
| ffi.Long, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_talwei = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.UnsignedShort>, |
| ffi.UnsignedLong, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.UnsignedShort>, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_ud8gg = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedShort Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_uimyc7 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| NSRange Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_unr2j3 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ffi.Long, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_usggvf = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Uint32 Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_uwvaik = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_vbymrb = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Long, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_w9bq5x = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ffi.Bool, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| bool, |
| ) |
| >(); |
| final _objc_msgSend_xe84da = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<ffi.UnsignedShort> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<ffi.UnsignedShort> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_xmlz1t = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Char Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_xpqfd7 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_xrqic1 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Long Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSUInteger, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| int, |
| NSRange, |
| ) |
| >(); |
| final _objc_msgSend_xtuoz7 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_xw2lbc = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_ylninc = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSUInteger, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_yx8yc6 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| NSUInteger, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| int, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_zmbtbd = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_zuf90e = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| ffi.UnsignedLong, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<ffi.Void>, |
| int, |
| ) |
| >(); |
| final _objc_msgSend_zug4wi = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.UnsignedLong Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ) |
| > |
| >() |
| .asFunction< |
| int Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| NSRange, |
| ) |
| >(); |
| @ffi.Native<ffi.Pointer<objc.ObjCProtocolImpl> Function()>( |
| symbol: '_1wx624s_NSCoding', |
| ) |
| external ffi.Pointer<objc.ObjCProtocolImpl> _protocol_NSCoding_raw(); |
| final _protocol_NSCoding = objc.getProtocol("NSCoding", _protocol_NSCoding_raw); |
| @ffi.Native<ffi.Pointer<objc.ObjCProtocolImpl> Function()>( |
| symbol: '_1wx624s_NSCopying', |
| ) |
| external ffi.Pointer<objc.ObjCProtocolImpl> _protocol_NSCopying_raw(); |
| final _protocol_NSCopying = objc.getProtocol( |
| "NSCopying", |
| _protocol_NSCopying_raw, |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCProtocolImpl> Function()>( |
| symbol: '_1wx624s_NSFastEnumeration', |
| ) |
| external ffi.Pointer<objc.ObjCProtocolImpl> _protocol_NSFastEnumeration_raw(); |
| final _protocol_NSFastEnumeration = objc.getProtocol( |
| "NSFastEnumeration", |
| _protocol_NSFastEnumeration_raw, |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCProtocolImpl> Function()>( |
| symbol: '_1wx624s_NSItemProviderReading', |
| ) |
| external ffi.Pointer<objc.ObjCProtocolImpl> |
| _protocol_NSItemProviderReading_raw(); |
| final _protocol_NSItemProviderReading = objc.getProtocol( |
| "NSItemProviderReading", |
| _protocol_NSItemProviderReading_raw, |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCProtocolImpl> Function()>( |
| symbol: '_1wx624s_NSItemProviderWriting', |
| ) |
| external ffi.Pointer<objc.ObjCProtocolImpl> |
| _protocol_NSItemProviderWriting_raw(); |
| final _protocol_NSItemProviderWriting = objc.getProtocol( |
| "NSItemProviderWriting", |
| _protocol_NSItemProviderWriting_raw, |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCProtocolImpl> Function()>( |
| symbol: '_1wx624s_NSMutableCopying', |
| ) |
| external ffi.Pointer<objc.ObjCProtocolImpl> _protocol_NSMutableCopying_raw(); |
| final _protocol_NSMutableCopying = objc.getProtocol( |
| "NSMutableCopying", |
| _protocol_NSMutableCopying_raw, |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCProtocolImpl> Function()>( |
| symbol: '_1wx624s_NSObject', |
| ) |
| external ffi.Pointer<objc.ObjCProtocolImpl> _protocol_NSObject_raw(); |
| final _protocol_NSObject = objc.getProtocol("NSObject", _protocol_NSObject_raw); |
| @ffi.Native<ffi.Pointer<objc.ObjCProtocolImpl> Function()>( |
| symbol: '_1wx624s_NSPortDelegate', |
| ) |
| external ffi.Pointer<objc.ObjCProtocolImpl> _protocol_NSPortDelegate_raw(); |
| final _protocol_NSPortDelegate = objc.getProtocol( |
| "NSPortDelegate", |
| _protocol_NSPortDelegate_raw, |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCProtocolImpl> Function()>( |
| symbol: '_1wx624s_NSSecureCoding', |
| ) |
| external ffi.Pointer<objc.ObjCProtocolImpl> _protocol_NSSecureCoding_raw(); |
| final _protocol_NSSecureCoding = objc.getProtocol( |
| "NSSecureCoding", |
| _protocol_NSSecureCoding_raw, |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCProtocolImpl> Function()>( |
| symbol: '_1wx624s_NSStreamDelegate', |
| ) |
| external ffi.Pointer<objc.ObjCProtocolImpl> _protocol_NSStreamDelegate_raw(); |
| final _protocol_NSStreamDelegate = objc.getProtocol( |
| "NSStreamDelegate", |
| _protocol_NSStreamDelegate_raw, |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCProtocolImpl> Function()>( |
| symbol: '_1wx624s_Observer', |
| ) |
| external ffi.Pointer<objc.ObjCProtocolImpl> _protocol_Observer_raw(); |
| final _protocol_Observer = objc.getProtocol("Observer", _protocol_Observer_raw); |
| late final _sel_URLByResolvingAliasFileAtURL_options_error_ = objc.registerName( |
| "URLByResolvingAliasFileAtURL:options:error:", |
| ); |
| late final _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_ = |
| objc.registerName( |
| "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:", |
| ); |
| late final _sel_URLForAuxiliaryExecutable_ = objc.registerName( |
| "URLForAuxiliaryExecutable:", |
| ); |
| late final _sel_URLForResource_withExtension_ = objc.registerName( |
| "URLForResource:withExtension:", |
| ); |
| late final _sel_URLForResource_withExtension_subdirectory_ = objc.registerName( |
| "URLForResource:withExtension:subdirectory:", |
| ); |
| late final _sel_URLForResource_withExtension_subdirectory_inBundleWithURL_ = |
| objc.registerName( |
| "URLForResource:withExtension:subdirectory:inBundleWithURL:", |
| ); |
| late final _sel_URLForResource_withExtension_subdirectory_localization_ = objc |
| .registerName("URLForResource:withExtension:subdirectory:localization:"); |
| late final _sel_URLWithDataRepresentation_relativeToURL_ = objc.registerName( |
| "URLWithDataRepresentation:relativeToURL:", |
| ); |
| late final _sel_URLWithString_ = objc.registerName("URLWithString:"); |
| late final _sel_URLWithString_encodingInvalidCharacters_ = objc.registerName( |
| "URLWithString:encodingInvalidCharacters:", |
| ); |
| late final _sel_URLWithString_relativeToURL_ = objc.registerName( |
| "URLWithString:relativeToURL:", |
| ); |
| late final _sel_URLsForResourcesWithExtension_subdirectory_ = objc.registerName( |
| "URLsForResourcesWithExtension:subdirectory:", |
| ); |
| late final _sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_ = |
| objc.registerName( |
| "URLsForResourcesWithExtension:subdirectory:inBundleWithURL:", |
| ); |
| late final _sel_URLsForResourcesWithExtension_subdirectory_localization_ = objc |
| .registerName("URLsForResourcesWithExtension:subdirectory:localization:"); |
| late final _sel_UTF8String = objc.registerName("UTF8String"); |
| late final _sel_absoluteString = objc.registerName("absoluteString"); |
| late final _sel_absoluteURL = objc.registerName("absoluteURL"); |
| late final _sel_absoluteURLWithDataRepresentation_relativeToURL_ = objc |
| .registerName("absoluteURLWithDataRepresentation:relativeToURL:"); |
| late final _sel_acceptInputForMode_beforeDate_ = objc.registerName( |
| "acceptInputForMode:beforeDate:", |
| ); |
| late final _sel_adapter = objc.registerName("adapter"); |
| late final _sel_addChild_withPendingUnitCount_ = objc.registerName( |
| "addChild:withPendingUnitCount:", |
| ); |
| late final _sel_addData_ = objc.registerName("addData:"); |
| late final _sel_addEntriesFromDictionary_ = objc.registerName( |
| "addEntriesFromDictionary:", |
| ); |
| late final _sel_addIndex_ = objc.registerName("addIndex:"); |
| late final _sel_addIndexesInRange_ = objc.registerName("addIndexesInRange:"); |
| late final _sel_addIndexes_ = objc.registerName("addIndexes:"); |
| late final _sel_addObject_ = objc.registerName("addObject:"); |
| late final _sel_addObjectsFromArray_ = objc.registerName( |
| "addObjectsFromArray:", |
| ); |
| late final _sel_addObjects_count_ = objc.registerName("addObjects:count:"); |
| late final _sel_addPort_forMode_ = objc.registerName("addPort:forMode:"); |
| late final _sel_addProtocol_ = objc.registerName("addProtocol:"); |
| late final _sel_addSubscriberForFileURL_withPublishingHandler_ = objc |
| .registerName("addSubscriberForFileURL:withPublishingHandler:"); |
| late final _sel_addTimer_forMode_ = objc.registerName("addTimer:forMode:"); |
| late final _sel_allBundles = objc.registerName("allBundles"); |
| late final _sel_allFrameworks = objc.registerName("allFrameworks"); |
| late final _sel_allKeys = objc.registerName("allKeys"); |
| late final _sel_allKeysForObject_ = objc.registerName("allKeysForObject:"); |
| late final _sel_allObjects = objc.registerName("allObjects"); |
| late final _sel_allValues = objc.registerName("allValues"); |
| late final _sel_alloc = objc.registerName("alloc"); |
| late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); |
| late final _sel_allowsExtendedAttributes = objc.registerName( |
| "allowsExtendedAttributes", |
| ); |
| late final _sel_alphanumericCharacterSet = objc.registerName( |
| "alphanumericCharacterSet", |
| ); |
| late final _sel_anyObject = objc.registerName("anyObject"); |
| late final _sel_appStoreReceiptURL = objc.registerName("appStoreReceiptURL"); |
| late final _sel_appendBytes_length_ = objc.registerName("appendBytes:length:"); |
| late final _sel_appendData_ = objc.registerName("appendData:"); |
| late final _sel_appliesSourcePositionAttributes = objc.registerName( |
| "appliesSourcePositionAttributes", |
| ); |
| late final _sel_arg0 = objc.registerName("arg0"); |
| late final _sel_arg1 = objc.registerName("arg1"); |
| late final _sel_arg2 = objc.registerName("arg2"); |
| late final _sel_arg3 = objc.registerName("arg3"); |
| late final _sel_arg4 = objc.registerName("arg4"); |
| late final _sel_argumentsRetained = objc.registerName("argumentsRetained"); |
| late final _sel_array = objc.registerName("array"); |
| late final _sel_arrayByAddingObject_ = objc.registerName( |
| "arrayByAddingObject:", |
| ); |
| late final _sel_arrayByAddingObjectsFromArray_ = objc.registerName( |
| "arrayByAddingObjectsFromArray:", |
| ); |
| late final _sel_arrayWithArray_ = objc.registerName("arrayWithArray:"); |
| late final _sel_arrayWithCapacity_ = objc.registerName("arrayWithCapacity:"); |
| late final _sel_arrayWithContentsOfFile_ = objc.registerName( |
| "arrayWithContentsOfFile:", |
| ); |
| late final _sel_arrayWithContentsOfURL_ = objc.registerName( |
| "arrayWithContentsOfURL:", |
| ); |
| late final _sel_arrayWithContentsOfURL_error_ = objc.registerName( |
| "arrayWithContentsOfURL:error:", |
| ); |
| late final _sel_arrayWithObject_ = objc.registerName("arrayWithObject:"); |
| late final _sel_arrayWithObjects_ = objc.registerName("arrayWithObjects:"); |
| late final _sel_arrayWithObjects_count_ = objc.registerName( |
| "arrayWithObjects:count:", |
| ); |
| late final _sel_associatedIndex = objc.registerName("associatedIndex"); |
| late final _sel_attribute_atIndex_effectiveRange_ = objc.registerName( |
| "attribute:atIndex:effectiveRange:", |
| ); |
| late final _sel_attribute_atIndex_longestEffectiveRange_inRange_ = objc |
| .registerName("attribute:atIndex:longestEffectiveRange:inRange:"); |
| late final _sel_attributedSubstringFromRange_ = objc.registerName( |
| "attributedSubstringFromRange:", |
| ); |
| late final _sel_attributesAtIndex_effectiveRange_ = objc.registerName( |
| "attributesAtIndex:effectiveRange:", |
| ); |
| late final _sel_attributesAtIndex_longestEffectiveRange_inRange_ = objc |
| .registerName("attributesAtIndex:longestEffectiveRange:inRange:"); |
| late final _sel_autorelease = objc.registerName("autorelease"); |
| late final _sel_autoupdatingCurrentLocale = objc.registerName( |
| "autoupdatingCurrentLocale", |
| ); |
| late final _sel_availableStringEncodings = objc.registerName( |
| "availableStringEncodings", |
| ); |
| late final _sel_base64EncodedDataWithOptions_ = objc.registerName( |
| "base64EncodedDataWithOptions:", |
| ); |
| late final _sel_base64EncodedStringWithOptions_ = objc.registerName( |
| "base64EncodedStringWithOptions:", |
| ); |
| late final _sel_baseURL = objc.registerName("baseURL"); |
| late final _sel_becomeCurrentWithPendingUnitCount_ = objc.registerName( |
| "becomeCurrentWithPendingUnitCount:", |
| ); |
| late final _sel_bitmapRepresentation = objc.registerName( |
| "bitmapRepresentation", |
| ); |
| late final _sel_bookmarkDataWithContentsOfURL_error_ = objc.registerName( |
| "bookmarkDataWithContentsOfURL:error:", |
| ); |
| late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_ = |
| objc.registerName( |
| "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:", |
| ); |
| late final _sel_boolValue = objc.registerName("boolValue"); |
| late final _sel_buildInstance_ = objc.registerName("buildInstance:"); |
| late final _sel_builtInPlugInsPath = objc.registerName("builtInPlugInsPath"); |
| late final _sel_builtInPlugInsURL = objc.registerName("builtInPlugInsURL"); |
| late final _sel_bundleForClass_ = objc.registerName("bundleForClass:"); |
| late final _sel_bundleIdentifier = objc.registerName("bundleIdentifier"); |
| late final _sel_bundlePath = objc.registerName("bundlePath"); |
| late final _sel_bundleURL = objc.registerName("bundleURL"); |
| late final _sel_bundleWithIdentifier_ = objc.registerName( |
| "bundleWithIdentifier:", |
| ); |
| late final _sel_bundleWithPath_ = objc.registerName("bundleWithPath:"); |
| late final _sel_bundleWithURL_ = objc.registerName("bundleWithURL:"); |
| late final _sel_bytes = objc.registerName("bytes"); |
| late final _sel_cStringUsingEncoding_ = objc.registerName( |
| "cStringUsingEncoding:", |
| ); |
| late final _sel_canBeConvertedToEncoding_ = objc.registerName( |
| "canBeConvertedToEncoding:", |
| ); |
| late final _sel_canLoadObjectOfClass_ = objc.registerName( |
| "canLoadObjectOfClass:", |
| ); |
| late final _sel_cancel = objc.registerName("cancel"); |
| late final _sel_cancellationHandler = objc.registerName("cancellationHandler"); |
| late final _sel_capitalizedLetterCharacterSet = objc.registerName( |
| "capitalizedLetterCharacterSet", |
| ); |
| late final _sel_capitalizedString = objc.registerName("capitalizedString"); |
| late final _sel_capitalizedStringWithLocale_ = objc.registerName( |
| "capitalizedStringWithLocale:", |
| ); |
| late final _sel_caseInsensitiveCompare_ = objc.registerName( |
| "caseInsensitiveCompare:", |
| ); |
| late final _sel_changeType = objc.registerName("changeType"); |
| late final _sel_changeWithObject_type_index_ = objc.registerName( |
| "changeWithObject:type:index:", |
| ); |
| late final _sel_changeWithObject_type_index_associatedIndex_ = objc |
| .registerName("changeWithObject:type:index:associatedIndex:"); |
| late final _sel_charValue = objc.registerName("charValue"); |
| late final _sel_characterAtIndex_ = objc.registerName("characterAtIndex:"); |
| late final _sel_characterIsMember_ = objc.registerName("characterIsMember:"); |
| late final _sel_characterSetWithBitmapRepresentation_ = objc.registerName( |
| "characterSetWithBitmapRepresentation:", |
| ); |
| late final _sel_characterSetWithCharactersInString_ = objc.registerName( |
| "characterSetWithCharactersInString:", |
| ); |
| late final _sel_characterSetWithContentsOfFile_ = objc.registerName( |
| "characterSetWithContentsOfFile:", |
| ); |
| late final _sel_characterSetWithRange_ = objc.registerName( |
| "characterSetWithRange:", |
| ); |
| late final _sel_class = objc.registerName("class"); |
| late final _sel_classNamed_ = objc.registerName("classNamed:"); |
| late final _sel_close = objc.registerName("close"); |
| late final _sel_code = objc.registerName("code"); |
| late final _sel_commonPrefixWithString_options_ = objc.registerName( |
| "commonPrefixWithString:options:", |
| ); |
| late final _sel_compare_ = objc.registerName("compare:"); |
| late final _sel_compare_options_ = objc.registerName("compare:options:"); |
| late final _sel_compare_options_range_ = objc.registerName( |
| "compare:options:range:", |
| ); |
| late final _sel_compare_options_range_locale_ = objc.registerName( |
| "compare:options:range:locale:", |
| ); |
| late final _sel_completedUnitCount = objc.registerName("completedUnitCount"); |
| late final _sel_components = objc.registerName("components"); |
| late final _sel_componentsJoinedByString_ = objc.registerName( |
| "componentsJoinedByString:", |
| ); |
| late final _sel_componentsSeparatedByCharactersInSet_ = objc.registerName( |
| "componentsSeparatedByCharactersInSet:", |
| ); |
| late final _sel_componentsSeparatedByString_ = objc.registerName( |
| "componentsSeparatedByString:", |
| ); |
| late final _sel_compressedDataUsingAlgorithm_error_ = objc.registerName( |
| "compressedDataUsingAlgorithm:error:", |
| ); |
| late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); |
| late final _sel_containsIndex_ = objc.registerName("containsIndex:"); |
| late final _sel_containsIndexesInRange_ = objc.registerName( |
| "containsIndexesInRange:", |
| ); |
| late final _sel_containsIndexes_ = objc.registerName("containsIndexes:"); |
| late final _sel_containsObject_ = objc.registerName("containsObject:"); |
| late final _sel_containsString_ = objc.registerName("containsString:"); |
| late final _sel_controlCharacterSet = objc.registerName("controlCharacterSet"); |
| late final _sel_copy = objc.registerName("copy"); |
| late final _sel_copyWithZone_ = objc.registerName("copyWithZone:"); |
| late final _sel_count = objc.registerName("count"); |
| late final _sel_countByEnumeratingWithState_objects_count_ = objc.registerName( |
| "countByEnumeratingWithState:objects:count:", |
| ); |
| late final _sel_countOfIndexesInRange_ = objc.registerName( |
| "countOfIndexesInRange:", |
| ); |
| late final _sel_currentLocale = objc.registerName("currentLocale"); |
| late final _sel_currentMode = objc.registerName("currentMode"); |
| late final _sel_currentProgress = objc.registerName("currentProgress"); |
| late final _sel_currentRunLoop = objc.registerName("currentRunLoop"); |
| late final _sel_data = objc.registerName("data"); |
| late final _sel_dataRepresentation = objc.registerName("dataRepresentation"); |
| late final _sel_dataUsingEncoding_ = objc.registerName("dataUsingEncoding:"); |
| late final _sel_dataUsingEncoding_allowLossyConversion_ = objc.registerName( |
| "dataUsingEncoding:allowLossyConversion:", |
| ); |
| late final _sel_dataWithBytesNoCopy_length_ = objc.registerName( |
| "dataWithBytesNoCopy:length:", |
| ); |
| late final _sel_dataWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( |
| "dataWithBytesNoCopy:length:freeWhenDone:", |
| ); |
| late final _sel_dataWithBytes_length_ = objc.registerName( |
| "dataWithBytes:length:", |
| ); |
| late final _sel_dataWithCapacity_ = objc.registerName("dataWithCapacity:"); |
| late final _sel_dataWithContentsOfFile_ = objc.registerName( |
| "dataWithContentsOfFile:", |
| ); |
| late final _sel_dataWithContentsOfFile_options_error_ = objc.registerName( |
| "dataWithContentsOfFile:options:error:", |
| ); |
| late final _sel_dataWithContentsOfURL_ = objc.registerName( |
| "dataWithContentsOfURL:", |
| ); |
| late final _sel_dataWithContentsOfURL_options_error_ = objc.registerName( |
| "dataWithContentsOfURL:options:error:", |
| ); |
| late final _sel_dataWithData_ = objc.registerName("dataWithData:"); |
| late final _sel_dataWithLength_ = objc.registerName("dataWithLength:"); |
| late final _sel_date = objc.registerName("date"); |
| late final _sel_dateByAddingTimeInterval_ = objc.registerName( |
| "dateByAddingTimeInterval:", |
| ); |
| late final _sel_dateWithTimeIntervalSince1970_ = objc.registerName( |
| "dateWithTimeIntervalSince1970:", |
| ); |
| late final _sel_dateWithTimeIntervalSinceNow_ = objc.registerName( |
| "dateWithTimeIntervalSinceNow:", |
| ); |
| late final _sel_dateWithTimeIntervalSinceReferenceDate_ = objc.registerName( |
| "dateWithTimeIntervalSinceReferenceDate:", |
| ); |
| late final _sel_dateWithTimeInterval_sinceDate_ = objc.registerName( |
| "dateWithTimeInterval:sinceDate:", |
| ); |
| late final _sel_dealloc = objc.registerName("dealloc"); |
| late final _sel_debugDescription = objc.registerName("debugDescription"); |
| late final _sel_debugObserver = objc.registerName("debugObserver"); |
| late final _sel_decimalDigitCharacterSet = objc.registerName( |
| "decimalDigitCharacterSet", |
| ); |
| late final _sel_decodeDataObject = objc.registerName("decodeDataObject"); |
| late final _sel_decodeValueOfObjCType_at_size_ = objc.registerName( |
| "decodeValueOfObjCType:at:size:", |
| ); |
| late final _sel_decomposableCharacterSet = objc.registerName( |
| "decomposableCharacterSet", |
| ); |
| late final _sel_decomposedStringWithCanonicalMapping = objc.registerName( |
| "decomposedStringWithCanonicalMapping", |
| ); |
| late final _sel_decomposedStringWithCompatibilityMapping = objc.registerName( |
| "decomposedStringWithCompatibilityMapping", |
| ); |
| late final _sel_decompressedDataUsingAlgorithm_error_ = objc.registerName( |
| "decompressedDataUsingAlgorithm:error:", |
| ); |
| late final _sel_defaultCStringEncoding = objc.registerName( |
| "defaultCStringEncoding", |
| ); |
| late final _sel_delegate = objc.registerName("delegate"); |
| late final _sel_description = objc.registerName("description"); |
| late final _sel_descriptionInStringsFileFormat = objc.registerName( |
| "descriptionInStringsFileFormat", |
| ); |
| late final _sel_descriptionWithLocale_ = objc.registerName( |
| "descriptionWithLocale:", |
| ); |
| late final _sel_descriptionWithLocale_indent_ = objc.registerName( |
| "descriptionWithLocale:indent:", |
| ); |
| late final _sel_developmentLocalization = objc.registerName( |
| "developmentLocalization", |
| ); |
| late final _sel_dictionary = objc.registerName("dictionary"); |
| late final _sel_dictionaryWithCapacity_ = objc.registerName( |
| "dictionaryWithCapacity:", |
| ); |
| late final _sel_dictionaryWithContentsOfFile_ = objc.registerName( |
| "dictionaryWithContentsOfFile:", |
| ); |
| late final _sel_dictionaryWithContentsOfURL_ = objc.registerName( |
| "dictionaryWithContentsOfURL:", |
| ); |
| late final _sel_dictionaryWithContentsOfURL_error_ = objc.registerName( |
| "dictionaryWithContentsOfURL:error:", |
| ); |
| late final _sel_dictionaryWithDictionary_ = objc.registerName( |
| "dictionaryWithDictionary:", |
| ); |
| late final _sel_dictionaryWithObject_forKey_ = objc.registerName( |
| "dictionaryWithObject:forKey:", |
| ); |
| late final _sel_dictionaryWithObjectsAndKeys_ = objc.registerName( |
| "dictionaryWithObjectsAndKeys:", |
| ); |
| late final _sel_dictionaryWithObjects_forKeys_ = objc.registerName( |
| "dictionaryWithObjects:forKeys:", |
| ); |
| late final _sel_dictionaryWithObjects_forKeys_count_ = objc.registerName( |
| "dictionaryWithObjects:forKeys:count:", |
| ); |
| late final _sel_differenceByTransformingChangesWithBlock_ = objc.registerName( |
| "differenceByTransformingChangesWithBlock:", |
| ); |
| late final _sel_discreteProgressWithTotalUnitCount_ = objc.registerName( |
| "discreteProgressWithTotalUnitCount:", |
| ); |
| late final _sel_displayNameForKey_value_ = objc.registerName( |
| "displayNameForKey:value:", |
| ); |
| late final _sel_distantFuture = objc.registerName("distantFuture"); |
| late final _sel_distantPast = objc.registerName("distantPast"); |
| late final _sel_doesNotRecognizeSelector_ = objc.registerName( |
| "doesNotRecognizeSelector:", |
| ); |
| late final _sel_domain = objc.registerName("domain"); |
| late final _sel_doubleValue = objc.registerName("doubleValue"); |
| late final _sel_earlierDate_ = objc.registerName("earlierDate:"); |
| late final _sel_encodeDataObject_ = objc.registerName("encodeDataObject:"); |
| late final _sel_encodeValueOfObjCType_at_ = objc.registerName( |
| "encodeValueOfObjCType:at:", |
| ); |
| late final _sel_encodeWithCoder_ = objc.registerName("encodeWithCoder:"); |
| late final _sel_enumerateAttribute_inRange_options_usingBlock_ = objc |
| .registerName("enumerateAttribute:inRange:options:usingBlock:"); |
| late final _sel_enumerateAttributesInRange_options_usingBlock_ = objc |
| .registerName("enumerateAttributesInRange:options:usingBlock:"); |
| late final _sel_enumerateByteRangesUsingBlock_ = objc.registerName( |
| "enumerateByteRangesUsingBlock:", |
| ); |
| late final _sel_enumerateIndexesInRange_options_usingBlock_ = objc.registerName( |
| "enumerateIndexesInRange:options:usingBlock:", |
| ); |
| late final _sel_enumerateIndexesUsingBlock_ = objc.registerName( |
| "enumerateIndexesUsingBlock:", |
| ); |
| late final _sel_enumerateIndexesWithOptions_usingBlock_ = objc.registerName( |
| "enumerateIndexesWithOptions:usingBlock:", |
| ); |
| late final _sel_enumerateKeysAndObjectsUsingBlock_ = objc.registerName( |
| "enumerateKeysAndObjectsUsingBlock:", |
| ); |
| late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_ = objc |
| .registerName("enumerateKeysAndObjectsWithOptions:usingBlock:"); |
| late final _sel_enumerateLinesUsingBlock_ = objc.registerName( |
| "enumerateLinesUsingBlock:", |
| ); |
| late final _sel_enumerateObjectsAtIndexes_options_usingBlock_ = objc |
| .registerName("enumerateObjectsAtIndexes:options:usingBlock:"); |
| late final _sel_enumerateObjectsUsingBlock_ = objc.registerName( |
| "enumerateObjectsUsingBlock:", |
| ); |
| late final _sel_enumerateObjectsWithOptions_usingBlock_ = objc.registerName( |
| "enumerateObjectsWithOptions:usingBlock:", |
| ); |
| late final _sel_enumerateRangesInRange_options_usingBlock_ = objc.registerName( |
| "enumerateRangesInRange:options:usingBlock:", |
| ); |
| late final _sel_enumerateRangesUsingBlock_ = objc.registerName( |
| "enumerateRangesUsingBlock:", |
| ); |
| late final _sel_enumerateRangesWithOptions_usingBlock_ = objc.registerName( |
| "enumerateRangesWithOptions:usingBlock:", |
| ); |
| late final _sel_enumerateSubstringsInRange_options_usingBlock_ = objc |
| .registerName("enumerateSubstringsInRange:options:usingBlock:"); |
| late final _sel_errorWithDomain_code_userInfo_ = objc.registerName( |
| "errorWithDomain:code:userInfo:", |
| ); |
| late final _sel_estimatedTimeRemaining = objc.registerName( |
| "estimatedTimeRemaining", |
| ); |
| late final _sel_exchangeObjectAtIndex_withObjectAtIndex_ = objc.registerName( |
| "exchangeObjectAtIndex:withObjectAtIndex:", |
| ); |
| late final _sel_executableArchitectures = objc.registerName( |
| "executableArchitectures", |
| ); |
| late final _sel_executablePath = objc.registerName("executablePath"); |
| late final _sel_executableURL = objc.registerName("executableURL"); |
| late final _sel_failurePolicy = objc.registerName("failurePolicy"); |
| late final _sel_fastestEncoding = objc.registerName("fastestEncoding"); |
| late final _sel_fileCompletedCount = objc.registerName("fileCompletedCount"); |
| late final _sel_fileOperationKind = objc.registerName("fileOperationKind"); |
| late final _sel_filePathURL = objc.registerName("filePathURL"); |
| late final _sel_fileReferenceURL = objc.registerName("fileReferenceURL"); |
| late final _sel_fileSystemRepresentation = objc.registerName( |
| "fileSystemRepresentation", |
| ); |
| late final _sel_fileTotalCount = objc.registerName("fileTotalCount"); |
| late final _sel_fileURL = objc.registerName("fileURL"); |
| late final _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_ = |
| objc.registerName( |
| "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:", |
| ); |
| late final _sel_fileURLWithPath_ = objc.registerName("fileURLWithPath:"); |
| late final _sel_fileURLWithPath_isDirectory_ = objc.registerName( |
| "fileURLWithPath:isDirectory:", |
| ); |
| late final _sel_fileURLWithPath_isDirectory_relativeToURL_ = objc.registerName( |
| "fileURLWithPath:isDirectory:relativeToURL:", |
| ); |
| late final _sel_fileURLWithPath_relativeToURL_ = objc.registerName( |
| "fileURLWithPath:relativeToURL:", |
| ); |
| late final _sel_fire = objc.registerName("fire"); |
| late final _sel_fireDate = objc.registerName("fireDate"); |
| late final _sel_firstIndex = objc.registerName("firstIndex"); |
| late final _sel_firstObject = objc.registerName("firstObject"); |
| late final _sel_firstObjectCommonWithArray_ = objc.registerName( |
| "firstObjectCommonWithArray:", |
| ); |
| late final _sel_floatValue = objc.registerName("floatValue"); |
| late final _sel_forwardInvocation_ = objc.registerName("forwardInvocation:"); |
| late final _sel_forwardingTargetForSelector_ = objc.registerName( |
| "forwardingTargetForSelector:", |
| ); |
| late final _sel_fractionCompleted = objc.registerName("fractionCompleted"); |
| late final _sel_fragment = objc.registerName("fragment"); |
| late final _sel_frameLength = objc.registerName("frameLength"); |
| late final _sel_getArgumentTypeAtIndex_ = objc.registerName( |
| "getArgumentTypeAtIndex:", |
| ); |
| late final _sel_getArgument_atIndex_ = objc.registerName( |
| "getArgument:atIndex:", |
| ); |
| late final _sel_getBuffer_length_ = objc.registerName("getBuffer:length:"); |
| late final _sel_getBytes_length_ = objc.registerName("getBytes:length:"); |
| late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_ = |
| objc.registerName( |
| "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:", |
| ); |
| late final _sel_getBytes_range_ = objc.registerName("getBytes:range:"); |
| late final _sel_getCFRunLoop = objc.registerName("getCFRunLoop"); |
| late final _sel_getCString_maxLength_encoding_ = objc.registerName( |
| "getCString:maxLength:encoding:", |
| ); |
| late final _sel_getCharacters_range_ = objc.registerName( |
| "getCharacters:range:", |
| ); |
| late final _sel_getDOBJCDartProtocolMethodForSelector_ = objc.registerName( |
| "getDOBJCDartProtocolMethodForSelector:", |
| ); |
| late final _sel_getFileSystemRepresentation_maxLength_ = objc.registerName( |
| "getFileSystemRepresentation:maxLength:", |
| ); |
| late final _sel_getIndexes_maxCount_inIndexRange_ = objc.registerName( |
| "getIndexes:maxCount:inIndexRange:", |
| ); |
| late final _sel_getLineStart_end_contentsEnd_forRange_ = objc.registerName( |
| "getLineStart:end:contentsEnd:forRange:", |
| ); |
| late final _sel_getObjects_andKeys_count_ = objc.registerName( |
| "getObjects:andKeys:count:", |
| ); |
| late final _sel_getObjects_range_ = objc.registerName("getObjects:range:"); |
| late final _sel_getParagraphStart_end_contentsEnd_forRange_ = objc.registerName( |
| "getParagraphStart:end:contentsEnd:forRange:", |
| ); |
| late final _sel_getResourceValue_forKey_error_ = objc.registerName( |
| "getResourceValue:forKey:error:", |
| ); |
| late final _sel_getReturnValue_ = objc.registerName("getReturnValue:"); |
| late final _sel_getValue_size_ = objc.registerName("getValue:size:"); |
| late final _sel_handlePortMessage_ = objc.registerName("handlePortMessage:"); |
| late final _sel_hasBytesAvailable = objc.registerName("hasBytesAvailable"); |
| late final _sel_hasChanges = objc.registerName("hasChanges"); |
| late final _sel_hasDirectoryPath = objc.registerName("hasDirectoryPath"); |
| late final _sel_hasItemConformingToTypeIdentifier_ = objc.registerName( |
| "hasItemConformingToTypeIdentifier:", |
| ); |
| late final _sel_hasMemberInPlane_ = objc.registerName("hasMemberInPlane:"); |
| late final _sel_hasPrefix_ = objc.registerName("hasPrefix:"); |
| late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_ = objc |
| .registerName("hasRepresentationConformingToTypeIdentifier:fileOptions:"); |
| late final _sel_hasSpaceAvailable = objc.registerName("hasSpaceAvailable"); |
| late final _sel_hasSuffix_ = objc.registerName("hasSuffix:"); |
| late final _sel_hash = objc.registerName("hash"); |
| late final _sel_helpAnchor = objc.registerName("helpAnchor"); |
| late final _sel_holderWithInputStreamAdapter_ = objc.registerName( |
| "holderWithInputStreamAdapter:", |
| ); |
| late final _sel_host = objc.registerName("host"); |
| late final _sel_illegalCharacterSet = objc.registerName("illegalCharacterSet"); |
| late final _sel_implementMethod_withBlock_withTrampoline_withSignature_ = objc |
| .registerName("implementMethod:withBlock:withTrampoline:withSignature:"); |
| late final _sel_increaseLengthBy_ = objc.registerName("increaseLengthBy:"); |
| late final _sel_index = objc.registerName("index"); |
| late final _sel_indexGreaterThanIndex_ = objc.registerName( |
| "indexGreaterThanIndex:", |
| ); |
| late final _sel_indexGreaterThanOrEqualToIndex_ = objc.registerName( |
| "indexGreaterThanOrEqualToIndex:", |
| ); |
| late final _sel_indexInRange_options_passingTest_ = objc.registerName( |
| "indexInRange:options:passingTest:", |
| ); |
| late final _sel_indexLessThanIndex_ = objc.registerName("indexLessThanIndex:"); |
| late final _sel_indexLessThanOrEqualToIndex_ = objc.registerName( |
| "indexLessThanOrEqualToIndex:", |
| ); |
| late final _sel_indexOfObjectAtIndexes_options_passingTest_ = objc.registerName( |
| "indexOfObjectAtIndexes:options:passingTest:", |
| ); |
| late final _sel_indexOfObjectIdenticalTo_ = objc.registerName( |
| "indexOfObjectIdenticalTo:", |
| ); |
| late final _sel_indexOfObjectIdenticalTo_inRange_ = objc.registerName( |
| "indexOfObjectIdenticalTo:inRange:", |
| ); |
| late final _sel_indexOfObjectPassingTest_ = objc.registerName( |
| "indexOfObjectPassingTest:", |
| ); |
| late final _sel_indexOfObjectWithOptions_passingTest_ = objc.registerName( |
| "indexOfObjectWithOptions:passingTest:", |
| ); |
| late final _sel_indexOfObject_ = objc.registerName("indexOfObject:"); |
| late final _sel_indexOfObject_inRange_ = objc.registerName( |
| "indexOfObject:inRange:", |
| ); |
| late final _sel_indexOfObject_inSortedRange_options_usingComparator_ = objc |
| .registerName("indexOfObject:inSortedRange:options:usingComparator:"); |
| late final _sel_indexPassingTest_ = objc.registerName("indexPassingTest:"); |
| late final _sel_indexSet = objc.registerName("indexSet"); |
| late final _sel_indexSetWithIndex_ = objc.registerName("indexSetWithIndex:"); |
| late final _sel_indexSetWithIndexesInRange_ = objc.registerName( |
| "indexSetWithIndexesInRange:", |
| ); |
| late final _sel_indexWithOptions_passingTest_ = objc.registerName( |
| "indexWithOptions:passingTest:", |
| ); |
| late final _sel_indexesInRange_options_passingTest_ = objc.registerName( |
| "indexesInRange:options:passingTest:", |
| ); |
| late final _sel_indexesOfObjectsAtIndexes_options_passingTest_ = objc |
| .registerName("indexesOfObjectsAtIndexes:options:passingTest:"); |
| late final _sel_indexesOfObjectsPassingTest_ = objc.registerName( |
| "indexesOfObjectsPassingTest:", |
| ); |
| late final _sel_indexesOfObjectsWithOptions_passingTest_ = objc.registerName( |
| "indexesOfObjectsWithOptions:passingTest:", |
| ); |
| late final _sel_indexesPassingTest_ = objc.registerName("indexesPassingTest:"); |
| late final _sel_indexesWithOptions_passingTest_ = objc.registerName( |
| "indexesWithOptions:passingTest:", |
| ); |
| late final _sel_infoDictionary = objc.registerName("infoDictionary"); |
| late final _sel_init = objc.registerName("init"); |
| late final _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_ = objc |
| .registerName("initAbsoluteURLWithDataRepresentation:relativeToURL:"); |
| late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_ = |
| objc.registerName( |
| "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:", |
| ); |
| late final _sel_initDOBJCDartProtocolFromDartProtocolBuilder_withDisposePort_ = |
| objc.registerName( |
| "initDOBJCDartProtocolFromDartProtocolBuilder:withDisposePort:", |
| ); |
| late final _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_ = |
| objc.registerName( |
| "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:", |
| ); |
| late final _sel_initFileURLWithPath_ = objc.registerName( |
| "initFileURLWithPath:", |
| ); |
| late final _sel_initFileURLWithPath_isDirectory_ = objc.registerName( |
| "initFileURLWithPath:isDirectory:", |
| ); |
| late final _sel_initFileURLWithPath_isDirectory_relativeToURL_ = objc |
| .registerName("initFileURLWithPath:isDirectory:relativeToURL:"); |
| late final _sel_initFileURLWithPath_relativeToURL_ = objc.registerName( |
| "initFileURLWithPath:relativeToURL:", |
| ); |
| late final _sel_initForKeyPath_ofObject_withObserver_options_context_ = objc |
| .registerName("initForKeyPath:ofObject:withObserver:options:context:"); |
| late final _sel_initToBuffer_capacity_ = objc.registerName( |
| "initToBuffer:capacity:", |
| ); |
| late final _sel_initToFileAtPath_append_ = objc.registerName( |
| "initToFileAtPath:append:", |
| ); |
| late final _sel_initToMemory = objc.registerName("initToMemory"); |
| late final _sel_initWithArray_ = objc.registerName("initWithArray:"); |
| late final _sel_initWithArray_copyItems_ = objc.registerName( |
| "initWithArray:copyItems:", |
| ); |
| late final _sel_initWithArray_range_copyItems_ = objc.registerName( |
| "initWithArray:range:copyItems:", |
| ); |
| late final _sel_initWithAttributedString_ = objc.registerName( |
| "initWithAttributedString:", |
| ); |
| late final _sel_initWithBase64EncodedData_options_ = objc.registerName( |
| "initWithBase64EncodedData:options:", |
| ); |
| late final _sel_initWithBase64EncodedString_options_ = objc.registerName( |
| "initWithBase64EncodedString:options:", |
| ); |
| late final _sel_initWithBool_ = objc.registerName("initWithBool:"); |
| late final _sel_initWithBytesNoCopy_length_ = objc.registerName( |
| "initWithBytesNoCopy:length:", |
| ); |
| late final _sel_initWithBytesNoCopy_length_deallocator_ = objc.registerName( |
| "initWithBytesNoCopy:length:deallocator:", |
| ); |
| late final _sel_initWithBytesNoCopy_length_encoding_deallocator_ = objc |
| .registerName("initWithBytesNoCopy:length:encoding:deallocator:"); |
| late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_ = objc |
| .registerName("initWithBytesNoCopy:length:encoding:freeWhenDone:"); |
| late final _sel_initWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( |
| "initWithBytesNoCopy:length:freeWhenDone:", |
| ); |
| late final _sel_initWithBytes_length_ = objc.registerName( |
| "initWithBytes:length:", |
| ); |
| late final _sel_initWithBytes_length_encoding_ = objc.registerName( |
| "initWithBytes:length:encoding:", |
| ); |
| late final _sel_initWithBytes_objCType_ = objc.registerName( |
| "initWithBytes:objCType:", |
| ); |
| late final _sel_initWithCString_encoding_ = objc.registerName( |
| "initWithCString:encoding:", |
| ); |
| late final _sel_initWithCapacity_ = objc.registerName("initWithCapacity:"); |
| late final _sel_initWithChanges_ = objc.registerName("initWithChanges:"); |
| late final _sel_initWithChar_ = objc.registerName("initWithChar:"); |
| late final _sel_initWithCharactersNoCopy_length_deallocator_ = objc |
| .registerName("initWithCharactersNoCopy:length:deallocator:"); |
| late final _sel_initWithCharactersNoCopy_length_freeWhenDone_ = objc |
| .registerName("initWithCharactersNoCopy:length:freeWhenDone:"); |
| late final _sel_initWithCharacters_length_ = objc.registerName( |
| "initWithCharacters:length:", |
| ); |
| late final _sel_initWithClassName_ = objc.registerName("initWithClassName:"); |
| late final _sel_initWithCoder_ = objc.registerName("initWithCoder:"); |
| late final _sel_initWithContentsOfFile_ = objc.registerName( |
| "initWithContentsOfFile:", |
| ); |
| late final _sel_initWithContentsOfFile_encoding_error_ = objc.registerName( |
| "initWithContentsOfFile:encoding:error:", |
| ); |
| late final _sel_initWithContentsOfFile_options_error_ = objc.registerName( |
| "initWithContentsOfFile:options:error:", |
| ); |
| late final _sel_initWithContentsOfFile_usedEncoding_error_ = objc.registerName( |
| "initWithContentsOfFile:usedEncoding:error:", |
| ); |
| late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_ = |
| objc.registerName( |
| "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:", |
| ); |
| late final _sel_initWithContentsOfURL_ = objc.registerName( |
| "initWithContentsOfURL:", |
| ); |
| late final _sel_initWithContentsOfURL_encoding_error_ = objc.registerName( |
| "initWithContentsOfURL:encoding:error:", |
| ); |
| late final _sel_initWithContentsOfURL_error_ = objc.registerName( |
| "initWithContentsOfURL:error:", |
| ); |
| late final _sel_initWithContentsOfURL_options_error_ = objc.registerName( |
| "initWithContentsOfURL:options:error:", |
| ); |
| late final _sel_initWithContentsOfURL_usedEncoding_error_ = objc.registerName( |
| "initWithContentsOfURL:usedEncoding:error:", |
| ); |
| late final _sel_initWithDataRepresentation_relativeToURL_ = objc.registerName( |
| "initWithDataRepresentation:relativeToURL:", |
| ); |
| late final _sel_initWithData_ = objc.registerName("initWithData:"); |
| late final _sel_initWithData_encoding_ = objc.registerName( |
| "initWithData:encoding:", |
| ); |
| late final _sel_initWithDictionary_ = objc.registerName("initWithDictionary:"); |
| late final _sel_initWithDictionary_copyItems_ = objc.registerName( |
| "initWithDictionary:copyItems:", |
| ); |
| late final _sel_initWithDomain_code_userInfo_ = objc.registerName( |
| "initWithDomain:code:userInfo:", |
| ); |
| late final _sel_initWithDouble_ = objc.registerName("initWithDouble:"); |
| late final _sel_initWithFileAtPath_ = objc.registerName("initWithFileAtPath:"); |
| late final _sel_initWithFireDate_interval_repeats_block_ = objc.registerName( |
| "initWithFireDate:interval:repeats:block:", |
| ); |
| late final _sel_initWithFireDate_interval_target_selector_userInfo_repeats_ = |
| objc.registerName( |
| "initWithFireDate:interval:target:selector:userInfo:repeats:", |
| ); |
| late final _sel_initWithFloat_ = objc.registerName("initWithFloat:"); |
| late final _sel_initWithFormat_ = objc.registerName("initWithFormat:"); |
| late final _sel_initWithFormat_locale_ = objc.registerName( |
| "initWithFormat:locale:", |
| ); |
| late final _sel_initWithFormat_options_locale_ = objc.registerName( |
| "initWithFormat:options:locale:", |
| ); |
| late final _sel_initWithFormat_options_locale_context_ = objc.registerName( |
| "initWithFormat:options:locale:context:", |
| ); |
| late final _sel_initWithIndexSet_ = objc.registerName("initWithIndexSet:"); |
| late final _sel_initWithIndex_ = objc.registerName("initWithIndex:"); |
| late final _sel_initWithIndexesInRange_ = objc.registerName( |
| "initWithIndexesInRange:", |
| ); |
| late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_ = |
| objc.registerName( |
| "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:", |
| ); |
| late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_ = |
| objc.registerName( |
| "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:", |
| ); |
| late final _sel_initWithInt_ = objc.registerName("initWithInt:"); |
| late final _sel_initWithInteger_ = objc.registerName("initWithInteger:"); |
| late final _sel_initWithItem_typeIdentifier_ = objc.registerName( |
| "initWithItem:typeIdentifier:", |
| ); |
| late final _sel_initWithLength_ = objc.registerName("initWithLength:"); |
| late final _sel_initWithLocaleIdentifier_ = objc.registerName( |
| "initWithLocaleIdentifier:", |
| ); |
| late final _sel_initWithLongLong_ = objc.registerName("initWithLongLong:"); |
| late final _sel_initWithLong_ = objc.registerName("initWithLong:"); |
| late final _sel_initWithMarkdownString_options_baseURL_error_ = objc |
| .registerName("initWithMarkdownString:options:baseURL:error:"); |
| late final _sel_initWithMarkdown_options_baseURL_error_ = objc.registerName( |
| "initWithMarkdown:options:baseURL:error:", |
| ); |
| late final _sel_initWithName_object_userInfo_ = objc.registerName( |
| "initWithName:object:userInfo:", |
| ); |
| late final _sel_initWithObject_ = objc.registerName("initWithObject:"); |
| late final _sel_initWithObject_type_index_ = objc.registerName( |
| "initWithObject:type:index:", |
| ); |
| late final _sel_initWithObject_type_index_associatedIndex_ = objc.registerName( |
| "initWithObject:type:index:associatedIndex:", |
| ); |
| late final _sel_initWithObjectsAndKeys_ = objc.registerName( |
| "initWithObjectsAndKeys:", |
| ); |
| late final _sel_initWithObjects_ = objc.registerName("initWithObjects:"); |
| late final _sel_initWithObjects_count_ = objc.registerName( |
| "initWithObjects:count:", |
| ); |
| late final _sel_initWithObjects_forKeys_ = objc.registerName( |
| "initWithObjects:forKeys:", |
| ); |
| late final _sel_initWithObjects_forKeys_count_ = objc.registerName( |
| "initWithObjects:forKeys:count:", |
| ); |
| late final _sel_initWithOrderedSet_ = objc.registerName("initWithOrderedSet:"); |
| late final _sel_initWithOrderedSet_copyItems_ = objc.registerName( |
| "initWithOrderedSet:copyItems:", |
| ); |
| late final _sel_initWithOrderedSet_range_copyItems_ = objc.registerName( |
| "initWithOrderedSet:range:copyItems:", |
| ); |
| late final _sel_initWithParent_userInfo_ = objc.registerName( |
| "initWithParent:userInfo:", |
| ); |
| late final _sel_initWithPath_ = objc.registerName("initWithPath:"); |
| late final _sel_initWithSendPort_receivePort_components_ = objc.registerName( |
| "initWithSendPort:receivePort:components:", |
| ); |
| late final _sel_initWithSet_ = objc.registerName("initWithSet:"); |
| late final _sel_initWithSet_copyItems_ = objc.registerName( |
| "initWithSet:copyItems:", |
| ); |
| late final _sel_initWithShort_ = objc.registerName("initWithShort:"); |
| late final _sel_initWithString_ = objc.registerName("initWithString:"); |
| late final _sel_initWithString_attributes_ = objc.registerName( |
| "initWithString:attributes:", |
| ); |
| late final _sel_initWithString_encodingInvalidCharacters_ = objc.registerName( |
| "initWithString:encodingInvalidCharacters:", |
| ); |
| late final _sel_initWithString_relativeToURL_ = objc.registerName( |
| "initWithString:relativeToURL:", |
| ); |
| late final _sel_initWithTimeIntervalSince1970_ = objc.registerName( |
| "initWithTimeIntervalSince1970:", |
| ); |
| late final _sel_initWithTimeIntervalSinceNow_ = objc.registerName( |
| "initWithTimeIntervalSinceNow:", |
| ); |
| late final _sel_initWithTimeIntervalSinceReferenceDate_ = objc.registerName( |
| "initWithTimeIntervalSinceReferenceDate:", |
| ); |
| late final _sel_initWithTimeInterval_sinceDate_ = objc.registerName( |
| "initWithTimeInterval:sinceDate:", |
| ); |
| late final _sel_initWithURL_ = objc.registerName("initWithURL:"); |
| late final _sel_initWithURL_append_ = objc.registerName("initWithURL:append:"); |
| late final _sel_initWithUTF8String_ = objc.registerName("initWithUTF8String:"); |
| late final _sel_initWithUnsignedChar_ = objc.registerName( |
| "initWithUnsignedChar:", |
| ); |
| late final _sel_initWithUnsignedInt_ = objc.registerName( |
| "initWithUnsignedInt:", |
| ); |
| late final _sel_initWithUnsignedInteger_ = objc.registerName( |
| "initWithUnsignedInteger:", |
| ); |
| late final _sel_initWithUnsignedLongLong_ = objc.registerName( |
| "initWithUnsignedLongLong:", |
| ); |
| late final _sel_initWithUnsignedLong_ = objc.registerName( |
| "initWithUnsignedLong:", |
| ); |
| late final _sel_initWithUnsignedShort_ = objc.registerName( |
| "initWithUnsignedShort:", |
| ); |
| late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_ = objc |
| .registerName("initWithValidatedFormat:validFormatSpecifiers:error:"); |
| late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_ = |
| objc.registerName( |
| "initWithValidatedFormat:validFormatSpecifiers:locale:error:", |
| ); |
| late final _sel_initialize = objc.registerName("initialize"); |
| late final _sel_inputStreamWithData_ = objc.registerName( |
| "inputStreamWithData:", |
| ); |
| late final _sel_inputStreamWithFileAtPath_ = objc.registerName( |
| "inputStreamWithFileAtPath:", |
| ); |
| late final _sel_inputStreamWithPort_ = objc.registerName( |
| "inputStreamWithPort:", |
| ); |
| late final _sel_inputStreamWithURL_ = objc.registerName("inputStreamWithURL:"); |
| late final _sel_insertObject_atIndex_ = objc.registerName( |
| "insertObject:atIndex:", |
| ); |
| late final _sel_insertObjects_atIndexes_ = objc.registerName( |
| "insertObjects:atIndexes:", |
| ); |
| late final _sel_insertions = objc.registerName("insertions"); |
| late final _sel_instanceMethodForSelector_ = objc.registerName( |
| "instanceMethodForSelector:", |
| ); |
| late final _sel_instanceMethodSignatureForSelector_ = objc.registerName( |
| "instanceMethodSignatureForSelector:", |
| ); |
| late final _sel_instancesRespondToSelector_ = objc.registerName( |
| "instancesRespondToSelector:", |
| ); |
| late final _sel_intValue = objc.registerName("intValue"); |
| late final _sel_integerValue = objc.registerName("integerValue"); |
| late final _sel_interpretedSyntax = objc.registerName("interpretedSyntax"); |
| late final _sel_intersectOrderedSet_ = objc.registerName( |
| "intersectOrderedSet:", |
| ); |
| late final _sel_intersectSet_ = objc.registerName("intersectSet:"); |
| late final _sel_intersectsIndexesInRange_ = objc.registerName( |
| "intersectsIndexesInRange:", |
| ); |
| late final _sel_intersectsOrderedSet_ = objc.registerName( |
| "intersectsOrderedSet:", |
| ); |
| late final _sel_intersectsSet_ = objc.registerName("intersectsSet:"); |
| late final _sel_invalidate = objc.registerName("invalidate"); |
| late final _sel_inverseDifference = objc.registerName("inverseDifference"); |
| late final _sel_invertedSet = objc.registerName("invertedSet"); |
| late final _sel_invocationWithMethodSignature_ = objc.registerName( |
| "invocationWithMethodSignature:", |
| ); |
| late final _sel_invoke = objc.registerName("invoke"); |
| late final _sel_invokeUsingIMP_ = objc.registerName("invokeUsingIMP:"); |
| late final _sel_invokeWithTarget_ = objc.registerName("invokeWithTarget:"); |
| late final _sel_isBool = objc.registerName("isBool"); |
| late final _sel_isCancellable = objc.registerName("isCancellable"); |
| late final _sel_isCancelled = objc.registerName("isCancelled"); |
| late final _sel_isEqualToArray_ = objc.registerName("isEqualToArray:"); |
| late final _sel_isEqualToAttributedString_ = objc.registerName( |
| "isEqualToAttributedString:", |
| ); |
| late final _sel_isEqualToData_ = objc.registerName("isEqualToData:"); |
| late final _sel_isEqualToDate_ = objc.registerName("isEqualToDate:"); |
| late final _sel_isEqualToDictionary_ = objc.registerName( |
| "isEqualToDictionary:", |
| ); |
| late final _sel_isEqualToIndexSet_ = objc.registerName("isEqualToIndexSet:"); |
| late final _sel_isEqualToNumber_ = objc.registerName("isEqualToNumber:"); |
| late final _sel_isEqualToOrderedSet_ = objc.registerName( |
| "isEqualToOrderedSet:", |
| ); |
| late final _sel_isEqualToSet_ = objc.registerName("isEqualToSet:"); |
| late final _sel_isEqualToString_ = objc.registerName("isEqualToString:"); |
| late final _sel_isEqual_ = objc.registerName("isEqual:"); |
| late final _sel_isFileReferenceURL = objc.registerName("isFileReferenceURL"); |
| late final _sel_isFileURL = objc.registerName("isFileURL"); |
| late final _sel_isFinished = objc.registerName("isFinished"); |
| late final _sel_isFloat = objc.registerName("isFloat"); |
| late final _sel_isIndeterminate = objc.registerName("isIndeterminate"); |
| late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); |
| late final _sel_isLoaded = objc.registerName("isLoaded"); |
| late final _sel_isMemberOfClass_ = objc.registerName("isMemberOfClass:"); |
| late final _sel_isOld = objc.registerName("isOld"); |
| late final _sel_isOneway = objc.registerName("isOneway"); |
| late final _sel_isPausable = objc.registerName("isPausable"); |
| late final _sel_isPaused = objc.registerName("isPaused"); |
| late final _sel_isProxy = objc.registerName("isProxy"); |
| late final _sel_isSubclassOfClass_ = objc.registerName("isSubclassOfClass:"); |
| late final _sel_isSubsetOfOrderedSet_ = objc.registerName( |
| "isSubsetOfOrderedSet:", |
| ); |
| late final _sel_isSubsetOfSet_ = objc.registerName("isSubsetOfSet:"); |
| late final _sel_isSupersetOfSet_ = objc.registerName("isSupersetOfSet:"); |
| late final _sel_isValid = objc.registerName("isValid"); |
| late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = |
| objc.registerName( |
| "itemProviderVisibilityForRepresentationWithTypeIdentifier:", |
| ); |
| late final _sel_keyEnumerator = objc.registerName("keyEnumerator"); |
| late final _sel_keysOfEntriesPassingTest_ = objc.registerName( |
| "keysOfEntriesPassingTest:", |
| ); |
| late final _sel_keysOfEntriesWithOptions_passingTest_ = objc.registerName( |
| "keysOfEntriesWithOptions:passingTest:", |
| ); |
| late final _sel_keysSortedByValueUsingComparator_ = objc.registerName( |
| "keysSortedByValueUsingComparator:", |
| ); |
| late final _sel_keysSortedByValueUsingSelector_ = objc.registerName( |
| "keysSortedByValueUsingSelector:", |
| ); |
| late final _sel_keysSortedByValueWithOptions_usingComparator_ = objc |
| .registerName("keysSortedByValueWithOptions:usingComparator:"); |
| late final _sel_kind = objc.registerName("kind"); |
| late final _sel_languageCode = objc.registerName("languageCode"); |
| late final _sel_lastIndex = objc.registerName("lastIndex"); |
| late final _sel_lastObject = objc.registerName("lastObject"); |
| late final _sel_laterDate_ = objc.registerName("laterDate:"); |
| late final _sel_length = objc.registerName("length"); |
| late final _sel_lengthOfBytesUsingEncoding_ = objc.registerName( |
| "lengthOfBytesUsingEncoding:", |
| ); |
| late final _sel_letterCharacterSet = objc.registerName("letterCharacterSet"); |
| late final _sel_limitDateForMode_ = objc.registerName("limitDateForMode:"); |
| late final _sel_lineRangeForRange_ = objc.registerName("lineRangeForRange:"); |
| late final _sel_load = objc.registerName("load"); |
| late final _sel_loadAndReturnError_ = objc.registerName("loadAndReturnError:"); |
| late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_ = |
| objc.registerName( |
| "loadDataRepresentationForTypeIdentifier:completionHandler:", |
| ); |
| late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = |
| objc.registerName( |
| "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", |
| ); |
| late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_ = |
| objc.registerName( |
| "loadFileRepresentationForTypeIdentifier:completionHandler:", |
| ); |
| late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_ = |
| objc.registerName( |
| "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:", |
| ); |
| late final _sel_loadItemForTypeIdentifier_options_completionHandler_ = objc |
| .registerName("loadItemForTypeIdentifier:options:completionHandler:"); |
| late final _sel_loadObjectOfClass_completionHandler_ = objc.registerName( |
| "loadObjectOfClass:completionHandler:", |
| ); |
| late final _sel_localeWithLocaleIdentifier_ = objc.registerName( |
| "localeWithLocaleIdentifier:", |
| ); |
| late final _sel_localizations = objc.registerName("localizations"); |
| late final _sel_localizedAdditionalDescription = objc.registerName( |
| "localizedAdditionalDescription", |
| ); |
| late final _sel_localizedAttributedStringForKey_value_table_ = objc |
| .registerName("localizedAttributedStringForKey:value:table:"); |
| late final _sel_localizedAttributedStringWithFormat_ = objc.registerName( |
| "localizedAttributedStringWithFormat:", |
| ); |
| late final _sel_localizedAttributedStringWithFormat_context_ = objc |
| .registerName("localizedAttributedStringWithFormat:context:"); |
| late final _sel_localizedAttributedStringWithFormat_options_ = objc |
| .registerName("localizedAttributedStringWithFormat:options:"); |
| late final _sel_localizedAttributedStringWithFormat_options_context_ = objc |
| .registerName("localizedAttributedStringWithFormat:options:context:"); |
| late final _sel_localizedCapitalizedString = objc.registerName( |
| "localizedCapitalizedString", |
| ); |
| late final _sel_localizedCaseInsensitiveCompare_ = objc.registerName( |
| "localizedCaseInsensitiveCompare:", |
| ); |
| late final _sel_localizedCaseInsensitiveContainsString_ = objc.registerName( |
| "localizedCaseInsensitiveContainsString:", |
| ); |
| late final _sel_localizedCompare_ = objc.registerName("localizedCompare:"); |
| late final _sel_localizedDescription = objc.registerName( |
| "localizedDescription", |
| ); |
| late final _sel_localizedFailureReason = objc.registerName( |
| "localizedFailureReason", |
| ); |
| late final _sel_localizedInfoDictionary = objc.registerName( |
| "localizedInfoDictionary", |
| ); |
| late final _sel_localizedLowercaseString = objc.registerName( |
| "localizedLowercaseString", |
| ); |
| late final _sel_localizedNameOfStringEncoding_ = objc.registerName( |
| "localizedNameOfStringEncoding:", |
| ); |
| late final _sel_localizedRecoveryOptions = objc.registerName( |
| "localizedRecoveryOptions", |
| ); |
| late final _sel_localizedRecoverySuggestion = objc.registerName( |
| "localizedRecoverySuggestion", |
| ); |
| late final _sel_localizedStandardCompare_ = objc.registerName( |
| "localizedStandardCompare:", |
| ); |
| late final _sel_localizedStandardContainsString_ = objc.registerName( |
| "localizedStandardContainsString:", |
| ); |
| late final _sel_localizedStandardRangeOfString_ = objc.registerName( |
| "localizedStandardRangeOfString:", |
| ); |
| late final _sel_localizedStringForKey_value_table_ = objc.registerName( |
| "localizedStringForKey:value:table:", |
| ); |
| late final _sel_localizedStringWithFormat_ = objc.registerName( |
| "localizedStringWithFormat:", |
| ); |
| late final _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_ = |
| objc.registerName( |
| "localizedStringWithValidatedFormat:validFormatSpecifiers:error:", |
| ); |
| late final _sel_localizedUppercaseString = objc.registerName( |
| "localizedUppercaseString", |
| ); |
| late final _sel_longCharacterIsMember_ = objc.registerName( |
| "longCharacterIsMember:", |
| ); |
| late final _sel_longLongValue = objc.registerName("longLongValue"); |
| late final _sel_longValue = objc.registerName("longValue"); |
| late final _sel_lowercaseLetterCharacterSet = objc.registerName( |
| "lowercaseLetterCharacterSet", |
| ); |
| late final _sel_lowercaseString = objc.registerName("lowercaseString"); |
| late final _sel_lowercaseStringWithLocale_ = objc.registerName( |
| "lowercaseStringWithLocale:", |
| ); |
| late final _sel_mainBundle = objc.registerName("mainBundle"); |
| late final _sel_mainRunLoop = objc.registerName("mainRunLoop"); |
| late final _sel_makeObjectsPerformSelector_ = objc.registerName( |
| "makeObjectsPerformSelector:", |
| ); |
| late final _sel_makeObjectsPerformSelector_withObject_ = objc.registerName( |
| "makeObjectsPerformSelector:withObject:", |
| ); |
| late final _sel_maximumLengthOfBytesUsingEncoding_ = objc.registerName( |
| "maximumLengthOfBytesUsingEncoding:", |
| ); |
| late final _sel_member_ = objc.registerName("member:"); |
| late final _sel_methodForSelector_ = objc.registerName("methodForSelector:"); |
| late final _sel_methodReturnLength = objc.registerName("methodReturnLength"); |
| late final _sel_methodReturnType = objc.registerName("methodReturnType"); |
| late final _sel_methodSignature = objc.registerName("methodSignature"); |
| late final _sel_methodSignatureForSelector_ = objc.registerName( |
| "methodSignatureForSelector:", |
| ); |
| late final _sel_minusOrderedSet_ = objc.registerName("minusOrderedSet:"); |
| late final _sel_minusSet_ = objc.registerName("minusSet:"); |
| late final _sel_moveObjectsAtIndexes_toIndex_ = objc.registerName( |
| "moveObjectsAtIndexes:toIndex:", |
| ); |
| late final _sel_msgid = objc.registerName("msgid"); |
| late final _sel_mutableBytes = objc.registerName("mutableBytes"); |
| late final _sel_mutableCopy = objc.registerName("mutableCopy"); |
| late final _sel_mutableCopyWithZone_ = objc.registerName( |
| "mutableCopyWithZone:", |
| ); |
| late final _sel_name = objc.registerName("name"); |
| late final _sel_new = objc.registerName("new"); |
| late final _sel_newlineCharacterSet = objc.registerName("newlineCharacterSet"); |
| late final _sel_nextObject = objc.registerName("nextObject"); |
| late final _sel_nonBaseCharacterSet = objc.registerName("nonBaseCharacterSet"); |
| late final _sel_notificationWithName_object_ = objc.registerName( |
| "notificationWithName:object:", |
| ); |
| late final _sel_notificationWithName_object_userInfo_ = objc.registerName( |
| "notificationWithName:object:userInfo:", |
| ); |
| late final _sel_now = objc.registerName("now"); |
| late final _sel_null = objc.registerName("null"); |
| late final _sel_numberOfArguments = objc.registerName("numberOfArguments"); |
| late final _sel_numberWithBool_ = objc.registerName("numberWithBool:"); |
| late final _sel_numberWithChar_ = objc.registerName("numberWithChar:"); |
| late final _sel_numberWithDouble_ = objc.registerName("numberWithDouble:"); |
| late final _sel_numberWithFloat_ = objc.registerName("numberWithFloat:"); |
| late final _sel_numberWithInt_ = objc.registerName("numberWithInt:"); |
| late final _sel_numberWithInteger_ = objc.registerName("numberWithInteger:"); |
| late final _sel_numberWithLongLong_ = objc.registerName("numberWithLongLong:"); |
| late final _sel_numberWithLong_ = objc.registerName("numberWithLong:"); |
| late final _sel_numberWithShort_ = objc.registerName("numberWithShort:"); |
| late final _sel_numberWithUnsignedChar_ = objc.registerName( |
| "numberWithUnsignedChar:", |
| ); |
| late final _sel_numberWithUnsignedInt_ = objc.registerName( |
| "numberWithUnsignedInt:", |
| ); |
| late final _sel_numberWithUnsignedInteger_ = objc.registerName( |
| "numberWithUnsignedInteger:", |
| ); |
| late final _sel_numberWithUnsignedLongLong_ = objc.registerName( |
| "numberWithUnsignedLongLong:", |
| ); |
| late final _sel_numberWithUnsignedLong_ = objc.registerName( |
| "numberWithUnsignedLong:", |
| ); |
| late final _sel_numberWithUnsignedShort_ = objc.registerName( |
| "numberWithUnsignedShort:", |
| ); |
| late final _sel_objCType = objc.registerName("objCType"); |
| late final _sel_object = objc.registerName("object"); |
| late final _sel_objectAtIndex_ = objc.registerName("objectAtIndex:"); |
| late final _sel_objectAtIndexedSubscript_ = objc.registerName( |
| "objectAtIndexedSubscript:", |
| ); |
| late final _sel_objectEnumerator = objc.registerName("objectEnumerator"); |
| late final _sel_objectForInfoDictionaryKey_ = objc.registerName( |
| "objectForInfoDictionaryKey:", |
| ); |
| late final _sel_objectForKey_ = objc.registerName("objectForKey:"); |
| late final _sel_objectForKeyedSubscript_ = objc.registerName( |
| "objectForKeyedSubscript:", |
| ); |
| late final _sel_objectsAtIndexes_ = objc.registerName("objectsAtIndexes:"); |
| late final _sel_objectsForKeys_notFoundMarker_ = objc.registerName( |
| "objectsForKeys:notFoundMarker:", |
| ); |
| late final _sel_objectsPassingTest_ = objc.registerName("objectsPassingTest:"); |
| late final _sel_objectsWithOptions_passingTest_ = objc.registerName( |
| "objectsWithOptions:passingTest:", |
| ); |
| late final _sel_observeValueForKeyPath_ofObject_change_context_ = objc |
| .registerName("observeValueForKeyPath:ofObject:change:context:"); |
| late final _sel_open = objc.registerName("open"); |
| late final _sel_orderedSet = objc.registerName("orderedSet"); |
| late final _sel_orderedSetWithArray_ = objc.registerName( |
| "orderedSetWithArray:", |
| ); |
| late final _sel_orderedSetWithArray_range_copyItems_ = objc.registerName( |
| "orderedSetWithArray:range:copyItems:", |
| ); |
| late final _sel_orderedSetWithCapacity_ = objc.registerName( |
| "orderedSetWithCapacity:", |
| ); |
| late final _sel_orderedSetWithObject_ = objc.registerName( |
| "orderedSetWithObject:", |
| ); |
| late final _sel_orderedSetWithObjects_ = objc.registerName( |
| "orderedSetWithObjects:", |
| ); |
| late final _sel_orderedSetWithObjects_count_ = objc.registerName( |
| "orderedSetWithObjects:count:", |
| ); |
| late final _sel_orderedSetWithOrderedSet_ = objc.registerName( |
| "orderedSetWithOrderedSet:", |
| ); |
| late final _sel_orderedSetWithOrderedSet_range_copyItems_ = objc.registerName( |
| "orderedSetWithOrderedSet:range:copyItems:", |
| ); |
| late final _sel_orderedSetWithSet_ = objc.registerName("orderedSetWithSet:"); |
| late final _sel_orderedSetWithSet_copyItems_ = objc.registerName( |
| "orderedSetWithSet:copyItems:", |
| ); |
| late final _sel_outputStreamToBuffer_capacity_ = objc.registerName( |
| "outputStreamToBuffer:capacity:", |
| ); |
| late final _sel_outputStreamToFileAtPath_append_ = objc.registerName( |
| "outputStreamToFileAtPath:append:", |
| ); |
| late final _sel_outputStreamToMemory = objc.registerName( |
| "outputStreamToMemory", |
| ); |
| late final _sel_outputStreamWithURL_append_ = objc.registerName( |
| "outputStreamWithURL:append:", |
| ); |
| late final _sel_paragraphRangeForRange_ = objc.registerName( |
| "paragraphRangeForRange:", |
| ); |
| late final _sel_parameterString = objc.registerName("parameterString"); |
| late final _sel_password = objc.registerName("password"); |
| late final _sel_path = objc.registerName("path"); |
| late final _sel_pathForAuxiliaryExecutable_ = objc.registerName( |
| "pathForAuxiliaryExecutable:", |
| ); |
| late final _sel_pathForResource_ofType_ = objc.registerName( |
| "pathForResource:ofType:", |
| ); |
| late final _sel_pathForResource_ofType_inDirectory_ = objc.registerName( |
| "pathForResource:ofType:inDirectory:", |
| ); |
| late final _sel_pathForResource_ofType_inDirectory_forLocalization_ = objc |
| .registerName("pathForResource:ofType:inDirectory:forLocalization:"); |
| late final _sel_pathsForResourcesOfType_inDirectory_ = objc.registerName( |
| "pathsForResourcesOfType:inDirectory:", |
| ); |
| late final _sel_pathsForResourcesOfType_inDirectory_forLocalization_ = objc |
| .registerName("pathsForResourcesOfType:inDirectory:forLocalization:"); |
| late final _sel_pause = objc.registerName("pause"); |
| late final _sel_pausingHandler = objc.registerName("pausingHandler"); |
| late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_ = objc |
| .registerName("performAsCurrentWithPendingUnitCount:usingBlock:"); |
| late final _sel_performSelector_ = objc.registerName("performSelector:"); |
| late final _sel_performSelector_withObject_ = objc.registerName( |
| "performSelector:withObject:", |
| ); |
| late final _sel_performSelector_withObject_withObject_ = objc.registerName( |
| "performSelector:withObject:withObject:", |
| ); |
| late final _sel_port = objc.registerName("port"); |
| late final _sel_precomposedStringWithCanonicalMapping = objc.registerName( |
| "precomposedStringWithCanonicalMapping", |
| ); |
| late final _sel_precomposedStringWithCompatibilityMapping = objc.registerName( |
| "precomposedStringWithCompatibilityMapping", |
| ); |
| late final _sel_preferredLocalizations = objc.registerName( |
| "preferredLocalizations", |
| ); |
| late final _sel_preferredLocalizationsFromArray_ = objc.registerName( |
| "preferredLocalizationsFromArray:", |
| ); |
| late final _sel_preferredLocalizationsFromArray_forPreferences_ = objc |
| .registerName("preferredLocalizationsFromArray:forPreferences:"); |
| late final _sel_preflightAndReturnError_ = objc.registerName( |
| "preflightAndReturnError:", |
| ); |
| late final _sel_principalClass = objc.registerName("principalClass"); |
| late final _sel_privateFrameworksPath = objc.registerName( |
| "privateFrameworksPath", |
| ); |
| late final _sel_privateFrameworksURL = objc.registerName( |
| "privateFrameworksURL", |
| ); |
| late final _sel_progressWithTotalUnitCount_ = objc.registerName( |
| "progressWithTotalUnitCount:", |
| ); |
| late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_ = objc |
| .registerName("progressWithTotalUnitCount:parent:pendingUnitCount:"); |
| late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); |
| late final _sel_publish = objc.registerName("publish"); |
| late final _sel_punctuationCharacterSet = objc.registerName( |
| "punctuationCharacterSet", |
| ); |
| late final _sel_query = objc.registerName("query"); |
| late final _sel_rangeOfCharacterFromSet_ = objc.registerName( |
| "rangeOfCharacterFromSet:", |
| ); |
| late final _sel_rangeOfCharacterFromSet_options_ = objc.registerName( |
| "rangeOfCharacterFromSet:options:", |
| ); |
| late final _sel_rangeOfCharacterFromSet_options_range_ = objc.registerName( |
| "rangeOfCharacterFromSet:options:range:", |
| ); |
| late final _sel_rangeOfComposedCharacterSequenceAtIndex_ = objc.registerName( |
| "rangeOfComposedCharacterSequenceAtIndex:", |
| ); |
| late final _sel_rangeOfComposedCharacterSequencesForRange_ = objc.registerName( |
| "rangeOfComposedCharacterSequencesForRange:", |
| ); |
| late final _sel_rangeOfData_options_range_ = objc.registerName( |
| "rangeOfData:options:range:", |
| ); |
| late final _sel_rangeOfString_ = objc.registerName("rangeOfString:"); |
| late final _sel_rangeOfString_options_ = objc.registerName( |
| "rangeOfString:options:", |
| ); |
| late final _sel_rangeOfString_options_range_ = objc.registerName( |
| "rangeOfString:options:range:", |
| ); |
| late final _sel_rangeOfString_options_range_locale_ = objc.registerName( |
| "rangeOfString:options:range:locale:", |
| ); |
| late final _sel_read_maxLength_ = objc.registerName("read:maxLength:"); |
| late final _sel_receivePort = objc.registerName("receivePort"); |
| late final _sel_recoveryAttempter = objc.registerName("recoveryAttempter"); |
| late final _sel_registerClass = objc.registerName("registerClass"); |
| late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_ = |
| objc.registerName( |
| "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:", |
| ); |
| late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_ = |
| objc.registerName( |
| "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:", |
| ); |
| late final _sel_registerItemForTypeIdentifier_loadHandler_ = objc.registerName( |
| "registerItemForTypeIdentifier:loadHandler:", |
| ); |
| late final _sel_registerObjectOfClass_visibility_loadHandler_ = objc |
| .registerName("registerObjectOfClass:visibility:loadHandler:"); |
| late final _sel_registerObject_visibility_ = objc.registerName( |
| "registerObject:visibility:", |
| ); |
| late final _sel_registeredTypeIdentifiers = objc.registerName( |
| "registeredTypeIdentifiers", |
| ); |
| late final _sel_registeredTypeIdentifiersWithFileOptions_ = objc.registerName( |
| "registeredTypeIdentifiersWithFileOptions:", |
| ); |
| late final _sel_relativePath = objc.registerName("relativePath"); |
| late final _sel_relativeString = objc.registerName("relativeString"); |
| late final _sel_release = objc.registerName("release"); |
| late final _sel_removals = objc.registerName("removals"); |
| late final _sel_remove = objc.registerName("remove"); |
| late final _sel_removeAllCachedResourceValues = objc.registerName( |
| "removeAllCachedResourceValues", |
| ); |
| late final _sel_removeAllIndexes = objc.registerName("removeAllIndexes"); |
| late final _sel_removeAllObjects = objc.registerName("removeAllObjects"); |
| late final _sel_removeCachedResourceValueForKey_ = objc.registerName( |
| "removeCachedResourceValueForKey:", |
| ); |
| late final _sel_removeFromRunLoop_forMode_ = objc.registerName( |
| "removeFromRunLoop:forMode:", |
| ); |
| late final _sel_removeIndex_ = objc.registerName("removeIndex:"); |
| late final _sel_removeIndexesInRange_ = objc.registerName( |
| "removeIndexesInRange:", |
| ); |
| late final _sel_removeIndexes_ = objc.registerName("removeIndexes:"); |
| late final _sel_removeLastObject = objc.registerName("removeLastObject"); |
| late final _sel_removeObjectAtIndex_ = objc.registerName( |
| "removeObjectAtIndex:", |
| ); |
| late final _sel_removeObjectForKey_ = objc.registerName("removeObjectForKey:"); |
| late final _sel_removeObjectIdenticalTo_ = objc.registerName( |
| "removeObjectIdenticalTo:", |
| ); |
| late final _sel_removeObjectIdenticalTo_inRange_ = objc.registerName( |
| "removeObjectIdenticalTo:inRange:", |
| ); |
| late final _sel_removeObject_ = objc.registerName("removeObject:"); |
| late final _sel_removeObject_inRange_ = objc.registerName( |
| "removeObject:inRange:", |
| ); |
| late final _sel_removeObjectsAtIndexes_ = objc.registerName( |
| "removeObjectsAtIndexes:", |
| ); |
| late final _sel_removeObjectsForKeys_ = objc.registerName( |
| "removeObjectsForKeys:", |
| ); |
| late final _sel_removeObjectsInArray_ = objc.registerName( |
| "removeObjectsInArray:", |
| ); |
| late final _sel_removeObjectsInRange_ = objc.registerName( |
| "removeObjectsInRange:", |
| ); |
| late final _sel_removePort_forMode_ = objc.registerName("removePort:forMode:"); |
| late final _sel_removeSubscriber_ = objc.registerName("removeSubscriber:"); |
| late final _sel_replaceBytesInRange_withBytes_ = objc.registerName( |
| "replaceBytesInRange:withBytes:", |
| ); |
| late final _sel_replaceBytesInRange_withBytes_length_ = objc.registerName( |
| "replaceBytesInRange:withBytes:length:", |
| ); |
| late final _sel_replaceCharactersInRange_withString_ = objc.registerName( |
| "replaceCharactersInRange:withString:", |
| ); |
| late final _sel_replaceObjectAtIndex_withObject_ = objc.registerName( |
| "replaceObjectAtIndex:withObject:", |
| ); |
| late final _sel_replaceObjectsAtIndexes_withObjects_ = objc.registerName( |
| "replaceObjectsAtIndexes:withObjects:", |
| ); |
| late final _sel_replaceObjectsInRange_withObjectsFromArray_ = objc.registerName( |
| "replaceObjectsInRange:withObjectsFromArray:", |
| ); |
| late final _sel_replaceObjectsInRange_withObjectsFromArray_range_ = objc |
| .registerName("replaceObjectsInRange:withObjectsFromArray:range:"); |
| late final _sel_replaceObjectsInRange_withObjects_count_ = objc.registerName( |
| "replaceObjectsInRange:withObjects:count:", |
| ); |
| late final _sel_reservedSpaceLength = objc.registerName("reservedSpaceLength"); |
| late final _sel_resetBytesInRange_ = objc.registerName("resetBytesInRange:"); |
| late final _sel_resignCurrent = objc.registerName("resignCurrent"); |
| late final _sel_resolveClassMethod_ = objc.registerName("resolveClassMethod:"); |
| late final _sel_resolveInstanceMethod_ = objc.registerName( |
| "resolveInstanceMethod:", |
| ); |
| late final _sel_resourcePath = objc.registerName("resourcePath"); |
| late final _sel_resourceSpecifier = objc.registerName("resourceSpecifier"); |
| late final _sel_resourceURL = objc.registerName("resourceURL"); |
| late final _sel_resourceValuesForKeys_error_ = objc.registerName( |
| "resourceValuesForKeys:error:", |
| ); |
| late final _sel_resourceValuesForKeys_fromBookmarkData_ = objc.registerName( |
| "resourceValuesForKeys:fromBookmarkData:", |
| ); |
| late final _sel_respondsToSelector_ = objc.registerName("respondsToSelector:"); |
| late final _sel_resume = objc.registerName("resume"); |
| late final _sel_resumingHandler = objc.registerName("resumingHandler"); |
| late final _sel_retain = objc.registerName("retain"); |
| late final _sel_retainArguments = objc.registerName("retainArguments"); |
| late final _sel_retainCount = objc.registerName("retainCount"); |
| late final _sel_reverseObjectEnumerator = objc.registerName( |
| "reverseObjectEnumerator", |
| ); |
| late final _sel_reversedOrderedSet = objc.registerName("reversedOrderedSet"); |
| late final _sel_scheduleInRunLoop_forMode_ = objc.registerName( |
| "scheduleInRunLoop:forMode:", |
| ); |
| late final _sel_scheduledTimerWithTimeInterval_invocation_repeats_ = objc |
| .registerName("scheduledTimerWithTimeInterval:invocation:repeats:"); |
| late final _sel_scheduledTimerWithTimeInterval_repeats_block_ = objc |
| .registerName("scheduledTimerWithTimeInterval:repeats:block:"); |
| late final _sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_ = |
| objc.registerName( |
| "scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:", |
| ); |
| late final _sel_scheme = objc.registerName("scheme"); |
| late final _sel_selector = objc.registerName("selector"); |
| late final _sel_self = objc.registerName("self"); |
| late final _sel_sendBeforeDate_ = objc.registerName("sendBeforeDate:"); |
| late final _sel_sendBeforeDate_components_from_reserved_ = objc.registerName( |
| "sendBeforeDate:components:from:reserved:", |
| ); |
| late final _sel_sendBeforeDate_msgid_components_from_reserved_ = objc |
| .registerName("sendBeforeDate:msgid:components:from:reserved:"); |
| late final _sel_sendPort = objc.registerName("sendPort"); |
| late final _sel_set = objc.registerName("set"); |
| late final _sel_setAllowsExtendedAttributes_ = objc.registerName( |
| "setAllowsExtendedAttributes:", |
| ); |
| late final _sel_setAppliesSourcePositionAttributes_ = objc.registerName( |
| "setAppliesSourcePositionAttributes:", |
| ); |
| late final _sel_setArgument_atIndex_ = objc.registerName( |
| "setArgument:atIndex:", |
| ); |
| late final _sel_setArray_ = objc.registerName("setArray:"); |
| late final _sel_setByAddingObject_ = objc.registerName("setByAddingObject:"); |
| late final _sel_setByAddingObjectsFromArray_ = objc.registerName( |
| "setByAddingObjectsFromArray:", |
| ); |
| late final _sel_setByAddingObjectsFromSet_ = objc.registerName( |
| "setByAddingObjectsFromSet:", |
| ); |
| late final _sel_setCancellable_ = objc.registerName("setCancellable:"); |
| late final _sel_setCancellationHandler_ = objc.registerName( |
| "setCancellationHandler:", |
| ); |
| late final _sel_setCompletedUnitCount_ = objc.registerName( |
| "setCompletedUnitCount:", |
| ); |
| late final _sel_setData_ = objc.registerName("setData:"); |
| late final _sel_setDelegate_ = objc.registerName("setDelegate:"); |
| late final _sel_setDictionary_ = objc.registerName("setDictionary:"); |
| late final _sel_setDone = objc.registerName("setDone"); |
| late final _sel_setError_ = objc.registerName("setError:"); |
| late final _sel_setEstimatedTimeRemaining_ = objc.registerName( |
| "setEstimatedTimeRemaining:", |
| ); |
| late final _sel_setFailurePolicy_ = objc.registerName("setFailurePolicy:"); |
| late final _sel_setFileCompletedCount_ = objc.registerName( |
| "setFileCompletedCount:", |
| ); |
| late final _sel_setFileOperationKind_ = objc.registerName( |
| "setFileOperationKind:", |
| ); |
| late final _sel_setFileTotalCount_ = objc.registerName("setFileTotalCount:"); |
| late final _sel_setFileURL_ = objc.registerName("setFileURL:"); |
| late final _sel_setFireDate_ = objc.registerName("setFireDate:"); |
| late final _sel_setInterpretedSyntax_ = objc.registerName( |
| "setInterpretedSyntax:", |
| ); |
| late final _sel_setKind_ = objc.registerName("setKind:"); |
| late final _sel_setLanguageCode_ = objc.registerName("setLanguageCode:"); |
| late final _sel_setLength_ = objc.registerName("setLength:"); |
| late final _sel_setLocalizedAdditionalDescription_ = objc.registerName( |
| "setLocalizedAdditionalDescription:", |
| ); |
| late final _sel_setLocalizedDescription_ = objc.registerName( |
| "setLocalizedDescription:", |
| ); |
| late final _sel_setMsgid_ = objc.registerName("setMsgid:"); |
| late final _sel_setObject_atIndex_ = objc.registerName("setObject:atIndex:"); |
| late final _sel_setObject_atIndexedSubscript_ = objc.registerName( |
| "setObject:atIndexedSubscript:", |
| ); |
| late final _sel_setObject_forKey_ = objc.registerName("setObject:forKey:"); |
| late final _sel_setObject_forKeyedSubscript_ = objc.registerName( |
| "setObject:forKeyedSubscript:", |
| ); |
| late final _sel_setPausable_ = objc.registerName("setPausable:"); |
| late final _sel_setPausingHandler_ = objc.registerName("setPausingHandler:"); |
| late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); |
| late final _sel_setResourceValue_forKey_error_ = objc.registerName( |
| "setResourceValue:forKey:error:", |
| ); |
| late final _sel_setResourceValues_error_ = objc.registerName( |
| "setResourceValues:error:", |
| ); |
| late final _sel_setResumingHandler_ = objc.registerName("setResumingHandler:"); |
| late final _sel_setReturnValue_ = objc.registerName("setReturnValue:"); |
| late final _sel_setSelector_ = objc.registerName("setSelector:"); |
| late final _sel_setSet_ = objc.registerName("setSet:"); |
| late final _sel_setSuggestedName_ = objc.registerName("setSuggestedName:"); |
| late final _sel_setTarget_ = objc.registerName("setTarget:"); |
| late final _sel_setTemporaryResourceValue_forKey_ = objc.registerName( |
| "setTemporaryResourceValue:forKey:", |
| ); |
| late final _sel_setThroughput_ = objc.registerName("setThroughput:"); |
| late final _sel_setTolerance_ = objc.registerName("setTolerance:"); |
| late final _sel_setTotalUnitCount_ = objc.registerName("setTotalUnitCount:"); |
| late final _sel_setUserInfoObject_forKey_ = objc.registerName( |
| "setUserInfoObject:forKey:", |
| ); |
| late final _sel_setUserInfoValueProviderForDomain_provider_ = objc.registerName( |
| "setUserInfoValueProviderForDomain:provider:", |
| ); |
| late final _sel_setWithArray_ = objc.registerName("setWithArray:"); |
| late final _sel_setWithCapacity_ = objc.registerName("setWithCapacity:"); |
| late final _sel_setWithObject_ = objc.registerName("setWithObject:"); |
| late final _sel_setWithObjects_ = objc.registerName("setWithObjects:"); |
| late final _sel_setWithObjects_count_ = objc.registerName( |
| "setWithObjects:count:", |
| ); |
| late final _sel_setWithSet_ = objc.registerName("setWithSet:"); |
| late final _sel_sharedFrameworksPath = objc.registerName( |
| "sharedFrameworksPath", |
| ); |
| late final _sel_sharedFrameworksURL = objc.registerName("sharedFrameworksURL"); |
| late final _sel_sharedSupportPath = objc.registerName("sharedSupportPath"); |
| late final _sel_sharedSupportURL = objc.registerName("sharedSupportURL"); |
| late final _sel_shiftIndexesStartingAtIndex_by_ = objc.registerName( |
| "shiftIndexesStartingAtIndex:by:", |
| ); |
| late final _sel_shortValue = objc.registerName("shortValue"); |
| late final _sel_signatureWithObjCTypes_ = objc.registerName( |
| "signatureWithObjCTypes:", |
| ); |
| late final _sel_smallestEncoding = objc.registerName("smallestEncoding"); |
| late final _sel_sortRange_options_usingComparator_ = objc.registerName( |
| "sortRange:options:usingComparator:", |
| ); |
| late final _sel_sortUsingComparator_ = objc.registerName( |
| "sortUsingComparator:", |
| ); |
| late final _sel_sortUsingFunction_context_ = objc.registerName( |
| "sortUsingFunction:context:", |
| ); |
| late final _sel_sortUsingSelector_ = objc.registerName("sortUsingSelector:"); |
| late final _sel_sortWithOptions_usingComparator_ = objc.registerName( |
| "sortWithOptions:usingComparator:", |
| ); |
| late final _sel_sortedArrayHint = objc.registerName("sortedArrayHint"); |
| late final _sel_sortedArrayUsingComparator_ = objc.registerName( |
| "sortedArrayUsingComparator:", |
| ); |
| late final _sel_sortedArrayUsingFunction_context_ = objc.registerName( |
| "sortedArrayUsingFunction:context:", |
| ); |
| late final _sel_sortedArrayUsingFunction_context_hint_ = objc.registerName( |
| "sortedArrayUsingFunction:context:hint:", |
| ); |
| late final _sel_sortedArrayUsingSelector_ = objc.registerName( |
| "sortedArrayUsingSelector:", |
| ); |
| late final _sel_sortedArrayWithOptions_usingComparator_ = objc.registerName( |
| "sortedArrayWithOptions:usingComparator:", |
| ); |
| late final _sel_standardizedURL = objc.registerName("standardizedURL"); |
| late final _sel_startAccessingSecurityScopedResource = objc.registerName( |
| "startAccessingSecurityScopedResource", |
| ); |
| late final _sel_stopAccessingSecurityScopedResource = objc.registerName( |
| "stopAccessingSecurityScopedResource", |
| ); |
| late final _sel_streamError = objc.registerName("streamError"); |
| late final _sel_streamStatus = objc.registerName("streamStatus"); |
| late final _sel_stream_handleEvent_ = objc.registerName("stream:handleEvent:"); |
| late final _sel_string = objc.registerName("string"); |
| late final _sel_stringByAppendingFormat_ = objc.registerName( |
| "stringByAppendingFormat:", |
| ); |
| late final _sel_stringByAppendingString_ = objc.registerName( |
| "stringByAppendingString:", |
| ); |
| late final _sel_stringByApplyingTransform_reverse_ = objc.registerName( |
| "stringByApplyingTransform:reverse:", |
| ); |
| late final _sel_stringByFoldingWithOptions_locale_ = objc.registerName( |
| "stringByFoldingWithOptions:locale:", |
| ); |
| late final _sel_stringByPaddingToLength_withString_startingAtIndex_ = objc |
| .registerName("stringByPaddingToLength:withString:startingAtIndex:"); |
| late final _sel_stringByReplacingCharactersInRange_withString_ = objc |
| .registerName("stringByReplacingCharactersInRange:withString:"); |
| late final _sel_stringByReplacingOccurrencesOfString_withString_ = objc |
| .registerName("stringByReplacingOccurrencesOfString:withString:"); |
| late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_ = |
| objc.registerName( |
| "stringByReplacingOccurrencesOfString:withString:options:range:", |
| ); |
| late final _sel_stringByTrimmingCharactersInSet_ = objc.registerName( |
| "stringByTrimmingCharactersInSet:", |
| ); |
| late final _sel_stringValue = objc.registerName("stringValue"); |
| late final _sel_stringWithCString_encoding_ = objc.registerName( |
| "stringWithCString:encoding:", |
| ); |
| late final _sel_stringWithCharacters_length_ = objc.registerName( |
| "stringWithCharacters:length:", |
| ); |
| late final _sel_stringWithContentsOfFile_encoding_error_ = objc.registerName( |
| "stringWithContentsOfFile:encoding:error:", |
| ); |
| late final _sel_stringWithContentsOfFile_usedEncoding_error_ = objc |
| .registerName("stringWithContentsOfFile:usedEncoding:error:"); |
| late final _sel_stringWithContentsOfURL_encoding_error_ = objc.registerName( |
| "stringWithContentsOfURL:encoding:error:", |
| ); |
| late final _sel_stringWithContentsOfURL_usedEncoding_error_ = objc.registerName( |
| "stringWithContentsOfURL:usedEncoding:error:", |
| ); |
| late final _sel_stringWithFormat_ = objc.registerName("stringWithFormat:"); |
| late final _sel_stringWithString_ = objc.registerName("stringWithString:"); |
| late final _sel_stringWithUTF8String_ = objc.registerName( |
| "stringWithUTF8String:", |
| ); |
| late final _sel_stringWithValidatedFormat_validFormatSpecifiers_error_ = objc |
| .registerName("stringWithValidatedFormat:validFormatSpecifiers:error:"); |
| late final _sel_subarrayWithRange_ = objc.registerName("subarrayWithRange:"); |
| late final _sel_subdataWithRange_ = objc.registerName("subdataWithRange:"); |
| late final _sel_substringFromIndex_ = objc.registerName("substringFromIndex:"); |
| late final _sel_substringToIndex_ = objc.registerName("substringToIndex:"); |
| late final _sel_substringWithRange_ = objc.registerName("substringWithRange:"); |
| late final _sel_suggestedName = objc.registerName("suggestedName"); |
| late final _sel_superclass = objc.registerName("superclass"); |
| late final _sel_supportsSecureCoding = objc.registerName( |
| "supportsSecureCoding", |
| ); |
| late final _sel_symbolCharacterSet = objc.registerName("symbolCharacterSet"); |
| late final _sel_systemLocale = objc.registerName("systemLocale"); |
| late final _sel_target = objc.registerName("target"); |
| late final _sel_throughput = objc.registerName("throughput"); |
| late final _sel_timeInterval = objc.registerName("timeInterval"); |
| late final _sel_timeIntervalSince1970 = objc.registerName( |
| "timeIntervalSince1970", |
| ); |
| late final _sel_timeIntervalSinceDate_ = objc.registerName( |
| "timeIntervalSinceDate:", |
| ); |
| late final _sel_timeIntervalSinceNow = objc.registerName( |
| "timeIntervalSinceNow", |
| ); |
| late final _sel_timeIntervalSinceReferenceDate = objc.registerName( |
| "timeIntervalSinceReferenceDate", |
| ); |
| late final _sel_timerWithTimeInterval_invocation_repeats_ = objc.registerName( |
| "timerWithTimeInterval:invocation:repeats:", |
| ); |
| late final _sel_timerWithTimeInterval_repeats_block_ = objc.registerName( |
| "timerWithTimeInterval:repeats:block:", |
| ); |
| late final _sel_timerWithTimeInterval_target_selector_userInfo_repeats_ = objc |
| .registerName("timerWithTimeInterval:target:selector:userInfo:repeats:"); |
| late final _sel_tolerance = objc.registerName("tolerance"); |
| late final _sel_totalUnitCount = objc.registerName("totalUnitCount"); |
| late final _sel_underlyingErrors = objc.registerName("underlyingErrors"); |
| late final _sel_unionOrderedSet_ = objc.registerName("unionOrderedSet:"); |
| late final _sel_unionSet_ = objc.registerName("unionSet:"); |
| late final _sel_unload = objc.registerName("unload"); |
| late final _sel_unpublish = objc.registerName("unpublish"); |
| late final _sel_unsignedCharValue = objc.registerName("unsignedCharValue"); |
| late final _sel_unsignedIntValue = objc.registerName("unsignedIntValue"); |
| late final _sel_unsignedIntegerValue = objc.registerName( |
| "unsignedIntegerValue", |
| ); |
| late final _sel_unsignedLongLongValue = objc.registerName( |
| "unsignedLongLongValue", |
| ); |
| late final _sel_unsignedLongValue = objc.registerName("unsignedLongValue"); |
| late final _sel_unsignedShortValue = objc.registerName("unsignedShortValue"); |
| late final _sel_uppercaseLetterCharacterSet = objc.registerName( |
| "uppercaseLetterCharacterSet", |
| ); |
| late final _sel_uppercaseString = objc.registerName("uppercaseString"); |
| late final _sel_uppercaseStringWithLocale_ = objc.registerName( |
| "uppercaseStringWithLocale:", |
| ); |
| late final _sel_user = objc.registerName("user"); |
| late final _sel_userInfo = objc.registerName("userInfo"); |
| late final _sel_userInfoValueProviderForDomain_ = objc.registerName( |
| "userInfoValueProviderForDomain:", |
| ); |
| late final _sel_versionForClassName_ = objc.registerName( |
| "versionForClassName:", |
| ); |
| late final _sel_whitespaceAndNewlineCharacterSet = objc.registerName( |
| "whitespaceAndNewlineCharacterSet", |
| ); |
| late final _sel_whitespaceCharacterSet = objc.registerName( |
| "whitespaceCharacterSet", |
| ); |
| late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( |
| "writableTypeIdentifiersForItemProvider", |
| ); |
| late final _sel_writeBookmarkData_toURL_options_error_ = objc.registerName( |
| "writeBookmarkData:toURL:options:error:", |
| ); |
| late final _sel_writeToFile_atomically_ = objc.registerName( |
| "writeToFile:atomically:", |
| ); |
| late final _sel_writeToFile_atomically_encoding_error_ = objc.registerName( |
| "writeToFile:atomically:encoding:error:", |
| ); |
| late final _sel_writeToFile_options_error_ = objc.registerName( |
| "writeToFile:options:error:", |
| ); |
| late final _sel_writeToURL_atomically_ = objc.registerName( |
| "writeToURL:atomically:", |
| ); |
| late final _sel_writeToURL_atomically_encoding_error_ = objc.registerName( |
| "writeToURL:atomically:encoding:error:", |
| ); |
| late final _sel_writeToURL_error_ = objc.registerName("writeToURL:error:"); |
| late final _sel_writeToURL_options_error_ = objc.registerName( |
| "writeToURL:options:error:", |
| ); |
| late final _sel_write_maxLength_ = objc.registerName("write:maxLength:"); |
| late final _sel_zone = objc.registerName("zone"); |
| typedef instancetype = ffi.Pointer<objc.ObjCObjectImpl>; |
| typedef Dartinstancetype = objc.ObjCObject; |